Home
last modified time | relevance | path

Searched refs:currentDevice (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/media/muteawait/
DMediaMuteAwaitConnectionManager.kt82 val currentDevice = audioManager.mutingExpectedDevice in startListening() constant
83 if (currentDevice != null) { in startListening()
84 currentMutedDevice = currentDevice in startListening()
86 currentDevice.address, currentDevice.name, currentDevice.getIcon() in startListening()
/frameworks/base/services/core/java/com/android/server/power/stats/wakeups/
DIrqDeviceMap.java56 String currentDevice = null; in IrqDeviceMap() local
61 currentDevice = parser.getAttributeValue(null, ATTR_NAME); in IrqDeviceMap()
63 if (currentDevice != null && type == XmlPullParser.END_TAG in IrqDeviceMap()
67 mSubsystemsForDevice.put(currentDevice, in IrqDeviceMap()
71 currentDevice = null; in IrqDeviceMap()
73 if (currentDevice != null && type == XmlPullParser.START_TAG in IrqDeviceMap()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/panel/component/mediaoutput/domain/interactor/
DMediaOutputInteractorTest.kt172 val currentDevice by collectLastValue(underTest.currentConnectedDevice) in activeLocalAndRemoteSession_defaultSession_local() constant
180 assertThat(currentDevice!!.name).isEqualTo("local_media_device") in activeLocalAndRemoteSession_defaultSession_local()
196 val currentDevice by collectLastValue(underTest.currentConnectedDevice) in activeRemoteSession_defaultSession_remote() constant
204 assertThat(currentDevice!!.name).isEqualTo("remote_media_device") in activeRemoteSession_defaultSession_remote()
220 val currentDevice by collectLastValue(underTest.currentConnectedDevice) in inactiveLocalAndRemoteSession_defaultSession_local() constant
228 assertThat(currentDevice!!.name).isEqualTo("local_media_device") in inactiveLocalAndRemoteSession_defaultSession_local()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DLocalMediaManagerTest.java159 final MediaDevice currentDevice = mock(MediaDevice.class); in connectDevice_deviceNotEqualCurrentConnectedDevice_connectDevice() local
161 mLocalMediaManager.mMediaDevices.add(currentDevice); in connectDevice_deviceNotEqualCurrentConnectedDevice_connectDevice()
163 mLocalMediaManager.mCurrentConnectedDevice = currentDevice; in connectDevice_deviceNotEqualCurrentConnectedDevice_connectDevice()
166 when(currentDevice.getId()).thenReturn(TEST_CURRENT_DEVICE_ID); in connectDevice_deviceNotEqualCurrentConnectedDevice_connectDevice()
393 final MediaDevice currentDevice = mock(MediaDevice.class); in onDeviceAttributesChanged_failingTransferring_shouldResetState() local
397 mLocalMediaManager.mMediaDevices.add(currentDevice); in onDeviceAttributesChanged_failingTransferring_shouldResetState()
399 when(currentDevice.getId()).thenReturn(TEST_CURRENT_DEVICE_ID); in onDeviceAttributesChanged_failingTransferring_shouldResetState()
492 final MediaDevice currentDevice = mock(MediaDevice.class); in onDeviceListAdded_transferToDisconnectedBluetooth_verifyConnectDevice() local
496 mLocalMediaManager.mMediaDevices.add(currentDevice); in onDeviceListAdded_transferToDisconnectedBluetooth_verifyConnectDevice()
499 when(currentDevice.getId()).thenReturn(TEST_CURRENT_DEVICE_ID); in onDeviceListAdded_transferToDisconnectedBluetooth_verifyConnectDevice()
[all …]
/frameworks/base/services/core/java/com/android/server/audio/
DSpatializerHelper.java370 final AudioDeviceAttributes currentDevice = sRoutingDevices.get(0); in onRoutingUpdated() local
373 if (isBluetoothDevice(currentDevice.getInternalType())) { in onRoutingUpdated()
374 addWirelessDeviceIfNew(currentDevice); in onRoutingUpdated()
378 final Pair<Boolean, Boolean> enabledAvailable = evaluateState(currentDevice); in onRoutingUpdated()
385 + " on device:" + currentDevice); in onRoutingUpdated()
388 loglogi("onRoutingUpdated: device:" + currentDevice in onRoutingUpdated()
396 + currentDevice); in onRoutingUpdated()
399 + currentDevice); in onRoutingUpdated()
1231 final AudioDeviceAttributes currentDevice = sRoutingDevices.get(0); in setHeadTrackerEnabled() local
1232 if (currentDevice.getType() == ada.getType() in setHeadTrackerEnabled()
[all …]