HomeSort by relevance Sort by last modified time
    Searched refs:accessory (Results 1 - 25 of 28) sorted by null

1 2

  /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...]
  /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);
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/services/java/com/android/server/usb/
UsbService.java 83 /* returns the currently attached USB accessory (device mode) */
92 /* opens the currently attached USB accessory (device mode) */
93 public ParcelFileDescriptor openAccessory(UsbAccessory accessory) {
95 return mDeviceManager.openAccessory(accessory);
106 public void setAccessoryPackage(UsbAccessory accessory, String packageName) {
108 mSettingsManager.setAccessoryPackage(accessory, packageName);
115 public boolean hasAccessoryPermission(UsbAccessory accessory) {
116 return mSettingsManager.hasPermission(accessory);
124 public void requestAccessoryPermission(UsbAccessory accessory, String packageName,
126 mSettingsManager.requestPermission(accessory, packageName, pi)
    [all...]
UsbSettingsManager.java 74 // Temporary mapping UsbAccessory to list of UIDs with permissions for the accessory
241 // This class is used to describe a USB accessory.
246 // USB accessory manufacturer (or null for unspecified)
248 // USB accessory model (or null for unspecified)
250 // USB accessory version (or null for unspecified)
259 public AccessoryFilter(UsbAccessory accessory) {
260 mManufacturer = accessory.getManufacturer();
261 mModel = accessory.getModel();
262 mVersion = accessory.getVersion();
288 serializer.startTag(null, "usb-accessory");
328 UsbAccessory accessory = (UsbAccessory)obj; local
    [all...]
UsbDeviceManager.java 139 String accessory = event.get("ACCESSORY");
142 } else if ("START".equals(accessory)) {
143 if (DEBUG) Slog.d(TAG, "got accessory start");
166 if (DEBUG) Slog.d(TAG, "accessory attached at boot");
197 // don't start accessory mode if our mandatory strings have not been set
497 Slog.d(TAG, "entering USB accessory mode: " + mCurrentAccessory);
506 // make sure accessory mode is off
508 Slog.d(TAG, "exited USB accessory mode");
723 /* returns the currently attached USB accessory */
    [all...]
  /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 59 $(verifier-zip) : $(HOST_OUT)/bin/cts-usb-accessory
65 $(hide) $(ACP) -fp $(HOST_OUT)/bin/cts-usb-accessory $(verifier-dir)/cts-usb-accessory
  /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...]
  /device/ti/panda/
device.mk 33 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml
37 com.android.future.usb.accessory
56 com.android.future.usb.accessory
  /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...]
  /build/target/product/
mini.mk 36 com.android.future.usb.accessory
46 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml
  /device/asus/grouper/
device-common.mk 66 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml
95 com.android.future.usb.accessory \
  /device/moto/wingray/
device_base.mk 62 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
89 com.android.future.usb.accessory \
  /device/samsung/tuna/
device.mk 143 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
193 com.android.future.usb.accessory
  /device/samsung/crespo/
device_base.mk 166 com.android.future.usb.accessory
191 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
  /prebuilts/sdk/12/
android.jar 
  /prebuilts/sdk/13/
android.jar 

Completed in 974 milliseconds

1 2