Skip to content
Commit b3828743 authored by Caitlin Cassidy's avatar Caitlin Cassidy
Browse files

[Media TTT] Add three different states for the media TTT chip and allow

each of them to be displayed with the correct text via adb.

For example, to display the "Move closer to..." chip state for a device
named "Tablet", run the adb command `adb shell cmd statusbar
media-ttt-chip-add Tablet MOVE_CLOSER_TO_TRANSFER`.

App icon, loading icon, and undo button coming in future CLs.
Screenshots of the chip with loading and undo are in
https://b.corp.google.com/issues/203800327#comment3.

Bug: 203800327
Test: `adb shell cmd statusbar
media-ttt-chip-add Tablet MOVE_CLOSER_TO_TRANSFER` shows a chip with the
text "Move closer to play on Tablet"
Test: `adb shell cmd statusbar
media-ttt-chip-add Tablet TRANSFER_INITIATED` shows a chip with the text
"Playing on Tablet" (will have a loading icon in future)
Test: `adb shell cmd statusbar
media-ttt-chip-add Tablet TRANSFER_SUCCEEDED` shows a chip with the text
"Playing on Tablet" (will have an undo button in future)
Test: MediaTttChipControllerTest

Change-Id: Icc8f5561fff6d862c4eedaa5b454c35aa827bcaf
parent 77243f98
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment