/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbDeviceManager.java | 30 import android.hardware.usb.UsbManager; 261 functions = UsbManager.USB_FUNCTION_ACCESSORY + "," in startAccessoryMode() 262 + UsbManager.USB_FUNCTION_AUDIO_SOURCE; in startAccessoryMode() 264 functions = UsbManager.USB_FUNCTION_ACCESSORY; in startAccessoryMode() 266 functions = UsbManager.USB_FUNCTION_AUDIO_SOURCE; in startAccessoryMode() 316 UsbManager.USB_FUNCTION_NONE); in UsbHandler() 317 if (UsbManager.USB_FUNCTION_NONE.equals(mCurrentFunctions)) { in UsbHandler() 318 mCurrentFunctions = UsbManager.USB_FUNCTION_MTP; in UsbHandler() 322 mAdbEnabled = UsbManager.containsFunction(getDefaultFunctions(), in UsbHandler() 323 UsbManager.USB_FUNCTION_ADB); in UsbHandler() [all …]
|
D | UsbSettingsManager.java | 34 import android.hardware.usb.UsbManager; 728 Intent intent = new Intent(UsbManager.ACTION_USB_DEVICE_ATTACHED); in deviceAttached() 729 intent.putExtra(UsbManager.EXTRA_DEVICE, device); in deviceAttached() 752 Intent intent = new Intent(UsbManager.ACTION_USB_DEVICE_DETACHED); in deviceDetached() 753 intent.putExtra(UsbManager.EXTRA_DEVICE, device); in deviceDetached() 759 Intent intent = new Intent(UsbManager.ACTION_USB_ACCESSORY_ATTACHED); in accessoryAttached() 760 intent.putExtra(UsbManager.EXTRA_ACCESSORY, accessory); in accessoryAttached() 780 UsbManager.ACTION_USB_ACCESSORY_DETACHED); in accessoryDetached() 781 intent.putExtra(UsbManager.EXTRA_ACCESSORY, accessory); in accessoryDetached() 800 dialogIntent.putExtra(UsbManager.EXTRA_ACCESSORY, accessory); in resolveActivity() [all …]
|
D | UsbService.java | 29 import android.hardware.usb.UsbManager; 296 function = UsbManager.USB_FUNCTION_NONE; in setCurrentFunction() 310 case UsbManager.USB_FUNCTION_NONE: in isSupportedCurrentFunction() 311 case UsbManager.USB_FUNCTION_AUDIO_SOURCE: in isSupportedCurrentFunction() 312 case UsbManager.USB_FUNCTION_MIDI: in isSupportedCurrentFunction() 313 case UsbManager.USB_FUNCTION_MTP: in isSupportedCurrentFunction() 314 case UsbManager.USB_FUNCTION_PTP: in isSupportedCurrentFunction() 315 case UsbManager.USB_FUNCTION_RNDIS: in isSupportedCurrentFunction()
|
D | UsbPortManager.java | 24 import android.hardware.usb.UsbManager; 550 final Intent intent = new Intent(UsbManager.ACTION_USB_PORT_CHANGED); in sendPortChangedBroadcastLocked() 552 intent.putExtra(UsbManager.EXTRA_PORT, portInfo.mUsbPort); in sendPortChangedBroadcastLocked() 553 intent.putExtra(UsbManager.EXTRA_PORT_STATUS, portInfo.mUsbPortStatus); in sendPortChangedBroadcastLocked()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
D | UsbDisconnectedReceiver.java | 26 import android.hardware.usb.UsbManager; 39 IntentFilter filter = new IntentFilter(UsbManager.ACTION_USB_DEVICE_DETACHED); in UsbDisconnectedReceiver() 47 IntentFilter filter = new IntentFilter(UsbManager.ACTION_USB_ACCESSORY_DETACHED); in UsbDisconnectedReceiver() 54 if (UsbManager.ACTION_USB_DEVICE_DETACHED.equals(action)) { in onReceive() 55 UsbDevice device = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); in onReceive() 59 } else if (UsbManager.ACTION_USB_ACCESSORY_DETACHED.equals(action)) { in onReceive() 61 (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onReceive()
|
D | UsbConfirmActivity.java | 29 import android.hardware.usb.UsbManager; 63 mDevice = (UsbDevice) intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); in onCreate() 64 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate() 123 intent = new Intent(UsbManager.ACTION_USB_DEVICE_ATTACHED); in onClick() 124 intent.putExtra(UsbManager.EXTRA_DEVICE, mDevice); in onClick() 136 intent = new Intent(UsbManager.ACTION_USB_ACCESSORY_ATTACHED); in onClick() 137 intent.putExtra(UsbManager.EXTRA_ACCESSORY, mAccessory); in onClick()
|
D | UsbDebuggingSecondaryUserActivity.java | 26 import android.hardware.usb.UsbManager; 67 if (UsbManager.ACTION_USB_STATE.equals(action)) { in onReceive() 68 boolean connected = intent.getBooleanExtra(UsbManager.USB_CONNECTED, false); in onReceive() 80 IntentFilter filter = new IntentFilter(UsbManager.ACTION_USB_STATE); in onStart()
|
D | UsbPermissionActivity.java | 29 import android.hardware.usb.UsbManager; 66 mDevice = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); in onCreate() 67 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate() 126 intent.putExtra(UsbManager.EXTRA_DEVICE, mDevice); in onDestroy() 136 intent.putExtra(UsbManager.EXTRA_ACCESSORY, mAccessory); in onDestroy() 145 intent.putExtra(UsbManager.EXTRA_PERMISSION_GRANTED, mPermissionGranted); in onDestroy()
|
D | UsbDebuggingActivity.java | 27 import android.hardware.usb.UsbManager; 93 if (!UsbManager.ACTION_USB_STATE.equals(action)) { in onReceive() 96 boolean connected = intent.getBooleanExtra(UsbManager.USB_CONNECTED, false); in onReceive() 106 IntentFilter filter = new IntentFilter(UsbManager.ACTION_USB_STATE); in onStart()
|
D | UsbResolverActivity.java | 25 import android.hardware.usb.UsbManager; 73 mDevice = (UsbDevice)target.getParcelableExtra(UsbManager.EXTRA_DEVICE); in onCreate() 77 mAccessory = (UsbAccessory)target.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate()
|
D | UsbAccessoryUriActivity.java | 24 import android.hardware.usb.UsbManager; 53 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate()
|
D | UsbStorageActivity.java | 30 import android.hardware.usb.UsbManager; 84 if (intent.getAction().equals(UsbManager.ACTION_USB_STATE)) { 171 registerReceiver(mUsbStateReceiver, new IntentFilter(UsbManager.ACTION_USB_STATE)); in onResume() 195 boolean connected = intent.getExtras().getBoolean(UsbManager.USB_CONNECTED); in handleUsbStateChanged()
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
D | SourceActivity.java | 29 import android.hardware.usb.UsbManager; 46 private UsbManager mUsbManager; 62 mUsbManager = (UsbManager)getSystemService(Context.USB_SERVICE); in onCreate() 74 filter.addAction(UsbManager.ACTION_USB_ACCESSORY_ATTACHED); in onCreate() 75 filter.addAction(UsbManager.ACTION_USB_ACCESSORY_DETACHED); in onCreate() 81 if (intent.getAction().equals(UsbManager.ACTION_USB_ACCESSORY_ATTACHED)) { in onCreate() 83 (UsbAccessory) intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate() 217 UsbManager.EXTRA_ACCESSORY); in onReceive() 220 if (action.equals(UsbManager.ACTION_USB_ACCESSORY_ATTACHED)) { in onReceive() 222 } else if (action.equals(UsbManager.ACTION_USB_ACCESSORY_DETACHED)) { in onReceive() [all …]
|
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
D | 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); in MtpClient() 158 filter.addAction(UsbManager.ACTION_USB_DEVICE_ATTACHED); in MtpClient() 159 filter.addAction(UsbManager.ACTION_USB_DEVICE_DETACHED); in MtpClient()
|
D | DeviceDisconnectedReceiver.java | 25 import android.hardware.usb.UsbManager; 39 IntentFilter filter = new IntentFilter(UsbManager.ACTION_USB_DEVICE_DETACHED); in DeviceDisconnectedReceiver() 45 UsbDevice device = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); in onReceive()
|
/frameworks/base/libs/usb/src/com/android/future/usb/ |
D | UsbManager.java | 36 public class UsbManager { class 69 private UsbManager(Context context, IUsbManager service) { in UsbManager() method in UsbManager 80 public static UsbManager getInstance(Context context) { in getInstance() 82 return new UsbManager(context, IUsbManager.Stub.asInterface(b)); in getInstance() 95 intent.getParcelableExtra(android.hardware.usb.UsbManager.EXTRA_ACCESSORY); in getAccessory()
|
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
D | SinkActivity.java | 32 import android.hardware.usb.UsbManager; 67 private UsbManager mUsbManager; 94 mUsbManager = (UsbManager)getSystemService(Context.USB_SERVICE); in onCreate() 116 filter.addAction(UsbManager.ACTION_USB_DEVICE_ATTACHED); in onCreate() 117 filter.addAction(UsbManager.ACTION_USB_DEVICE_DETACHED); in onCreate() 123 if (intent.getAction().equals(UsbManager.ACTION_USB_DEVICE_ATTACHED)) { in onCreate() 124 UsbDevice device = intent.<UsbDevice>getParcelableExtra(UsbManager.EXTRA_DEVICE); in onCreate() 490 UsbDevice device = intent.<UsbDevice>getParcelableExtra(UsbManager.EXTRA_DEVICE); in onReceive() 493 if (action.equals(UsbManager.ACTION_USB_DEVICE_ATTACHED)) { in onReceive() 495 } else if (action.equals(UsbManager.ACTION_USB_DEVICE_DETACHED)) { in onReceive() [all …]
|
/frameworks/base/libs/usb/tests/AccessoryChat/src/com/android/accessorychat/ |
D | AccessoryChat.java | 36 import android.hardware.usb.UsbManager; 56 private UsbManager mUsbManager; 67 … UsbAccessory accessory = (UsbAccessory) intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); 68 if (intent.getBooleanExtra(UsbManager.EXTRA_PERMISSION_GRANTED, false)) { 85 mUsbManager = (UsbManager) getSystemService(Context.USB_SERVICE); in onCreate()
|
/frameworks/base/docs/html/guide/topics/connectivity/usb/ |
D | accessory.jd | 117 <td>{@link android.hardware.usb.UsbManager}</td> 136 android.hardware.usb.UsbManager} object in the following manner:</p> 138 UsbManager manager = UsbManager.getInstance(this); 142 android.hardware.usb.UsbManager} object in the following manner:</p> 144 UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE); 152 UsbAccessory accessory = UsbManager.getAccessory(intent); 158 UsbAccessory accessory = (UsbAccessory) intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); 301 UsbAccessory accessory = UsbManager.getAccessory(intent); 306 UsbAccessory accessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); 314 <p>Use the {@link android.hardware.usb.UsbManager#getAccessoryList() getAccessoryList()} method [all …]
|
D | host.jd | 57 <td>{@link android.hardware.usb.UsbManager}</td> 109 android.hardware.usb.UsbManager} to retrieve the desired {@link android.hardware.usb.UsbDevice}. 254 UsbDevice device = (UsbDevice) intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); 261 android.hardware.usb.UsbManager#getDeviceList() getDeviceList()} method to get a hash map of all 265 UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE); 274 UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE); 301 android.hardware.usb.UsbManager#requestPermission requestPermission()}. The call to {@link 302 android.hardware.usb.UsbManager#requestPermission requestPermission()} displays a dialog to the 314 UsbDevice device = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); 316 if (intent.getBooleanExtra(UsbManager.EXTRA_PERMISSION_GRANTED, false)) { [all …]
|
/frameworks/base/docs/html/about/versions/ |
D | android-2.3.4.jd | 82 <li>Obtaining a {@link android.hardware.usb.UsbManager} object — To obtain 83 a {@link android.hardware.usb.UsbManager} object when using the add-on library, 88 <pre>UsbManager manager = UsbManager.getInstance(this);</pre></li> 97 <pre>UsbAccessory accessory = UsbManager.getAccessory(intent)</pre></li>
|
/frameworks/base/core/java/android/hardware/usb/ |
D | UsbManager.java | 47 public class UsbManager { class 279 public UsbManager(Context context, IUsbManager service) { in UsbManager() method in UsbManager
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Tethering.java | 29 import android.hardware.usb.UsbManager; 158 filter.addAction(UsbManager.ACTION_USB_STATE); in Tethering() 509 if (action.equals(UsbManager.ACTION_USB_STATE)) { in onReceive() 511 boolean usbConnected = intent.getBooleanExtra(UsbManager.USB_CONNECTED, false); in onReceive() 512 mRndisEnabled = intent.getBooleanExtra(UsbManager.USB_FUNCTION_RNDIS, false); in onReceive() 607 UsbManager usbManager = (UsbManager)mContext.getSystemService(Context.USB_SERVICE); in setUsbTethering() 615 usbManager.setCurrentFunction(UsbManager.USB_FUNCTION_RNDIS); in setUsbTethering()
|
/frameworks/base/core/java/android/app/ |
D | SystemServiceRegistry.java | 52 import android.hardware.usb.UsbManager; 444 registerService(Context.USB_SERVICE, UsbManager.class, in registerService() 445 new CachedServiceFetcher<UsbManager>() { in registerService() 447 public UsbManager createService(ContextImpl ctx) { in registerService() 449 return new UsbManager(ctx, IUsbManager.Stub.asInterface(b)); in registerService()
|
/frameworks/base/docs/html/tools/adk/ |
D | adk2.jd | 559 import com.android.future.usb.UsbManager; 561 mUSBManager = UsbManager.getInstance(this); 573 import android.hardware.usb.UsbManager 575 mUSBManager = (UsbManager) getSystemService(Context.USB_SERVICE); 577 intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY);
|