1 /* 2 * Copyright (c) 2024 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 RESSCHED_INTERFACES_INNERKITS_RESSCHED_CLIENT_INCLUDE_RES_VALUE_H 17 #define RESSCHED_INTERFACES_INNERKITS_RESSCHED_CLIENT_INCLUDE_RES_VALUE_H 18 19 #include <cstdint> 20 #include <vector> 21 22 namespace OHOS { 23 namespace ResourceSchedule { 24 namespace ResType { 25 /** 26 * @brief SystemAbility status 27 */ 28 enum SystemAbilityStatus : int64_t { 29 SA_REMOVE = 0, 30 SA_ADD = 1, 31 }; 32 33 enum EventType : uint32_t { 34 EVENT_START = 0, 35 EVENT_DRAW_FRAME_REPORT = 1, 36 EVENT_MUTEX_STATUS = 2, 37 EVENT_DDR_BOUND_CHANGE_REPORT = 3, 38 EVENT_MUTEX_STATUS_BEFORE_START = 4, 39 EVENT_APP_STATE_BACKGROUND_FOREGROUND = 5, 40 EVENT_RED_ENVELOPE = 6, 41 EVENT_FRAME_RATE_STATISTICS = 7, 42 EVENT_MUTEX_CASE_SMALL_WINDOW_TO_BACKGROUND = 8, 43 EVENT_MUTEX_CASE_FREE_MULTI_WINDOW_TO_BACKGROUND = 9, 44 EVENT_END, 45 }; 46 47 enum EventValue : uint32_t { 48 EVENT_VALUE_START = 0, 49 EVENT_VALUE_DRAW_FRAME_REPORT_START, 50 EVENT_VALUE_DRAW_FRAME_REPORT_STOP, 51 EVENT_VALUE_DDR_BOUND_REPORT_START, 52 EVENT_VALUE_DDR_BOUND_REPORT_STOP, 53 EVENT_VALUE_FRAME_RATE_STATISTICS_START, 54 EVENT_VALUE_FRAME_RATE_STATISTICS_END, 55 EVENT_VALUE_FRAME_RATE_STATISTICS_BREAK, 56 EVENT_VALUE_END, 57 }; 58 59 enum EventListenerGroup : uint32_t { 60 LISTENER_GROUP_BEGIN = 0, 61 LISTENER_GROUP_COMMON = 1, 62 LISTENER_GROUP_LLM = 2, 63 LISTENER_GROUP_GAME = 3, 64 LISTENER_GROUP_CAMERA = 4, 65 LISTENER_GROUP_DH = 5, 66 LISTENER_GROUP_KIDDO = 6, 67 LISTENER_GROUP_END 68 }; 69 70 enum AppFrameDropType : int32_t { 71 JANK_FRAME_APP = 1, // 通用丢帧 72 INTERACTION_APP_JANK, // 动效丢帧 73 }; 74 75 enum WindowPanelType : int32_t { 76 MINIMIZE = 0, 77 MAXIMIZE, 78 RECOVERY, 79 }; 80 81 enum OptFromRecentType : int32_t { 82 START_APP = 0, 83 CLOSE_APP, 84 }; 85 86 enum SwipeDirectionUpType : int32_t { 87 SWIPE_DIRECTION_ENTER_TASK_CENTER = 0, 88 SWIPE_DIRECTION_EXIT_TASK_CENTER, 89 }; 90 91 /** 92 * @brief Screen status 93 */ 94 enum ScreenStatus : int64_t { 95 SCREEN_OFF = 0, 96 SCREEN_ON = 1, 97 }; 98 99 /** 100 * @brief App install status 101 */ 102 enum AppInstallStatus : int64_t { 103 APP_UNINSTALL = 0, 104 APP_INSTALL_END = 1, 105 APP_CHANGED = 2, 106 APP_REPLACED = 3, 107 APP_FULLY_REMOVED = 4, 108 BUNDLE_REMOVED = 5, 109 APP_INSTALL_START = 6 110 }; 111 112 /** 113 * @brief Screen lock status 114 */ 115 enum ScreenLockStatus : int64_t { 116 SCREEN_UNLOCK = 0, 117 SCREEN_LOCK = 1, 118 }; 119 120 /** 121 * @brief Process status 122 */ 123 enum ProcessStatus : int64_t { 124 PROCESS_CREATED = 0, 125 PROCESS_READY, 126 PROCESS_FOREGROUND, 127 PROCESS_FOCOUS, 128 PROCESS_BACKGROUND, 129 PROCESS_DIED, 130 }; 131 132 /** 133 * @brief Transient task status 134 */ 135 enum TransientTaskStatus : int64_t { 136 TRANSIENT_TASK_START = 0, 137 TRANSIENT_TASK_END = 1, 138 TRANSIENT_TASK_ERR = 2, 139 APP_TRANSIENT_TASK_START = 3, 140 APP_TRANSIENT_TASK_END = 4, 141 }; 142 143 /** 144 * @brief Continuous task status 145 */ 146 enum ContinuousTaskStatus : int64_t { 147 CONTINUOUS_TASK_START = 0, 148 CONTINUOUS_TASK_END = 1, 149 CONTINUOUS_TASK_UPDATE = 2, 150 }; 151 152 /** 153 * @brief efficiency resources status 154 */ 155 enum EfficiencyResourcesStatus : int64_t { 156 APP_EFFICIENCY_RESOURCES_APPLY, 157 APP_EFFICIENCY_RESOURCES_RESET, 158 PROC_EFFICIENCY_RESOURCES_APPLY, 159 PROC_EFFICIENCY_RESOURCES_RESET, 160 }; 161 162 /** 163 * @brief Window focus status 164 */ 165 enum WindowFocusStatus : int64_t { 166 WINDOW_FOCUS = 0, 167 WINDOW_UNFOCUS = 1, 168 }; 169 170 /** 171 * @brief Window visibility status 172 */ 173 enum WindowVisibilityStatus : int64_t { 174 INVISIBLE = 0, 175 VISIBLE = 1, 176 }; 177 178 /** 179 * @brief Slide event status 180 */ 181 enum SlideEventStatus : int64_t { 182 SLIDE_EVENT_OFF = 0, 183 SLIDE_EVENT_ON = 1, 184 SLIDE_EVENT_DETECTING = 2, 185 SLIDE_NORMAL_BEGIN = 3, 186 SLIDE_NORMAL_END = 4, 187 AUTO_PLAY_ON = 5, 188 AUTO_PLAY_OFF = 6, 189 MOVE_EVENT_ON = 7, 190 }; 191 192 /** 193 * @brief Axis event status 194 */ 195 enum AxisEventStatus : int64_t { 196 AXIS_EVENT_BEGIN = 0, 197 AXIS_EVENT_END = 1, 198 AXIS_EVENT_UPDATE = 2, 199 }; 200 201 /** 202 * @brief Click event type 203 */ 204 enum ClickEventType : int64_t { 205 INVALID_EVENT = 0, 206 // touch down event 207 TOUCH_EVENT_DOWN = 1, 208 CLICK_EVENT = 2, 209 TOUCH_EVENT_UP = 3, 210 TOUCH_EVENT_PULL_UP = 4, 211 TOUCH_EVENT_DOWN_MMI = 5, 212 }; 213 214 /** 215 * @brief key event type 216 */ 217 enum KeyEventType : int64_t { 218 // touch down event 219 KEY_EVENT_DOWN = 1, 220 KEY_EVENT_UP = 2, 221 }; 222 223 /** 224 * @brief PushPage event type 225 */ 226 enum PushPageType : int64_t { 227 PUSH_PAGE_START = 0, 228 PUSH_PAGE_COMPLETE = 1, 229 }; 230 231 /** 232 * @brief App Start type 233 */ 234 enum AppStartType : int64_t { 235 APP_WARM_START = 0, 236 APP_COLD_START = 1, 237 }; 238 239 /** 240 * @brief Window resize type 241 */ 242 enum WindowResizeType : int64_t { 243 WINDOW_RESIZING = 0, 244 WINDOW_RESIZE_STOP = 1, 245 }; 246 247 /** 248 * @brief Window move type 249 */ 250 enum WindowMoveType : int64_t { 251 WINDOW_MOVING = 0, 252 WINDOW_MOVE_STOP = 1, 253 }; 254 255 /** 256 * @brief Animation Change Status 257 */ 258 enum ShowRemoteAnimationStatus : int64_t { 259 ANIMATION_BEGIN = 0, 260 ANIMATION_END = 1, 261 ANIMATION_UNLOCK_BEGIN = 2, 262 ANIMATION_UNLOCK_END = 3, 263 }; 264 265 /** 266 * @brief LoadPage event type 267 */ 268 enum LoadPageType : int64_t { 269 LOAD_PAGE_START = 0, 270 LOAD_PAGE_COMPLETE = 1, 271 LOAD_PAGE_NO_REQUEST_FRAME = 2, 272 }; 273 274 /** 275 * @brief Animation change status 276 */ 277 enum StatusBarDragStatus : int64_t { 278 DRAG_START = 0, 279 DRAG_END = 1, 280 }; 281 282 /** 283 * @brief Report change status 284 */ 285 enum ReportChangeStatus : int64_t { 286 CREATE = 0, 287 REMOVE = 1, 288 }; 289 290 /** 291 * @brief Window State 292 */ 293 enum WindowStates : int64_t { 294 ACTIVE = 0, 295 INACTIVE = 1, 296 }; 297 298 /** 299 * @brief Thread role 300 */ 301 enum ThreadRole : int64_t { 302 USER_INTERACT = 0, 303 NORMAL_DISPLAY = 1, 304 IMPORTANT_DISPLAY = 2, 305 NORMAL_AUDIO = 3, 306 IMPORTANT_AUDIO = 4, 307 IMAGE_DECODE = 5, 308 }; 309 310 /** 311 * @brief scene control 312 */ 313 enum SceneControl : int64_t { 314 SCENE_IN = 0, 315 SCENE_OUT = 1, 316 }; 317 318 /** 319 * @brief audio status 320 */ 321 enum AudioStatus : int64_t { 322 START = 0, 323 STOP = 1, 324 RENDERER_RUNNING = 2, 325 RENDERER_STOPPED = 3, 326 RENDERER_RELEASED = 4, 327 RENDERER_PAUSED = 5, 328 }; 329 330 /** 331 * @brief web scene 332 */ 333 enum WebScene : int64_t { 334 WEB_SCENE_LOAD_URL = 1001, 335 WEB_SCENE_CLICK = 1002, 336 WEB_SCENE_SLIDE = 1003, 337 WEB_SCENE_RESIZE = 1004, 338 WEB_SCENE_VISIBLE = 1005, 339 WEB_SCENE_KEYBOARD_CLICK = 1006, 340 WEB_SCENE_KEY_TASK = 1007, 341 WEB_SCENE_IMAGE_DECODE = 1008, 342 }; 343 344 /** 345 * @brief Web gesture status 346 */ 347 enum WebGesture : int64_t { 348 WEB_GESTURE_START = 0, 349 WEB_GESTURE_END = 1, 350 }; 351 352 /** 353 * @brief Web gesture move status 354 */ 355 enum WebGestureMove : int64_t { 356 WEB_GESTURE_MOVE_START = 0, 357 WEB_GESTURE_MOVE_END = 1, 358 }; 359 360 /** 361 * @brief Web slide normal status 362 */ 363 enum WebSlideNormal : int64_t { 364 WEB_SLIDE_NORMAL_START = 0, 365 WEB_SLIDE_NORMAL_END = 1, 366 }; 367 368 /** 369 * @brief camera state 370 */ 371 enum CameraState : int64_t { 372 CAMERA_CONNECT = 0, 373 CAMERA_DISCONNECT = 1, 374 }; 375 376 /** 377 * @brief Runninglock State 378 */ 379 enum RunninglockState : int64_t { 380 RUNNINGLOCK_STATE_DISABLE = 0, 381 RUNNINGLOCK_STATE_ENABLE = 1, 382 RUNNINGLOCK_STATE_PROXIED = 2, 383 RUNNINGLOCK_STATE_UNPROXIED_RESTORE = 3, 384 }; 385 386 /** 387 * @brief anco cust config 388 */ 389 enum AncoConfig : int64_t { 390 PROTECT_LRU = 0, 391 DEFAULT = 1, 392 }; 393 394 /** 395 * @brief connection State 396 */ 397 enum ConnectionObserverStatus : int64_t { 398 EXTENSION_CONNECTED = 0, 399 EXTENSION_DISCONNECTED, 400 DLP_ABILITY_OPENED, 401 DLP_ABILITY_CLOSED, 402 EXTENSION_SUSPENDED, 403 EXTENSION_RESUMED, 404 }; 405 406 407 /** 408 * @brief charge status 409 */ 410 enum ChargeStatus : int64_t { 411 EVENT_CHARGING = 0, 412 EVENT_DISCHARGING = 1, 413 }; 414 415 /** 416 * @brief Screen lock status 417 */ 418 enum UsbDeviceStatus : int64_t { 419 USB_DEVICE_ATTACHED = 0, 420 USB_DEVICE_DETACHED = 1, 421 }; 422 423 /** 424 * @brief av_codec state 425 */ 426 enum AvCodecState : int64_t { 427 CODEC_START_INFO = 0, 428 CODEC_STOP_INFO = 1, 429 }; 430 431 /** 432 * @brief app associated start type 433 */ 434 enum AssociatedStartType : int64_t { 435 SCB_START_ABILITY = 0, 436 EXTENSION_START_ABILITY = 1, 437 MISSION_LIST_START_ABILITY = 2, 438 }; 439 440 /** 441 * @brief thermal state type 442 */ 443 enum ThermalStateType : int64_t { 444 THERMAL_LEVEL_STATE = 0, 445 THERMAL_ACTION_STATE = 1, 446 }; 447 448 /** 449 * @brief Window drawing status 450 */ 451 enum WindowDrawingStatus : int64_t { 452 NotDrawing = 0, 453 Drawing = 1, 454 }; 455 456 /** 457 * @brief Window drawing status 458 */ 459 enum ScreenCaptureStatus : int64_t { 460 START_SCREEN_CAPTURE = 0, 461 STOP_SCREEN_CAPTURE = 1, 462 }; 463 464 /** 465 * @brief short term load status 466 */ 467 enum ShortTermLoadStatus : int64_t { 468 START_LOAD = 0, 469 FINISH_LOAD = 1, 470 }; 471 472 /** 473 * @brief Key Perf Scene status 474 */ 475 enum KeyPerfStatus : int64_t { 476 ENTER_SCENE = 0, 477 EXIT_SCENE = 1, 478 }; 479 480 /** 481 * @brief Collabroation Service status 482 */ 483 enum CollabroationServiceStatus : int64_t { 484 UNKNOWN_STATE = 0, 485 IDLE = 1, 486 PREPARE = 2, 487 CONNECTING = 3, 488 CONNECT_SUCC = 4, 489 }; 490 491 /** 492 * @brief sa control app status 493 */ 494 enum SaControlAppStatus : int64_t { 495 SA_START_APP, 496 SA_STOP_APP, 497 }; 498 499 /** 500 * @brief Key Download Scene status 501 */ 502 enum KeyUploadOrDownloadStatus : int64_t { 503 ENTER_UPLOAD_DOWNLOAD_SCENE = 0, 504 EXIT_UPLOAD_DOWNLOAD_SCENE = 1, 505 }; 506 507 508 /** 509 * @brief Key Split Screen Scene status 510 */ 511 enum KeySplitScreenStatus : int64_t { 512 ENTER_SPLIT_SCREEN_SCENE = 0, 513 EXIT_SPLIT_SCREEN_SCENE = 1, 514 }; 515 516 /** 517 * @brief Key Floating Window Scene status 518 */ 519 enum KeyFloatingWindowStatus : int64_t { 520 ENTER_FLOATING_WINDOW_SCENE = 0, 521 EXIT_FLOATING_WINDOW_SCENE = 1, 522 }; 523 524 /** 525 * @brief ui sensitive extension 526 */ 527 const std::vector<int32_t > UI_SENSITIVE_EXTENSION = { 528 2, // INPUT_EXTENSION_TYPE 529 255, // UNSPECIFIED_EXTENSION_TYPE 530 256, // UI_EXTENSION_TYPE 531 257, // HMS_ACCOUNT 532 500 // SYS_COMMON_UI_TYPE 533 }; 534 535 /** 536 * @brief systemload level 537 */ 538 enum SystemloadLevel : int64_t { 539 LOW = 0, 540 NORMAL = 1, 541 MEDIUM = 2, 542 HIGH = 3, 543 OVERHEATED = 4, 544 WARNING = 5, 545 EMERGENCY = 6, 546 ESCAPE = 7, 547 }; 548 549 /** 550 * @brief Device status 551 */ 552 enum DeviceStatus : int64_t { 553 SYSTEMLOAD_LEVEL = 0, 554 POWER_FOOTAGE = 1, 555 THERMAL = 2, 556 MEMORY_LEVEL = 3, 557 HIGH_LOAD = 4, 558 DEVICE_IDLE = 5, 559 }; 560 561 /** 562 * @brief Device mode status 563 */ 564 enum DeviceModeStatus : int64_t { 565 MODE_ENTER = 0, 566 MODE_QUIT = 1, 567 }; 568 569 /** 570 * @brief web screen capture start 571 */ 572 enum WebScreenCapture : int64_t { 573 WEB_SCREEN_CAPTURE_START = 0, 574 WEB_SCREEN_CAPTURE_STOP = 1, 575 }; 576 577 /** 578 * @brief web video state 579 */ 580 enum WebVideoState : int64_t { 581 WEB_VIDEO_PLAYING_START = 0, 582 WEB_VIDEO_PLAYING_STOP = 1, 583 }; 584 585 /** 586 * @brief location state 587 */ 588 enum LocationStatus : int64_t { 589 APP_LOCATION_STATUE_CHANGE = 0, 590 LOCATION_SWTICH_CHANGE = 1, 591 }; 592 593 /** 594 * @brief form create state 595 */ 596 enum FormCreateStatus : int64_t { 597 FormCreateStart = 0, 598 FormCreateEnd = 1, 599 }; 600 601 /** 602 * @brief drag web window resize status 603 */ 604 enum WebDragResizeStatus : int64_t { 605 WEB_DRAG_START = 0, 606 WEB_DRAG_END = 1, 607 }; 608 609 /** 610 * @brief boot completed status 611 */ 612 enum BootCompletedStatus : int64_t { 613 START_BOOT_COMPLETED = 0, 614 STOP_BOOT_COMPLETED = 1, 615 }; 616 617 /** 618 * @brief continuous startUp status 619 */ 620 enum ContinuousStartupStatus : int64_t { 621 START_CONTINUOUS_STARTUP = 0, 622 STOP_CONTINUOUS_STARTUP = 1, 623 }; 624 625 /** 626 * @brief account activating status 627 */ 628 enum AccountActivatingStatus : int64_t { 629 ACCOUNT_ACTIVATING_START = 0, 630 }; 631 632 /** 633 * @brief continuous install status 634 */ 635 enum ContinuousInstallStatus : int64_t { 636 START_CONTINUOUS_INSTALL = 0, 637 STOP_CONTINUOUS_INSTALL = 1, 638 }; 639 640 /** 641 * @brief crown rotation status 642 */ 643 enum CrownRotationStatus : int64_t { 644 CROWN_ROTATION_START = 0, 645 CROWN_ROTATION_END = 2, 646 }; 647 648 enum BackgroundPerceivableStatus : int64_t { 649 PERCEIVABLE_START = 0, 650 PERCEIVABLE_STOP = 1, 651 }; 652 653 enum UserInteractionScene : int64_t { 654 ENTER_USER_INTERACTION_SCENE = 0, 655 EXIT_USER_INTERACTION_SCENE = 1, 656 }; 657 658 /** 659 * @brief game sched status 660 */ 661 enum GameSchedStatus : int64_t { 662 GAME_SCHED_START = 0, 663 GAME_SCHED_STOP = 1, 664 }; 665 666 /** 667 * @brief device idle status 668 */ 669 enum DeviceIdleStatus : int64_t { 670 DEVICE_IDLE_START = 0, 671 }; 672 673 /** 674 * @brief bt service status 675 */ 676 enum BtServiceEvent : int64_t { 677 GATT_CONNECT_STATE = 0, 678 GATT_APP_REGISTER = 1, 679 SPP_CONNECT_STATE = 2, 680 GATT_DATA_TRANSFER = 3 681 }; 682 683 /** 684 * @brief LargeModelScene 685 */ 686 enum LargeModelScene : int64_t { 687 ENTER_LARGE_MODEL_SCENE = 0, 688 EXIT_LARGE_MODEL_SCENE = 1, 689 }; 690 691 /** 692 * @brief Bmm status 693 */ 694 enum BmmMoniterStatus : int64_t { 695 BMM_CLOSE = 0, 696 BMM_FOREGROUND = 1, 697 BMM_BACKGROUND = 2 698 }; 699 700 /** 701 * @brief Heavy Load Mutex Scene 702 */ 703 enum HeavyLoadMutexAddScene : int64_t { 704 MUTEX_STATUS_REQUIRE = 0, 705 MUTEX_STATUS_RELEASE = 1, 706 }; 707 708 /** 709 * @brief Heavy Load Mutex Reasons 710 */ 711 enum HeavyLoadMutexAddReasons : int64_t { 712 HeavyLoadMutexStatusAddSucc = 0, 713 HeavyLoadMutexStatusAddFailByAdded = 1, 714 HeavyLoadMutexStatusAddFailByMutex = 2, 715 HeavyLoadMutexStatusAddFailByParams = 3, 716 HeavyLoadMutexStatusCloseFailByUnopened = 4, 717 HeavyLoadMutexStatusCloseSucc = 0, 718 }; 719 720 /** 721 * @brief Heavy Load Mutex Boardcast Scene 722 */ 723 enum HeavyLoadMutexSceneBoardcastScene : int64_t { 724 HeavyLoadMutexBoardcastNeedProactiveAvoidance = 0, 725 HeavyLoadMutexBoardcastNeedProactiveDownspeeding = 1, 726 HeavyLoadMutexBoardcastNeedCancelDownspeeding = 2, 727 }; 728 729 /** 730 * @brief game boost state 731 */ 732 enum GameBoostState : int64_t { 733 GAME_BOOST_LEVEL0 = 0, 734 GAME_BOOST_LEVEL1 = 1, 735 GAME_BOOST_LEVEL2 = 2, 736 GAME_BOOST_LEVEL3 = 3, 737 GAME_BOOST_END = 4, 738 }; 739 740 /** 741 * @brief CosmicCube Status 742 */ 743 enum CosmicCubeState : int64_t { 744 APPLICATION_ABOUT_TO_APPEAR = 0, 745 APPLICATION_ABOUT_TO_HIDE = 1, 746 APPLICATION_ABOUT_TO_RECOVER = 2, 747 }; 748 749 /** 750 * @brief game scene Id 751 */ 752 enum GameSceneId : int64_t { 753 MSG_GAME_STATE_START = 0, 754 MSG_GAME_STATE_END = 1, 755 MSG_GAME_ENTER_PVP_BATTLE = 2, 756 MSG_GAME_EXIT_PVP_BATTLE = 3, 757 MSG_GAME_STATE_FOREGROUND = 4, 758 MSG_GAME_STATE_BACKGROUND = 5, 759 }; 760 761 /** 762 * @brief raise worker Thread Priority 763 */ 764 enum WorkerEventState : int64_t { 765 WORKER_EVENT_BEGIN = 0, 766 WORKER_EVENT_END = 1, 767 }; 768 769 /** 770 * @brief Wifi Connection State 771 */ 772 enum WifiConnectionState : int64_t { 773 WIFI_STATE_UNKNOWN = 0, 774 WIFI_STATE_IDLE = 1, 775 WIFI_STATE_SCAN = 2, 776 WIFI_STATE_CONNECTED = 3, 777 WIFI_STATE_DISCONNECTING = 4, 778 WIFI_STATE_DISCONNECTED = 5, 779 }; 780 781 /** 782 * @brief Frame Report from Rs 783 */ 784 enum FrameRateReportState : int64_t { 785 FRAME_RATE_COMMON_REPORT = 0, 786 }; 787 788 /** 789 * @brief File copy status 790 */ 791 enum CopyStatus : uint64_t { 792 COPY_STOP = 0, 793 COPY_START = 1, 794 COPY_STATUS_MAX, 795 }; 796 797 /** 798 * @brief High Frequence Load Scene State 799 */ 800 enum HighFrequenceLoadSceneState : uint64_t { 801 HFLS_SCENE_IN = 0, 802 HFLS_SCENE_OUT = 1, 803 }; 804 805 /** 806 * @brief Camera Status Change 807 */ 808 enum CameraUsingStatus : uint64_t { 809 CAMERA_STATUS_AVAILABLE = 2, 810 CAMERA_STATUS_UNAVAILABLE = 3, 811 }; 812 813 /** 814 * @brief Game State Change 815 */ 816 enum GameState : uint64_t { 817 GAME_FOREGROUND_STATE = 1, 818 GAME_BACKGROUND_STATE = 2, 819 GAME_EXIT_STATE = 3, 820 GAME_GEE_FOCUS_STATE = 4, 821 GAME_LOST_FOCUS_STATE = 5, 822 }; 823 824 /** 825 * @brief Game Env Type 826 */ 827 enum GameEnvType : uint64_t { 828 GAME_NORMAL = 0, 829 GAME_CUST = 1, 830 }; 831 832 /** 833 * @brief Recent Build Status 834 */ 835 enum RecentBuildStatus : int64_t { 836 RECENT_BUILD_START = 0, 837 RECENT_BUILD_STOP = 1, 838 }; 839 840 /** 841 * @brief Overlay Status 842 */ 843 enum OverlayStatus : int64_t { 844 OVERLAY_ADD = 0, 845 OVERLAY_REMOVE = 1, 846 }; 847 848 /** 849 * @brief Inner Audio State 850 */ 851 enum InnerAudioState : int64_t { 852 AUDIO_STATE_RUNNING = 0, 853 AUDIO_STATE_STOP = 1, 854 }; 855 856 /** 857 * @brief Sched mode state 858 */ 859 enum SchedMode : int32_t { 860 UNKNOWN_MODE = -1, 861 NORMAL_MODE = 0, 862 PERF_MODE = 1, 863 }; 864 865 /** 866 * @brief game suspend mode state 867 */ 868 enum GameSuspendModeState : int64_t { 869 SET_GAME_SUSPEND_MODE, 870 CANCEL_GAME_SUSPEND_MODE, 871 }; 872 873 /** 874 * @brief Turbo Mode state 875 */ 876 enum TurboModeState : int64_t { 877 TURBO_MODE_OFF = 0, 878 TURBO_MODE_ON = 1, 879 }; 880 } // namespace ResType 881 } // namespace ResourceSchedule 882 } // namespace OHOS 883 884 #endif // RESSCHED_INTERFACES_INNERKITS_RESSCHED_CLIENT_INCLUDE_RES_VALUE_H