/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | BluetoothProfileDeviceManagerTest.java | 220 BluetoothDevice device = mBluetoothAdapter.getRemoteDevice(address); in makeDeviceList() local 258 private void mockDeviceAvailability(BluetoothDevice device, boolean available) in mockDeviceAvailability() 278 private void captureDevicePriority(BluetoothDevice device) throws Exception { in captureDevicePriority() 293 private void mockDevicePriority(BluetoothDevice device, int priority) throws Exception { in mockDevicePriority() 304 private void sendBondStateChanged(BluetoothDevice device, int newState) { in sendBondStateChanged() 312 private void sendDeviceUuids(BluetoothDevice device, ParcelUuid[] uuids) { in sendDeviceUuids() 320 private void sendConnectionStateChanged(BluetoothDevice device, int newState) { in sendConnectionStateChanged() 480 BluetoothDevice device = mBluetoothAdapter.getRemoteDevice(SINGLE_DEVICE_LIST.get(0)); in testAddDeviceAlreadyInList_priorityListUnchanged() local 519 BluetoothDevice device = mBluetoothAdapter.getRemoteDevice(SINGLE_DEVICE_LIST.get(0)); in testRemoveDeviceFront_deviceNoLongerInPriorityList() local 540 BluetoothDevice device = mBluetoothAdapter.getRemoteDevice(SMALL_DEVICE_LIST.get(1)); in testRemoveDeviceMiddle_deviceNoLongerInPriorityList() local [all …]
|
/packages/modules/adb/ |
D | benchmark_device.py | 26 def lock_min(device): argument 34 def lock_max(device): argument 42 def unlock(device): argument 61 def benchmark_sink(device=None, size_mb=100): argument 80 def benchmark_source(device=None, size_mb=100): argument 96 def benchmark_push(device=None, file_size_mb=100): argument 115 def benchmark_pull(device=None, file_size_mb=100): argument 133 def benchmark_shell(device=None, file_size_mb=100): argument
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientService.java | 250 public boolean connect(BluetoothDevice device, AttributionSource source) { in connect() 260 public boolean disconnect(BluetoothDevice device, AttributionSource source) { in disconnect() 289 public int getConnectionState(BluetoothDevice device, AttributionSource source) { in getConnectionState() 299 public boolean setConnectionPolicy(BluetoothDevice device, int connectionPolicy, in setConnectionPolicy() 310 public int getConnectionPolicy(BluetoothDevice device, AttributionSource source) { in getConnectionPolicy() 320 public boolean startVoiceRecognition(BluetoothDevice device, AttributionSource source) { in startVoiceRecognition() 330 public boolean stopVoiceRecognition(BluetoothDevice device, AttributionSource source) { in stopVoiceRecognition() 340 public int getAudioState(BluetoothDevice device, AttributionSource source) { in getAudioState() 350 public void setAudioRouteAllowed(BluetoothDevice device, boolean allowed, in setAudioRouteAllowed() 361 public boolean getAudioRouteAllowed(BluetoothDevice device, AttributionSource source) { in getAudioRouteAllowed() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
D | A2dpService.java | 245 public boolean connect(BluetoothDevice device) { in connect() 296 public boolean disconnect(BluetoothDevice device) { in disconnect() 331 private boolean connectionAllowedCheckMaxDevices(BluetoothDevice device) { in connectionAllowedCheckMaxDevices() 362 public boolean okToConnect(BluetoothDevice device, boolean isOutgoingRequest) { in okToConnect() 439 public int getConnectionState(BluetoothDevice device) { in getConnectionState() 491 public boolean setSilenceMode(BluetoothDevice device, boolean silence) { in setSilenceMode() 514 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() 608 private boolean isActiveDevice(BluetoothDevice device) { in isActiveDevice() 630 public boolean setConnectionPolicy(BluetoothDevice device, int connectionPolicy) { in setConnectionPolicy() 661 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/ |
D | HearingAidService.java | 238 public boolean connect(BluetoothDevice device) { in connect() 306 public boolean disconnect(BluetoothDevice device) { in disconnect() 359 public boolean isConnectedPeerDevices(BluetoothDevice device) { in isConnectedPeerDevices() 376 public boolean okToConnect(BluetoothDevice device) { in okToConnect() 465 public int getConnectionState(BluetoothDevice device) { in getConnectionState() 491 public boolean setConnectionPolicy(BluetoothDevice device, int connectionPolicy) { in setConnectionPolicy() 523 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() 535 long getHiSyncId(BluetoothDevice device) { in getHiSyncId() 544 int getCapabilities(BluetoothDevice device) { in getCapabilities() 553 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceAndStateMachineTest.java | 268 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in testGetHeadsetService() local 281 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in testConnectFromApi() local 324 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in testUnbondDevice_disconnectBeforeUnbond() local 367 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in testUnbondDevice_disconnectAfterUnbond() local 428 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, i); in testVirtualCall_normalStartStop() local 468 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, i); in testVirtualCall_preemptedByTelecomCall() local 511 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, i); in testVirtualCall_rejectedWhenThereIsTelecomCall() local 542 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, i); in testDialingOutCall_NormalDialingOut() local 624 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, i); in testDialingOutCall_DialingOutPreemptVirtualCall() local 684 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in testVoiceRecognition_SingleHfInitiatedSuccess() local [all …]
|
/packages/services/Mtp/src/com/android/mtp/ |
D | MtpManager.java | 95 final MtpDevice device = new MtpDevice(rawDevice); in openDevice() local 135 final MtpDevice device = getDevice(deviceId); in getObjectInfo() local 145 final MtpDevice device = getDevice(deviceId); in getObjectHandles() local 155 final MtpDevice device = getDevice(deviceId); in getObject() local 165 final MtpDevice device = getDevice(deviceId); in getPartialObject() local 173 final MtpDevice device = getDevice(deviceId); in getPartialObject64() local 180 final MtpDevice device = getDevice(deviceId); in getThumbnail() local 189 final MtpDevice device = getDevice(deviceId); in deleteDocument() local 199 final MtpDevice device = getDevice(deviceId); in createDocument() local 216 final MtpDevice device = getDevice(deviceId); in getParent() local [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | BluetoothDeviceProvider.java | 26 void onDeviceUpdated(BluetoothDevice device); in onDeviceUpdated() 36 void connectDevice(BluetoothDevice device); in connectDevice() 39 void disconnectDevice(BluetoothDevice device); in disconnectDevice() 42 void renameDevice(BluetoothDevice device, String newName); in renameDevice() 45 void forgetDevice(BluetoothDevice device); in forgetDevice()
|
D | BluetoothDevicesService.java | 82 public void connectDevice(BluetoothDevice device) { in connectDevice() 87 public void disconnectDevice(BluetoothDevice device) { in disconnectDevice() 92 public void forgetDevice(BluetoothDevice device) { in forgetDevice() 97 public void renameDevice(BluetoothDevice device, String newName) { in renameDevice() 197 private void connectDevice(BluetoothDevice device) { in connectDevice() 207 private void disconnectDevice(BluetoothDevice device) { in disconnectDevice() 217 private static void forgetDevice(BluetoothDevice device) { in forgetDevice() 223 private void renameDevice(BluetoothDevice device, String newName) { in renameDevice() 253 private void onDeviceUpdated(BluetoothDevice device) { in onDeviceUpdated()
|
D | AccessoryUtils.java | 72 Context context, BluetoothDevice device) { in getCachedBluetoothDevice() 94 public static String getLocalName(BluetoothDevice device) { in getLocalName() 105 public static boolean isConnected(BluetoothDevice device) { in isConnected() 112 public static boolean isBonded(BluetoothDevice device) { in isBonded() 119 public static boolean isRemoteClass(BluetoothDevice device) { in isRemoteClass() 132 public static boolean isKnownDevice(Context context, BluetoothDevice device) { in isKnownDevice()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/ |
D | MapClientService.java | 99 public synchronized boolean connect(BluetoothDevice device) { in connect() 161 private synchronized void addDeviceToMapAndConnect(BluetoothDevice device) { in addDeviceToMapAndConnect() 169 public synchronized boolean disconnect(BluetoothDevice device) { in disconnect() 202 MceStateMachine getMceStateMachineForDevice(BluetoothDevice device) { in getMceStateMachineForDevice() 224 public synchronized int getConnectionState(BluetoothDevice device) { in getConnectionState() 247 public boolean setConnectionPolicy(BluetoothDevice device, int connectionPolicy) { in setConnectionPolicy() 279 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() 286 public synchronized boolean sendMessage(BluetoothDevice device, Uri[] contacts, String message, in sendMessage() 364 public void cleanupDevice(BluetoothDevice device) { in cleanupDevice() 409 public synchronized boolean getUnreadMessages(BluetoothDevice device) { in getUnreadMessages() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetService.java | 272 private boolean doForStateMachine(BluetoothDevice device, StateMachineTask task) { in doForStateMachine() 437 public boolean connect(BluetoothDevice device) { in connect() 442 public boolean connectWithAttribution(BluetoothDevice device, AttributionSource source) { in connectWithAttribution() 452 public boolean disconnect(BluetoothDevice device) { in disconnect() 457 public boolean disconnectWithAttribution(BluetoothDevice device, AttributionSource source) { in disconnectWithAttribution() 491 public int getConnectionState(BluetoothDevice device) { in getConnectionState() 496 public int getConnectionStateWithAttribution(BluetoothDevice device, in getConnectionStateWithAttribution() 507 public boolean setPriority(BluetoothDevice device, int connectionPolicy, in setPriority() 518 public boolean setConnectionPolicy(BluetoothDevice device, int connectionPolicy, in setConnectionPolicy() 530 public int getPriority(BluetoothDevice device, AttributionSource source) { in getPriority() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/le_audio/ |
D | LeAudioService.java | 203 public boolean connect(BluetoothDevice device) { in connect() 264 public boolean disconnect(BluetoothDevice device) { in disconnect() 372 public int getConnectionState(BluetoothDevice device) { in getConnectionState() 388 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() 413 BluetoothDevice device = stackEvent.device; in messageFromNative() local 467 private LeAudioStateMachine getOrCreateStateMachine(BluetoothDevice device) { in getOrCreateStateMachine() 502 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in onReceive() local 518 void bondStateChanged(BluetoothDevice device, int bondState) { in bondStateChanged() 539 private void removeStateMachine(BluetoothDevice device) { in removeStateMachine() 565 synchronized void connectionStateChanged(BluetoothDevice device, int fromState, in connectionStateChanged() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpCoverArtManager.java | 83 void onImageDownloadComplete(BluetoothDevice device, DownloadEvent event); in onImageDownloadComplete() 97 AvrcpBipSession(BluetoothDevice device) { in AvrcpBipSession() 158 public synchronized boolean connect(BluetoothDevice device, int psm) { in connect() 173 public synchronized boolean refreshSession(BluetoothDevice device) { in refreshSession() 190 public synchronized boolean disconnect(BluetoothDevice device) { in disconnect() 222 public int getState(BluetoothDevice device) { in getState() 244 public String getUuidForHandle(BluetoothDevice device, String handle) { in getUuidForHandle() 259 public String getHandleForUuid(BluetoothDevice device, String uuid) { in getHandleForUuid() 265 private void clearHandleUuids(BluetoothDevice device) { in clearHandleUuids() 278 public Uri getImageUri(BluetoothDevice device, String imageUuid) { in getImageUri() [all …]
|
D | AvrcpControllerService.java | 116 public void onImageDownloadComplete(BluetoothDevice device, in onImageDownloadComplete() 189 private boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() 251 protected AvrcpControllerStateMachine newStateMachine(BluetoothDevice device) { in newStateMachine() 255 protected void getCurrentMetadataIfNoCoverArt(BluetoothDevice device) { in getCurrentMetadataIfNoCoverArt() 266 BluetoothDevice device = node.getDevice(); in refreshContents() local 286 BluetoothDevice device = stateMachine.getDevice(); in playItem() local 327 BluetoothDevice device = requestedNode.getDevice(); in getContents() local 390 public int getConnectionState(BluetoothDevice device, AttributionSource source) { in getConnectionState() 400 public void sendGroupNavigationCmd(BluetoothDevice device, int keyCode, int keyState, in sendGroupNavigationCmd() 422 public BluetoothAvrcpPlayerSettings getPlayerSettings(BluetoothDevice device, in getPlayerSettings() [all …]
|
/packages/services/Car/service/src/com/android/car/ |
D | BluetoothProfileDeviceManager.java | 156 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in onReceive() local 161 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in onReceive() local 166 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in onReceive() local 190 private void handleDeviceConnectionStateChange(BluetoothDevice device, int state) { in handleDeviceConnectionStateChange() 218 private void handleDeviceBondStateChange(BluetoothDevice device, int state) { in handleDeviceBondStateChange() 245 private void handleDeviceUuidEvent(BluetoothDevice device, Parcelable[] uuids) { in handleDeviceUuidEvent() 403 BluetoothDevice device = mBluetoothAdapter.getRemoteDevice(address); in load() local 481 public void addDevice(BluetoothDevice device) { in addDevice() 496 public void removeDevice(BluetoothDevice device) { in removeDevice() 512 public int getDeviceConnectionPriority(BluetoothDevice device) { in getDeviceConnectionPriority() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/ |
D | HidHostService.java | 357 public boolean connect(BluetoothDevice device, AttributionSource source) { in connect() 368 public boolean disconnect(BluetoothDevice device, AttributionSource source) { in disconnect() 379 public int getConnectionState(BluetoothDevice device, AttributionSource source) { in getConnectionState() 406 public boolean setConnectionPolicy(BluetoothDevice device, int connectionPolicy, in setConnectionPolicy() 418 public int getConnectionPolicy(BluetoothDevice device, AttributionSource source) { in getConnectionPolicy() 430 public boolean getProtocolMode(BluetoothDevice device, AttributionSource source) { in getProtocolMode() 440 public boolean virtualUnplug(BluetoothDevice device, AttributionSource source) { in virtualUnplug() 450 public boolean setProtocolMode(BluetoothDevice device, int protocolMode, in setProtocolMode() 461 public boolean getReport(BluetoothDevice device, byte reportType, byte reportId, in getReport() 472 public boolean setReport(BluetoothDevice device, byte reportType, String report, in setReport() [all …]
|
D | HidDeviceService.java | 99 BluetoothDevice device = msg.obj != null ? (BluetoothDevice) msg.obj : null; in handleMessage() local 155 BluetoothDevice device = (BluetoothDevice) msg.obj; in handleMessage() local 349 public boolean sendReport(BluetoothDevice device, int id, byte[] data, in sendReport() 365 public boolean replyReport(BluetoothDevice device, byte type, byte id, byte[] data, in replyReport() 381 public boolean unplug(BluetoothDevice device, AttributionSource source) { in unplug() 396 public boolean connect(BluetoothDevice device, AttributionSource source) { in connect() 411 public boolean disconnect(BluetoothDevice device, AttributionSource source) { in disconnect() 426 public boolean setConnectionPolicy(BluetoothDevice device, int connectionPolicy, in setConnectionPolicy() 443 public boolean reportError(BluetoothDevice device, byte error, AttributionSource source) { in reportError() 458 public int getConnectionState(BluetoothDevice device, AttributionSource source) { in getConnectionState() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkService.java | 120 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() 150 public void requestAudioFocus(BluetoothDevice device, boolean request) { in requestAudioFocus() 170 boolean isA2dpPlaying(BluetoothDevice device) { in isA2dpPlaying() 209 public boolean connect(BluetoothDevice device, AttributionSource source) { in connect() 219 public boolean disconnect(BluetoothDevice device, AttributionSource source) { in disconnect() 248 public int getConnectionState(BluetoothDevice device, AttributionSource source) { in getConnectionState() 258 public boolean setConnectionPolicy(BluetoothDevice device, int connectionPolicy, in setConnectionPolicy() 269 public int getConnectionPolicy(BluetoothDevice device, AttributionSource source) { in getConnectionPolicy() 279 public boolean isA2dpPlaying(BluetoothDevice device, AttributionSource source) { in isA2dpPlaying() 289 public BluetoothAudioConfig getAudioConfig(BluetoothDevice device, in getAudioConfig() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | PhonePolicy.java | 184 BluetoothDevice device = in handleMessage() local 201 BluetoothDevice device = in handleMessage() local 220 BluetoothDevice device = (BluetoothDevice) msg.obj; in handleMessage() local 234 BluetoothDevice device = in handleMessage() local 274 private void processInitProfilePriorities(BluetoothDevice device, ParcelUuid[] uuids) { in processInitProfilePriorities() 328 private void processProfileStateChanged(BluetoothDevice device, int profileId, int nextState, in processProfileStateChanged() 360 private void processActiveDeviceChanged(BluetoothDevice device, int profileId) { in processActiveDeviceChanged() 368 private void processDeviceConnected(BluetoothDevice device) { in processDeviceConnected() 374 private boolean handleAllProfilesDisconnected(BluetoothDevice device) { in handleAllProfilesDisconnected() 442 private void autoConnectA2dp(BluetoothDevice device) { in autoConnectA2dp() [all …]
|
D | SilenceDeviceManager.java | 131 BluetoothDevice device = (BluetoothDevice) msg.obj; in handleMessage() local 141 BluetoothDevice device = in handleMessage() local 165 BluetoothDevice device = in handleMessage() local 245 boolean setSilenceMode(BluetoothDevice device, boolean silence) { in setSilenceMode() 258 void handleSilenceDeviceStateChanged(BluetoothDevice device, boolean state) { in handleSilenceDeviceStateChanged() 287 void broadcastSilenceStateChange(BluetoothDevice device, boolean state) { in broadcastSilenceStateChange() 296 boolean getSilenceMode(BluetoothDevice device) { in getSilenceMode() 304 void addConnectedDevice(BluetoothDevice device, int profile) { in addConnectedDevice() 322 void removeConnectedDevice(BluetoothDevice device, int profile) { in removeConnectedDevice() 340 boolean isBluetoothAudioConnected(BluetoothDevice device) { in isBluetoothAudioConnected()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/ |
D | PbapClientService.java | 120 void cleanupDevice(BluetoothDevice device) { in cleanupDevice() 199 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in onReceive() local 212 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in onReceive() local 253 public boolean connect(BluetoothDevice device, AttributionSource source) { in connect() 267 public boolean disconnect(BluetoothDevice device, AttributionSource source) { in disconnect() 296 public int getConnectionState(BluetoothDevice device, AttributionSource source) { in getConnectionState() 306 public boolean setConnectionPolicy(BluetoothDevice device, int connectionPolicy, in setConnectionPolicy() 317 public int getConnectionPolicy(BluetoothDevice device, AttributionSource source) { in getConnectionPolicy() 350 public boolean connect(BluetoothDevice device) { in connect() 382 public boolean disconnect(BluetoothDevice device) { in disconnect() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/ |
D | AvrcpVolumeManager.java | 76 private void switchVolumeDevice(@NonNull BluetoothDevice device) { in switchVolumeDevice() 125 synchronized void storeVolumeForDevice(@NonNull BluetoothDevice device, int storeVolume) { in storeVolumeForDevice() 139 synchronized void storeVolumeForDevice(@NonNull BluetoothDevice device) { in storeVolumeForDevice() 144 synchronized void removeStoredVolumeForDevice(@NonNull BluetoothDevice device) { in removeStoredVolumeForDevice() 158 synchronized int getVolume(@NonNull BluetoothDevice device, int defaultValue) { in getVolume() 172 void setVolume(@NonNull BluetoothDevice device, int avrcpVolume) { in setVolume() 186 void sendVolumeChanged(@NonNull BluetoothDevice device, int deviceVolume) { in sendVolumeChanged() 207 boolean getAbsoluteVolumeSupported(BluetoothDevice device) { in getAbsoluteVolumeSupported() 248 synchronized void deviceConnected(@NonNull BluetoothDevice device, boolean absoluteVolume) { in deviceConnected() 260 synchronized void volumeDeviceSwitched(@Nullable BluetoothDevice device) { in volumeDeviceSwitched() [all …]
|
/packages/services/Car/car-lib/src/android/car/ |
D | ICarBluetoothUserService.aidl | 26 boolean bluetoothConnectToProfile(in int profile, in BluetoothDevice device); in bluetoothConnectToProfile() 27 boolean bluetoothDisconnectFromProfile(in int profile, in BluetoothDevice device); in bluetoothDisconnectFromProfile() 28 int getProfilePriority(in int profile, in BluetoothDevice device); in getProfilePriority() 29 void setProfilePriority(in int profile, in BluetoothDevice device, in int priority); in setProfilePriority()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | MtpClient.java | 132 public void deviceAdded(MtpDevice device); in deviceAdded() 139 public void deviceRemoved(MtpDevice device); in deviceRemoved() 149 static public boolean isCamera(UsbDevice device) { in isCamera() 300 MtpDevice device = getDevice(deviceName); in getStorageList() local 332 MtpDevice device = getDevice(deviceName); in getObjectInfo() local 347 MtpDevice device = getDevice(deviceName); in deleteObject() local 368 MtpDevice device = getDevice(deviceName); in getObjectList() local 404 MtpDevice device = getDevice(deviceName); in getObject() local 419 MtpDevice device = getDevice(deviceName); in getThumbnail() local 437 MtpDevice device = getDevice(deviceName); in importFile() local
|