1/*
2 * Copyright (C) 2023 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17syntax = "proto2";
18
19package com.google.android.wearable.media.sessions;
20
21option java_multiple_files = true;
22
23// Indicates the type of action for controlling the media session.
24enum MediaAction {
25  UNKNOWN_ACTION = 0;
26  PLAY = 1;
27  PAUSE = 2;
28  SKIP_NEXT = 3;
29  SKIP_PREV = 4;
30  RESUME = 5;
31  VOLUME_INCREASE = 6;
32  VOLUME_DECREASE = 7;
33  SEEK_IN_CURRENT_MEDIA_ITEM = 8;
34  SEEK_BACK = 9;
35  SEEK_FORWARD = 10;
36  // CustomActions can be used to extend the capabilities of the standard transport controls
37  // by exposing app specific actions to Controllers. This is for app defined custom actions
38  // insteractions captured by wear media controls. For more information, see
39  // https://developer.android.com/reference/android/media/session/PlaybackState.CustomAction
40  CUSTOM_ACTION = 11;
41  SEEK_TO_MEDIA_ITEM = 12;
42  VOLUME_SET = 13;
43}
44
45// Indicates the type of launch source
46enum LaunchSource {
47  UNKNOWN_SOURCE = 0;
48  ONGOING_ACTIVITY = 1;
49  LAUNCHER = 2;
50  AUTO_LAUNCH = 3;
51  RECENT_APPS = 4;
52  COMPLICATION = 5;
53}
54