/frameworks/base/libs/usb/src/com/android/future/usb/ |
UsbManager.java | 40 * Broadcast Action: A broadcast for USB accessory attached event. 42 * This intent is sent when a USB accessory is attached. 44 * {@link com.google.android.usb.UsbAccessory} for the attached accessory. 50 * Broadcast Action: A broadcast for USB accessory detached event. 52 * This intent is sent when a USB accessory is detached. 54 * {@link com.google.android.usb.UsbAccessory} for the attached accessory that was detached. 88 * broadcast Intent. This can also be used to retrieve the accessory from the result 94 android.hardware.usb.UsbAccessory accessory = local 96 if (accessory == null) { 99 return new UsbAccessory(accessory); 111 android.hardware.usb.UsbAccessory accessory = mService.getCurrentAccessory(); local [all...] |
UsbAccessory.java | 20 * A class representing a USB accessory. 31 /* package */ UsbAccessory(android.hardware.usb.UsbAccessory accessory) { 32 mManufacturer = accessory.getManufacturer(); 33 mModel = accessory.getModel(); 34 mDescription = accessory.getDescription(); 35 mVersion = accessory.getVersion(); 36 mUri = accessory.getUri(); 37 mSerial = accessory.getSerial(); 41 * Returns the manufacturer of the accessory. 43 * @return the accessory manufacture 106 UsbAccessory accessory = (UsbAccessory)obj; local [all...] |
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
SourceActivity.java | 44 private static final String MODEL = "Accessory Display"; 71 mLogger.log("Waiting for accessory display sink to be attached to USB..."); 82 UsbAccessory accessory = local 84 if (accessory != null) { 85 onAccessoryAttached(accessory); 90 for (UsbAccessory accessory : accessories) { 91 onAccessoryAttached(accessory); 116 private void onAccessoryAttached(UsbAccessory accessory) { 117 mLogger.log("USB accessory attached: " + accessory); 216 UsbAccessory accessory = intent.<UsbAccessory>getParcelableExtra( local [all...] |
/cts/apps/cts-usb-accessory/ |
Android.mk | 25 LOCAL_SRC_FILES := cts-usb-accessory.c 27 LOCAL_MODULE := cts-usb-accessory
|
/frameworks/base/core/java/android/hardware/usb/ |
IUsbManager.aidl | 36 /* Returns the currently attached USB accessory */ 39 /* Returns a file descriptor for communicating with the USB accessory. 42 ParcelFileDescriptor openAccessory(in UsbAccessory accessory); 49 /* Sets the default package for a USB accessory 52 void setAccessoryPackage(in UsbAccessory accessory, String packageName, int userId); 57 /* Returns true if the caller has permission to access the accessory. */ 58 boolean hasAccessoryPermission(in UsbAccessory accessory); 66 /* Requests permission for the given package to access the accessory. 70 void requestAccessoryPermission(in UsbAccessory accessory, String packageName, 76 /* Grants permission for the given UID to access the accessory */ [all...] |
UsbManager.java | 68 * accessory function is enabled 103 * Broadcast Action: A broadcast for USB accessory attached event. 105 * This intent is sent when a USB accessory is attached. 108 * for the attached accessory 115 * Broadcast Action: A broadcast for USB accessory detached event. 117 * This intent is sent when a USB accessory is detached. 120 * for the attached accessory that was detached 191 * Name of the Accessory USB function. 196 public static final String USB_FUNCTION_ACCESSORY = "accessory"; 209 * containing the UsbAccessory object for the accessory 288 UsbAccessory accessory = mService.getCurrentAccessory(); local [all...] |
UsbAccessory.java | 25 * A class representing a USB accessory, which is an external hardware component 27 * The accessory is the USB host and android the device side of the USB connection. 29 * <p>When the accessory connects, it reports its manufacturer and model names, 30 * the version of the accessory, and a user visible description of the accessory to the device. 32 * an appropriate application for the accessory. 33 * The accessory may optionally provide a unique serial number 34 * and a URL to for the accessory's website to the device as well. 39 * for reading and writing data to and from the accessory. 99 * Returns the manufacturer name of the accessory 164 UsbAccessory accessory = (UsbAccessory)obj; local [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
UsbDisconnectedReceiver.java | 29 // if their device/accessory is disconnected while the dialog is still open 43 public UsbDisconnectedReceiver(Activity activity, UsbAccessory accessory) { 45 mAccessory = accessory; 60 UsbAccessory accessory = local 62 if (accessory != null && accessory.equals(mAccessory)) {
|
/device/google/accessory/demokit/app/ |
Android.mk | 26 LOCAL_JAVA_LIBRARIES := com.android.future.usb.accessory
|
/frameworks/base/libs/usb/ |
Android.mk | 25 LOCAL_MODULE:= com.android.future.usb.accessory
|
/frameworks/base/libs/usb/tests/AccessoryChat/src/com/android/accessorychat/ |
AccessoryChat.java | 67 UsbAccessory accessory = (UsbAccessory) intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); 69 if (accessory != null) { 70 openAccessory(accessory); 73 Log.d(TAG, "permission denied for accessory " + accessory); 103 UsbAccessory accessory = (accessories == null ? null : accessories[0]); local 104 if (accessory != null) { 105 if (mUsbManager.hasPermission(accessory)) { 106 openAccessory(accessory); 110 mUsbManager.requestPermission(accessory, mPermissionIntent) [all...] |
/device/google/accessory/demokit/app/src/com/google/android/DemoKit/ |
DemoKitActivity.java | 128 UsbAccessory accessory = UsbManager.getAccessory(intent); 131 openAccessory(accessory); 133 Log.d(TAG, "permission denied for accessory " 134 + accessory); 139 UsbAccessory accessory = UsbManager.getAccessory(intent); 140 if (accessory != null && accessory.equals(mAccessory)) { 188 UsbAccessory accessory = (accessories == null ? null : accessories[0]); local 189 if (accessory != null) { 190 if (mUsbManager.hasPermission(accessory)) { [all...] |
/cts/apps/CtsVerifier/ |
Android.mk | 64 $(verifier-zip) : $(HOST_OUT)/bin/cts-usb-accessory 70 $(hide) $(ACP) -fp $(HOST_OUT)/bin/cts-usb-accessory $(verifier-dir)/cts-usb-accessory
|
/frameworks/base/services/java/com/android/server/usb/ |
UsbSettingsManager.java | 84 // Temporary mapping UsbAccessory to list of UIDs with permissions for the accessory 251 // This class is used to describe a USB accessory. 256 // USB accessory manufacturer (or null for unspecified) 258 // USB accessory model (or null for unspecified) 260 // USB accessory version (or null for unspecified) 269 public AccessoryFilter(UsbAccessory accessory) { 270 mManufacturer = accessory.getManufacturer(); 271 mModel = accessory.getModel(); 272 mVersion = accessory.getVersion(); 298 serializer.startTag(null, "usb-accessory"); 338 UsbAccessory accessory = (UsbAccessory)obj; local [all...] |
UsbService.java | 142 /* returns the currently attached USB accessory (device mode) */ 152 /* opens the currently attached USB accessory (device mode) */ 154 public ParcelFileDescriptor openAccessory(UsbAccessory accessory) { 156 return mDeviceManager.openAccessory(accessory); 169 public void setAccessoryPackage(UsbAccessory accessory, String packageName, int userId) { 171 getSettingsForUser(userId).setAccessoryPackage(accessory, packageName); 181 public boolean hasAccessoryPermission(UsbAccessory accessory) { 183 return getSettingsForUser(userId).hasPermission(accessory); 194 UsbAccessory accessory, String packageName, PendingIntent pi) { 196 getSettingsForUser(userId).requestPermission(accessory, packageName, pi) [all...] |
UsbDeviceManager.java | 101 // Time we received a request to enter USB accessory mode 149 String accessory = event.get("ACCESSORY"); 152 } else if ("START".equals(accessory)) { 153 if (DEBUG) Slog.d(TAG, "got accessory start"); 171 if (DEBUG) Slog.d(TAG, "accessory attached at boot"); 219 // don't start accessory mode if our mandatory strings have not been set 532 // We are entering accessory mode if we have received a request from the host 540 // successfully entered accessory mode 544 Slog.d(TAG, "entering USB accessory mode: " + mCurrentAccessory) [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/ |
UsbAccessoryTestActivity.java | 52 * Test for USB accessories. The test activity interacts with a cts-usb-accessory program that 53 * acts as an accessory by exchanging a series of messages. 82 // Don't allow a test pass until the accessory and the Android device exchange messages... 142 UsbAccessory accessory = intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); local 144 openAccessory(accessory); 153 private void openAccessory(UsbAccessory accessory) { 154 mFileDescriptor = mUsbManager.openAccessory(accessory); 298 UsbAccessory accessory = accessories != null && accessories.length > 0 local 301 if (accessory != null) { 302 if (mUsbManager.hasPermission(accessory)) { [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/analyzer/ |
AutoLockTest.java | 90 /** USB accessory pointing to the ADK. */ 99 /** Boolean to tell whether the accessory is opened. */ 124 UsbAccessory accessory = 129 Log.v(TAG, "Open accessory 3"); 130 openAccessory(accessory); 138 Log.d(TAG, "permission denied for accessory " + accessory); 145 // Closes the accessory if it has not been closed. 148 UsbAccessory accessory = 150 if (accessory != null && accessory.equals(mAccessory)) 265 UsbAccessory accessory = (accessories == null ? null : accessories[0]); local [all...] |
/device/generic/armv7-a-neon/ |
mini_common.mk | 46 com.android.future.usb.accessory \ 94 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
|
/device/asus/grouper/ |
device-common.mk | 61 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml 81 com.android.future.usb.accessory
|
/device/asus/flo/ |
device-common.mk | 111 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ 149 com.android.future.usb.accessory
|
/device/lge/mako/ |
device.mk | 99 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ 162 com.android.future.usb.accessory
|
/device/samsung/manta/ |
device.mk | 60 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ 138 com.android.future.usb.accessory
|
/device/lge/hammerhead/ |
device.mk | 81 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ 198 com.android.future.usb.accessory
|
/prebuilts/sdk/12/ |
android.jar | |