Home
last modified time | relevance | path

Searched refs:value (Results 1 - 25 of 49) sorted by relevance

12

/ide/tools/previewer/util/
H A DJsonReader.h78 bool Add(const char* key, const char* value);
79 bool Add(const char* key, bool value);
80 bool Add(const char* key, int32_t value);
81 bool Add(const char* key, uint32_t value);
82 bool Add(const char* key, int64_t value);
83 bool Add(const char* key, double value);
84 bool Add(const char* key, const Value& value);
86 bool Add(const char* value);
87 bool Add(bool value);
88 bool Add(int32_t value);
[all...]
H A DJsonReader.cpp305 bool Value::Add(const char* key, const char* value) in Add() argument
310 cJSON* child = cJSON_CreateString(value); in Add()
318 bool Value::Add(const char* key, bool value) in Add() argument
323 cJSON* child = cJSON_CreateBool(static_cast<int>(value)); in Add()
331 bool Value::Add(const char* key, int32_t value) in Add() argument
333 return Add(key, static_cast<double>(value)); in Add()
336 bool Value::Add(const char* key, uint32_t value) in Add() argument
338 return Add(key, static_cast<double>(value)); in Add()
341 bool Value::Add(const char* key, int64_t value) in Add() argument
343 return Add(key, static_cast<double>(value)); in Add()
346 Add(const char* key, double value) Add() argument
359 Add(const char* key, const Value& value) Add() argument
372 Add(const char* value) Add() argument
385 Add(bool value) Add() argument
398 Add(int32_t value) Add() argument
403 Add(uint32_t value) Add() argument
408 Add(int64_t value) Add() argument
413 Add(double value) Add() argument
427 Add(const Value& value) Add() argument
440 Replace(const char* key, bool value) Replace() argument
456 Replace(const char* key, int32_t value) Replace() argument
461 Replace(const char* key, uint32_t value) Replace() argument
466 Replace(const char* key, int64_t value) Replace() argument
471 Replace(const char* key, double value) Replace() argument
487 Replace(const char* key, const char* value) Replace() argument
503 Replace(const char* key, const Value& value) Replace() argument
520 Replace(int index, bool value) Replace() argument
536 Replace(int index, int32_t value) Replace() argument
541 Replace(int index, uint32_t value) Replace() argument
546 Replace(int index, int64_t value) Replace() argument
551 Replace(int index, double value) Replace() argument
567 Replace(int index, const char* value) Replace() argument
583 Replace(int index, const Value& value) Replace() argument
663 CreateBool(const bool value) CreateBool() argument
668 CreateString(const std::string& value) CreateString() argument
673 DepthCopy(const Json2::Value& value) DepthCopy() argument
[all...]
H A DPublicMethods.cpp18 uint32_t PublicMethods::Ulltoa(uintptr_t value, int8_t (&rstStr)[MAX_ITOA_BIT]) in Ulltoa() argument
23 auto remainder = value; in Ulltoa()
H A DModelManager.cpp44 void ModelManager::SetCurrentDevice(const std::string& value) in SetCurrentDevice() argument
46 currentDevice = value; in SetCurrentDevice()
H A DSharedData.h30 SharedData() : value(), isChanged(false), minValue(), maxValue() {} in SharedData()
34 SharedData(SharedDataType type, T v, T min = T(), T max = T()) : value(v), minValue(min), maxValue(max) in SharedData()
58 data.value = v; in SetData()
72 return dataMap[type].value; in GetData()
111 pairs.push_back(std::make_pair(iter->second.first, value)); in Check()
153 T value; member in SharedData
H A DCppTimer.cpp26 void CppTimer::Start(int64_t value) in Start() argument
33 this->interval = value; in Start()
H A DTraceTool.cpp49 void TraceTool::SendTraceData(const Json2::Value& value) in SendTraceData() argument
51 *(GetInstance().socket) << value.ToString(); in SendTraceData()
/ide/tools/previewer/jsapp/lite/
H A DTimerTaskHandler.cpp62 void TimerTaskHandler::CheckBarometerChanged(uint32_t value) in CheckBarometerChanged() argument
64 ILOG("CheckBarometerChanged value: %d", value); in CheckBarometerChanged()
66 value); in CheckBarometerChanged()
69 void TimerTaskHandler::CheckStepCountChanged(uint32_t value) in CheckStepCountChanged() argument
71 ILOG("CheckStepCountChanged value: %d", value); in CheckStepCountChanged()
73 value); in CheckStepCountChanged()
76 void TimerTaskHandler::CheckHeartRateChanged(uint8_t value) in CheckHeartRateChanged() argument
78 ILOG("CheckHeartRateChanged value in CheckHeartRateChanged()
83 CheckOnBodyStateChanged(bool value) CheckOnBodyStateChanged() argument
97 CheckBrightnessValueChanged(uint8_t value) CheckBrightnessValueChanged() argument
[all...]
H A DTimerTaskHandler.h24 void CheckBarometerChanged(uint32_t value);
25 void CheckStepCountChanged(uint32_t value);
26 void CheckHeartRateChanged(uint8_t value);
27 void CheckOnBodyStateChanged(bool value);
29 void CheckBrightnessValueChanged(uint8_t value);
/ide/tools/previewer/test/unittest/util/
H A DCppTimerManagerTest.cpp29 EXPECT_TRUE(std::is_copy_assignable<CppTimerManager>::value == false); in TEST()
36 int value = 1; in TEST() local
38 EXPECT_EQ(manager.runningTimers.size(), value); in TEST()
41 value = num + num; in TEST()
44 EXPECT_EQ(num, value); in TEST()
45 value = 0; in TEST()
47 EXPECT_EQ(manager.runningTimers.size(), value); in TEST()
H A DEndianUtilTest.cpp30 uint32_t value = 0x12345678; in TEST() local
31 uint32_t networkValue = EndianUtil::ToNetworkEndian(value); in TEST()
33 EXPECT_EQ(networkValue, value); // 当前为大端环境,不转换 in TEST()
H A DPublicMethodsTest.cpp23 EXPECT_TRUE(std::is_copy_constructible<PublicMethods>::value == false); in TEST()
29 EXPECT_TRUE(std::is_copy_assignable<PublicMethods>::value == false); in TEST()
H A DModelManagerTest.cpp23 EXPECT_TRUE(std::is_default_constructible<ModelManager>::value == false); in TEST()
29 EXPECT_TRUE(std::is_copy_assignable<ModelManager>::value == false); in TEST()
/ide/tools/previewer/jsapp/
H A DJsApp.cpp82 void JsApp::SetJsAppPath(const std::string& value) in SetJsAppPath() argument
84 jsAppPath = value; in SetJsAppPath()
87 void JsApp::SetScreenDensity(const std::string value) in SetScreenDensity() argument
89 screenDensity = value; in SetScreenDensity()
92 void JsApp::SetConfigChanges(const std::string value) in SetConfigChanges() argument
94 configChanges = value; in SetConfigChanges()
97 void JsApp::SetUrlPath(const std::string& value) in SetUrlPath() argument
99 urlPath = value; in SetUrlPath()
119 void JsApp::SetIsDebug(bool value) in SetIsDebug() argument
121 isDebug = value; in SetIsDebug()
124 SetDebugServerPort(uint16_t value) SetDebugServerPort() argument
144 SetArgsColorMode(const std::string& value) SetArgsColorMode() argument
149 SetArgsAceVersion(const std::string& value) SetArgsAceVersion() argument
[all...]
H A DJsApp.h110 void SetJsAppPath(const std::string& value);
111 void SetUrlPath(const std::string& value);
117 void SetIsDebug(bool value);
118 void SetDebugServerPort(uint16_t value);
124 virtual void SetArgsColorMode(const std::string& value);
125 virtual void SetArgsAceVersion(const std::string& value);
131 virtual void SetScreenDensity(const std::string value);
132 virtual void SetConfigChanges(const std::string value);
/ide/tools/previewer/mock/lite/
H A DBrightnessModuleImpl.cpp24 int32_t BrightnessImpl::SetValueImpl(uint8_t value) in SetValueImpl() argument
26 if (!SharedData<uint8_t>::SetData(SharedDataType::BRIGHTNESS_VALUE, value)) { in SetValueImpl()
29 ILOG("Set screen brightness value: %d", value); in SetValueImpl()
33 int32_t BrightnessImpl::GetValueImpl(uint8_t& value) in GetValueImpl() argument
35 value = SharedData<uint8_t>::GetData(SharedDataType::BRIGHTNESS_VALUE); in GetValueImpl()
36 ILOG("Get screen brightness value: %d", value); in GetValueImpl()
/ide/tools/previewer/test/mock/jsapp/
H A DMockJsAppImpl.cpp52 void JsAppImpl::SetArgsColorMode(const std::string& value) in SetArgsColorMode() argument
54 colorMode = value; in SetArgsColorMode()
111 void JsAppImpl::SetArgsAceVersion(const std::string& value) in SetArgsAceVersion() argument
113 aceVersion = value; in SetArgsAceVersion()
116 void JsAppImpl::SetScreenDensity(const std::string value) in SetScreenDensity() argument
118 screenDensity = value; in SetScreenDensity()
121 void JsAppImpl::SetConfigChanges(const std::string value) in SetConfigChanges() argument
123 configChanges = value; in SetConfigChanges()
H A DMockJsApp.cpp43 void JsApp::SetArgsColorMode(const std::string& value) { in SetArgsColorMode() argument
46 void JsApp::SetArgsAceVersion(const std::string& value) { in SetArgsAceVersion() argument
61 void JsApp::SetScreenDensity(const std::string value) { in SetScreenDensity() argument
64 void JsApp::SetConfigChanges(const std::string value) { in SetConfigChanges() argument
/ide/tools/previewer/test/unittest/jsapp_lite/
H A DTimerTaskHandlerTest.cpp33 bool value = false; in TEST() local
38 AsyncWorkManager::GetInstance().AppendAsyncWork(workHandler, &value); in TEST()
40 EXPECT_TRUE(value); in TEST()
/ide/tools/previewer/mock/
H A DVirtualScreen.h34 void SetOrignalWidth(const int32_t& value);
43 void SetOrignalHeight(const int32_t& value);
46 void SetCompressionWidth(const int32_t& value);
49 void SetCompressionHeight(const int32_t& value);
87 void SetDropFrameFrequency(const int32_t& value);
94 void SetFoldable(const bool value);
96 void SetFoldStatus(const std::string& value);
131 const uint32_t headStart = 0x12345678; // Buffer header starts with magic value 0x12345678
H A DVirtualScreen.cpp88 void VirtualScreen::SetOrignalWidth(const int32_t& value) in SetOrignalWidth() argument
90 orignalResolutionWidth = value; in SetOrignalWidth()
98 void VirtualScreen::SetOrignalHeight(const int32_t& value) in SetOrignalHeight() argument
100 orignalResolutionHeight = value; in SetOrignalHeight()
108 void VirtualScreen::SetCompressionWidth(const int32_t& value) in SetCompressionWidth() argument
110 compressionResolutionWidth = value; in SetCompressionWidth()
118 void VirtualScreen::SetCompressionHeight(const int32_t& value) in SetCompressionHeight() argument
120 compressionResolutionHeight = value; in SetCompressionHeight()
233 void VirtualScreen::SetDropFrameFrequency(const int32_t& value) in SetDropFrameFrequency() argument
235 dropFrameFrequency = value; in SetDropFrameFrequency()
319 SetFoldable(const bool value) SetFoldable() argument
329 SetFoldStatus(const std::string& value) SetFoldStatus() argument
[all...]
/ide/tools/previewer/test/unittest/mock/
H A DLanguageManagerImplTest.cpp26 EXPECT_TRUE(std::is_copy_constructible<LanguageManagerImpl>::value == false); in TEST()
32 EXPECT_TRUE(std::is_copy_assignable<LanguageManagerImpl>::value == false); in TEST()
/ide/tools/previewer/test/mock/mock/
H A DMockVirtualScreen.cpp62 void VirtualScreen::SetDropFrameFrequency(const int32_t& value) in SetDropFrameFrequency() argument
64 dropFrameFrequency = value; in SetDropFrameFrequency()
73 void VirtualScreen::SetFoldStatus(const std::string& value) in SetFoldStatus() argument
75 foldStatus = value; in SetFoldStatus()
/ide/tools/previewer/test/fuzztest/paramsparse_fuzzer/
H A DParamsParseFuzzer.cpp57 for (const std::string& value : param.values) { in SetTestArgs()
59 std::string str = std::string(value); in SetTestArgs()
/ide/tools/previewer/test/unittest/jsapp/
H A DEventHandlerTest.cpp28 EXPECT_TRUE(std::is_copy_constructible<OHOS::AppExecFwk::EventHandler>::value == false); in TEST()
34 EXPECT_TRUE(std::is_copy_assignable<OHOS::AppExecFwk::EventHandler>::value == false); in TEST()

Completed in 8 milliseconds

12