Home
last modified time | relevance | path

Searched refs:getDevices (Results 1 – 25 of 50) sorted by relevance

12

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java483 assertThat(mA2dpService.getDevices()).contains(sTestDevice); in testCreateStateMachineStackEvents()
492 assertThat(mA2dpService.getDevices()).contains(sTestDevice); in testCreateStateMachineStackEvents()
496 assertThat(mA2dpService.getDevices()).doesNotContain(sTestDevice); in testCreateStateMachineStackEvents()
503 assertThat(mA2dpService.getDevices()).contains(sTestDevice); in testCreateStateMachineStackEvents()
520 assertThat(mA2dpService.getDevices()).contains(sTestDevice); in testCreateStateMachineStackEvents()
524 assertThat(mA2dpService.getDevices()).doesNotContain(sTestDevice); in testCreateStateMachineStackEvents()
531 assertThat(mA2dpService.getDevices()).doesNotContain(sTestDevice); in testCreateStateMachineStackEvents()
538 assertThat(mA2dpService.getDevices()).doesNotContain(sTestDevice); in testCreateStateMachineStackEvents()
579 assertThat(mA2dpService.getDevices()).doesNotContain(sTestDevice); in testProcessAudioStateChangedCodecConfigChangedEvents()
585 assertThat(mA2dpService.getDevices()).doesNotContain(sTestDevice); in testProcessAudioStateChangedCodecConfigChangedEvents()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java710 assertThat(mService.getDevices()).contains(mLeftDevice); in testCreateStateMachineStackEvents()
719 assertThat(mService.getDevices()).contains(mLeftDevice); in testCreateStateMachineStackEvents()
721 assertThat(mService.getDevices()).doesNotContain(mLeftDevice); in testCreateStateMachineStackEvents()
728 assertThat(mService.getDevices()).contains(mLeftDevice); in testCreateStateMachineStackEvents()
735 assertThat(mService.getDevices()).contains(mLeftDevice); in testCreateStateMachineStackEvents()
737 assertThat(mService.getDevices()).doesNotContain(mLeftDevice); in testCreateStateMachineStackEvents()
744 assertThat(mService.getDevices()).doesNotContain(mLeftDevice); in testCreateStateMachineStackEvents()
751 assertThat(mService.getDevices()).doesNotContain(mLeftDevice); in testCreateStateMachineStackEvents()
778 assertThat(mService.getDevices()).contains(mLeftDevice); in testDeleteStateMachineUnbondEvents()
781 assertThat(mService.getDevices()).contains(mLeftDevice); in testDeleteStateMachineUnbondEvents()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/vc/
DVolumeControlServiceTest.java458 Assert.assertTrue(mService.getDevices().contains(mDevice)); in testCreateStateMachineStackEvents()
465 Assert.assertTrue(mService.getDevices().contains(mDevice)); in testCreateStateMachineStackEvents()
467 Assert.assertFalse(mService.getDevices().contains(mDevice)); in testCreateStateMachineStackEvents()
473 Assert.assertTrue(mService.getDevices().contains(mDevice)); in testCreateStateMachineStackEvents()
480 Assert.assertTrue(mService.getDevices().contains(mDevice)); in testCreateStateMachineStackEvents()
482 Assert.assertFalse(mService.getDevices().contains(mDevice)); in testCreateStateMachineStackEvents()
489 Assert.assertFalse(mService.getDevices().contains(mDevice)); in testCreateStateMachineStackEvents()
495 Assert.assertFalse(mService.getDevices().contains(mDevice)); in testCreateStateMachineStackEvents()
516 Assert.assertTrue(mService.getDevices().contains(mDevice)); in testDeleteStateMachineDisconnectEvents()
523 Assert.assertTrue(mService.getDevices().contains(mDevice)); in testDeleteStateMachineDisconnectEvents()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothDevicesService.java59 public List<BluetoothDevice> getDevices() { in getDevices() method in BluetoothDevicesService.LocalBinder
60 return BluetoothDevicesService.this.getDevices(); in getDevices()
69 for (BluetoothDevice device : getDevices()) { in addListener()
202 for (BluetoothDevice device: getDevices()) { in dump()
281 List<BluetoothDevice> devices = getDevices(); in findDevice()
292 private static List<BluetoothDevice> getDevices() { in getDevices() method in BluetoothDevicesService
/packages/services/Mtp/tests/src/com/android/mtp/
DMtpManagerTest.java84 final MtpDeviceRecord[] records = mManager.getDevices(); in testOperationsSupported()
91 final MtpDeviceRecord[] records = mManager.getDevices(); in testEventsSupported()
98 final MtpDeviceRecord[] records = mManager.getDevices(); in testDeviceKey()
119 for (final MtpDeviceRecord record : mManager.getDevices()) { in testCreateDocumentAndGetPartialObject()
DTestUtil.java114 for (final MtpDeviceRecord deviceCandidate : manager.getDevices()) { in waitForStorages()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioServiceTest.java768 assertThat(mService.getDevices().contains(mLeftDevice)).isTrue(); in testCreateStateMachineStackEvents()
777 assertThat(mService.getDevices().contains(mLeftDevice)).isTrue(); in testCreateStateMachineStackEvents()
779 assertThat(mService.getDevices().contains(mLeftDevice)).isFalse(); in testCreateStateMachineStackEvents()
794 assertThat(mService.getDevices().contains(mLeftDevice)).isTrue(); in testCreateStateMachineStackEvents()
801 assertThat(mService.getDevices().contains(mLeftDevice)).isTrue(); in testCreateStateMachineStackEvents()
803 assertThat(mService.getDevices().contains(mLeftDevice)).isFalse(); in testCreateStateMachineStackEvents()
810 assertThat(mService.getDevices().contains(mLeftDevice)).isFalse(); in testCreateStateMachineStackEvents()
818 assertThat(mService.getDevices().contains(mLeftDevice)).isFalse(); in testCreateStateMachineStackEvents()
846 assertThat(mService.getDevices().contains(mLeftDevice)).isTrue(); in testDeleteStateMachineUnbondEvents()
849 assertThat(mService.getDevices().contains(mLeftDevice)).isTrue(); in testDeleteStateMachineUnbondEvents()
[all …]
/packages/modules/NeuralNetworks/driver/sample/
DSampleDriverSL.cpp25 std::vector<SharedDevice> getDevices() { in getDevices() function
/packages/services/Car/service/src/com/android/car/audio/
DAudioManagerWrapper.java194 AudioDeviceInfo[] getDevices(int flags) { in getDevices() method in AudioManagerWrapper
195 return mAudioManager.getDevices(flags); in getDevices()
DCarAudioUtils.java84 AudioDeviceInfo[] infos = audioManager.getDevices(GET_DEVICES_OUTPUTS); in getAudioDeviceInfo()
/packages/modules/NeuralNetworks/runtime/
DTelemetry.cpp166 .deviceId = makeDeviceId(c->getDevices()), in onCompilationFinish()
221 .deviceId = makeDeviceId(compilation->getDevices()), in onExecutionFinish()
DCompilationBuilder.h81 const std::vector<std::shared_ptr<Device>>& getDevices() const { return mDevices; } in getDevices() function
DManager.h279 std::vector<SharedDevice> getDevices();
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioUtilsTest.java177 when(audioManager.getDevices(anyInt())).thenReturn(new AudioDeviceInfo[]{info2, info1}); in getAudioDeviceInfo()
191 when(audioManager.getDevices(anyInt())).thenReturn(new AudioDeviceInfo[]{info2, info1}); in getAudioDeviceInfo_withDeviceNotAvailable()
356 when(manager.getDevices(AudioManager.GET_DEVICES_OUTPUTS)) in setUpMockAudioManager()
DAudioManagerWrapperTest.java417 public void getDevices() { in getDevices() method in AudioManagerWrapperTest
421 when(mAudioManager.getDevices(GET_DEVICES_OUTPUTS)).thenReturn(infos); in getDevices()
424 mAudioManagerWrapper.getDevices(GET_DEVICES_OUTPUTS)).isEqualTo(infos); in getDevices()
/packages/modules/Bluetooth/android/pandora/server/src/
DAsha.kt124 val outputDevices = audioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS) in start()
181 audioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS) in start()
/packages/apps/Dialer/java/com/android/incallui/audiomode/
DAudioModeProvider.java84 for (AudioDeviceInfo info : audioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS)) { in getApproximatedAudioRoute()
/packages/services/Telecomm/src/com/android/server/telecom/
DWiredHeadsetManager.java105 AudioDeviceInfo[] devices = mAudioManager.getDevices(AudioManager.GET_DEVICES_ALL); in isWiredHeadsetPluggedIn()
DCallRecordingTonePlayer.java318 AudioDeviceInfo[] deviceList = audioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); in getTelephonyDevice()
/packages/services/Telecomm/testapps/callaudiotest/src/com/android/server/telecom/callaudiotest/
DCallAudioTestInCallService.java120 AudioDeviceInfo[] deviceList = audioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); in getTelephonyDevice()
/packages/services/Mtp/src/com/android/mtp/
DRootScanner.java136 final MtpDeviceRecord[] devices = mManager.getDevices(); in run()
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
DVoicemailAudioManager.java157 for (AudioDeviceInfo info : audioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS)) { in hasMediaAudioCapability()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioDynamicRoutingTest.java258 when(mAudioManager.getDevices(anyInt())).thenReturn( in setupAudioDynamicRoutingForMirrorDevice()
287 when(mAudioManager.getDevices(anyInt())).thenReturn( in getTestCarAudioZones()
/packages/modules/NeuralNetworks/driver/sample_aidl/
DAndroid.bp84 // `getDevices`) as sAIDL objects and registers them with service manager.
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastAlertAudioTest.java129 doReturn(mDevices).when(mMockedAudioManager).getDevices(anyInt()); in setUp()
256 verify(mMockedAudioManager).getDevices(anyInt()); in testStartServiceNotInCallOverrideDnd()

12