/ide/tools/previewer/mock/lite/ |
D | SensorModuleImpl.cpp | 24 return SharedData<uint32_t>::GetData(SharedDataType::PRESSURE_VALUE); in GetBarometer() 29 return SharedData<uint32_t>::GetData(SharedDataType::SUMSTEP_VALUE); in GetSteps() 34 return SharedData<uint8_t>::GetData(SharedDataType::HEARTBEAT_VALUE); in GetHeartRate() 39 return SharedData<bool>::GetData(SharedDataType::WEARING_STATE); in GetOnBodyState()
|
D | BrightnessModuleImpl.cpp | 26 if (!SharedData<uint8_t>::SetData(SharedDataType::BRIGHTNESS_VALUE, value)) { in SetValueImpl() 35 value = SharedData<uint8_t>::GetData(SharedDataType::BRIGHTNESS_VALUE); in GetValueImpl() 42 if (!SharedData<uint8_t>::SetData(SharedDataType::BRIGHTNESS_MODE, mode)) { in SetModeImpl() 51 mode = SharedData<uint8_t>::GetData(SharedDataType::BRIGHTNESS_MODE); in GetModeImpl() 58 SharedData<bool>::SetData(SharedDataType::KEEP_SCREEN_ON, keepScreenOn); in SetKeepScreenOnImpl()
|
D | BatteryModuleImpl.cpp | 38 *level = SharedData<double>::GetData(SharedDataType::BATTERY_LEVEL); in GetBatteryStatus() 39 *charging = SharedData<uint8_t>::GetData(SharedDataType::BATTERY_STATUS); in GetBatteryStatus()
|
D | VirtualLocation.cpp | 114 double longitude = SharedData<double>::GetData(SharedDataType::LONGITUDE); in IsPostionChanged() 115 double latitude = SharedData<double>::GetData(SharedDataType::LATITUDE); in IsPostionChanged()
|
D | GeoLocation.cpp | 95 result->latitude = SharedData<double>::GetData(SharedDataType::LATITUDE); in SerializeLocData() 96 result->longitude = SharedData<double>::GetData(SharedDataType::LONGITUDE); in SerializeLocData()
|
/ide/tools/previewer/ |
D | ThinPreviewer.cpp | 106 SharedData<uint8_t>(SharedDataType::BRIGHTNESS_VALUE, 255, 1, 255); in InitSharedData() 107 SharedData<uint8_t>(SharedDataType::BRIGHTNESS_MODE, (uint8_t)BrightnessMode::MANUAL, in InitSharedData() 109 SharedData<bool>(SharedDataType::KEEP_SCREEN_ON, true); in InitSharedData() 110 SharedData<uint8_t>(SharedDataType::BATTERY_STATUS, (uint8_t)ChargeState::NOCHARGE, in InitSharedData() 113 SharedData<double>(SharedDataType::BATTERY_LEVEL, 1.0, 0.0, 1.0); in InitSharedData() 115 SharedData<uint8_t>(SharedDataType::HEARTBEAT_VALUE, 80, 0, 255); in InitSharedData() 117 SharedData<uint32_t>(SharedDataType::SUMSTEP_VALUE, 0, 0, 999999); in InitSharedData() 119 SharedData<double>(SharedDataType::VOLUME_VALUE, 1.0, 0.0, 1.0); in InitSharedData() 121 SharedData<uint32_t>(SharedDataType::PRESSURE_VALUE, 101325, 0, 999900); in InitSharedData() 122 SharedData<bool>(SharedDataType::WEARING_STATE, true); in InitSharedData() [all …]
|
D | RichPreviewer.cpp | 166 SharedData<string>(SharedDataType::LANGUAGE, parser.Value("l")); in InitSharedData() 168 SharedData<string>(SharedDataType::LANGUAGE, "zh_CN"); in InitSharedData() 170 string lanInfo = SharedData<string>::GetData(SharedDataType::LANGUAGE); in InitSharedData() 171 SharedData<string>(SharedDataType::LAN, lanInfo.substr(0, lanInfo.find("_"))); in InitSharedData() 172 …SharedData<string>(SharedDataType::REGION, lanInfo.substr(lanInfo.find("_") + 1, lanInfo.length() … in InitSharedData() 173 ILOG("Start language is : %s", SharedData<string>::GetData(SharedDataType::LANGUAGE).c_str()); in InitSharedData()
|
/ide/tools/previewer/util/ |
D | SharedData.h | 34 …SharedData(SharedDataType type, T v, T min = T(), T max = T()) : value(v), minValue(min), maxValue… in value() 44 static bool SetData(SharedDataType type, T v) in SetData() 64 static T GetData(SharedDataType type) in GetData() 74 static bool IsValid(SharedDataType type, T v) in IsValid() 125 …AppendNotify(SharedDataType type, std::function<void(T)> func, std::thread::id threadId, uint32_t … 160 static std::map<SharedDataType, SharedData> dataMap; 164 template<typename T> std::map<SharedDataType, SharedData<T>> SharedData<T>::dataMap;
|
D | SharedDataManager.h | 26 enum class SharedDataType { enum
|
/ide/tools/previewer/jsapp/lite/ |
D | JsAppImpl.cpp | 158 GLOBAL_ConfigLanguage(SharedData<string>::GetData(SharedDataType::LANGUAGE).data()); in ThreadCallBack() 167 …SharedData<uint8_t>::AppendNotify(SharedDataType::HEARTBEAT_VALUE, TimerTaskHandler::CheckHeartRat… in ThreadCallBack() 169 …SharedData<uint32_t>::AppendNotify(SharedDataType::PRESSURE_VALUE, TimerTaskHandler::CheckBaromete… in ThreadCallBack() 171 …SharedData<uint32_t>::AppendNotify(SharedDataType::SUMSTEP_VALUE, TimerTaskHandler::CheckStepCount… in ThreadCallBack() 173 …SharedData<bool>::AppendNotify(SharedDataType::WEARING_STATE, TimerTaskHandler::CheckOnBodyStateCh… in ThreadCallBack() 176 … SharedData<string>::AppendNotify(SharedDataType::LANGUAGE, TimerTaskHandler::CheckLanguageChanged, in ThreadCallBack()
|
/ide/tools/previewer/cli/ |
D | CommandLine.cpp | 329 if (!SharedData<double>::IsValid(SharedDataType::BATTERY_LEVEL, val)) { in IsSetArgValid() 338 double power = SharedData<double>::GetData(SharedDataType::BATTERY_LEVEL); in RunGet() 348 SharedData<double>::SetData(SharedDataType::BATTERY_LEVEL, atof(power.data())); in RunSet() 395 …if (!SharedData<uint32_t>::IsValid(SharedDataType::PRESSURE_VALUE, static_cast<uint32_t>(atoi(baro… in IsSetArgValid() 404 int barometer = static_cast<int>(SharedData<uint32_t>::GetData(SharedDataType::PRESSURE_VALUE)); in RunGet() 414 …SharedData<uint32_t>::SetData(SharedDataType::PRESSURE_VALUE, static_cast<uint32_t>(atoi(barometer… in RunSet() 754 std::string language = SharedData<string>::GetData(SharedDataType::LANGUAGE); in RunGet() 764 SharedData<string>::SetData(SharedDataType::LANGUAGE, language); in RunSet() 815 if (!SharedData<double>::IsValid(SharedDataType::LATITUDE, atof(latitude.data()))) { in IsSetArgValid() 820 if (!SharedData<double>::IsValid(SharedDataType::LONGITUDE, atof(longitude.data()))) { in IsSetArgValid() [all …]
|
/ide/tools/previewer/jsapp/rich/ |
D | JsAppImpl.cpp | 192 SetLanguage(args, SharedData<string>::GetData(SharedDataType::LAN)); in SetJsAppArgs() 193 SetRegion(args, SharedData<string>::GetData(SharedDataType::REGION)); in SetJsAppArgs() 381 SharedData<string>::GetData(SharedDataType::LANGUAGE)); in UpdateConfiguration() 771 SetLanguage(args, SharedData<string>::GetData(SharedDataType::LAN)); in ParseSystemParams() 772 SetRegion(args, SharedData<string>::GetData(SharedDataType::REGION)); in ParseSystemParams()
|