Home
last modified time | relevance | path

Searched defs:device (Results 1 – 25 of 69) sorted by relevance

123

/frameworks/base/core/java/android/bluetooth/
DIBluetoothHeadset.aidl28 boolean connect(in BluetoothDevice device); in connect()
29 boolean disconnect(in BluetoothDevice device); in disconnect()
32 int getConnectionState(in BluetoothDevice device); in getConnectionState()
33 boolean setPriority(in BluetoothDevice device, int priority); in setPriority()
34 int getPriority(in BluetoothDevice device); in getPriority()
35 boolean startVoiceRecognition(in BluetoothDevice device); in startVoiceRecognition()
36 boolean stopVoiceRecognition(in BluetoothDevice device); in stopVoiceRecognition()
37 boolean isAudioConnected(in BluetoothDevice device); in isAudioConnected()
40 int getBatteryUsageHint(in BluetoothDevice device); in getBatteryUsageHint()
43 boolean createIncomingConnect(in BluetoothDevice device); in createIncomingConnect()
[all …]
DIBluetoothA2dp.aidl28 boolean connect(in BluetoothDevice device); in connect()
29 boolean disconnect(in BluetoothDevice device); in disconnect()
32 int getConnectionState(in BluetoothDevice device); in getConnectionState()
33 boolean setPriority(in BluetoothDevice device, int priority); in setPriority()
34 int getPriority(in BluetoothDevice device); in getPriority()
35 boolean isA2dpPlaying(in BluetoothDevice device); in isA2dpPlaying()
38 boolean suspendSink(in BluetoothDevice device); in suspendSink()
39 boolean resumeSink(in BluetoothDevice device); in resumeSink()
40 boolean connectSinkInternal(in BluetoothDevice device); in connectSinkInternal()
41 boolean disconnectSinkInternal(in BluetoothDevice device); in disconnectSinkInternal()
[all …]
DBluetoothHeadset.java272 public boolean connect(BluetoothDevice device) { in connect()
313 public boolean disconnect(BluetoothDevice device) { in disconnect()
365 public int getConnectionState(BluetoothDevice device) { in getConnectionState()
395 public boolean setPriority(BluetoothDevice device, int priority) { in setPriority()
427 public int getPriority(BluetoothDevice device) { in getPriority()
463 public boolean startVoiceRecognition(BluetoothDevice device) { in startVoiceRecognition()
487 public boolean stopVoiceRecognition(BluetoothDevice device) { in stopVoiceRecognition()
510 public boolean isAudioConnected(BluetoothDevice device) { in isAudioConnected()
538 public int getBatteryUsageHint(BluetoothDevice device) { in getBatteryUsageHint()
588 public boolean acceptIncomingConnect(BluetoothDevice device) { in acceptIncomingConnect()
[all …]
DBluetoothA2dp.java154 public boolean connect(BluetoothDevice device) { in connect()
195 public boolean disconnect(BluetoothDevice device) { in disconnect()
247 public int getConnectionState(BluetoothDevice device) { in getConnectionState()
277 public boolean setPriority(BluetoothDevice device, int priority) { in setPriority()
309 public int getPriority(BluetoothDevice device) { in getPriority()
331 public boolean isA2dpPlaying(BluetoothDevice device) { in isA2dpPlaying()
362 public boolean suspendSink(BluetoothDevice device) { in suspendSink()
392 public boolean resumeSink(BluetoothDevice device) { in resumeSink()
412 public boolean shouldSendVolumeKeys(BluetoothDevice device) { in shouldSendVolumeKeys()
433 public boolean allowIncomingConnect(BluetoothDevice device, boolean value) { in allowIncomingConnect()
[all …]
DBluetoothInputDevice.java141 public boolean connect(BluetoothDevice device) { in connect()
182 public boolean disconnect(BluetoothDevice device) { in disconnect()
234 public int getConnectionState(BluetoothDevice device) { in getConnectionState()
264 public boolean setPriority(BluetoothDevice device, int priority) { in setPriority()
296 public int getPriority(BluetoothDevice device) { in getPriority()
316 private boolean isValidDevice(BluetoothDevice device) { in isValidDevice()
DIBluetooth.aidl89 boolean allowIncomingProfileConnect(in BluetoothDevice device, boolean value); in allowIncomingProfileConnect()
96 boolean connectInputDevice(in BluetoothDevice device); in connectInputDevice()
97 boolean disconnectInputDevice(in BluetoothDevice device); in disconnectInputDevice()
100 int getInputDeviceConnectionState(in BluetoothDevice device); in getInputDeviceConnectionState()
101 boolean setInputDevicePriority(in BluetoothDevice device, int priority); in setInputDevicePriority()
102 int getInputDevicePriority(in BluetoothDevice device); in getInputDevicePriority()
106 int getPanDeviceConnectionState(in BluetoothDevice device); in getPanDeviceConnectionState()
109 boolean connectPanDevice(in BluetoothDevice device); in connectPanDevice()
110 boolean disconnectPanDevice(in BluetoothDevice device); in disconnectPanDevice()
116 …boolean connectChannelToSource(in BluetoothDevice device, in BluetoothHealthAppConfiguration confi… in connectChannelToSource()
[all …]
DIBluetoothPbap.aidl29 boolean connect(in BluetoothDevice device); in connect()
31 boolean isConnected(in BluetoothDevice device); in isConnected()
DBluetoothPan.java160 public boolean connect(BluetoothDevice device) { in connect()
201 public boolean disconnect(BluetoothDevice device) { in disconnect()
253 public int getConnectionState(BluetoothDevice device) { in getConnectionState()
292 private boolean isValidDevice(BluetoothDevice device) { in isValidDevice()
DBluetoothHealth.java198 public boolean connectChannelToSource(BluetoothDevice device, in connectChannelToSource()
227 public boolean connectChannelToSink(BluetoothDevice device, in connectChannelToSink()
256 public boolean disconnectChannel(BluetoothDevice device, in disconnectChannel()
285 public ParcelFileDescriptor getMainChannelFd(BluetoothDevice device, in getMainChannelFd()
317 public int getConnectionState(BluetoothDevice device) { in getConnectionState()
405 BluetoothDevice device, int prevState, int newState, in onHealthChannelStateChange()
463 private boolean isValidDevice(BluetoothDevice device) { in isValidDevice()
/frameworks/base/core/java/android/server/
DBluetoothA2dpService.java116 private boolean isPhoneDocked(BluetoothDevice device) { in isPhoneDocked()
182 private boolean isSinkDevice(BluetoothDevice device) { in isSinkDevice()
190 private synchronized void addAudioSink(BluetoothDevice device) { in addAudioSink()
202 BluetoothDevice device = mAdapter.getRemoteDevice(address); in onBluetoothEnable() local
242 private synchronized boolean isConnectSinkFeasible(BluetoothDevice device) { in isConnectSinkFeasible()
257 public synchronized boolean isA2dpPlaying(BluetoothDevice device) { in isA2dpPlaying()
265 public synchronized boolean connect(BluetoothDevice device) { in connect()
280 public synchronized boolean connectSinkInternal(BluetoothDevice device) { in connectSinkInternal()
317 private synchronized boolean isDisconnectSinkFeasible(BluetoothDevice device) { in isDisconnectSinkFeasible()
332 public synchronized boolean disconnect(BluetoothDevice device) { in disconnect()
[all …]
DBluetoothInputProfileHandler.java64 boolean connectInputDevice(BluetoothDevice device, in connectInputDevice()
82 boolean connectInputDeviceInternal(BluetoothDevice device) { in connectInputDeviceInternal()
92 boolean disconnectInputDevice(BluetoothDevice device, in disconnectInputDevice()
109 boolean disconnectInputDeviceInternal(BluetoothDevice device) { in disconnectInputDeviceInternal()
119 int getInputDeviceConnectionState(BluetoothDevice device) { in getInputDeviceConnectionState()
137 int getInputDevicePriority(BluetoothDevice device) { in getInputDevicePriority()
143 boolean setInputDevicePriority(BluetoothDevice device, int priority) { in setInputDevicePriority()
167 private void handleInputDeviceStateChange(BluetoothDevice device, int state) { in handleInputDeviceStateChange()
203 BluetoothDevice device = adapter.getRemoteDevice(address); in handleInputDevicePropertyChange() local
207 void setInitialInputDevicePriority(BluetoothDevice device, int state) { in setInitialInputDevicePriority()
DBluetoothHealthProfileHandler.java72 HealthChannel(BluetoothDevice device, BluetoothHealthAppConfiguration config, in HealthChannel()
190 boolean connectChannelToSource(BluetoothDevice device, in connectChannelToSource()
195 private HealthChannel getMainChannel(BluetoothDevice device, in getMainChannel()
205 boolean connectChannel(BluetoothDevice device, in connectChannel()
267 boolean disconnectChannel(BluetoothDevice device, in disconnectChannel()
303 private HealthChannel findChannelByPath(BluetoothDevice device, String path) { in findChannelByPath()
310 private List<HealthChannel> findChannelByStates(BluetoothDevice device, int[] states) { in findChannelByStates()
324 private HealthChannel findConnectingChannel(BluetoothDevice device, in findConnectingChannel()
333 ParcelFileDescriptor getMainChannelFd(BluetoothDevice device, in getMainChannelFd()
382 BluetoothDevice device = adapter.getRemoteDevice(address); in onHealthDevicePropertyChanged() local
[all …]
/frameworks/base/services/input/
DEventHub.cpp201 Device* device = mClosingDevices; in ~EventHub() local
216 Device* device = getDeviceLocked(deviceId); in getDeviceName() local
223 Device* device = getDeviceLocked(deviceId); in getDeviceClasses() local
230 Device* device = getDeviceLocked(deviceId); in getConfiguration() local
245 Device* device = getDeviceLocked(deviceId); in getAbsoluteAxisInfo() local
272 Device* device = getDeviceLocked(deviceId); in hasRelativeAxis() local
284 Device* device = getDeviceLocked(deviceId); in hasInputProperty() local
296 Device* device = getDeviceLocked(deviceId); in getScanCodeState() local
311 Device* device = getDeviceLocked(deviceId); in getKeyCodeState() local
336 Device* device = getDeviceLocked(deviceId); in getSwitchState() local
[all …]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothStressTest.java154 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testPair() local
180 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testAcceptPair() local
207 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testConnectA2dp() local
240 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testConnectHeadset() local
273 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testConnectInput() local
306 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testConnectPan() local
336 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testIncomingPanConnection() local
370 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testStartStopSco() local
DBluetoothTestUtils.java153 public PairReceiver(BluetoothDevice device, int passkey, byte[] pin, int expectedFlags) { in PairReceiver()
213 public ConnectProfileReceiver(BluetoothDevice device, int profile, int expectedFlags) { in ConnectProfileReceiver()
267 public ConnectPanReceiver(BluetoothDevice device, int role, int expectedFlags) { in ConnectPanReceiver()
744 public void pair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin) { in pair()
757 public void acceptPair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, in acceptPair()
773 private void pairOrAcceptPair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, in pairOrAcceptPair()
841 public void unpair(BluetoothAdapter adapter, BluetoothDevice device) { in unpair()
906 public void connectProfile(BluetoothAdapter adapter, BluetoothDevice device, int profile, in connectProfile()
987 public void disconnectProfile(BluetoothAdapter adapter, BluetoothDevice device, int profile, in disconnectProfile()
1064 public void connectPan(BluetoothAdapter adapter, BluetoothDevice device) { in connectPan()
[all …]
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
DMtpClient.java118 public void deviceAdded(MtpDevice device); in deviceAdded()
125 public void deviceRemoved(MtpDevice device); in deviceRemoved()
135 static public boolean isCamera(UsbDevice device) { in isCamera()
274 MtpDevice device = getDevice(deviceName); in getStorageList() local
306 MtpDevice device = getDevice(deviceName); in getObjectInfo() local
321 MtpDevice device = getDevice(deviceName); in deleteObject() local
342 MtpDevice device = getDevice(deviceName); in getObjectList() local
378 MtpDevice device = getDevice(deviceName); in getObject() local
393 MtpDevice device = getDevice(deviceName); in getThumbnail() local
411 MtpDevice device = getDevice(deviceName); in importFile() local
DCameraBrowser.java83 MtpDevice device = mDeviceList.get(position); in getView() local
127 public void deviceAdded(MtpDevice device) { in deviceAdded()
133 public void deviceRemoved(MtpDevice device) { in deviceRemoved()
/frameworks/base/core/jni/
Dandroid_hardware_UsbDeviceConnection.cpp52 struct usb_device* device = usb_device_new(deviceNameStr, fd); in android_hardware_UsbDeviceConnection_open() local
68 struct usb_device* device = get_device_from_object(env, thiz); in android_hardware_UsbDeviceConnection_close() local
78 struct usb_device* device = get_device_from_object(env, thiz); in android_hardware_UsbDeviceConnection_get_fd() local
111 struct usb_device* device = get_device_from_object(env, thiz); in android_hardware_UsbDeviceConnection_claim_interface() local
129 struct usb_device* device = get_device_from_object(env, thiz); in android_hardware_UsbDeviceConnection_release_interface() local
147 struct usb_device* device = get_device_from_object(env, thiz); in android_hardware_UsbDeviceConnection_control_request() local
175 struct usb_device* device = get_device_from_object(env, thiz); in android_hardware_UsbDeviceConnection_bulk_request() local
201 struct usb_device* device = get_device_from_object(env, thiz); in android_hardware_UsbDeviceConnection_request_wait() local
217 struct usb_device* device = get_device_from_object(env, thiz); in android_hardware_UsbDeviceConnection_get_serial() local
/frameworks/base/media/jni/
Dandroid_mtp_MtpDevice.cpp111 MtpDevice* device = MtpDevice::open(deviceNameStr, fd); in android_mtp_MtpDevice_open() local
122 MtpDevice* device = get_device_from_object(env, thiz); in android_mtp_MtpDevice_close() local
133 MtpDevice* device = get_device_from_object(env, thiz); in android_mtp_MtpDevice_get_device_info() local
170 MtpDevice* device = get_device_from_object(env, thiz); in android_mtp_MtpDevice_get_storage_ids() local
189 MtpDevice* device = get_device_from_object(env, thiz); in android_mtp_MtpDevice_get_storage_info() local
224 MtpDevice* device = get_device_from_object(env, thiz); in android_mtp_MtpDevice_get_object_handles() local
243 MtpDevice* device = get_device_from_object(env, thiz); in android_mtp_MtpDevice_get_object_info() local
317 MtpDevice* device = get_device_from_object(env, thiz); in android_mtp_MtpDevice_get_object() local
339 MtpDevice* device = get_device_from_object(env, thiz); in android_mtp_MtpDevice_get_thumbnail() local
357 MtpDevice* device = get_device_from_object(env, thiz); in android_mtp_MtpDevice_delete_object() local
[all …]
/frameworks/base/core/java/android/hardware/usb/
DIUsbManager.aidl47 void setDevicePackage(in UsbDevice device, String packageName); in setDevicePackage()
55 boolean hasDevicePermission(in UsbDevice device); in hasDevicePermission()
64 void requestDevicePermission(in UsbDevice device, String packageName, in PendingIntent pi); in requestDevicePermission()
74 void grantDevicePermission(in UsbDevice device, int uid); in grantDevicePermission()
/frameworks/base/services/java/com/android/server/usb/
DUsbService.java101 public void setDevicePackage(UsbDevice device, String packageName) { in setDevicePackage()
111 public boolean hasDevicePermission(UsbDevice device) { in hasDevicePermission()
119 public void requestDevicePermission(UsbDevice device, String packageName, in requestDevicePermission()
129 public void grantDevicePermission(UsbDevice device, int uid) { in grantDevicePermission()
DUsbSettingsManager.java110 public DeviceFilter(UsbDevice device) { in DeviceFilter()
174 public boolean matches(UsbDevice device) { in matches()
217 UsbDevice device = (UsbDevice)obj; in equals() local
469 UsbDevice device, UsbAccessory accessory) { in packageMatchesLocked()
505 private final ArrayList<ResolveInfo> getDeviceMatchesLocked(UsbDevice device, Intent intent) { in getDeviceMatchesLocked()
534 public void deviceAttached(UsbDevice device) { in deviceAttached()
551 public void deviceDetached(UsbDevice device) { in deviceDetached()
589 String defaultPackage, UsbDevice device, UsbAccessory accessory) { in resolveActivity()
779 public boolean hasPermission(UsbDevice device) { in hasPermission()
799 public void checkPermission(UsbDevice device) { in checkPermission()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DUsbDisconnectedReceiver.java35 public UsbDisconnectedReceiver(Activity activity, UsbDevice device) { in UsbDisconnectedReceiver()
55 UsbDevice device = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); in onReceive() local
/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pDeviceList.java64 public void update(WifiP2pDevice device) { in update()
83 public boolean remove(WifiP2pDevice device) { in remove()
DWifiP2pGroup.java138 public void setOwner(WifiP2pDevice device) { in setOwner()
153 public void addClient(WifiP2pDevice device) { in addClient()
166 public boolean removeClient(WifiP2pDevice device) { in removeClient()

123