From: 罗正yun <1732036298@qq.com> Date: Fri, 1 Dec 2023 08:24:21 +0000 (+0800) Subject: 设置视图更改,闹钟视图修改(闹钟删除按钮有问题,能删除,但是闹钟删除后不能正常回到闹钟主视图) X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=0ae5c07cddbc9a9de4935d3f74937b4a7018c3a1;p=mirrors%2FFD230.git 设置视图更改,闹钟视图修改(闹钟删除按钮有问题,能删除,但是闹钟删除后不能正常回到闹钟主视图) --- 0ae5c07cddbc9a9de4935d3f74937b4a7018c3a1 diff --cc code/sdk/application/wearable/nativeapp/CMakeLists.txt index 0b034a668,0a6f6e6e7..c286ec865 --- a/code/sdk/application/wearable/nativeapp/CMakeLists.txt +++ b/code/sdk/application/wearable/nativeapp/CMakeLists.txt @@@ -1,390 -1,389 +1,393 @@@ -set(COMPONENT_NAME "nativelauncher") -set(MODULE_NAME "app") -set(AUTO_DEF_FILE_ID TRUE) -set(UI_SAMPLE_ROOT ${ROOT_DIR}/middleware/services/gui/uikit/sample/uitest) - -set(PUBLIC_HEADER - ${CMAKE_CURRENT_SOURCE_DIR}/nativelauncher/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativelauncher/include/slices/main -) - -set(PRIVATE_HEADER - ${ROOT_DIR}/open_source/openharmony/foundation/ace/ace_engine_lite/interfaces/base - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/main/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/clock/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bloodoxygen/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/indoorwalk/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/rebootdevice/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/activity/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/heartrate/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/callerlog/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/makephone/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/rtcservice/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/connectnewphone/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarmclockmanage/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarmclocktimerconfig/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/offlinevoice/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/settings/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/key/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/player/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/applist/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phoneservice/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/screensetting/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/uiservice/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/uisample/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/ - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/InitComponent/include - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/uisample/uitest/framework/include - ${UI_SAMPLE_ROOT}/components - ${CMAKE_CURRENT_SOURCE_DIR}/../service/smart_voice/smart_voice_service/interfaces/innerkits/native_c/include - ${CMAKE_CURRENT_SOURCE_DIR}/../service/smart_voice/voice_engine_hal/interfaces/innerkits/native_c/include - ${CMAKE_CURRENT_SOURCE_DIR}/../ohos_deps - - ${ROOT_DIR}/middleware/services/gui/uikit/proprietary/src/utils/innerkits - ${ROOT_DIR}/middleware/services/gui/uikit/proprietary/include - ${ROOT_DIR}/middleware/services/gui/uikit/proprietary/src/ui/frameworks - ${ROOT_DIR}/middleware/services/gui/uikit/proprietary/include/service - ${ROOT_DIR}/middleware/services/gui/uikit/ui/interfaces/innerkits - - ${ROOT_DIR}/open_source/openharmony/foundation/graphic/ui/interfaces/kits/events - ${ROOT_DIR}/open_source/openharmony/foundation/graphic/ui/interfaces/kits - ${ROOT_DIR}/open_source/openharmony/foundation/graphic/utils/interfaces/kits - ${ROOT_DIR}/open_source/openharmony/foundation/graphic/utils/interfaces/kits/gfx_utils - ${ROOT_DIR}/open_source/openharmony/foundation/graphic/utils/interfaces/innerkits - ${ROOT_DIR}/open_source/openharmony/foundation/graphic/ui/interfaces/innerkits - ${ROOT_DIR}/open_source/openharmony/foundation/graphic/ui/frameworks - ${ROOT_DIR}/open_source/openharmony/foundation/graphic/surface/interfaces/kits - ${ROOT_DIR}/open_source/openharmony/foundation/graphic/ui/interfaces/kits/components - ${ROOT_DIR}/open_source/openharmony/foundation/graphic/service/include - ${ROOT_DIR}/open_source/openharmony/foundation/multimedia/audio_player/interfaces/kits - ${ROOT_DIR}/open_source/openharmony/foundation/multimedia/audiomanager/interfaces/kits/audiomanager - ${ROOT_DIR}/open_source/openharmony/foundation/multimedia/audiomanager/interfaces/kits/audiocommon - ${ROOT_DIR}/open_source/openharmony/foundation/multimedia/player/interfaces/kits/ - ${ROOT_DIR}/open_source/openharmony/foundation/multimedia/utils/include - - ${ROOT_DIR}/include/middleware/services/bts/common - ${ROOT_DIR}/include/middleware/services/bts/ble - ${ROOT_DIR}/include/middleware/services/bts/br - - ${ROOT_DIR}/open_source/openharmony/drivers/peripheral/display/interfaces/include - ${ROOT_DIR}/open_source/openharmony/foundation/distributedschedule/samgr_lite/interfaces/kits/samgr -) - -set(SOURCES - ${CMAKE_CURRENT_SOURCE_DIR}/nativelauncher/src/NativeLauncher.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/uiservice/src/ui_service.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativelauncher/src/slices/main/MainPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativelauncher/src/slices/main/MainView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/main/src/MainViewSample.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/main/src/MainPresenterSample.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/main/src/MainSwipeViewGroup.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/main/src/ModelListenerSample.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/main/src/PresenterTask.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/main/src/HealthModel.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/main/src/PullUpDownView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/applist/src/AppItemView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/applist/src/ApplistAdapter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/applist/src/ApplistModel.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/applist/src/ApplistPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/applist/src/ApplistView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/clock/src/MainClockView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/clock/src/DialUserView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/clock/src/DialMalioView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bloodoxygen/src/BloodOxygenView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bloodoxygen/src/BloodBandoffView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bloodoxygen/src/BloodOxygenPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bloodoxygen/src/BloodOxygenModel.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/BluetoothDeviceCaseListAdapter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/BluetoothDeviceListView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/BluetoothPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/BluetoothHeadsetEvent.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/BluetoothModel.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/MainBluetoothView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/BluetoothEarPhoneView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/TipsConnFailMessageView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/TipsFailMessageView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/TipsSuccMessageView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/BluetoothEarListView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/BluetoothOptionsView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/BluetoothReconnectView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/BluetoothItemView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/BluetoothCaseListAdapter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/indoorwalk/src/IndoorWalkView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/indoorwalk/src/IndoorWalkPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/indoorwalk/src/IndoorWalkModel.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/indoorwalk/src/IndoorWalkPreparedView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/indoorwalk/src/IndoorWalkMotionView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/indoorwalk/src/MotionPageFirst.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/indoorwalk/src/MotionPageSecond.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/indoorwalk/src/MotionPageThird.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/indoorwalk/src/MotionPageFourth.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/indoorwalk/src/MotionPageFifth.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/indoorwalk/src/CustomizationView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/indoorwalk/src/IndoorWalkEndView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/connectnewphone/src/ConnectPhoneView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/connectnewphone/src/ConnectSelectView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/connectnewphone/src/ConnectOpenView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/connectnewphone/src/ConnectPhonePresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/rebootdevice/src/RebootView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/rebootdevice/src/RebootPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/rebootdevice/src/RebootModel.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/rebootdevice/src/RebootDeviceView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/rebootdevice/src/ShutdownDeviceView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/callerlog/src/CallerLogView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/callerlog/src/CallerLogPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/callerlog/src/CallerLogModel.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/callerlog/src/CallerItemView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/makephone/src/CallerDisplayView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/makephone/src/WaitingHintsView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/makephone/src/CallingView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/makephone/src/MainCallingPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/makephone/src/DialingScreenView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/makephone/src/MainCallingView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/main/src/VolumeSettingView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/main/src/VolumeSettingPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/player/src/BluetoothView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/player/src/PlayersView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/player/src/PlayersPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/player/src/PlayersModel.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/player/src/PlayersCaseListAdapter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/activity/src/MainActivityView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/activity/src/ActivityWeekView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/activity/src/ActivityPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/activity/src/ActivityModel.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/heartrate/src/HeartRateView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/heartrate/src/HeartModel.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/src/AlarmClockModel.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/src/MainAlarmView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/src/AlarmConfigView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/src/AlarmPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/src/AlarmSetTimeView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/src/AlarmSetWeekView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/src/AlarmJudgeView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/src/AlarmPopUpView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/src/AlarmRingView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/src/AlarmCloseRingView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/src/AlarmNewTimeView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/src/AlarmPopUpPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/src/AlarmMaxClock.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempJoinStudy.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempMainView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempModel.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempMeasure.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempExitInter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempPromptWear.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempClickMea.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempRemindWear.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempMeaProcess.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempInitInter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempWarn.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempLittleTip.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempExitPrompt.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempStudyAbout.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempContinueWarn.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempReport.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/settings/src/SettingAdapter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/settings/src/SettingPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/settings/src/SettingView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/settings/src/SettingModel.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/settings/src/SettingItemView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/key/src/KeyInputListener.cpp - #ʡ�� - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/saveele/src/SaveEleModel.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/saveele/src/SaveElePresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/saveele/src/SaveEleView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/saveele/src/SaveBatPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/saveele/src/SaveBatView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/sleep/src/SleepPresenter.cpp - #˯�� - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/sleep/src/SleepView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/sleep/src/SleepTimePresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/sleep/src/SleepTimeView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/sleep/src/SleepActPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/sleep/src/SleepActView.cpp - #�绰 - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phone/src/PhoneView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phone/src/PhonePresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phone/src/PhoneCallView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phone/src/PhoneCallPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phone/src/PhoneDirView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phone/src/PhoneDirPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phone/src/PhoneCallingView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phone/src/PhoneCallingPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phone/src/PhoneCallupView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phone/src/PhoneCallupPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phone/src/PhoneRingView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phone/src/PhoneRingPresenter.cpp - #�������� - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/getpic/src/GetPicPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/getpic/src/GetPicView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/getpic/src/TakePicPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/getpic/src/TakePicView.cpp - #Ѫ�� - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/blood/src/BloodView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/blood/src/BloodPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/blood/src/BloodShowView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/blood/src/BloodShowPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/blood/src/BloodCheckView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/blood/src/BloodCheckPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/blood/src/BloodErrorView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/blood/src/BloodErrorPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/blood/src/BloodNoteView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/blood/src/BloodNotePresenter.cpp - #���� - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/dial/src/DialView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/dial/src/DialPresenter.cpp - - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/heartrate/src/HeartRemindView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/heartrate/src/HeartRemindPresenter.cpp - - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/traing/src/TraingView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/traing/src/TraingPresenter.cpp - #ָ���� - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/CompassControlView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/CompassCalibrationView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/CompassModel.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/CompassPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/CompassView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/MainCompassView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/MainCompassPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/PlaceMakerCompassPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/PlaceMakerCompassView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/MakerPointCompassPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/MakerPointCompassView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/StartPathRecordCompassPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/StartPathRecordCompassView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/EndPathRecordCompassPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/EndPathRecordCompassView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/PathBackTrackingCompassPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/PathBackTrackingCompassView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/ResetPlaceMakerCompassPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/ResetPlaceMakerCompassView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/PathRetracingCompassPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/PathRetracingCompassView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/EndBackTrackingEarlyCompassPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/EndBackTrackingEarlyCompassView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/EndBackTrackingCompassPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/EndBackTrackingCompassView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/GPSLossCompassPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/GPSLossCompassView.cpp - #辅助功能 - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/secondaryfunction/src/SecondaryFunctionPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/secondaryfunction/src/SecondaryFunctionView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/secondaryfunction/src/FastTrainingAttentionPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/secondaryfunction/src/FastTrainingAttentionView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/secondaryfunction/src/FastTrainingPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/secondaryfunction/src/FastTrainingView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phoneservice/src/PhoneService.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phoneservice/src/PhoneAudio.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/offlinevoice/src/VocassistModel.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/offlinevoice/src/VocassistPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/offlinevoice/src/VocassistView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/offlinevoice/src/MainVocassistView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/screensetting/src/ScreenModels.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarmclockmanage/src/AlarmClockManage.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarmclocktimerconfig/src/AlarmClockTimerConfig.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/rtcservice/src/RtcService.cpp - - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/displaybrightness/src/DisplayBrightnessModel.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/displaybrightness/src/DisplayBrightnessPresent.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/displaybrightness/src/DisplayBrightnessView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/displaybrightness/src/BrightnessControlPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/displaybrightness/src/BrightnessControlView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/displaybrightness/src/ScreenDurationPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/displaybrightness/src/ScreenDurationView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetoothofsetting/src/BlueToothOfSettingModel.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetoothofsetting/src/BlueToothOfSettingPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetoothofsetting/src/BlueToothOfSettingView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/soundandvibration/src/SoundAndVibrationPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/soundandvibration/src/SoundAndVibrationView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/soundandvibration/src/SystemVolumePresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/soundandvibration/src/SystemVolumeView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/quickaccess/src/QuickAccessPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/quickaccess/src/QuickAccessView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemAboutPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemAboutView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemSupervisePresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemSuperviseView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemLanguagePresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemLanguageView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/record/src/RecordPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/record/src/RecordView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/record/src/RecordListPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/record/src/RecordListView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/record/src/RecordPlayPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/record/src/RecordPlayView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/record/src/RecordDeletePresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/record/src/RecordDeleteView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/record/src/RecordGoingPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/record/src/RecordGoingView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemRebootPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemRebootView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemShoutDownPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemShoutDownView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemFactoryResetPresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemFactoryResetView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/InitComponent/src/InitComponent.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/uisample/src/UISampleView.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/uisample/src/UISamplePresenter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/uisample/src/UISampleModel.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/uisample/uitest/framework/src/test_case_list_adapter.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/uisample/uitest/framework/src/ui_test_group.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_message/ui_test_message.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_video_play/media_video_play.cpp -) - -set(COMPONENT_PUBLIC_CCFLAGS -) - -set(COMPONENT_CCFLAGS - -std=c++11 - -Wno-error - -Wno-unused-parameter - -fno-exceptions - -fno-unwind-tables - -fno-asynchronous-unwind-tables - -Wno-undef - -Wno-bitwise-op-parentheses - -Wno-shift-op-parentheses - -nostdlibinc - -nostdinc - -nostdlib - -Wno-c++11-narrowing - -Wno-error=unused-function -) - -set(WHOLE_LINK - true -) - -set(MAIN_COMPONENT - false -) - -set(PUBLIC_DEFINES - SUPPORT_NATIVE_UI -) - -set(PRIVATE_DEFINES -) - -build_component() +set(COMPONENT_NAME "nativelauncher") +set(MODULE_NAME "app") +set(AUTO_DEF_FILE_ID TRUE) +set(UI_SAMPLE_ROOT ${ROOT_DIR}/middleware/services/gui/uikit/sample/uitest) + +set(PUBLIC_HEADER + ${CMAKE_CURRENT_SOURCE_DIR}/nativelauncher/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativelauncher/include/slices/main +) + +set(PRIVATE_HEADER + ${ROOT_DIR}/open_source/openharmony/foundation/ace/ace_engine_lite/interfaces/base + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/main/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/clock/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bloodoxygen/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/indoorwalk/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/rebootdevice/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/activity/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/heartrate/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/callerlog/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/makephone/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/rtcservice/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/connectnewphone/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarmclockmanage/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarmclocktimerconfig/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/offlinevoice/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/settings/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/key/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/player/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/applist/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phoneservice/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/screensetting/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/uiservice/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/uisample/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/ + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/InitComponent/include + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/uisample/uitest/framework/include + ${UI_SAMPLE_ROOT}/components + ${CMAKE_CURRENT_SOURCE_DIR}/../service/smart_voice/smart_voice_service/interfaces/innerkits/native_c/include + ${CMAKE_CURRENT_SOURCE_DIR}/../service/smart_voice/voice_engine_hal/interfaces/innerkits/native_c/include + ${CMAKE_CURRENT_SOURCE_DIR}/../ohos_deps + + ${ROOT_DIR}/middleware/services/gui/uikit/proprietary/src/utils/innerkits + ${ROOT_DIR}/middleware/services/gui/uikit/proprietary/include + ${ROOT_DIR}/middleware/services/gui/uikit/proprietary/src/ui/frameworks + ${ROOT_DIR}/middleware/services/gui/uikit/proprietary/include/service + ${ROOT_DIR}/middleware/services/gui/uikit/ui/interfaces/innerkits + + ${ROOT_DIR}/open_source/openharmony/foundation/graphic/ui/interfaces/kits/events + ${ROOT_DIR}/open_source/openharmony/foundation/graphic/ui/interfaces/kits + ${ROOT_DIR}/open_source/openharmony/foundation/graphic/utils/interfaces/kits + ${ROOT_DIR}/open_source/openharmony/foundation/graphic/utils/interfaces/kits/gfx_utils + ${ROOT_DIR}/open_source/openharmony/foundation/graphic/utils/interfaces/innerkits + ${ROOT_DIR}/open_source/openharmony/foundation/graphic/ui/interfaces/innerkits + ${ROOT_DIR}/open_source/openharmony/foundation/graphic/ui/frameworks + ${ROOT_DIR}/open_source/openharmony/foundation/graphic/surface/interfaces/kits + ${ROOT_DIR}/open_source/openharmony/foundation/graphic/ui/interfaces/kits/components + ${ROOT_DIR}/open_source/openharmony/foundation/graphic/service/include + ${ROOT_DIR}/open_source/openharmony/foundation/multimedia/audio_player/interfaces/kits + ${ROOT_DIR}/open_source/openharmony/foundation/multimedia/audiomanager/interfaces/kits/audiomanager + ${ROOT_DIR}/open_source/openharmony/foundation/multimedia/audiomanager/interfaces/kits/audiocommon + ${ROOT_DIR}/open_source/openharmony/foundation/multimedia/player/interfaces/kits/ + ${ROOT_DIR}/open_source/openharmony/foundation/multimedia/utils/include + + ${ROOT_DIR}/include/middleware/services/bts/common + ${ROOT_DIR}/include/middleware/services/bts/ble + ${ROOT_DIR}/include/middleware/services/bts/br + + ${ROOT_DIR}/open_source/openharmony/drivers/peripheral/display/interfaces/include + ${ROOT_DIR}/open_source/openharmony/foundation/distributedschedule/samgr_lite/interfaces/kits/samgr +) + +set(SOURCES + ${CMAKE_CURRENT_SOURCE_DIR}/nativelauncher/src/NativeLauncher.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/uiservice/src/ui_service.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativelauncher/src/slices/main/MainPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativelauncher/src/slices/main/MainView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/main/src/MainViewSample.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/main/src/MainPresenterSample.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/main/src/MainSwipeViewGroup.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/main/src/ModelListenerSample.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/main/src/PresenterTask.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/main/src/HealthModel.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/main/src/PullUpDownView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/applist/src/AppItemView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/applist/src/ApplistAdapter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/applist/src/ApplistModel.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/applist/src/ApplistPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/applist/src/ApplistView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/clock/src/MainClockView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/clock/src/DialUserView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/clock/src/DialMalioView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bloodoxygen/src/BloodOxygenView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bloodoxygen/src/BloodBandoffView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bloodoxygen/src/BloodOxygenPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bloodoxygen/src/BloodOxygenModel.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/BluetoothDeviceCaseListAdapter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/BluetoothDeviceListView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/BluetoothPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/BluetoothHeadsetEvent.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/BluetoothModel.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/MainBluetoothView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/BluetoothEarPhoneView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/TipsConnFailMessageView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/TipsFailMessageView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/TipsSuccMessageView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/BluetoothEarListView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/BluetoothOptionsView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/BluetoothReconnectView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/BluetoothItemView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetooth/src/BluetoothCaseListAdapter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/indoorwalk/src/IndoorWalkView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/indoorwalk/src/IndoorWalkPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/indoorwalk/src/IndoorWalkModel.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/indoorwalk/src/IndoorWalkPreparedView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/indoorwalk/src/IndoorWalkMotionView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/indoorwalk/src/MotionPageFirst.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/indoorwalk/src/MotionPageSecond.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/indoorwalk/src/MotionPageThird.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/indoorwalk/src/MotionPageFourth.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/indoorwalk/src/MotionPageFifth.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/indoorwalk/src/CustomizationView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/indoorwalk/src/IndoorWalkEndView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/connectnewphone/src/ConnectPhoneView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/connectnewphone/src/ConnectSelectView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/connectnewphone/src/ConnectOpenView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/connectnewphone/src/ConnectPhonePresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/rebootdevice/src/RebootView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/rebootdevice/src/RebootPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/rebootdevice/src/RebootModel.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/rebootdevice/src/RebootDeviceView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/rebootdevice/src/ShutdownDeviceView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/callerlog/src/CallerLogView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/callerlog/src/CallerLogPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/callerlog/src/CallerLogModel.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/callerlog/src/CallerItemView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/makephone/src/CallerDisplayView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/makephone/src/WaitingHintsView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/makephone/src/CallingView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/makephone/src/MainCallingPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/makephone/src/DialingScreenView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/makephone/src/MainCallingView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/main/src/VolumeSettingView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/main/src/VolumeSettingPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/player/src/BluetoothView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/player/src/PlayersView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/player/src/PlayersPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/player/src/PlayersModel.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/player/src/PlayersCaseListAdapter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/activity/src/MainActivityView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/activity/src/ActivityWeekView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/activity/src/ActivityPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/activity/src/ActivityModel.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/heartrate/src/HeartRateView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/heartrate/src/HeartModel.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/src/AlarmClockModel.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/src/MainAlarmView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/src/AlarmConfigView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/src/AlarmPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/src/AlarmSetTimeView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/src/AlarmSetWeekView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/src/AlarmJudgeView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/src/AlarmPopUpView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/src/AlarmRingView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/src/AlarmCloseRingView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/src/AlarmNewTimeView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/src/AlarmPopUpPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarm/src/AlarmMaxClock.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempJoinStudy.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempMainView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempModel.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempMeasure.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempExitInter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempPromptWear.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempClickMea.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempRemindWear.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempMeaProcess.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempInitInter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempWarn.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempLittleTip.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempExitPrompt.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempStudyAbout.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempContinueWarn.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/temperature/src/TempReport.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/settings/src/SettingAdapter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/settings/src/SettingPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/settings/src/SettingView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/settings/src/SettingModel.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/settings/src/SettingItemView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/key/src/KeyInputListener.cpp + #ʡ�� + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/saveele/src/SaveEleModel.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/saveele/src/SaveElePresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/saveele/src/SaveEleView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/saveele/src/SaveBatPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/saveele/src/SaveBatView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/sleep/src/SleepPresenter.cpp + #˯�� + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/sleep/src/SleepView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/sleep/src/SleepTimePresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/sleep/src/SleepTimeView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/sleep/src/SleepActPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/sleep/src/SleepActView.cpp + #�绰 + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phone/src/PhoneView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phone/src/PhonePresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phone/src/PhoneCallView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phone/src/PhoneCallPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phone/src/PhoneDirView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phone/src/PhoneDirPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phone/src/PhoneCallingView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phone/src/PhoneCallingPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phone/src/PhoneCallupView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phone/src/PhoneCallupPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phone/src/PhoneRingView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phone/src/PhoneRingPresenter.cpp + #�������� + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/getpic/src/GetPicPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/getpic/src/GetPicView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/getpic/src/TakePicPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/getpic/src/TakePicView.cpp + #Ѫ�� + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/blood/src/BloodView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/blood/src/BloodPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/blood/src/BloodShowView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/blood/src/BloodShowPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/blood/src/BloodCheckView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/blood/src/BloodCheckPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/blood/src/BloodErrorView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/blood/src/BloodErrorPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/blood/src/BloodNoteView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/blood/src/BloodNotePresenter.cpp + #���� + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/dial/src/DialView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/dial/src/DialPresenter.cpp + + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/heartrate/src/HeartRemindView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/heartrate/src/HeartRemindPresenter.cpp ++ ++ ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/traing/src/TraingView.cpp ++ ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/traing/src/TraingPresenter.cpp + #ָ���� + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/CompassControlView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/CompassCalibrationView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/CompassModel.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/CompassPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/CompassView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/MainCompassView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/MainCompassPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/PlaceMakerCompassPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/PlaceMakerCompassView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/MakerPointCompassPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/MakerPointCompassView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/StartPathRecordCompassPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/StartPathRecordCompassView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/EndPathRecordCompassPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/EndPathRecordCompassView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/PathBackTrackingCompassPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/PathBackTrackingCompassView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/ResetPlaceMakerCompassPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/ResetPlaceMakerCompassView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/PathRetracingCompassPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/PathRetracingCompassView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/EndBackTrackingEarlyCompassPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/EndBackTrackingEarlyCompassView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/EndBackTrackingCompassPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/EndBackTrackingCompassView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/GPSLossCompassPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/compass/src/GPSLossCompassView.cpp + #辅助功能 + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/secondaryfunction/src/SecondaryFunctionPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/secondaryfunction/src/SecondaryFunctionView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/secondaryfunction/src/FastTrainingAttentionPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/secondaryfunction/src/FastTrainingAttentionView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/secondaryfunction/src/FastTrainingPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/secondaryfunction/src/FastTrainingView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phoneservice/src/PhoneService.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/phoneservice/src/PhoneAudio.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/offlinevoice/src/VocassistModel.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/offlinevoice/src/VocassistPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/offlinevoice/src/VocassistView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/offlinevoice/src/MainVocassistView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/screensetting/src/ScreenModels.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarmclockmanage/src/AlarmClockManage.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/alarmclocktimerconfig/src/AlarmClockTimerConfig.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/rtcservice/src/RtcService.cpp + + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/displaybrightness/src/DisplayBrightnessModel.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/displaybrightness/src/DisplayBrightnessPresent.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/displaybrightness/src/DisplayBrightnessView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/displaybrightness/src/BrightnessControlPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/displaybrightness/src/BrightnessControlView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/displaybrightness/src/ScreenDurationPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/displaybrightness/src/ScreenDurationView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetoothofsetting/src/BlueToothOfSettingModel.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetoothofsetting/src/BlueToothOfSettingPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/bluetoothofsetting/src/BlueToothOfSettingView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/soundandvibration/src/SoundAndVibrationPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/soundandvibration/src/SoundAndVibrationView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/soundandvibration/src/SystemVolumePresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/soundandvibration/src/SystemVolumeView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/soundandvibration/src/CallVolumePresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/soundandvibration/src/CallVolumeView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/soundandvibration/src/MediaVolumePresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/soundandvibration/src/MediaVolumeView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/secondaryfunction/src/QuickAccessPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/secondaryfunction/src/QuickAccessView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemAboutPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemAboutView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemSupervisePresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemSuperviseView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemLanguagePresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemLanguageView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/record/src/RecordPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/record/src/RecordView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/record/src/RecordListPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/record/src/RecordListView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/record/src/RecordPlayPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/record/src/RecordPlayView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/record/src/RecordDeletePresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/record/src/RecordDeleteView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/record/src/RecordGoingPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/record/src/RecordGoingView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemRebootPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemRebootView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemShoutDownPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemShoutDownView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemFactoryResetPresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemFactoryResetView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/InitComponent/src/InitComponent.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/uisample/src/UISampleView.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/uisample/src/UISamplePresenter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/uisample/src/UISampleModel.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/uisample/uitest/framework/src/test_case_list_adapter.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/uisample/uitest/framework/src/ui_test_group.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_message/ui_test_message.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_video_play/media_video_play.cpp +) + +set(COMPONENT_PUBLIC_CCFLAGS +) + +set(COMPONENT_CCFLAGS + -std=c++11 + -Wno-error + -Wno-unused-parameter + -fno-exceptions + -fno-unwind-tables + -fno-asynchronous-unwind-tables + -Wno-undef + -Wno-bitwise-op-parentheses + -Wno-shift-op-parentheses + -nostdlibinc + -nostdinc + -nostdlib + -Wno-c++11-narrowing + -Wno-error=unused-function +) + +set(WHOLE_LINK + true +) + +set(MAIN_COMPONENT + false +) + +set(PUBLIC_DEFINES + SUPPORT_NATIVE_UI +) + +set(PRIVATE_DEFINES +) + +build_component() diff --cc code/sdk/application/wearable/nativeapp/nativelauncher/include/AppViewIDs.h index 9990cd095,26c764a6c..488ca4570 --- a/code/sdk/application/wearable/nativeapp/nativelauncher/include/AppViewIDs.h +++ b/code/sdk/application/wearable/nativeapp/nativelauncher/include/AppViewIDs.h @@@ -1,141 -1,140 +1,142 @@@ -/* - * Copyright (c) 2020-2021 CompanyNameMagicTag. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef APP_VIEW_IDS_H -#define APP_VIEW_IDS_H - -#include - -/* - * 基础应用的view id,与MVP的V一一对应 - * 枚举命名要求:参考View名字,名字尽量简短 - */ -typedef enum : uint16_t -{ - VIEW_INVALID = 0, - VIEW_MAIN = 1, - VIEW_SETTING = 2, - VIEW_APPLIST = 3, - VIEW_SETTING_FIRST = 4, - VIEW_MAIN_SAMPLE = 5, - VIEW_MAIN_ALARM = 6, - VIEW_MAIN_ACTIVITY = 7, - VIEW_ALARM_POP_UP, - VIEW_CALLER_SAMPLE, - VIEW_MAEKPHONE_SAMPLE, - VIEW_BLOODOXY_SAMPLE, - VIEW_BLUETOOTH_EARPHONE, - VIEW_OFFLINEVOICE, - VIEW_WIFI, - VIEW_VOLUME, - VIEW_CONNECT_PHONE, - VIEW_MAIN_TEMP, - VIEW_INDOORWALK, - VIEW_REBOOT, - VIEW_UISAMPLE, // 实例 - VIEW_GETPIC, // 手势拍照 - VIEW_TAKEPIC, // 拍照 - - VIEW_BLOOD, // 血氧 - VIEW_BLOODSHOW, // 血氧说明 - VIEW_BLOODCHECK, // 血氧检查 - VIEW_BLOODERROR, // 血氧监测错误 - VIEW_BLOODNOTE, // 血氧过低提醒 - - VIEW_DIAL, // 表盘 - VIEW_DIALSETUP, // 表盘安装 - VIEW_DIALSUCCES, // 表盘安装成功 - - VIEW_SAVEELE, // 省电模式 - VIEW_SAVEBAT, // 省电模式界面 - - VIEW_COMPASS, // 指南针 - VIEW_COMPASS_PLACE_MAKER, // 指南针:放置标记点 - VIEW_COMPASS_MAKER_POINT, // 指南针:标记点介绍 - VIEW_COMPASS_START_PATH_RECORD, // 指南针:开始路径记录 - VIEW_COMPASS_END_PATH_RECORD, // 指南针:结束路径记录 - VIEW_COMPASS_PATH_BACKTRACKING, // 指南针:路径回溯 - VIEW_COMPASS_RESET_PLACE_MAKER, // 指南针:重置标记点 - VIEW_COMPASS_PATH_RETRACING, // 指南针:路径回溯中 - VIEW_COMPASS_GPS_LOSS, // 指南针:GPS丢失 - VIEW_COMPASS_END_BACK_TRACKING, // 指南针:结束路径回溯 - VIEW_COMPASS_END_BACK_TRACKING_EARLY, // 指南针:提前结束路径回溯 - VIEW_SPORT, // 活动 - - VIEW_HEARTRATEREMIND, // 心率提醒 - - VIEW_TRAINING, // 训练 - VIEW_TRAINING_RECORD, // 训练记录 - - VIEW_BLOODPRESSURE, // 昨日睡眠时间 - VIEW_SLEEPTIME, // 睡眠详细数据 - VIEW_SLEEPACT, // 睡眠事项说明 - VIEW_MUSIC, // 音乐 - VIEW_WEATHER, // 天气 - VIEW_RECORD, // 录音 - // 录音 - VIEW_RECORD_LIST, - VIEW_RECORD_PLAY, - VIEW_RECORD_DELETE, - VIEW_RECORD_GOING, - // 电话 - VIEW_PHONE, // 电话 - VIEW_PHONECALL, // 拨号 - VIEW_PHONERING, // 拨号界面 - VIEW_PHONECALLING, // 来电 - VIEW_PHONECALLUP, // 通话界面 - VIEW_PHONEDIR, // 电话簿 - VIEW_CHRONOMETER, // 秒表 - VIEW_COUNTDOWN, // 计时器 - VIEW_BLUETOOTH, // 蓝牙 - // 设置 - VIEW_DISPLAY_BRIGHTNESS, // 屏幕与亮度 - VIEW_CONNECT_BLUETOOTH, // 蓝牙 - VIEW_SOUND_VIBRATION, // 声音与震动 - VIEW_SYSTEM_VOLUME, // 系统音量 - VIEW_QUICK_ACCESS, // 快速访问 - VIEW_SYSTEM, // 系统 - // 系统 - VIEW_SYSTEM_ABOUT_WATCH, // 系统:关于手表 - VIEW_SYSTEM_SUPERVISE, // 系统:监管 - VIEW_SYSTEM_SYSTEM_LANGUAGE, // 系统:系统语言 - VIEW_SYSTEM_REBOOT, // 系统:重新启动 - VIEW_SYSTEM_SHOUTDOWN, // 系统:关机 - VIEW_SYSTEM_FACTORY_RESET, // 系统:恢复出厂设置 - VIEW_BRIGHTNESS_CONTROL, // 亮度调节 - VIEW_SCREEN_DURATION, // 亮屏时长 - //按键按下进入的视图 - VIEW_SECONDARY_FUNCTION, //辅助功能 - VIEW_FAST_TRAINING, //快速训练 - VIEW_FAST_TRAINING_ATTENTION,//快速训练项目选择超出提示 - VIEW_MAX_INTER_APP, // 在此之前添加native应用ID - VIEW_EXTERN_APP = 0xFFFE, // 三方应用 - VIEW_INVALIDE_APP = 0xFFFF, -} AppViewId; - -/* - * Slice页面优先级,越小优先级越高 - */ -typedef enum : uint16_t -{ - PRIO_0 = 0, - PRIO_1, - PRIO_2, - PRIO_3, - PRIO_4 -} AppPriority; - -#endif +/* + * Copyright (c) 2020-2021 CompanyNameMagicTag. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef APP_VIEW_IDS_H +#define APP_VIEW_IDS_H + +#include + +/* + * 基础应用的view id,与MVP的V一一对应 + * 枚举命名要求:参考View名字,名字尽量简短 + */ +typedef enum : uint16_t +{ + VIEW_INVALID = 0, + VIEW_MAIN = 1, + VIEW_SETTING = 2, + VIEW_APPLIST = 3, + VIEW_SETTING_FIRST = 4, + VIEW_MAIN_SAMPLE = 5, + VIEW_MAIN_ALARM = 6, + VIEW_MAIN_ACTIVITY = 7, + VIEW_ALARM_POP_UP, + VIEW_CALLER_SAMPLE, + VIEW_MAEKPHONE_SAMPLE, + VIEW_BLOODOXY_SAMPLE, + VIEW_BLUETOOTH_EARPHONE, + VIEW_OFFLINEVOICE, + VIEW_WIFI, + VIEW_VOLUME, + VIEW_CONNECT_PHONE, + VIEW_MAIN_TEMP, + VIEW_INDOORWALK, + VIEW_REBOOT, + VIEW_UISAMPLE, // 实例 + VIEW_GETPIC, // 手势拍照 + VIEW_TAKEPIC, // 拍照 + + VIEW_BLOOD, // 血氧 + VIEW_BLOODSHOW, // 血氧说明 + VIEW_BLOODCHECK, // 血氧检查 + VIEW_BLOODERROR, // 血氧监测错误 + VIEW_BLOODNOTE, // 血氧过低提醒 + + VIEW_DIAL, // 表盘 + VIEW_DIALSETUP, // 表盘安装 + VIEW_DIALSUCCES, // 表盘安装成功 + + VIEW_SAVEELE, // 省电模式 + VIEW_SAVEBAT, // 省电模式界面 + + VIEW_COMPASS, // 指南针 + VIEW_COMPASS_PLACE_MAKER, // 指南针:放置标记点 + VIEW_COMPASS_MAKER_POINT, // 指南针:标记点介绍 + VIEW_COMPASS_START_PATH_RECORD, // 指南针:开始路径记录 + VIEW_COMPASS_END_PATH_RECORD, // 指南针:结束路径记录 + VIEW_COMPASS_PATH_BACKTRACKING, // 指南针:路径回溯 + VIEW_COMPASS_RESET_PLACE_MAKER, // 指南针:重置标记点 + VIEW_COMPASS_PATH_RETRACING, // 指南针:路径回溯中 + VIEW_COMPASS_GPS_LOSS, // 指南针:GPS丢失 + VIEW_COMPASS_END_BACK_TRACKING, // 指南针:结束路径回溯 + VIEW_COMPASS_END_BACK_TRACKING_EARLY, // 指南针:提前结束路径回溯 + VIEW_SPORT, // 活动 + + VIEW_HEARTRATEREMIND, // 心率提醒 + + VIEW_TRAINING, // 训练 + VIEW_TRAINING_RECORD, // 训练记录 ++ + VIEW_BLOODPRESSURE, // 昨日睡眠时间 + VIEW_SLEEPTIME, // 睡眠详细数据 + VIEW_SLEEPACT, // 睡眠事项说明 + VIEW_MUSIC, // 音乐 + VIEW_WEATHER, // 天气 + VIEW_RECORD, // 录音 + // 录音 + VIEW_RECORD_LIST, + VIEW_RECORD_PLAY, + VIEW_RECORD_DELETE, + VIEW_RECORD_GOING, + // 电话 + VIEW_PHONE, // 电话 + VIEW_PHONECALL, // 拨号 + VIEW_PHONERING, // 拨号界面 + VIEW_PHONECALLING, // 来电 + VIEW_PHONECALLUP, // 通话界面 + VIEW_PHONEDIR, // 电话簿 + VIEW_CHRONOMETER, // 秒表 + VIEW_COUNTDOWN, // 计时器 + VIEW_BLUETOOTH, // 蓝牙 + // 设置 + VIEW_DISPLAY_BRIGHTNESS, // 屏幕与亮度 + VIEW_CONNECT_BLUETOOTH, // 蓝牙 + VIEW_SOUND_VIBRATION, // 声音与震动 + VIEW_SYSTEM_VOLUME, // 系统音量 + VIEW_CALL_VOLUME, // 通话音量 + VIEW_MEDIA_VOLUME, // 媒体音量 + VIEW_SECONDARY_FUNCTION, // 辅助功能 + VIEW_SYSTEM, // 系统 + // 系统 + VIEW_SYSTEM_ABOUT_WATCH, // 系统:关于手表 + VIEW_SYSTEM_SUPERVISE, // 系统:监管 + VIEW_SYSTEM_SYSTEM_LANGUAGE, // 系统:系统语言 + VIEW_SYSTEM_REBOOT, // 系统:重新启动 + VIEW_SYSTEM_SHOUTDOWN, // 系统:关机 + VIEW_SYSTEM_FACTORY_RESET, // 系统:恢复出厂设置 + VIEW_BRIGHTNESS_CONTROL, // 亮度调节 + VIEW_SCREEN_DURATION, // 亮屏时长 + //按键按下进入的视图 + VIEW_QUICK_ACCESS, // 快速访问 + VIEW_FAST_TRAINING, //快速训练 + VIEW_FAST_TRAINING_ATTENTION,//快速训练项目选择超出提示 + VIEW_MAX_INTER_APP, // 在此之前添加native应用ID + VIEW_EXTERN_APP = 0xFFFE, // 三方应用 + VIEW_INVALIDE_APP = 0xFFFF, +} AppViewId; + +/* + * Slice页面优先级,越小优先级越高 + */ +typedef enum : uint16_t +{ + PRIO_0 = 0, + PRIO_1, + PRIO_2, + PRIO_3, + PRIO_4 +} AppPriority; + +#endif diff --cc code/sdk/application/wearable/nativeapp/nativelauncher/include/NativeLauncher.h index 7c3c34574,b1bc6a06b..99f317981 --- a/code/sdk/application/wearable/nativeapp/nativelauncher/include/NativeLauncher.h +++ b/code/sdk/application/wearable/nativeapp/nativelauncher/include/NativeLauncher.h @@@ -1,108 -1,107 +1,109 @@@ -/* - * Copyright (c) 2020-2021 CompanyNameMagicTag. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef NATIVE_LAUNCHER_H -#define NATIVE_LAUNCHER_H -#include "AppViewIDs.h" - -namespace OHOS { -class NativeLauncher { -public: - static NativeLauncher &GetInstance(void); - void InitNativeLauncher(void); - void InitMainSlice(void); - void InitMainSampleSlice(void); - void InitSettingSlice(void); - void InitApplistSlice(void); - void InitMainAlarmSlice(void); - void InitAlarmPopUpSlice(void); - void InitActivitySlice(void); - void InitWeekStepSlice(void); - void InitBluetoothSlice(void); - void InitWifiView(void); - void InitMainBloodOxyView(void); - void InitMainCallerLogView(void); - void InitMainMakePhoneView(void); - void InitCompassSlice(void); - void InitOfflineVoice(void); - void InitConnectPhoneSlice(void); - void InitMainTempSlice(void); - void InitIndoorWalkSlice(void); - void InitRebootSlice(void); - void InitUISampleSlice(void); - void InitSaveEleSlice(void); - void InitSaveBatSlice(void); - void InitSleepSlice(void); - void InitSleepTimeSlice(void); - void InitSleepActSlice(void); - void InitGetPicSlice(void); - void InitTakePicSlice(void); - void InitBloodSlice(void); - void InitBloodShowSlice(void); - void InitBloodCheckSlice(void); - void InitBloodErrorSlice(void); - void InitBloodNoteSlice(void); - void InitDialSlice(void); - void InitHeartRemindSlice(void); - void InitPhoneSlice(void); - void InitPhoneCallSlice(void); - void InitPhoneDirSlice(void); - void InitPhoneCallingSlice(void); - void InitPhoneCallupSlice(void); - void InitPhoneRingSlice(void); - void InitTraingSlice(void); - void InitUIDisplayBrightnessSlice(void); - void InitBlueToothSettingSlice(void); - void InitBrightnessControlSlice(void); - void InitScreenDurationSlice(void); - void InitSoundAndVibrationSlice(void); - void InitSystemVolumeSlice(void); - void InitQuickAccessSlice(void); - void InitSystemSlice(void); - void InitSystemAboutWatchSlice(void); - void InitSystemSuperviseSlice(void); - void InitSystemLanguageSlice(void); - void InitSystemRebootSlice(void); - void InitSystemShoutDownSlice(void); - void InitSystemFactoryResetSlice(void); - void InitRecordingSlice(void); - void InitRecordingListSlice(void); - void InitRecordingPlaySlice(void); - void InitRecordingDeleteSlice(void); - void InitRecordingGoingSlice(void); - void InitCompassPlaceMakerSlice(void); - void InitCompassMakerPointSlice(void); - void InitCompassStartPathRecordSlice(void); - void InitCompassEndPathRecordSlice(void); - void InitCompassPathBackTrackingSlice(void); - void InitCompassResetPlaceMakerSlice(void); - void InitCompassPathRetracingSlice(void); - void InitCompassEndBackTrackingEarlySlice(); - void InitCompassEndBackTrackingSlice(void); - void InitCompassGPSLossSlice(void); - void InitSecondaryFunction(void); - void InitFastTrainingSlice(void); - void InitFastTrainingAttentionSlice(void); -private: - void InitAllNativeSlices(void); - - NativeLauncher(); - NativeLauncher(const NativeLauncher &); - NativeLauncher &operator=(const NativeLauncher &); - ~NativeLauncher(); -}; -} -#endif // NATIVE_LAUNCHER_H +/* + * Copyright (c) 2020-2021 CompanyNameMagicTag. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef NATIVE_LAUNCHER_H +#define NATIVE_LAUNCHER_H +#include "AppViewIDs.h" + +namespace OHOS { +class NativeLauncher { +public: + static NativeLauncher &GetInstance(void); + void InitNativeLauncher(void); + void InitMainSlice(void); + void InitMainSampleSlice(void); + void InitSettingSlice(void); + void InitApplistSlice(void); + void InitMainAlarmSlice(void); + void InitAlarmPopUpSlice(void); + void InitActivitySlice(void); + void InitWeekStepSlice(void); + void InitBluetoothSlice(void); + void InitWifiView(void); + void InitMainBloodOxyView(void); + void InitMainCallerLogView(void); + void InitMainMakePhoneView(void); + void InitCompassSlice(void); + void InitOfflineVoice(void); + void InitConnectPhoneSlice(void); + void InitMainTempSlice(void); + void InitIndoorWalkSlice(void); + void InitRebootSlice(void); + void InitUISampleSlice(void); + void InitSaveEleSlice(void); + void InitSaveBatSlice(void); + void InitSleepSlice(void); + void InitSleepTimeSlice(void); + void InitSleepActSlice(void); + void InitGetPicSlice(void); + void InitTakePicSlice(void); + void InitBloodSlice(void); + void InitBloodShowSlice(void); + void InitBloodCheckSlice(void); + void InitBloodErrorSlice(void); + void InitBloodNoteSlice(void); + void InitDialSlice(void); + void InitHeartRemindSlice(void); + void InitPhoneSlice(void); + void InitPhoneCallSlice(void); + void InitPhoneDirSlice(void); + void InitPhoneCallingSlice(void); + void InitPhoneCallupSlice(void); + void InitPhoneRingSlice(void); ++ void InitTraingSlice(void); + void InitUIDisplayBrightnessSlice(void); + void InitBlueToothSettingSlice(void); + void InitBrightnessControlSlice(void); + void InitScreenDurationSlice(void); + void InitSoundAndVibrationSlice(void); + void InitSystemVolumeSlice(void); + void InitCallVolumeSlice(void); + void InitMediaVolumeSlice(void); + void InitQuickAccessSlice(void); + void InitSystemSlice(void); + void InitSystemAboutWatchSlice(void); + void InitSystemSuperviseSlice(void); + void InitSystemLanguageSlice(void); + void InitSystemRebootSlice(void); + void InitSystemShoutDownSlice(void); + void InitSystemFactoryResetSlice(void); + void InitRecordingSlice(void); + void InitRecordingListSlice(void); + void InitRecordingPlaySlice(void); + void InitRecordingDeleteSlice(void); + void InitRecordingGoingSlice(void); + void InitCompassPlaceMakerSlice(void); + void InitCompassMakerPointSlice(void); + void InitCompassStartPathRecordSlice(void); + void InitCompassEndPathRecordSlice(void); + void InitCompassPathBackTrackingSlice(void); + void InitCompassResetPlaceMakerSlice(void); + void InitCompassPathRetracingSlice(void); + void InitCompassEndBackTrackingEarlySlice(); + void InitCompassEndBackTrackingSlice(void); + void InitCompassGPSLossSlice(void); + void InitSecondaryFunction(void); + void InitFastTrainingSlice(void); + void InitFastTrainingAttentionSlice(void); +private: + void InitAllNativeSlices(void); + + NativeLauncher(); + NativeLauncher(const NativeLauncher &); + NativeLauncher &operator=(const NativeLauncher &); + ~NativeLauncher(); +}; +} +#endif // NATIVE_LAUNCHER_H diff --cc code/sdk/application/wearable/nativeapp/nativelauncher/include/UiConfig.h index 720af126b,411fdc883..abd759595 --- a/code/sdk/application/wearable/nativeapp/nativelauncher/include/UiConfig.h +++ b/code/sdk/application/wearable/nativeapp/nativelauncher/include/UiConfig.h @@@ -1,417 -1,428 +1,428 @@@ -/* - * Copyright (c) CompanyNameMagicTag 2021-2021. All rights reserved. - * Description: UiConfig for application resource - * Author: - * Create: 2021-12-03 - */ - -#ifndef UI_CONFIG_H -#define UI_CONFIG_H - -#include -#include "ohos_types.h" -#include "graphic_config.h" - -namespace OHOS -{ -#ifndef UNUSED -#define UNUSED(x) ((void)(x)) -#endif - -#define LA_HORIZONTAL_RESOLUTION 400 // watch width -#define LA_VERTICAL_RESOLUTION 400 // watch height -#define NORMAL_BUTTON_WIDTH 100 // normal button width -#define NORMAL_BUTTON_HEIGHT 50 // normal button height -#define NORMAL_MARGIN 5 // normal margin -#define DIAL_SQUARE 250 // watch plate sauqre -#define SETTING_ITEM_HEIGHT 100 // setting item height -#define UN_OPACITY 255 // UN_OPACITY - -#define MILLESECOND 1 -#define SECOND 1000 // 1s 1000ms -#define MINUTE (60 * SECOND) // 1min 60s -#define HOUR (60 * MINUTE) // 1hour 60min - -#define FONT_COMMON 20 // 20px -#define X_DRAG_OFFSET 20 -#define DOUBLES 2 - -#define APP_RES_PATH "/user/res" -#define APP_MUSIC_PATH "/user/music" -#define APP_VIDEO_PATH "/user/video" - - static constexpr const char *CARD_CONFIG_PATH = "/user/cardconfig.bin"; - - static constexpr const char *CLOCK_IAMGES = APP_RES_PATH "/clock/clock.bin"; - static constexpr const char *PLAYER_IAMGES = APP_RES_PATH "/player/player.bin"; - static constexpr const char *COMPASS_IAMGES = APP_RES_PATH "/compass/compass.bin"; - static constexpr const char *DROPDOWN_IAMGES = APP_RES_PATH "/dropdown/dropdown.bin"; - static constexpr const char *HEART_IAMGES = APP_RES_PATH "/heart/heart.bin"; - static constexpr const char *PNG_BLUETOOTH_HINTS_PATH = APP_RES_PATH "/BLUETOOTH_HINTS.bin"; - static constexpr const char *PNG_BLOODOXYGEN_IMAGE_PATH = APP_RES_PATH "/BLOODOXYGEN_VIEW.bin"; - - static constexpr const char *PNG_BLOOD_ICON_ENTER = APP_RES_PATH "/BLOOD_ICON_ENTER.bin"; - - static constexpr const char *PNG_AGREEING_IMAGE_PATH = APP_RES_PATH "/AGREEING.bin"; - static constexpr const char *PNG_DISSGREE_IMAGE_PATH = APP_RES_PATH "/DISSGREE.bin"; - static constexpr const char *PNG_MICROPHONE_OPEN_IMAGE_PATH = APP_RES_PATH "/MICRO_PHONE_OPEN.bin"; - static constexpr const char *PNG_MICROPHONE_CLOSE_IMAGE_PATH = APP_RES_PATH "/MICRO_PHONE_CLOSE.bin"; - static constexpr const char *PNG_HANDUP_IMAGE_PATH = APP_RES_PATH "/HANDUP.bin"; - static constexpr const char *PNG_ANSWER_TMAGE_PATH = APP_RES_PATH "/ANSWER_PHONE.bin"; - static constexpr const char *PNG_CALLING_TMAGE_PATH = APP_RES_PATH "/CALLING_PHONE.bin"; - static constexpr const char *PNG_CALLER_TMAGE_PATH = APP_RES_PATH "/CALLER_LOG_IMAGE.bin"; - static constexpr const char *PNG_NO_CALLER_LOG_IMAGE = APP_RES_PATH "/NO_CALLER_LOG_IMAGE.bin"; - static constexpr const char *PNG_APPLIST_CALLER_IMAGE = APP_RES_PATH "/APPLIST_CALLER_IMAGE.bin"; - static constexpr const char *PNG_APPLIST_COMPASS_IMAGE = APP_RES_PATH "/APPLIST_COMPASS_IMAGE.bin"; - - static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_0 = APP_RES_PATH "/COUNTDOWN_IMAGE_01.bin"; - static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_1 = APP_RES_PATH "/COUNTDOWN_IMAGE_02.bin"; - static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_2 = APP_RES_PATH "/COUNTDOWN_IMAGE_03.bin"; - static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_3 = APP_RES_PATH "/COUNTDOWN_IMAGE_04.bin"; - static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_4 = APP_RES_PATH "/COUNTDOWN_IMAGE_05.bin"; - static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_5 = APP_RES_PATH "/COUNTDOWN_IMAGE_06.bin"; - static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_6 = APP_RES_PATH "/COUNTDOWN_IMAGE_07.bin"; - static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_7 = APP_RES_PATH "/COUNTDOWN_IMAGE_08.bin"; - static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_8 = APP_RES_PATH "/COUNTDOWN_IMAGE_09.bin"; - static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_9 = APP_RES_PATH "/COUNTDOWN_IMAGE_10.bin"; - static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_10 = APP_RES_PATH "/COUNTDOWN_IMAGE_11.bin"; - static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_11 = APP_RES_PATH "/COUNTDOWN_IMAGE_12.bin"; - static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_12 = APP_RES_PATH "/COUNTDOWN_IMAGE_13.bin"; - static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_13 = APP_RES_PATH "/COUNTDOWN_IMAGE_14.bin"; - static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_14 = APP_RES_PATH "/COUNTDOWN_IMAGE_15.bin"; - static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_15 = APP_RES_PATH "/COUNTDOWN_IMAGE_16.bin"; - static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_16 = APP_RES_PATH "/COUNTDOWN_IMAGE_17.bin"; - static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_17 = APP_RES_PATH "/COUNTDOWN_IMAGE_18.bin"; - static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_18 = APP_RES_PATH "/COUNTDOWN_IMAGE_19.bin"; - static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_19 = APP_RES_PATH "/COUNTDOWN_IMAGE_20.bin"; - static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_20 = APP_RES_PATH "/COUNTDOWN_IMAGE_21.bin"; - static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_21 = APP_RES_PATH "/COUNTDOWN_IMAGE_22.bin"; - static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_22 = APP_RES_PATH "/COUNTDOWN_IMAGE_23.bin"; - static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_23 = APP_RES_PATH "/COUNTDOWN_IMAGE_24.bin"; - - static constexpr const char *PNG_PROGRESS_BAR_TMAGE = APP_RES_PATH "/PROGRESS_BAR_TMAGE.bin"; - static constexpr const char *TEMP_WAITING = APP_RES_PATH "/TEMP_WAITING.bin"; - static constexpr const char *TEMP_REPORT = APP_RES_PATH "/TEMP_REPORT.bin"; - static constexpr const char *TEMP_POINT = APP_RES_PATH "/TEMP_POINT.bin"; - static constexpr const char *TEMP_REV_POINTER = APP_RES_PATH "/TEMP_REV_POINTER.bin"; - - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_0 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_02.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_1 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_03.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_2 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_04.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_3 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_05.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_4 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_06.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_5 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_07.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_6 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_08.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_7 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_09.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_8 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_10.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_9 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_11.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_10 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_12.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_11 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_13.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_12 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_14.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_13 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_15.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_14 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_16.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_15 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_17.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_16 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_18.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_17 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_19.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_18 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_20.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_19 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_21.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_20 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_22.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_21 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_23.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_22 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_24.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_23 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_25.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_24 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_26.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_25 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_27.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_26 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_28.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_27 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_29.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_28 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_30.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_29 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_31.bin"; - static constexpr const char *PNG_BLOOD_FLOW_IMAGE_30 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_32.bin"; - - static constexpr const char *PNG_SOUNDBUTTON2 = APP_RES_PATH "/SOUND_IMAGE.bin"; - static constexpr const char *PNG_PULLBUTTON_FACE_IMAGE = APP_RES_PATH "/BLOOD_FLOW_IMAGE_01.bin"; - static constexpr const char *MUSIC_2 = APP_RES_PATH "/mp3_48k_caiqing.mp3"; - static constexpr const char *MUSIC_1 = APP_RES_PATH "/one.mp3"; - - static constexpr const char *PNG_SETTTING_BUTTON_IMAGE = APP_RES_PATH "/SETTTING_BUTTON.bin"; - static constexpr const char *PNG_BLUETOOTH_IMAGE = APP_RES_PATH "/BLUETOOTH_IMAGE.bin"; - static constexpr const char *PNG_WATCH_IMAGE = APP_RES_PATH "/WATCH_IMAGE.bin"; - static constexpr const char *PNG_PHONE_IMAGE = APP_RES_PATH "/PHONE_IMAGE.bin"; - static constexpr const char *PNG_REBOOT_BUTTON_IMAGE = APP_RES_PATH "/REBOOT_BUTTON.bin"; - static constexpr const char *PNG_SHUTDOWN_BUTTON_IMAGE = APP_RES_PATH "/SHUTDOWN_BUTTON.bin"; - static constexpr const char *PNG_SETTTING_REBOOT_IMAGE = APP_RES_PATH "/SETTTING_REBOOT.bin"; - static constexpr const char *PNG_SETTTING_SHUTDOWN_IMAGE = APP_RES_PATH "/SETTTING_SHUTDOWN.bin"; - - static constexpr const char *PNG_CONNECT_PHONE_IMAGE = APP_RES_PATH "/CONNECT_PHONE.bin"; - static constexpr const char *PNG_BLUETOOTH_STITLE = APP_RES_PATH "/BLUETOOTH_TITLE.bin"; - - static constexpr const char *PNG_DISPLAY_BRIGHTNESS = APP_RES_PATH "/DISPLAY_BRIGHTNESS.bin"; // 显示与亮度 - static constexpr const char *PNG_BLUETOOTH = APP_RES_PATH "/BLUETOOTH.bin"; // 蓝牙 - static constexpr const char *PNG_SOUND_VIBRATION = APP_RES_PATH "/SOUND_VIBRATION.bin"; // 声音与震动 - static constexpr const char *PNG_QUICK_ACCESS = APP_RES_PATH "/QUICK_ACCESS.bin"; // 快速访问 - static constexpr const char *PNG_SYSTEM = APP_RES_PATH "/SYSTEM.bin"; // 系统 - - static constexpr const char *PNG_NEW_DEVICE = APP_RES_PATH "/NEW_DEVICE.bin"; - static constexpr const char *PNG_BT_LIST = APP_RES_PATH "/BT_LIST.bin"; - static constexpr const char *PNG_SELECTION_BOX = APP_RES_PATH "/SELECTION_BOX.bin"; - static constexpr const char *PNG_GANTAN = APP_RES_PATH "/GANTAN.bin"; - static constexpr const char *PNG_RIGHT = APP_RES_PATH "/RIGHT.bin"; - - static constexpr const char *PNG_NEW_WLAN_WIFI = APP_RES_PATH "/FULL_SIGNAL_OPEN.bin"; - static constexpr const char *FULL_SIGNAL_ENCRYPTION = APP_RES_PATH "/FULL_SIGNAL_ENCRYPTION.bin"; - - static constexpr const char *PNG_MAIN_FACE_IMAGE = APP_RES_PATH "/MAIN_FACE_IMAGE.bin"; - static constexpr const char *B024_009_IMAGE_PATH = APP_RES_PATH "/HOURHAND.bin"; - static constexpr const char *B024_010_IMAGE_PATH = APP_RES_PATH "/SECONDHAND.bin"; - static constexpr const char *B024_011_IMAGE_PATH = APP_RES_PATH "/MINUTEHAND.bin"; - static constexpr const char *ALARM_ADD_BUTTON_PATH = APP_RES_PATH "/BLUE_ADD.bin"; - static constexpr const char *ALARM_ADD_BUTTON_PATH_IMAGE = APP_RES_PATH "/ALARM_ADD_BACKGROUND.bin"; //闹钟增加背景图片 - static constexpr const char *ALARM_CLOCK_CLOSE_ADD_PATH = APP_RES_PATH "/CLOSE_RING_CLOCK.bin"; - static constexpr const char *ALARM_CLOCK_ADD_PATH = APP_RES_PATH "/POP_UP_CLOCK.bin"; - static constexpr const char *ALARM_CLOCK_POP_ADD_PATH = APP_RES_PATH "/RING_CLOCK.bin"; - static constexpr const char *ALARM_DELETE_ADD_PATH = APP_RES_PATH "/DELETE.bin"; - static constexpr const char *ALARM_TRUE_ADD_PATH = APP_RES_PATH "/TRUE_ADD.bin"; - static constexpr const char *TEMP_MEASURE = APP_RES_PATH "/TEMP_MEASURE.bin"; - static constexpr const char *TEMP_UP_DROP = APP_RES_PATH "/TEMP_UP_DROP.bin"; - static constexpr const char *TEMP_EXIT = APP_RES_PATH "/TEMP_EXIT.bin"; - static constexpr const char *TEMP_ROTATE = APP_RES_PATH "/TEMP_ROTATE.bin"; - static constexpr const char *TEMP_ICON_ENTER = APP_RES_PATH "/TEMP_ICON_ENTER.bin"; - static constexpr const char *TEMP_BACKGROUND = APP_RES_PATH "/TEMP_BACKGROUND.bin"; - static constexpr const char *TEMP_WARN = APP_RES_PATH "/TEMP_WARN.bin"; - static constexpr const char *TEMP_LITTLE_MEASURE = APP_RES_PATH "/TEMP_LITTLE_MEASURE.bin"; - static constexpr const char *TEMP_HOT = APP_RES_PATH "/TEMP_HOT.bin"; - static constexpr const char *TEMP_COLD = APP_RES_PATH "/TEMP_COLD.bin"; - static constexpr const char *TEMP_LIT_TIP = APP_RES_PATH "/TEMP_LIT_TIP.bin"; - static constexpr const char *TEMP_ABOUT_STUDY = APP_RES_PATH "/TEMP_ABOUT_STUDY.bin"; - static constexpr const char *TEMP_TRUE = APP_RES_PATH "/TEMP_TRUE.bin"; - static constexpr const char *TEMP_DELETE = APP_RES_PATH "/TEMP_DELETE.bin"; - - static constexpr const char *COMPASS_CALIBRATE_IMAGE = APP_RES_PATH "/COMPASS_CALIBRATE_IMAGE.bin"; - static constexpr const char *PNG_SETTING_NEXT_IMAGE = APP_RES_PATH "/SETTING_NEXT.bin"; // 箭头图片 - static constexpr const char *PNG_SETTING_BACKGROUND_IMAGE = APP_RES_PATH "/SETTING_BACKGROUND.bin"; // 按钮的背景图片 - static constexpr const char *PNG_BRIGHTNESS_CONTROL_VECTOR = APP_RES_PATH "/BringhtnessContuolVector.bin"; // 调节亮度图片 - static constexpr const char *PNG_VOLUME_CONTROL_VECTOR = APP_RES_PATH "/VolumeControlVector.bin"; // 调节音量图片 - static constexpr const char *PNG_SYSTEM_VOLUME_IMAGE = APP_RES_PATH "/SYSTEM_VOLUME.bin"; // 系统音量 - static constexpr const char *PNG_CALL_VOLUME_IMAGE = APP_RES_PATH "/CALL_VOLUME.bin"; // 通话音量 - static constexpr const char *PNG_MEDIA_VOLUME_IMAGE = APP_RES_PATH "/MEDIA_VOLUME.bin"; // 媒体音量 - static constexpr const char *PNG_CHECKBOX_OFF_IMAGE = APP_RES_PATH "/CHECKBOX_OFF.bin"; // checkbox未选中图片 - static constexpr const char *PNG_CHECKBOX_ON_IMAGE = APP_RES_PATH "/CHECKBOX_ON.bin"; // checkbox选中图片 - static constexpr const char *PNG_TOGGLEBUTTON_OFF_IMAGE = APP_RES_PATH "/TOGGLEBUTTON_OFF.bin"; // togglebuttton未选中图片 - static constexpr const char *PNG_TOGGLEBUTTON_ON_IMAGE = APP_RES_PATH "/TOGGLEBUTTON_ON.bin"; // togglebuttton选中图片 - static constexpr const char *PNG_SYSTEM_ABOUT_THE_WATCH_IMAGE = APP_RES_PATH "/SYSTEM_ABOUT_THE_WATCH.bin"; // 系统:关于手表 - static constexpr const char *PNG_SYSTEM_SUPERVISE_IMAGE = APP_RES_PATH "/SYSTEM_SUPERVISE.bin"; // 系统:监管 - static constexpr const char *PNG_SYSTEM_SYSTEM_LANGUAGE_IMAGE = APP_RES_PATH "/SYSTEM_SYSTEM_LANGUAGE.bin"; // 系统:系统语言 - static constexpr const char *PNG_SYSTEM_REBOOT_IMAGE = APP_RES_PATH "/SYSTEM_REBOOT.bin"; // 系统:重新启动 - static constexpr const char *PNG_SYSTEM_SHOUTDOWM_IMAGE = APP_RES_PATH "/SYSTEM_SHOUTDOWM.bin"; // 系统:关机 - static constexpr const char *PNG_SYSTEM_FACTORY_RESET_IMAGE = APP_RES_PATH "/SYSTEM_FACTORY_RESET.bin"; // 系统:恢复出厂设置 - static constexpr const char *PNG_REBOOT_IMAGE = APP_RES_PATH "/SYSTEM__Reboot.bin"; // 重新启动 - static constexpr const char *PNG_SHOUTDOWN_IMAGE = APP_RES_PATH "/SYSTEM_ShoutDown.bin"; // 关机 - static constexpr const char *PNG_FACTORY_RESET = APP_RES_PATH "/SYSTEM_FactoryReset.bin"; // 恢复出厂设置 - static constexpr const char *PNG_SYSTEM_CHECK_ON_IMAGE = APP_RES_PATH "/SYSTEM_CheckOn.bin"; // 勾 - static constexpr const char *PNG_SYSTEM_CHECK_OFF_IMAGE = APP_RES_PATH "/SYSTEM_CheckOff.bin"; // 叉 - static constexpr const char *PNG_FAST_TRAINING_ATTENTION_IMAGE = APP_RES_PATH "/FastTrainingAttentionVector.bin"; //快速训练选中操过三个后出现 - // 录音 - static constexpr const char *PNG_ANIMATOR1_IMAGE = APP_RES_PATH "/Record/animator1.bin"; - static constexpr const char *PNG_ANIMATOR2_IMAGE = APP_RES_PATH "/Record/animator2.bin"; - static constexpr const char *PNG_RECORD1_IMAGE = APP_RES_PATH "/Record/RECORD1.bin"; - static constexpr const char *PNG_RECORD2_IMAGE = APP_RES_PATH "/Record/RECORD2.bin"; - static constexpr const char *PNG_RECORD3_IMAGE = APP_RES_PATH "/Record/RECORD3.bin"; - static constexpr const char *PNG_UNIVERSAL_PAUSE_IMAGE = APP_RES_PATH "/Record/UNIVERSAL_PAUSE.bin"; // 暂停 - static constexpr const char *PNG_UNIVERSAL_PLAY_IMAGE = APP_RES_PATH "/Record/UNIVERSAL_PLAY.bin"; // 播放 - static constexpr const char *PNG_RECORD_PLAY_BACKGROUND_IMAGE = APP_RES_PATH "/Record/RECORD_PLAY_BACKGROUND.bin"; // 背景 - static constexpr const char *PNG_RECORD_PLAY_PROVE_IMAGE = APP_RES_PATH "/Record/RECORD_PLAY_PROVE.bin"; // 上一首 - static constexpr const char *PNG_RECORD_PLAY_NEXT_IMAGE = APP_RES_PATH "/Record/RECORD_PLAY_NEXT.bin"; // 下一首 - static constexpr const char *PNG_RECORD_PLAY_DELETE_IMAGE = APP_RES_PATH "/Record/RECORD_PLAY_DELETE.bin"; // 删除 - static constexpr const char *PNG_RECORD_PLAY_VOLUME_IMAGE = APP_RES_PATH "/Record/RECORD_PLAY_VOLUME.bin"; // 音量 - static constexpr const char *PNG_RECORD_DELETE_BACKGROUND_IMAGE = APP_RES_PATH "/Record/RECORD_DELETE_BACKGROUND.bin"; // 删除录音的背景图 - // 指南针 - static constexpr const char *PNG_COMPASS_BACKGROUND_IMAGE = APP_RES_PATH "/compass/compass0.bin"; // 指南针的背景图片 - static constexpr const char *PNG_COMPASS_PLACE_MARKER_BUTTON_IMAGE = APP_RES_PATH "/compass/compass1.bin"; // 指南针放置标记点按钮图片 - static constexpr const char *PNG_COMPASS_TRIANGULATION_IMAGE = APP_RES_PATH "/compass/compass2.bin"; // 指南针三角形图片 - static constexpr const char *PNG_COMPASS_PLACE_MAKER_BACKGROUND_IMAGE = APP_RES_PATH "/compass/PLACE_MAKER_BACKGROUND.bin"; // 指南针放置标记点背景图片 - static constexpr const char *PNG_COMPASS_MAKER_POINT_BACKGROUND_IMAGE = APP_RES_PATH "/compass/MAKER_POINT_BACKGROUND.bin"; // 指南针标记点介绍背景图片 - static constexpr const char *PNG_COMPASS_START_PATH_RECORD_IMAGE = APP_RES_PATH "/compass/COMPASS_START_PATH_RECORD.bin"; // 指南针开始路径记录图片 - static constexpr const char *PNG_COMPASS_END_PATH_RECORD_IMAGE = APP_RES_PATH "/compass/COMPASS_END_PATH_RECORD.bin"; // 指南针结束路径记录图片 - static constexpr const char *PNG_COMPASS_PATH_BACKTRACKING_IMAGE = APP_RES_PATH "/compass/COMPASS_PATH_BACKTRACKING.bin"; // 指南针路径回溯按钮图片 - static constexpr const char *PNG_COMPASS_RESET_PLACE_MAKER_BACKGROUND_IMAGE = APP_RES_PATH "/compass/COMPASS_RESET_PLACE_MAKER_BACKGROUND.bin"; // 指南针:重置标记点背景图片 - static constexpr const char *PNG_COMPASS_PATH_BACKTRACKING_DIRECT_IMAGE = APP_RES_PATH "/compass/COMPASS_PATH_BACKTRACKING_DIRECT.bin"; // 指南针:路径回溯中的方向箭头图片 - static constexpr const char *PNG_COMPASS_END_BACK_TRACKING_EARLY_IMAGE = APP_RES_PATH "/compass/COMPASS_END_BACK_TRACKING_EARLY.bin"; // 指南针提前结束路径回溯 - static constexpr const char *PNG_COMPASS_END_BACK_TRACKING_IMAGE = APP_RES_PATH "/compass/COMPASS_END_BACK_TRACKING.bin"; // 指南针结束路径回溯 - static constexpr const char *PNG_COMPASS_GPS_LOSS_IMAGE = APP_RES_PATH "/compass/COMPASS_GPS_LOSS.bin"; // 指南针GPS丢失背景图片 - // 睡眠记录 - static constexpr const char *PNG_SLEEP_ROOM_IMAGE = APP_RES_PATH "/SleepTime/room.bin"; - static constexpr const char *PNG_SLEEP_NOTE_IMAGE = APP_RES_PATH "/SleepTime/Ellipse 185.bin"; - static constexpr const char *PNG_SLEEP_UP_IMAGE = APP_RES_PATH "/SleepTime/up.bin"; - static constexpr const char *PNG_SLEEP_VECTOR_IMAGE = APP_RES_PATH "/SleepTime/Vector.bin"; - static constexpr const char *PNG_SLEEP_VECTOR2_IMAGE = APP_RES_PATH "/SleepTime/Vector2.bin"; - static constexpr const char *PNG_SLEEP_LINE1_IMAGE = APP_RES_PATH "/SleepTime/Line 1.bin"; - static constexpr const char *PNG_SLEEP_LINE3_IMAGE = APP_RES_PATH "/SleepTime/Line 3.bin"; - static constexpr const char *PNG_SLEEP_BUTTON_IMAGE = APP_RES_PATH "/SleepTime/button.bin"; - // 手势拍照 - static constexpr const char *PNG_GETPIC_CAMERA_IMAGE = APP_RES_PATH "/GetPic/camera.bin"; - static constexpr const char *PNG_GETPIC_PICBOUTTON_IMAGE = APP_RES_PATH "/GetPic/pic_button.bin"; - static constexpr const char *PNG_GETPIC_SMILE_IMAGE = APP_RES_PATH "/GetPic/smile.bin"; - // 省电模式 - static constexpr const char *PNG_SAVEELE_BATE_IMAGE = APP_RES_PATH "/Save_Ele/Battery-E.bin"; - static constexpr const char *PNG_SAVEELE_BATF_IMAGE = APP_RES_PATH "/Save_Ele/Battery-F.bin"; - static constexpr const char *PNG_SAVEELE_FINGER_IMAGE = APP_RES_PATH "/Save_Ele/finger.bin"; - // 血氧 - static constexpr const char *PNG_BLOOD_ERROR_IMAGE = APP_RES_PATH "/Blood/Error.bin"; - static constexpr const char *PNG_BLOOD_NOTE_IMAGE = APP_RES_PATH "/Blood/boutton.bin"; - //表盘切换 - static constexpr const char *PNG_DIAL_USER_IMAGE = APP_RES_PATH "/Dial/Diallogo.bin"; - static constexpr const char *PNG_PHONE_FINGER_IMAGE = APP_RES_PATH "/Save_Ele/finger.bin"; - //快速训练 - static constexpr const char *PNG_TRAING_BOUTTONMORE_IMAGE = APP_RES_PATH "/Training/More.bin"; - static constexpr const char *PNG_TRAING_BUTTONGRONG_IMAGE = APP_RES_PATH "/Training/Bouttonground.bin"; - static constexpr const char *PNG_TRAING_BUTTONGRONG2_IMAGE = APP_RES_PATH "/Training/Buttonground2.bin"; - static constexpr const char *PNG_TRAING_RIDINGBIG_IMAGE = APP_RES_PATH "/Training/riding-big2.bin"; - static constexpr const char *PNG_TRAING_RUNNINGBIG_IMAGE = APP_RES_PATH "/Training/running-big.bin"; - static constexpr const char *PNG_TRAING_WALKINGBIG_IMAGE = APP_RES_PATH "/Training/walking-big.bin"; - //static constexpr const char *PNG_TRAING_BUTTONGRONG1_IMAGE = APP_RES_PATH "/TRAING/More.bin"; - //static constexpr const char *PNG_TRAING_BUTTONGRONG1_IMAGE = APP_RES_PATH "/TRAING/More.bin"; - - - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE01 = APP_RES_PATH "/VOICE_ASSISTANT_01.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE02 = APP_RES_PATH "/VOICE_ASSISTANT_02.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE03 = APP_RES_PATH "/VOICE_ASSISTANT_03.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE04 = APP_RES_PATH "/VOICE_ASSISTANT_04.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE05 = APP_RES_PATH "/VOICE_ASSISTANT_05.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE06 = APP_RES_PATH "/VOICE_ASSISTANT_06.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE07 = APP_RES_PATH "/VOICE_ASSISTANT_07.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE08 = APP_RES_PATH "/VOICE_ASSISTANT_08.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE09 = APP_RES_PATH "/VOICE_ASSISTANT_09.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE10 = APP_RES_PATH "/VOICE_ASSISTANT_10.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE11 = APP_RES_PATH "/VOICE_ASSISTANT_11.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE12 = APP_RES_PATH "/VOICE_ASSISTANT_12.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE13 = APP_RES_PATH "/VOICE_ASSISTANT_13.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE14 = APP_RES_PATH "/VOICE_ASSISTANT_14.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE15 = APP_RES_PATH "/VOICE_ASSISTANT_15.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE16 = APP_RES_PATH "/VOICE_ASSISTANT_16.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE17 = APP_RES_PATH "/VOICE_ASSISTANT_17.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE18 = APP_RES_PATH "/VOICE_ASSISTANT_18.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE19 = APP_RES_PATH "/VOICE_ASSISTANT_19.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE20 = APP_RES_PATH "/VOICE_ASSISTANT_20.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE21 = APP_RES_PATH "/VOICE_ASSISTANT_21.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE22 = APP_RES_PATH "/VOICE_ASSISTANT_22.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE23 = APP_RES_PATH "/VOICE_ASSISTANT_23.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE24 = APP_RES_PATH "/VOICE_ASSISTANT_24.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE25 = APP_RES_PATH "/VOICE_ASSISTANT_25.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE26 = APP_RES_PATH "/VOICE_ASSISTANT_26.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE27 = APP_RES_PATH "/VOICE_ASSISTANT_27.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE28 = APP_RES_PATH "/VOICE_ASSISTANT_28.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE29 = APP_RES_PATH "/VOICE_ASSISTANT_29.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE30 = APP_RES_PATH "/VOICE_ASSISTANT_30.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE31 = APP_RES_PATH "/VOICE_ASSISTANT_31.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE32 = APP_RES_PATH "/VOICE_ASSISTANT_32.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE33 = APP_RES_PATH "/VOICE_ASSISTANT_33.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE34 = APP_RES_PATH "/VOICE_ASSISTANT_34.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE35 = APP_RES_PATH "/VOICE_ASSISTANT_35.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE36 = APP_RES_PATH "/VOICE_ASSISTANT_36.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE37 = APP_RES_PATH "/VOICE_ASSISTANT_37.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE38 = APP_RES_PATH "/VOICE_ASSISTANT_38.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE39 = APP_RES_PATH "/VOICE_ASSISTANT_39.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE40 = APP_RES_PATH "/VOICE_ASSISTANT_40.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE41 = APP_RES_PATH "/VOICE_ASSISTANT_41.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE42 = APP_RES_PATH "/VOICE_ASSISTANT_42.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE43 = APP_RES_PATH "/VOICE_ASSISTANT_43.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE44 = APP_RES_PATH "/VOICE_ASSISTANT_44.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE45 = APP_RES_PATH "/VOICE_ASSISTANT_45.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE46 = APP_RES_PATH "/VOICE_ASSISTANT_46.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE47 = APP_RES_PATH "/VOICE_ASSISTANT_47.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE48 = APP_RES_PATH "/VOICE_ASSISTANT_48.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE49 = APP_RES_PATH "/VOICE_ASSISTANT_49.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE50 = APP_RES_PATH "/VOICE_ASSISTANT_50.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE51 = APP_RES_PATH "/VOICE_ASSISTANT_51.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE52 = APP_RES_PATH "/VOICE_ASSISTANT_52.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE53 = APP_RES_PATH "/VOICE_ASSISTANT_53.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE54 = APP_RES_PATH "/VOICE_ASSISTANT_54.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE55 = APP_RES_PATH "/VOICE_ASSISTANT_55.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE56 = APP_RES_PATH "/VOICE_ASSISTANT_56.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE57 = APP_RES_PATH "/VOICE_ASSISTANT_57.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE58 = APP_RES_PATH "/VOICE_ASSISTANT_58.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE59 = APP_RES_PATH "/VOICE_ASSISTANT_59.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE60 = APP_RES_PATH "/VOICE_ASSISTANT_60.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE61 = APP_RES_PATH "/VOICE_ASSISTANT_61.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE62 = APP_RES_PATH "/VOICE_ASSISTANT_62.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE63 = APP_RES_PATH "/VOICE_ASSISTANT_63.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE64 = APP_RES_PATH "/VOICE_ASSISTANT_64.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE65 = APP_RES_PATH "/VOICE_ASSISTANT_65.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE66 = APP_RES_PATH "/VOICE_ASSISTANT_66.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE67 = APP_RES_PATH "/VOICE_ASSISTANT_67.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE68 = APP_RES_PATH "/VOICE_ASSISTANT_68.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE69 = APP_RES_PATH "/VOICE_ASSISTANT_69.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE70 = APP_RES_PATH "/VOICE_ASSISTANT_70.bin"; - static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE71 = APP_RES_PATH "/VOICE_ASSISTANT_71.bin"; - static constexpr const char *PNG_APPLIST_VOCASSIST_IMAGE = APP_RES_PATH "/APPLIST_VOCASSIST_IMAGE.bin"; - - static constexpr const char *PNG_STEP_SHOE_IMAGE_PATH = APP_RES_PATH "/SHOE_IMAGE.bin"; - - static constexpr const char *PNG_A004_070_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_01.bin"; - static constexpr const char *PNG_A004_071_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_02.bin"; - static constexpr const char *PNG_A004_072_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_03.bin"; - static constexpr const char *PNG_A004_073_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_04.bin"; - static constexpr const char *PNG_A004_074_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_05.bin"; - static constexpr const char *PNG_A004_075_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_06.bin"; - static constexpr const char *PNG_A004_076_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_07.bin"; - static constexpr const char *PNG_A004_077_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_08.bin"; - static constexpr const char *PNG_A004_078_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_09.bin"; - static constexpr const char *PNG_A004_079_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_10.bin"; - static constexpr const char *PNG_A004_080_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_11.bin"; - static constexpr const char *PNG_A004_081_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_12.bin"; - static constexpr const char *PNG_A004_082_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_13.bin"; - static constexpr const char *PNG_A004_083_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_14.bin"; - static constexpr const char *PNG_A004_084_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_15.bin"; - static constexpr const char *PNG_A004_085_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_16.bin"; - static constexpr const char *PNG_A004_086_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_17.bin"; - static constexpr const char *PNG_A004_087_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_18.bin"; - static constexpr const char *PNG_A004_088_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_19.bin"; - - static constexpr const char *PNG_A019_080_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_01.bin"; - static constexpr const char *PNG_A019_081_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_02.bin"; - static constexpr const char *PNG_A019_082_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_03.bin"; - static constexpr const char *PNG_A019_083_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_04.bin"; - static constexpr const char *PNG_A019_084_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_05.bin"; - static constexpr const char *PNG_A019_085_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_06.bin"; - static constexpr const char *PNG_A019_086_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_07.bin"; - static constexpr const char *PNG_A019_087_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_08.bin"; - - static constexpr const char *PNG_A019_088_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_09.bin"; - static constexpr const char *PNG_A019_089_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_10.bin"; - static constexpr const char *PNG_A019_090_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_11.bin"; - static constexpr const char *PNG_A019_091_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_12.bin"; - static constexpr const char *PNG_A019_092_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_13.bin"; - static constexpr const char *PNG_A019_093_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_14.bin"; - static constexpr const char *PNG_A019_094_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_15.bin"; - static constexpr const char *PNG_A019_095_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_16.bin"; - static constexpr const char *PNG_BLUETOOTHEAR = APP_RES_PATH "/BLUETOOTHEAR.bin"; - // AppList - static constexpr const char *PNG_APPLIST_ALARM_IMAGE = APP_RES_PATH "/APPLIST_ALARM.bin"; // 闹钟 - static constexpr const char *PNG_APPLIST_SPO2_IMAGE = APP_RES_PATH "/APPLIST_SPO2.bin"; // 血氧 - static constexpr const char *PNG_APPLIST_SETTING_IMAGE = APP_RES_PATH "/APPLIST_SETTING.bin"; // 设置 - static constexpr const char *PNG_APPLIST_TEMP_IMAGE = APP_RES_PATH "/TEMP_IMAGE.bin"; // 体温 - - static constexpr const char *PNG_APPLIST_DIAL_IMAGE = APP_RES_PATH "/dial.bin"; // 表盘设置 - static constexpr const char *PNG_APPLIST_SPORT_IMAGE = APP_RES_PATH "/sport.bin"; // 活动 - static constexpr const char *PNG_APPLIST_HEARTRATE_IMAGE = APP_RES_PATH "/heart rate.bin"; // 心率 - static constexpr const char *PNG_APPLIST_TRAINING_IMAGE = APP_RES_PATH "/training.bin"; // 训练 - static constexpr const char *PNG_APPLIST_TRAINING_RECORD_IMAGE = APP_RES_PATH "/Training record.bin"; // 训练记录 - static constexpr const char *PNG_APPLIST_BLOODPRESSURE_IMAGE = APP_RES_PATH "/bloodpressure.bin"; // 睡眠 - static constexpr const char *PNG_APPLIST_GETPIC_IMAGE = APP_RES_PATH "/getpic.bin"; // 拍照 - static constexpr const char *PNG_APPLIST_BLOOD_IMAGE = APP_RES_PATH "/blood.bin"; // 血氧 - static constexpr const char *PNG_APPLIST_MUSIC_IMAGE = APP_RES_PATH "/music.bin"; // 音乐 - static constexpr const char *PNG_APPLIST_WEATHER_IMAGE = APP_RES_PATH "/weather.bin"; // 天气 - static constexpr const char *PNG_APPLIST_RECORD_IMAGE = APP_RES_PATH "/record.bin"; // 录音 - static constexpr const char *PNG_APPLIST_PHONE_IMAGE = APP_RES_PATH "/phone.bin"; // 电话 - static constexpr const char *PNG_APPLIST_CHRONOMETER_IMAGE = APP_RES_PATH "/chronometer.bin"; // 秒表 - static constexpr const char *PNG_APPLIST_COUNTDOWN_IMAGE = APP_RES_PATH "/countdown.bin"; // 计时器 - static constexpr const char *PNG_APPLIST_BLUETOOTH_IMAGE = APP_RES_PATH "/Bluetooth.bin"; // 蓝牙 - - // 室内步行 - static constexpr const char *PNG_APPLIST_WALK_IMAGE = APP_RES_PATH "/APPLIST_WALK.bin"; // Applist图标 - static constexpr const char *PNG_WALK_BACK_GROUND = APP_RES_PATH "/WALK_BACK_GROUND.bin"; - static constexpr const char *PNG_WALK_IMAGE = APP_RES_PATH "/INDOORWALK.bin"; - static constexpr const char *PNG_AEROBIC_IMAGE = APP_RES_PATH "/AEROBIC.bin"; - static constexpr const char *PNG_ANAEROBIC_IMAGE = APP_RES_PATH "/ANAEROBIC.bin"; - static constexpr const char *PNG_OPTIONS_BOX1_IMAGE = APP_RES_PATH "/OPTIONS_BOX1.bin"; - static constexpr const char *PNG_OPTIONS_BOX2_IMAGE = APP_RES_PATH "/OPTIONS_BOX2.bin"; - static constexpr const char *PNG_OPTIONS_BOX3_IMAGE = APP_RES_PATH "/OPTIONS_BOX3.bin"; - static constexpr const char *PNG_OPTIONS_BOX4_IMAGE = APP_RES_PATH "/OPTIONS_BOX4.bin"; - static constexpr const char *PNG_WALK_TIME_IMAGE = APP_RES_PATH "/TIME_IMAGE.bin"; - static constexpr const char *PNG_WALK_DISTANCES_IMAGE = APP_RES_PATH "/DISTANCES_IMAGE.bin"; - static constexpr const char *PNG_WALK_HEART_IMAGE = APP_RES_PATH "/HEART_IMAGE.bin"; - static constexpr const char *PNG_WALK_SPEED_IMAGE = APP_RES_PATH "/SPEED_IMAGE.bin"; - static constexpr const char *PNG_WALK_STEPS_IMAGE = APP_RES_PATH "/STEPS_IMAGE.bin"; - - static constexpr const char *PNG_APPLIST_UI_SAMPLE_IMAGE = APP_RES_PATH "/APPLIST_UI_SAMPLE.bin"; // Applist图标 -} - -#endif // UI_CONFIG_H +/* + * Copyright (c) CompanyNameMagicTag 2021-2021. All rights reserved. + * Description: UiConfig for application resource + * Author: + * Create: 2021-12-03 + */ + +#ifndef UI_CONFIG_H +#define UI_CONFIG_H + +#include +#include "ohos_types.h" +#include "graphic_config.h" + +namespace OHOS +{ +#ifndef UNUSED +#define UNUSED(x) ((void)(x)) +#endif + +#define LA_HORIZONTAL_RESOLUTION 400 // watch width +#define LA_VERTICAL_RESOLUTION 400 // watch height +#define NORMAL_BUTTON_WIDTH 100 // normal button width +#define NORMAL_BUTTON_HEIGHT 50 // normal button height +#define NORMAL_MARGIN 5 // normal margin +#define DIAL_SQUARE 250 // watch plate sauqre +#define SETTING_ITEM_HEIGHT 100 // setting item height +#define UN_OPACITY 255 // UN_OPACITY + +#define MILLESECOND 1 +#define SECOND 1000 // 1s 1000ms +#define MINUTE (60 * SECOND) // 1min 60s +#define HOUR (60 * MINUTE) // 1hour 60min + +#define FONT_COMMON 20 // 20px +#define X_DRAG_OFFSET 20 +#define DOUBLES 2 + +#define APP_RES_PATH "/user/res" +#define APP_MUSIC_PATH "/user/music" +#define APP_VIDEO_PATH "/user/video" + + static constexpr const char *CARD_CONFIG_PATH = "/user/cardconfig.bin"; + + static constexpr const char *CLOCK_IAMGES = APP_RES_PATH "/clock/clock.bin"; + static constexpr const char *PLAYER_IAMGES = APP_RES_PATH "/player/player.bin"; + static constexpr const char *COMPASS_IAMGES = APP_RES_PATH "/compass/compass.bin"; + static constexpr const char *DROPDOWN_IAMGES = APP_RES_PATH "/dropdown/dropdown.bin"; + static constexpr const char *HEART_IAMGES = APP_RES_PATH "/heart/heart.bin"; + static constexpr const char *PNG_BLUETOOTH_HINTS_PATH = APP_RES_PATH "/BLUETOOTH_HINTS.bin"; + static constexpr const char *PNG_BLOODOXYGEN_IMAGE_PATH = APP_RES_PATH "/BLOODOXYGEN_VIEW.bin"; + + static constexpr const char *PNG_BLOOD_ICON_ENTER = APP_RES_PATH "/BLOOD_ICON_ENTER.bin"; + + static constexpr const char *PNG_AGREEING_IMAGE_PATH = APP_RES_PATH "/AGREEING.bin"; + static constexpr const char *PNG_DISSGREE_IMAGE_PATH = APP_RES_PATH "/DISSGREE.bin"; + static constexpr const char *PNG_MICROPHONE_OPEN_IMAGE_PATH = APP_RES_PATH "/MICRO_PHONE_OPEN.bin"; + static constexpr const char *PNG_MICROPHONE_CLOSE_IMAGE_PATH = APP_RES_PATH "/MICRO_PHONE_CLOSE.bin"; + static constexpr const char *PNG_HANDUP_IMAGE_PATH = APP_RES_PATH "/HANDUP.bin"; + static constexpr const char *PNG_ANSWER_TMAGE_PATH = APP_RES_PATH "/ANSWER_PHONE.bin"; + static constexpr const char *PNG_CALLING_TMAGE_PATH = APP_RES_PATH "/CALLING_PHONE.bin"; + static constexpr const char *PNG_CALLER_TMAGE_PATH = APP_RES_PATH "/CALLER_LOG_IMAGE.bin"; + static constexpr const char *PNG_NO_CALLER_LOG_IMAGE = APP_RES_PATH "/NO_CALLER_LOG_IMAGE.bin"; + static constexpr const char *PNG_APPLIST_CALLER_IMAGE = APP_RES_PATH "/APPLIST_CALLER_IMAGE.bin"; + static constexpr const char *PNG_APPLIST_COMPASS_IMAGE = APP_RES_PATH "/APPLIST_COMPASS_IMAGE.bin"; + + static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_0 = APP_RES_PATH "/COUNTDOWN_IMAGE_01.bin"; + static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_1 = APP_RES_PATH "/COUNTDOWN_IMAGE_02.bin"; + static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_2 = APP_RES_PATH "/COUNTDOWN_IMAGE_03.bin"; + static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_3 = APP_RES_PATH "/COUNTDOWN_IMAGE_04.bin"; + static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_4 = APP_RES_PATH "/COUNTDOWN_IMAGE_05.bin"; + static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_5 = APP_RES_PATH "/COUNTDOWN_IMAGE_06.bin"; + static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_6 = APP_RES_PATH "/COUNTDOWN_IMAGE_07.bin"; + static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_7 = APP_RES_PATH "/COUNTDOWN_IMAGE_08.bin"; + static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_8 = APP_RES_PATH "/COUNTDOWN_IMAGE_09.bin"; + static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_9 = APP_RES_PATH "/COUNTDOWN_IMAGE_10.bin"; + static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_10 = APP_RES_PATH "/COUNTDOWN_IMAGE_11.bin"; + static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_11 = APP_RES_PATH "/COUNTDOWN_IMAGE_12.bin"; + static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_12 = APP_RES_PATH "/COUNTDOWN_IMAGE_13.bin"; + static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_13 = APP_RES_PATH "/COUNTDOWN_IMAGE_14.bin"; + static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_14 = APP_RES_PATH "/COUNTDOWN_IMAGE_15.bin"; + static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_15 = APP_RES_PATH "/COUNTDOWN_IMAGE_16.bin"; + static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_16 = APP_RES_PATH "/COUNTDOWN_IMAGE_17.bin"; + static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_17 = APP_RES_PATH "/COUNTDOWN_IMAGE_18.bin"; + static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_18 = APP_RES_PATH "/COUNTDOWN_IMAGE_19.bin"; + static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_19 = APP_RES_PATH "/COUNTDOWN_IMAGE_20.bin"; + static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_20 = APP_RES_PATH "/COUNTDOWN_IMAGE_21.bin"; + static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_21 = APP_RES_PATH "/COUNTDOWN_IMAGE_22.bin"; + static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_22 = APP_RES_PATH "/COUNTDOWN_IMAGE_23.bin"; + static constexpr const char *PNG_COUNTDOWN_TIME_IMAGE_23 = APP_RES_PATH "/COUNTDOWN_IMAGE_24.bin"; + + static constexpr const char *PNG_PROGRESS_BAR_TMAGE = APP_RES_PATH "/PROGRESS_BAR_TMAGE.bin"; + static constexpr const char *TEMP_WAITING = APP_RES_PATH "/TEMP_WAITING.bin"; + static constexpr const char *TEMP_REPORT = APP_RES_PATH "/TEMP_REPORT.bin"; + static constexpr const char *TEMP_POINT = APP_RES_PATH "/TEMP_POINT.bin"; + static constexpr const char *TEMP_REV_POINTER = APP_RES_PATH "/TEMP_REV_POINTER.bin"; + + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_0 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_02.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_1 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_03.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_2 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_04.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_3 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_05.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_4 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_06.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_5 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_07.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_6 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_08.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_7 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_09.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_8 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_10.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_9 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_11.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_10 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_12.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_11 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_13.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_12 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_14.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_13 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_15.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_14 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_16.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_15 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_17.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_16 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_18.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_17 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_19.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_18 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_20.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_19 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_21.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_20 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_22.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_21 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_23.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_22 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_24.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_23 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_25.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_24 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_26.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_25 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_27.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_26 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_28.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_27 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_29.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_28 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_30.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_29 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_31.bin"; + static constexpr const char *PNG_BLOOD_FLOW_IMAGE_30 = APP_RES_PATH "/BLOOD_FLOW_IMAGE_32.bin"; + + static constexpr const char *PNG_SOUNDBUTTON2 = APP_RES_PATH "/SOUND_IMAGE.bin"; + static constexpr const char *PNG_PULLBUTTON_FACE_IMAGE = APP_RES_PATH "/BLOOD_FLOW_IMAGE_01.bin"; + static constexpr const char *MUSIC_2 = APP_RES_PATH "/mp3_48k_caiqing.mp3"; + static constexpr const char *MUSIC_1 = APP_RES_PATH "/one.mp3"; + + static constexpr const char *PNG_SETTTING_BUTTON_IMAGE = APP_RES_PATH "/SETTTING_BUTTON.bin"; + static constexpr const char *PNG_BLUETOOTH_IMAGE = APP_RES_PATH "/BLUETOOTH_IMAGE.bin"; + static constexpr const char *PNG_WATCH_IMAGE = APP_RES_PATH "/WATCH_IMAGE.bin"; + static constexpr const char *PNG_PHONE_IMAGE = APP_RES_PATH "/PHONE_IMAGE.bin"; + static constexpr const char *PNG_REBOOT_BUTTON_IMAGE = APP_RES_PATH "/REBOOT_BUTTON.bin"; + static constexpr const char *PNG_SHUTDOWN_BUTTON_IMAGE = APP_RES_PATH "/SHUTDOWN_BUTTON.bin"; + static constexpr const char *PNG_SETTTING_REBOOT_IMAGE = APP_RES_PATH "/SETTTING_REBOOT.bin"; + static constexpr const char *PNG_SETTTING_SHUTDOWN_IMAGE = APP_RES_PATH "/SETTTING_SHUTDOWN.bin"; + + static constexpr const char *PNG_CONNECT_PHONE_IMAGE = APP_RES_PATH "/CONNECT_PHONE.bin"; + static constexpr const char *PNG_BLUETOOTH_STITLE = APP_RES_PATH "/BLUETOOTH_TITLE.bin"; + + static constexpr const char *PNG_DISPLAY_BRIGHTNESS = APP_RES_PATH "/DISPLAY_BRIGHTNESS.bin"; // 显示与亮度 + static constexpr const char *PNG_BLUETOOTH = APP_RES_PATH "/BLUETOOTH.bin"; // 蓝牙 + static constexpr const char *PNG_SOUND_VIBRATION = APP_RES_PATH "/SOUND_VIBRATION.bin"; // 声音与震动 + static constexpr const char *PNG_SECONDARY_FUNCTION = APP_RES_PATH "/QUICK_ACCESS.bin"; // 辅助功能 + static constexpr const char *PNG_SYSTEM = APP_RES_PATH "/SYSTEM.bin"; // 系统 + + static constexpr const char *PNG_NEW_DEVICE = APP_RES_PATH "/NEW_DEVICE.bin"; + static constexpr const char *PNG_BT_LIST = APP_RES_PATH "/BT_LIST.bin"; + static constexpr const char *PNG_SELECTION_BOX = APP_RES_PATH "/SELECTION_BOX.bin"; + static constexpr const char *PNG_GANTAN = APP_RES_PATH "/GANTAN.bin"; + static constexpr const char *PNG_RIGHT = APP_RES_PATH "/RIGHT.bin"; + + static constexpr const char *PNG_NEW_WLAN_WIFI = APP_RES_PATH "/FULL_SIGNAL_OPEN.bin"; + static constexpr const char *FULL_SIGNAL_ENCRYPTION = APP_RES_PATH "/FULL_SIGNAL_ENCRYPTION.bin"; + + static constexpr const char *PNG_MAIN_FACE_IMAGE = APP_RES_PATH "/MAIN_FACE_IMAGE.bin"; + static constexpr const char *B024_009_IMAGE_PATH = APP_RES_PATH "/HOURHAND.bin"; + static constexpr const char *B024_010_IMAGE_PATH = APP_RES_PATH "/SECONDHAND.bin"; + static constexpr const char *B024_011_IMAGE_PATH = APP_RES_PATH "/MINUTEHAND.bin"; + static constexpr const char *ALARM_ADD_BUTTON_PATH = APP_RES_PATH "/BLUE_ADD.bin"; + static constexpr const char *ALARM_ADD_BUTTON_PATH_IMAGE = APP_RES_PATH "/ALARM_ADD_BACKGROUND.bin"; //闹钟增加背景图片 + static constexpr const char *ALARM_CLOCK_CLOSE_ADD_PATH = APP_RES_PATH "/CLOSE_RING_CLOCK.bin"; + static constexpr const char *ALARM_CLOCK_ADD_PATH = APP_RES_PATH "/POP_UP_CLOCK.bin"; + static constexpr const char *ALARM_CLOCK_POP_ADD_PATH = APP_RES_PATH "/RING_CLOCK.bin"; + static constexpr const char *ALARM_DELETE_ADD_PATH = APP_RES_PATH "/DELETE.bin"; + static constexpr const char *ALARM_TRUE_ADD_PATH = APP_RES_PATH "/TRUE_ADD.bin"; + static constexpr const char *TEMP_MEASURE = APP_RES_PATH "/TEMP_MEASURE.bin"; + static constexpr const char *TEMP_UP_DROP = APP_RES_PATH "/TEMP_UP_DROP.bin"; + static constexpr const char *TEMP_EXIT = APP_RES_PATH "/TEMP_EXIT.bin"; + static constexpr const char *TEMP_ROTATE = APP_RES_PATH "/TEMP_ROTATE.bin"; + static constexpr const char *TEMP_ICON_ENTER = APP_RES_PATH "/TEMP_ICON_ENTER.bin"; + static constexpr const char *TEMP_BACKGROUND = APP_RES_PATH "/TEMP_BACKGROUND.bin"; + static constexpr const char *TEMP_WARN = APP_RES_PATH "/TEMP_WARN.bin"; + static constexpr const char *TEMP_LITTLE_MEASURE = APP_RES_PATH "/TEMP_LITTLE_MEASURE.bin"; + static constexpr const char *TEMP_HOT = APP_RES_PATH "/TEMP_HOT.bin"; + static constexpr const char *TEMP_COLD = APP_RES_PATH "/TEMP_COLD.bin"; + static constexpr const char *TEMP_LIT_TIP = APP_RES_PATH "/TEMP_LIT_TIP.bin"; + static constexpr const char *TEMP_ABOUT_STUDY = APP_RES_PATH "/TEMP_ABOUT_STUDY.bin"; + static constexpr const char *TEMP_TRUE = APP_RES_PATH "/TEMP_TRUE.bin"; + static constexpr const char *TEMP_DELETE = APP_RES_PATH "/TEMP_DELETE.bin"; + + static constexpr const char *COMPASS_CALIBRATE_IMAGE = APP_RES_PATH "/COMPASS_CALIBRATE_IMAGE.bin"; + static constexpr const char *PNG_SETTING_NEXT_IMAGE = APP_RES_PATH "/SETTING_NEXT.bin"; // 箭头图片 + static constexpr const char *PNG_SETTING_BACKGROUND_IMAGE = APP_RES_PATH "/SETTING_BACKGROUND.bin"; // 按钮的背景图片 + static constexpr const char *PNG_BRIGHTNESS_CONTROL_VECTOR = APP_RES_PATH "/BringhtnessContuolVector.bin"; // 调节亮度图片 + static constexpr const char *PNG_VOLUME_CONTROL_VECTOR = APP_RES_PATH "/VolumeControlVector.bin"; // 调节音量图片 + static constexpr const char *PNG_SYSTEM_VOLUME_IMAGE = APP_RES_PATH "/SYSTEM_VOLUME.bin"; // 系统音量 + static constexpr const char *PNG_CALL_VOLUME_IMAGE = APP_RES_PATH "/CALL_VOLUME.bin"; // 通话音量 + static constexpr const char *PNG_MEDIA_VOLUME_IMAGE = APP_RES_PATH "/MEDIA_VOLUME.bin"; // 媒体音量 + static constexpr const char *PNG_CHECKBOX_OFF_IMAGE = APP_RES_PATH "/CHECKBOX_OFF.bin"; // checkbox未选中图片 + static constexpr const char *PNG_CHECKBOX_ON_IMAGE = APP_RES_PATH "/CHECKBOX_ON.bin"; // checkbox选中图片 + static constexpr const char *PNG_TOGGLEBUTTON_OFF_IMAGE = APP_RES_PATH "/TOGGLEBUTTON_OFF.bin"; // togglebuttton未选中图片 + static constexpr const char *PNG_TOGGLEBUTTON_ON_IMAGE = APP_RES_PATH "/TOGGLEBUTTON_ON.bin"; // togglebuttton选中图片 + static constexpr const char *PNG_SYSTEM_ABOUT_THE_WATCH_IMAGE = APP_RES_PATH "/SYSTEM_ABOUT_THE_WATCH.bin"; // 系统:关于手表 + static constexpr const char *PNG_SYSTEM_SUPERVISE_IMAGE = APP_RES_PATH "/SYSTEM_SUPERVISE.bin"; // 系统:监管 + static constexpr const char *PNG_SYSTEM_SYSTEM_LANGUAGE_IMAGE = APP_RES_PATH "/SYSTEM_SYSTEM_LANGUAGE.bin"; // 系统:系统语言 + static constexpr const char *PNG_SYSTEM_REBOOT_IMAGE = APP_RES_PATH "/SYSTEM_REBOOT.bin"; // 系统:重新启动 + static constexpr const char *PNG_SYSTEM_SHOUTDOWM_IMAGE = APP_RES_PATH "/SYSTEM_SHOUTDOWM.bin"; // 系统:关机 + static constexpr const char *PNG_SYSTEM_FACTORY_RESET_IMAGE = APP_RES_PATH "/SYSTEM_FACTORY_RESET.bin"; // 系统:恢复出厂设置 + static constexpr const char *PNG_REBOOT_IMAGE = APP_RES_PATH "/SYSTEM__Reboot.bin"; // 重新启动 + static constexpr const char *PNG_SHOUTDOWN_IMAGE = APP_RES_PATH "/SYSTEM_ShoutDown.bin"; // 关机 + static constexpr const char *PNG_FACTORY_RESET = APP_RES_PATH "/SYSTEM_FactoryReset.bin"; // 恢复出厂设置 + static constexpr const char *PNG_SYSTEM_CHECK_ON_IMAGE = APP_RES_PATH "/SYSTEM_CheckOn.bin"; // 勾 + static constexpr const char *PNG_SYSTEM_CHECK_OFF_IMAGE = APP_RES_PATH "/SYSTEM_CheckOff.bin"; // 叉 + static constexpr const char *PNG_FAST_TRAINING_ATTENTION_IMAGE = APP_RES_PATH "/FastTrainingAttentionVector.bin"; //快速训练选中操过三个后出现 + // 录音 + static constexpr const char *PNG_ANIMATOR1_IMAGE = APP_RES_PATH "/Record/animator1.bin"; + static constexpr const char *PNG_ANIMATOR2_IMAGE = APP_RES_PATH "/Record/animator2.bin"; + static constexpr const char *PNG_RECORD1_IMAGE = APP_RES_PATH "/Record/RECORD1.bin"; + static constexpr const char *PNG_RECORD2_IMAGE = APP_RES_PATH "/Record/RECORD2.bin"; + static constexpr const char *PNG_RECORD3_IMAGE = APP_RES_PATH "/Record/RECORD3.bin"; + static constexpr const char *PNG_UNIVERSAL_PAUSE_IMAGE = APP_RES_PATH "/Record/UNIVERSAL_PAUSE.bin"; // 暂停 + static constexpr const char *PNG_UNIVERSAL_PLAY_IMAGE = APP_RES_PATH "/Record/UNIVERSAL_PLAY.bin"; // 播放 + static constexpr const char *PNG_RECORD_PLAY_BACKGROUND_IMAGE = APP_RES_PATH "/Record/RECORD_PLAY_BACKGROUND.bin"; // 背景 + static constexpr const char *PNG_RECORD_PLAY_PROVE_IMAGE = APP_RES_PATH "/Record/RECORD_PLAY_PROVE.bin"; // 上一首 + static constexpr const char *PNG_RECORD_PLAY_NEXT_IMAGE = APP_RES_PATH "/Record/RECORD_PLAY_NEXT.bin"; // 下一首 + static constexpr const char *PNG_RECORD_PLAY_DELETE_IMAGE = APP_RES_PATH "/Record/RECORD_PLAY_DELETE.bin"; // 删除 + static constexpr const char *PNG_RECORD_PLAY_VOLUME_IMAGE = APP_RES_PATH "/Record/RECORD_PLAY_VOLUME.bin"; // 音量 + static constexpr const char *PNG_RECORD_DELETE_BACKGROUND_IMAGE = APP_RES_PATH "/Record/RECORD_DELETE_BACKGROUND.bin"; // 删除录音的背景图 + // 指南针 + static constexpr const char *PNG_COMPASS_BACKGROUND_IMAGE = APP_RES_PATH "/compass/compass0.bin"; // 指南针的背景图片 + static constexpr const char *PNG_COMPASS_PLACE_MARKER_BUTTON_IMAGE = APP_RES_PATH "/compass/compass1.bin"; // 指南针放置标记点按钮图片 + static constexpr const char *PNG_COMPASS_TRIANGULATION_IMAGE = APP_RES_PATH "/compass/compass2.bin"; // 指南针三角形图片 + static constexpr const char *PNG_COMPASS_PLACE_MAKER_BACKGROUND_IMAGE = APP_RES_PATH "/compass/PLACE_MAKER_BACKGROUND.bin"; // 指南针放置标记点背景图片 + static constexpr const char *PNG_COMPASS_MAKER_POINT_BACKGROUND_IMAGE = APP_RES_PATH "/compass/MAKER_POINT_BACKGROUND.bin"; // 指南针标记点介绍背景图片 + static constexpr const char *PNG_COMPASS_START_PATH_RECORD_IMAGE = APP_RES_PATH "/compass/COMPASS_START_PATH_RECORD.bin"; // 指南针开始路径记录图片 + static constexpr const char *PNG_COMPASS_END_PATH_RECORD_IMAGE = APP_RES_PATH "/compass/COMPASS_END_PATH_RECORD.bin"; // 指南针结束路径记录图片 + static constexpr const char *PNG_COMPASS_PATH_BACKTRACKING_IMAGE = APP_RES_PATH "/compass/COMPASS_PATH_BACKTRACKING.bin"; // 指南针路径回溯按钮图片 + static constexpr const char *PNG_COMPASS_RESET_PLACE_MAKER_BACKGROUND_IMAGE = APP_RES_PATH "/compass/COMPASS_RESET_PLACE_MAKER_BACKGROUND.bin"; // 指南针:重置标记点背景图片 + static constexpr const char *PNG_COMPASS_PATH_BACKTRACKING_DIRECT_IMAGE = APP_RES_PATH "/compass/COMPASS_PATH_BACKTRACKING_DIRECT.bin"; // 指南针:路径回溯中的方向箭头图片 + static constexpr const char *PNG_COMPASS_END_BACK_TRACKING_EARLY_IMAGE = APP_RES_PATH "/compass/COMPASS_END_BACK_TRACKING_EARLY.bin"; // 指南针提前结束路径回溯 + static constexpr const char *PNG_COMPASS_END_BACK_TRACKING_IMAGE = APP_RES_PATH "/compass/COMPASS_END_BACK_TRACKING.bin"; // 指南针结束路径回溯 + static constexpr const char *PNG_COMPASS_GPS_LOSS_IMAGE = APP_RES_PATH "/compass/COMPASS_GPS_LOSS.bin"; // 指南针GPS丢失背景图片 + // 睡眠记录 + static constexpr const char *PNG_SLEEP_ROOM_IMAGE = APP_RES_PATH "/SleepTime/room.bin"; + static constexpr const char *PNG_SLEEP_NOTE_IMAGE = APP_RES_PATH "/SleepTime/Ellipse 185.bin"; + static constexpr const char *PNG_SLEEP_UP_IMAGE = APP_RES_PATH "/SleepTime/up.bin"; + static constexpr const char *PNG_SLEEP_VECTOR_IMAGE = APP_RES_PATH "/SleepTime/Vector.bin"; + static constexpr const char *PNG_SLEEP_VECTOR2_IMAGE = APP_RES_PATH "/SleepTime/Vector2.bin"; + static constexpr const char *PNG_SLEEP_LINE1_IMAGE = APP_RES_PATH "/SleepTime/Line 1.bin"; + static constexpr const char *PNG_SLEEP_LINE3_IMAGE = APP_RES_PATH "/SleepTime/Line 3.bin"; + static constexpr const char *PNG_SLEEP_BUTTON_IMAGE = APP_RES_PATH "/SleepTime/button.bin"; + // 手势拍照 + static constexpr const char *PNG_GETPIC_CAMERA_IMAGE = APP_RES_PATH "/GetPic/camera.bin"; + static constexpr const char *PNG_GETPIC_PICBOUTTON_IMAGE = APP_RES_PATH "/GetPic/pic_button.bin"; + static constexpr const char *PNG_GETPIC_SMILE_IMAGE = APP_RES_PATH "/GetPic/smile.bin"; + // 省电模式 + static constexpr const char *PNG_SAVEELE_BATE_IMAGE = APP_RES_PATH "/Save_Ele/Battery-E.bin"; + static constexpr const char *PNG_SAVEELE_BATF_IMAGE = APP_RES_PATH "/Save_Ele/Battery-F.bin"; + static constexpr const char *PNG_SAVEELE_FINGER_IMAGE = APP_RES_PATH "/Save_Ele/finger.bin"; + // 血氧 + static constexpr const char *PNG_BLOOD_ERROR_IMAGE = APP_RES_PATH "/Blood/Error.bin"; + static constexpr const char *PNG_BLOOD_NOTE_IMAGE = APP_RES_PATH "/Blood/boutton.bin"; + //表盘切换 + static constexpr const char *PNG_DIAL_USER_IMAGE = APP_RES_PATH "/Dial/Diallogo.bin"; + static constexpr const char *PNG_PHONE_FINGER_IMAGE = APP_RES_PATH "/Save_Ele/finger.bin"; ++ //快速训练 ++ static constexpr const char *PNG_TRAING_BOUTTONMORE_IMAGE = APP_RES_PATH "/Training/More.bin"; ++ static constexpr const char *PNG_TRAING_BUTTONGRONG_IMAGE = APP_RES_PATH "/Training/Bouttonground.bin"; ++ static constexpr const char *PNG_TRAING_BUTTONGRONG2_IMAGE = APP_RES_PATH "/Training/Buttonground2.bin"; ++ static constexpr const char *PNG_TRAING_RIDINGBIG_IMAGE = APP_RES_PATH "/Training/riding-big2.bin"; ++ static constexpr const char *PNG_TRAING_RUNNINGBIG_IMAGE = APP_RES_PATH "/Training/running-big.bin"; ++ static constexpr const char *PNG_TRAING_WALKINGBIG_IMAGE = APP_RES_PATH "/Training/walking-big.bin"; ++ //static constexpr const char *PNG_TRAING_BUTTONGRONG1_IMAGE = APP_RES_PATH "/TRAING/More.bin"; ++ //static constexpr const char *PNG_TRAING_BUTTONGRONG1_IMAGE = APP_RES_PATH "/TRAING/More.bin"; ++ ++ + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE01 = APP_RES_PATH "/VOICE_ASSISTANT_01.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE02 = APP_RES_PATH "/VOICE_ASSISTANT_02.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE03 = APP_RES_PATH "/VOICE_ASSISTANT_03.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE04 = APP_RES_PATH "/VOICE_ASSISTANT_04.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE05 = APP_RES_PATH "/VOICE_ASSISTANT_05.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE06 = APP_RES_PATH "/VOICE_ASSISTANT_06.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE07 = APP_RES_PATH "/VOICE_ASSISTANT_07.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE08 = APP_RES_PATH "/VOICE_ASSISTANT_08.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE09 = APP_RES_PATH "/VOICE_ASSISTANT_09.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE10 = APP_RES_PATH "/VOICE_ASSISTANT_10.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE11 = APP_RES_PATH "/VOICE_ASSISTANT_11.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE12 = APP_RES_PATH "/VOICE_ASSISTANT_12.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE13 = APP_RES_PATH "/VOICE_ASSISTANT_13.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE14 = APP_RES_PATH "/VOICE_ASSISTANT_14.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE15 = APP_RES_PATH "/VOICE_ASSISTANT_15.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE16 = APP_RES_PATH "/VOICE_ASSISTANT_16.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE17 = APP_RES_PATH "/VOICE_ASSISTANT_17.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE18 = APP_RES_PATH "/VOICE_ASSISTANT_18.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE19 = APP_RES_PATH "/VOICE_ASSISTANT_19.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE20 = APP_RES_PATH "/VOICE_ASSISTANT_20.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE21 = APP_RES_PATH "/VOICE_ASSISTANT_21.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE22 = APP_RES_PATH "/VOICE_ASSISTANT_22.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE23 = APP_RES_PATH "/VOICE_ASSISTANT_23.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE24 = APP_RES_PATH "/VOICE_ASSISTANT_24.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE25 = APP_RES_PATH "/VOICE_ASSISTANT_25.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE26 = APP_RES_PATH "/VOICE_ASSISTANT_26.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE27 = APP_RES_PATH "/VOICE_ASSISTANT_27.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE28 = APP_RES_PATH "/VOICE_ASSISTANT_28.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE29 = APP_RES_PATH "/VOICE_ASSISTANT_29.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE30 = APP_RES_PATH "/VOICE_ASSISTANT_30.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE31 = APP_RES_PATH "/VOICE_ASSISTANT_31.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE32 = APP_RES_PATH "/VOICE_ASSISTANT_32.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE33 = APP_RES_PATH "/VOICE_ASSISTANT_33.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE34 = APP_RES_PATH "/VOICE_ASSISTANT_34.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE35 = APP_RES_PATH "/VOICE_ASSISTANT_35.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE36 = APP_RES_PATH "/VOICE_ASSISTANT_36.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE37 = APP_RES_PATH "/VOICE_ASSISTANT_37.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE38 = APP_RES_PATH "/VOICE_ASSISTANT_38.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE39 = APP_RES_PATH "/VOICE_ASSISTANT_39.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE40 = APP_RES_PATH "/VOICE_ASSISTANT_40.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE41 = APP_RES_PATH "/VOICE_ASSISTANT_41.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE42 = APP_RES_PATH "/VOICE_ASSISTANT_42.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE43 = APP_RES_PATH "/VOICE_ASSISTANT_43.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE44 = APP_RES_PATH "/VOICE_ASSISTANT_44.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE45 = APP_RES_PATH "/VOICE_ASSISTANT_45.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE46 = APP_RES_PATH "/VOICE_ASSISTANT_46.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE47 = APP_RES_PATH "/VOICE_ASSISTANT_47.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE48 = APP_RES_PATH "/VOICE_ASSISTANT_48.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE49 = APP_RES_PATH "/VOICE_ASSISTANT_49.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE50 = APP_RES_PATH "/VOICE_ASSISTANT_50.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE51 = APP_RES_PATH "/VOICE_ASSISTANT_51.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE52 = APP_RES_PATH "/VOICE_ASSISTANT_52.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE53 = APP_RES_PATH "/VOICE_ASSISTANT_53.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE54 = APP_RES_PATH "/VOICE_ASSISTANT_54.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE55 = APP_RES_PATH "/VOICE_ASSISTANT_55.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE56 = APP_RES_PATH "/VOICE_ASSISTANT_56.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE57 = APP_RES_PATH "/VOICE_ASSISTANT_57.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE58 = APP_RES_PATH "/VOICE_ASSISTANT_58.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE59 = APP_RES_PATH "/VOICE_ASSISTANT_59.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE60 = APP_RES_PATH "/VOICE_ASSISTANT_60.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE61 = APP_RES_PATH "/VOICE_ASSISTANT_61.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE62 = APP_RES_PATH "/VOICE_ASSISTANT_62.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE63 = APP_RES_PATH "/VOICE_ASSISTANT_63.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE64 = APP_RES_PATH "/VOICE_ASSISTANT_64.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE65 = APP_RES_PATH "/VOICE_ASSISTANT_65.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE66 = APP_RES_PATH "/VOICE_ASSISTANT_66.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE67 = APP_RES_PATH "/VOICE_ASSISTANT_67.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE68 = APP_RES_PATH "/VOICE_ASSISTANT_68.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE69 = APP_RES_PATH "/VOICE_ASSISTANT_69.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE70 = APP_RES_PATH "/VOICE_ASSISTANT_70.bin"; + static constexpr const char *PNG_VOICE_ASSISTANT_IMAGE71 = APP_RES_PATH "/VOICE_ASSISTANT_71.bin"; + static constexpr const char *PNG_APPLIST_VOCASSIST_IMAGE = APP_RES_PATH "/APPLIST_VOCASSIST_IMAGE.bin"; + + static constexpr const char *PNG_STEP_SHOE_IMAGE_PATH = APP_RES_PATH "/SHOE_IMAGE.bin"; + + static constexpr const char *PNG_A004_070_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_01.bin"; + static constexpr const char *PNG_A004_071_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_02.bin"; + static constexpr const char *PNG_A004_072_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_03.bin"; + static constexpr const char *PNG_A004_073_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_04.bin"; + static constexpr const char *PNG_A004_074_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_05.bin"; + static constexpr const char *PNG_A004_075_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_06.bin"; + static constexpr const char *PNG_A004_076_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_07.bin"; + static constexpr const char *PNG_A004_077_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_08.bin"; + static constexpr const char *PNG_A004_078_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_09.bin"; + static constexpr const char *PNG_A004_079_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_10.bin"; + static constexpr const char *PNG_A004_080_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_11.bin"; + static constexpr const char *PNG_A004_081_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_12.bin"; + static constexpr const char *PNG_A004_082_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_13.bin"; + static constexpr const char *PNG_A004_083_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_14.bin"; + static constexpr const char *PNG_A004_084_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_15.bin"; + static constexpr const char *PNG_A004_085_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_16.bin"; + static constexpr const char *PNG_A004_086_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_17.bin"; + static constexpr const char *PNG_A004_087_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_18.bin"; + static constexpr const char *PNG_A004_088_IMAGE_PATH = APP_RES_PATH "/HEARTBEAT_IMAGE_19.bin"; + + static constexpr const char *PNG_A019_080_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_01.bin"; + static constexpr const char *PNG_A019_081_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_02.bin"; + static constexpr const char *PNG_A019_082_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_03.bin"; + static constexpr const char *PNG_A019_083_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_04.bin"; + static constexpr const char *PNG_A019_084_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_05.bin"; + static constexpr const char *PNG_A019_085_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_06.bin"; + static constexpr const char *PNG_A019_086_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_07.bin"; + static constexpr const char *PNG_A019_087_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_08.bin"; + + static constexpr const char *PNG_A019_088_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_09.bin"; + static constexpr const char *PNG_A019_089_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_10.bin"; + static constexpr const char *PNG_A019_090_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_11.bin"; + static constexpr const char *PNG_A019_091_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_12.bin"; + static constexpr const char *PNG_A019_092_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_13.bin"; + static constexpr const char *PNG_A019_093_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_14.bin"; + static constexpr const char *PNG_A019_094_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_15.bin"; + static constexpr const char *PNG_A019_095_IMAGE_PATH = APP_RES_PATH "/BLUETOOTH_IMAGE_16.bin"; + static constexpr const char *PNG_BLUETOOTHEAR = APP_RES_PATH "/BLUETOOTHEAR.bin"; + // AppList + static constexpr const char *PNG_APPLIST_ALARM_IMAGE = APP_RES_PATH "/APPLIST_ALARM.bin"; // 闹钟 + static constexpr const char *PNG_APPLIST_SPO2_IMAGE = APP_RES_PATH "/APPLIST_SPO2.bin"; // 血氧 + static constexpr const char *PNG_APPLIST_SETTING_IMAGE = APP_RES_PATH "/APPLIST_SETTING.bin"; // 设置 + static constexpr const char *PNG_APPLIST_TEMP_IMAGE = APP_RES_PATH "/TEMP_IMAGE.bin"; // 体温 + + static constexpr const char *PNG_APPLIST_DIAL_IMAGE = APP_RES_PATH "/dial.bin"; // 表盘设置 + static constexpr const char *PNG_APPLIST_SPORT_IMAGE = APP_RES_PATH "/sport.bin"; // 活动 + static constexpr const char *PNG_APPLIST_HEARTRATE_IMAGE = APP_RES_PATH "/heart rate.bin"; // 心率 + static constexpr const char *PNG_APPLIST_TRAINING_IMAGE = APP_RES_PATH "/training.bin"; // 训练 + static constexpr const char *PNG_APPLIST_TRAINING_RECORD_IMAGE = APP_RES_PATH "/Training record.bin"; // 训练记录 + static constexpr const char *PNG_APPLIST_BLOODPRESSURE_IMAGE = APP_RES_PATH "/bloodpressure.bin"; // 睡眠 + static constexpr const char *PNG_APPLIST_GETPIC_IMAGE = APP_RES_PATH "/getpic.bin"; // 拍照 + static constexpr const char *PNG_APPLIST_BLOOD_IMAGE = APP_RES_PATH "/blood.bin"; // 血氧 + static constexpr const char *PNG_APPLIST_MUSIC_IMAGE = APP_RES_PATH "/music.bin"; // 音乐 + static constexpr const char *PNG_APPLIST_WEATHER_IMAGE = APP_RES_PATH "/weather.bin"; // 天气 + static constexpr const char *PNG_APPLIST_RECORD_IMAGE = APP_RES_PATH "/record.bin"; // 录音 + static constexpr const char *PNG_APPLIST_PHONE_IMAGE = APP_RES_PATH "/phone.bin"; // 电话 + static constexpr const char *PNG_APPLIST_CHRONOMETER_IMAGE = APP_RES_PATH "/chronometer.bin"; // 秒表 + static constexpr const char *PNG_APPLIST_COUNTDOWN_IMAGE = APP_RES_PATH "/countdown.bin"; // 计时器 + static constexpr const char *PNG_APPLIST_BLUETOOTH_IMAGE = APP_RES_PATH "/Bluetooth.bin"; // 蓝牙 + + // 室内步行 + static constexpr const char *PNG_APPLIST_WALK_IMAGE = APP_RES_PATH "/APPLIST_WALK.bin"; // Applist图标 + static constexpr const char *PNG_WALK_BACK_GROUND = APP_RES_PATH "/WALK_BACK_GROUND.bin"; + static constexpr const char *PNG_WALK_IMAGE = APP_RES_PATH "/INDOORWALK.bin"; + static constexpr const char *PNG_AEROBIC_IMAGE = APP_RES_PATH "/AEROBIC.bin"; + static constexpr const char *PNG_ANAEROBIC_IMAGE = APP_RES_PATH "/ANAEROBIC.bin"; + static constexpr const char *PNG_OPTIONS_BOX1_IMAGE = APP_RES_PATH "/OPTIONS_BOX1.bin"; + static constexpr const char *PNG_OPTIONS_BOX2_IMAGE = APP_RES_PATH "/OPTIONS_BOX2.bin"; + static constexpr const char *PNG_OPTIONS_BOX3_IMAGE = APP_RES_PATH "/OPTIONS_BOX3.bin"; + static constexpr const char *PNG_OPTIONS_BOX4_IMAGE = APP_RES_PATH "/OPTIONS_BOX4.bin"; + static constexpr const char *PNG_WALK_TIME_IMAGE = APP_RES_PATH "/TIME_IMAGE.bin"; + static constexpr const char *PNG_WALK_DISTANCES_IMAGE = APP_RES_PATH "/DISTANCES_IMAGE.bin"; + static constexpr const char *PNG_WALK_HEART_IMAGE = APP_RES_PATH "/HEART_IMAGE.bin"; + static constexpr const char *PNG_WALK_SPEED_IMAGE = APP_RES_PATH "/SPEED_IMAGE.bin"; + static constexpr const char *PNG_WALK_STEPS_IMAGE = APP_RES_PATH "/STEPS_IMAGE.bin"; + + static constexpr const char *PNG_APPLIST_UI_SAMPLE_IMAGE = APP_RES_PATH "/APPLIST_UI_SAMPLE.bin"; // Applist图标 +} + +#endif // UI_CONFIG_H diff --cc code/sdk/application/wearable/nativeapp/nativelauncher/src/NativeLauncher.cpp index c02a2dfc8,4c6e8c8d5..9ec97dc5d --- a/code/sdk/application/wearable/nativeapp/nativelauncher/src/NativeLauncher.cpp +++ b/code/sdk/application/wearable/nativeapp/nativelauncher/src/NativeLauncher.cpp @@@ -1,1088 -1,1073 +1,1099 @@@ -/* - * Copyright (c) 2020-2021 CompanyNameMagicTag. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "NativeLauncher.h" -#include "MainView.h" -#include "MainPresenter.h" -#include "SliceProxy.h" -#include "AbilitySliceProxy.h" -#include "wearable_log.h" -#include "MainViewSample.h" -#include "MainPresenterSample.h" -#include "SettingView.h" -#include "SettingPresenter.h" -#include "ApplistView.h" -#include "ApplistPresenter.h" -#include "BloodOxygenView.h" -#include "BloodOxygenPresenter.h" -#include "CallerLogView.h" -#include "CallerLogPresenter.h" -#include "MainCallingView.h" -#include "MainCallingPresenter.h" -#include "ActivityPresenter.h" -#include "MainAlarmView.h" -#include "AlarmPresenter.h" -#include "AlarmPopUpPresenter.h" -#include "AlarmPopUpView.h" -#include "MainBluetoothView.h" -#include "BluetoothPresenter.h" -#include "PlayersModel.h" -#include "HealthModel.h" -#include "PresenterTask.h" -#include "MainCompassPresenter.h" -#include "MainCompassView.h" -#include "CallerLogModel.h" -#include "VocassistPresenter.h" -#include "MainVocassistView.h" -#include "VocassistModel.h" -#include "ConnectPhonePresenter.h" -#include "ConnectPhoneView.h" -#include "ScreenModels.h" -#include "TempMainView.h" -#include "TempPresenter.h" -#include "IndoorWalkPresenter.h" -#include "IndoorWalkView.h" -#include "RebootView.h" -#include "RebootPresenter.h" -#include "UISampleView.h" -#include "UISamplePresenter.h" -#include "BluetoothHeadsetEvent.h" -#include "graphic_hardware_config.h" -#include "graphic_service.h" -#include "common/graphic_startup.h" -#include "saveele/include/SaveEleView.h" -#include "saveele/include/SaveElePresenter.h" -#include "saveele/include/SaveBatView.h" -#include "saveele/include/SaveBatPresenter.h" -#include "sleep/include/SleepView.h" -#include "sleep/include/SleepPresenter.h" -#include "sleep/include/SleepTimeView.h" -#include "sleep/include/SleepTimePresenter.h" -#include "sleep/include/SleepActView.h" -#include "sleep/include/SleepActPresenter.h" -#include "getpic/include/GetPicView.h" -#include "getpic/include/GetPicPresenter.h" -#include "getpic/include/TakePicView.h" -#include "getpic/include/TakePicPresenter.h" -#include "phone/include/PhoneView.h" -#include "phone/include/PhonePresenter.h" -#include "phone/include/PhoneCallView.h" -#include "phone/include/PhoneCallPresenter.h" -#include "phone/include/PhoneDirView.h" -#include "phone/include/PhoneDirPresenter.h" -#include "phone/include/PhoneCallingView.h" -#include "phone/include/PhoneCallingPresenter.h" -#include "phone/include/PhoneCallupView.h" -#include "phone/include/PhoneCallupPresenter.h" -#include "phone/include/PhoneRingView.h" -#include "phone/include/PhoneRingPresenter.h" -#include "blood/include/BloodView.h" -#include "blood/include/BloodPresenter.h" -#include "blood/include/BloodCheckPresenter.h" -#include "blood/include/BloodCheckView.h" -#include "blood/include/BloodShowPresenter.h" -#include "blood/include/BloodShowView.h" -#include "blood/include/BloodErrorPresenter.h" -#include "blood/include/BloodNoteView.h" -#include "blood/include/BloodNotePresenter.h" -#include "dial/include/DialPresenter.h" -#include "dial/include/DialView.h" -#include "heartrate/include/HeartRemindPresenter.h" -#include "heartrate/include/HeartRemindView.h" -#include "traing/include/TraingPresenter.h" -#include "traing/include/TraingView.h" -#include "displaybrightness/include/DisplayBrightnessPresenter.h" -#include "displaybrightness/include/DisplayBrightnessView.h" -#include "bluetoothofsetting/include/BlueToothOfSettingPresenter.h" -#include "bluetoothofsetting/include/BlueToothOfSettingView.h" -#include "displaybrightness/include/BrightnessControlPresenter.h" -#include "displaybrightness/include/BrightnessControlView.h" -#include "displaybrightness/include/ScreenDurationPresenter.h" -#include "displaybrightness/include/ScreenDurationView.h" -#include "soundandvibration/include/SoundAndVibrationPresenter.h" -#include "soundandvibration/include/SoundAndVibrationView.h" -#include "soundandvibration/include/SystemVolumePresenter.h" -#include "soundandvibration/include/SystemVolumeView.h" -#include "quickaccess/include/QuickAccessPresenter.h" -#include "quickaccess/include/QuickAccessView.h" -#include "system/include/SystemPresenter.h" -#include "system/include/SystemView.h" -#include "system/include/SystemAboutPresenter.h" -#include "system/include/SystemAboutView.h" -#include "system/include/SystemSupervisePresenter.h" -#include "system/include/SystemSuperviseView.h" -#include "system/include/SystemLanguagePresenter.h" -#include "system/include/SystemLanguageView.h" -#include "system/include/SystemRebootPresenter.h" -#include "system/include/SystemRebootView.h" -#include "system/include/SystemShoutDownPresenter.h" -#include "system/include/SystemShoutDownView.h" -#include "system/include/SystemFactoryResetPresenter.h" -#include "system/include/SystemFactoryResetView.h" -#include "record/include/RecordPresenter.h" -#include "record/include/RecordView.h" -#include "record/include/RecordListPresenter.h" -#include "record/include/RecordListView.h" -#include "record/include/RecordPlayPresenter.h" -#include "record/include/RecordPlayView.h" -#include "record/include/RecordDeletePresenter.h" -#include "record/include/RecordDeleteView.h" -#include "record/include/RecordGoingPresenter.h" -#include "record/include/RecordGoingView.h" -#include "PlaceMakerCompassPresenter.h" -#include "PlaceMakerCompassView.h" -#include "MakerPointCompassPresenter.h" -#include "MakerPointCompassView.h" -#include "StartPathRecordCompassPresenter.h" -#include "StartPathRecordCompassView.h" -#include "EndPathRecordCompassPresenter.h" -#include "EndPathRecordCompassView.h" -#include "PathBackTrackingCompassPresenter.h" -#include "PathBackTrackingCompassView.h" -#include "ResetPlaceMakerCompassPresenter.h" -#include "ResetPlaceMakerCompassView.h" -#include "PathRetracingCompassPresenter.h" -#include "PathRetracingCompassView.h" -#include "EndBackTrackingEarlyCompassPresenter.h" -#include "EndBackTrackingEarlyCompassView.h" -#include "EndBackTrackingCompassPresenter.h" -#include "EndBackTrackingCompassView.h" -#include "GPSLossCompassPresenter.h" -#include "GPSLossCompassView.h" -#include "secondaryfunction/include/SecondaryFunctionPresenter.h" -#include "secondaryfunction/include/SecondaryFunctionView.h" -#include "secondaryfunction/include/FastTrainingPresenter.h" -#include "secondaryfunction/include/FastTrainingView.h" -#include "secondaryfunction/include/FastTrainingAttentionPresenter.h" -#include "secondaryfunction/include/FastTrainingAttentionView.h" -namespace OHOS { -struct AppViewMapper -{ - AppViewId id; - void (NativeLauncher::*func)(void); -}; - -struct ViewIdToString -{ - AppViewId id; - char idForUikit[256]; -}; - -static const AppViewMapper SLICE_MAPPER[] = { - {VIEW_MAIN, &NativeLauncher::InitMainSlice}, - {VIEW_SETTING, &NativeLauncher::InitSettingSlice}, - {VIEW_APPLIST, &NativeLauncher::InitApplistSlice}, - {VIEW_MAIN_SAMPLE, &NativeLauncher::InitMainSampleSlice}, - {VIEW_MAIN_ALARM, &NativeLauncher::InitMainAlarmSlice}, - {VIEW_ALARM_POP_UP, &NativeLauncher::InitAlarmPopUpSlice}, - {VIEW_BLOODOXY_SAMPLE, &NativeLauncher::InitMainBloodOxyView}, - {VIEW_MAIN_ACTIVITY, &NativeLauncher::InitActivitySlice}, - {VIEW_CALLER_SAMPLE,&NativeLauncher::InitMainCallerLogView}, - {VIEW_MAEKPHONE_SAMPLE,&NativeLauncher::InitMainMakePhoneView}, - {VIEW_BLUETOOTH_EARPHONE, &NativeLauncher::InitBluetoothSlice}, - {VIEW_COMPASS, &NativeLauncher::InitCompassSlice}, - {VIEW_OFFLINEVOICE, &NativeLauncher::InitOfflineVoice}, - {VIEW_CONNECT_PHONE, &NativeLauncher::InitConnectPhoneSlice}, - {VIEW_MAIN_TEMP, &NativeLauncher::InitMainTempSlice}, - {VIEW_INDOORWALK, &NativeLauncher::InitIndoorWalkSlice}, - {VIEW_REBOOT, &NativeLauncher::InitRebootSlice}, - {VIEW_SAVEELE, &NativeLauncher::InitSaveEleSlice}, - {VIEW_SAVEBAT, &NativeLauncher::InitSaveBatSlice}, - {VIEW_BLOODPRESSURE, &NativeLauncher::InitSleepSlice}, - {VIEW_SLEEPTIME, &NativeLauncher::InitSleepTimeSlice}, - {VIEW_SLEEPACT, &NativeLauncher::InitSleepActSlice}, - {VIEW_GETPIC, &NativeLauncher::InitGetPicSlice}, //拍照 - {VIEW_TAKEPIC, &NativeLauncher::InitTakePicSlice}, - {VIEW_PHONE, &NativeLauncher::InitPhoneSlice}, //电话 - {VIEW_PHONECALL, &NativeLauncher::InitPhoneCallSlice}, - {VIEW_PHONEDIR, &NativeLauncher::InitPhoneDirSlice}, - {VIEW_PHONECALLING, &NativeLauncher::InitPhoneCallingSlice}, - {VIEW_PHONECALLUP, &NativeLauncher::InitPhoneCallupSlice}, - {VIEW_PHONERING, &NativeLauncher::InitPhoneRingSlice}, - {VIEW_BLOOD, &NativeLauncher::InitBloodSlice}, //血氧 - {VIEW_BLOODSHOW, &NativeLauncher::InitBloodShowSlice}, - {VIEW_BLOODCHECK, &NativeLauncher::InitBloodCheckSlice}, - {VIEW_BLOODERROR, &NativeLauncher::InitBloodErrorSlice}, - {VIEW_BLOODNOTE, &NativeLauncher::InitBloodNoteSlice}, - {VIEW_DIAL, &NativeLauncher::InitDialSlice}, //表盘 - {VIEW_HEARTRATEREMIND, &NativeLauncher::InitHeartRemindSlice}, - - {VIEW_TRAINING, &NativeLauncher::InitTraingSlice}, //训练 - - {VIEW_DISPLAY_BRIGHTNESS,&NativeLauncher::InitUIDisplayBrightnessSlice}, //显示与亮度的实例化地址 - {VIEW_CONNECT_BLUETOOTH,&NativeLauncher::InitBlueToothSettingSlice}, //蓝牙设置的实例化地址 - {VIEW_BRIGHTNESS_CONTROL,&NativeLauncher::InitBrightnessControlSlice}, //调节亮度的实例化地址 - {VIEW_SCREEN_DURATION,&NativeLauncher::InitScreenDurationSlice}, //亮屏时长实例化地址 - {VIEW_SOUND_VIBRATION,&NativeLauncher::InitSoundAndVibrationSlice}, //声音与震动实例化地址 - {VIEW_SYSTEM_VOLUME,&NativeLauncher::InitSystemVolumeSlice}, //系统音量 - {VIEW_QUICK_ACCESS,&NativeLauncher::InitQuickAccessSlice}, //快速访问实例化地址 - {VIEW_SYSTEM,&NativeLauncher::InitSystemSlice}, //系统实例化地址 - {VIEW_SYSTEM_ABOUT_WATCH,&NativeLauncher::InitSystemAboutWatchSlice}, //系统:关于手表实例化地址 - {VIEW_SYSTEM_SUPERVISE,&NativeLauncher::InitSystemSuperviseSlice}, //系统:监管实例化地址 - {VIEW_SYSTEM_SYSTEM_LANGUAGE,&NativeLauncher::InitSystemLanguageSlice}, //系统:系统语言实例化地址 - {VIEW_SYSTEM_REBOOT,&NativeLauncher::InitSystemRebootSlice}, //系统:重启实例化地址 - {VIEW_SYSTEM_SHOUTDOWN,&NativeLauncher::InitSystemShoutDownSlice}, //系统:关机实例化地址 - {VIEW_SYSTEM_FACTORY_RESET,&NativeLauncher::InitSystemFactoryResetSlice}, //系统:恢复出厂设置实例化地址 - {VIEW_RECORD,&NativeLauncher::InitRecordingSlice}, //录音实例化地址 - {VIEW_RECORD_LIST,&NativeLauncher::InitRecordingListSlice}, - {VIEW_RECORD_PLAY,&NativeLauncher::InitRecordingPlaySlice}, - {VIEW_RECORD_DELETE,&NativeLauncher::InitRecordingDeleteSlice}, - {VIEW_RECORD_DELETE,&NativeLauncher::InitRecordingDeleteSlice}, - {VIEW_RECORD_GOING,&NativeLauncher::InitRecordingGoingSlice}, - {VIEW_COMPASS_PLACE_MAKER,&NativeLauncher::InitCompassPlaceMakerSlice}, //指南针放置标记点实例化地址 - {VIEW_COMPASS_MAKER_POINT,&NativeLauncher::InitCompassMakerPointSlice}, //指南针标记点介绍实例化地址 - {VIEW_COMPASS_START_PATH_RECORD,&NativeLauncher::InitCompassStartPathRecordSlice}, //指南针开始路径记录实例化地址 - {VIEW_COMPASS_END_PATH_RECORD,&NativeLauncher::InitCompassEndPathRecordSlice}, //指南针结束路径记录实例化地址 - {VIEW_COMPASS_PATH_BACKTRACKING,&NativeLauncher::InitCompassPathBackTrackingSlice}, //指南针路径回溯实例化地址 - {VIEW_COMPASS_RESET_PLACE_MAKER,&NativeLauncher::InitCompassResetPlaceMakerSlice}, //指南针重置标记点实例化地址 - {VIEW_COMPASS_PATH_RETRACING,&NativeLauncher::InitCompassPathRetracingSlice}, //指南针路径回溯实例化地址 - {VIEW_COMPASS_END_BACK_TRACKING,&NativeLauncher::InitCompassEndBackTrackingSlice}, //指南针结束路径回溯 - {VIEW_COMPASS_END_BACK_TRACKING_EARLY,&NativeLauncher::InitCompassEndBackTrackingEarlySlice},//指南针提前结束路径回溯 - {VIEW_COMPASS_GPS_LOSS,&NativeLauncher::InitCompassGPSLossSlice}, //指南针GPS丢失实例化地址 - {VIEW_SECONDARY_FUNCTION,&NativeLauncher::InitSecondaryFunction}, //按键按下进入辅助功能 - {VIEW_FAST_TRAINING,&NativeLauncher::InitFastTrainingSlice}, //快速训练 - {VIEW_FAST_TRAINING_ATTENTION,&NativeLauncher::InitFastTrainingAttentionSlice}, //快速训练 - {VIEW_UISAMPLE, &NativeLauncher::InitUISampleSlice} -}; - -static const ViewIdToString VIEW_MAPPER[] = { - {VIEW_MAIN, "main"}, - {VIEW_SETTING, "setting"}, - {VIEW_APPLIST, "applist"}, - {VIEW_MAIN_SAMPLE, "mainViewSample"}, - {VIEW_MAIN_ALARM, "mainAlarmView"}, - {VIEW_ALARM_POP_UP, "alarmPopUpView"}, - {VIEW_BLOODOXY_SAMPLE, "bloodOxygenView"}, - {VIEW_MAIN_ACTIVITY, "mainActivityView"}, - {VIEW_CALLER_SAMPLE, "callerLogView"}, - {VIEW_MAEKPHONE_SAMPLE, "makePhoneView"}, - {VIEW_BLUETOOTH_EARPHONE, "mainBluetoothView"}, - {VIEW_COMPASS, "mainCompassView"}, - {VIEW_OFFLINEVOICE, "offlineVoiceView"}, - {VIEW_CONNECT_PHONE, "ConnectPhoneView"}, - {VIEW_MAIN_TEMP, "mianTempView"}, - {VIEW_INDOORWALK, "IndoorWalkView"}, - {VIEW_REBOOT, "RebootView"}, - {VIEW_DISPLAY_BRIGHTNESS,"DisplayBrightness"}, //显示与亮度 - {VIEW_CONNECT_BLUETOOTH,"BlueToothSetting"}, //蓝牙 - {VIEW_BRIGHTNESS_CONTROL,"BrightnessControl"}, //亮度调节 - {VIEW_SCREEN_DURATION,"ScreenDuration"}, //亮屏时长 - {VIEW_SOUND_VIBRATION,"SoundAndVibration"}, //声音与震动 - {VIEW_SYSTEM_VOLUME,"SystemVolume"}, //系统音量 - {VIEW_QUICK_ACCESS,"QuickAccess"}, //快速访问 - {VIEW_SYSTEM,"System"}, //系统 - {VIEW_SYSTEM_ABOUT_WATCH,"SystemAboutWatch"}, //系统:关于手表 - {VIEW_SYSTEM_SUPERVISE,"SystemSupervise"}, //系统:监管 - {VIEW_SYSTEM_SYSTEM_LANGUAGE,"SystemLanguage"}, //系统:系统语言 - {VIEW_SYSTEM_REBOOT,"SystemReboot"}, //系统:重新启动 - {VIEW_SYSTEM_SHOUTDOWN,"SystemShoutDown"}, //系统:关机 - {VIEW_SYSTEM_FACTORY_RESET,"SystemFactoryReset"},//系统:恢复出厂设置 - {VIEW_RECORD,"Recording"}, //录音 - {VIEW_RECORD_LIST,"RecordingList"}, - {VIEW_RECORD_PLAY,"RecordingPlay"}, - {VIEW_RECORD_DELETE,"RecordingDelete"}, - {VIEW_RECORD_GOING,"RecordingGoing"}, - {VIEW_COMPASS_PLACE_MAKER,"PlaceMakerCompass"}, //指南针放置标记点 - {VIEW_COMPASS_MAKER_POINT,"MakerPointCompass"}, //指南针标记点介绍 - {VIEW_COMPASS_START_PATH_RECORD,"StartPathRecordCompass"}, //指南针开始路径记录 - {VIEW_COMPASS_END_PATH_RECORD,"StartPathRecordCompass"}, //指南针结束路径记录 - {VIEW_COMPASS_PATH_BACKTRACKING,"PathBackTrackingCompass"}, //指南针路径回溯 - {VIEW_COMPASS_RESET_PLACE_MAKER,"ResetPlaceMakerCompass"}, //指南针重置路径标记点 - {VIEW_COMPASS_PATH_RETRACING,"PathRetracingCompass"}, //指南针路径回溯中 - {VIEW_COMPASS_END_BACK_TRACKING_EARLY,"EndBackTrackingEarlyCompass"},//指南针提前结束路径回溯 - {VIEW_COMPASS_END_BACK_TRACKING,"EndBackTrackingCompass"}, //指南针提前结束路径回溯 - {VIEW_COMPASS_GPS_LOSS,"GPSLossCompass"}, //指南针GPS丢失 - {VIEW_SECONDARY_FUNCTION,"SecondaryFunction"}, //辅助功能 - {VIEW_FAST_TRAINING,"FastTraining"}, //快速训练 - {VIEW_FAST_TRAINING_ATTENTION,"FastTrainingAttention"}, - {VIEW_UISAMPLE, "UISample"} -}; - -NativeLauncher::NativeLauncher() {} -NativeLauncher::~NativeLauncher() {} - -NativeLauncher &NativeLauncher::GetInstance(void) -{ - static NativeLauncher instance; - return instance; -} - -void NativeLauncher::InitNativeLauncher() { - GraphicStartUp::InitFontEngine(MEM_POOL_UI_FONT, MEM_POOL_UI_FONT_SIZE, OHOS::VECTOR_FONT_DIR, DEFAULT_VECTOR_FONT_FILENAME); - WEARABLE_LOGI(WEARABLE_LOG_MODULE_LAUNCHER_FWK, "NativeLauncher::InitNativeLauncher"); - // 初始化所有预加载slice - InitBtHeadsetEvent(); // 蓝牙ct和tg适配初始化 - InitAllNativeSlices(); - CallerLogModel::GetInstance()->InitPhoneService(); - PresenterTask::GetInstance()->Init(); - PlayersModel::GetInstance()->AudioInit(); - ActivityModel::GetInstance()->Init(); - ScreenModels::GetInstance()->InitCardConfig(); - VocassistModel::GetInstance()->Init(); - HeartModel::GetInstance()->Init(); - BluetoothModel::GetInstance()->Init(); - // 初始化默认首页 - ScreenModels::GetInstance()->PreLoadAppimages(); - NativeAbility::GetInstance().SetDefaultSliceId(VIEW_MAIN_SAMPLE); -} - -void NativeLauncher::InitAllNativeSlices(void) -{ - uint16_t size = sizeof(SLICE_MAPPER) / sizeof(SLICE_MAPPER[0]); - for (int index = 0; index < size; index++) { - if ((SLICE_MAPPER[index].id >= VIEW_MAX_INTER_APP)) { - continue; - } - (this->*(SLICE_MAPPER[index].func))(); - } - return; -} - -void NativeLauncher::InitMainSlice(void) -{ - SliceProxy *mainSlice = new AbilitySliceProxy; - if (mainSlice != nullptr) { - NativeAbility::GetInstance().AddSliceProxy(VIEW_MAIN, mainSlice); - } -} - - -void NativeLauncher::InitMainSampleSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitMainSampleSlice"); - SliceProxy *mainViewSample = new AbilitySliceProxy; - if (mainViewSample == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "mainViewSample is nullptr"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_MAIN_SAMPLE, mainViewSample); -} - -void NativeLauncher::InitMainAlarmSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitMainAlarmSlice"); - SliceProxy *mainAlarmView = new AbilitySliceProxy; - if (mainAlarmView == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "mainAlarmView is nullptr"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_MAIN_ALARM, mainAlarmView); -} - -void NativeLauncher::InitMainTempSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitMainTempSlice"); - SliceProxy *mainTempView = new AbilitySliceProxy; - if (mainTempView == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "mainTempView is nullptr"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_MAIN_TEMP, mainTempView); -} - -void NativeLauncher::InitCompassSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::MainCompassView"); - SliceProxy *mainCompassView = new AbilitySliceProxy; - if (mainCompassView == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "mainCompassView is nullptr"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_COMPASS, mainCompassView); -} - -void NativeLauncher::InitIndoorWalkSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::IndoorWalkView"); - SliceProxy *indoorWalkView = new AbilitySliceProxy; - if (indoorWalkView == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "indoorWalkView is nullptr"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_INDOORWALK, indoorWalkView); -} - -void NativeLauncher::InitRebootSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::RebootView"); - SliceProxy *rebootView = new AbilitySliceProxy; - if (rebootView == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "rebootView is nullptr"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_REBOOT, rebootView); -} - -void NativeLauncher::InitConnectPhoneSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::ConnectPhoneView"); - SliceProxy *connectPhoneView = new AbilitySliceProxy; - if (connectPhoneView == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "connectPhoneView is nullptr"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_CONNECT_PHONE, connectPhoneView); -} - -void NativeLauncher::InitAlarmPopUpSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitAlarmPopUpSlice"); - SliceProxy *alarmPopUpView = new AbilitySliceProxy; - if (alarmPopUpView == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "mainAlarmView is nullptr"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_ALARM_POP_UP, alarmPopUpView); -} - -void NativeLauncher::InitMainBloodOxyView(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitMainBloodOxyView"); - SliceProxy *bloodOxygenView = new AbilitySliceProxy; - if (bloodOxygenView == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "bloodOxygenView is nullptr"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_BLOODOXY_SAMPLE, bloodOxygenView); -} - -void NativeLauncher::InitMainMakePhoneView(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitMainMakePhoneView"); - SliceProxy *makePhoneView = new AbilitySliceProxy; - if (makePhoneView == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "makePhoneView is nullptr"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_MAEKPHONE_SAMPLE, makePhoneView); -} - -void NativeLauncher::InitMainCallerLogView(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitMainCallerLogView"); - SliceProxy *callerLogView = new AbilitySliceProxy; - if (callerLogView == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "callerLogView is nullptr"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_CALLER_SAMPLE, callerLogView); -} - -void NativeLauncher::InitActivitySlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitWeekStepSlice"); - SliceProxy *mainActivityView = new AbilitySliceProxy; - if (mainActivityView == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "mainActivityView is nullptr"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_MAIN_ACTIVITY, mainActivityView); -} - -void NativeLauncher::InitBluetoothSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeAbility::InitBluetoothSlice"); - SliceProxy *mainBluetoothView = new AbilitySliceProxy; - if (mainBluetoothView == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "mainBluetoothView is nullptr"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_BLUETOOTH_EARPHONE, mainBluetoothView); -} - -void NativeLauncher::InitSettingSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitSettingSlice"); - SliceProxy *settingView = new AbilitySliceProxy; - if (settingView == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "settingView is nullptr"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_SETTING, settingView); -} - -void NativeLauncher::InitApplistSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitApplistSlice"); - SliceProxy *applistView = new AbilitySliceProxy; - if (applistView == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "applistView is nullptr"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_APPLIST, applistView); -} - -void NativeLauncher::InitOfflineVoice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitOfflineVoice"); - SliceProxy *offlineVoiceView = new AbilitySliceProxy; - if (offlineVoiceView == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "offlineVoiceView is nullptr"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_OFFLINEVOICE, offlineVoiceView); -} - -void NativeLauncher::InitUISampleSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitUISampleSlice"); - SliceProxy *uisampleView = new AbilitySliceProxy; - if (uisampleView == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "uisampleView"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_UISAMPLE, uisampleView); -} -// 省电模式 -void NativeLauncher::InitSaveEleSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitSaveEleSlice"); - SliceProxy *saveeleview = new AbilitySliceProxy; - if (saveeleview == nullptr) - { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "saveeleview"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_SAVEELE, saveeleview); -} - -void NativeLauncher::InitSaveBatSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitSaveBatSlice"); - SliceProxy *savebatview = new AbilitySliceProxy; - if (savebatview == nullptr) - { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "savebatview"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_SAVEBAT, savebatview); -} -// 睡眠记录 -void NativeLauncher::InitSleepSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitSleepSlice"); - SliceProxy *sleepview = new AbilitySliceProxy; - if (sleepview == nullptr) - { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "sleepview"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_BLOODPRESSURE, sleepview); -} -void NativeLauncher::InitSleepTimeSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitSleepTimeSlice"); - SliceProxy *sleeptimeview = new AbilitySliceProxy; - if (sleeptimeview == nullptr) - { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "sleeptimeview"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_SLEEPTIME, sleeptimeview); -} -void NativeLauncher::InitSleepActSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitSleepActSlice"); - SliceProxy *sleepactview = new AbilitySliceProxy; - if (sleepactview == nullptr) - { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "sleepactview"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_SLEEPACT, sleepactview); -} - -void NativeLauncher::InitGetPicSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitGetPicSlice"); - SliceProxy *getpicview = new AbilitySliceProxy; - if (getpicview == nullptr) - { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "getpicview"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_GETPIC, getpicview); -} - -void NativeLauncher::InitTakePicSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitTakePicSlice"); - SliceProxy *takepicview = new AbilitySliceProxy; - if (takepicview == nullptr) - { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "takepicview"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_TAKEPIC, takepicview); -} - -void NativeLauncher::InitPhoneSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitPhoneSlice"); - SliceProxy *phoneview = new AbilitySliceProxy; - if (phoneview == nullptr) - { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "phoneview"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_PHONE, phoneview); -} - -void NativeLauncher::InitPhoneCallSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitPhoneCallSlice"); - SliceProxy *phonecallview = new AbilitySliceProxy; - if (phonecallview == nullptr) - { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "phonecallview"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_PHONECALL, phonecallview); -} - -void NativeLauncher::InitPhoneDirSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitPhoneCallSlice"); - SliceProxy *phonedirview = new AbilitySliceProxy; - if (phonedirview == nullptr) - { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "phonedirview"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_PHONEDIR, phonedirview); -} - -void NativeLauncher::InitPhoneCallingSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitPhoneCallingSlice"); - SliceProxy *phonecallingview = new AbilitySliceProxy; - if (phonecallingview == nullptr) - { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "phonecallingview"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_PHONECALLING, phonecallingview); -} - -void NativeLauncher::InitPhoneCallupSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitPhoneCallupSlice"); - SliceProxy *phonecallupview = new AbilitySliceProxy; - if (phonecallupview == nullptr) - { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "phonecallview"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_PHONECALLUP, phonecallupview); -} - -void NativeLauncher::InitPhoneRingSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitPhoneRingSlice"); - SliceProxy *phoneringview = new AbilitySliceProxy; - if (phoneringview == nullptr) - { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "phoneringview"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_PHONERING, phoneringview); -} - -void NativeLauncher::InitBloodSlice(void) //血氧 -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitBloodSlice"); - SliceProxy *bloodview = new AbilitySliceProxy; - if (bloodview == nullptr) - { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "bloodview"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_BLOOD, bloodview); -} - -void NativeLauncher::InitBloodShowSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitBloodSlice"); - SliceProxy *bloodshowview = new AbilitySliceProxy; - if (bloodshowview == nullptr) - { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "bloodview"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_BLOODSHOW, bloodshowview); -} - -void NativeLauncher::InitBloodErrorSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitBloodSlice"); - SliceProxy *blooderrorview = new AbilitySliceProxy; - if (blooderrorview == nullptr) - { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "bloodview"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_BLOODERROR, blooderrorview); -} - -void NativeLauncher::InitBloodCheckSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitBloodSlice"); - SliceProxy *bloodcheckview = new AbilitySliceProxy; - if (bloodcheckview == nullptr) - { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "bloodview"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_BLOODCHECK, bloodcheckview); -} - -void NativeLauncher::InitBloodNoteSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitBloodSlice"); - SliceProxy *bloodnoteview = new AbilitySliceProxy; - if (bloodnoteview == nullptr) - { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "bloodnoteview"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_BLOODNOTE, bloodnoteview); -} - -void NativeLauncher::InitDialSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitBloodSlice"); - SliceProxy *dialview = new AbilitySliceProxy; - if (dialview == nullptr) - { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "dialview"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_DIAL, dialview); -} - -void NativeLauncher::InitHeartRemindSlice(void) -{ - SliceProxy *heartremindview = new AbilitySliceProxy; - NativeAbility::GetInstance().AddSliceProxy(VIEW_HEARTRATEREMIND, heartremindview); -} - -void NativeLauncher::InitTraingSlice(void) -{ - SliceProxy *traingview = new AbilitySliceProxy; - NativeAbility::GetInstance().AddSliceProxy(VIEW_TRAINING, traingview); -} - - -//DisplayBrightness的实例化 -void NativeLauncher::InitUIDisplayBrightnessSlice(void) -{ - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitUISampleSlice"); - SliceProxy *uidisplaybrightnessView = new AbilitySliceProxy; - if (uidisplaybrightnessView == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "uidisplaybrightnessView"); - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_DISPLAY_BRIGHTNESS, uidisplaybrightnessView); -} - -void NativeLauncher::InitBlueToothSettingSlice(void) -{ - SliceProxy *bluetoothsetting = new AbilitySliceProxy; - if (bluetoothsetting == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_CONNECT_BLUETOOTH, bluetoothsetting); -} - -void NativeLauncher::InitBrightnessControlSlice(void) -{ - SliceProxy *brightnesscontrol = new AbilitySliceProxy; - if (brightnesscontrol == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_BRIGHTNESS_CONTROL, brightnesscontrol); -} - -void NativeLauncher::InitScreenDurationSlice(void) -{ - SliceProxy *ScreenDuration = new AbilitySliceProxy; - if (ScreenDuration == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_SCREEN_DURATION, ScreenDuration); -} - -void NativeLauncher::InitSoundAndVibrationSlice(void) //声音与震动 -{ - SliceProxy *SoundAndVibration = new AbilitySliceProxy; - if (SoundAndVibration == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_SOUND_VIBRATION, SoundAndVibration); -} - -void NativeLauncher::InitQuickAccessSlice(void) //快速访问 -{ - SliceProxy *QuickAccess = new AbilitySliceProxy; - if (QuickAccess == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_QUICK_ACCESS, QuickAccess); -} - -void NativeLauncher::InitSystemSlice(void) //系统 -{ - SliceProxy *system = new AbilitySliceProxy; - if (system == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_SYSTEM, system); -} -void NativeLauncher::InitSystemAboutWatchSlice(void) //系统:关于手表 -{ - SliceProxy *systemaboutwatch = new AbilitySliceProxy; - if (systemaboutwatch == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_SYSTEM_ABOUT_WATCH, systemaboutwatch); -} - -void NativeLauncher::InitSystemSuperviseSlice(void) //系统:监管 -{ - SliceProxy *systemsupervise = new AbilitySliceProxy; - if (systemsupervise == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_SYSTEM_SUPERVISE, systemsupervise); -} - -void NativeLauncher::InitSystemLanguageSlice(void) //系统:系统语言 -{ - SliceProxy *systemlanguage = new AbilitySliceProxy; - if (systemlanguage == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_SYSTEM_SYSTEM_LANGUAGE, systemlanguage); -} -void NativeLauncher::InitSystemRebootSlice(void) //系统:重新启动 -{ - SliceProxy *systemreboot = new AbilitySliceProxy; - if (systemreboot == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_SYSTEM_REBOOT, systemreboot); -} -void NativeLauncher::InitSystemShoutDownSlice(void) //系统:关机 -{ - SliceProxy *systemshoutdown = new AbilitySliceProxy; - if (systemshoutdown == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_SYSTEM_SHOUTDOWN, systemshoutdown); -} -void NativeLauncher::InitSystemFactoryResetSlice(void) //系统:恢复出厂设置 -{ - SliceProxy *systemfactoryreset = new AbilitySliceProxy; - if (systemfactoryreset == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_SYSTEM_FACTORY_RESET, systemfactoryreset); -} - -void NativeLauncher::InitSystemVolumeSlice(void) //系统音量 -{ - SliceProxy *systemvolume = new AbilitySliceProxy; - if (systemvolume == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_SYSTEM_VOLUME, systemvolume); -} - -void NativeLauncher::InitRecordingSlice(void) //录音 -{ - SliceProxy *record = new AbilitySliceProxy; - if (record == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_RECORD, record); -} - -void NativeLauncher::InitRecordingListSlice(void) -{ - SliceProxy *recordlist = new AbilitySliceProxy; - if (recordlist == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_RECORD_LIST, recordlist); -} - -void NativeLauncher::InitRecordingPlaySlice(void) -{ - SliceProxy *recordplay = new AbilitySliceProxy; - if (recordplay == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_RECORD_PLAY, recordplay); -} -void NativeLauncher::InitRecordingDeleteSlice(void) -{ - SliceProxy *recorddelete = new AbilitySliceProxy; - if (recorddelete == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_RECORD_DELETE, recorddelete); -} - -void NativeLauncher::InitRecordingGoingSlice(void) //正在录音 -{ - SliceProxy *recordgoing = new AbilitySliceProxy; - if (recordgoing == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_RECORD_GOING, recordgoing); -} - -void NativeLauncher::InitCompassPlaceMakerSlice(void) //指南针:放置标记点 -{ - - SliceProxy *placemakercompass = new AbilitySliceProxy; - if (placemakercompass == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_COMPASS_PLACE_MAKER, placemakercompass); -} - -void NativeLauncher::InitCompassMakerPointSlice(void) //指南针:标记点介绍 -{ - SliceProxy *makerpointcompass = new AbilitySliceProxy; - if (makerpointcompass == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_COMPASS_MAKER_POINT, makerpointcompass); -} - -void NativeLauncher::InitCompassStartPathRecordSlice(void) //指南针:开始路径记录 -{ - SliceProxy *startpathrecordcompass = new AbilitySliceProxy; - if (startpathrecordcompass == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_COMPASS_START_PATH_RECORD, startpathrecordcompass); -} - -void NativeLauncher::InitCompassEndPathRecordSlice(void) //指南针:结束路径记录 -{ - SliceProxy *endtpathrecordcompass = new AbilitySliceProxy; - if (endtpathrecordcompass == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_COMPASS_END_PATH_RECORD, endtpathrecordcompass); -} - -void NativeLauncher::InitCompassPathBackTrackingSlice(void) //指南针:路径回溯 -{ - SliceProxy *pathbacktrackingcompass = new AbilitySliceProxy; - if (pathbacktrackingcompass == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_COMPASS_PATH_BACKTRACKING, pathbacktrackingcompass); -} - -void NativeLauncher::InitCompassResetPlaceMakerSlice(void) //指南针:重置标记点 -{ - SliceProxy *resetplacemakercompass = new AbilitySliceProxy; - if (resetplacemakercompass == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_COMPASS_RESET_PLACE_MAKER, resetplacemakercompass); -} - -void NativeLauncher::InitCompassPathRetracingSlice(void) //指南针:路径回溯中 -{ - SliceProxy *pathretracingcompass = new AbilitySliceProxy; - if (pathretracingcompass == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_COMPASS_PATH_RETRACING, pathretracingcompass); -} -void NativeLauncher::InitCompassEndBackTrackingEarlySlice() //指南针:提前结束路径回溯 -{ - SliceProxy *endbacktrackingearlycompass = new AbilitySliceProxy; - if (endbacktrackingearlycompass == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_COMPASS_END_BACK_TRACKING_EARLY, endbacktrackingearlycompass); -} - -void NativeLauncher::InitCompassEndBackTrackingSlice(void) //指南针:结束路径回溯 -{ - SliceProxy *endbacktrackingecompass = new AbilitySliceProxy; - if (endbacktrackingecompass == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_COMPASS_END_BACK_TRACKING, endbacktrackingecompass); -} - -void NativeLauncher::InitCompassGPSLossSlice(void) //指南针:GPS丢失 -{ - SliceProxy *GPSlosscompass = new AbilitySliceProxy; - if (GPSlosscompass == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_COMPASS_GPS_LOSS, GPSlosscompass); -} - -void NativeLauncher::InitSecondaryFunction(void) //辅助功能 -{ - SliceProxy *secondaryfunction = new AbilitySliceProxy; - if (secondaryfunction == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_SECONDARY_FUNCTION, secondaryfunction); -} - -void NativeLauncher::InitFastTrainingSlice(void) -{ - SliceProxy *fasttraining = new AbilitySliceProxy; - if (fasttraining == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_FAST_TRAINING, fasttraining); -} - -void NativeLauncher::InitFastTrainingAttentionSlice(void) -{ - SliceProxy *fasttrainingattention = new AbilitySliceProxy; - if (fasttrainingattention == nullptr) { - return; - } - NativeAbility::GetInstance().AddSliceProxy(VIEW_FAST_TRAINING_ATTENTION, fasttrainingattention); -} -} +/* + * Copyright (c) 2020-2021 CompanyNameMagicTag. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "NativeLauncher.h" +#include "MainView.h" +#include "MainPresenter.h" +#include "SliceProxy.h" +#include "AbilitySliceProxy.h" +#include "wearable_log.h" +#include "MainViewSample.h" +#include "MainPresenterSample.h" +#include "SettingView.h" +#include "SettingPresenter.h" +#include "ApplistView.h" +#include "ApplistPresenter.h" +#include "BloodOxygenView.h" +#include "BloodOxygenPresenter.h" +#include "CallerLogView.h" +#include "CallerLogPresenter.h" +#include "MainCallingView.h" +#include "MainCallingPresenter.h" +#include "ActivityPresenter.h" +#include "MainAlarmView.h" +#include "AlarmPresenter.h" +#include "AlarmPopUpPresenter.h" +#include "AlarmPopUpView.h" +#include "MainBluetoothView.h" +#include "BluetoothPresenter.h" +#include "PlayersModel.h" +#include "HealthModel.h" +#include "PresenterTask.h" +#include "MainCompassPresenter.h" +#include "MainCompassView.h" +#include "CallerLogModel.h" +#include "VocassistPresenter.h" +#include "MainVocassistView.h" +#include "VocassistModel.h" +#include "ConnectPhonePresenter.h" +#include "ConnectPhoneView.h" +#include "ScreenModels.h" +#include "TempMainView.h" +#include "TempPresenter.h" +#include "IndoorWalkPresenter.h" +#include "IndoorWalkView.h" +#include "RebootView.h" +#include "RebootPresenter.h" +#include "UISampleView.h" +#include "UISamplePresenter.h" +#include "BluetoothHeadsetEvent.h" +#include "graphic_hardware_config.h" +#include "graphic_service.h" +#include "common/graphic_startup.h" +#include "saveele/include/SaveEleView.h" +#include "saveele/include/SaveElePresenter.h" +#include "saveele/include/SaveBatView.h" +#include "saveele/include/SaveBatPresenter.h" +#include "sleep/include/SleepView.h" +#include "sleep/include/SleepPresenter.h" +#include "sleep/include/SleepTimeView.h" +#include "sleep/include/SleepTimePresenter.h" +#include "sleep/include/SleepActView.h" +#include "sleep/include/SleepActPresenter.h" +#include "getpic/include/GetPicView.h" +#include "getpic/include/GetPicPresenter.h" +#include "getpic/include/TakePicView.h" +#include "getpic/include/TakePicPresenter.h" +#include "phone/include/PhoneView.h" +#include "phone/include/PhonePresenter.h" +#include "phone/include/PhoneCallView.h" +#include "phone/include/PhoneCallPresenter.h" +#include "phone/include/PhoneDirView.h" +#include "phone/include/PhoneDirPresenter.h" +#include "phone/include/PhoneCallingView.h" +#include "phone/include/PhoneCallingPresenter.h" +#include "phone/include/PhoneCallupView.h" +#include "phone/include/PhoneCallupPresenter.h" +#include "phone/include/PhoneRingView.h" +#include "phone/include/PhoneRingPresenter.h" +#include "blood/include/BloodView.h" +#include "blood/include/BloodPresenter.h" +#include "blood/include/BloodCheckPresenter.h" +#include "blood/include/BloodCheckView.h" +#include "blood/include/BloodShowPresenter.h" +#include "blood/include/BloodShowView.h" +#include "blood/include/BloodErrorPresenter.h" +#include "blood/include/BloodNoteView.h" +#include "blood/include/BloodNotePresenter.h" +#include "dial/include/DialPresenter.h" +#include "dial/include/DialView.h" +#include "heartrate/include/HeartRemindPresenter.h" +#include "heartrate/include/HeartRemindView.h" ++#include "traing/include/TraingPresenter.h" ++#include "traing/include/TraingView.h" +#include "displaybrightness/include/DisplayBrightnessPresenter.h" +#include "displaybrightness/include/DisplayBrightnessView.h" +#include "bluetoothofsetting/include/BlueToothOfSettingPresenter.h" +#include "bluetoothofsetting/include/BlueToothOfSettingView.h" +#include "displaybrightness/include/BrightnessControlPresenter.h" +#include "displaybrightness/include/BrightnessControlView.h" +#include "displaybrightness/include/ScreenDurationPresenter.h" +#include "displaybrightness/include/ScreenDurationView.h" +#include "soundandvibration/include/SoundAndVibrationPresenter.h" +#include "soundandvibration/include/SoundAndVibrationView.h" +#include "soundandvibration/include/SystemVolumePresenter.h" +#include "soundandvibration/include/SystemVolumeView.h" +#include "soundandvibration/include/CallVolumePresenter.h" +#include "soundandvibration/include/CallVolumeView.h" +#include "soundandvibration/include/MediaVolumePresenter.h" +#include "soundandvibration/include/MediaVolumeView.h" +#include "secondaryfunction/include/QuickAccessPresenter.h" +#include "secondaryfunction/include/QuickAccessView.h" +#include "system/include/SystemPresenter.h" +#include "system/include/SystemView.h" +#include "system/include/SystemAboutPresenter.h" +#include "system/include/SystemAboutView.h" +#include "system/include/SystemSupervisePresenter.h" +#include "system/include/SystemSuperviseView.h" +#include "system/include/SystemLanguagePresenter.h" +#include "system/include/SystemLanguageView.h" +#include "system/include/SystemRebootPresenter.h" +#include "system/include/SystemRebootView.h" +#include "system/include/SystemShoutDownPresenter.h" +#include "system/include/SystemShoutDownView.h" +#include "system/include/SystemFactoryResetPresenter.h" +#include "system/include/SystemFactoryResetView.h" +#include "record/include/RecordPresenter.h" +#include "record/include/RecordView.h" +#include "record/include/RecordListPresenter.h" +#include "record/include/RecordListView.h" +#include "record/include/RecordPlayPresenter.h" +#include "record/include/RecordPlayView.h" +#include "record/include/RecordDeletePresenter.h" +#include "record/include/RecordDeleteView.h" +#include "record/include/RecordGoingPresenter.h" +#include "record/include/RecordGoingView.h" +#include "PlaceMakerCompassPresenter.h" +#include "PlaceMakerCompassView.h" +#include "MakerPointCompassPresenter.h" +#include "MakerPointCompassView.h" +#include "StartPathRecordCompassPresenter.h" +#include "StartPathRecordCompassView.h" +#include "EndPathRecordCompassPresenter.h" +#include "EndPathRecordCompassView.h" +#include "PathBackTrackingCompassPresenter.h" +#include "PathBackTrackingCompassView.h" +#include "ResetPlaceMakerCompassPresenter.h" +#include "ResetPlaceMakerCompassView.h" +#include "PathRetracingCompassPresenter.h" +#include "PathRetracingCompassView.h" +#include "EndBackTrackingEarlyCompassPresenter.h" +#include "EndBackTrackingEarlyCompassView.h" +#include "EndBackTrackingCompassPresenter.h" +#include "EndBackTrackingCompassView.h" +#include "GPSLossCompassPresenter.h" +#include "GPSLossCompassView.h" +#include "secondaryfunction/include/SecondaryFunctionPresenter.h" +#include "secondaryfunction/include/SecondaryFunctionView.h" +#include "secondaryfunction/include/FastTrainingPresenter.h" +#include "secondaryfunction/include/FastTrainingView.h" +#include "secondaryfunction/include/FastTrainingAttentionPresenter.h" +#include "secondaryfunction/include/FastTrainingAttentionView.h" +namespace OHOS { +struct AppViewMapper +{ + AppViewId id; + void (NativeLauncher::*func)(void); +}; + +struct ViewIdToString +{ + AppViewId id; + char idForUikit[256]; +}; + +static const AppViewMapper SLICE_MAPPER[] = { + {VIEW_MAIN, &NativeLauncher::InitMainSlice}, + {VIEW_SETTING, &NativeLauncher::InitSettingSlice}, + {VIEW_APPLIST, &NativeLauncher::InitApplistSlice}, + {VIEW_MAIN_SAMPLE, &NativeLauncher::InitMainSampleSlice}, + {VIEW_MAIN_ALARM, &NativeLauncher::InitMainAlarmSlice}, + {VIEW_ALARM_POP_UP, &NativeLauncher::InitAlarmPopUpSlice}, + {VIEW_BLOODOXY_SAMPLE, &NativeLauncher::InitMainBloodOxyView}, + {VIEW_MAIN_ACTIVITY, &NativeLauncher::InitActivitySlice}, + {VIEW_CALLER_SAMPLE,&NativeLauncher::InitMainCallerLogView}, + {VIEW_MAEKPHONE_SAMPLE,&NativeLauncher::InitMainMakePhoneView}, + {VIEW_BLUETOOTH_EARPHONE, &NativeLauncher::InitBluetoothSlice}, + {VIEW_COMPASS, &NativeLauncher::InitCompassSlice}, + {VIEW_OFFLINEVOICE, &NativeLauncher::InitOfflineVoice}, + {VIEW_CONNECT_PHONE, &NativeLauncher::InitConnectPhoneSlice}, + {VIEW_MAIN_TEMP, &NativeLauncher::InitMainTempSlice}, + {VIEW_INDOORWALK, &NativeLauncher::InitIndoorWalkSlice}, + {VIEW_REBOOT, &NativeLauncher::InitRebootSlice}, + {VIEW_SAVEELE, &NativeLauncher::InitSaveEleSlice}, + {VIEW_SAVEBAT, &NativeLauncher::InitSaveBatSlice}, + {VIEW_BLOODPRESSURE, &NativeLauncher::InitSleepSlice}, + {VIEW_SLEEPTIME, &NativeLauncher::InitSleepTimeSlice}, + {VIEW_SLEEPACT, &NativeLauncher::InitSleepActSlice}, + {VIEW_GETPIC, &NativeLauncher::InitGetPicSlice}, //拍照 + {VIEW_TAKEPIC, &NativeLauncher::InitTakePicSlice}, + {VIEW_PHONE, &NativeLauncher::InitPhoneSlice}, //电话 + {VIEW_PHONECALL, &NativeLauncher::InitPhoneCallSlice}, + {VIEW_PHONEDIR, &NativeLauncher::InitPhoneDirSlice}, + {VIEW_PHONECALLING, &NativeLauncher::InitPhoneCallingSlice}, + {VIEW_PHONECALLUP, &NativeLauncher::InitPhoneCallupSlice}, + {VIEW_PHONERING, &NativeLauncher::InitPhoneRingSlice}, + {VIEW_BLOOD, &NativeLauncher::InitBloodSlice}, //血氧 + {VIEW_BLOODSHOW, &NativeLauncher::InitBloodShowSlice}, + {VIEW_BLOODCHECK, &NativeLauncher::InitBloodCheckSlice}, + {VIEW_BLOODERROR, &NativeLauncher::InitBloodErrorSlice}, + {VIEW_BLOODNOTE, &NativeLauncher::InitBloodNoteSlice}, + {VIEW_DIAL, &NativeLauncher::InitDialSlice}, //表盘 + {VIEW_HEARTRATEREMIND, &NativeLauncher::InitHeartRemindSlice}, + ++ {VIEW_TRAINING, &NativeLauncher::InitTraingSlice}, //训练 ++ + {VIEW_DISPLAY_BRIGHTNESS,&NativeLauncher::InitUIDisplayBrightnessSlice}, //显示与亮度的实例化地址 + {VIEW_CONNECT_BLUETOOTH,&NativeLauncher::InitBlueToothSettingSlice}, //蓝牙设置的实例化地址 + {VIEW_BRIGHTNESS_CONTROL,&NativeLauncher::InitBrightnessControlSlice}, //调节亮度的实例化地址 + {VIEW_SCREEN_DURATION,&NativeLauncher::InitScreenDurationSlice}, //亮屏时长实例化地址 + {VIEW_SOUND_VIBRATION,&NativeLauncher::InitSoundAndVibrationSlice}, //声音与震动实例化地址 + {VIEW_SYSTEM_VOLUME,&NativeLauncher::InitSystemVolumeSlice}, //系统音量 + {VIEW_CALL_VOLUME,&NativeLauncher::InitCallVolumeSlice}, //通话音量 + {VIEW_MEDIA_VOLUME,&NativeLauncher::InitMediaVolumeSlice}, //媒体音量 + {VIEW_QUICK_ACCESS,&NativeLauncher::InitQuickAccessSlice}, //快速访问实例化地址 + {VIEW_SYSTEM,&NativeLauncher::InitSystemSlice}, //系统实例化地址 + {VIEW_SYSTEM_ABOUT_WATCH,&NativeLauncher::InitSystemAboutWatchSlice}, //系统:关于手表实例化地址 + {VIEW_SYSTEM_SUPERVISE,&NativeLauncher::InitSystemSuperviseSlice}, //系统:监管实例化地址 + {VIEW_SYSTEM_SYSTEM_LANGUAGE,&NativeLauncher::InitSystemLanguageSlice}, //系统:系统语言实例化地址 + {VIEW_SYSTEM_REBOOT,&NativeLauncher::InitSystemRebootSlice}, //系统:重启实例化地址 + {VIEW_SYSTEM_SHOUTDOWN,&NativeLauncher::InitSystemShoutDownSlice}, //系统:关机实例化地址 + {VIEW_SYSTEM_FACTORY_RESET,&NativeLauncher::InitSystemFactoryResetSlice}, //系统:恢复出厂设置实例化地址 + {VIEW_RECORD,&NativeLauncher::InitRecordingSlice}, //录音实例化地址 + {VIEW_RECORD_LIST,&NativeLauncher::InitRecordingListSlice}, + {VIEW_RECORD_PLAY,&NativeLauncher::InitRecordingPlaySlice}, + {VIEW_RECORD_DELETE,&NativeLauncher::InitRecordingDeleteSlice}, + {VIEW_RECORD_DELETE,&NativeLauncher::InitRecordingDeleteSlice}, + {VIEW_RECORD_GOING,&NativeLauncher::InitRecordingGoingSlice}, + {VIEW_COMPASS_PLACE_MAKER,&NativeLauncher::InitCompassPlaceMakerSlice}, //指南针放置标记点实例化地址 + {VIEW_COMPASS_MAKER_POINT,&NativeLauncher::InitCompassMakerPointSlice}, //指南针标记点介绍实例化地址 + {VIEW_COMPASS_START_PATH_RECORD,&NativeLauncher::InitCompassStartPathRecordSlice}, //指南针开始路径记录实例化地址 + {VIEW_COMPASS_END_PATH_RECORD,&NativeLauncher::InitCompassEndPathRecordSlice}, //指南针结束路径记录实例化地址 + {VIEW_COMPASS_PATH_BACKTRACKING,&NativeLauncher::InitCompassPathBackTrackingSlice}, //指南针路径回溯实例化地址 + {VIEW_COMPASS_RESET_PLACE_MAKER,&NativeLauncher::InitCompassResetPlaceMakerSlice}, //指南针重置标记点实例化地址 + {VIEW_COMPASS_PATH_RETRACING,&NativeLauncher::InitCompassPathRetracingSlice}, //指南针路径回溯实例化地址 + {VIEW_COMPASS_END_BACK_TRACKING,&NativeLauncher::InitCompassEndBackTrackingSlice}, //指南针结束路径回溯 + {VIEW_COMPASS_END_BACK_TRACKING_EARLY,&NativeLauncher::InitCompassEndBackTrackingEarlySlice},//指南针提前结束路径回溯 + {VIEW_COMPASS_GPS_LOSS,&NativeLauncher::InitCompassGPSLossSlice}, //指南针GPS丢失实例化地址 + {VIEW_SECONDARY_FUNCTION,&NativeLauncher::InitSecondaryFunction}, //按键按下进入辅助功能 + {VIEW_FAST_TRAINING,&NativeLauncher::InitFastTrainingSlice}, //快速训练 + {VIEW_FAST_TRAINING_ATTENTION,&NativeLauncher::InitFastTrainingAttentionSlice}, //快速训练 + {VIEW_UISAMPLE, &NativeLauncher::InitUISampleSlice} +}; + +static const ViewIdToString VIEW_MAPPER[] = { + {VIEW_MAIN, "main"}, + {VIEW_SETTING, "setting"}, + {VIEW_APPLIST, "applist"}, + {VIEW_MAIN_SAMPLE, "mainViewSample"}, + {VIEW_MAIN_ALARM, "mainAlarmView"}, + {VIEW_ALARM_POP_UP, "alarmPopUpView"}, + {VIEW_BLOODOXY_SAMPLE, "bloodOxygenView"}, + {VIEW_MAIN_ACTIVITY, "mainActivityView"}, + {VIEW_CALLER_SAMPLE, "callerLogView"}, + {VIEW_MAEKPHONE_SAMPLE, "makePhoneView"}, + {VIEW_BLUETOOTH_EARPHONE, "mainBluetoothView"}, + {VIEW_COMPASS, "mainCompassView"}, + {VIEW_OFFLINEVOICE, "offlineVoiceView"}, + {VIEW_CONNECT_PHONE, "ConnectPhoneView"}, + {VIEW_MAIN_TEMP, "mianTempView"}, + {VIEW_INDOORWALK, "IndoorWalkView"}, + {VIEW_REBOOT, "RebootView"}, + {VIEW_DISPLAY_BRIGHTNESS,"DisplayBrightness"}, //显示与亮度 + {VIEW_CONNECT_BLUETOOTH,"BlueToothSetting"}, //蓝牙 + {VIEW_BRIGHTNESS_CONTROL,"BrightnessControl"}, //亮度调节 + {VIEW_SCREEN_DURATION,"ScreenDuration"}, //亮屏时长 + {VIEW_SOUND_VIBRATION,"SoundAndVibration"}, //声音与震动 + {VIEW_SYSTEM_VOLUME,"SystemVolume"}, //系统音量 + {VIEW_CALL_VOLUME,"CallVolume"}, //通话音量 + {VIEW_MEDIA_VOLUME,"MediaVolume"}, //媒体音量 + {VIEW_QUICK_ACCESS,"QuickAccess"}, //快速访问 + {VIEW_SYSTEM,"System"}, //系统 + {VIEW_SYSTEM_ABOUT_WATCH,"SystemAboutWatch"}, //系统:关于手表 + {VIEW_SYSTEM_SUPERVISE,"SystemSupervise"}, //系统:监管 + {VIEW_SYSTEM_SYSTEM_LANGUAGE,"SystemLanguage"}, //系统:系统语言 + {VIEW_SYSTEM_REBOOT,"SystemReboot"}, //系统:重新启动 + {VIEW_SYSTEM_SHOUTDOWN,"SystemShoutDown"}, //系统:关机 + {VIEW_SYSTEM_FACTORY_RESET,"SystemFactoryReset"},//系统:恢复出厂设置 + {VIEW_RECORD,"Recording"}, //录音 + {VIEW_RECORD_LIST,"RecordingList"}, + {VIEW_RECORD_PLAY,"RecordingPlay"}, + {VIEW_RECORD_DELETE,"RecordingDelete"}, + {VIEW_RECORD_GOING,"RecordingGoing"}, + {VIEW_COMPASS_PLACE_MAKER,"PlaceMakerCompass"}, //指南针放置标记点 + {VIEW_COMPASS_MAKER_POINT,"MakerPointCompass"}, //指南针标记点介绍 + {VIEW_COMPASS_START_PATH_RECORD,"StartPathRecordCompass"}, //指南针开始路径记录 + {VIEW_COMPASS_END_PATH_RECORD,"StartPathRecordCompass"}, //指南针结束路径记录 + {VIEW_COMPASS_PATH_BACKTRACKING,"PathBackTrackingCompass"}, //指南针路径回溯 + {VIEW_COMPASS_RESET_PLACE_MAKER,"ResetPlaceMakerCompass"}, //指南针重置路径标记点 + {VIEW_COMPASS_PATH_RETRACING,"PathRetracingCompass"}, //指南针路径回溯中 + {VIEW_COMPASS_END_BACK_TRACKING_EARLY,"EndBackTrackingEarlyCompass"},//指南针提前结束路径回溯 + {VIEW_COMPASS_END_BACK_TRACKING,"EndBackTrackingCompass"}, //指南针提前结束路径回溯 + {VIEW_COMPASS_GPS_LOSS,"GPSLossCompass"}, //指南针GPS丢失 + {VIEW_SECONDARY_FUNCTION,"SecondaryFunction"}, //辅助功能 + {VIEW_FAST_TRAINING,"FastTraining"}, //快速训练 + {VIEW_FAST_TRAINING_ATTENTION,"FastTrainingAttention"}, + {VIEW_UISAMPLE, "UISample"} +}; + +NativeLauncher::NativeLauncher() {} +NativeLauncher::~NativeLauncher() {} + +NativeLauncher &NativeLauncher::GetInstance(void) +{ + static NativeLauncher instance; + return instance; +} + +void NativeLauncher::InitNativeLauncher() { + GraphicStartUp::InitFontEngine(MEM_POOL_UI_FONT, MEM_POOL_UI_FONT_SIZE, OHOS::VECTOR_FONT_DIR, DEFAULT_VECTOR_FONT_FILENAME); + WEARABLE_LOGI(WEARABLE_LOG_MODULE_LAUNCHER_FWK, "NativeLauncher::InitNativeLauncher"); + // 初始化所有预加载slice + InitBtHeadsetEvent(); // 蓝牙ct和tg适配初始化 + InitAllNativeSlices(); + CallerLogModel::GetInstance()->InitPhoneService(); + PresenterTask::GetInstance()->Init(); + PlayersModel::GetInstance()->AudioInit(); + ActivityModel::GetInstance()->Init(); + ScreenModels::GetInstance()->InitCardConfig(); + VocassistModel::GetInstance()->Init(); + HeartModel::GetInstance()->Init(); + BluetoothModel::GetInstance()->Init(); + // 初始化默认首页 + ScreenModels::GetInstance()->PreLoadAppimages(); + NativeAbility::GetInstance().SetDefaultSliceId(VIEW_MAIN_SAMPLE); +} + +void NativeLauncher::InitAllNativeSlices(void) +{ + uint16_t size = sizeof(SLICE_MAPPER) / sizeof(SLICE_MAPPER[0]); + for (int index = 0; index < size; index++) { + if ((SLICE_MAPPER[index].id >= VIEW_MAX_INTER_APP)) { + continue; + } + (this->*(SLICE_MAPPER[index].func))(); + } + return; +} + +void NativeLauncher::InitMainSlice(void) +{ + SliceProxy *mainSlice = new AbilitySliceProxy; + if (mainSlice != nullptr) { + NativeAbility::GetInstance().AddSliceProxy(VIEW_MAIN, mainSlice); + } +} + + +void NativeLauncher::InitMainSampleSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitMainSampleSlice"); + SliceProxy *mainViewSample = new AbilitySliceProxy; + if (mainViewSample == nullptr) { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "mainViewSample is nullptr"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_MAIN_SAMPLE, mainViewSample); +} + +void NativeLauncher::InitMainAlarmSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitMainAlarmSlice"); + SliceProxy *mainAlarmView = new AbilitySliceProxy; + if (mainAlarmView == nullptr) { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "mainAlarmView is nullptr"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_MAIN_ALARM, mainAlarmView); +} + +void NativeLauncher::InitMainTempSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitMainTempSlice"); + SliceProxy *mainTempView = new AbilitySliceProxy; + if (mainTempView == nullptr) { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "mainTempView is nullptr"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_MAIN_TEMP, mainTempView); +} + +void NativeLauncher::InitCompassSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::MainCompassView"); + SliceProxy *mainCompassView = new AbilitySliceProxy; + if (mainCompassView == nullptr) { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "mainCompassView is nullptr"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_COMPASS, mainCompassView); +} + +void NativeLauncher::InitIndoorWalkSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::IndoorWalkView"); + SliceProxy *indoorWalkView = new AbilitySliceProxy; + if (indoorWalkView == nullptr) { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "indoorWalkView is nullptr"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_INDOORWALK, indoorWalkView); +} + +void NativeLauncher::InitRebootSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::RebootView"); + SliceProxy *rebootView = new AbilitySliceProxy; + if (rebootView == nullptr) { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "rebootView is nullptr"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_REBOOT, rebootView); +} + +void NativeLauncher::InitConnectPhoneSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::ConnectPhoneView"); + SliceProxy *connectPhoneView = new AbilitySliceProxy; + if (connectPhoneView == nullptr) { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "connectPhoneView is nullptr"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_CONNECT_PHONE, connectPhoneView); +} + +void NativeLauncher::InitAlarmPopUpSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitAlarmPopUpSlice"); + SliceProxy *alarmPopUpView = new AbilitySliceProxy; + if (alarmPopUpView == nullptr) { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "mainAlarmView is nullptr"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_ALARM_POP_UP, alarmPopUpView); +} + +void NativeLauncher::InitMainBloodOxyView(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitMainBloodOxyView"); + SliceProxy *bloodOxygenView = new AbilitySliceProxy; + if (bloodOxygenView == nullptr) { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "bloodOxygenView is nullptr"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_BLOODOXY_SAMPLE, bloodOxygenView); +} + +void NativeLauncher::InitMainMakePhoneView(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitMainMakePhoneView"); + SliceProxy *makePhoneView = new AbilitySliceProxy; + if (makePhoneView == nullptr) { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "makePhoneView is nullptr"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_MAEKPHONE_SAMPLE, makePhoneView); +} + +void NativeLauncher::InitMainCallerLogView(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitMainCallerLogView"); + SliceProxy *callerLogView = new AbilitySliceProxy; + if (callerLogView == nullptr) { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "callerLogView is nullptr"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_CALLER_SAMPLE, callerLogView); +} + +void NativeLauncher::InitActivitySlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitWeekStepSlice"); + SliceProxy *mainActivityView = new AbilitySliceProxy; + if (mainActivityView == nullptr) { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "mainActivityView is nullptr"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_MAIN_ACTIVITY, mainActivityView); +} + +void NativeLauncher::InitBluetoothSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeAbility::InitBluetoothSlice"); + SliceProxy *mainBluetoothView = new AbilitySliceProxy; + if (mainBluetoothView == nullptr) { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "mainBluetoothView is nullptr"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_BLUETOOTH_EARPHONE, mainBluetoothView); +} + +void NativeLauncher::InitSettingSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitSettingSlice"); + SliceProxy *settingView = new AbilitySliceProxy; + if (settingView == nullptr) { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "settingView is nullptr"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_SETTING, settingView); +} + +void NativeLauncher::InitApplistSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitApplistSlice"); + SliceProxy *applistView = new AbilitySliceProxy; + if (applistView == nullptr) { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "applistView is nullptr"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_APPLIST, applistView); +} + +void NativeLauncher::InitOfflineVoice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitOfflineVoice"); + SliceProxy *offlineVoiceView = new AbilitySliceProxy; + if (offlineVoiceView == nullptr) { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "offlineVoiceView is nullptr"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_OFFLINEVOICE, offlineVoiceView); +} + +void NativeLauncher::InitUISampleSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitUISampleSlice"); + SliceProxy *uisampleView = new AbilitySliceProxy; + if (uisampleView == nullptr) { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "uisampleView"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_UISAMPLE, uisampleView); +} +// 省电模式 +void NativeLauncher::InitSaveEleSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitSaveEleSlice"); + SliceProxy *saveeleview = new AbilitySliceProxy; + if (saveeleview == nullptr) + { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "saveeleview"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_SAVEELE, saveeleview); +} + +void NativeLauncher::InitSaveBatSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitSaveBatSlice"); + SliceProxy *savebatview = new AbilitySliceProxy; + if (savebatview == nullptr) + { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "savebatview"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_SAVEBAT, savebatview); +} +// 睡眠记录 +void NativeLauncher::InitSleepSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitSleepSlice"); + SliceProxy *sleepview = new AbilitySliceProxy; + if (sleepview == nullptr) + { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "sleepview"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_BLOODPRESSURE, sleepview); +} +void NativeLauncher::InitSleepTimeSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitSleepTimeSlice"); + SliceProxy *sleeptimeview = new AbilitySliceProxy; + if (sleeptimeview == nullptr) + { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "sleeptimeview"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_SLEEPTIME, sleeptimeview); +} +void NativeLauncher::InitSleepActSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitSleepActSlice"); + SliceProxy *sleepactview = new AbilitySliceProxy; + if (sleepactview == nullptr) + { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "sleepactview"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_SLEEPACT, sleepactview); +} + +void NativeLauncher::InitGetPicSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitGetPicSlice"); + SliceProxy *getpicview = new AbilitySliceProxy; + if (getpicview == nullptr) + { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "getpicview"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_GETPIC, getpicview); +} + +void NativeLauncher::InitTakePicSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitTakePicSlice"); + SliceProxy *takepicview = new AbilitySliceProxy; + if (takepicview == nullptr) + { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "takepicview"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_TAKEPIC, takepicview); +} + +void NativeLauncher::InitPhoneSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitPhoneSlice"); + SliceProxy *phoneview = new AbilitySliceProxy; + if (phoneview == nullptr) + { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "phoneview"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_PHONE, phoneview); +} + +void NativeLauncher::InitPhoneCallSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitPhoneCallSlice"); + SliceProxy *phonecallview = new AbilitySliceProxy; + if (phonecallview == nullptr) + { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "phonecallview"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_PHONECALL, phonecallview); +} + +void NativeLauncher::InitPhoneDirSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitPhoneCallSlice"); + SliceProxy *phonedirview = new AbilitySliceProxy; + if (phonedirview == nullptr) + { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "phonedirview"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_PHONEDIR, phonedirview); +} + +void NativeLauncher::InitPhoneCallingSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitPhoneCallingSlice"); + SliceProxy *phonecallingview = new AbilitySliceProxy; + if (phonecallingview == nullptr) + { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "phonecallingview"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_PHONECALLING, phonecallingview); +} + +void NativeLauncher::InitPhoneCallupSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitPhoneCallupSlice"); + SliceProxy *phonecallupview = new AbilitySliceProxy; + if (phonecallupview == nullptr) + { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "phonecallview"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_PHONECALLUP, phonecallupview); +} + +void NativeLauncher::InitPhoneRingSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitPhoneRingSlice"); + SliceProxy *phoneringview = new AbilitySliceProxy; + if (phoneringview == nullptr) + { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "phoneringview"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_PHONERING, phoneringview); +} + +void NativeLauncher::InitBloodSlice(void) //血氧 +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitBloodSlice"); + SliceProxy *bloodview = new AbilitySliceProxy; + if (bloodview == nullptr) + { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "bloodview"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_BLOOD, bloodview); +} + +void NativeLauncher::InitBloodShowSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitBloodSlice"); + SliceProxy *bloodshowview = new AbilitySliceProxy; + if (bloodshowview == nullptr) + { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "bloodview"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_BLOODSHOW, bloodshowview); +} + +void NativeLauncher::InitBloodErrorSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitBloodSlice"); + SliceProxy *blooderrorview = new AbilitySliceProxy; + if (blooderrorview == nullptr) + { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "bloodview"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_BLOODERROR, blooderrorview); +} + +void NativeLauncher::InitBloodCheckSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitBloodSlice"); + SliceProxy *bloodcheckview = new AbilitySliceProxy; + if (bloodcheckview == nullptr) + { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "bloodview"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_BLOODCHECK, bloodcheckview); +} + +void NativeLauncher::InitBloodNoteSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitBloodSlice"); + SliceProxy *bloodnoteview = new AbilitySliceProxy; + if (bloodnoteview == nullptr) + { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "bloodnoteview"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_BLOODNOTE, bloodnoteview); +} + +void NativeLauncher::InitDialSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitBloodSlice"); + SliceProxy *dialview = new AbilitySliceProxy; + if (dialview == nullptr) + { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "dialview"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_DIAL, dialview); +} + +void NativeLauncher::InitHeartRemindSlice(void) +{ + SliceProxy *heartremindview = new AbilitySliceProxy; + NativeAbility::GetInstance().AddSliceProxy(VIEW_HEARTRATEREMIND, heartremindview); +} + ++void NativeLauncher::InitTraingSlice(void) ++{ ++ SliceProxy *traingview = new AbilitySliceProxy; ++ NativeAbility::GetInstance().AddSliceProxy(VIEW_TRAINING, traingview); ++} ++ ++ +//DisplayBrightness的实例化 +void NativeLauncher::InitUIDisplayBrightnessSlice(void) +{ + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitUISampleSlice"); + SliceProxy *uidisplaybrightnessView = new AbilitySliceProxy; + if (uidisplaybrightnessView == nullptr) { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "uidisplaybrightnessView"); + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_DISPLAY_BRIGHTNESS, uidisplaybrightnessView); +} + +void NativeLauncher::InitBlueToothSettingSlice(void) +{ + SliceProxy *bluetoothsetting = new AbilitySliceProxy; + if (bluetoothsetting == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_CONNECT_BLUETOOTH, bluetoothsetting); +} + +void NativeLauncher::InitBrightnessControlSlice(void) +{ + SliceProxy *brightnesscontrol = new AbilitySliceProxy; + if (brightnesscontrol == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_BRIGHTNESS_CONTROL, brightnesscontrol); +} + +void NativeLauncher::InitScreenDurationSlice(void) +{ + SliceProxy *ScreenDuration = new AbilitySliceProxy; + if (ScreenDuration == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_SCREEN_DURATION, ScreenDuration); +} + +void NativeLauncher::InitSoundAndVibrationSlice(void) //声音与震动 +{ + SliceProxy *SoundAndVibration = new AbilitySliceProxy; + if (SoundAndVibration == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_SOUND_VIBRATION, SoundAndVibration); +} + +void NativeLauncher::InitQuickAccessSlice(void) //快速访问 +{ + SliceProxy *QuickAccess = new AbilitySliceProxy; + if (QuickAccess == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_QUICK_ACCESS, QuickAccess); +} + +void NativeLauncher::InitSystemSlice(void) //系统 +{ + SliceProxy *system = new AbilitySliceProxy; + if (system == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_SYSTEM, system); +} +void NativeLauncher::InitSystemAboutWatchSlice(void) //系统:关于手表 +{ + SliceProxy *systemaboutwatch = new AbilitySliceProxy; + if (systemaboutwatch == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_SYSTEM_ABOUT_WATCH, systemaboutwatch); +} + +void NativeLauncher::InitSystemSuperviseSlice(void) //系统:监管 +{ + SliceProxy *systemsupervise = new AbilitySliceProxy; + if (systemsupervise == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_SYSTEM_SUPERVISE, systemsupervise); +} + +void NativeLauncher::InitSystemLanguageSlice(void) //系统:系统语言 +{ + SliceProxy *systemlanguage = new AbilitySliceProxy; + if (systemlanguage == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_SYSTEM_SYSTEM_LANGUAGE, systemlanguage); +} +void NativeLauncher::InitSystemRebootSlice(void) //系统:重新启动 +{ + SliceProxy *systemreboot = new AbilitySliceProxy; + if (systemreboot == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_SYSTEM_REBOOT, systemreboot); +} +void NativeLauncher::InitSystemShoutDownSlice(void) //系统:关机 +{ + SliceProxy *systemshoutdown = new AbilitySliceProxy; + if (systemshoutdown == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_SYSTEM_SHOUTDOWN, systemshoutdown); +} +void NativeLauncher::InitSystemFactoryResetSlice(void) //系统:恢复出厂设置 +{ + SliceProxy *systemfactoryreset = new AbilitySliceProxy; + if (systemfactoryreset == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_SYSTEM_FACTORY_RESET, systemfactoryreset); +} + +void NativeLauncher::InitSystemVolumeSlice(void) //系统音量 +{ + SliceProxy *systemvolume = new AbilitySliceProxy; + if (systemvolume == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_SYSTEM_VOLUME, systemvolume); +} + +void NativeLauncher::InitCallVolumeSlice(void) //通话音量 +{ + SliceProxy *callvolume = new AbilitySliceProxy; + if (callvolume == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_CALL_VOLUME, callvolume); +} + +void NativeLauncher::InitMediaVolumeSlice(void) //媒体音量 +{ + SliceProxy *mediavolume = new AbilitySliceProxy; + if (mediavolume == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_MEDIA_VOLUME, mediavolume); +} + +void NativeLauncher::InitRecordingSlice(void) //录音 +{ + SliceProxy *record = new AbilitySliceProxy; + if (record == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_RECORD, record); +} + +void NativeLauncher::InitRecordingListSlice(void) +{ + SliceProxy *recordlist = new AbilitySliceProxy; + if (recordlist == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_RECORD_LIST, recordlist); +} + +void NativeLauncher::InitRecordingPlaySlice(void) +{ + SliceProxy *recordplay = new AbilitySliceProxy; + if (recordplay == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_RECORD_PLAY, recordplay); +} +void NativeLauncher::InitRecordingDeleteSlice(void) +{ + SliceProxy *recorddelete = new AbilitySliceProxy; + if (recorddelete == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_RECORD_DELETE, recorddelete); +} + +void NativeLauncher::InitRecordingGoingSlice(void) //正在录音 +{ + SliceProxy *recordgoing = new AbilitySliceProxy; + if (recordgoing == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_RECORD_GOING, recordgoing); +} + +void NativeLauncher::InitCompassPlaceMakerSlice(void) //指南针:放置标记点 +{ + + SliceProxy *placemakercompass = new AbilitySliceProxy; + if (placemakercompass == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_COMPASS_PLACE_MAKER, placemakercompass); +} + +void NativeLauncher::InitCompassMakerPointSlice(void) //指南针:标记点介绍 +{ + SliceProxy *makerpointcompass = new AbilitySliceProxy; + if (makerpointcompass == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_COMPASS_MAKER_POINT, makerpointcompass); +} + +void NativeLauncher::InitCompassStartPathRecordSlice(void) //指南针:开始路径记录 +{ + SliceProxy *startpathrecordcompass = new AbilitySliceProxy; + if (startpathrecordcompass == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_COMPASS_START_PATH_RECORD, startpathrecordcompass); +} + +void NativeLauncher::InitCompassEndPathRecordSlice(void) //指南针:结束路径记录 +{ + SliceProxy *endtpathrecordcompass = new AbilitySliceProxy; + if (endtpathrecordcompass == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_COMPASS_END_PATH_RECORD, endtpathrecordcompass); +} + +void NativeLauncher::InitCompassPathBackTrackingSlice(void) //指南针:路径回溯 +{ + SliceProxy *pathbacktrackingcompass = new AbilitySliceProxy; + if (pathbacktrackingcompass == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_COMPASS_PATH_BACKTRACKING, pathbacktrackingcompass); +} + +void NativeLauncher::InitCompassResetPlaceMakerSlice(void) //指南针:重置标记点 +{ + SliceProxy *resetplacemakercompass = new AbilitySliceProxy; + if (resetplacemakercompass == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_COMPASS_RESET_PLACE_MAKER, resetplacemakercompass); +} + +void NativeLauncher::InitCompassPathRetracingSlice(void) //指南针:路径回溯中 +{ + SliceProxy *pathretracingcompass = new AbilitySliceProxy; + if (pathretracingcompass == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_COMPASS_PATH_RETRACING, pathretracingcompass); +} +void NativeLauncher::InitCompassEndBackTrackingEarlySlice() //指南针:提前结束路径回溯 +{ + SliceProxy *endbacktrackingearlycompass = new AbilitySliceProxy; + if (endbacktrackingearlycompass == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_COMPASS_END_BACK_TRACKING_EARLY, endbacktrackingearlycompass); +} + +void NativeLauncher::InitCompassEndBackTrackingSlice(void) //指南针:结束路径回溯 +{ + SliceProxy *endbacktrackingecompass = new AbilitySliceProxy; + if (endbacktrackingecompass == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_COMPASS_END_BACK_TRACKING, endbacktrackingecompass); +} + +void NativeLauncher::InitCompassGPSLossSlice(void) //指南针:GPS丢失 +{ + SliceProxy *GPSlosscompass = new AbilitySliceProxy; + if (GPSlosscompass == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_COMPASS_GPS_LOSS, GPSlosscompass); +} + +void NativeLauncher::InitSecondaryFunction(void) //辅助功能 +{ + SliceProxy *secondaryfunction = new AbilitySliceProxy; + if (secondaryfunction == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_SECONDARY_FUNCTION, secondaryfunction); +} + +void NativeLauncher::InitFastTrainingSlice(void) +{ + SliceProxy *fasttraining = new AbilitySliceProxy; + if (fasttraining == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_FAST_TRAINING, fasttraining); +} + +void NativeLauncher::InitFastTrainingAttentionSlice(void) +{ + SliceProxy *fasttrainingattention = new AbilitySliceProxy; + if (fasttrainingattention == nullptr) { + return; + } + NativeAbility::GetInstance().AddSliceProxy(VIEW_FAST_TRAINING_ATTENTION, fasttrainingattention); +} +}