HomeSort by relevance Sort by last modified time
    Searched refs:UsbManager (Results 1 - 25 of 29) sorted by null

1 2

  /frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
UsbDisconnectedReceiver.java 26 import android.hardware.usb.UsbManager;
39 IntentFilter filter = new IntentFilter(UsbManager.ACTION_USB_DEVICE_DETACHED);
47 IntentFilter filter = new IntentFilter(UsbManager.ACTION_USB_ACCESSORY_DETACHED);
54 if (UsbManager.ACTION_USB_DEVICE_DETACHED.equals(action)) {
55 UsbDevice device = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
59 } else if (UsbManager.ACTION_USB_ACCESSORY_DETACHED.equals(action)) {
61 (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY);
UsbConfirmActivity.java 31 import android.hardware.usb.UsbManager;
66 mDevice = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
67 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY);
125 intent = new Intent(UsbManager.ACTION_USB_DEVICE_ATTACHED);
126 intent.putExtra(UsbManager.EXTRA_DEVICE, mDevice);
137 intent = new Intent(UsbManager.ACTION_USB_ACCESSORY_ATTACHED);
138 intent.putExtra(UsbManager.EXTRA_ACCESSORY, mAccessory);
UsbPermissionActivity.java 30 import android.hardware.usb.UsbManager;
67 mDevice = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
68 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY);
127 intent.putExtra(UsbManager.EXTRA_DEVICE, mDevice);
136 intent.putExtra(UsbManager.EXTRA_ACCESSORY, mAccessory);
144 intent.putExtra(UsbManager.EXTRA_PERMISSION_GRANTED, mPermissionGranted);
UsbResolverActivity.java 27 import android.hardware.usb.UsbManager;
73 mDevice = (UsbDevice)target.getParcelableExtra(UsbManager.EXTRA_DEVICE);
77 mAccessory = (UsbAccessory)target.getParcelableExtra(UsbManager.EXTRA_ACCESSORY);
UsbAccessoryUriActivity.java 27 import android.hardware.usb.UsbManager;
55 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY);
UsbStorageActivity.java 33 import android.hardware.usb.UsbManager;
86 if (intent.getAction().equals(UsbManager.ACTION_USB_STATE)) {
178 registerReceiver(mUsbStateReceiver, new IntentFilter(UsbManager.ACTION_USB_STATE));
202 boolean connected = intent.getExtras().getBoolean(UsbManager.USB_CONNECTED);
  /packages/apps/Settings/src/com/android/settings/deviceinfo/
UsbSettings.java 27 import android.hardware.usb.UsbManager;
49 private UsbManager mUsbManager;
76 mUsbManager = (UsbManager)getSystemService(Context.USB_SERVICE);
95 new IntentFilter(UsbManager.ACTION_USB_STATE));
99 if (UsbManager.USB_FUNCTION_MTP.equals(function)) {
102 } else if (UsbManager.USB_FUNCTION_PTP.equals(function)) {
129 mUsbManager.setCurrentFunction(UsbManager.USB_FUNCTION_MTP, true);
130 updateToggles(UsbManager.USB_FUNCTION_MTP);
132 mUsbManager.setCurrentFunction(UsbManager.USB_FUNCTION_PTP, true);
133 updateToggles(UsbManager.USB_FUNCTION_PTP)
    [all...]
  /packages/providers/MediaProvider/src/com/android/providers/media/
UsbReceiver.java 23 import android.hardware.usb.UsbManager;
36 boolean connected = extras.getBoolean(UsbManager.USB_CONFIGURED);
37 boolean mtpEnabled = extras.getBoolean(UsbManager.USB_FUNCTION_MTP);
38 boolean ptpEnabled = extras.getBoolean(UsbManager.USB_FUNCTION_PTP);
43 intent.putExtra(UsbManager.USB_FUNCTION_PTP, true);
MtpService.java 25 import android.hardware.usb.UsbManager;
115 : intent.getBooleanExtra(UsbManager.USB_FUNCTION_PTP, false));
  /frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
