Searched refs:mAccessory (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
D | UsbDialogHelper.java | 48 private final UsbAccessory mAccessory; field in UsbDialogHelper 71 mAccessory = intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in UsbDialogHelper() 73 if (mDevice == null && mAccessory == null) { in UsbDialogHelper() 110 mDisconnectedReceiver = new UsbDisconnectedReceiver(activity, mAccessory); in registerUsbDisconnectedReceiver() 174 mUsbService.grantAccessoryPermission(mAccessory, mUid); in grantUidAccessPermission() 190 mUsbService.setAccessoryPackage(mAccessory, mPackageName, userId); in setDefaultPackage() 206 mUsbService.setAccessoryPackage(mAccessory, null, userId); in clearDefaultPackage() 225 intent.putExtra(UsbManager.EXTRA_ACCESSORY, mAccessory); in confirmDialogStartActivity() 250 intent.putExtra(UsbManager.EXTRA_ACCESSORY, mAccessory); in sendPermissionDialogResponse() 274 desc = mAccessory.getDescription(); in getDeviceDescription() [all …]
|
D | UsbResolverActivity.java | 53 private UsbAccessory mAccessory; field in UsbResolverActivity 100 mAccessory = (UsbAccessory)target.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate() 101 if (mAccessory == null) { in onCreate() 107 mDisconnectedReceiver = new UsbDisconnectedReceiver(this, mAccessory); in onCreate() 128 if (mAccessory != null) { in onCreate() 129 mOtherProfileIntent.putExtra(UsbManager.EXTRA_ACCESSORY, mAccessory); in onCreate() 181 } else if (mAccessory != null) { in onTargetSelected() 183 service.grantAccessoryPermission(mAccessory, uid); in onTargetSelected() 186 service.setAccessoryPackage(mAccessory, ri.activityInfo.packageName, userId); in onTargetSelected() 188 service.setAccessoryPackage(mAccessory, null, userId); in onTargetSelected()
|
D | UsbDisconnectedReceiver.java | 33 private UsbAccessory mAccessory; field in UsbDisconnectedReceiver 45 mAccessory = accessory; in UsbDisconnectedReceiver() 62 if (accessory != null && accessory.equals(mAccessory)) { in onReceive()
|
D | UsbAccessoryUriActivity.java | 49 private UsbAccessory mAccessory; field in UsbAccessoryUriActivity 73 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate() 91 ap.mTitle = mAccessory.getDescription(); in onCreate()
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
D | SourceActivity.java | 53 private UsbAccessory mAccessory; field in SourceActivity 125 if (mConnected && accessory.equals(mAccessory)) { in onAccessoryDetached() 162 mAccessory = accessory; in connect() 169 mLogger.log("Disconnecting from accessory: " + mAccessory); in disconnect() 174 mAccessory = null; in disconnect()
|
/frameworks/base/tests/UsbHostExternalManagmentTest/AoapTestDevice/src/com/android/hardware/usb/aoapdevicetest/ |
D | UsbAoapDeviceTestActivity.java | 47 private UsbAccessory mAccessory; field in UsbAoapDeviceTestActivity 112 mAccessory = accessory; in onAccessoryAttached() 168 if (mAccessory != null && mAccessory.equals(accessory)) { in onReceive()
|