/frameworks/base/libs/usb/src/com/android/future/usb/ |
D | UsbManager.java | 94 android.hardware.usb.UsbAccessory accessory = in getAccessory() local 96 if (accessory == null) { in getAccessory() 99 return new UsbAccessory(accessory); in getAccessory() 111 android.hardware.usb.UsbAccessory accessory = mService.getCurrentAccessory(); in getAccessoryList() local 112 if (accessory == null) { in getAccessoryList() 115 return new UsbAccessory[] { new UsbAccessory(accessory) }; in getAccessoryList() 129 public ParcelFileDescriptor openAccessory(UsbAccessory accessory) { in openAccessory() argument 132 accessory.getManufacturer(),accessory.getModel(), in openAccessory() 133 accessory.getDescription(), accessory.getVersion(), in openAccessory() 134 accessory.getUri(), accessory.getSerial())); in openAccessory() [all …]
|
D | UsbAccessory.java | 31 /* package */ UsbAccessory(android.hardware.usb.UsbAccessory accessory) { in UsbAccessory() argument 32 mManufacturer = accessory.getManufacturer(); in UsbAccessory() 33 mModel = accessory.getModel(); in UsbAccessory() 34 mDescription = accessory.getDescription(); in UsbAccessory() 35 mVersion = accessory.getVersion(); in UsbAccessory() 36 mUri = accessory.getUri(); in UsbAccessory() 37 mSerial = accessory.getSerial(); in UsbAccessory() 106 UsbAccessory accessory = (UsbAccessory)obj; in equals() local 107 return (compare(mManufacturer, accessory.getManufacturer()) && in equals() 108 compare(mModel, accessory.getModel()) && in equals() [all …]
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
D | SourceActivity.java | 82 UsbAccessory accessory = in onCreate() local 84 if (accessory != null) { in onCreate() 85 onAccessoryAttached(accessory); in onCreate() 90 for (UsbAccessory accessory : accessories) { in onCreate() 91 onAccessoryAttached(accessory); in onCreate() 116 private void onAccessoryAttached(UsbAccessory accessory) { in onAccessoryAttached() argument 117 mLogger.log("USB accessory attached: " + accessory); in onAccessoryAttached() 119 connect(accessory); in onAccessoryAttached() 123 private void onAccessoryDetached(UsbAccessory accessory) { in onAccessoryDetached() argument 124 mLogger.log("USB accessory detached: " + accessory); in onAccessoryDetached() [all …]
|
/frameworks/base/docs/html/guide/topics/connectivity/usb/ |
D | accessory.jd | 32 <li><a href="#discovering-a">Discovering an accessory</a></li> 35 accessory</a></li> 37 <li><a href="#communicating-a">Communicating with an accessory</a></li> 39 <li><a href="#terminating-a">Terminating communication with an accessory</a></li> 53 <p>USB accessory mode allows users to connect 55 to the Android accessory protocol outlined in the <a href= 58 hardware. When an Android-powered device is in USB accessory mode, the attached Android USB 59 accessory acts as the host, provides power to the USB bus, and enumerates connected devices. 60 Android 3.1 (API level 12) supports USB accessory mode and the feature is also backported to 65 <p>Although the USB accessory APIs were introduced to the platform in Android 3.1, they are also [all …]
|
D | index.jd | 9 <li><a href="{@docRoot}guide/topics/connectivity/usb/accessory.html">USB Accessory</a></li> 17 implements the Android accessory protocol) through two modes: USB accessory and USB host. In USB 18 accessory mode, the external USB hardware act as the USB hosts. Examples of accessories might 23 "http://accessories.android.com/demokit">Android accessory communication protocol</a>. In USB 31 accessory mode, the connected USB hardware (an Android USB accessory in this case) acts as the 32 host and powers the bus.</p><img src="{@docRoot}images/usb-host-accessory.png" alt=""> 36 <p>USB accessory and host modes are directly supported in Android 3.1 (API level 12) or newer 37 platforms. USB accessory mode is also backported to Android 2.3.4 (API level 10) as an add-on 41 <p class="note"><strong>Note:</strong> Support for USB host and accessory modes are ultimately 43 support USB host and accessory through a <a href= [all …]
|
/frameworks/base/libs/usb/tests/AccessoryChat/src/com/android/accessorychat/ |
D | 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]); in onResume() local 104 if (accessory != null) { in onResume() 105 if (mUsbManager.hasPermission(accessory)) { in onResume() 106 openAccessory(accessory); in onResume() 110 mUsbManager.requestPermission(accessory, mPermissionIntent); in onResume() 139 private void openAccessory(UsbAccessory accessory) { in openAccessory() argument [all …]
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbSettingsManager.java | 385 public AccessoryFilter(UsbAccessory accessory) { in AccessoryFilter() argument 386 mManufacturer = accessory.getManufacturer(); in AccessoryFilter() 387 mModel = accessory.getModel(); in AccessoryFilter() 388 mVersion = accessory.getVersion(); in AccessoryFilter() 454 UsbAccessory accessory = (UsbAccessory)obj; in equals() local 455 return (mManufacturer.equals(accessory.getManufacturer()) && in equals() 456 mModel.equals(accessory.getModel()) && in equals() 457 mVersion.equals(accessory.getVersion())); in equals() 670 UsbDevice device, UsbAccessory accessory) { in packageMatchesLocked() argument 690 else if (accessory != null && "usb-accessory".equals(tagName)) { in packageMatchesLocked() [all …]
|
D | UsbService.java | 212 public ParcelFileDescriptor openAccessory(UsbAccessory accessory) { in openAccessory() argument 214 return mDeviceManager.openAccessory(accessory); in openAccessory() 227 public void setAccessoryPackage(UsbAccessory accessory, String packageName, int userId) { in setAccessoryPackage() argument 229 getSettingsForUser(userId).setAccessoryPackage(accessory, packageName); in setAccessoryPackage() 239 public boolean hasAccessoryPermission(UsbAccessory accessory) { in hasAccessoryPermission() argument 241 return getSettingsForUser(userId).hasPermission(accessory); in hasAccessoryPermission() 252 UsbAccessory accessory, String packageName, PendingIntent pi) { in requestAccessoryPermission() argument 254 getSettingsForUser(userId).requestPermission(accessory, packageName, pi); in requestAccessoryPermission() 265 public void grantAccessoryPermission(UsbAccessory accessory, int uid) { in grantAccessoryPermission() argument 268 getSettingsForUser(userId).grantAccessoryPermission(accessory, uid); in grantAccessoryPermission()
|
D | UsbDeviceManager.java | 175 String accessory = event.get("ACCESSORY"); 178 } else if ("START".equals(accessory)) { 928 public ParcelFileDescriptor openAccessory(UsbAccessory accessory) { 933 if (!currentAccessory.equals(accessory)) { 934 String error = accessory.toString() 939 getCurrentSettings().checkPermission(accessory);
|
/frameworks/base/core/java/android/hardware/usb/ |
D | UsbAccessory.java | 162 UsbAccessory accessory = (UsbAccessory)obj; in equals() local 163 return (compare(mManufacturer, accessory.getManufacturer()) && in equals() 164 compare(mModel, accessory.getModel()) && in equals() 165 compare(mDescription, accessory.getDescription()) && in equals() 166 compare(mVersion, accessory.getVersion()) && in equals() 167 compare(mUri, accessory.getUri()) && in equals() 168 compare(mSerial, accessory.getSerial())); in equals()
|
D | UsbManager.java | 352 UsbAccessory accessory = mService.getCurrentAccessory(); in getAccessoryList() local 353 if (accessory == null) { in getAccessoryList() 356 return new UsbAccessory[] { accessory }; in getAccessoryList() 369 public ParcelFileDescriptor openAccessory(UsbAccessory accessory) { in openAccessory() argument 371 return mService.openAccessory(accessory); in openAccessory() 403 public boolean hasPermission(UsbAccessory accessory) { in hasPermission() argument 405 return mService.hasAccessoryPermission(accessory); in hasPermission() 455 public void requestPermission(UsbAccessory accessory, PendingIntent pi) { in requestPermission() argument 457 mService.requestAccessoryPermission(accessory, mContext.getPackageName(), pi); in requestPermission()
|
D | IUsbManager.aidl | 44 ParcelFileDescriptor openAccessory(in UsbAccessory accessory); in openAccessory() argument 54 void setAccessoryPackage(in UsbAccessory accessory, String packageName, int userId); in setAccessoryPackage() argument 60 boolean hasAccessoryPermission(in UsbAccessory accessory); in hasAccessoryPermission() argument 72 void requestAccessoryPermission(in UsbAccessory accessory, String packageName, in requestAccessoryPermission() argument 79 void grantAccessoryPermission(in UsbAccessory accessory, int uid); in grantAccessoryPermission() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
D | UsbDisconnectedReceiver.java | 43 public UsbDisconnectedReceiver(Activity activity, UsbAccessory accessory) { in UsbDisconnectedReceiver() argument 45 mAccessory = accessory; in UsbDisconnectedReceiver() 60 UsbAccessory accessory = in onReceive() local 62 if (accessory != null && accessory.equals(mAccessory)) { in onReceive()
|
/frameworks/base/libs/usb/tests/AccessoryChat/ |
D | README.txt | 1 This is a test app for the USB accessory APIs. It consists of two parts: 7 This program behaves as if it were a USB accessory.
|
/frameworks/base/docs/html/about/versions/ |
D | android-2.3.4.jd | 91 — When you filter for a connected device or accessory with an intent 97 <pre>UsbAccessory accessory = UsbManager.getAccessory(intent)</pre></li> 104 a peripheral only, with the connected accessory functioning as USB host 124 appropriate accessory support. To request filtering, add the element below 128 android:name="android.hardware.usb.accessory"
|
D | android-3.1-highlights.jd | 95 accessory is attached, the framework will look for a corresponding application 96 and offer to launch it for the user. The accessory can also present a URL 270 <h3 id="accessory">Open Accessory API for rich interaction with 283 <p>When a user plugs in a USB accessory, the platform receives 284 identifying information such as product name, accessory type, manufacturer, and 285 version. The platform sets up communication with the accessory and uses its 287 an accessory can provide a URL that lets users find and download an 288 app that works with the accessory. These discovery features make 292 <p>For application developers and accessory manufacturers, accessory mode offers 297 accessories, see the <a href="{@docRoot}guide/topics/connectivity/usb/accessory.html">USB
|
D | android-3.1.jd | 67 <li>A <em>USB accessory</em> is a piece of connected hardware that has a USB 86 system broadcasts, to announce when a USB device or accessory is attached or 109 for USB host and open accessory modes on specific devices is determined by 128 android:name="android.hardware.usb.accessory" 816 android.hardware.usb.accessory} — The application uses the <a href="#usb">USB
|
/frameworks/base/libs/usb/ |
D | Android.mk | 25 LOCAL_MODULE:= com.android.future.usb.accessory
|
/frameworks/base/libs/usb/tests/accessorytest/ |
D | Android.mk | 10 LOCAL_SRC_FILES := accessory.c \
|
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Settings/ |
D | device_for_strategy_accessibility.pfw | 372 # Media strategy inverts the priority of USB device vs accessory 403 # but USB accessory not reachable in call 406 # Media strategy inverts the priority of USB device vs accessory 497 # Media strategy inverts the priority of USB device vs accessory
|
D | device_for_strategy_dtmf.pfw | 339 # Media strategy inverts the priority of USB device vs accessory 370 # but USB accessory not reachable in call 373 # Media strategy inverts the priority of USB device vs accessory 464 # Media strategy inverts the priority of USB device vs accessory
|
D | device_for_strategy_phone.pfw | 268 # In case of Force Speaker, priority between device and accessory are
|
/frameworks/base/tests/AccessoryDisplay/ |
D | README | 12 to be connected using the USB accessory protocol. Think of it as
|
/frameworks/base/docs/html/about/ |
D | start.jd | 44 device hardware, connected accessory devices, the Internet, software features, and more.
|
/frameworks/base/docs/html/distribute/tools/promote/ |
D | brand.jd | 37 <li>"Android" cannot be used in names of applications or accessory products,
|