commit | a141de4fe431c74091f5d62bf61d8a0a4d984e2f | [log] [tgz] |
---|---|---|
author | Tomasz Wasilczyk <[email protected]> | Thu May 24 22:24:42 2018 +0000 |
committer | Android (Google) Code Review <[email protected]> | Thu May 24 22:24:42 2018 +0000 |
tree | fffbb7d441943c02a1637ad8821446a65f74b720 | |
parent | 47879540483bdcf58164346db3b2194cb7899515 [diff] | |
parent | a96adc674e4c5b31a941e7e6860d3c1ec3425c32 [diff] |
Merge "Implement general play intent." into pi-dev
diff --git a/car-broadcastradio-support/src/com/android/car/broadcastradio/support/Program.java b/car-broadcastradio-support/src/com/android/car/broadcastradio/support/Program.java index 4d1de73..af57c90 100644 --- a/car-broadcastradio-support/src/com/android/car/broadcastradio/support/Program.java +++ b/car-broadcastradio-support/src/com/android/car/broadcastradio/support/Program.java
@@ -53,7 +53,7 @@ /** @hide */ public @Nullable Bitmap getIcon() { - // TODO(b/75970985): implement saving icons + // TODO(b/73950974): implement saving icons return null; }
diff --git a/car-broadcastradio-support/src/com/android/car/broadcastradio/support/media/BrowseTree.java b/car-broadcastradio-support/src/com/android/car/broadcastradio/support/media/BrowseTree.java index c9d7285..347bb82 100644 --- a/car-broadcastradio-support/src/com/android/car/broadcastradio/support/media/BrowseTree.java +++ b/car-broadcastradio-support/src/com/android/car/broadcastradio/support/media/BrowseTree.java
@@ -109,6 +109,15 @@ public static final String EXTRA_BCRADIO_BAND_NAME_EN = "android.media.extra.EXTRA_BCRADIO_BAND_NAME_EN"; + /** + * General play intent action. + * + * MediaBrowserService of the radio app must handle this command to perform general + * "play" command. It usually means starting playback of recently tuned station. + */ + public static final String ACTION_PLAY_BROADCASTRADIO = + "android.car.intent.action.PLAY_BROADCASTRADIO"; + private static final String NODE_ROOT = "root_id"; private static final String NODE_PROGRAMS = "programs_id"; private static final String NODE_FAVORITES = "favorites_id";