Home
last modified time | relevance | path

Searched refs:isDeviceConnected (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DConnectedBluetoothDeviceUpdaterTest.java126 isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); in onAudioModeChanged_hfpDeviceConnected_notInCall_addPreference()
138 isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); in onAudioModeChanged_hfpDeviceConnected_inCall_removePreference()
150 isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); in onAudioModeChanged_a2dpDeviceConnected_notInCall_removePreference()
162 isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); in onAudioModeChanged_a2dpDeviceConnected_inCall_addPreference()
174 isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); in onProfileConnectionStateChanged_a2dpDeviceConnected_inCall_addPreference()
187 isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); in onProfileConnectionStateChanged_deviceIsNotInList_inCall_invokesRemovePreference()
201 isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); in onProfileConnectionStateChanged_a2dpDeviceConnected_notInCall_removePreference()
214 isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); in onProfileConnectionStateChanged_hfpDeviceConnected_inCall_removePreference()
227 isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); in onProfileConnectionStateChanged_hfpDeviceConnected_notInCall_addPreference()
241 isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); in onProfileConnectionStateChanged_ashaHearingAidConnected_inCall_removePreference()
[all …]
DAvailableMediaBluetoothDeviceUpdaterTest.java142 when(mBluetoothDeviceUpdater.isDeviceConnected(any(CachedBluetoothDevice.class))) in onAudioModeChanged_hfpDeviceConnected_inCall_addPreference()
154 when(mBluetoothDeviceUpdater.isDeviceConnected(any(CachedBluetoothDevice.class))) in onAudioModeChanged_hfpDeviceConnected_notInCall_removePreference()
166 when(mBluetoothDeviceUpdater.isDeviceConnected(any(CachedBluetoothDevice.class))) in onAudioModeChanged_a2dpDeviceConnected_inCall_removePreference()
178 when(mBluetoothDeviceUpdater.isDeviceConnected(any(CachedBluetoothDevice.class))) in onAudioModeChanged_a2dpDeviceConnected_notInCall_addPreference()
190 when(mBluetoothDeviceUpdater.isDeviceConnected(any(CachedBluetoothDevice.class))) in onProfileConnectionStateChanged_a2dpDeviceConnected_notInCall_addPreference()
203 when(mBluetoothDeviceUpdater.isDeviceConnected(any(CachedBluetoothDevice.class))) in onProfileConnectionStateChanged_a2dpDeviceConnected_inCall_removePreference()
216 when(mBluetoothDeviceUpdater.isDeviceConnected(any(CachedBluetoothDevice.class))) in onProfileConnectionStateChanged_hfpDeviceConnected_notInCall_removePreference()
229 when(mBluetoothDeviceUpdater.isDeviceConnected(any(CachedBluetoothDevice.class))) in onProfileConnectionStateChanged_hfpDeviceConnected_inCall_addPreference()
242 when(mBluetoothDeviceUpdater.isDeviceConnected(any(CachedBluetoothDevice.class))) in onProfileConnectionStateChanged_ashaHearingAidConnected_notInCall_addPreference()
257 when(mBluetoothDeviceUpdater.isDeviceConnected(any(CachedBluetoothDevice.class))) in onProfileConnectionStateChanged_ashaHearingAidConnected_inCall_addPreference()
[all …]
DBluetoothDeviceUpdaterTest.java190 assertThat(mBluetoothDeviceUpdater.isDeviceConnected(mCachedBluetoothDevice)).isTrue(); in isDeviceConnected_deviceConnected()
198 assertThat(mBluetoothDeviceUpdater.isDeviceConnected(mCachedBluetoothDevice)).isFalse(); in isDeviceConnected_deviceNotConnected()
/packages/apps/Settings/src/com/android/settings/accessibility/
DAvailableHearingDeviceUpdater.java40 && isDeviceConnected(cachedDevice) in isFilterMatched()
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingBluetoothDeviceUpdater.java53 if (isDeviceConnected(cachedDevice) && isDeviceInCachedDevicesList(cachedDevice)) { in isFilterMatched()
DAudioSharingDeviceVolumeControlUpdater.java64 if (isDeviceConnected(cachedDevice) && isDeviceInCachedDevicesList(cachedDevice)) { in isFilterMatched()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DMtpDeviceIndex.java132 public synchronized boolean isDeviceConnected() { in isDeviceConnected() method in MtpDeviceIndex
196 if (!isDeviceConnected() || mResults != null) { in getIndexRunnable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingBluetoothDeviceUpdaterTest.java215 when(mDeviceUpdater.isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(false); in onProfileConnectionStateChanged_leaDeviceDisconnected_removesPref()
281 when(mDeviceUpdater.isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); in setupPreferenceMapWithDevice()
DAudioSharingDeviceVolumeControlUpdaterTest.java207 when(mDeviceUpdater.isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(false); in onProfileConnectionStateChanged_leaDeviceDisconnected_removesPref()
365 when(mDeviceUpdater.isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); in setupPreferenceMapWithDevice()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DConnectedBluetoothDeviceUpdater.java70 if (isDeviceConnected(cachedDevice) && isDeviceInCachedDevicesList(cachedDevice)) { in isFilterMatched()
DAvailableMediaBluetoothDeviceUpdater.java73 if (isDeviceConnected(cachedDevice) && isDeviceInCachedDevicesList(cachedDevice)) { in isFilterMatched()
DBluetoothDeviceUpdater.java313 public boolean isDeviceConnected(CachedBluetoothDevice cachedDevice) { in isDeviceConnected() method in BluetoothDeviceUpdater
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbUtil.java81 public static boolean isDeviceConnected(UsbManager usbManager, UsbDevice device) { in isDeviceConnected() method in UsbUtil
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/adapter/
DMtpAdapter.java80 return (mModel != null) && mModel.isDeviceConnected(); in deviceConnected()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mcp/
DMediaControlGattService.java1247 public boolean isDeviceConnected(BluetoothDevice device) { in isDeviceConnected() method in MediaControlGattService.BluetoothGattServerProxy
1821 if (!mBluetoothGattServer.isDeviceConnected(device)) return; in notifyCharacteristic()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mcp/
DMediaControlGattServiceTest.java121 doReturn(true).when(mMockGattServer).isDeviceConnected(eq(mCurrentDevice)); in prepareConnectedDevice()