/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/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/java/com/android/server/usb/ |
D | UsbSettingsManager.java | 269 public AccessoryFilter(UsbAccessory accessory) { in AccessoryFilter() argument 270 mManufacturer = accessory.getManufacturer(); in AccessoryFilter() 271 mModel = accessory.getModel(); in AccessoryFilter() 272 mVersion = accessory.getVersion(); in AccessoryFilter() 338 UsbAccessory accessory = (UsbAccessory)obj; in equals() local 339 return (mManufacturer.equals(accessory.getManufacturer()) && in equals() 340 mModel.equals(accessory.getModel()) && in equals() 341 mVersion.equals(accessory.getVersion())); in equals() 541 UsbDevice device, UsbAccessory accessory) { in packageMatchesLocked() argument 561 else if (accessory != null && "usb-accessory".equals(tagName)) { in packageMatchesLocked() [all …]
|
D | UsbService.java | 154 public ParcelFileDescriptor openAccessory(UsbAccessory accessory) { in openAccessory() argument 156 return mDeviceManager.openAccessory(accessory); in openAccessory() 169 public void setAccessoryPackage(UsbAccessory accessory, String packageName, int userId) { in setAccessoryPackage() argument 171 getSettingsForUser(userId).setAccessoryPackage(accessory, packageName); in setAccessoryPackage() 181 public boolean hasAccessoryPermission(UsbAccessory accessory) { in hasAccessoryPermission() argument 183 return getSettingsForUser(userId).hasPermission(accessory); in hasAccessoryPermission() 194 UsbAccessory accessory, String packageName, PendingIntent pi) { in requestAccessoryPermission() argument 196 getSettingsForUser(userId).requestPermission(accessory, packageName, pi); in requestAccessoryPermission() 207 public void grantAccessoryPermission(UsbAccessory accessory, int uid) { in grantAccessoryPermission() argument 210 getSettingsForUser(userId).grantAccessoryPermission(accessory, uid); in grantAccessoryPermission()
|
D | UsbDeviceManager.java | 142 String accessory = event.get("ACCESSORY"); 145 } else if ("START".equals(accessory)) { 779 public ParcelFileDescriptor openAccessory(UsbAccessory accessory) { in openAccessory() argument 784 if (!currentAccessory.equals(accessory)) { in openAccessory() 785 String error = accessory.toString() in openAccessory() 790 getCurrentSettings().checkPermission(accessory); in openAccessory()
|
/frameworks/base/core/java/android/hardware/usb/ |
D | UsbManager.java | 288 UsbAccessory accessory = mService.getCurrentAccessory(); in getAccessoryList() local 289 if (accessory == null) { in getAccessoryList() 292 return new UsbAccessory[] { accessory }; in getAccessoryList() 306 public ParcelFileDescriptor openAccessory(UsbAccessory accessory) { in openAccessory() argument 308 return mService.openAccessory(accessory); in openAccessory() 342 public boolean hasPermission(UsbAccessory accessory) { in hasPermission() argument 344 return mService.hasAccessoryPermission(accessory); in hasPermission() 395 public void requestPermission(UsbAccessory accessory, PendingIntent pi) { in requestPermission() argument 397 mService.requestAccessoryPermission(accessory, mContext.getPackageName(), pi); in requestPermission()
|
D | IUsbManager.aidl | 42 ParcelFileDescriptor openAccessory(in UsbAccessory accessory); in openAccessory() argument 52 void setAccessoryPackage(in UsbAccessory accessory, String packageName, int userId); in setAccessoryPackage() argument 58 boolean hasAccessoryPermission(in UsbAccessory accessory); in hasAccessoryPermission() argument 70 void requestAccessoryPermission(in UsbAccessory accessory, String packageName, in requestAccessoryPermission() argument 77 void grantAccessoryPermission(in UsbAccessory accessory, int uid); in grantAccessoryPermission() argument
|
D | UsbAccessory.java | 164 UsbAccessory accessory = (UsbAccessory)obj; in equals() local 165 return (compare(mManufacturer, accessory.getManufacturer()) && in equals() 166 compare(mModel, accessory.getModel()) && in equals() 167 compare(mDescription, accessory.getDescription()) && in equals() 168 compare(mVersion, accessory.getVersion()) && in equals() 169 compare(mUri, accessory.getUri()) && in equals() 170 compare(mSerial, accessory.getSerial())); in equals()
|
/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/docs/html/tools/adk/ |
D | adk.jd | 33 <li><a href="#determine-adk">Determine the connected device's accessory mode 36 <li><a href="#start-adk">Attempt to start the device in accessory mode</a></li> 52 …<li><a href="{@docRoot}guide/topics/connectivity/usb/accessory.html">USB Accessory Dev Guide</a></… 60 prototyping platform</a>. The accessory's hardware design files, code that implements the 61 accessory's firmware, and the Android application that interacts with the accessory are provided 81 to develop accessories that support the Android accessory protocol. For more information, see 115 Android USB accessory. The ADK board provides input and output pins that you can implement 137 runs on the ADK board and is written in C++. The sketch calls the Android accessory protocol 142 <li>The Android accessory protocol library, which is located in the 144 enumerate the bus, find a connected Android-powered device that supports accessory mode, and [all …]
|
D | adk2.jd | 36 <li><a href="{@docRoot}guide/topics/connectivity/usb/accessory.html"> 44 designed to help Android hardware accessory builders and software developers create accessories 147 <li>Select <strong>Search for Devices</strong> to locate the ADK 2012 accessory and follow 154 interacting with the ADK accessory.</li> 164 <p class="note"><strong>Note:</strong> Your device must support Android USB accessory 207 <p class="note"><strong>Note:</strong> Your device must support Android USB accessory 272 software and program the ADK 2012 accessory. The following instructions explain how to setup and run 315 accessory to an Android device over Bluetooth.</li> 317 accessory to an Android device through a USB cable.</li> 336 to load software onto accessory hardware may be inconvenient or undesirable.</p> [all …]
|
D | index.jd | 15 devices, over a USB cable or through a Bluetooth connection. If you are building an accessory that 17 between your accessory hardware and Android. For more information, see the
|
/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/libs/usb/ |
D | Android.mk | 25 LOCAL_MODULE:= com.android.future.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/docs/html/about/ |
D | start.jd | 43 device hardware, connected accessory devices, the Internet, software features, and more.
|
/frameworks/base/docs/html/distribute/googleplay/promote/ |
D | brand.jd | 24 <li>"Android" by itself cannot be used in the name of an application name or accessory product.
|
/frameworks/base/docs/html/guide/topics/manifest/ |
D | uses-feature-element.jd | 821 <td><code>android.hardware.usb.accessory</code></td> 822 <td>The application uses USB accessory features (behaves as the USB device and connects to USB
|
/frameworks/base/docs/html/ |
D | sitemap.txt | 324 http://developer.android.com/guide/topics/connectivity/usb/accessory.html
|
/frameworks/base/api/ |
D | current.txt | 6985 …ield public static final java.lang.String FEATURE_USB_ACCESSORY = "android.hardware.usb.accessory"; 10648 field public static final java.lang.String EXTRA_ACCESSORY = "accessory";
|