1 /* 2 * Copyright (C) 2013 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 17 package com.android.incallui.incall.protocol; 18 19 import android.support.annotation.IntDef; 20 import java.lang.annotation.Retention; 21 import java.lang.annotation.RetentionPolicy; 22 23 /** Ids for buttons in the in call UI. */ 24 @Retention(RetentionPolicy.SOURCE) 25 @IntDef({ 26 InCallButtonIds.BUTTON_AUDIO, 27 InCallButtonIds.BUTTON_MUTE, 28 InCallButtonIds.BUTTON_DIALPAD, 29 InCallButtonIds.BUTTON_HOLD, 30 InCallButtonIds.BUTTON_SWAP, 31 InCallButtonIds.BUTTON_UPGRADE_TO_VIDEO, 32 InCallButtonIds.BUTTON_SWITCH_CAMERA, 33 InCallButtonIds.BUTTON_DOWNGRADE_TO_AUDIO, 34 InCallButtonIds.BUTTON_ADD_CALL, 35 InCallButtonIds.BUTTON_MERGE, 36 InCallButtonIds.BUTTON_PAUSE_VIDEO, 37 InCallButtonIds.BUTTON_MANAGE_VIDEO_CONFERENCE, 38 InCallButtonIds.BUTTON_MANAGE_VOICE_CONFERENCE, 39 InCallButtonIds.BUTTON_SWITCH_TO_SECONDARY, 40 InCallButtonIds.BUTTON_SWAP_SIM, 41 InCallButtonIds.BUTTON_COUNT, 42 InCallButtonIds.BUTTON_UPGRADE_TO_RTT 43 }) 44 public @interface InCallButtonIds { 45 46 int BUTTON_AUDIO = 0; 47 int BUTTON_MUTE = 1; 48 int BUTTON_DIALPAD = 2; 49 int BUTTON_HOLD = 3; 50 int BUTTON_SWAP = 4; 51 int BUTTON_UPGRADE_TO_VIDEO = 5; 52 int BUTTON_SWITCH_CAMERA = 6; 53 int BUTTON_DOWNGRADE_TO_AUDIO = 7; 54 int BUTTON_ADD_CALL = 8; 55 int BUTTON_MERGE = 9; 56 int BUTTON_PAUSE_VIDEO = 10; 57 int BUTTON_MANAGE_VIDEO_CONFERENCE = 11; 58 int BUTTON_MANAGE_VOICE_CONFERENCE = 12; 59 int BUTTON_SWITCH_TO_SECONDARY = 13; 60 int BUTTON_SWAP_SIM = 14; 61 int BUTTON_COUNT = 15; 62 int BUTTON_UPGRADE_TO_RTT = 16; 63 } 64