summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/usb
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2010-12-09 22:30:37 -0800
committerMike Lockwood <lockwood@android.com>2010-12-09 22:52:05 -0800
commit770126a678ccc9328a89407ffc82f4d998b25427 (patch)
tree0b92be9747fabb684c73a8f73e30755415288e9c /packages/SystemUI/src/com/android/systemui/usb
parent957d85ec046651a8b0549b62021079ddcc0b8f53 (diff)
downloadframeworks_base-770126a678ccc9328a89407ffc82f4d998b25427.zip
frameworks_base-770126a678ccc9328a89407ffc82f4d998b25427.tar.gz
frameworks_base-770126a678ccc9328a89407ffc82f4d998b25427.tar.bz2
Rename android.hardware.Usb to UsbManager and UsbObserver to UsbService
In preparation for an upcoming change that will make UsbService into a real system service Change-Id: Id85d624cfc6b10b49a08105cfaaacc667a492c12 Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/usb')
-rw-r--r--packages/SystemUI/src/com/android/systemui/usb/UsbStorageActivity.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/usb/UsbStorageActivity.java b/packages/SystemUI/src/com/android/systemui/usb/UsbStorageActivity.java
index 1383216..a834266 100644
--- a/packages/SystemUI/src/com/android/systemui/usb/UsbStorageActivity.java
+++ b/packages/SystemUI/src/com/android/systemui/usb/UsbStorageActivity.java
@@ -30,7 +30,7 @@ import android.content.DialogInterface.OnCancelListener;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
-import android.hardware.Usb;
+import android.hardware.UsbManager;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
@@ -82,7 +82,7 @@ public class UsbStorageActivity extends Activity
private BroadcastReceiver mUsbStateReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
- if (intent.getAction().equals(Usb.ACTION_USB_STATE)) {
+ if (intent.getAction().equals(UsbManager.ACTION_USB_STATE)) {
handleUsbStateChanged(intent);
}
}
@@ -168,7 +168,7 @@ public class UsbStorageActivity extends Activity
super.onResume();
mStorageManager.registerListener(mStorageListener);
- registerReceiver(mUsbStateReceiver, new IntentFilter(Usb.ACTION_USB_STATE));
+ registerReceiver(mUsbStateReceiver, new IntentFilter(UsbManager.ACTION_USB_STATE));
try {
mAsyncStorageHandler.post(new Runnable() {
@Override
@@ -192,7 +192,7 @@ public class UsbStorageActivity extends Activity
}
private void handleUsbStateChanged(Intent intent) {
- boolean connected = intent.getExtras().getBoolean(Usb.USB_CONNECTED);
+ boolean connected = intent.getExtras().getBoolean(UsbManager.USB_CONNECTED);
if (!connected) {
// It was disconnected from the plug, so finish
finish();