1 /* 2 * Copyright (c) 2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef ARKUI_PERF_SCENE_ID_H 17 #define ARKUI_PERF_SCENE_ID_H 18 19 #include <string> 20 21 namespace OHOS::Ace { 22 class PerfConstants { 23 public: 24 // start app from launcher icon sceneid 25 static constexpr char LAUNCHER_APP_LAUNCH_FROM_ICON[] = "LAUNCHER_APP_LAUNCH_FROM_ICON"; 26 27 // start app from notificationbar 28 static constexpr char LAUNCHER_APP_LAUNCH_FROM_NOTIFICATIONBAR[] = "LAUNCHER_APP_LAUNCH_FROM_NOTIFICATIONBAR"; 29 30 // start app from lockscreen 31 static constexpr char LAUNCHER_APP_LAUNCH_FROM_NOTIFICATIONBAR_IN_LOCKSCREEN[] = 32 "LAUNCHER_APP_LAUNCH_FROM_NOTIFICATIONBAR_IN_LOCKSCREEN"; 33 34 // start app from recent 35 static constexpr char LAUNCHER_APP_LAUNCH_FROM_RECENT[] = "LAUNCHER_APP_LAUNCH_FROM_RECENT"; 36 37 // start app from Card 38 static constexpr char START_APP_ANI_FORM[] = "START_APP_ANI_FORM"; 39 40 // into home ani 41 static constexpr char INTO_HOME_ANI[] = "INTO_HOME_ANI"; 42 43 // screenlock screen off ani 44 static constexpr char SCREENLOCK_SCREEN_OFF_ANIM[] = "SCREENLOCK_SCREEN_OFF_ANIM"; 45 46 // password unlock ani 47 static constexpr char PASSWORD_UNLOCK_ANI[] = "PASSWORD_UNLOCK_ANI"; 48 49 // facial fling unlock ani 50 static constexpr char FACIAL_FLING_UNLOCK_ANI[] = "FACIAL_FLING_UNLOCK_ANI"; 51 52 // facial unlock ani 53 static constexpr char FACIAL_UNLOCK_ANI[] = "FACIAL_UNLOCK_ANI"; 54 55 // fingerprint unlock ani 56 static constexpr char FINGERPRINT_UNLOCK_ANI[] = "FINGERPRINT_UNLOCK_ANI"; 57 58 // charging dynamic ani 59 static constexpr char META_BALLS_TURBO_CHARGING_ANIMATION[] = "META_BALLS_TURBO_CHARGING_ANIMATION"; 60 61 // app ablitity page switch 62 static constexpr char ABILITY_OR_PAGE_SWITCH[] = "ABILITY_OR_PAGE_SWITCH"; 63 64 // app exit to home by geturing slide out 65 static constexpr char LAUNCHER_APP_SWIPE_TO_HOME[] = "LAUNCHER_APP_SWIPE_TO_HOME"; 66 67 // app list fling 68 static constexpr char APP_LIST_FLING[] = "APP_LIST_FLING"; 69 70 // app swiper fling 71 static constexpr char APP_SWIPER_FLING[] = "APP_SWIPER_FLING"; 72 73 // app swiper scroll 74 static constexpr char APP_SWIPER_SCROLL[] = "APP_SWIPER_SCROLL"; 75 76 // app tab switch 77 static constexpr char APP_TAB_SWITCH[] = "APP_TAB_SWITCH"; 78 79 // volume bar show 80 static constexpr char VOLUME_BAR_SHOW[] = "VOLUME_BAR_SHOW"; 81 82 // PC app center gesture operation 83 static constexpr char PC_APP_CENTER_GESTURE_OPERATION[] = "PC_APP_CENTER_GESTURE_OPERATION"; 84 85 // PC gesture to recent 86 static constexpr char PC_GESTURE_TO_RECENT[] = "PC_GESTURE_TO_RECENT"; 87 88 // PC shortcut show desktop 89 static constexpr char PC_SHORTCUT_SHOW_DESKTOP[] = "PC_SHORTCUT_SHOW_DESKTOP"; 90 91 // PC shortcut restore desktop 92 static constexpr char PC_SHORTCUT_RESTORE_DESKTOP[] = "PC_SHORTCUT_RESTORE_DESKTOP"; 93 94 // PC show desktop gesture operation 95 static constexpr char PC_SHOW_DESKTOP_GESTURE_OPERATION[] = "PC_SHOW_DESKTOP_GESTURE_OPERATION"; 96 97 // PC alt + tab to recent 98 static constexpr char PC_ALT_TAB_TO_RECENT[] = "PC_ALT_TAB_TO_RECENT"; 99 100 // PC shortcut to recent 101 static constexpr char PC_SHORTCUT_TO_RECENT[] = "PC_SHORTCUT_TO_RECENT"; 102 103 // PC exit recent 104 static constexpr char PC_EXIT_RECENT[] = "PC_EXIT_RECENT"; 105 106 // PC shoutcut to app center 107 static constexpr char PC_SHORTCUT_TO_APP_CENTER[] = "PC_SHORTCUT_TO_APP_CENTER"; 108 109 // PC shoutcut to app center on recent 110 static constexpr char PC_SHORTCUT_TO_APP_CENTER_ON_RECENT[] = "PC_SHORTCUT_TO_APP_CENTER_ON_RECENT"; 111 112 // PC shoutcut exit app center 113 static constexpr char PC_SHORTCUT_EXIT_APP_CENTER[] = "PC_SHORTCUT_EXIT_APP_CENTER"; 114 115 // A app jump to another app 116 static constexpr char APP_TRANSITION_TO_OTHER_APP[] = "APP_TRANSITION_TO_OTHER_APP"; 117 118 // another app jamps back to A app 119 static constexpr char APP_TRANSITION_FROM_OTHER_APP[] = "APP_TRANSITION_FROM_OTHER_APP"; 120 121 // mutitask scroll 122 static constexpr char SNAP_RECENT_ANI[] = "SNAP_RECENT_ANI"; 123 124 // start app from dock 125 static constexpr char LAUNCHER_APP_LAUNCH_FROM_DOCK[] = "LAUNCHER_APP_LAUNCH_FROM_DOCK"; 126 127 // start app from misson 128 static constexpr char LAUNCHER_APP_LAUNCH_FROM_MISSON[] = "LAUNCHER_APP_LAUNCH_FROM_MISSON"; 129 130 // app exit from back to home 131 static constexpr char LAUNCHER_APP_BACK_TO_HOME[] = "LAUNCHER_APP_BACK_TO_HOME"; 132 133 // app exit from multitasking 134 static constexpr char EXIT_RECENT_2_HOME_ANI[] = "EXIT_RECENT_2_HOME_ANI"; 135 136 // PC window resize 137 static constexpr char WINDOW_RECT_RESIZE[] = "WINDOW_RECT_RESIZE"; 138 139 // PC window move 140 static constexpr char WINDOW_RECT_MOVE[] = "WINDOW_RECT_MOVE"; 141 142 // input method show 143 static constexpr char SHOW_INPUT_METHOD_ANIMATION[] = "SHOW_INPUT_METHOD_ANIMATION"; 144 145 // input method hide 146 static constexpr char HIDE_INPUT_METHOD_ANIMATION[] = "HIDE_INPUT_METHOD_ANIMATION"; 147 148 // screen rotation 149 static constexpr char SCREEN_ROTATION_ANI[] = "SCREEN_ROTATION_ANI"; 150 151 // folder close 152 static constexpr char CLOSE_FOLDER_ANI[] = "CLOSE_FOLDER_ANI"; 153 154 // launcher spring back scroll 155 static constexpr char LAUNCHER_SPRINGBACK_SCROLL[] = "LAUNCHER_SPRINGBACK_SCROLL"; 156 157 // window title bar minimized 158 static constexpr char WINDOW_TITLE_BAR_MINIMIZED[] = "WINDOW_TITLE_BAR_MINIMIZED"; 159 160 // window title bar closed 161 static constexpr char APP_EXIT_FROM_WINDOW_TITLE_BAR_CLOSED[] = "APP_EXIT_FROM_WINDOW_TITLE_BAR_CLOSED"; 162 163 // PC start app from other 164 static constexpr char LAUNCHER_APP_LAUNCH_FROM_OTHER[] = "LAUNCHER_APP_LAUNCH_FROM_OTHER"; 165 166 // scroller animation 167 static constexpr char SCROLLER_ANIMATION[] = "SCROLLER_ANIMATION"; 168 169 // pc title bar maximized 170 static constexpr char WINDOW_TITLE_BAR_MAXIMIZED[] = "WINDOW_TITLE_BAR_MAXIMIZED"; 171 172 // pc title bar recover 173 static constexpr char WINDOW_TITLE_BAR_RECOVER[] = "WINDOW_TITLE_BAR_RECOVER"; 174 175 // PC start app from transition 176 static constexpr char LAUNCHER_APP_LAUNCH_FROM_TRANSITION[] = "LAUNCHER_APP_LAUNCH_FROM_TRANSITION"; 177 178 // navigation interactive animation 179 static constexpr char ABILITY_OR_PAGE_SWITCH_INTERACTIVE[] = "ABILITY_OR_PAGE_SWITCH_INTERACTIVE"; 180 }; 181 } // namespace OHOS::Ace 182 #endif // ARKUI_PERF_SCENE_ID_H 183