Home
last modified time | relevance | path

Searched refs:UsbAccessory (Results 1 – 25 of 39) 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.java48 public class UsbAccessory implements Parcelable { class
76 public UsbAccessory(@NonNull String manufacturer, @NonNull String model, in UsbAccessory() method in UsbAccessory
91 public UsbAccessory(String[] strings) { in UsbAccessory() method in UsbAccessory
161 if (obj instanceof UsbAccessory) { in equals()
162 UsbAccessory accessory = (UsbAccessory)obj; in equals()
191 public static final Parcelable.Creator<UsbAccessory> CREATOR =
192 new Parcelable.Creator<UsbAccessory>() {
193 public UsbAccessory createFromParcel(Parcel in) {
200 return new UsbAccessory(manufacturer, model, description, version, uri, serial);
203 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.java430 public UsbAccessory[] getAccessoryList() { in getAccessoryList()
435 UsbAccessory accessory = mService.getCurrentAccessory(); in getAccessoryList()
439 return new UsbAccessory[] { accessory }; in getAccessoryList()
457 public ParcelFileDescriptor openAccessory(UsbAccessory accessory) { in openAccessory()
518 public boolean hasPermission(UsbAccessory accessory) { in hasPermission()
579 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 …]
DUsbAccessoryStreamTransport.java22 import android.hardware.usb.UsbAccessory;
/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.java23 import android.hardware.usb.UsbAccessory;
50 private UsbAccessory mAccessory;
92 mAccessory = (UsbAccessory)target.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate()
DUsbPermissionActivity.java31 import android.hardware.usb.UsbAccessory;
63 private UsbAccessory mAccessory;
76 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate()
191 private boolean canBeDefault(@NonNull UsbAccessory accessory, in canBeDefault()
DUsbConfirmActivity.java27 import android.hardware.usb.UsbAccessory;
53 private UsbAccessory mAccessory;
64 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/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/base/services/usb/java/com/android/server/usb/
DUsbUserSettingsManager.java27 import android.hardware.usb.UsbAccessory;
59 private final HashMap<UsbAccessory, SparseBooleanArray> mAccessoryPermissionMap =
97 void removeAccessoryPermissions(@NonNull UsbAccessory accessory) { in removeAccessoryPermissions()
178 public boolean hasPermission(UsbAccessory accessory) { in hasPermission()
198 public void checkPermission(UsbAccessory accessory) { in checkPermission()
266 public void requestPermission(UsbAccessory accessory, String packageName, PendingIntent pi) { in requestPermission()
297 public void grantAccessoryPermission(UsbAccessory accessory, int uid) { in grantAccessoryPermission()
328 for (UsbAccessory accessory : mAccessoryPermissionMap.keySet()) { in dump()
DUsbService.java30 import android.hardware.usb.UsbAccessory;
278 public UsbAccessory getCurrentAccessory() { in getCurrentAccessory()
288 public ParcelFileDescriptor openAccessory(UsbAccessory accessory) { in openAccessory()
326 public void setAccessoryPackage(UsbAccessory accessory, String packageName, int userId) { in setAccessoryPackage()
344 public boolean hasAccessoryPermission(UsbAccessory accessory) { in hasAccessoryPermission()
358 UsbAccessory accessory, String packageName, PendingIntent pi) { in requestAccessoryPermission()
371 public void grantAccessoryPermission(UsbAccessory accessory, int uid) { in grantAccessoryPermission()
DUsbSettingsManager.java24 import android.hardware.usb.UsbAccessory;
189 void usbAccessoryRemoved(@NonNull UsbAccessory accessory) { in usbAccessoryRemoved()
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/
Dpolicy_criteria.txt2 …Hdmi TelephonyRx BackMic RemoteSubmix AnlgDockHeadset DgtlDockHeadset UsbAccessory UsbDevice FmTun…
3 …pHeadphones BluetoothA2dpSpeaker Hdmi AnlgDockHeadset DgtlDockHeadset UsbAccessory UsbDevice Remot…
/frameworks/av/services/audiopolicy/engineconfigurable/wrapper/config/
Daudio_policy_criteria.conf51 …pHeadphones,BluetoothA2dpSpeaker,Hdmi,AnlgDockHeadset,DgtlDockHeadset,UsbAccessory,UsbDevice,Remot…
58 …Hdmi,TelephonyRx,BackMic,RemoteSubmix,AnlgDockHeadset,DgtlDockHeadset,UsbAccessory,UsbDevice,FmTun…
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Settings/
Ddevice_for_strategy_enforced_audible.pfw46 AvailableOutputDevices Excludes UsbAccessory
222 conf: UsbAccessory
224 AvailableOutputDevices Includes UsbAccessory
Ddevice_for_strategy_rerouting.pfw173 conf: UsbAccessory
174 AvailableOutputDevices Includes UsbAccessory
Ddevice_for_strategy_phone.pfw271 AvailableOutputDevices Excludes UsbAccessory
294 conf: UsbAccessory
299 AvailableOutputDevices Includes UsbAccessory
/frameworks/base/libs/usb/tests/AccessoryChat/
DREADME.txt4 via the UsbAccessory class.

12