Home
last modified time | relevance | path

Searched refs:PhoneMediaDevice (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DPhoneMediaDeviceTest.java24 import static com.android.settingslib.media.PhoneMediaDevice.PHONE_ID;
25 import static com.android.settingslib.media.PhoneMediaDevice.USB_HEADSET_ID;
26 import static com.android.settingslib.media.PhoneMediaDevice.WIRED_HEADSET_ID;
27 import static com.android.settingslib.media.PhoneMediaDevice.getMediaTransferThisDeviceName;
60 private PhoneMediaDevice mPhoneMediaDevice;
67 mPhoneMediaDevice = new PhoneMediaDevice(mContext, mInfo, null); in setUp()
DMediaDeviceTest.java122 private PhoneMediaDevice mPhoneMediaDevice;
184 mPhoneMediaDevice = new PhoneMediaDevice(mContext, mPhoneRouteInfo, /* item */ null); in setUp()
318 final PhoneMediaDevice phoneMediaDevice = in compareTo_bluetooth_wiredHeadset_wiredHeadsetFirst()
319 new PhoneMediaDevice(mContext, phoneRouteInfo, /* item */ null); in compareTo_bluetooth_wiredHeadset_wiredHeadsetFirst()
334 final PhoneMediaDevice phoneMediaDevice = in compareTo_info_wiredHeadset_wiredHeadsetFirst()
335 new PhoneMediaDevice(mContext, phoneRouteInfo, /* item */ null); in compareTo_info_wiredHeadset_wiredHeadsetFirst()
503 new PhoneMediaDevice(mContext, mPhoneRouteInfo, mItem); in getSelectionBehavior_setItemWithSelectionBehaviorOnSystemRoute_returnTransfer()
DLocalMediaManagerTest.java559 final PhoneMediaDevice phoneDevice = mock(PhoneMediaDevice.class); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice()
587 final PhoneMediaDevice phoneDevice = mock(PhoneMediaDevice.class); in updateCurrentConnectedDevice_phoneDeviceIsActive_returnPhoneDevice()
DInfoMediaManagerTest.java819 assertThat(mInfoMediaManager.mMediaDevices.get(0) instanceof PhoneMediaDevice).isTrue(); in addMediaDevice_verifyDeviceTypeCanCorrespondToMediaDevice()
825 assertThat(mInfoMediaManager.mMediaDevices.get(0) instanceof PhoneMediaDevice).isTrue(); in addMediaDevice_verifyDeviceTypeCanCorrespondToMediaDevice()
841 assertThat(mInfoMediaManager.mMediaDevices.get(0) instanceof PhoneMediaDevice).isTrue(); in addMediaDevice_verifyDeviceTypeCanCorrespondToMediaDevice()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/volume/panel/component/mediaoutput/domain/interactor/
DTestMediaDevicesFactory.kt28 import com.android.settingslib.media.PhoneMediaDevice
47 mock<PhoneMediaDevice> { in wiredMediaDevice()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/domain/interactor/
DAudioOutputInteractor.kt27 import com.android.settingslib.media.PhoneMediaDevice in <lambda>()
110 name = PhoneMediaDevice.getMediaTransferThisDeviceName(context), in <lambda>()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DPhoneMediaDevice.java56 public class PhoneMediaDevice extends MediaDevice { class
123 PhoneMediaDevice( in PhoneMediaDevice() method in PhoneMediaDevice
DLocalMediaManager.java475 } else if (device instanceof PhoneMediaDevice) { in updateCurrentConnectedDevice()
DInfoMediaManager.java706 new PhoneMediaDevice( in addMediaDevice()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/domain/pipeline/
DMediaDeviceManager.kt38 import com.android.settingslib.media.PhoneMediaDevice in <lambda>()
477 if (device is PhoneMediaDevice) { in <lambda>()
479 return PhoneMediaDevice.getSystemRouteNameFromType(context, it) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/pipeline/
DMediaDeviceManagerTest.kt45 import com.android.settingslib.media.PhoneMediaDevice
556 val phoneDevice = mock(PhoneMediaDevice::class.java) in mr2ReturnsSystemRouteWithNullName_isPhone_usePhoneName()
572 assertThat(data.name).isEqualTo(PhoneMediaDevice.getMediaTransferThisDeviceName(context)) in mr2ReturnsSystemRouteWithNullName_isPhone_usePhoneName()