数据管理类关闭部分直接的指令操作,已放到各自的逻辑处
authorluozheng <1732036298@qq.com>
Wed, 26 Jun 2024 06:34:13 +0000 (14:34 +0800)
committerluozheng <1732036298@qq.com>
Wed, 26 Jun 2024 06:34:13 +0000 (14:34 +0800)
code/sdk/application/wearable/service/ble_service/blemoder/bletest.cpp
code/sdk/drivers/peripheral/config/src/ConfigModel.cpp

index 49bba2f..1f1b67b 100644 (file)
@@ -866,6 +866,7 @@ void set_vibrationremiander(uint8_t falg)//设置震动模式
 {
     OHOS::ConfigModel *p_ConfigModel  =   OHOS::ConfigModel::GetInstance();
     p_ConfigModel->SetVibrationReminder(falg);
+    uapi_vibrationModeSet(falg);
     SendMsgToUIService(UI_UPDATE_VIBRATION_MODE,0,nullptr,0);
     return ;
 }
@@ -874,6 +875,7 @@ void set_SilentMode(uint8_t falg)//设置静音模式
 {
     OHOS::ConfigModel *p_ConfigModel  =   OHOS::ConfigModel::GetInstance();
     p_ConfigModel->SetSilentMode(falg);
+    uapi_setSilentMode(falg);
     SendMsgToUIService(UI_UPDATE_SILENT_MODE,0,nullptr,0);
     return;
 }
@@ -910,6 +912,7 @@ void set_brigthness(uint8_t data) //设置屏幕亮度
     else if(data >= maxbrightness)
         data = maxbrightness;
     p_ConfigModel->SetBrightness(data);
+    uapi_setScreenBrightness(data);
     SendMsgToUIService(UI_UPDATE_BRIGHTNESS_VALUE,0,nullptr,0);
     return;
 }
@@ -963,6 +966,7 @@ void Set_SystemVolume(int value) //设置系统音量
 {
     OHOS::ConfigModel *p_ConfigModel  =  OHOS::ConfigModel::GetInstance();
     p_ConfigModel->SetSystemVolume(value);
+    uapi_systemVolumeSet(value);
     SendMsgToUIService(UI_UPDATE_SYSTEM_VOLUME,0,nullptr,0);
     return;
 }
@@ -977,6 +981,7 @@ void Set_CallVolume(int value) //设置通话音量
 {
     OHOS::ConfigModel *p_ConfigModel  =  OHOS::ConfigModel::GetInstance();
     p_ConfigModel->SetCallVolume(value);
+    uapi_callVolumeSet(value);
     SendMsgToUIService(UI_UPDATE_CALL_VOLUME,0,nullptr,0);
     return;
 }
index 6dfe4ba..ba11493 100644 (file)
@@ -1047,7 +1047,7 @@ namespace OHOS
     {
         uapi_dev_runtime_set_vibmod(state);
         set_condigData_Int(CONFIGMODEL_ITEM_VIBRATOR_SWITCH,state);
-        uapi_vibrationModeSet(state);
+        //uapi_vibrationModeSet(state);
     }
 
     /*获取震动模式强度*/
@@ -1064,7 +1064,7 @@ namespace OHOS
     void ConfigModel::SetSilentMode(bool state)
     {
         set_condigData_Bool(CONFIGMODEL_ITEM_SILENT_MODE,state);
-        uapi_setSilentMode(state);
+        //uapi_setSilentMode(state);
     }
 
     /*获取静音模式是否开启*/
@@ -1126,7 +1126,7 @@ namespace OHOS
     void ConfigModel::SetBrightness(int level)
     {
         set_condigData_Int(CONFIGMODEL_ITEM_SCREEN_BRIGHTNESS_VALUE,level);
-        cm_initScreenBrightness();//实时更新屏幕亮度用于协议下发亮度值
+        //cm_initScreenBrightness();//实时更新屏幕亮度用于协议下发亮度值
     }
 
     // 获取亮度值
@@ -1139,7 +1139,7 @@ namespace OHOS
     void ConfigModel::SetSystemVolume(int value)
     {
         set_condigData_Int(CONFIGMODEL_ITEM_SYSTEM_VOLUME,value);
-        uapi_systemVolumeSet(value);
+        //uapi_systemVolumeSet(value);
     }
 
     //获取系统音量
@@ -1152,7 +1152,7 @@ namespace OHOS
     void ConfigModel::SetCallVolume(int value)
     {
         set_condigData_Int(CONFIGMODEL_ITEM_CALL_VOLUME,value);
-        uapi_callVolumeSet(value);
+        //uapi_callVolumeSet(value);
     }
     
     //获取通话音量