aboutsummaryrefslogtreecommitdiff
path: root/TestMediaApp/src/com/android/car/media/testmediaapp/TmaMediaEvent.java
diff options
context:
space:
mode:
authorArnaud Berry <arnaudberry@google.com>2021-03-04 16:08:44 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-03-04 16:08:44 +0000
commit03da64e262b72d7f5bdb6070f55765a5720b4641 (patch)
treef237618e627c68b5f6367bb0097df4ce5eae57a6 /TestMediaApp/src/com/android/car/media/testmediaapp/TmaMediaEvent.java
parent3a684f571cac762c416b177937fd01d621a04ff5 (diff)
parentcfc4e710a0ae8815571b869bfa2c27a223545a70 (diff)
downloadtests-03da64e262b72d7f5bdb6070f55765a5720b4641.tar.gz
Add special items that hide/show others when played am: cfc4e710a0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Car/tests/+/13712344 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I88d1fd91f0a5c52c05c5214df15eac024e129719
Diffstat (limited to 'TestMediaApp/src/com/android/car/media/testmediaapp/TmaMediaEvent.java')
-rw-r--r--TestMediaApp/src/com/android/car/media/testmediaapp/TmaMediaEvent.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/TestMediaApp/src/com/android/car/media/testmediaapp/TmaMediaEvent.java b/TestMediaApp/src/com/android/car/media/testmediaapp/TmaMediaEvent.java
index 491f940..8fe30ef 100644
--- a/TestMediaApp/src/com/android/car/media/testmediaapp/TmaMediaEvent.java
+++ b/TestMediaApp/src/com/android/car/media/testmediaapp/TmaMediaEvent.java
@@ -53,7 +53,7 @@ public class TmaMediaEvent {
public static final TmaMediaEvent INSTANT_PLAYBACK =
new TmaMediaEvent(EventState.PLAYING, StateErrorCode.UNKNOWN_ERROR, null, null,
- ResolutionIntent.NONE, Action.NONE, 0, null);
+ ResolutionIntent.NONE, Action.NONE, 0, null, null);
/** The name of each entry is the value used in the json file. */
public enum EventState {
@@ -120,10 +120,11 @@ public class TmaMediaEvent {
/** How long to wait before sending the event to the app. */
final int mPostDelayMs;
private final String mExceptionClass;
+ final String mMediaItemIdToToggle;
public TmaMediaEvent(EventState state, StateErrorCode errorCode, String errorMessage,
String actionLabel, ResolutionIntent resolutionIntent, Action action, int postDelayMs,
- String exceptionClass) {
+ String exceptionClass, String mediaItemIdToToggle) {
mState = state;
mErrorCode = errorCode;
mErrorMessage = errorMessage;
@@ -132,6 +133,7 @@ public class TmaMediaEvent {
mAction = action;
mPostDelayMs = postDelayMs;
mExceptionClass = exceptionClass;
+ mMediaItemIdToToggle = mediaItemIdToToggle;
}
boolean premiumAccountRequired() {