From: luozheng <1732036298@qq.com> Date: Mon, 20 Apr 2026 08:52:00 +0000 (+0800) Subject: application/wearable/nativeapp文件夹1201patch合并提交 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=165668972cd8bc1138df581d2fe6a9de55b1e7ed;p=mirrors%2FFD230.git application/wearable/nativeapp文件夹1201patch合并提交 --- diff --git a/code/sdk/application/wearable/n9/nativeapp/CMakeLists.txt b/code/sdk/application/wearable/n9/nativeapp/CMakeLists.txt index dbd1ddea6..dcec9a091 100644 --- a/code/sdk/application/wearable/n9/nativeapp/CMakeLists.txt +++ b/code/sdk/application/wearable/n9/nativeapp/CMakeLists.txt @@ -15,7 +15,7 @@ set(PUBLIC_HEADER set(PRIVATE_HEADER ${NativeApp}/nativeui/ ${NativeApp}/nativeui/uisample/uitest/framework/include - ${UI_SAMPLE_ROOT}/components + ${NativeApp}/nativeui/inlcude/screennotify ${NativeApp}/../service/smart_voice/smart_voice_service/interfaces/innerkits/native_c/include ${NativeApp}/../service/smart_voice/voice_engine_hal/interfaces/innerkits/native_c/include ${NativeApp}/../ohos_deps @@ -25,6 +25,7 @@ set(PRIVATE_HEADER ${ROOT_DIR}/middleware/services/gui/uikit/proprietary/src/ui/frameworks ${ROOT_DIR}/middleware/services/gui/uikit/proprietary/src/ui/innerkits + ${UI_SAMPLE_ROOT}/components ${ROOT_DIR}/middleware/services/gui/uikit/ui/interfaces/kits/events ${ROOT_DIR}/middleware/services/gui/uikit/ui/interfaces/kits ${ROOT_DIR}/middleware/services/gui/uikit/utils/interfaces/kits @@ -65,8 +66,8 @@ set(PRIVATE_HEADER ${ROOT_DIR}/middleware/services/gui/uikit/ui/interfaces/kits/animator ${ROOTDIR}/open_source/flatbuffers/include ${ROOT_DIR}/open_source/openharmony/third_party/lwip/lwip_adapter/lwip_driver_adapter - ${ROOT_DIR}/open_source/openharmony/third_party/lwip/lwip_v2.1.3/src/include - ${ROOT_DIR}/open_source/openharmony/third_party/lwip/lwip_adapter/liteos/src/include + ${ROOT_DIR}/open_source/openharmony/foundation/ace/ace_engine_lite/modules/calendarManager + ${ROOTDIR}/open_source/openharmony/third_party/lwip/lwip_adapter/liteos/src/include/public ${ROOT_DIR}/zhihui/drivers/ ${ROOT_DIR}/zhihui/UI/CustomUIComponentTool/ @@ -81,36 +82,35 @@ set(PRIVATE_HEADER ) file(GLOB_RECURSE SOURCES "${NativeApp}/nativeui/*.cpp") +file(GLOB_RECURSE UI_SAMPLE_SRC "${UI_SAMPLE_ROOT}/components/*.cpp") +list(REMOVE_ITEM UI_SAMPLE_SRC + ${UI_SAMPLE_ROOT}/components/ui_test_bitmap_font/ui_test_bitmap_font.cpp + ${UI_SAMPLE_ROOT}/components/ui_test_clock_dial/ui_test_clock_dial.cpp + ${UI_SAMPLE_ROOT}/components/ui_test_clock_dial/ScreenModel.cpp + ${UI_SAMPLE_ROOT}/components/ui_test_clock_dial/PullUpDownView.cpp + ${UI_SAMPLE_ROOT}/components/ui_test_clock_dial/MainClockView.cpp + ${UI_SAMPLE_ROOT}/components/ui_test_clock_dial/HeartRateView.cpp + ${UI_SAMPLE_ROOT}/components/ui_test_clock_dial/CompassView.cpp + ${UI_SAMPLE_ROOT}/components/ui_test_clock_dial/CompassControlView.cpp + ${UI_SAMPLE_ROOT}/components/ui_test_clock_dial/ActivityWeekView.cpp + ${UI_SAMPLE_ROOT}/components/ui_test_compass/ui_test_compass.cpp + ${UI_SAMPLE_ROOT}/components/ui_test_dump_dom_tree/ui_test_dump_dom.cpp +) + +if(NOT "CONFIG_NATIVEAPP_TEST" IN_LIST DEFINES) + file(GLOB FILES_TO_REMOVE_MONKEY "${CMAKE_CURRENT_SOURCE_DIR}/nativeui/monkey/src/*.cpp") + file(GLOB FILES_TO_REMOVE_EMPTY "${CMAKE_CURRENT_SOURCE_DIR}/nativeui/emptypage/src/*.cpp") + list(APPEND FILES_TO_REMOVE ${FILES_TO_REMOVE_MONKEY} ${FILES_TO_REMOVE_EMPTY}) + list(REMOVE_ITEM SOURCES ${FILES_TO_REMOVE}) +endif() + set(SOURCES ${SOURCES} ${NativeApp}/nativelauncher/src/NativeLauncher.cpp ${NativeApp}/nativelauncher/src/NativeRegisterManager.cpp ${NativeApp}/nativelauncher/src/UICardPageFactory.cpp - ${UI_SAMPLE_ROOT}/components/ui_test_lottie/ui_test_lottie.cpp - ${UI_SAMPLE_ROOT}/components/ui_test_tiger/tiger_view.cpp - ${UI_SAMPLE_ROOT}/components/ui_test_tiger/ui_test_tiger.cpp - ${UI_SAMPLE_ROOT}/components/ui_test_running_ball/ui_test_running_ball.cpp - ${UI_SAMPLE_ROOT}/components/ui_test_breath/ui_test_breath.cpp - ${UI_SAMPLE_ROOT}/components/ui_test_card_switch/ui_test_card_switch.cpp - ${UI_SAMPLE_ROOT}/components/ui_test_countdown/ui_test_countdown.cpp - ${UI_SAMPLE_ROOT}/components/ui_test_list_fps/image_text_adapter.cpp - ${UI_SAMPLE_ROOT}/components/ui_test_list_fps/ui_test_list_fps.cpp - ${UI_SAMPLE_ROOT}/components/ui_test_particle/ui_test_particle.cpp - ${UI_SAMPLE_ROOT}/components/ui_test_message/ui_test_message.cpp - ${UI_SAMPLE_ROOT}/components/ui_test_icosahedron/ui_test_icosahedron.cpp - ${UI_SAMPLE_ROOT}/components/ui_test_cube_rotate/cube_rotate_view.cpp - ${UI_SAMPLE_ROOT}/components/ui_test_cube_rotate/ui_test_cube_rotate.cpp - ${UI_SAMPLE_ROOT}/components/ui_test_video_play/ui_test_video_play.cpp - ${UI_SAMPLE_ROOT}/components/ui_test_keyboard/ui_test_keyboard.cpp - ${UI_SAMPLE_ROOT}/components/ui_test_hexagons_list/ui_test_hexagons_list.cpp - ${UI_SAMPLE_ROOT}/components/ui_test_waterfall_list/ui_test_waterfall_list.cpp - ${UI_SAMPLE_ROOT}/components/ui_test_coverflow/ui_test_coverflow.cpp - ${UI_SAMPLE_ROOT}/components/ui_test_slipflow/ui_test_slipflow.cpp - ${UI_SAMPLE_ROOT}/components/ui_test_kaleidoscope/ui_test_kaleidoscope.cpp - ${UI_SAMPLE_ROOT}/components/ui_test_roller_view/ui_test_roller_view.cpp - ${UI_SAMPLE_ROOT}/components/ui_test_emoji/ui_test_emoji.cpp - ${UI_SAMPLE_ROOT}/components/ui_test_sphere_view/ui_test_sphere_view.cpp - ${UI_SAMPLE_ROOT}/components/ui_test_nested/ui_test_nested.cpp + ${NativeApp}/nativelauncher/src/UIWatchDialFactory.cpp + ${UI_SAMPLE_SRC} ) list(REMOVE_ITEM SOURCES @@ -224,7 +224,7 @@ set(PRIVATE_HEADER ${ROOT_DIR}/open_source/openharmony/foundation/ace/ace_engine_lite/interfaces/base ${ROOT_DIR}/middleware/services/gui/uikit/proprietary/include ${ROOT_DIR}/middleware/services/gui/uikit/proprietary/src/utils/innerkits - ${ROOT_DIR}/middleware/services/gui/uikit/proprietary/src/ui/frameworks/ + ${ROOT_DIR}/middleware/services/gui/uikit/proprietary/src/ui/frameworks ${ROOT_DIR}/middleware/services/gui/uikit/utils/interfaces/innerkits ${ROOT_DIR}/middleware/services/gui/uikit/utils/interfaces/kits ${ROOT_DIR}/middleware/services/gui/uikit/utils/interfaces/kits/gfx_utils diff --git a/code/sdk/application/wearable/n9/nativeapp/brandy-auto-ota-cli/libuikit_fwk.a b/code/sdk/application/wearable/n9/nativeapp/brandy-auto-ota-cli/libuikit_fwk.a index eede3b370..1bf80f959 100644 Binary files a/code/sdk/application/wearable/n9/nativeapp/brandy-auto-ota-cli/libuikit_fwk.a and b/code/sdk/application/wearable/n9/nativeapp/brandy-auto-ota-cli/libuikit_fwk.a differ diff --git a/code/sdk/application/wearable/n9/nativeapp/brandy-auto-ota-ser/libuikit_fwk.a b/code/sdk/application/wearable/n9/nativeapp/brandy-auto-ota-ser/libuikit_fwk.a index 40a9458c8..a29f4e72c 100644 Binary files a/code/sdk/application/wearable/n9/nativeapp/brandy-auto-ota-ser/libuikit_fwk.a and b/code/sdk/application/wearable/n9/nativeapp/brandy-auto-ota-ser/libuikit_fwk.a differ diff --git a/code/sdk/application/wearable/n9/nativeapp/brandy-native-js/libuikit_fwk.a b/code/sdk/application/wearable/n9/nativeapp/brandy-native-js/libuikit_fwk.a index e3ce469ad..dd5873d60 100644 Binary files a/code/sdk/application/wearable/n9/nativeapp/brandy-native-js/libuikit_fwk.a and b/code/sdk/application/wearable/n9/nativeapp/brandy-native-js/libuikit_fwk.a differ diff --git a/code/sdk/application/wearable/n9/nativeapp/brandy-xts/libuikit_fwk.a b/code/sdk/application/wearable/n9/nativeapp/brandy-xts/libuikit_fwk.a index 337b034d5..ae7f995dc 100644 Binary files a/code/sdk/application/wearable/n9/nativeapp/brandy-xts/libuikit_fwk.a and b/code/sdk/application/wearable/n9/nativeapp/brandy-xts/libuikit_fwk.a differ diff --git a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/UICardPageFactory.h b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/UICardPageFactory.h index 761e137c7..33f0fc3a1 100644 --- a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/UICardPageFactory.h +++ b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/UICardPageFactory.h @@ -21,22 +21,22 @@ public: static UICardPageFactory instance; return instance; } - void RegisterWatchDial(const uint16_t mode, const uint16_t id, UICardPageProxyInterface* uiCardPage); - UICardPage* CreateWatchDial(uint16_t mode, uint16_t id); + void RegisterCardPage(const uint16_t id, UICardPageProxyInterface* uiCardPage); + UICardPage* CreateCardPage(uint16_t id); private: UICardPageFactory() {}; ~UICardPageFactory() {}; UICardPageFactory(const UICardPageFactory&) = delete; UICardPageFactory &operator=(const UICardPageFactory&) = delete; - std::unordered_map watchDials_[static_cast(DIAL_DISPLAY_MODE_MAX)]; + std::unordered_map cardPage_; }; -class WatchDialRegister { +class CardPageRegister { public: - WatchDialRegister(const uint16_t mode, const uint16_t id, UICardPageProxyInterface* uiCardPage) + CardPageRegister(const uint16_t id, UICardPageProxyInterface* uiCardPage) { - UICardPageFactory::GetInstance().RegisterWatchDial(mode, id, uiCardPage); + UICardPageFactory::GetInstance().RegisterCardPage(id, uiCardPage); } }; @@ -52,7 +52,7 @@ public: }; template -class WatchDialProxy : public UICardPageProxyInterface { +class CardPageProxy : public UICardPageProxyInterface { public: UICardPage* CreateUICardPage() override { @@ -66,8 +66,8 @@ public: }; } // namespace OHOS -#define REGIST_WATCH_DIAL(mode, id, U) \ - const static OHOS::WatchDialRegister (STATIC_VAR)(static_cast(mode), static_cast(id), \ - new WatchDialProxy()) +#define REGIST_CARD_PAGE(id, U) \ + const static OHOS::CardPageRegister (STATIC_VAR)(static_cast(id), \ + new CardPageProxy()) #endif // UI_CARD_PAGE_FACTORY_H \ No newline at end of file diff --git a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/UIWatchDialFactory.h b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/UIWatchDialFactory.h new file mode 100644 index 000000000..086b2a201 --- /dev/null +++ b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/UIWatchDialFactory.h @@ -0,0 +1,94 @@ +/* + * Copyright (c) CompanyNameMagicTag 2025. All rights reserved. + * Description: UIWatchDialFactory + * Author: + * Create: 2025-06 + */ + +#ifndef UI_WATCH_DIAL_FACTORY_H +#define UI_WATCH_DIAL_FACTORY_H + +#include +#include "components/ui_card_page.h" +#include "UiConfig.h" +#include "wearable_log.h" +#include "main/MainModel.h" +#include "components/ui_fragment.h" + +namespace OHOS { +class UIWatchDialProxyInterface; +class UIWatchDialFactory { +public: + static UIWatchDialFactory& GetInstance() + { + static UIWatchDialFactory instance; + return instance; + } + void RegisterWatchDial(const uint16_t ability, const uint16_t id, UIWatchDialProxyInterface* uiWatchDial, + const DialInfo* dialInfo); + UICardPage* CreateNormalDial(uint16_t id); + UIFragment* CreateAodDial(uint16_t id); + const DialInfo* GetNormalDialInfo(uint16_t id); + uint8_t GetNormalDialInfoNum(); + +private: + UIWatchDialFactory() {}; + ~UIWatchDialFactory() {}; + UIWatchDialFactory(const UIWatchDialFactory&) = delete; + UIWatchDialFactory &operator=(const UIWatchDialFactory&) = delete; + std::unordered_map watchDials_[static_cast(DIAL_DISPLAY_MODE_MAX)]; + std::unordered_map normalDialInfo_; +}; + +class WatchDialRegister { +public: + WatchDialRegister(const uint16_t ability, const uint16_t id, UIWatchDialProxyInterface* uiWatchDial, + const DialInfo* dialInfo) + { + UIWatchDialFactory::GetInstance().RegisterWatchDial(ability, id, uiWatchDial, dialInfo); + } +}; + +class UIWatchDialProxyInterface { +public: + virtual UICardPage* CreateWatchDialCardPage(const uint16_t id) = 0; + virtual UIFragment* CreateWatchDialFragment(const uint16_t id) = 0; + UIWatchDialProxyInterface() = default; + virtual ~UIWatchDialProxyInterface() = default; + UIWatchDialProxyInterface(const UIWatchDialProxyInterface&) = delete; + UIWatchDialProxyInterface& operator=(const UIWatchDialProxyInterface&) = delete; + UIWatchDialProxyInterface(UIWatchDialProxyInterface&&) = delete; + UIWatchDialProxyInterface& operator=(UIWatchDialProxyInterface&&) = delete; +}; + +template +class WatchDialProxy : public UIWatchDialProxyInterface { +public: + UICardPage* CreateWatchDialCardPage(const uint16_t id) override + { + U* u = new U(); + UICardPage* page = dynamic_cast(u); + if (page == nullptr) { + delete u; + } + return page; + } + + UIFragment* CreateWatchDialFragment(const uint16_t id) override + { + U* u = new U(); + UIFragment* fragment = dynamic_cast(u); + if (fragment == nullptr) { + delete u; + } + fragment->CreateView(); + return fragment; + } +}; +} // namespace OHOS + +#define REGIST_WATCH_DIAL(ability, id, U, info) \ + const static OHOS::WatchDialRegister (STATIC_VAR)(static_cast(ability), static_cast(id), \ + new WatchDialProxy(), static_cast(info)) + +#endif // UI_WATCH_DIAL_FACTORY_H \ No newline at end of file diff --git a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_blood.h b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_blood.h new file mode 100644 index 000000000..0901ff41e --- /dev/null +++ b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_blood.h @@ -0,0 +1,51 @@ +/* + * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2025-2025. All rights reserved. + * Description: UIResourceBlood + * Create: 2025-06 + */ + +#ifndef UI_RESOURCE_BLOOD_H +#define UI_RESOURCE_BLOOD_H + +namespace OHOS { +static const int IMAGE_BLOOD_ABNORMAL = 0x100001; +static const int IMAGE_BLOOD_AGAIN = 0x100002; +static const int IMAGE_BLOOD_BG = 0x100003; +static const int IMAGE_BLOOD_COMMON = 0x100004; +static const int IMAGE_BLOOD_FRAME00 = 0x100005; +static const int IMAGE_BLOOD_FRAME01 = 0x100006; +static const int IMAGE_BLOOD_FRAME02 = 0x100007; +static const int IMAGE_BLOOD_FRAME03 = 0x100008; +static const int IMAGE_BLOOD_FRAME04 = 0x100009; +static const int IMAGE_BLOOD_FRAME05 = 0x10000a; +static const int IMAGE_BLOOD_FRAME06 = 0x10000b; +static const int IMAGE_BLOOD_FRAME07 = 0x10000c; +static const int IMAGE_BLOOD_FRAME08 = 0x10000d; +static const int IMAGE_BLOOD_FRAME09 = 0x10000e; +static const int IMAGE_BLOOD_FRAME10 = 0x10000f; +static const int IMAGE_BLOOD_FRAME11 = 0x100010; +static const int IMAGE_BLOOD_FRAME12 = 0x100011; +static const int IMAGE_BLOOD_FRAME13 = 0x100012; +static const int IMAGE_BLOOD_FRAME14 = 0x100013; +static const int IMAGE_BLOOD_FRAME15 = 0x100014; +static const int IMAGE_BLOOD_FRAME16 = 0x100015; +static const int IMAGE_BLOOD_FRAME17 = 0x100016; +static const int IMAGE_BLOOD_FRAME18 = 0x100017; +static const int IMAGE_BLOOD_FRAME19 = 0x100018; +static const int IMAGE_BLOOD_FRAME20 = 0x100019; +static const int IMAGE_BLOOD_FRAME21 = 0x10001a; +static const int IMAGE_BLOOD_FRAME22 = 0x10001b; +static const int IMAGE_BLOOD_FRAME23 = 0x10001c; +static const int IMAGE_BLOOD_FRAME24 = 0x10001d; +static const int IMAGE_BLOOD_FRAME25 = 0x10001e; +static const int IMAGE_BLOOD_FRAME26 = 0x10001f; +static const int IMAGE_BLOOD_FRAME27 = 0x100020; +static const int IMAGE_BLOOD_FRAME28 = 0x100021; +static const int IMAGE_BLOOD_FRAME29 = 0x100022; +static const int IMAGE_BLOOD_NORMAL = 0x100023; +static const int IMAGE_BLOOD_PREVIEW1 = 0x100024; +static const int IMAGE_BLOOD_PREVIEW2 = 0x100025; +static const int IMAGE_BLOOD_RESET = 0x100026; +static const int IMAGE_BLOOD_SCALE = 0x100027; +} // OHOS +#endif // UI_RESOURCE_BLOOD_H diff --git a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_breath.h b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_breath.h index ca668341c..9c42b093b 100644 --- a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_breath.h +++ b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_breath.h @@ -1,102 +1,33 @@ /* * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2025-2025. All rights reserved. - * Description: UIBreathResource + * Description: UIResourceBreath * Create: 2025-06-05 */ -#ifndef UI_RESOURCE_BREATH_IMAGE_H -#define UI_RESOURCE_BREATH_IMAGE_H -#include + +#ifndef UI_RESOURCE_BREATH_H +#define UI_RESOURCE_BREATH_H + namespace OHOS { - static const int IMAGE_CONVERTER_TOOL_BREATH001 = 0x100001; - static const int IMAGE_CONVERTER_TOOL_BREATH002 = 0x100002; - static const int IMAGE_CONVERTER_TOOL_BREATH003 = 0x100003; - static const int IMAGE_CONVERTER_TOOL_BREATH004 = 0x100004; - static const int IMAGE_CONVERTER_TOOL_BREATH005 = 0x100005; - static const int IMAGE_CONVERTER_TOOL_BREATH006 = 0x100006; - static const int IMAGE_CONVERTER_TOOL_BREATH007 = 0x100007; - static const int IMAGE_CONVERTER_TOOL_BREATH008 = 0x100008; - static const int IMAGE_CONVERTER_TOOL_BREATH009 = 0x100009; - static const int IMAGE_CONVERTER_TOOL_BREATH010 = 0x10000a; - static const int IMAGE_CONVERTER_TOOL_BREATH011 = 0x10000b; - static const int IMAGE_CONVERTER_TOOL_BREATH012 = 0x10000c; - static const int IMAGE_CONVERTER_TOOL_BREATH013 = 0x10000d; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE001 = 0x10000e; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE002 = 0x10000f; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE003 = 0x100010; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE004 = 0x100011; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE005 = 0x100012; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE006 = 0x100013; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE007 = 0x100014; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE008 = 0x100015; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE009 = 0x100016; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE010 = 0x100017; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE011 = 0x100018; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE012 = 0x100019; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE013 = 0x10001a; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE014 = 0x10001b; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE015 = 0x10001c; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE016 = 0x10001d; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE017 = 0x10001e; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE018 = 0x10001f; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE019 = 0x100020; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE020 = 0x100021; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE021 = 0x100022; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE022 = 0x100023; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE023 = 0x100024; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE024 = 0x100025; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE025 = 0x100026; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE026 = 0x100027; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE027 = 0x100028; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE028 = 0x100029; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE029 = 0x10002a; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE030 = 0x10002b; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE031 = 0x10002c; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE032 = 0x10002d; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE033 = 0x10002e; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE034 = 0x10002f; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE035 = 0x100030; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE036 = 0x100031; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE037 = 0x100032; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE038 = 0x100033; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE039 = 0x100034; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE040 = 0x100035; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE041 = 0x100036; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE042 = 0x100037; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE043 = 0x100038; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE044 = 0x100039; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE045 = 0x10003a; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE046 = 0x10003b; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE047 = 0x10003c; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE048 = 0x10003d; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE049 = 0x10003e; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE050 = 0x10003f; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE051 = 0x100040; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE052 = 0x100041; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE053 = 0x100042; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE054 = 0x100043; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE055 = 0x100044; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE056 = 0x100045; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE057 = 0x100046; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE058 = 0x100047; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE059 = 0x100048; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE060 = 0x100049; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE061 = 0x10004a; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE062 = 0x10004b; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE063 = 0x10004c; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE064 = 0x10004d; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE065 = 0x10004e; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE066 = 0x10004f; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE067 = 0x100050; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE068 = 0x100051; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE069 = 0x100052; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE070 = 0x100053; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE071 = 0x100054; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE072 = 0x100055; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE073 = 0x100056; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE074 = 0x100057; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE075 = 0x100058; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE076 = 0x100059; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE077 = 0x10005a; - static const int IMAGE_CONVERTER_TOOL_INOREX_HALE078 = 0x10005b; -} // OHOS -#endif // UI_RESOURCE_BREATH_IMAGE_H \ No newline at end of file +static const int IMAGE_BREATH_BAD = 0x100001; +static const int IMAGE_BREATH_BG1 = 0x100002; +static const int IMAGE_BREATH_BG2 = 0x100003; +static const int IMAGE_BREATH_BG3 = 0x100004; +static const int IMAGE_BREATH_BG4 = 0x100005; +static const int IMAGE_BREATH_CENTER = 0x100006; +static const int IMAGE_BREATH_CENTER1 = 0x100007; +static const int IMAGE_BREATH_CENTER2 = 0x100008; +static const int IMAGE_BREATH_COMPLETE = 0x100009; +static const int IMAGE_BREATH_EXCELLENT = 0x10000a; +static const int IMAGE_BREATH_GOOD = 0x10000b; +static const int IMAGE_BREATH_NORMAL = 0x10000c; +static const int IMAGE_BREATH_OK = 0x10000d; +static const int IMAGE_BREATH_PASS = 0x10000e; +static const int IMAGE_BREATH_RESULT = 0x10000f; +static const int IMAGE_BREATH_RETEST = 0x100010; +static const int IMAGE_BREATH_ROMATA1 = 0x100011; +static const int IMAGE_BREATH_ROMATA2 = 0x100012; +static const int IMAGE_BREATH_SETTING = 0x100013; +static const int IMAGE_BREATH_START = 0x100014; +static const int IMAGE_BREATH_TIME = 0x100015; +} // OHOS +#endif // UI_RESOURCE_BREATH_H \ No newline at end of file diff --git a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_camera.h b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_camera.h index 022ddfca0..ba0bb98c0 100644 --- a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_camera.h +++ b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_camera.h @@ -1,17 +1,14 @@ /* * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2025-2025. All rights reserved. - * Description: UICameraResource + * Description: UIResourceCamera * Create: 2025-06-05 */ + #ifndef UI_RESOURCE_CAMERA_H #define UI_RESOURCE_CAMERA_H -#include -namespace OHOS { - static const int IMAGE_CONVERTER_TOOL_CAMERA_1 = 0x100001; - static const int IMAGE_CONVERTER_TOOL_CAMERA_2 = 0x100002; - static const int IMAGE_CONVERTER_TOOL_CAMERA_3 = 0x100003; - static const int IMAGE_CONVERTER_TOOL_CAMERA_4 = 0x100004; - static const int IMAGE_CONVERTER_TOOL_CAMERA_5 = 0x100005; -} // OHOS -#endif // UI_RESOURCE_CAMERA_H +namespace OHOS { +static const int IMAGE_CAMERA_TAKEPHOTO = 0x100001; +static const int IMAGE_CAMERA_DISCONNECT = 0x100002; +} // OHOS +#endif // UI_RESOURCE_CAMERA_H diff --git a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_date.h b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_date.h index 0bccb8b0e..78e677744 100644 --- a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_date.h +++ b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_date.h @@ -1,21 +1,19 @@ /* * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2025-2025. All rights reserved. - * Description: UIWeatherResource + * Description: UIResourceDate * Create: 2025-06-10 */ + #ifndef UI_RESOURCE_DATE_H #define UI_RESOURCE_DATE_H -#include + namespace OHOS { - static const int DIR_MASK = 0xfff00000; - static const int PNG_MASK = 0x000fffff; - static const int IMAGE_CONVERTER_TOOL_DATE1 = 0x100001; - static const int IMAGE_CONVERTER_TOOL_DATE2 = 0x100002; - static const int IMAGE_CONVERTER_TOOL_DATE3 = 0x100003; - static const int IMAGE_CONVERTER_TOOL_DATE4 = 0x100004; - static const int IMAGE_CONVERTER_TOOL_DATE5 = 0x100005; - static const int IMAGE_CONVERTER_TOOL_DATE6 = 0x100006; - static const int IMAGE_CONVERTER_TOOL_DATE7 = 0x100007; - static const int IMAGE_CONVERTER_TOOL_DATE8 = 0x100008; -} // OHOS -#endif // UI_RESOURCE_DATE_H +static const int IMAGE_DATE_BG1 = 0x100001; +static const int IMAGE_DATE_BG2 = 0x100002; +static const int IMAGE_DATE_GRAY = 0x100003; +static const int IMAGE_DATE_RED = 0x100004; +static const int IMAGE_DATE_SELECT = 0x100005; +static const int IMAGE_DATE_SIGNS = 0x100006; +static const int IMAGE_DATE_WHITE = 0x100007; +} // OHOS +#endif // UI_RESOURCE_DATE_H diff --git a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_empty.h b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_empty.h new file mode 100644 index 000000000..b7b2e6431 --- /dev/null +++ b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_empty.h @@ -0,0 +1,13 @@ +/* + * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2025-2025. All rights reserved. + * Description: UIResourceEmpty + * Create: 2025-06-05 + */ + +#ifndef UI_RESOURCE_EMPTY_H +#define UI_RESOURCE_EMPTY_H + +namespace OHOS { +static const int IMAGE_EMPTY_BG = 0x100001; +} // OHOS +#endif // UI_RESOURCE_EMPTY_H diff --git a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_findPhone.h b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_findPhone.h index 9a51cdf10..45a097ad1 100644 --- a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_findPhone.h +++ b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_findPhone.h @@ -1,46 +1,43 @@ /* * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2025-2025. All rights reserved. - * Description: UIFindPhoneResource + * Description: UIResourceFindPhone * Create: 2025-2-13 */ + #ifndef UI_RESOURCE_FINDPHONE_H #define UI_RESOURCE_FINDPHONE_H -#include + namespace OHOS { - static const int IMAGE_CONVERTER_TOOL_CONNECT_PHONE_1 = 0x100001; - static const int IMAGE_CONVERTER_TOOL_CONNECT_PHONE_2 = 0x100002; - static const int IMAGE_CONVERTER_TOOL_CONNECT_PHONE_3 = 0x100003; - static const int IMAGE_CONVERTER_TOOL_CONNECT_PHONE_4 = 0x100004; - static const int IMAGE_CONVERTER_TOOL_CONNECT_PHONE_5 = 0x100005; - static const int IMAGE_CONVERTER_TOOL_CONNECT_PHONE_6 = 0x100006; - static const int IMAGE_CONVERTER_TOOL_CONNECT_PHONE_7 = 0x100007; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE001 = 0x100008; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE002 = 0x100009; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE003 = 0x10000a; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE004 = 0x10000b; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE005 = 0x10000c; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE006 = 0x10000d; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE007 = 0x10000e; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE008 = 0x10000f; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE009 = 0x100010; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE010 = 0x100011; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE011 = 0x100012; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE012 = 0x100013; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE013 = 0x100014; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE014 = 0x100015; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE015 = 0x100016; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE016 = 0x100017; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE017 = 0x100018; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE018 = 0x100019; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE019 = 0x10001a; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE020 = 0x10001b; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE021 = 0x10001c; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE022 = 0x10001d; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE023 = 0x10001e; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE024 = 0x10001f; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE025 = 0x100020; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE026 = 0x100021; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE027 = 0x100022; - static const int IMAGE_CONVERTER_TOOL_FINDPHONE028 = 0x100023; -} // OHOS -#endif // UI_RESOURCE_FINDPHONE_H +static const int IMAGE_FINDPHONE_CONNECT = 0x100001; +static const int IMAGE_FINDPHONE_DISCONNECT = 0x100002; +static const int IMAGE_FINDPHONE_FRAME01 = 0x100003; +static const int IMAGE_FINDPHONE_FRAME02 = 0x100004; +static const int IMAGE_FINDPHONE_FRAME03 = 0x100005; +static const int IMAGE_FINDPHONE_FRAME04 = 0x100006; +static const int IMAGE_FINDPHONE_FRAME05 = 0x100007; +static const int IMAGE_FINDPHONE_FRAME06 = 0x100008; +static const int IMAGE_FINDPHONE_FRAME07 = 0x100009; +static const int IMAGE_FINDPHONE_FRAME08 = 0x10000a; +static const int IMAGE_FINDPHONE_FRAME09 = 0x10000b; +static const int IMAGE_FINDPHONE_FRAME10 = 0x10000c; +static const int IMAGE_FINDPHONE_FRAME11 = 0x10000d; +static const int IMAGE_FINDPHONE_FRAME12 = 0x10000e; +static const int IMAGE_FINDPHONE_FRAME13 = 0x10000f; +static const int IMAGE_FINDPHONE_FRAME14 = 0x100010; +static const int IMAGE_FINDPHONE_FRAME15 = 0x100011; +static const int IMAGE_FINDPHONE_FRAME16 = 0x100012; +static const int IMAGE_FINDPHONE_FRAME17 = 0x100013; +static const int IMAGE_FINDPHONE_FRAME18 = 0x100014; +static const int IMAGE_FINDPHONE_FRAME19 = 0x100015; +static const int IMAGE_FINDPHONE_FRAME20 = 0x100016; +static const int IMAGE_FINDPHONE_FRAME21 = 0x100017; +static const int IMAGE_FINDPHONE_FRAME22 = 0x100018; +static const int IMAGE_FINDPHONE_FRAME23 = 0x100019; +static const int IMAGE_FINDPHONE_FRAME24 = 0x10001a; +static const int IMAGE_FINDPHONE_FRAME25 = 0x10001b; +static const int IMAGE_FINDPHONE_FRAME26 = 0x10001c; +static const int IMAGE_FINDPHONE_FRAME27 = 0x10001d; +static const int IMAGE_FINDPHONE_FRAME28 = 0x10001e; +static const int IMAGE_FINDPHONE_RESET = 0x10001f; +} // OHOS +#endif // UI_RESOURCE_FINDPHONE_H diff --git a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_flashlight.h b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_flashlight.h new file mode 100644 index 000000000..bd94ffb4e --- /dev/null +++ b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_flashlight.h @@ -0,0 +1,49 @@ +/* + * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2025-2025. All rights reserved. + * Description: UIResouceFlashlight + * Create: 2025-04-24 + */ + +#ifndef UI_RESOURCE_FLASHLIGHT_H +#define UI_RESOURCE_FLASHLIGHT_H + +namespace OHOS { +static const int IMAGE_FLASHLIGHT_BLINKBUTTON = 0x100001; +static const int IMAGE_FLASHLIGHT_BLINKITEM = 0x100002; +static const int IMAGE_FLASHLIGHT_COLORITEM = 0x100003; +static const int IMAGE_FLASHLIGHT_COLOR_DARK_BLUE_BUTTON = 0x100004; +static const int IMAGE_FLASHLIGHT_COLOR_DARK_BLUE_PRESSBUTTON = 0x100005; +static const int IMAGE_FLASHLIGHT_COLOR_GREEN_BUTTON = 0x100006; +static const int IMAGE_FLASHLIGHT_COLOR_GREEN_PRESSBUTTON = 0x100007; +static const int IMAGE_FLASHLIGHT_COLOR_LIGHT_BLUE_BUTTON = 0x100008; +static const int IMAGE_FLASHLIGHT_COLOR_LIGHT_BLUE_PRESSBUTTON = 0x100009; +static const int IMAGE_FLASHLIGHT_COLOR_MULTI_BUTTON = 0x10000a; +static const int IMAGE_FLASHLIGHT_COLOR_MULTI_PRESSBUTTON = 0x10000b; +static const int IMAGE_FLASHLIGHT_COLOR_ORANGE_BUTTON = 0x10000c; +static const int IMAGE_FLASHLIGHT_COLOR_ORANGE_PRESSBUTTON = 0x10000d; +static const int IMAGE_FLASHLIGHT_COLOR_PURPLE_BUTTON = 0x10000e; +static const int IMAGE_FLASHLIGHT_COLOR_PURPLE_PRESSBUTTON = 0x10000f; +static const int IMAGE_FLASHLIGHT_COLOR_RED_BUTTON = 0x100010; +static const int IMAGE_FLASHLIGHT_COLOR_RED_PRESSBUTTON = 0x100011; +static const int IMAGE_FLASHLIGHT_COLOR_WHITE_BUTTON = 0x100012; +static const int IMAGE_FLASHLIGHT_COLOR_WHITE_PRESSBUTTON = 0x100013; +static const int IMAGE_FLASHLIGHT_COLOR_YELLOW_BUTTON = 0x100014; +static const int IMAGE_FLASHLIGHT_COLOR_YELLOW_PRESSBUTTON = 0x100015; +static const int IMAGE_FLASHLIGHT_DOWNARROW = 0x100016; +static const int IMAGE_FLASHLIGHT_FLASHLIGHTON = 0x100017; +static const int IMAGE_FLASHLIGHT_PLAY_BLACK_PAGE = 0x100018; +static const int IMAGE_FLASHLIGHT_PLAY_DARK_BLUE_PAGE = 0x100019; +static const int IMAGE_FLASHLIGHT_PLAY_GREEN_PAGE = 0x10001a; +static const int IMAGE_FLASHLIGHT_PLAY_LIGHT_BLUE_PAGE = 0x10001b; +static const int IMAGE_FLASHLIGHT_PLAY_MULTI_PAGE = 0x10001c; +static const int IMAGE_FLASHLIGHT_PLAY_ORANGE_PAGE = 0x10001d; +static const int IMAGE_FLASHLIGHT_PLAY_PURPLE_PAGE = 0x10001e; +static const int IMAGE_FLASHLIGHT_PLAY_RED_PAGE = 0x10001f; +static const int IMAGE_FLASHLIGHT_PLAY_WHITE_PAGE = 0x100020; +static const int IMAGE_FLASHLIGHT_PLAY_YELLOW_PAGE = 0x100021; +static const int IMAGE_FLASHLIGHT_RECOVERBUTTON = 0x100022; +static const int IMAGE_FLASHLIGHT_RECOVERCANCLE = 0x100023; +static const int IMAGE_FLASHLIGHT_RECOVERCONFIRM = 0x100024; +static const int IMAGE_FLASHLIGHT_RIGHTARROW = 0x100025; +} // OHOS +#endif // UI_RESOURCE_FLASHLIGHT_H diff --git a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_heartRate.h b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_heartRate.h new file mode 100644 index 000000000..97ffed1db --- /dev/null +++ b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_heartRate.h @@ -0,0 +1,49 @@ +/* + * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2025-2025. All rights reserved. + * Description: UIResourceHeartRate + * Create: 2025-06 + */ + +#ifndef UI_RESOURCE_HEARTRATE_H +#define UI_RESOURCE_HEARTRATE_H + +namespace OHOS { +static const int IMAGE_HEART_RATE_BG1 = 0x100001; +static const int IMAGE_HEART_RATE_BG2 = 0x100002; +static const int IMAGE_HEART_RATE_DOWN = 0x100003; +static const int IMAGE_HEART_RATE_FRAME00 = 0x100004; +static const int IMAGE_HEART_RATE_FRAME01 = 0x100005; +static const int IMAGE_HEART_RATE_FRAME02 = 0x100006; +static const int IMAGE_HEART_RATE_FRAME03 = 0x100007; +static const int IMAGE_HEART_RATE_FRAME04 = 0x100008; +static const int IMAGE_HEART_RATE_FRAME05 = 0x100009; +static const int IMAGE_HEART_RATE_FRAME06 = 0x10000a; +static const int IMAGE_HEART_RATE_FRAME07 = 0x10000b; +static const int IMAGE_HEART_RATE_FRAME08 = 0x10000c; +static const int IMAGE_HEART_RATE_FRAME09 = 0x10000d; +static const int IMAGE_HEART_RATE_FRAME10 = 0x10000e; +static const int IMAGE_HEART_RATE_FRAME11 = 0x10000f; +static const int IMAGE_HEART_RATE_FRAME12 = 0x100010; +static const int IMAGE_HEART_RATE_FRAME13 = 0x100011; +static const int IMAGE_HEART_RATE_FRAME14 = 0x100012; +static const int IMAGE_HEART_RATE_FRAME15 = 0x100013; +static const int IMAGE_HEART_RATE_FRAME16 = 0x100014; +static const int IMAGE_HEART_RATE_FRAME17 = 0x100015; +static const int IMAGE_HEART_RATE_FRAME18 = 0x100016; +static const int IMAGE_HEART_RATE_FRAME19 = 0x100017; +static const int IMAGE_HEART_RATE_FRAME20 = 0x100018; +static const int IMAGE_HEART_RATE_FRAME21 = 0x100019; +static const int IMAGE_HEART_RATE_FRAME22 = 0x10001a; +static const int IMAGE_HEART_RATE_FRAME23 = 0x10001b; +static const int IMAGE_HEART_RATE_FRAME24 = 0x10001c; +static const int IMAGE_HEART_RATE_FRAME25 = 0x10001d; +static const int IMAGE_HEART_RATE_FRAME26 = 0x10001e; +static const int IMAGE_HEART_RATE_FRAME27 = 0x10001f; +static const int IMAGE_HEART_RATE_FRAME28 = 0x100020; +static const int IMAGE_HEART_RATE_FRAME29 = 0x100021; +static const int IMAGE_HEART_RATE_PREVIEW1 = 0x100022; +static const int IMAGE_HEART_RATE_PREVIEW2 = 0x100023; +static const int IMAGE_HEART_RATE_RESET = 0x100024; +static const int IMAGE_HEART_RATE_UP = 0x100025; +} // OHOS +#endif // UI_RESOURCE_HEARTRATE_H diff --git a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_message.h b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_message.h new file mode 100644 index 000000000..1758c87a6 --- /dev/null +++ b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_message.h @@ -0,0 +1,26 @@ +/* + * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2025-2025. All rights reserved. + * Description: UIResourceMessage + * Create: 2025-06-29 + */ + +#ifndef UI_RESOURCE_MESSAGE_H +#define UI_RESOURCE_MESSAGE_H + +namespace OHOS { +static const int IMAGE_MESSAGE_BG = 0x100001; +static const int IMAGE_MESSAGE_CALENDAR = 0x100002; +static const int IMAGE_MESSAGE_CANCEL = 0x100003; +static const int IMAGE_MESSAGE_CONFIRM = 0x100004; +static const int IMAGE_MESSAGE_DELETE = 0x100005; +static const int IMAGE_MESSAGE_DUANXIN = 0x100006; +static const int IMAGE_MESSAGE_DY = 0x100007; +static const int IMAGE_MESSAGE_QQ = 0x100008; +static const int IMAGE_MESSAGE_RING = 0x100009; +static const int IMAGE_MESSAGE_SINGLE_DELETE = 0x10000a; +static const int IMAGE_MESSAGE_TOUTIAO = 0x10000b; +static const int IMAGE_MESSAGE_WB = 0x10000c; +static const int IMAGE_MESSAGE_WX = 0x10000d; +static const int IMAGE_MESSAGE_XHS = 0x10000e; +} // OHOS +#endif // UI_RESOURCE_MESSAGE_H diff --git a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_phonemenu.h b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_phonemenu.h new file mode 100644 index 000000000..dcbe2ad2c --- /dev/null +++ b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_phonemenu.h @@ -0,0 +1,30 @@ +/* + * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2025-2025. All rights reserved. + * Description: UiResourcePhoneMenu + * Create: 2025-2-13 + */ + +#ifndef UI_RESOURCE_PHONEMENU_H +#define UI_RESOURCE_PHONEMENU_H + +namespace OHOS { +static const int IMAGE_PHONEMENU_ANSWER = 0x100001; +static const int IMAGE_PHONEMENU_CALL = 0x100002; +static const int IMAGE_PHONEMENU_CALLIN = 0x100003; +static const int IMAGE_PHONEMENU_CALLIN_ICON = 0x100004; +static const int IMAGE_PHONEMENU_CALLOUT = 0x100005; +static const int IMAGE_PHONEMENU_CALLOUT_ICON = 0x100006; +static const int IMAGE_PHONEMENU_CONTACTS = 0x100007; +static const int IMAGE_PHONEMENU_CONTACTS_BOOKS = 0x100008; +static const int IMAGE_PHONEMENU_DEL = 0x100009; +static const int IMAGE_PHONEMENU_DIAL = 0x10000a; +static const int IMAGE_PHONEMENU_DISCONNECT = 0x10000b; +static const int IMAGE_PHONEMENU_HANGUP = 0x10000c; +static const int IMAGE_PHONEMENU_MIC = 0x10000d; +static const int IMAGE_PHONEMENU_MIC_MUTE = 0x10000e; +static const int IMAGE_PHONEMENU_PHONE = 0x10000f; +static const int IMAGE_PHONEMENU_POUND_KEY = 0x100010; +static const int IMAGE_PHONEMENU_RECENT_CALL = 0x100011; +static const int IMAGE_PHONEMENU_STAR_KEY = 0x100012; +} // OHOS +#endif // UI_RESOURCE_PHONEMENU_H diff --git a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_settings.h b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_settings.h new file mode 100644 index 000000000..39ed3a4b0 --- /dev/null +++ b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_settings.h @@ -0,0 +1,169 @@ +/* + * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2025-2025. All rights reserved. + * Description: UIResourceSettings + * Create: 2025-06-05 + */ + +#ifndef UI_RESOURCE_SETTINGS_H +#define UI_RESOURCE_SETTINGS_H + +namespace OHOS { +static const int IMAGE_3D_FOLD_01 = 0x100001; +static const int IMAGE_3D_FOLD_02 = 0x100002; +static const int IMAGE_3D_FOLD_03 = 0x100003; +static const int IMAGE_3D_FOLD_04 = 0x100004; +static const int IMAGE_3D_FOLD_05 = 0x100005; +static const int IMAGE_3D_FOLD_06 = 0x100006; +static const int IMAGE_3D_FOLD_07 = 0x100007; +static const int IMAGE_3D_FOLD_08 = 0x100008; +static const int IMAGE_3D_FOLD_09 = 0x100009; +static const int IMAGE_3D_FOLD_10 = 0x10000a; +static const int IMAGE_ARROW = 0x10000b; +static const int IMAGE_BG = 0x10000c; +static const int IMAGE_BLUETOOTH = 0x10000d; +static const int IMAGE_CANCEL = 0x10000e; +static const int IMAGE_CARD_ADD_ADD = 0x10000f; +static const int IMAGE_CARD_ADD_ADDED = 0x100010; +static const int IMAGE_CARD_FLIP_01 = 0x100011; +static const int IMAGE_CARD_FLIP_02 = 0x100012; +static const int IMAGE_CARD_FLIP_03 = 0x100013; +static const int IMAGE_CARD_FLIP_04 = 0x100014; +static const int IMAGE_CARD_FLIP_05 = 0x100015; +static const int IMAGE_CARD_FLIP_06 = 0x100016; +static const int IMAGE_CARD_FLIP_07 = 0x100017; +static const int IMAGE_CARD_FLIP_08 = 0x100018; +static const int IMAGE_CARD_FLIP_09 = 0x100019; +static const int IMAGE_CARD_FLIP_10 = 0x10001a; +static const int IMAGE_CARD_LIST_CARDANIMATOR = 0x10001b; +static const int IMAGE_CARD_LIST_CARDMANAGER = 0x10001c; +static const int IMAGE_CARD_MGR_ADD = 0x10001d; +static const int IMAGE_CARD_MGR_DEL = 0x10001e; +static const int IMAGE_CONNECT = 0x10001f; +static const int IMAGE_DESKTOP_BG = 0x100020; +static const int IMAGE_DESKTOP_BRIGHTNESS_BG = 0x100021; +static const int IMAGE_DESKTOP_BRIGHTNESS_FG = 0x100022; +static const int IMAGE_DESKTOP_DIALSTYLE_AOD = 0x100023; +static const int IMAGE_DESKTOP_DIALSTYLE_COVERFLOW = 0x100024; +static const int IMAGE_DESKTOP_DIALSTYLE_ROLLER = 0x100025; +static const int IMAGE_DESKTOP_HOME_SELECTED_APPLIST = 0x100026; +static const int IMAGE_DESKTOP_HOME_SELECTED_FOOTBALL = 0x100027; +static const int IMAGE_DESKTOP_HOME_SELECTED_HEXAGONS = 0x100028; +static const int IMAGE_DESKTOP_HOME_SELECTED_PLANET = 0x100029; +static const int IMAGE_DESKTOP_HOME_SELECTED_SPHERE = 0x10002a; +static const int IMAGE_DESKTOP_HOME_SELECTED_WATERFALL = 0x10002b; +static const int IMAGE_DESKTOP_HOME_UNSELECT_APPLIST = 0x10002c; +static const int IMAGE_DESKTOP_HOME_UNSELECT_FOOTBALL = 0x10002d; +static const int IMAGE_DESKTOP_HOME_UNSELECT_HEXAGONS = 0x10002e; +static const int IMAGE_DESKTOP_HOME_UNSELECT_PLANET = 0x10002f; +static const int IMAGE_DESKTOP_HOME_UNSELECT_SPHERE = 0x100030; +static const int IMAGE_DESKTOP_HOME_UNSELECT_WATERFALL = 0x100031; +static const int IMAGE_DESKTOP_LIST_DIAL = 0x100032; +static const int IMAGE_DESKTOP_LIST_DIAL_STYLE = 0x100033; +static const int IMAGE_DESKTOP_LIST_HOME = 0x100034; +static const int IMAGE_DISPLAY_BRIGHTNESS_ADD = 0x100035; +static const int IMAGE_DISPLAY_BRIGHTNESS_SUB = 0x100036; +static const int IMAGE_DISPLAY_LIST_ADJUST_BRIGHTNESS = 0x100037; +static const int IMAGE_DISPLAY_LIST_AUTO_ADJUST = 0x100038; +static const int IMAGE_DISPLAY_LIST_SCREEN_OFF_TIME = 0x100039; +static const int IMAGE_DISPLAY_LIST_SCREEN_ON_TIME = 0x10003a; +static const int IMAGE_DISPLAY_OK = 0x10003b; +static const int IMAGE_MAIN_LIST_ABOUT = 0x10003c; +static const int IMAGE_MAIN_LIST_ARROW = 0x10003d; +static const int IMAGE_MAIN_LIST_BLUETOOTH = 0x10003e; +static const int IMAGE_MAIN_LIST_CARD = 0x10003f; +static const int IMAGE_MAIN_LIST_DESKTOP = 0x100040; +static const int IMAGE_MAIN_LIST_DISPLAY = 0x100041; +static const int IMAGE_MAIN_LIST_POWER = 0x100042; +static const int IMAGE_MAIN_LIST_SYSTEM = 0x100043; +static const int IMAGE_OK = 0x100044; +static const int IMAGE_OK_BLUE = 0x100045; +static const int IMAGE_OK_DOWN = 0x100046; +static const int IMAGE_PAGE_BACKGROUND = 0x100047; +static const int IMAGE_PHONE = 0x100048; +static const int IMAGE_PUSH_PRESS_01 = 0x100049; +static const int IMAGE_PUSH_PRESS_02 = 0x10004a; +static const int IMAGE_PUSH_PRESS_03 = 0x10004b; +static const int IMAGE_PUSH_PRESS_04 = 0x10004c; +static const int IMAGE_PUSH_PRESS_05 = 0x10004d; +static const int IMAGE_PUSH_PRESS_06 = 0x10004e; +static const int IMAGE_PUSH_PRESS_07 = 0x10004f; +static const int IMAGE_PUSH_PRESS_08 = 0x100050; +static const int IMAGE_PUSH_PRESS_09 = 0x100051; +static const int IMAGE_PUSH_PRESS_10 = 0x100052; +static const int IMAGE_QCODE = 0x100053; +static const int IMAGE_SURPRISE = 0x100054; +static const int IMAGE_SYSTEM_LIST_OTA = 0x100055; +static const int IMAGE_SYSTEM_LIST_POWEROFF = 0x100056; +static const int IMAGE_SYSTEM_LIST_RESTART = 0x100057; +static const int IMAGE_SYSTEM_LIST_RESUME = 0x100058; +static const int IMAGE_SYSTEM_OPERATION_CLOSE = 0x100059; +static const int IMAGE_SYSTEM_OTA_UNBLUETOOTH = 0x10005a; +static const int IMAGE_SYSTEM_OTA_UNUPDATE = 0x10005b; +static const int IMAGE_SYSTEM_OTA_UPDATE = 0x10005c; +static const int IMAGE_TRAINSTION_END = 0x10005d; +static const int IMAGE_TRAINSTION_START = 0x10005e; +static const int IMAGE_TURN_PAGE_01 = 0x10005f; +static const int IMAGE_TURN_PAGE_02 = 0x100060; +static const int IMAGE_TURN_PAGE_03 = 0x100061; +static const int IMAGE_TURN_PAGE_04 = 0x100062; +static const int IMAGE_TURN_PAGE_05 = 0x100063; +static const int IMAGE_TURN_PAGE_06 = 0x100064; +static const int IMAGE_TURN_PAGE_07 = 0x100065; +static const int IMAGE_TURN_PAGE_08 = 0x100066; +static const int IMAGE_TURN_PAGE_09 = 0x100067; +static const int IMAGE_TURN_PAGE_10 = 0x100068; +static const int IMAGE_UNPAIR = 0x100069; +static const int IMAGE_WINDMILL_01 = 0x10006a; +static const int IMAGE_WINDMILL_02 = 0x10006b; +static const int IMAGE_WINDMILL_03 = 0x10006c; +static const int IMAGE_WINDMILL_04 = 0x10006d; +static const int IMAGE_WINDMILL_05 = 0x10006e; +static const int IMAGE_WINDMILL_06 = 0x10006f; +static const int IMAGE_WINDMILL_07 = 0x100070; +static const int IMAGE_WINDMILL_08 = 0x100071; +static const int IMAGE_WINDMILL_09 = 0x100072; +static const int IMAGE_WINDMILL_10 = 0x100073; +static const int IMAGE_Y3_1 = 0x100074; +static const int IMAGE_Y3_10 = 0x100075; +static const int IMAGE_Y3_11 = 0x100076; +static const int IMAGE_Y3_12 = 0x100077; +static const int IMAGE_Y3_13 = 0x100078; +static const int IMAGE_Y3_14 = 0x100079; +static const int IMAGE_Y3_15 = 0x10007a; +static const int IMAGE_Y3_16 = 0x10007b; +static const int IMAGE_Y3_17 = 0x10007c; +static const int IMAGE_Y3_18 = 0x10007d; +static const int IMAGE_Y3_19 = 0x10007e; +static const int IMAGE_Y3_2 = 0x10007f; +static const int IMAGE_Y3_20 = 0x100080; +static const int IMAGE_Y3_21 = 0x100081; +static const int IMAGE_Y3_22 = 0x100082; +static const int IMAGE_Y3_23 = 0x100083; +static const int IMAGE_Y3_24 = 0x100084; +static const int IMAGE_Y3_25 = 0x100085; +static const int IMAGE_Y3_26 = 0x100086; +static const int IMAGE_Y3_27 = 0x100087; +static const int IMAGE_Y3_28 = 0x100088; +static const int IMAGE_Y3_29 = 0x100089; +static const int IMAGE_Y3_3 = 0x10008a; +static const int IMAGE_Y3_30 = 0x10008b; +static const int IMAGE_Y3_31 = 0x10008c; +static const int IMAGE_Y3_4 = 0x10008d; +static const int IMAGE_Y3_5 = 0x10008e; +static const int IMAGE_Y3_6 = 0x10008f; +static const int IMAGE_Y3_7 = 0x100090; +static const int IMAGE_Y3_8 = 0x100091; +static const int IMAGE_Y3_9 = 0x100092; +static const int IMAGE_ZOOM_01 = 0x100093; +static const int IMAGE_ZOOM_02 = 0x100094; +static const int IMAGE_ZOOM_03 = 0x100095; +static const int IMAGE_ZOOM_04 = 0x100096; +static const int IMAGE_ZOOM_05 = 0x100097; +static const int IMAGE_ZOOM_06 = 0x100098; +static const int IMAGE_ZOOM_07 = 0x100099; +static const int IMAGE_ZOOM_08 = 0x10009a; +static const int IMAGE_ZOOM_09 = 0x10009b; +static const int IMAGE_ZOOM_10 = 0x10009c; +static const int IMAGE_MAIN_LIST_LANGUAGE = 0x100043; +} // OHOS +#endif // UI_RESOURCE_SETTING_H diff --git a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_sleep.h b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_sleep.h index c5d369d71..4057088e1 100644 --- a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_sleep.h +++ b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_sleep.h @@ -1,28 +1,27 @@ /* * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2025-2025. All rights reserved. - * Description: UISleepResource + * Description: UIResourceSleep * Create: 2025-06-05 */ + #ifndef UI_RESOURCE_SLEEP_H #define UI_RESOURCE_SLEEP_H -#include + namespace OHOS { - static const int IMAGE_CONVERTER_TOOL_BACKGROUND = 0x100001; - static const int IMAGE_CONVERTER_TOOL_BLACK_BG = 0x100002; - static const int IMAGE_CONVERTER_TOOL_BLUE_CIR = 0x100003; - static const int IMAGE_CONVERTER_TOOL_GREEN_CIR = 0x100004; - static const int IMAGE_CONVERTER_TOOL_NORECORD_SLEEP = 0x100005; - static const int IMAGE_CONVERTER_TOOL_ORANGE_CIR = 0x100006; - static const int IMAGE_CONVERTER_TOOL_RECORD_BG = 0x100007; - static const int IMAGE_CONVERTER_TOOL_RECORD_SLEEP = 0x100008; - static const int IMAGE_CONVERTER_TOOL_RED_CIR = 0x100009; - static const int IMAGE_CONVERTER_TOOL_SELECTEDTIME = 0x10000a; - static const int IMAGE_CONVERTER_TOOL_SELECTTIME = 0x10000b; - static const int IMAGE_CONVERTER_TOOL_SETTIMEBTN = 0x10000c; - static const int IMAGE_CONVERTER_TOOL_SETTING = 0x10000d; - static const int IMAGE_CONVERTER_TOOL_START_GRAY = 0x10000e; - static const int IMAGE_CONVERTER_TOOL_STAR_GRAY = 0x10000f; - static const int IMAGE_CONVERTER_TOOL_STAR_YELLOW = 0x100010; - static const int IMAGE_CONVERTER_TOOL_TIPS = 0x100011; -} // OHOS -#endif // UI_RESOURCE_SLEEP_H +static const int IMAGE_SLEEP_BACKGROUND = 0x100001; +static const int IMAGE_SLEEP_BLUE_CIR = 0x100002; +static const int IMAGE_SLEEP_GREEN_CIR = 0x100003; +static const int IMAGE_SLEEP_NORECORD_SLEEP = 0x100004; +static const int IMAGE_SLEEP_ORANGE_CIR = 0x100005; +static const int IMAGE_SLEEP_RECORD_BG = 0x100006; +static const int IMAGE_SLEEP_RECORD_SLEEP = 0x100007; +static const int IMAGE_SLEEP_RED_CIR = 0x100008; +static const int IMAGE_SLEEP_SETTIMEBTN = 0x100009; +static const int IMAGE_SLEEP_SETTING = 0x10000a; +static const int IMAGE_SLEEP_SLEEPING_MOON = 0x10000b; +static const int IMAGE_SLEEP_SLEEPING_TIME = 0x10000c; +static const int IMAGE_SLEEP_START_GRAY = 0x10000d; +static const int IMAGE_SLEEP_STAR_GRAY = 0x10000e; +static const int IMAGE_SLEEP_STAR_YELLOW = 0x10000f; +} // OHOS +#endif // UI_RESOURCE_SLEEP_H diff --git a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_sport.h b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_sport.h new file mode 100644 index 000000000..c81672bfb --- /dev/null +++ b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_sport.h @@ -0,0 +1,114 @@ +/* + * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2025-2025. All rights reserved. + * Description: UIResourceSport + * Create: 2025-06-05 + */ + +#ifndef UI_RESOURCE_SPORT_H +#define UI_RESOURCE_SPORT_H + +namespace OHOS { +static const int IMAGE_SPORT_10KM = 0x100001; +static const int IMAGE_SPORT_10MIN = 0x100002; +static const int IMAGE_SPORT_120MIN = 0x100003; +static const int IMAGE_SPORT_15KM = 0x100004; +static const int IMAGE_SPORT_180MIN = 0x100005; +static const int IMAGE_SPORT_1KM = 0x100006; +static const int IMAGE_SPORT_200MIN = 0x100007; +static const int IMAGE_SPORT_20KM = 0x100008; +static const int IMAGE_SPORT_20MIN = 0x100009; +static const int IMAGE_SPORT_25KM = 0x10000a; +static const int IMAGE_SPORT_30KM = 0x10000b; +static const int IMAGE_SPORT_30MIN = 0x10000c; +static const int IMAGE_SPORT_3KM = 0x10000d; +static const int IMAGE_SPORT_40KM = 0x10000e; +static const int IMAGE_SPORT_5KM = 0x10000f; +static const int IMAGE_SPORT_60MIN = 0x100010; +static const int IMAGE_SPORT_7KM = 0x100011; +static const int IMAGE_SPORT_BATTERY1 = 0x100012; +static const int IMAGE_SPORT_BATTERY2 = 0x100013; +static const int IMAGE_SPORT_BATTERY3 = 0x100014; +static const int IMAGE_SPORT_BATTERY4 = 0x100015; +static const int IMAGE_SPORT_BATTERY5 = 0x100016; +static const int IMAGE_SPORT_BG = 0x100017; +static const int IMAGE_SPORT_BG1 = 0x100018; +static const int IMAGE_SPORT_BG2 = 0x100019; +static const int IMAGE_SPORT_BG3 = 0x10001a; +static const int IMAGE_SPORT_BG4 = 0x10001b; +static const int IMAGE_SPORT_BG5 = 0x10001c; +static const int IMAGE_SPORT_BG6 = 0x10001d; +static const int IMAGE_SPORT_CALORIE = 0x10001e; +static const int IMAGE_SPORT_CANCEL = 0x10001f; +static const int IMAGE_SPORT_CLIMBING1 = 0x100020; +static const int IMAGE_SPORT_CLIMBING2 = 0x100021; +static const int IMAGE_SPORT_CONFIRM = 0x100022; +static const int IMAGE_SPORT_CROWN = 0x100023; +static const int IMAGE_SPORT_CYCLING1 = 0x100024; +static const int IMAGE_SPORT_CYCLING2 = 0x100025; +static const int IMAGE_SPORT_DISTANCE = 0x100026; +static const int IMAGE_SPORT_FACE = 0x100027; +static const int IMAGE_SPORT_FINISH = 0x100028; +static const int IMAGE_SPORT_GO1 = 0x100029; +static const int IMAGE_SPORT_GO2 = 0x10002a; +static const int IMAGE_SPORT_GO3 = 0x10002b; +static const int IMAGE_SPORT_GO4 = 0x10002c; +static const int IMAGE_SPORT_GO5 = 0x10002d; +static const int IMAGE_SPORT_GO6 = 0x10002e; +static const int IMAGE_SPORT_GPS = 0x10002f; +static const int IMAGE_SPORT_HALF = 0x100030; +static const int IMAGE_SPORT_HEART1 = 0x100031; +static const int IMAGE_SPORT_HEART2 = 0x100032; +static const int IMAGE_SPORT_HEART3 = 0x100033; +static const int IMAGE_SPORT_HEARTRATE = 0x100034; +static const int IMAGE_SPORT_INDOOR_RUNNING1 = 0x100035; +static const int IMAGE_SPORT_INDOOR_RUNNING2 = 0x100036; +static const int IMAGE_SPORT_INDOOR_SWIMMING1 = 0x100037; +static const int IMAGE_SPORT_INDOOR_SWIMMING2 = 0x100038; +static const int IMAGE_SPORT_INTERVAL = 0x100039; +static const int IMAGE_SPORT_ITEMBG = 0x10003a; +static const int IMAGE_SPORT_ITEMBG1 = 0x10003b; +static const int IMAGE_SPORT_ITEMBG2 = 0x10003c; +static const int IMAGE_SPORT_ITEMBG3 = 0x10003d; +static const int IMAGE_SPORT_ITEMBG4 = 0x10003e; +static const int IMAGE_SPORT_ITEMBG5 = 0x10003f; +static const int IMAGE_SPORT_ITEMBG6 = 0x100040; +static const int IMAGE_SPORT_LAP = 0x100041; +static const int IMAGE_SPORT_LAP1 = 0x100042; +static const int IMAGE_SPORT_LAP10 = 0x100043; +static const int IMAGE_SPORT_LAP12 = 0x100044; +static const int IMAGE_SPORT_LAP16 = 0x100045; +static const int IMAGE_SPORT_LAP2 = 0x100046; +static const int IMAGE_SPORT_LAP20 = 0x100047; +static const int IMAGE_SPORT_LAP30 = 0x100048; +static const int IMAGE_SPORT_LAP4 = 0x100049; +static const int IMAGE_SPORT_LAP6 = 0x10004a; +static const int IMAGE_SPORT_LAP8 = 0x10004b; +static const int IMAGE_SPORT_MISTOUCH = 0x10004c; +static const int IMAGE_SPORT_NEXT = 0x10004d; +static const int IMAGE_SPORT_NONE = 0x10004e; +static const int IMAGE_SPORT_OK1 = 0x10004f; +static const int IMAGE_SPORT_OK2 = 0x100050; +static const int IMAGE_SPORT_OK3 = 0x100051; +static const int IMAGE_SPORT_OUTDOOR_RUNNING1 = 0x100052; +static const int IMAGE_SPORT_OUTDOOR_RUNNING2 = 0x100053; +static const int IMAGE_SPORT_OUTDOOR_SWIMMING1 = 0x100054; +static const int IMAGE_SPORT_OUTDOOR_SWIMMING2 = 0x100055; +static const int IMAGE_SPORT_RADIO0 = 0x100056; +static const int IMAGE_SPORT_RADIO1 = 0x100057; +static const int IMAGE_SPORT_REMIND = 0x100058; +static const int IMAGE_SPORT_SCALE = 0x100059; +static const int IMAGE_SPORT_SCREEN = 0x10005a; +static const int IMAGE_SPORT_SETTING = 0x10005b; +static const int IMAGE_SPORT_SIGNAL0 = 0x10005c; +static const int IMAGE_SPORT_SIGNAL1 = 0x10005d; +static const int IMAGE_SPORT_SIGNAL2 = 0x10005e; +static const int IMAGE_SPORT_SIGNAL3 = 0x10005f; +static const int IMAGE_SPORT_START = 0x100060; +static const int IMAGE_SPORT_STOP = 0x100061; +static const int IMAGE_SPORT_TARGET = 0x100062; +static const int IMAGE_SPORT_TIME = 0x100063; +static const int IMAGE_SPORT_TOGGLE0 = 0x100064; +static const int IMAGE_SPORT_TOGGLE1 = 0x100065; +static const int IMAGE_SPORT_TRIANGLE = 0x100066; +} // OHOS +#endif // UI_RESOURCE_SPORT_H diff --git a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_stopwatch.h b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_stopwatch.h new file mode 100644 index 000000000..de08fefc6 --- /dev/null +++ b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_stopwatch.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2025-2025. All rights reserved. + * Description: UIResourceStopwatch + * Create: 2025-06-05 + */ + +#ifndef UI_RESOURCE_STOPWATCH_H +#define UI_RESOURCE_STOPWATCH_H + +namespace OHOS { +static const int IMAGE_STOPWATCH_BG = 0x100001; +static const int IMAGE_STOPWATCH_HAND = 0x100002; +static const int IMAGE_STOPWATCH_PAUSE = 0x100003; +static const int IMAGE_STOPWATCH_RECORD = 0x100004; +static const int IMAGE_STOPWATCH_RECORD_DISABLE = 0x100005; +static const int IMAGE_STOPWATCH_RESET = 0x100006; +static const int IMAGE_STOPWATCH_RESET_DISABLE = 0x100007; +static const int IMAGE_STOPWATCH_SCALE = 0x100008; +static const int IMAGE_STOPWATCH_START = 0x100009; +} // OHOS +#endif // UI_RESOURCE_STOPWATCH_H diff --git a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_timer.h b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_timer.h index b9a462900..1d02c8441 100644 --- a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_timer.h +++ b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_timer.h @@ -1,27 +1,25 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. - * Description: UITimerResource + * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2025-2025. All rights reserved. + * Description: UIResourceTimer * Create: 2025-06-05 */ + #ifndef UI_RESOURCE_TIMER_H #define UI_RESOURCE_TIMER_H -#include + namespace OHOS { - static const int IMAGE_CONVERTER_TOOL_BG_CIR = 0x100001; - static const int IMAGE_CONVERTER_TOOL_TIMER_1 = 0x100002; - static const int IMAGE_CONVERTER_TOOL_TIMER_15 = 0x100003; - static const int IMAGE_CONVERTER_TOOL_TIMER_3 = 0x100004; - static const int IMAGE_CONVERTER_TOOL_TIMER_30 = 0x100005; - static const int IMAGE_CONVERTER_TOOL_TIMER_BEGIN_GRAY = 0x100006; - static const int IMAGE_CONVERTER_TOOL_TIMER_BEGIN_ORANGE = 0x100007; - static const int IMAGE_CONVERTER_TOOL_TIMER_BG = 0x100008; - static const int IMAGE_CONVERTER_TOOL_TIMER_EXIT = 0x100009; - static const int IMAGE_CONVERTER_TOOL_TIMER_PAUSE = 0x10000a; - static const int IMAGE_CONVERTER_TOOL_TIMER_PAUSE_ORANGE = 0x10000b; - static const int IMAGE_CONVERTER_TOOL_TIMER_PBG = 0x10000c; - static const int IMAGE_CONVERTER_TOOL_TIMER_PLAY = 0x10000d; - static const int IMAGE_CONVERTER_TOOL_TIMER_POINTER = 0x10000e; - static const int IMAGE_CONVERTER_TOOL_TIMER_RESTART = 0x10000f; - static const int IMAGE_CONVERTER_TOOL_TIMER_USER = 0x100010; -} // OHOS -#endif // UI_RESOURCE_TIMER_H +static const int IMAGE_TIMER_1 = 0x100001; +static const int IMAGE_TIMER_15 = 0x100002; +static const int IMAGE_TIMER_3 = 0x100003; +static const int IMAGE_TIMER_30 = 0x100004; +static const int IMAGE_TIMER_BEGIN_GRAY = 0x100005; +static const int IMAGE_TIMER_BEGIN_ORANGE = 0x100006; +static const int IMAGE_TIMER_BG = 0x100007; +static const int IMAGE_TIMER_EXIT = 0x100008; +static const int IMAGE_TIMER_PAUSE = 0x100009; +static const int IMAGE_TIMER_PAUSE_ORANGE = 0x10000a; +static const int IMAGE_TIMER_PLAY = 0x10000b; +static const int IMAGE_TIMER_RESTART = 0x10000c; +static const int IMAGE_TIMER_USER = 0x10000d; +} // OHOS +#endif // UI_RESOURCE_TIMER_H diff --git a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_weather.h b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_weather.h index 874ba3f93..13eeebc34 100644 --- a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_weather.h +++ b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/include/ui_resource_weather.h @@ -1,89 +1,106 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved. - * Description: UIWeatherResource + * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2025-2025. All rights reserved. + * Description: UIResourceWeather * Create: 2025-06-05 */ -#ifndef UI_RESOURCE_WEATHER_IMAGE_H -#define UI_RESOURCE_WEATHER_IMAGE_H -#include + +#ifndef UI_RESOURCE_WEATHER_H +#define UI_RESOURCE_WEATHER_H + namespace OHOS { -static const int IMAGE_CONVERTER_TOOL_WEATHER00 = 0x100001; -static const int IMAGE_CONVERTER_TOOL_WEATHER01 = 0x100002; -static const int IMAGE_CONVERTER_TOOL_WEATHER02 = 0x100003; -static const int IMAGE_CONVERTER_TOOL_WEATHER03 = 0x100004; -static const int IMAGE_CONVERTER_TOOL_WEATHER04 = 0x100005; -static const int IMAGE_CONVERTER_TOOL_WEATHER05 = 0x100006; -static const int IMAGE_CONVERTER_TOOL_WEATHER06 = 0x100007; -static const int IMAGE_CONVERTER_TOOL_WEATHER07 = 0x100008; -static const int IMAGE_CONVERTER_TOOL_WEATHER08 = 0x100009; -static const int IMAGE_CONVERTER_TOOL_WEATHER09 = 0x10000a; -static const int IMAGE_CONVERTER_TOOL_WEATHER10 = 0x10000b; -static const int IMAGE_CONVERTER_TOOL_WEATHER11 = 0x10000c; -static const int IMAGE_CONVERTER_TOOL_WEATHER12 = 0x10000d; -static const int IMAGE_CONVERTER_TOOL_WEATHER13 = 0x10000e; -static const int IMAGE_CONVERTER_TOOL_WEATHER14 = 0x10000f; -static const int IMAGE_CONVERTER_TOOL_WEATHER15 = 0x100010; -static const int IMAGE_CONVERTER_TOOL_WEATHER16 = 0x100011; -static const int IMAGE_CONVERTER_TOOL_WEATHER17 = 0x100012; -static const int IMAGE_CONVERTER_TOOL_WEATHER18 = 0x100013; -static const int IMAGE_CONVERTER_TOOL_WEATHER19 = 0x100014; -static const int IMAGE_CONVERTER_TOOL_WEATHER20 = 0x100015; -static const int IMAGE_CONVERTER_TOOL_WEATHER21 = 0x100016; -static const int IMAGE_CONVERTER_TOOL_WEATHER22 = 0x100017; -static const int IMAGE_CONVERTER_TOOL_WEATHER23 = 0x100018; -static const int IMAGE_CONVERTER_TOOL_WEATHER24 = 0x100019; -static const int IMAGE_CONVERTER_TOOL_WEATHER25 = 0x10001a; -static const int IMAGE_CONVERTER_TOOL_WEATHER26 = 0x10001b; -static const int IMAGE_CONVERTER_TOOL_WEATHER27 = 0x10001c; -static const int IMAGE_CONVERTER_TOOL_WEATHER28 = 0x10001d; -static const int IMAGE_CONVERTER_TOOL_WEATHER29 = 0x10001e; -static const int IMAGE_CONVERTER_TOOL_WEATHER30 = 0x10001f; -static const int IMAGE_CONVERTER_TOOL_WEATHER31 = 0x100020; -static const int IMAGE_CONVERTER_TOOL_WEATHER32 = 0x100021; -static const int IMAGE_CONVERTER_TOOL_WEATHER33 = 0x100022; -static const int IMAGE_CONVERTER_TOOL_WEATHER34 = 0x100023; -static const int IMAGE_CONVERTER_TOOL_WEATHER35 = 0x100024; -static const int IMAGE_CONVERTER_TOOL_WEATHER36 = 0x100025; -static const int IMAGE_CONVERTER_TOOL_WEATHER37 = 0x100026; -static const int IMAGE_CONVERTER_TOOL_WEATHER38 = 0x100027; -static const int IMAGE_CONVERTER_TOOL_WEATHER39 = 0x100028; -static const int IMAGE_CONVERTER_TOOL_WEATHER40 = 0x100029; -static const int IMAGE_CONVERTER_TOOL_WEATHER41 = 0x10002a; -static const int IMAGE_CONVERTER_TOOL_WEATHER42 = 0x10002b; -static const int IMAGE_CONVERTER_TOOL_WEATHER43 = 0x10002c; -static const int IMAGE_CONVERTER_TOOL_WEATHER44 = 0x10002d; -static const int IMAGE_CONVERTER_TOOL_WEATHER45 = 0x10002e; -static const int IMAGE_CONVERTER_TOOL_WEATHER46 = 0x10002f; -static const int IMAGE_CONVERTER_TOOL_WEATHER47 = 0x100030; -static const int IMAGE_CONVERTER_TOOL_WEATHER48 = 0x100031; -static const int IMAGE_CONVERTER_TOOL_WEATHER49 = 0x100032; -static const int IMAGE_CONVERTER_TOOL_WEATHER50 = 0x100033; -static const int IMAGE_CONVERTER_TOOL_WEATHER51 = 0x100034; -static const int IMAGE_CONVERTER_TOOL_WEATHER52 = 0x100035; -static const int IMAGE_CONVERTER_TOOL_WEATHER53 = 0x100036; -static const int IMAGE_CONVERTER_TOOL_WEATHER54 = 0x100037; -static const int IMAGE_CONVERTER_TOOL_WEATHER55 = 0x100038; -static const int IMAGE_CONVERTER_TOOL_WEATHER56 = 0x100039; -static const int IMAGE_CONVERTER_TOOL_WEATHER57 = 0x10003a; -static const int IMAGE_CONVERTER_TOOL_WEATHER58 = 0x10003b; -static const int IMAGE_CONVERTER_TOOL_WEATHER59 = 0x10003c; -static const int IMAGE_CONVERTER_TOOL_WEATHER60 = 0x10003d; -static const int IMAGE_CONVERTER_TOOL_WEATHER61 = 0x10003e; -static const int IMAGE_CONVERTER_TOOL_WEATHER62 = 0x10003f; -static const int IMAGE_CONVERTER_TOOL_WEATHER63 = 0x100040; -static const int IMAGE_CONVERTER_TOOL_WEATHER64 = 0x100041; -static const int IMAGE_CONVERTER_TOOL_WEATHER65 = 0x100042; -static const int IMAGE_CONVERTER_TOOL_WEATHER66 = 0x100043; -static const int IMAGE_CONVERTER_TOOL_WEATHER67 = 0x100044; -static const int IMAGE_CONVERTER_TOOL_WEATHER68 = 0x100045; -static const int IMAGE_CONVERTER_TOOL_WEATHER69 = 0x100046; -static const int IMAGE_CONVERTER_TOOL_WEATHER70 = 0x100047; -static const int IMAGE_CONVERTER_TOOL_WEATHER71 = 0x100048; -static const int IMAGE_CONVERTER_TOOL_WEATHER72 = 0x100049; -static const int IMAGE_CONVERTER_TOOL_WEATHER73 = 0x10004a; -static const int IMAGE_CONVERTER_TOOL_WEATHER74 = 0x10004b; -static const int IMAGE_CONVERTER_TOOL_WEATHER75 = 0x10004c; -static const int IMAGE_CONVERTER_TOOL_WEATHER76 = 0x10004d; -static const int IMAGE_CONVERTER_TOOL_WEATHER77 = 0x10004e; +static const int IMAGE_WEATHER_AIR = 0x100001; +static const int IMAGE_WEATHER_BG1 = 0x100002; +static const int IMAGE_WEATHER_BG2 = 0x100003; +static const int IMAGE_WEATHER_ITEM1 = 0x100004; +static const int IMAGE_WEATHER_ITEM2 = 0x100005; +static const int IMAGE_WEATHER_ITEM3 = 0x100006; +static const int IMAGE_WEATHER_ITEM4 = 0x100007; +static const int IMAGE_WEATHER_ITEM5 = 0x100008; +static const int IMAGE_WEATHER_ITEM6 = 0x100009; +static const int IMAGE_WEATHER_LOCATE = 0x10000a; +static const int IMAGE_WEATHER_MOON = 0x10000b; +static const int IMAGE_WEATHER_MOON1 = 0x10000c; +static const int IMAGE_WEATHER_MOON2 = 0x10000d; +static const int IMAGE_WEATHER_MOON3 = 0x10000e; +static const int IMAGE_WEATHER_MOON4 = 0x10000f; +static const int IMAGE_WEATHER_MOON5 = 0x100010; +static const int IMAGE_WEATHER_MOON6 = 0x100011; +static const int IMAGE_WEATHER_MOON7 = 0x100012; +static const int IMAGE_WEATHER_MOON8 = 0x100013; +static const int IMAGE_WEATHER_NEXT = 0x100014; +static const int IMAGE_WEATHER_NEXT_GRAY = 0x100015; +static const int IMAGE_WEATHER_PAGE1 = 0x100016; +static const int IMAGE_WEATHER_PAGE2 = 0x100017; +static const int IMAGE_WEATHER_PAGE3 = 0x100018; +static const int IMAGE_WEATHER_PREV = 0x100019; +static const int IMAGE_WEATHER_PREV_GRAY = 0x10001a; +static const int IMAGE_WEATHER_SUN = 0x10001b; +static const int IMAGE_WEATHER_SUNRISE = 0x10001c; +static const int IMAGE_WEATHER_SUNSET = 0x10001d; +static const int IMAGE_WEATHER_WEATHER00 = 0x10001e; +static const int IMAGE_WEATHER_WEATHER01 = 0x10001f; +static const int IMAGE_WEATHER_WEATHER02 = 0x100020; +static const int IMAGE_WEATHER_WEATHER03 = 0x100021; +static const int IMAGE_WEATHER_WEATHER04 = 0x100022; +static const int IMAGE_WEATHER_WEATHER05 = 0x100023; +static const int IMAGE_WEATHER_WEATHER06 = 0x100024; +static const int IMAGE_WEATHER_WEATHER07 = 0x100025; +static const int IMAGE_WEATHER_WEATHER08 = 0x100026; +static const int IMAGE_WEATHER_WEATHER09 = 0x100027; +static const int IMAGE_WEATHER_WEATHER10 = 0x100028; +static const int IMAGE_WEATHER_WEATHER11 = 0x100029; +static const int IMAGE_WEATHER_WEATHER12 = 0x10002a; +static const int IMAGE_WEATHER_WEATHER13 = 0x10002b; +static const int IMAGE_WEATHER_WEATHER14 = 0x10002c; +static const int IMAGE_WEATHER_WEATHER15 = 0x10002d; +static const int IMAGE_WEATHER_WEATHER16 = 0x10002e; +static const int IMAGE_WEATHER_WEATHER17 = 0x10002f; +static const int IMAGE_WEATHER_WEATHER18 = 0x100030; +static const int IMAGE_WEATHER_WEATHER19 = 0x100031; +static const int IMAGE_WEATHER_WEATHER20 = 0x100032; +static const int IMAGE_WEATHER_WEATHER21 = 0x100033; +static const int IMAGE_WEATHER_WEATHER22 = 0x100034; +static const int IMAGE_WEATHER_WEATHER23 = 0x100035; +static const int IMAGE_WEATHER_WEATHER24 = 0x100036; +static const int IMAGE_WEATHER_WEATHER25 = 0x100037; +static const int IMAGE_WEATHER_WEATHER26 = 0x100038; +static const int IMAGE_WEATHER_WEATHER27 = 0x100039; +static const int IMAGE_WEATHER_WEATHER28 = 0x10003a; +static const int IMAGE_WEATHER_WEATHER29 = 0x10003b; +static const int IMAGE_WEATHER_WEATHER30 = 0x10003c; +static const int IMAGE_WEATHER_WEATHER31 = 0x10003d; +static const int IMAGE_WEATHER_WEATHER32 = 0x10003e; +static const int IMAGE_WEATHER_WEATHER33 = 0x10003f; +static const int IMAGE_WEATHER_WEATHER34 = 0x100040; +static const int IMAGE_WEATHER_WEATHER35 = 0x100041; +static const int IMAGE_WEATHER_WEATHER36 = 0x100042; +static const int IMAGE_WEATHER_WEATHER37 = 0x100043; +static const int IMAGE_WEATHER_WEATHER38 = 0x100044; +static const int IMAGE_WEATHER_WEATHER39 = 0x100045; +static const int IMAGE_WEATHER_WEATHER40 = 0x100046; +static const int IMAGE_WEATHER_WEATHER41 = 0x100047; +static const int IMAGE_WEATHER_WEATHER42 = 0x100048; +static const int IMAGE_WEATHER_WEATHER43 = 0x100049; +static const int IMAGE_WEATHER_WEATHER44 = 0x10004a; +static const int IMAGE_WEATHER_WEATHER45 = 0x10004b; +static const int IMAGE_WEATHER_WEATHER46 = 0x10004c; +static const int IMAGE_WEATHER_WEATHER47 = 0x10004d; +static const int IMAGE_WEATHER_WEATHER48 = 0x10004e; +static const int IMAGE_WEATHER_WEATHER49 = 0x10004f; +static const int IMAGE_WEATHER_WEATHER50 = 0x100050; +static const int IMAGE_WEATHER_WEATHER51 = 0x100051; +static const int IMAGE_WEATHER_WEATHER52 = 0x100052; +static const int IMAGE_WEATHER_WEATHER53 = 0x100053; +static const int IMAGE_WEATHER_WEATHER54 = 0x100054; +static const int IMAGE_WEATHER_WEATHER55 = 0x100055; +static const int IMAGE_WEATHER_WEATHER56 = 0x100056; +static const int IMAGE_WEATHER_WEATHER57 = 0x100057; +static const int IMAGE_WEATHER_WEATHER58 = 0x100058; +static const int IMAGE_WEATHER_WEATHER59 = 0x100059; +static const int IMAGE_WEATHER_WEATHER60 = 0x10005a; +static const int IMAGE_WEATHER_WEATHER61 = 0x10005b; +static const int IMAGE_WEATHER_WEATHER62 = 0x10005c; +static const int IMAGE_WEATHER_WEATHER63 = 0x10005d; +static const int IMAGE_WEATHER_WET = 0x10005e; } // OHOS -#endif // UI_RESOURCE_IMAGE_H +#endif // UI_RESOURCE_WEATHER_H diff --git a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/src/UICardPageFactory.cpp b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/src/UICardPageFactory.cpp index 649aa2f3c..3bed49085 100644 --- a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/src/UICardPageFactory.cpp +++ b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/src/UICardPageFactory.cpp @@ -10,33 +10,28 @@ namespace OHOS { -void UICardPageFactory::RegisterWatchDial(const uint16_t mode, const uint16_t id, UICardPageProxyInterface* uiCardPage) +void UICardPageFactory::RegisterCardPage(const uint16_t id, UICardPageProxyInterface* uiCardPage) { - if (mode >= DIAL_DISPLAY_MODE_MAX || uiCardPage == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Can't register watch dial using invalid mode or proxy %d-%p", - mode, uiCardPage); + if (uiCardPage == nullptr) { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Can't register watch dial using invalid proxy %p", + uiCardPage); return; } - if (watchDials_[mode].find(id) != watchDials_[mode].end()) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Watch dial mode %d id:%d has already been registered", mode, id); + if (cardPage_.find(id) != cardPage_.end()) { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Watch dial id:%d has already been registered", id); return; } else { - watchDials_[mode].insert({id, uiCardPage}); + cardPage_.insert({id, uiCardPage}); } } -UICardPage* UICardPageFactory::CreateWatchDial(uint16_t mode, uint16_t id) +UICardPage* UICardPageFactory::CreateCardPage(uint16_t id) { - if (mode >= DIAL_DISPLAY_MODE_MAX ) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Can't create watch dial using invalid mode %d", mode); - return nullptr; - } - - auto it = watchDials_[mode].find(id); - if (it != watchDials_[mode].end()) { + auto it = cardPage_.find(id); + if (it != cardPage_.end()) { return it->second->CreateUICardPage(); } else { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Watch dial mode %d id:%d was not registered", mode, id); + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Watch dial id:%d was not registered", id); return nullptr; } } diff --git a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/src/UIWatchDialFactory.cpp b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/src/UIWatchDialFactory.cpp new file mode 100644 index 000000000..7f7aeae24 --- /dev/null +++ b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/src/UIWatchDialFactory.cpp @@ -0,0 +1,80 @@ +/* + * Copyright (c) CompanyNameMagicTag 2025. All rights reserved. + * Description: UICardPageFactory + * Author: + * Create: 2025-06 + */ + +#include "UIWatchDialFactory.h" +#include "wearable_log.h" + +namespace OHOS { + +void UIWatchDialFactory::RegisterWatchDial(const uint16_t ability, const uint16_t id, + UIWatchDialProxyInterface* uiWatchDial, const DialInfo* dialInfo) +{ + if (ability >= DIAL_DISPLAY_SUPPORT_MAX || uiWatchDial == nullptr) { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Can't register watch dial using invalid ability or proxy %d-%p", + ability, uiWatchDial); + return; + } + + if ((ability == DIAL_DISPLAY_SUPPORT_NORMAL || ability == DIAL_DISPLAY_SUPPORT_NORMAL_AOD) && dialInfo != nullptr) { + if (watchDials_[DIAL_DISPLAY_MODE_NORMAL].find(id) != watchDials_[DIAL_DISPLAY_MODE_NORMAL].end() || + normalDialInfo_.find(id) != normalDialInfo_.end()) { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "normal dial(info) id:%d has already been registered", id); + return; + } else { + watchDials_[DIAL_DISPLAY_MODE_NORMAL].insert({id, uiWatchDial}); + normalDialInfo_.insert({id, dialInfo}); + } + } + + if ((ability == DIAL_DISPLAY_SUPPORT_AOD || ability == DIAL_DISPLAY_SUPPORT_NORMAL_AOD)) { + if (watchDials_[DIAL_DISPLAY_MODE_AOD].find(id) != watchDials_[DIAL_DISPLAY_MODE_AOD].end()) { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "aod dial id:%d has already been registered", id); + return; + } else { + watchDials_[DIAL_DISPLAY_MODE_AOD].insert({id, uiWatchDial}); + } + } +} + +const DialInfo* UIWatchDialFactory::GetNormalDialInfo(uint16_t id) +{ + auto it = normalDialInfo_.find(id); + if (it != normalDialInfo_.end()) { + return it->second; + } else { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "normal dial info id:%d was not created", id); + return nullptr; + } +} + +uint8_t UIWatchDialFactory::GetNormalDialInfoNum() +{ + return normalDialInfo_.size(); +} + +UICardPage* UIWatchDialFactory::CreateNormalDial(uint16_t id) +{ + auto it = watchDials_[DIAL_DISPLAY_MODE_NORMAL].find(id); + if (it != watchDials_[DIAL_DISPLAY_MODE_NORMAL].end()) { + return it->second->CreateWatchDialCardPage(id); + } else { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "normal dial id:%d was not registered", id); + return nullptr; + } +} + +UIFragment* UIWatchDialFactory::CreateAodDial(uint16_t id) +{ + auto it = watchDials_[DIAL_DISPLAY_MODE_AOD].find(id); + if (it != watchDials_[DIAL_DISPLAY_MODE_AOD].end()) { + return it->second->CreateWatchDialFragment(id); + } else { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "aod dial id:%d was not registered", id); + return nullptr; + } +} +} // namespace OHOS diff --git a/code/sdk/application/wearable/n9/nativeapp/nativeui/main/src/dial/DialViewGroup.cpp b/code/sdk/application/wearable/n9/nativeapp/nativeui/main/src/dial/DialViewGroup.cpp index 26d5fd49a..02bad9e4f 100644 --- a/code/sdk/application/wearable/n9/nativeapp/nativeui/main/src/dial/DialViewGroup.cpp +++ b/code/sdk/application/wearable/n9/nativeapp/nativeui/main/src/dial/DialViewGroup.cpp @@ -509,13 +509,13 @@ void DialViewGroup::AddView(DialDataType type, DialView* view, bool isPeriodic) { return; } - if (memcpy_s(name, len, bundleName, len) != EOK) + if (strcpy_s(name, len, bundleName) != EOK) { UIFree(name); name = nullptr; return; } - name[len] = '\0'; + DialClick click = {rect, false, {.bundleName = name}}; dialClicks_.PushBack(click); } @@ -611,10 +611,13 @@ void DialViewGroup::CoverEnd(bool isCovered) void DialViewGroup::OnActive(void) { - MainPresenterSample* mainPresenter = MainPresenterSample::GetInstance(); - if ((mainPresenter == nullptr) || (mainPresenter->GetMainPresenterState() != MainPresenterState::RESUME)) { - return; + if (state_ == DisplayState::NORMAL) { + MainPresenterSample* mainPresenter = MainPresenterSample::GetInstance(); + if ((mainPresenter == nullptr) || (mainPresenter->GetMainPresenterState() != MainPresenterState::RESUME)) { + return; + } } + if (!isSeqImgLoaded_) { std::weak_ptr wk = isExists_; GraphicService::GetInstance()->ForceRefreshImmediately(); diff --git a/code/sdk/application/wearable/n9/nativeapp/nativeui/main/src/dial/WatchInterface.cpp b/code/sdk/application/wearable/n9/nativeapp/nativeui/main/src/dial/WatchInterface.cpp index 2fc3509cb..38eb1905b 100644 --- a/code/sdk/application/wearable/n9/nativeapp/nativeui/main/src/dial/WatchInterface.cpp +++ b/code/sdk/application/wearable/n9/nativeapp/nativeui/main/src/dial/WatchInterface.cpp @@ -6,6 +6,7 @@ */ #include +#include #include "dirent.h" #include "DialBinParser.h" #include "UiConfig.h"