Home
last modified time | relevance | path

Searched refs:mAccessory (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DUsbResolverActivity.java51 private UsbAccessory mAccessory; field in UsbResolverActivity
95 mAccessory = (UsbAccessory)target.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate()
96 if (mAccessory == null) { in onCreate()
101 mDisconnectedReceiver = new UsbDisconnectedReceiver(this, mAccessory); in onCreate()
119 if (mAccessory != null) { in onCreate()
120 mOtherProfileIntent.putExtra(UsbManager.EXTRA_ACCESSORY, mAccessory); in onCreate()
172 } else if (mAccessory != null) { in onTargetSelected()
174 service.grantAccessoryPermission(mAccessory, uid); in onTargetSelected()
177 service.setAccessoryPackage(mAccessory, ri.activityInfo.packageName, userId); in onTargetSelected()
179 service.setAccessoryPackage(mAccessory, null, userId); in onTargetSelected()
DUsbPermissionActivity.java55 private UsbAccessory mAccessory; field in UsbPermissionActivity
68 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate()
92 mAccessory.getDescription()); in onCreate()
93 mDisconnectedReceiver = new UsbDisconnectedReceiver(this, mAccessory); in onCreate()
117 if (!useRecordWarning && canBeDefault && (mDevice != null || mAccessory != null)) { in onCreate()
125 mAccessory.getDescription())); in onCreate()
158 if (mAccessory != null) { in onDestroy()
159 intent.putExtra(UsbManager.EXTRA_ACCESSORY, mAccessory); in onDestroy()
161 service.grantAccessoryPermission(mAccessory, mUid); in onDestroy()
164 service.setAccessoryPackage(mAccessory, mPackageName, userId); in onDestroy()
DUsbConfirmActivity.java56 private UsbAccessory mAccessory; field in UsbConfirmActivity
70 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate()
82 mAccessory.getDescription()); in onCreate()
83 mDisconnectedReceiver = new UsbDisconnectedReceiver(this, mAccessory); in onCreate()
114 mAccessory.getDescription())); in onCreate()
159 } else if (mAccessory != null) { in onClick()
161 intent.putExtra(UsbManager.EXTRA_ACCESSORY, mAccessory); in onClick()
164 service.grantAccessoryPermission(mAccessory, uid); in onClick()
168 mAccessory, mResolveInfo.activityInfo.packageName, userId); in onClick()
170 service.setAccessoryPackage(mAccessory, null, userId); in onClick()
DUsbDisconnectedReceiver.java33 private UsbAccessory mAccessory; field in UsbDisconnectedReceiver
45 mAccessory = accessory; in UsbDisconnectedReceiver()
62 if (accessory != null && accessory.equals(mAccessory)) { in onReceive()
DUsbAccessoryUriActivity.java45 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/
DSourceActivity.java53 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/
DUsbAoapDeviceTestActivity.java47 private UsbAccessory mAccessory; field in UsbAoapDeviceTestActivity
112 mAccessory = accessory; in onAccessoryAttached()
168 if (mAccessory != null && mAccessory.equals(accessory)) { in onReceive()