Searched refs:device (Results 1 - 25 of 497) sorted by relevance

1234567891011>>

/frameworks/base/tools/preload2/src/com/android/preload/actions/
H A DAbstractThreadedDeviceSpecificAction.java26 protected IDevice device; field in class:AbstractThreadedDeviceSpecificAction
28 protected AbstractThreadedDeviceSpecificAction(String title, IDevice device) { argument
30 this.device = device;
34 public void setDevice(IDevice device) { argument
35 this.device = device;
40 if (device == null) {
H A DDeviceSpecific.java22 * Marks an action as being device-specific. The user must set the device through the specified
23 * method if the device selection changes.
25 * Implementors must tolerate a null device (for example, with a no-op). This includes calling
31 * Set the device that should be used. Note that there is no restriction on calling other
32 * methods of the implementor before a setDevice call. Neither is device guaranteed to be
35 * @param device The device to use going forward.
37 public void setDevice(IDevice device); argument
/frameworks/av/services/audiopolicy/common/include/
H A DVolume.h34 * device categories used for volume curve management.
65 * extract one device relevant for volume control from multiple device selection
67 * @param[in] device for which the volume category is associated
69 * @return subset of device required to limit the number of volume category per device
71 static audio_devices_t getDeviceForVolume(audio_devices_t device) argument
73 if (device == AUDIO_DEVICE_NONE) {
76 device = AUDIO_DEVICE_OUT_SPEAKER;
77 } else if (popcount(device) >
105 device); local
117 getDeviceCategory(audio_devices_t device) argument
[all...]
H A Dpolicy.h35 * A device mask for all audio input devices that are considered "virtual" when evaluating
43 * A device mask for all audio input and output devices where matching inputs/outputs on device
63 * @return true if given state represents a device in a telephony or VoIP call
71 * Check if the input device given is considered as a virtual device.
73 * @param[in] device to consider
75 * @return true if the device is a virtual one, false otherwise.
77 static inline bool is_virtual_input_device(audio_devices_t device) argument
79 if ((device
95 device_distinguishes_on_address(audio_devices_t device) argument
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DLocalBluetoothProfile.java38 boolean connect(BluetoothDevice device); argument
40 boolean disconnect(BluetoothDevice device); argument
42 int getConnectionStatus(BluetoothDevice device); argument
44 boolean isPreferred(BluetoothDevice device); argument
46 int getPreferred(BluetoothDevice device); argument
48 void setPreferred(BluetoothDevice device, boolean preferred); argument
54 /** Display order for device profile settings. */
59 * @param device the Bluetooth device (to distinguish between PAN roles)
61 int getNameResource(BluetoothDevice device); argument
70 getSummaryResourceForDevice(BluetoothDevice device) argument
[all...]
H A DOppProfile.java32 // Order of this profile in device profiles list
43 public boolean connect(BluetoothDevice device) { argument
47 public boolean disconnect(BluetoothDevice device) { argument
51 public int getConnectionStatus(BluetoothDevice device) { argument
55 public boolean isPreferred(BluetoothDevice device) { argument
59 public int getPreferred(BluetoothDevice device) { argument
63 public void setPreferred(BluetoothDevice device, boolean preferred) { argument
83 public int getNameResource(BluetoothDevice device) { argument
87 public int getSummaryResourceForDevice(BluetoothDevice device) { argument
H A DMapClientProfile.java56 // Order of this profile in device profiles list
70 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice);
71 // we may add a new device here, but generally this should not happen
72 if (device == null) {
73 Log.w(TAG, "MapProfile found new device: " + nextDevice);
74 device = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, nextDevice);
76 device.onProfileStateChanged(MapClientProfile.this,
78 device.refresh();
120 public boolean connect(BluetoothDevice device) { argument
123 if (connectedDevices != null && connectedDevices.contains(device)) {
131 disconnect(BluetoothDevice device) argument
140 getConnectionStatus(BluetoothDevice device) argument
146 isPreferred(BluetoothDevice device) argument
151 getPreferred(BluetoothDevice device) argument
156 setPreferred(BluetoothDevice device, boolean preferred) argument
183 getNameResource(BluetoothDevice device) argument
187 getSummaryResourceForDevice(BluetoothDevice device) argument
[all...]
H A DPbapClientProfile.java52 // Order of this profile in device profiles list
68 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice);
69 // we may add a new device here, but generally this should not happen
70 if (device == null) {
71 Log.w(TAG, "PbapClientProfile found new device: " + nextDevice);
72 device = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, nextDevice);
74 device.onProfileStateChanged(PbapClientProfile.this, BluetoothProfile.STATE_CONNECTED);
75 device.refresh();
90 for (CachedBluetoothDevice device : cachedDevices) {
91 device
136 connect(BluetoothDevice device) argument
158 disconnect(BluetoothDevice device) argument
168 getConnectionStatus(BluetoothDevice device) argument
175 isPreferred(BluetoothDevice device) argument
182 getPreferred(BluetoothDevice device) argument
189 setPreferred(BluetoothDevice device, boolean preferred) argument
210 getNameResource(BluetoothDevice device) argument
215 getSummaryResourceForDevice(BluetoothDevice device) argument
[all...]
H A DA2dpProfile.java60 // Order of this profile in device profiles list
75 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice);
76 // we may add a new device here, but generally this should not happen
77 if (device == null) {
78 Log.w(TAG, "A2dpProfile found new device: " + nextDevice);
79 device = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, nextDevice);
81 device.onProfileStateChanged(A2dpProfile.this, BluetoothProfile.STATE_CONNECTED);
82 device.refresh();
134 public boolean connect(BluetoothDevice device) { argument
138 // Original behavior: disconnect currently connected device
153 disconnect(BluetoothDevice device) argument
162 getConnectionStatus(BluetoothDevice device) argument
169 setActiveDevice(BluetoothDevice device) argument
179 isPreferred(BluetoothDevice device) argument
184 getPreferred(BluetoothDevice device) argument
189 setPreferred(BluetoothDevice device, boolean preferred) argument
210 supportsHighQualityAudio(BluetoothDevice device) argument
215 isHighQualityAudioEnabled(BluetoothDevice device) argument
237 setHighQualityAudioEnabled(BluetoothDevice device, boolean enabled) argument
252 getHighQualityAudioOptionLabel(BluetoothDevice device) argument
309 getNameResource(BluetoothDevice device) argument
313 getSummaryResourceForDevice(BluetoothDevice device) argument
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wrapper/
H A DBluetoothA2dpWrapper.java46 public BluetoothCodecStatus getCodecStatus(BluetoothDevice device) { argument
47 return mService.getCodecStatus(device);
53 public int supportsOptionalCodecs(BluetoothDevice device) { argument
54 return mService.supportsOptionalCodecs(device);
60 public int getOptionalCodecsEnabled(BluetoothDevice device) { argument
61 return mService.getOptionalCodecsEnabled(device);
67 public void setOptionalCodecsEnabled(BluetoothDevice device, int value) { argument
68 mService.setOptionalCodecsEnabled(device, value);
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothGattServerCallback.java25 * Callback indicating when a remote device has been connected or disconnected.
27 * @param device Remote device that has been connected or disconnected.
32 public void onConnectionStateChange(BluetoothDevice device, int status, argument
52 * @param device The remote device that has requested the read operation
57 public void onCharacteristicReadRequest(BluetoothDevice device, int requestId, argument
67 * @param device The remote device that has requested the write operation
71 * @param responseNeeded true, if the remote device require
75 onCharacteristicWriteRequest(BluetoothDevice device, int requestId, BluetoothGattCharacteristic characteristic, boolean preparedWrite, boolean responseNeeded, int offset, byte[] value) argument
92 onDescriptorReadRequest(BluetoothDevice device, int requestId, int offset, BluetoothGattDescriptor descriptor) argument
110 onDescriptorWriteRequest(BluetoothDevice device, int requestId, BluetoothGattDescriptor descriptor, boolean preparedWrite, boolean responseNeeded, int offset, byte[] value) argument
126 onExecuteWrite(BluetoothDevice device, int requestId, boolean execute) argument
140 onNotificationSent(BluetoothDevice device, int status) argument
152 onMtuChanged(BluetoothDevice device, int mtu) argument
167 onPhyUpdate(BluetoothDevice device, int txPhy, int rxPhy, int status) argument
181 onPhyRead(BluetoothDevice device, int txPhy, int rxPhy, int status) argument
198 onConnectionUpdated(BluetoothDevice device, int interval, int latency, int timeout, int status) argument
[all...]
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/hp/
H A DPrinterHashMap.java27 public NsdServiceInfo addPrinter(NsdServiceInfo device) { argument
28 return put(getKey(device), device);
30 public NsdServiceInfo removePrinter(NsdServiceInfo device) { argument
31 return remove(getKey(device));
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/xerox/
H A DPrinterHashMap.java27 public NsdServiceInfo addPrinter(NsdServiceInfo device) { argument
28 return put(getKey(device), device);
31 public NsdServiceInfo removePrinter(NsdServiceInfo device) { argument
32 return remove(getKey(device));
/frameworks/base/core/java/android/companion/
H A DBluetoothDeviceFilterUtils.java52 static boolean matches(ScanFilter filter, BluetoothDevice device) { argument
53 boolean result = matchesAddress(filter.getDeviceAddress(), device)
54 && matchesServiceUuid(filter.getServiceUuid(), filter.getServiceUuidMask(), device);
55 if (DEBUG) debugLogMatchResult(result, device, filter);
59 static boolean matchesAddress(String deviceAddress, BluetoothDevice device) { argument
61 || (device != null && deviceAddress.equals(device.getAddress()));
62 if (DEBUG) debugLogMatchResult(result, device, deviceAddress);
67 List<ParcelUuid> serviceUuidMasks, BluetoothDevice device) {
71 if (!matchesServiceUuid(uuid, uuidMask, device)) {
66 matchesServiceUuids(List<ParcelUuid> serviceUuids, List<ParcelUuid> serviceUuidMasks, BluetoothDevice device) argument
78 matchesServiceUuid(ParcelUuid serviceUuid, ParcelUuid serviceUuidMask, BluetoothDevice device) argument
89 matchesName(@ullable Pattern namePattern, BluetoothDevice device) argument
103 matchesName(@ullable Pattern namePattern, ScanResult device) argument
117 debugLogMatchResult( boolean result, BluetoothDevice device, Object criteria) argument
122 debugLogMatchResult( boolean result, ScanResult device, Object criteria) argument
127 getDeviceDisplayNameInternal(@onNull BluetoothDevice device) argument
131 getDeviceDisplayNameInternal(@onNull ScanResult device) argument
135 getDeviceMacAddress(@onNull Parcelable device) argument
[all...]
/frameworks/base/wifi/java/android/net/wifi/p2p/
H A DWifiP2pDeviceList.java30 * A class representing a Wi-Fi P2p device list.
53 for (WifiP2pDevice device : devices) {
54 if (device.deviceAddress != null) {
55 mDevices.put(device.deviceAddress, new WifiP2pDevice(device));
60 private void validateDevice(WifiP2pDevice device) { argument
61 if (device == null) throw new IllegalArgumentException("Null device");
62 if (TextUtils.isEmpty(device.deviceAddress)) {
81 * Add/update a device t
86 update(WifiP2pDevice device) argument
92 updateSupplicantDetails(WifiP2pDevice device) argument
138 remove(WifiP2pDevice device) argument
[all...]
/frameworks/native/services/inputflinger/
H A DEventHub.cpp254 Device* device = mClosingDevices; local
255 mClosingDevices = device->next;
256 delete device;
269 Device* device = getDeviceLocked(deviceId); local
270 if (device == NULL) return InputDeviceIdentifier();
271 return device->identifier;
276 Device* device = getDeviceLocked(deviceId); local
277 if (device == NULL) return 0;
278 return device->classes;
283 Device* device local
290 Device* device = getDeviceLocked(deviceId); local
305 Device* device = getDeviceLocked(deviceId); local
332 Device* device = getDeviceLocked(deviceId); local
344 Device* device = getDeviceLocked(deviceId); local
356 Device* device = getDeviceLocked(deviceId); local
371 Device* device = getDeviceLocked(deviceId); local
396 Device* device = getDeviceLocked(deviceId); local
414 Device* device = getDeviceLocked(deviceId); local
434 Device* device = getDeviceLocked(deviceId); local
462 Device* device = getDeviceLocked(deviceId); local
503 Device* device = getDeviceLocked(deviceId); local
523 Device* device = getDeviceLocked(deviceId); local
534 Device* device = getDeviceLocked(deviceId); local
546 Device* device = getDeviceLocked(deviceId); local
550 setLedStateLocked(Device* device, int32_t led, bool on) argument
572 Device* device = getDeviceLocked(deviceId); local
580 Device* device = getDeviceLocked(deviceId); local
590 Device* device = getDeviceLocked(deviceId); local
655 Device* device = getDeviceLocked(deviceId); local
689 Device* device = getDeviceLocked(deviceId); local
712 Device* device = mDevices.valueAt(i); local
730 Device* device = mDevices.valueAt(i); local
764 Device* device = mClosingDevices; local
786 Device* device = mOpeningDevices; local
846 Device* device = mDevices.valueAt(deviceIndex); local
1085 registerDeviceForEpollLocked(Device* device) argument
1100 unregisterDeviceFromEpollLocked(Device* device) argument
1182 Device* device = new Device(fd, deviceId, String8(devicePath), identifier); local
1388 configureFd(Device* device) argument
1425 Device* device = getDeviceLocked(deviceId); local
1435 Device* device = getDeviceLocked(deviceId); local
1457 Device* device = getDeviceLocked(deviceId); local
1476 Device* device = new Device(-1, VIRTUAL_KEYBOARD_ID, String8("<virtual>"), identifier); local
1485 addDeviceLocked(Device* device) argument
1491 loadConfigurationLocked(Device* device) argument
1508 loadVirtualKeyMapLocked(Device* device) argument
1519 loadKeyMapLocked(Device* device) argument
1523 isExternalDeviceLocked(Device* device) argument
1533 deviceHasMicLocked(Device* device) argument
1543 getNextControllerNumberLocked(Device* device) argument
1554 releaseControllerNumberLocked(Device* device) argument
1563 setLedForControllerLocked(Device* device) argument
1569 hasKeycodeLocked(Device* device, int keycode) const argument
1587 mapLed(Device* device, int32_t led, int32_t* outScanCode) const argument
1603 Device* device = getDeviceByPathLocked(devicePath); local
1618 closeDeviceLocked(Device* device) argument
1750 const Device* device = mDevices.valueAt(i); local
[all...]
/frameworks/av/media/libaudiohal/2.0/
H A DDevicesFactoryHalHybrid.cpp34 status_t DevicesFactoryHalHybrid::openDevice(const char *name, sp<DeviceHalInterface> *device) { argument
37 return mHidlFactory->openDevice(name, device);
39 return mLocalFactory->openDevice(name, device);
/frameworks/base/tools/preload2/src/com/android/preload/
H A DClientUtils.java45 public Client findClient(IDevice device, String processName, int processPid) { argument
46 return findClient(device, processName, processPid, defaultTimeout);
53 * @param device The device to communicate with.
59 public Client findClient(IDevice device, String processName, int processPid, int timeout) { argument
60 WaitForClient wfc = new WaitForClient(device, processName, processPid, timeout);
67 public Client[] findAllClients(IDevice device) { argument
68 return findAllClients(device, defaultTimeout);
72 * Retrieve all clients known to the given device. Wait at most the given timeout.
74 * @param device Th
79 findAllClients(IDevice device, int timeout) argument
89 private IDevice device; field in class:ClientUtils.WaitForClient
95 WaitForClient(IDevice device, String processName, int processPid, long timeout) argument
125 searchForClient(IDevice device) argument
179 private IDevice device; field in class:ClientUtils.WaitForClients
182 WaitForClients(IDevice device, long timeout) argument
[all...]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
H A DBluetoothStressTest.java78 * Stress test for putting the device in and taking the device out of discoverable mode.
136 * Stress test for pairing and unpairing with a remote device.
138 * In this test, the local device initiates pairing with a remote device, and then unpairs with
139 * the device after the pairing has successfully completed.
147 BluetoothDevice device = mAdapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress);
149 mTestUtils.unpair(mAdapter, device);
153 mTestUtils.pair(mAdapter, device, BluetoothTestRunner.sDevicePairPasskey,
155 mTestUtils.unpair(mAdapter, device);
[all...]
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
H A DMtpManager.java85 ensureNotNull(rawDevice, "Not found USB device: " + deviceId);
90 throw new IOException("Failed to grant a device permission.");
94 final MtpDevice device = new MtpDevice(rawDevice);
100 if (!device.open(connection)) {
101 // We cannot open connection when another application use the device.
107 device.getStorageIds(),
108 "Not found MTP storages in the device.");
110 mDevices.put(deviceId, device);
121 for (UsbDevice device : mManager.getDeviceList().values()) {
122 if (!isMtpDevice(device)) {
266 createDeviceRecord(UsbDevice device) argument
296 isMtpDevice(UsbDevice device) argument
[all...]
/frameworks/base/core/java/android/hardware/usb/
H A DDeviceFilter.java33 * This class is used to describe a USB device.
47 // USB device or interface class (or -1 for unspecified)
49 // USB device subclass (or -1 for unspecified)
51 // USB device protocol (or -1 for unspecified)
53 // USB device manufacturer name string (or null for unspecified)
55 // USB device product name string (or null for unspecified)
57 // USB device serial number string (or null for unspecified)
72 public DeviceFilter(UsbDevice device) { argument
73 mVendorId = device.getVendorId();
74 mProductId = device
173 matches(UsbDevice device) argument
208 contains(DeviceFilter device) argument
[all...]
/frameworks/av/services/audiopolicy/enginedefault/src/
H A DEngine.cpp259 uint32_t device = AUDIO_DEVICE_NONE; local
266 device = availableOutputDevicesType & AUDIO_DEVICE_OUT_SPEAKER;
271 device = getDeviceForStrategyInt(
280 // routing is same as media without the "remote" device
281 device = getDeviceForStrategyInt(STRATEGY_MEDIA,
285 // if no media is playing on the device, check for mandatory use of "safe" speaker
288 && (device & AUDIO_DEVICE_OUT_SPEAKER)
290 device |= AUDIO_DEVICE_OUT_SPEAKER_SAFE;
291 device &= ~AUDIO_DEVICE_OUT_SPEAKER;
299 device
621 uint32_t device = AUDIO_DEVICE_NONE; local
[all...]
/frameworks/base/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/
H A DUsbDeviceStateController.java38 void onDeviceResetComplete(UsbDevice device); argument
102 public void startDeviceReset(UsbDevice device) { argument
103 mHandler.requestDeviceReset(device);
110 private void doHandleDeviceReset(UsbDevice device) { argument
111 boolean isInAoap = AoapInterface.isDeviceInAoapMode(device);
114 completedDevice = resetUsbDeviceAndConfirmModeChange(device);
116 UsbDeviceConnection conn = openConnection(device);
118 throw new RuntimeException("cannot open conneciton for device: " + device);
122 throw new RuntimeException("resetDevice failed for devie: " + device);
167 resetUsbDeviceAndConfirmModeChange(UsbDevice device) argument
224 isDeviceRemovedLocked(UsbDevice device) argument
235 checkDeviceAttachedLocked(UsbDevice device) argument
246 openConnection(UsbDevice device) argument
251 handleUsbDeviceAttached(UsbDevice device) argument
258 handleUsbDeviceDetached(UsbDevice device) argument
273 requestDeviceReset(UsbDevice device) argument
310 public final UsbDevice device; field in class:UsbDeviceStateController.AoapSwitchRequest
318 AoapSwitchRequest(UsbDevice device, String manufacturer, String model, String description, String version, String uri, String serial) argument
[all...]
/frameworks/av/media/libaudiohal/4.0/
H A DDevicesFactoryHalHybrid.cpp35 status_t DevicesFactoryHalHybrid::openDevice(const char *name, sp<DeviceHalInterface> *device) { argument
38 return mHidlFactory->openDevice(name, device);
40 return mLocalFactory->openDevice(name, device);
/frameworks/base/media/java/android/media/midi/
H A DIMidiDeviceListener.aidl25 void onDeviceAdded(in MidiDeviceInfo device);
26 void onDeviceRemoved(in MidiDeviceInfo device);

Completed in 554 milliseconds

1234567891011>>