Searched refs:mAccessory (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
D | UsbResolverActivity.java | 50 private UsbAccessory mAccessory; field in UsbResolverActivity 92 mAccessory = (UsbAccessory)target.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate() 93 if (mAccessory == null) { in onCreate() 98 mDisconnectedReceiver = new UsbDisconnectedReceiver(this, mAccessory); in onCreate() 116 if (mAccessory != null) { in onCreate() 117 mOtherProfileIntent.putExtra(UsbManager.EXTRA_ACCESSORY, mAccessory); in onCreate() 167 } else if (mAccessory != null) { in onTargetSelected() 169 service.grantAccessoryPermission(mAccessory, uid); in onTargetSelected() 172 service.setAccessoryPackage(mAccessory, ri.activityInfo.packageName, userId); in onTargetSelected() 174 service.setAccessoryPackage(mAccessory, null, userId); in onTargetSelected()
|
D | UsbConfirmActivity.java | 53 private UsbAccessory mAccessory; field in UsbConfirmActivity 64 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate() 74 mAccessory.getDescription()); in onCreate() 75 mDisconnectedReceiver = new UsbDisconnectedReceiver(this, mAccessory); in onCreate() 93 mAccessory.getDescription())); in onCreate() 138 } else if (mAccessory != null) { in onClick() 140 intent.putExtra(UsbManager.EXTRA_ACCESSORY, mAccessory); in onClick() 143 service.grantAccessoryPermission(mAccessory, uid); in onClick() 147 mAccessory, mResolveInfo.activityInfo.packageName, userId); in onClick() 149 service.setAccessoryPackage(mAccessory, null, userId); in onClick()
|
D | UsbPermissionActivity.java | 54 private UsbAccessory mAccessory; field in UsbPermissionActivity 67 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate() 88 mAccessory.getDescription()); in onCreate() 89 mDisconnectedReceiver = new UsbDisconnectedReceiver(this, mAccessory); in onCreate() 100 if (canBeDefault && (mDevice != null || mAccessory != null)) { in onCreate() 108 mAccessory.getDescription())); in onCreate() 141 if (mAccessory != null) { in onDestroy() 142 intent.putExtra(UsbManager.EXTRA_ACCESSORY, mAccessory); in onDestroy() 144 service.grantAccessoryPermission(mAccessory, mUid); in onDestroy() 147 service.setAccessoryPackage(mAccessory, mPackageName, userId); in onDestroy()
|
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 | 45 private UsbAccessory mAccessory; field in UsbAccessoryUriActivity 53 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate() 71 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()
|