}
- // if(IsTestCHANGINGViewCreated())
- // {
- // ChangeViewcolorC(1);
- // }
- // else
- // {
- // if (CheckPriority(topic) && !uapi_dev_runtime_get_factory_test_status_flag()) //产测模式不弹充电弹窗
- // {
- // NotificationManager::GetInstance()->ShowNotify(ShowChargeingNotify, (uint16_t)topic, true);
- // }
- // }
-
- if (CheckPriority(topic) && !uapi_dev_runtime_get_factory_test_status_flag()) //产测模式不弹充电弹窗
+ if(IsTestCHANGINGViewCreated())
{
- NotificationManager::GetInstance()->ShowNotify(ShowChargeingNotify, (uint16_t)topic, true);
+ ChangeViewcolorC(1);
+ }
+ else
+ {
+ if (CheckPriority(topic) && !uapi_dev_runtime_get_factory_test_status_flag()) //产测模式不弹充电弹窗
+ {
+ NotificationManager::GetInstance()->ShowNotify(ShowChargeingNotify, (uint16_t)topic, true);
+ }
}
}
SaveEleModel::GetInstance()->SetChargeStatus(false);
- // if(IsTestCHANGINGViewCreated())
- // {
- // ChangeViewcolorC(0);
- // }
- // else
- // {
- // if(is_UIViewGroup_charge())
- // {
- // NotificationManager::GetInstance()->StopNotify();
- // }
- // }
-
- if(is_UIViewGroup_charge())
+ if(IsTestCHANGINGViewCreated())
{
- NotificationManager::GetInstance()->StopNotify();
+ ChangeViewcolorC(0);
+ }
+ else
+ {
+ if(is_UIViewGroup_charge())
+ {
+ NotificationManager::GetInstance()->StopNotify();
+ }
}
}
"transspecard",
"factorytest_service",
# "hid_service",
- # "producttest",
+ "producttest",
"ppg_hal",
"mag_hal",
"mag_service",
${ROOT_DIR}/middleware/services/gui/uikit/proprietary/src/utils/innerkits
${ROOT_DIR}/zhihui/services/factorytest_service
+ ${ROOT_DIR}/zhihui/drivers/
# /home/hcj/615/FD230/code/sdk/application/wearable/nativeapp/nativeui/player/include/PlayersPresenter.h
# /home/hcj/615/FD230/code/sdk/middleware/services/gui/uikit/ui/frameworks/font/glyphs_manager.h
# /home/hcj/615/FD230/code/sdk//UiServersMsg.h
virtual ~testPresenter();\r
\r
void OnStart() override;\r
- void OnPause() override;\r
- void OnResume() override;\r
- void OnStop() override;\r
\r
static testPresenter *GetInstance();\r
\r
bool OnClick(UIView &view, const ClickEvent &event) override;\r
bool OnDrag(UIView &view, const DragEvent &event) override;\r
bool OnDragEnd(UIView &view, const DragEvent &event) override;\r
- bool OnPress(UIView &view, const PressEvent &event);\r
+ bool OnPress(UIView &view, const PressEvent &event) override;\r
bool OnKeyAct(UIView &view, const KeyEvent &event);\r
bool OnRotate(UIView& view, const RotateEvent& event);\r
bool OnRotateEnd(UIView& view, const RotateEvent& event);\r
char hostname[20] = {0};
char result[256] = {0};
#ifdef SUPPORT_CAT1_SERVICE
+ #ifdef FD230_650
get_ping_hostname(hostname,sizeof(hostname));
get_ping_result(result,sizeof(result));
#endif
+ #endif
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "result : %s ",result);
OHOS::testPingView *pview = OHOS::testPingView::GetInstance();
pview->sethostname(hostname);
#include"ui_resource_string.h"\r
#endif\r
\r
+#include "NativeRegisterManager.h"\r
#include "NativeAbility.h"\r
#include "graphic_math.h"\r
#include "string.h"\r
#include "producttest/include/testPresenter.h"\r
-#include "font/font_global_manager.h"\r
-#include "font/ui_font.h"\r
+// #include "font/font_global_manager.h"\r
+// #include "font/ui_font.h"\r
#ifdef FD230\r
#include "languagecode/LanguageInit.h"\r
#endif\r
#include "components/ui_slider.h"\r
\r
#include "audio_capture_wrapper.h"\r
+#ifdef SUPPORT_CYWEE_SERVICE\r
#include "cywee_service.h"\r
+#endif\r
\r
#ifdef FD230\r
#include "factorytest_protocol.h"\r
\r
namespace OHOS\r
{\r
-\r
+ REGIST_SLICE(VIEW_TEST, testView, testPresenter);\r
\r
\r
static char* view_id_str[]=\r
\r
void testPresenter::OnStart()\r
{\r
-\r
- Presenter<testView>::OnStart();\r
- }\r
-\r
- void testPresenter::OnPause(void)\r
- {\r
-\r
- Presenter<testView>::OnPause();\r
}\r
\r
bool testPresenter::OnPress(UIView &view, const PressEvent &event)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemPresenter::");\r
- // for(int i=0;i<16;i++)\r
- // // {\r
- // // if(strcmp(view.GetViewId(),view_id_str[i]) == 0)\r
- // // {\r
- // // testTPView::GetInstance()->ChangeViewcolor(i);\r
- \r
- // // }\r
- // }\r
return true;\r
-\r
- }\r
-\r
- void testPresenter::OnResume(void)\r
- {\r
-\r
- Presenter<testView>::OnResume();\r
- }\r
-\r
- void testPresenter::OnStop(void)\r
- {\r
-\r
- Presenter<testView>::OnStop();\r
}\r
\r
bool testPresenter::OnDrag(UIView &view, const DragEvent &event)\r
}\r
if(strcmp(view.GetViewId(),"shutdown") == 0)\r
{\r
+ #ifdef FD230_650\r
uapi_poweroff_device();\r
+ #endif\r
return true;\r
}\r
if(strcmp(view.GetViewId(),"reset") == 0)\r
{\r
+ #ifdef FD230_650\r
uapi_reboot_device();\r
+ #endif\r
+\r
return true;\r
}\r
if(strcmp(view.GetViewId(),"deepsleep") == 0)\r
{\r
//TODO: close bt and cat1 , then deepsleep\r
+ #ifdef SUPPORT_CYWEE_SERVICE\r
do_cywee_service_check_msg(CYWEE_SERVICE_CMD_STOP_ACC,NULL);\r
+ #endif\r
stop_custom_ble_service();\r
LOS_Msleep(50);\r
uapi_set4GCapability(false);\r
}\r
if(strcmp(view.GetViewId(),"deep") == 0)\r
{ \r
+ #ifdef SUPPORT_CYWEE_SERVICE\r
do_cywee_service_check_msg(CYWEE_SERVICE_CMD_STOP_ACC,NULL);\r
+ #endif\r
stop_custom_ble_service();\r
LOS_Msleep(50);\r
uapi_set4GCapability(false);\r
if (SystemScrollView[thisView] == nullptr)\r
{\r
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemView::ChangeSystemView");\r
- RootView::GetInstance()->Add(SystemScrollView[thisView]);\r
+ AddViewToRootContainer(SystemScrollView[thisView]);\r
}\r
return true;\r
}\r
return false;\r
}\r
SystemScrollView[thisView] = test_about_view->SystemAbouTheWatchtInitIView(thisView);\r
- RootView::GetInstance()->Add(SystemScrollView[thisView]);\r
+ AddViewToRootContainer(SystemScrollView[thisView]);\r
}\r
return true;\r
}\r
return false;\r
}\r
SystemScrollView[thisView] = test_LCD_view->testLCDInitIView(thisView);\r
- RootView::GetInstance()->Add(SystemScrollView[thisView]);\r
+ AddViewToRootContainer(SystemScrollView[thisView]);\r
}\r
return true;\r
}\r
return false;\r
}\r
SystemScrollView[thisView] = test_TP_view->testTPInitIView(thisView);\r
- RootView::GetInstance()->Add(SystemScrollView[thisView]);\r
+ AddViewToRootContainer(SystemScrollView[thisView]);\r
}\r
return true;\r
}\r
return false;\r
}\r
SystemScrollView[thisView] = test_MG_view->testmagicInitIView(thisView);\r
- RootView::GetInstance()->Add(SystemScrollView[thisView]);\r
+ AddViewToRootContainer(SystemScrollView[thisView]);\r
}\r
return true;\r
}\r
return false;\r
}\r
SystemScrollView[thisView] = test_lum_view->testLUMInitIView(thisView);\r
- RootView::GetInstance()->Add(SystemScrollView[thisView]);\r
+ AddViewToRootContainer(SystemScrollView[thisView]);\r
}\r
return true;\r
}\r
return false;\r
}\r
SystemScrollView[thisView] = test_charging_view->testCHANINGInitIView(thisView);\r
- RootView::GetInstance()->Add(SystemScrollView[thisView]);\r
+ AddViewToRootContainer(SystemScrollView[thisView]);\r
}\r
return true;\r
}\r
return false;\r
}\r
SystemScrollView[thisView] = test_speak_view->testSPEAKInitIView(thisView);\r
- RootView::GetInstance()->Add(SystemScrollView[thisView]);\r
+ AddViewToRootContainer(SystemScrollView[thisView]);\r
}\r
return true;\r
}\r
return false;\r
}\r
SystemScrollView[thisView] = test_motor_view->testMOTORInitIView(thisView);\r
- RootView::GetInstance()->Add(SystemScrollView[thisView]);\r
+ AddViewToRootContainer(SystemScrollView[thisView]);\r
}\r
return true;\r
}\r
return false;\r
}\r
SystemScrollView[thisView] = test_cat1_view->testcat1InitIView(thisView);\r
- RootView::GetInstance()->Add(SystemScrollView[thisView]);\r
+ AddViewToRootContainer(SystemScrollView[thisView]);\r
}\r
#endif\r
return true;\r
return false;\r
}\r
SystemScrollView[thisView] = test_KEY_view->testBUTTONInitIView(thisView);\r
- RootView::GetInstance()->Add(SystemScrollView[thisView]);\r
+ AddViewToRootContainer(SystemScrollView[thisView]);\r
}\r
return true;\r
}\r
return false;\r
}\r
SystemScrollView[thisView] = test_MP_view->testmicrophoneInitIView(thisView);\r
- RootView::GetInstance()->Add(SystemScrollView[thisView]);\r
+ AddViewToRootContainer(SystemScrollView[thisView]);\r
}\r
return true;\r
}\r
return false;\r
}\r
SystemScrollView[thisView] = test_hr_view->testhrsensonInitIView(thisView);\r
- RootView::GetInstance()->Add(SystemScrollView[thisView]);\r
+ AddViewToRootContainer(SystemScrollView[thisView]);\r
}\r
return true;\r
}\r
return false;\r
}\r
SystemScrollView[thisView] = test_G_view->testGSENSONInitIView(thisView);\r
- RootView::GetInstance()->Add(SystemScrollView[thisView]);\r
+ AddViewToRootContainer(SystemScrollView[thisView]);\r
}\r
return true;\r
}\r
return false;\r
}\r
SystemScrollView[thisView] = test_old_view->testoldInitIView(thisView);\r
- RootView::GetInstance()->Add(SystemScrollView[thisView]);\r
+ AddViewToRootContainer(SystemScrollView[thisView]);\r
}\r
#endif\r
return true;\r
return false;\r
}\r
SystemScrollView[thisView] = test_BT_view->testBTInitIView(thisView);\r
- RootView::GetInstance()->Add(SystemScrollView[thisView]);\r
+ AddViewToRootContainer(SystemScrollView[thisView]);\r
}\r
return true;\r
}\r
return false;\r
}\r
SystemScrollView[thisView] = test_SEChip_view->SEChipInitIView(thisView);\r
- RootView::GetInstance()->Add(SystemScrollView[thisView]);\r
+ AddViewToRootContainer(SystemScrollView[thisView]);\r
}\r
return true;\r
}\r
return false;\r
}\r
SystemScrollView[thisView] = test_Ping_view->testPingInitIView(thisView);\r
- RootView::GetInstance()->Add(SystemScrollView[thisView]);\r
+ AddViewToRootContainer(SystemScrollView[thisView]);\r
}\r
return true;\r
}\r
return false;\r
}\r
SystemScrollView[thisView] = test_GPS_view->testGPSInitIView((uint8_t)thisView);\r
- RootView::GetInstance()->Add(SystemScrollView[thisView]);\r
+ AddViewToRootContainer(SystemScrollView[thisView]);\r
}\r
#endif\r
return true;\r
return false;\r
}\r
SystemScrollView[thisView] = test_pressure_view->testpressureInitIView((uint8_t)thisView);\r
- RootView::GetInstance()->Add(SystemScrollView[thisView]);\r
+ AddViewToRootContainer(SystemScrollView[thisView]);\r
}\r
\r
return true;\r
return false;\r
}\r
SystemScrollView[thisView] = test_A5133_view->testA5133InitIView(thisView);\r
- RootView::GetInstance()->Add(SystemScrollView[thisView]);\r
+ AddViewToRootContainer(SystemScrollView[thisView]);\r
}\r
return true;\r
}\r
\r
void testView::OnStart()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "OnStart>>>>>>>>>>>>>");\r
- View<testPresenter>::OnStart();\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "OnStart>>>>>>>>>>>>>");\r
//InitIView();\r
initView_ext(43,120,380,100,120,"/user/res/SETTING_NEXT.bin");\r
const power_display_svr_api_t *display_api = power_display_svr_get_api();\r
\r
start_custom_ble_service();\r
\r
- View<testPresenter>::OnSetUpView();\r
if (SystemScrollView[TESTVIEW] == nullptr)\r
{\r
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemView:: OnSetUpView has nullptr");\r
// SystemScrollView[SYSTEMVIEW]->Add(FactoryResetButton);\r
// SystemScrollView[SYSTEMVIEW]->Add(SystemUpgradeButtonExt);\r
\r
- RootView::GetInstance()->Add(SystemScrollView[TESTVIEW]);\r
+ AddViewToRootContainer(SystemScrollView[TESTVIEW]);\r
}\r
\r
\r
{
if(button!=NULL)
{
+ #ifdef FD230_650
calldial_event_sendmsg_toUI(phone);
+ #endif
RootView::GetInstance()->Invalidate();
}
#if __cplusplus
}
#endif
+#include "mag/mmc5603/mmc5603_hal.h"
#endif
namespace OHOS