DeviceDisconnectedReceiver.java 25 import android.hardware.usb.UsbManager;
39 IntentFilter filter = new IntentFilter(UsbManager.ACTION_USB_DEVICE_DETACHED);
45 UsbDevice device = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
MtpClient.java 28 import android.hardware.usb.UsbManager;
54 private final UsbManager mUsbManager;
67 UsbDevice usbDevice = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
73 if (UsbManager.ACTION_USB_DEVICE_ATTACHED.equals(action)) {
82 } else if (UsbManager.ACTION_USB_DEVICE_DETACHED.equals(action)) {
90 boolean permission = intent.getBooleanExtra(UsbManager.EXTRA_PERMISSION_GRANTED,
155 mUsbManager = (UsbManager)context.getSystemService(Context.USB_SERVICE);
158 filter.addAction(UsbManager.ACTION_USB_DEVICE_ATTACHED);
159 filter.addAction(UsbManager.ACTION_USB_DEVICE_DETACHED);
  /frameworks/base/libs/usb/src/com/android/future/usb/
UsbManager.java 36 public class UsbManager {
37 private static final String TAG = "UsbManager";
69 private UsbManager(Context context, IUsbManager service) {
78 * @return UsbManager instance.
80 public static UsbManager getInstance(Context context) {
82 return new UsbManager(context, IUsbManager.Stub.asInterface(b));
95 intent.getParcelableExtra(android.hardware.usb.UsbManager.EXTRA_ACCESSORY);
  /development/samples/USB/AdbTest/src/com/android/adb/
AdbTestActivity.java 28 import android.hardware.usb.UsbManager;
41 private UsbManager mManager;
57 mManager = (UsbManager)getSystemService(Context.USB_SERVICE);
69 filter.addAction(UsbManager.ACTION_USB_DEVICE_ATTACHED);
70 filter.addAction(UsbManager.ACTION_USB_DEVICE_DETACHED);
178 if (UsbManager.ACTION_USB_DEVICE_ATTACHED.equals(action)) {
179 UsbDevice device = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
185 } else if (UsbManager.ACTION_USB_DEVICE_DETACHED.equals(action)) {
186 UsbDevice device = intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
  /packages/apps/Gallery2/src/com/android/gallery3d/data/
MtpClient.java 28 import android.hardware.usb.UsbManager;
54 private final UsbManager mUsbManager;
74 UsbDevice usbDevice = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
80 if (UsbManager.ACTION_USB_DEVICE_ATTACHED.equals(action)) {
89 } else if (UsbManager.ACTION_USB_DEVICE_DETACHED.equals(action)) {
100 boolean permission = intent.getBooleanExtra(UsbManager.EXTRA_PERMISSION_GRANTED,
168 mUsbManager = (UsbManager)context.getSystemService(Context.USB_SERVICE);
171 filter.addAction(UsbManager.ACTION_USB_DEVICE_ATTACHED);
172 filter.addAction(UsbManager.ACTION_USB_DEVICE_DETACHED);
  /frameworks/base/services/java/com/android/server/usb/
UsbDeviceManager.java 32 import android.hardware.usb.UsbManager;
128 setCurrentFunction(UsbManager.USB_FUNCTION_ACCESSORY, false);
149 setCurrentFunction(UsbManager.USB_FUNCTION_ACCESSORY, false);
273 mAdbEnabled = containsFunction(mCurrentFunctions, UsbManager.USB_FUNCTION_ADB);
386 functions = addFunction(functions, UsbManager.USB_FUNCTION_ADB);
388 functions = removeFunction(functions, UsbManager.USB_FUNCTION_ADB);
414 functions = addFunction(functions, UsbManager.USB_FUNCTION_ADB);
416 functions = removeFunction(functions, UsbManager.USB_FUNCTION_ADB);
468 Intent intent = new Intent(UsbManager.ACTION_USB_STATE);
470 intent.putExtra(UsbManager.USB_CONNECTED, mConnected)
    [all...]
UsbSettingsManager.java 34 import android.hardware.usb.UsbManager;
535 Intent intent = new Intent(UsbManager.ACTION_USB_DEVICE_ATTACHED);
536 intent.putExtra(UsbManager.EXTRA_DEVICE, device);
555 Intent intent = new Intent(UsbManager.ACTION_USB_DEVICE_DETACHED);
556 intent.putExtra(UsbManager.EXTRA_DEVICE, device);
562 Intent intent = new Intent(UsbManager.ACTION_USB_ACCESSORY_ATTACHED);
563 intent.putExtra(UsbManager.EXTRA_ACCESSORY, accessory);
583 UsbManager.ACTION_USB_ACCESSORY_DETACHED);
584 intent.putExtra(UsbManager.EXTRA_ACCESSORY, accessory);
603 dialogIntent.putExtra(UsbManager.EXTRA_ACCESSORY, accessory)
    [all...]
UsbHostManager.java 30 import android.hardware.usb.UsbManager;
  /device/google/accessory/demokit/app/src/com/google/android/DemoKit/
DemoKitActivity.java 38 import com.android.future.usb.UsbManager;
45 private UsbManager mUsbManager;
128 UsbAccessory accessory = UsbManager.getAccessory(intent);
130 UsbManager.EXTRA_PERMISSION_GRANTED, false)) {
138 } else if (UsbManager.ACTION_USB_ACCESSORY_DETACHED.equals(action)) {
139 UsbAccessory accessory = UsbManager.getAccessory(intent);
152 mUsbManager = UsbManager.getInstance(this);
156 filter.addAction(UsbManager.ACTION_USB_ACCESSORY_DETACHED);
  /development/samples/USB/MissileLauncher/src/com/android/missilelauncher/
MissileLauncherActivity.java 33 import android.hardware.usb.UsbManager;
46 private UsbManager mUsbManager;
77 mUsbManager = (UsbManager)getSystemService(Context.USB_SERVICE);
99 UsbDevice device = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
100 if (UsbManager.ACTION_USB_DEVICE_ATTACHED.equals(action)) {
102 } else if (UsbManager.ACTION_USB_DEVICE_DETACHED.equals(action)) {
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/
UsbAccessoryTestActivity.java 33 import android.hardware.usb.UsbManager;
68 private UsbManager mUsbManager;
93 mUsbManager = (UsbManager) getSystemService(USB_SERVICE);
99 filter.addAction(UsbManager.ACTION_USB_ACCESSORY_ATTACHED);
141 || UsbManager.ACTION_USB_ACCESSORY_ATTACHED.equals(intent.getAction())) {
142 UsbAccessory accessory = intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY);
143 if (intent.getBooleanExtra(UsbManager.EXTRA_PERMISSION_GRANTED, false)) {
  /frameworks/base/libs/usb/tests/AccessoryChat/src/com/android/accessorychat/
AccessoryChat.java 37 import com.android.future.usb.UsbManager;
56 private UsbManager mUsbManager;
67 UsbAccessory accessory = UsbManager.getAccessory(intent);
68 if (intent.getBooleanExtra(UsbManager.EXTRA_PERMISSION_GRANTED, false)) {
83 mUsbManager = UsbManager.getInstance(this);
  /frameworks/base/core/java/android/hardware/usb/
UsbManager.java 38 * UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE);
41 public class UsbManager {
42 private static final String TAG = "UsbManager";
212 public UsbManager(Context context, IUsbManager service) {
260 Log.e(TAG, "exception in UsbManager.openDevice", e);
  /packages/apps/Settings/src/com/android/settings/
TetherSettings.java 34 import android.hardware.usb.UsbManager;
266 } else if (action.equals(UsbManager.ACTION_USB_STATE)) {
267 mUsbConnected = intent.getBooleanExtra(UsbManager.USB_CONNECTED, false);
304 filter.addAction(UsbManager.ACTION_USB_STATE);
  /frameworks/base/services/java/com/android/server/connectivity/
Tethering.java 28 import android.hardware.usb.UsbManager;
147 filter.addAction(UsbManager.ACTION_USB_STATE);
471 if (action.equals(UsbManager.ACTION_USB_STATE)) {
473 boolean usbConnected = intent.getBooleanExtra(UsbManager.USB_CONNECTED, false);
474 mRndisEnabled = intent.getBooleanExtra(UsbManager.USB_FUNCTION_RNDIS, false);
562 UsbManager usbManager = (UsbManager)mContext.getSystemService(Context.USB_SERVICE);
570 usbManager.setCurrentFunction(UsbManager.USB_FUNCTION_RNDIS, false)
    [all...]
  /frameworks/base/services/java/com/android/server/
MountService.java 36 import android.hardware.usb.UsbManager;
536 } else if (action.equals(UsbManager.ACTION_USB_STATE)) {
537 boolean available = (intent.getBooleanExtra(UsbManager.USB_CONNECTED, false) &&
538 intent.getBooleanExtra(UsbManager.USB_FUNCTION_MASS_STORAGE, false));
    [all...]

Completed in 558 milliseconds

1 2