Home
last modified time | relevance | path

Searched refs:mRouteInfo (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/
DMediaRouteInfoTest.java39 private TestableRouteInfo mRouteInfo; field in MediaRouteInfoTest
67 mRouteInfo = new TestableRouteInfo(); in setUp()
72 mRouteInfo.setPresentationDisplays(sWifiDisplay); in testGetPresentationDisplay_notLiveVideo()
73 mRouteInfo.mSupportedType = MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY; in testGetPresentationDisplay_notLiveVideo()
75 mRouteInfo.updatePresentationDisplay(); in testGetPresentationDisplay_notLiveVideo()
77 assertThat(mRouteInfo.getPresentationDisplay()).isNull(); in testGetPresentationDisplay_notLiveVideo()
82 mRouteInfo.setPresentationDisplays(sWifiDisplay); in testGetPresentationDisplay_includesLiveVideo()
83 mRouteInfo.mSupportedType |= MediaRouter.ROUTE_TYPE_LIVE_AUDIO; in testGetPresentationDisplay_includesLiveVideo()
85 mRouteInfo.updatePresentationDisplay(); in testGetPresentationDisplay_includesLiveVideo()
87 assertThat(mRouteInfo.getPresentationDisplay()).isEqualTo(sWifiDisplay); in testGetPresentationDisplay_includesLiveVideo()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DInfoMediaDeviceTest.java58 private MediaRoute2Info mRouteInfo; field in InfoMediaDeviceTest
68 mInfoMediaDevice = new InfoMediaDevice(mContext, mRouteInfo, /* item */ null); in setUp()
73 when(mRouteInfo.getName()).thenReturn(TEST_NAME); in getName_shouldReturnName()
80 when(mRouteInfo.getClientPackageName()).thenReturn(null); in getSummary_clientPackageNameIsNull_returnNull()
87 when(mRouteInfo.getClientPackageName()).thenReturn(TEST_PACKAGE_NAME); in getSummary_clientPackageNameIsNotNull_returnActive()
95 when(mRouteInfo.getId()).thenReturn(TEST_ID); in getId_shouldReturnId()
102 when(mRouteInfo.getType()).thenReturn(TYPE_REMOTE_TV); in getDrawableResId_returnCorrectResId()
107 when(mRouteInfo.getType()).thenReturn(TYPE_REMOTE_SPEAKER); in getDrawableResId_returnCorrectResId()
112 when(mRouteInfo.getType()).thenReturn(TYPE_GROUP); in getDrawableResId_returnCorrectResId()
117 when(mRouteInfo.getType()).thenReturn(TYPE_REMOTE_TABLET); in getDrawableResId_returnCorrectResId()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DMediaDevice.java124 protected final MediaRoute2Info mRouteInfo; field in MediaDevice
132 mRouteInfo = info; in MediaDevice()
333 if (mRouteInfo == null) { in getMaxVolume()
337 return mRouteInfo.getVolumeMax(); in getMaxVolume()
346 if (mRouteInfo == null) { in getCurrentVolume()
350 return mRouteInfo.getVolume(); in getCurrentVolume()
359 if (mRouteInfo == null) { in getClientPackageName()
363 return mRouteInfo.getClientPackageName(); in getClientPackageName()
374 return mRouteInfo.getType() == TYPE_BLE_HEADSET; in isBLEDevice()
393 if (mRouteInfo == null) { in isVolumeFixed()
[all …]
DInfoMediaDevice.java57 return mRouteInfo.getName().toString(); in getName()
62 return mRouteInfo.getClientPackageName() != null in getSummary()
80 switch (mRouteInfo.getType()) { in getDrawableResIdByType()
118 return mRouteInfo.getId(); in getId()
DPhoneMediaDevice.java146 return getSystemRouteNameFromType(mContext, mRouteInfo); in getName()
192 switch (mRouteInfo.getType()) { in getSummary()
229 return mDeviceIconUtil.getIconResIdFromMediaRouteType(mRouteInfo.getType()); in getDrawableResId()
244 return mRouteInfo.getId(); in getId()
248 switch (mRouteInfo.getType()) { in getId()
DComplexMediaDevice.java47 return mRouteInfo.getName().toString(); in getName()
67 return mRouteInfo.getId(); in getId()
DInfoMediaManager.java386 if (device.mRouteInfo == null) { in connectToDevice()
392 transferToRoute(device.mRouteInfo); in connectToDevice()
403 if (!info.getSelectableRoutes().contains(device.mRouteInfo.getId())) { in addDeviceToPlayMedia()
409 selectRoute(device.mRouteInfo, info); in addDeviceToPlayMedia()
483 if (!info.getSelectedRoutes().contains(device.mRouteInfo.getId())) { in removeDeviceFromPlayMedia()
489 deselectRoute(device.mRouteInfo, info); in removeDeviceFromPlayMedia()
554 if (device.mRouteInfo == null) { in adjustDeviceVolume()
558 setRouteVolume(device.mRouteInfo, volume); in adjustDeviceVolume()