Home
last modified time | relevance | path

Searched refs:UsbAccessory (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/base/libs/usb/src/com/android/future/usb/
DUsbManager.java93 public static UsbAccessory getAccessory(Intent intent) { in getAccessory()
94 android.hardware.usb.UsbAccessory accessory = in getAccessory()
99 return new UsbAccessory(accessory); in getAccessory()
109 public UsbAccessory[] getAccessoryList() { in getAccessoryList()
111 android.hardware.usb.UsbAccessory accessory = mService.getCurrentAccessory(); in getAccessoryList()
115 return new UsbAccessory[] { new UsbAccessory(accessory) }; in getAccessoryList()
129 public ParcelFileDescriptor openAccessory(UsbAccessory accessory) { in openAccessory()
131 return mService.openAccessory(new android.hardware.usb.UsbAccessory( in openAccessory()
150 public boolean hasPermission(UsbAccessory accessory) { in hasPermission()
152 return mService.hasAccessoryPermission(new android.hardware.usb.UsbAccessory( in hasPermission()
[all …]
DUsbAccessory.java22 public class UsbAccessory { class
31 /* package */ UsbAccessory(android.hardware.usb.UsbAccessory accessory) { in UsbAccessory() method in UsbAccessory
105 if (obj instanceof UsbAccessory) { in equals()
106 UsbAccessory accessory = (UsbAccessory)obj; in equals()
/frameworks/base/core/java/android/hardware/usb/
DUsbAccessory.java51 public class UsbAccessory implements Parcelable { class
79 public UsbAccessory(@NonNull String manufacturer, @NonNull String model, in UsbAccessory() method in UsbAccessory
104 public UsbAccessory(@NonNull String manufacturer, @NonNull String model, in UsbAccessory() method in UsbAccessory
188 if (obj instanceof UsbAccessory) { in equals()
189 UsbAccessory accessory = (UsbAccessory)obj; in equals()
218 public static final @android.annotation.NonNull Parcelable.Creator<UsbAccessory> CREATOR =
219 new Parcelable.Creator<UsbAccessory>() {
220 public UsbAccessory createFromParcel(Parcel in) {
229 return new UsbAccessory(manufacturer, model, description, version, uri,
233 public UsbAccessory[] newArray(int size) {
[all …]
DIUsbManager.aidl21 import android.hardware.usb.UsbAccessory;
40 UsbAccessory getCurrentAccessory(); in getCurrentAccessory()
45 ParcelFileDescriptor openAccessory(in UsbAccessory accessory); in openAccessory()
55 void setAccessoryPackage(in UsbAccessory accessory, String packageName, int userId); in setAccessoryPackage()
61 boolean hasAccessoryPermission(in UsbAccessory accessory); in hasAccessoryPermission()
73 void requestAccessoryPermission(in UsbAccessory accessory, String packageName, in requestAccessoryPermission()
80 void grantAccessoryPermission(in UsbAccessory accessory, int uid); in grantAccessoryPermission()
DAccessoryFilter.java53 public AccessoryFilter(UsbAccessory accessory) { in AccessoryFilter()
95 public boolean matches(UsbAccessory acc) { in matches()
128 if (obj instanceof UsbAccessory) { in equals()
129 UsbAccessory accessory = (UsbAccessory)obj; in equals()
DUsbManager.java452 public UsbAccessory[] getAccessoryList() { in getAccessoryList()
457 UsbAccessory accessory = mService.getCurrentAccessory(); in getAccessoryList()
461 return new UsbAccessory[] { accessory }; in getAccessoryList()
479 public ParcelFileDescriptor openAccessory(UsbAccessory accessory) { in openAccessory()
540 public boolean hasPermission(UsbAccessory accessory) { in hasPermission()
601 public void requestPermission(UsbAccessory accessory, PendingIntent pi) { in requestPermission()
DUsbAccessory.aidl19 parcelable UsbAccessory;
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
DSourceActivity.java28 import android.hardware.usb.UsbAccessory;
53 private UsbAccessory mAccessory;
82 UsbAccessory accessory = in onCreate()
83 (UsbAccessory) intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate()
88 UsbAccessory[] accessories = mUsbManager.getAccessoryList(); in onCreate()
90 for (UsbAccessory accessory : accessories) { in onCreate()
116 private void onAccessoryAttached(UsbAccessory accessory) { in onAccessoryAttached()
123 private void onAccessoryDetached(UsbAccessory accessory) { in onAccessoryDetached()
130 private void connect(UsbAccessory accessory) { in connect()
193 private static boolean isSink(UsbAccessory accessory) { in isSink()
[all …]
/frameworks/base/libs/usb/api/
Dcurrent.txt4 public class UsbAccessory {
14 method public static com.android.future.usb.UsbAccessory getAccessory(android.content.Intent);
15 method public com.android.future.usb.UsbAccessory[] getAccessoryList();
17 method public boolean hasPermission(com.android.future.usb.UsbAccessory);
18 … method public android.os.ParcelFileDescriptor openAccessory(com.android.future.usb.UsbAccessory);
19 …method public void requestPermission(com.android.future.usb.UsbAccessory, android.app.PendingInten…
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DUsbDisconnectedReceiver.java24 import android.hardware.usb.UsbAccessory;
33 private UsbAccessory mAccessory;
43 public UsbDisconnectedReceiver(Activity activity, UsbAccessory accessory) { in UsbDisconnectedReceiver()
60 UsbAccessory accessory = in onReceive()
61 (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onReceive()
DUsbAccessoryUriActivity.java23 import android.hardware.usb.UsbAccessory;
45 private UsbAccessory mAccessory;
53 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate()
DUsbResolverActivity.java25 import android.hardware.usb.UsbAccessory;
50 private UsbAccessory mAccessory;
92 mAccessory = (UsbAccessory)target.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate()
DUsbConfirmActivity.java27 import android.hardware.usb.UsbAccessory;
53 private UsbAccessory mAccessory;
64 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate()
DUsbPermissionActivity.java27 import android.hardware.usb.UsbAccessory;
54 private UsbAccessory mAccessory;
67 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate()
/frameworks/base/tests/UsbHostExternalManagmentTest/AoapTestDevice/src/com/android/hardware/usb/aoapdevicetest/
DUsbAoapDeviceTestActivity.java24 import android.hardware.usb.UsbAccessory;
47 private UsbAccessory mAccessory;
65 UsbAccessory accessory = in onCreate()
66 (UsbAccessory) intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate()
94 private void onAccessoryAttached(UsbAccessory accessory) { in onAccessoryAttached()
117 private void onAccessoryDetached(UsbAccessory accessory) { in onAccessoryDetached()
162 UsbAccessory accessory = intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onReceive()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbPermissionManager.java25 import android.hardware.usb.UsbAccessory;
56 private final HashMap<UsbAccessory, SparseBooleanArray> mAccessoryPermissionMap =
75 void removeAccessoryPermissions(@NonNull UsbAccessory accessory) { in removeAccessoryPermissions()
116 void grantAccessoryPermission(@NonNull UsbAccessory accessory, int uid) { in grantAccessoryPermission()
154 boolean hasPermission(@NonNull UsbAccessory accessory, int uid) { in hasPermission()
181 @Nullable UsbAccessory accessory, in requestPermissionDialog()
228 for (UsbAccessory accessory : mAccessoryPermissionMap.keySet()) { in dump()
DUsbUserSettingsManager.java38 import android.hardware.usb.UsbAccessory;
99 void removeAccessoryPermissions(@NonNull UsbAccessory accessory) { in removeAccessoryPermissions()
170 public boolean hasPermission(UsbAccessory accessory, int uid) { in hasPermission()
181 public void checkPermission(UsbAccessory accessory, int uid) { in checkPermission()
189 @Nullable UsbAccessory accessory, in requestPermissionDialog()
240 public void requestPermission(UsbAccessory accessory, String packageName, PendingIntent pi, in requestPermission()
263 public void grantAccessoryPermission(UsbAccessory accessory, int uid) { in grantAccessoryPermission()
330 private boolean canBeDefault(@NonNull UsbAccessory accessory, String packageName) { in canBeDefault()
DUsbHandlerManager.java25 import android.hardware.usb.UsbAccessory;
56 void showUsbAccessoryUriActivity(@NonNull UsbAccessory accessory, in showUsbAccessoryUriActivity()
84 @Nullable UsbAccessory accessory) { in confirmUsbHandler()
DUsbSerialReader.java25 import android.hardware.usb.UsbAccessory;
98 settings.checkPermission((UsbAccessory) mDevice, uid); in getSerial()
DUsbService.java39 import android.hardware.usb.UsbAccessory;
276 public UsbAccessory getCurrentAccessory() { in getCurrentAccessory()
286 public ParcelFileDescriptor openAccessory(UsbAccessory accessory) { in openAccessory()
334 public void setAccessoryPackage(UsbAccessory accessory, String packageName, int userId) { in setAccessoryPackage()
364 public boolean hasAccessoryPermission(UsbAccessory accessory) { in hasAccessoryPermission()
391 UsbAccessory accessory, String packageName, PendingIntent pi) { in requestAccessoryPermission()
417 public void grantAccessoryPermission(UsbAccessory accessory, int uid) { in grantAccessoryPermission()
DUsbDeviceManager.java46 import android.hardware.usb.UsbAccessory;
402 mAccessoryStrings[UsbAccessory.MANUFACTURER_STRING] != null && in startAccessoryMode()
403 mAccessoryStrings[UsbAccessory.MODEL_STRING] != null); in startAccessoryMode()
454 private UsbAccessory mCurrentAccessory;
629 accessoryStrings[UsbAccessory.SERIAL_STRING]); in updateCurrentAccessory()
631 mCurrentAccessory = new UsbAccessory( in updateCurrentAccessory()
632 accessoryStrings[UsbAccessory.MANUFACTURER_STRING], in updateCurrentAccessory()
633 accessoryStrings[UsbAccessory.MODEL_STRING], in updateCurrentAccessory()
634 accessoryStrings[UsbAccessory.DESCRIPTION_STRING], in updateCurrentAccessory()
635 accessoryStrings[UsbAccessory.VERSION_STRING], in updateCurrentAccessory()
[all …]
DUsbSettingsManager.java24 import android.hardware.usb.UsbAccessory;
196 void usbAccessoryRemoved(@NonNull UsbAccessory accessory) { in usbAccessoryRemoved()
/frameworks/base/libs/usb/tests/AccessoryChat/src/com/android/accessorychat/
DAccessoryChat.java37 import android.hardware.usb.UsbAccessory;
67UsbAccessory accessory = (UsbAccessory) intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY);
102 UsbAccessory[] accessories = mUsbManager.getAccessoryList(); in onResume()
103 UsbAccessory accessory = (accessories == null ? null : accessories[0]); in onResume()
139 private void openAccessory(UsbAccessory accessory) { in openAccessory()
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Phone/Settings/
Ddevice_for_product_strategy_enforced_audible.pfw48 AvailableOutputDevices Excludes UsbAccessory
225 conf: UsbAccessory
227 AvailableOutputDevices Includes UsbAccessory
/frameworks/base/libs/usb/tests/AccessoryChat/
DREADME.txt4 via the UsbAccessory class.

12