1/* 2 * Copyright (C) 2022 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 android.jank; 20 21/** 22 * Enum used by UIInteractionFrameInfoReported. 23 */ 24enum InteractionType { 25 UNKNOWN_INTERACTION = 0; 26 NOTIFICATION_SHADE_SWIPE = 1; 27 SHADE_SCROLL_FLING = 3; 28 SHADE_ROW_EXPAND = 4; 29 SHADE_ROW_SWIPE = 5; 30 SHADE_QS_EXPAND_COLLAPSE = 6; 31 SHADE_QS_SCROLL_SWIPE = 7; 32 LAUNCHER_APP_LAUNCH_FROM_RECENTS = 8; 33 LAUNCHER_APP_LAUNCH_FROM_ICON = 9; 34 LAUNCHER_APP_CLOSE_TO_HOME = 10; 35 LAUNCHER_APP_CLOSE_TO_PIP = 11; 36 LAUNCHER_QUICK_SWITCH = 12; 37 SHADE_HEADS_UP_APPEAR = 13; 38 SHADE_HEADS_UP_DISAPPEAR = 14; 39 SHADE_NOTIFICATION_ADD = 15; 40 SHADE_NOTIFICATION_REMOVE = 16; 41 SHADE_APP_LAUNCH = 17; 42 LOCKSCREEN_PASSWORD_APPEAR = 18; 43 LOCKSCREEN_PATTERN_APPEAR = 19; 44 LOCKSCREEN_PIN_APPEAR = 20; 45 LOCKSCREEN_PASSWORD_DISAPPEAR = 21; 46 LOCKSCREEN_PATTERN_DISAPPEAR = 22; 47 LOCKSCREEN_PIN_DISAPPEAR = 23; 48 LOCKSCREEN_TRANSITION_FROM_AOD = 24; 49 LOCKSCREEN_TRANSITION_TO_AOD = 25; 50 LAUNCHER_OPEN_ALL_APPS = 26; 51 LAUNCHER_ALL_APPS_SCROLL = 27; 52 LAUNCHER_APP_LAUNCH_FROM_WIDGET = 28; 53 SETTINGS_PAGE_SCROLL = 29; 54 LOCKSCREEN_UNLOCK_ANIMATION = 30; 55 SHADE_APP_LAUNCH_FROM_HISTORY_BUTTON = 31; 56 SHADE_APP_LAUNCH_FROM_MEDIA_PLAYER = 32; 57 SHADE_APP_LAUNCH_FROM_QS_TILE = 33; 58 SHADE_APP_LAUNCH_FROM_SETTINGS_BUTTON = 34; 59 STATUS_BAR_APP_LAUNCH_FROM_CALL_CHIP = 35; 60 PIP_TRANSITION = 36; 61 WALLPAPER_TRANSITION = 37; 62 USER_SWITCH = 38; 63 SPLASHSCREEN_AVD = 39; 64 SPLASHSCREEN_EXIT_ANIM = 40; 65 SCREEN_OFF = 41; 66 SCREEN_OFF_SHOW_AOD = 42; 67 ONE_HANDED_ENTER_TRANSITION = 43; 68 ONE_HANDED_EXIT_TRANSITION = 44; 69 UNFOLD_ANIM = 45; 70 SUW_LOADING_TO_SHOW_INFO_WITH_ACTIONS = 46; 71 SUW_SHOW_FUNCTION_SCREEN_WITH_ACTIONS = 47; 72 SUW_LOADING_TO_NEXT_FLOW = 48; 73 SUW_LOADING_SCREEN_FOR_STATUS = 49; 74 SPLIT_SCREEN_ENTER = 50; 75 SPLIT_SCREEN_EXIT = 51; 76 LOCKSCREEN_LAUNCH_CAMERA = 52; 77 SPLIT_SCREEN_RESIZE = 53; 78 SETTINGS_SLIDER = 54; 79 TAKE_SCREENSHOT = 55; 80 VOLUME_CONTROL = 56; 81 BIOMETRIC_PROMPT_TRANSITION = 57; 82 SETTINGS_TOGGLE = 58; 83 SHADE_DIALOG_OPEN = 59; 84 USER_DIALOG_OPEN = 60; 85 TASKBAR_EXPAND = 61; 86 TASKBAR_COLLAPSE = 62; 87 SHADE_CLEAR_ALL = 63; 88 LAUNCHER_UNLOCK_ENTRANCE_ANIMATION = 64; 89 LOCKSCREEN_OCCLUSION = 65; 90 RECENTS_SCROLLING = 66; 91 LAUNCHER_APP_SWIPE_TO_RECENTS = 67; 92 LAUNCHER_CLOSE_ALL_APPS_SWIPE = 68; 93 LAUNCHER_CLOSE_ALL_APPS_TO_HOME = 69; 94 IME_INSETS_ANIMATION = 70 [deprecated = true]; 95 LOCKSCREEN_CLOCK_MOVE_ANIMATION = 71; 96 LAUNCHER_OPEN_SEARCH_RESULT = 72; 97 LAUNCHER_APP_CLOSE_TO_HOME_FALLBACK = 79; 98 IME_INSETS_SHOW_ANIMATION = 81; 99 IME_INSETS_HIDE_ANIMATION = 82; 100 SPLIT_SCREEN_DOUBLE_TAP_DIVIDER = 83; 101 LAUNCHER_UNFOLD_ANIM = 84; 102 PREDICTIVE_BACK_CROSS_ACTIVITY = 85; 103 PREDICTIVE_BACK_CROSS_TASK = 86; 104 PREDICTIVE_BACK_HOME = 87; 105 BACK_PANEL_ARROW = 89; 106 LAUNCHER_CLOSE_ALL_APPS_BACK = 90; 107 LAUNCHER_SEARCH_QSB_WEB_SEARCH = 91; 108 LAUNCHER_LAUNCH_APP_PAIR_FROM_WORKSPACE = 92; 109 LAUNCHER_LAUNCH_APP_PAIR_FROM_TASKBAR = 93; 110 LAUNCHER_SAVE_APP_PAIR = 94; 111 LAUNCHER_ALL_APPS_SEARCH_BACK = 95; 112 LAUNCHER_TASKBAR_ALL_APPS_CLOSE_BACK = 96; 113 LAUNCHER_TASKBAR_ALL_APPS_SEARCH_BACK = 97; 114 LAUNCHER_WIDGET_PICKER_CLOSE_BACK = 98; 115 LAUNCHER_WIDGET_PICKER_SEARCH_BACK = 99; 116 LAUNCHER_WIDGET_BOTTOM_SHEET_CLOSE_BACK = 100; 117 LAUNCHER_WIDGET_EDU_SHEET_CLOSE_BACK = 101; 118 LAUNCHER_PRIVATE_SPACE_LOCK = 102; 119 LAUNCHER_PRIVATE_SPACE_UNLOCK = 103; 120 121 reserved 2; 122 reserved 73 to 78; // For b/281564325. 123 reserved 80; 124 reserved 88; 125} 126 127enum DisplayResolution { 128 UNKNOWN_RESOLUTION = 0; 129 SD = 1; // x < 1280×720 130 HD = 2; // 1280×720 <= x < 1920x1080 131 FHD = 3; // 1920x1080 <= x < 2560x1440 132 QHD = 4; // 2560x1440 <= x 133} 134 135enum DisplayRefreshRate { 136 UNKNOWN_REFRESH_RATE = 0; 137 VARIABLE_REFRESH_RATE = 1; // RR changed during the CUJ. 138 RR_30_HZ = 2; // x < 50 139 RR_60_HZ = 3; // 50 <= x < 80 140 RR_90_HZ = 4; // 80 <= x < 110 141 RR_120_HZ = 5; // 110 <= x < 180 142 RR_240_HZ = 6; // 180 <= x 143} 144 145/** 146 * Enum used by UIActionLatencyReported. 147 */ 148enum ActionType { 149 UNKNOWN_ACTION = 0; 150 ACTION_EXPAND_PANEL = 1; 151 ACTION_TOGGLE_RECENTS = 2; 152 ACTION_FINGERPRINT_WAKE_AND_UNLOCK = 3; 153 ACTION_CHECK_CREDENTIAL = 4; 154 ACTION_CHECK_CREDENTIAL_UNLOCKED = 5; 155 ACTION_TURN_ON_SCREEN = 6; 156 ACTION_ROTATE_SCREEN = 7; 157 ACTION_FACE_WAKE_AND_UNLOCK = 8; 158 ACTION_START_RECENTS_ANIMATION = 9; 159 ACTION_ROTATE_SCREEN_CAMERA_CHECK = 10; 160 ACTION_ROTATE_SCREEN_SENSOR = 11; 161 ACTION_LOCKSCREEN_UNLOCK = 12; 162 ACTION_USER_SWITCH = 13; 163 ACTION_SWITCH_DISPLAY_UNFOLD = 14; 164 ACTION_UDFPS_ILLUMINATE = 15; 165 ACTION_SHOW_BACK_ARROW = 16; 166 ACTION_LOAD_SHARE_SHEET = 17; 167 ACTION_SHOW_SELECTION_TOOLBAR = 18; 168 ACTION_FOLD_TO_AOD = 19; 169 ACTION_SHOW_VOICE_INTERACTION = 20; 170 ACTION_REQUEST_IME_SHOWN = 21; 171 ACTION_REQUEST_IME_HIDDEN = 22; 172 ACTION_SMARTSPACE_DOORBELL = 23; 173 reserved 24 to 26; // For b/281564325. 174 ACTION_NOTIFICATION_BIG_PICTURE_LOADED = 27; 175 ACTION_KEYGUARD_FPS_UNLOCK_TO_HOME = 28; 176 ACTION_BACK_SYSTEM_ANIMATION = 29; 177 ACTION_NOTIFICATIONS_HIDDEN_FOR_MEASURE = 30; 178 ACTION_NOTIFICATIONS_HIDDEN_FOR_MEASURE_WITH_SHADE_OPEN = 31; 179} 180