Merge "[Media TTT] Use clientPackageName instead of packageName to fetch transfer application info." into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
7738b57021
@@ -68,7 +68,7 @@ class MediaTttCommandLineHelper @Inject constructor(
|
|||||||
.addFeature("feature")
|
.addFeature("feature")
|
||||||
val useAppIcon = !(args.size >= 3 && args[2] == "useAppIcon=false")
|
val useAppIcon = !(args.size >= 3 && args[2] == "useAppIcon=false")
|
||||||
if (useAppIcon) {
|
if (useAppIcon) {
|
||||||
routeInfo.setPackageName(TEST_PACKAGE_NAME)
|
routeInfo.setClientPackageName(TEST_PACKAGE_NAME)
|
||||||
}
|
}
|
||||||
|
|
||||||
statusBarManager.updateMediaTapToTransferSenderDisplay(
|
statusBarManager.updateMediaTapToTransferSenderDisplay(
|
||||||
@@ -134,7 +134,7 @@ class MediaTttCommandLineHelper @Inject constructor(
|
|||||||
.addFeature("feature")
|
.addFeature("feature")
|
||||||
val useAppIcon = !(args.size >= 2 && args[1] == "useAppIcon=false")
|
val useAppIcon = !(args.size >= 2 && args[1] == "useAppIcon=false")
|
||||||
if (useAppIcon) {
|
if (useAppIcon) {
|
||||||
routeInfo.setPackageName(TEST_PACKAGE_NAME)
|
routeInfo.setClientPackageName(TEST_PACKAGE_NAME)
|
||||||
}
|
}
|
||||||
|
|
||||||
statusBarManager.updateMediaTapToTransferReceiverDisplay(
|
statusBarManager.updateMediaTapToTransferReceiverDisplay(
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ class MediaTttChipControllerReceiver @Inject constructor(
|
|||||||
super.updateChipView(newChipInfo, currentChipView)
|
super.updateChipView(newChipInfo, currentChipView)
|
||||||
setIcon(
|
setIcon(
|
||||||
currentChipView,
|
currentChipView,
|
||||||
newChipInfo.routeInfo.packageName,
|
newChipInfo.routeInfo.clientPackageName,
|
||||||
newChipInfo.appIconDrawableOverride,
|
newChipInfo.appIconDrawableOverride,
|
||||||
newChipInfo.appNameOverride
|
newChipInfo.appNameOverride
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ class MediaTttChipControllerSender @Inject constructor(
|
|||||||
val chipState = newChipInfo.state
|
val chipState = newChipInfo.state
|
||||||
|
|
||||||
// App icon
|
// App icon
|
||||||
val iconName = setIcon(currentChipView, newChipInfo.routeInfo.packageName)
|
val iconName = setIcon(currentChipView, newChipInfo.routeInfo.clientPackageName)
|
||||||
|
|
||||||
// Text
|
// Text
|
||||||
val otherDeviceName = newChipInfo.routeInfo.name.toString()
|
val otherDeviceName = newChipInfo.routeInfo.name.toString()
|
||||||
|
|||||||
@@ -241,5 +241,5 @@ private const val PACKAGE_NAME = "com.android.systemui"
|
|||||||
|
|
||||||
private val routeInfo = MediaRoute2Info.Builder("id", "Test route name")
|
private val routeInfo = MediaRoute2Info.Builder("id", "Test route name")
|
||||||
.addFeature("feature")
|
.addFeature("feature")
|
||||||
.setPackageName(PACKAGE_NAME)
|
.setClientPackageName(PACKAGE_NAME)
|
||||||
.build()
|
.build()
|
||||||
|
|||||||
@@ -686,5 +686,5 @@ private const val TIMEOUT = 10000
|
|||||||
|
|
||||||
private val routeInfo = MediaRoute2Info.Builder("id", OTHER_DEVICE_NAME)
|
private val routeInfo = MediaRoute2Info.Builder("id", OTHER_DEVICE_NAME)
|
||||||
.addFeature("feature")
|
.addFeature("feature")
|
||||||
.setPackageName(PACKAGE_NAME)
|
.setClientPackageName(PACKAGE_NAME)
|
||||||
.build()
|
.build()
|
||||||
|
|||||||
Reference in New Issue
Block a user