/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/exif_metadata_accessor_test/ |
H A D | dng_exif_metadata_accessor_test.cpp | 60 std::string value; in HWTEST_F() local 61 ASSERT_EQ(exifMetadata->GetValue("BitsPerSample", value), SUCCESS); in HWTEST_F() 62 ASSERT_EQ(value, "8, 8, 8"); in HWTEST_F() 63 ASSERT_EQ(exifMetadata->GetValue("Orientation", value), SUCCESS); in HWTEST_F() 64 ASSERT_EQ(value, "Right-top"); in HWTEST_F() 65 ASSERT_EQ(exifMetadata->GetValue("ImageLength", value), SUCCESS); in HWTEST_F() 66 ASSERT_EQ(value, "3024"); in HWTEST_F() 67 ASSERT_EQ(exifMetadata->GetValue("ImageWidth", value), SUCCESS); in HWTEST_F() 68 ASSERT_EQ(value, "4032"); in HWTEST_F() 69 ASSERT_EQ(exifMetadata->GetValue("GPSLatitude", value), SUCCES in HWTEST_F() 117 std::string value; HWTEST_F() local 174 std::string value; HWTEST_F() local 230 std::string value; HWTEST_F() local 287 std::string value; HWTEST_F() local 344 std::string value; HWTEST_F() local 399 std::string value; HWTEST_F() local 456 std::string value; HWTEST_F() local 538 std::string value; HWTEST_F() local 560 std::string value; HWTEST_F() local 616 std::string value; HWTEST_F() local [all...] |
/test/xts/acts/startup_lite/syspara_hal/src/ |
H A D | deviceinfo_func_test.c | 66 const char *value = GetDeviceType(); variable 67 printf("Device Type=%s\n", value); 68 AssertNotEmpty(value); variable 81 const char *value = GetDeviceType(); variable 82 printf("Device Type=%s\n", value); 83 TEST_ASSERT_NOT_NULL(value); variable 84 if (value != NULL) 86 TEST_ASSERT_TRUE(strlen(value) <= 32); 99 const char *value = GetManufacture(); variable 100 printf("Manufacture=%s\n", value); 101 AssertNotEmpty(value); global() variable 114 const char *value = GetManufacture(); global() variable 116 TEST_ASSERT_NOT_NULL(value); global() variable 132 const char *value = GetBrand(); global() variable 134 AssertNotEmpty(value); global() variable 147 const char *value = GetBrand(); global() variable 149 TEST_ASSERT_NOT_NULL(value); global() variable 165 const char *value = GetMarketName(); global() variable 167 AssertNotEmpty(value); global() variable 180 const char *value = GetMarketName(); global() variable 182 TEST_ASSERT_NOT_NULL(value); global() variable 198 const char *value = GetProductSeries(); global() variable 200 AssertNotEmpty(value); global() variable 213 const char *value = GetProductSeries(); global() variable 215 TEST_ASSERT_NOT_NULL(value); global() variable 231 const char *value = GetProductModel(); global() variable 233 AssertNotEmpty(value); global() variable 246 const char *value = GetProductModel(); global() variable 248 TEST_ASSERT_NOT_NULL(value); global() variable 264 const char *value = GetHardwareModel(); global() variable 266 AssertNotEmpty(value); global() variable 279 const char *value = GetHardwareModel(); global() variable 281 TEST_ASSERT_NOT_NULL(value); global() variable 297 const char *value = GetSerial(); global() variable 299 AssertNotEmpty(value); global() variable 312 const char *value = GetSerial(); global() variable 314 TEST_ASSERT_NOT_NULL(value); global() variable 330 const char *value = GetOSFullName(); global() variable 332 AssertNotEmpty(value); global() variable 345 const char *value = GetOSFullName(); global() variable 347 TEST_ASSERT_NOT_NULL(value); global() variable 363 const char *value = GetDisplayVersion(); global() variable 365 AssertNotEmpty(value); global() variable 378 const char *value = GetDisplayVersion(); global() variable 380 TEST_ASSERT_NOT_NULL(value); global() variable 396 const char *value = GetBootloaderVersion(); global() variable 398 AssertNotEmpty(value); global() variable 411 const char *value = GetBootloaderVersion(); global() variable 413 TEST_ASSERT_NOT_NULL(value); global() variable 429 const char *value = GetSecurityPatchTag(); global() variable 431 AssertNotEmpty(value); global() variable 444 const char *value = GetSecurityPatchTag(); global() variable 446 TEST_ASSERT_NOT_NULL(value); global() variable 463 const char *value = GetSecurityPatchTag(); global() variable 498 const char *value = GetAbiList(); global() variable 500 AssertNotEmpty(value); global() variable 513 const char *value = GetAbiList(); global() variable 515 TEST_ASSERT_NOT_NULL(value); global() variable 531 int value = GetSdkApiVersion(); global() variable 545 int value = GetFirstApiVersion(); global() variable 559 const char *value = GetIncrementalVersion(); global() variable 561 AssertNotEmpty(value); global() variable 573 const char *value = GetVersionId(); global() variable 575 AssertNotEmpty(value); global() variable 588 const char *value = GetVersionId(); global() variable 590 TEST_ASSERT_NOT_NULL(value); global() variable 606 const char *value = GetBuildType(); global() variable 608 AssertNotEmpty(value); global() variable 621 const char *value = GetBuildType(); global() variable 623 TEST_ASSERT_NOT_NULL(value); global() variable 639 const char *value = GetBuildUser(); global() variable 641 AssertNotEmpty(value); global() variable 654 const char *value = GetBuildUser(); global() variable 656 TEST_ASSERT_NOT_NULL(value); global() variable 672 const char *value = GetBuildHost(); global() variable 674 AssertNotEmpty(value); global() variable 687 const char *value = GetBuildHost(); global() variable 689 TEST_ASSERT_NOT_NULL(value); global() variable 705 const char *value = GetBuildTime(); global() variable 707 AssertNotEmpty(value); global() variable 720 const char *value = GetBuildTime(); global() variable 722 TEST_ASSERT_NOT_NULL(value); global() variable 738 const char *value = GetSoftwareModel(); global() variable 740 AssertNotEmpty(value); global() variable 753 const char *value = GetSoftwareModel(); global() variable 755 TEST_ASSERT_NOT_NULL(value); global() variable 771 const char *value = GetBuildRootHash(); global() variable 773 TEST_ASSERT_NOT_NULL(value); global() variable 785 const char *value = GetHardwareProfile(); global() variable 787 AssertNotEmpty(value); global() variable [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/ |
H A D | arkComponent.js | 100 function isResourceEqual(stageValue, value) { 101 return (stageValue.bundleName === value.bundleName) && 102 (stageValue.moduleName === value.moduleName) && 103 (stageValue.id === value.id) && 104 (stageValue.params === value.params) && 105 (stageValue.type === value.type); 107 function isBaseOrResourceEqual(stageValue, value) { 108 if (isResource(stageValue) && isResource(value)) { 109 return isResourceEqual(stageValue, value); 111 else if (!isResource(stageValue) && !isResource(value)) { [all...] |
/test/xts/acts/distributeddatamgr_lite/dbm_kv_store_hal/src/ |
H A D | dbm_kv_store_func_test.c | 96 } value, value1; in PutKVs() local 107 memset_s(&value, sizeof(value), 0, sizeof(value)); in PutKVs() 108 value.num = i; in PutKVs() 110 int ret = strcpy_s(value.content, sizeof(value.content), content); in PutKVs() 113 status = DBM_Put(g_KVStoreHandle, keytemp, (void*)&value, sizeof(value)); in PutKVs() 126 TEST_ASSERT_EQUAL_INT(value1.num, value in PutKVs() 149 } value, value1; GetKVs() local 224 } value; global() variable 256 } value; global() variable 280 } value; global() variable 304 } value; global() variable 328 } value; global() variable 349 } value; global() variable 370 } value; global() variable 391 } value; global() variable 412 } value; global() variable 433 } value; global() variable 454 } value; global() variable 478 } value; global() variable 499 } value; global() variable 520 } value; global() variable 541 } value; global() variable 565 } value; global() variable 586 } value; global() variable 610 } value, value1; global() variable 643 } value, value1; global() variable 676 } value, value1, value2; global() variable 720 } value; global() variable 740 } value, value1; global() variable 783 char value[] = "It is never too old to learn"; global() variable 812 char value[] = "It is never too old to learn"; global() variable 840 char value[] = "It is never too old to learn"; global() variable 869 char value[] = "It is never too old to learn"; global() variable [all...] |
/foundation/distributeddatamgr/udmf/framework/common/ |
H A D | endian_converter.h | 24 static inline int8_t HostToNet(int8_t value)
in HostToNet() argument 26 return value;
in HostToNet() 28 static inline int16_t HostToNet(int16_t value)
in HostToNet() argument 30 return htole16(value);
in HostToNet() 33 static inline int16_t NetToHost(int16_t value)
in NetToHost() argument 35 return le16toh(value);
in NetToHost() 38 static inline int32_t HostToNet(int32_t value)
in HostToNet() argument 40 return htole32(value);
in HostToNet() 43 static inline int8_t NetToHost(int8_t value)
in NetToHost() argument 45 return le32toh(value);
in NetToHost() 48 NetToHost(int32_t value) NetToHost() argument 53 HostToNet(int64_t value) HostToNet() argument 58 NetToHost(int64_t value) NetToHost() argument 63 HostToNet(uint8_t value) HostToNet() argument 67 HostToNet(uint16_t value) HostToNet() argument 72 NetToHost(uint16_t value) NetToHost() argument 77 HostToNet(uint32_t value) HostToNet() argument 82 NetToHost(uint8_t value) NetToHost() argument 87 NetToHost(uint32_t value) NetToHost() argument 92 HostToNet(uint64_t value) HostToNet() argument 97 NetToHost(uint64_t value) NetToHost() argument [all...] |
/foundation/distributeddatamgr/pasteboard/framework/tlv/ |
H A D | endian_converter.h | 24 static inline int8_t HostToNet(int8_t value)
in HostToNet() argument 26 return value;
in HostToNet() 28 static inline int16_t HostToNet(int16_t value)
in HostToNet() argument 30 return htole16(value);
in HostToNet() 33 static inline int16_t NetToHost(int16_t value)
in NetToHost() argument 35 return le16toh(value);
in NetToHost() 38 static inline int32_t HostToNet(int32_t value)
in HostToNet() argument 40 return htole32(value);
in HostToNet() 43 static inline int8_t NetToHost(int8_t value)
in NetToHost() argument 45 return le32toh(value);
in NetToHost() 48 NetToHost(int32_t value) NetToHost() argument 53 HostToNet(int64_t value) HostToNet() argument 58 NetToHost(int64_t value) NetToHost() argument 63 HostToNet(uint8_t value) HostToNet() argument 67 HostToNet(uint16_t value) HostToNet() argument 72 NetToHost(uint16_t value) NetToHost() argument 77 HostToNet(uint32_t value) HostToNet() argument 82 NetToHost(uint8_t value) NetToHost() argument 87 NetToHost(uint32_t value) NetToHost() argument 92 HostToNet(uint64_t value) HostToNet() argument 97 NetToHost(uint64_t value) NetToHost() argument 102 HostToNet(bool value) HostToNet() argument 107 NetToHost(bool value) NetToHost() argument 112 HostToNet(double value) HostToNet() argument 124 NetToHost(double value) NetToHost() argument [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_profiler/ |
H A D | rs_profiler_archive.cpp | 20 void Archive::Serialize(char& value) in Serialize() argument 22 Serialize(&value, sizeof(value)); in Serialize() 25 void Archive::Serialize(float& value) in Serialize() argument 27 Serialize(&value, sizeof(value)); in Serialize() 30 void Archive::Serialize(double& value) in Serialize() argument 32 Serialize(&value, sizeof(value)); in Serialize() 35 void Archive::Serialize(int8_t& value) in Serialize() argument 40 Serialize(int16_t& value) Serialize() argument 45 Serialize(int32_t& value) Serialize() argument 50 Serialize(uint8_t& value) Serialize() argument 55 Serialize(uint16_t& value) Serialize() argument 60 Serialize(uint32_t& value) Serialize() argument 65 Serialize(uint64_t& value) Serialize() argument 70 Serialize(std::string& value) Serialize() argument [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/ |
H A D | dom_calendar.cpp | 43 [](const std::string& value, DomCalendar& calendar) { in SetSpecializedAttr() 44 calendar.calendarComponent_->SetCalendarData(value); in SetSpecializedAttr() 48 [](const std::string& value, DomCalendar& calendar) { in SetSpecializedAttr() 49 calendar.calendarComponent_->SetCardCalendar(StringToBool(value)); in SetSpecializedAttr() 53 [](const std::string& value, DomCalendar& calendar) { in SetSpecializedAttr() 55 auto isLegal = StringUtils::StringToCalendarDay(value, day); in SetSpecializedAttr() 63 [](const std::string& value, DomCalendar& calendar) { return calendar.ParseDataAdapter(value); } }, in SetSpecializedAttr() 65 [](const std::string& value, DomCalendar& calendar) { in SetSpecializedAttr() 66 if (value in SetSpecializedAttr() 148 ParseDataAdapter(const std::string& value) ParseDataAdapter() argument [all...] |
/device/soc/hisilicon/common/platform/i2s/ |
H A D | i2s_codec_hi35xx.c | 25 uint32_t value = Hi35xxI2sRegRead(i2sCfg->codecAddr + AUDIO_ANA_CTRL_0); in GetI2sCodecInfo() local 26 I2S_PRINT_LOG_ERR("%s: AUDIO_ANA_CTRL_0[0x%x][0x%08x]", __func__, AUDIO_ANA_CTRL_0, value); in GetI2sCodecInfo() 27 value = Hi35xxI2sRegRead(i2sCfg->codecAddr + AUDIO_ANA_CTRL_1); in GetI2sCodecInfo() 28 I2S_PRINT_LOG_DBG("%s: AUDIO_ANA_CTRL_1[0x%x][0x%08x]", __func__, AUDIO_ANA_CTRL_1, value); in GetI2sCodecInfo() 29 value = Hi35xxI2sRegRead(i2sCfg->codecAddr + AUDIO_ANA_CTRL_2); in GetI2sCodecInfo() 30 I2S_PRINT_LOG_DBG("%s: AUDIO_ANA_CTRL_2[0x%x][0x%08x]", __func__, AUDIO_ANA_CTRL_2, value); in GetI2sCodecInfo() 31 value = Hi35xxI2sRegRead(i2sCfg->codecAddr + AUDIO_ANA_CTRL_3); in GetI2sCodecInfo() 32 I2S_PRINT_LOG_DBG("%s: AUDIO_ANA_CTRL_3[0x%x][0x%08x]", __func__, AUDIO_ANA_CTRL_3, value); in GetI2sCodecInfo() 33 value = Hi35xxI2sRegRead(i2sCfg->codecAddr + AUDIO_ANA_CTRL_4); in GetI2sCodecInfo() 34 I2S_PRINT_LOG_DBG("%s: AUDIO_ANA_CTRL_4[0x%x][0x%08x]", __func__, AUDIO_ANA_CTRL_4, value); in GetI2sCodecInfo() 167 uint32_t value = Hi35xxI2sRegRead(i2sCfg->codecAddr + AUDIO_CTRL_REG_1); AudioCodecSetI2slFsSel() local 202 uint32_t value = Hi35xxI2sRegRead(i2sCfg->codecAddr + AUDIO_CTRL_REG_1); AudioCodecSetWidth() local 215 uint32_t value = Hi35xxI2sRegRead(i2sCfg->codecAddr + REG_ACODEC_REG18); AudioCodecSetAiaoChl() local 255 uint32_t value = Hi35xxI2sRegRead(i2sCfg->regBase + AUDIO_ANA_CTRL_0); CodecAnaCtrl0Init() local 282 uint32_t value = Hi35xxI2sRegRead(i2sCfg->regBase + AUDIO_ANA_CTRL_2); CodecInnerInit() local 373 uint32_t value = Hi35xxI2sRegRead(i2sCfg->regBase + AUDIO_ANA_CTRL_2); CodecInit() local [all...] |
/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/processor/ |
H A D | p2p_v1_fuzz_helper.h | 30 int32_t value = 0; in FuzzCommonEnum() local 31 GenerateInt32(value); in FuzzCommonEnum() 32 return value % (max + overflow); in FuzzCommonEnum() 37 auto value = static_cast<LegacyCommandType>( in FuzzCommandType() local 39 message.SetLegacyP2pCommandType(value); in FuzzCommandType() 44 auto value = static_cast<LegacyContentType>(FuzzCommonEnum(static_cast<int>(LegacyContentType::RESULT), 3)); in FuzzContentType() local 45 message.SetLegacyP2pContentType(value); in FuzzContentType() 50 std::string value; in FuzzGcChannelList() local 51 GenerateString(value); in FuzzGcChannelList() 52 message.SetLegacyP2pGcChannelList(value); in FuzzGcChannelList() 57 std::string value; FuzzGcMac() local 64 std::string value; FuzzGoMac() local 71 std::string value; FuzzIP() local 78 std::string value; FuzzMac() local 85 std::string value; FuzzSelfWifiCfg() local 92 int32_t value; FuzzStationFrequency() local 99 int32_t value; FuzzVersion() local 106 bool value; FuzzWideBandSupport() local [all...] |
/foundation/arkui/ace_engine/test/unittest/bridge/common/utils/ |
H A D | utils_test.cpp | 140 std::string value = ""; in HWTEST_F() local 146 ParseImageObjectPosition(value); in HWTEST_F() 147 EXPECT_TRUE(ParseBackgroundImagePosition(value, backgroundImagePosition)); in HWTEST_F() 148 value = "10"; in HWTEST_F() 149 ParseImageObjectPosition(value); in HWTEST_F() 150 EXPECT_TRUE(ParseBackgroundImagePosition(value, backgroundImagePosition)); in HWTEST_F() 151 value = "top"; in HWTEST_F() 152 ParseImageObjectPosition(value); in HWTEST_F() 153 EXPECT_TRUE(ParseBackgroundImagePosition(value, backgroundImagePosition)); in HWTEST_F() 154 value in HWTEST_F() 193 std::string value = ""; HWTEST_F() local 219 std::string value = ""; HWTEST_F() local 245 std::string value = ""; HWTEST_F() local 282 std::string value = ""; HWTEST_F() local 313 std::string value = ""; HWTEST_F() local 347 std::string value = "aaa(int a,int b)"; HWTEST_F() local 364 std::string value = "bbb"; HWTEST_F() local [all...] |
/foundation/graphic/graphic_3d/lume/LumeBinaryCompile/LumeShaderCompiler/src/ |
H A D | json.h | 61 struct value;
63 // parses 'data' and writes the corresponding JSON structure to 'value'
64 char* parse_value(char* data, value& value);
66 // parses 'data' and return JSON structure. the value::type will be 'uninitialized' if parsing failed.
67 value parse(char* data);
69 std::string to_string(const value& value);
75 using array = array_t<value>;
78 struct value {
struct 88 value() : type{ type::uninitialized } {} value() function 89 value(object&& value) : type{ type::object }, object_(std::move(value)) {} move() function 90 value(array&& value) : type{ type::array }, array_(std::move(value)) {} move() function 91 value(string value) : type{ type::string }, string_(value) {} string_() function 92 value(double value) : type{ type::number }, number_(value) {} number_() function 93 explicit value(bool value) : type{ type::boolean }, boolean_(value) {} boolean_() function 94 value(null value) : type{ type::null } {} value() function 97 value(T value) : type{ type::number }, number_(static_cast<double>(value)) static_cast() function 101 value(array_t<T> values) : type{ type::array }, array_(array{}) value() function 118 value(value&& rhs) : type{ std::exchange(rhs.type, type::uninitialized) } value() function 248 value value; global() member 583 parse_value(char* data, value& value) parse_value() argument 606 add(value& v, value&& value) add() argument 677 auto value = std::move(stack.back()); parse() local 714 auto value = std::move(stack.back()); parse() local 750 value value; parse() local 760 value value; parse() local 770 value value; parse() local 780 value value; parse() local 799 auto value = std::move(stack.front()); parse() local 805 to_string(const value& value) to_string() argument [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/ |
H A D | drawing_matrix_test.cpp | 97 float value; in HWTEST_F() local 98 value = OH_Drawing_MatrixGetValue(matrixTwo, 0); in HWTEST_F() 99 EXPECT_TRUE(IsScalarAlmostEqual(value, 1.5f)); in HWTEST_F() 100 value = OH_Drawing_MatrixGetValue(matrixTwo, 1); in HWTEST_F() 101 EXPECT_TRUE(IsScalarAlmostEqual(value, 0.0f)); in HWTEST_F() 102 value = OH_Drawing_MatrixGetValue(matrixTwo, 2); in HWTEST_F() 103 EXPECT_TRUE(IsScalarAlmostEqual(value, 3.5f)); in HWTEST_F() 105 value = OH_Drawing_MatrixGetValue(matrixTwo, 3); in HWTEST_F() 106 EXPECT_TRUE(IsScalarAlmostEqual(value, 0.0f)); in HWTEST_F() 107 value in HWTEST_F() 163 float value; HWTEST_F() local 202 float value; HWTEST_F() local 237 float value; HWTEST_F() local 296 float value; HWTEST_F() local 336 float value; HWTEST_F() local 436 float value; HWTEST_F() local 473 float value; HWTEST_F() local 501 float value; HWTEST_F() local 537 float value; HWTEST_F() local 574 float value; HWTEST_F() local 601 float value; HWTEST_F() local 646 float value; HWTEST_F() local [all...] |
/test/xts/acts/graphic/graphicnapidrawingtest/ |
H A D | NativeDrawingMatrixTest.cpp | 97 float value; in HWTEST_F() local 98 value = OH_Drawing_MatrixGetValue(matrixTwo, 0); in HWTEST_F() 99 EXPECT_TRUE(IsScalarAlmostEqual(value, 1.5f)); in HWTEST_F() 100 value = OH_Drawing_MatrixGetValue(matrixTwo, 1); in HWTEST_F() 101 EXPECT_TRUE(IsScalarAlmostEqual(value, 0.0f)); in HWTEST_F() 102 value = OH_Drawing_MatrixGetValue(matrixTwo, 2); in HWTEST_F() 103 EXPECT_TRUE(IsScalarAlmostEqual(value, 3.5f)); in HWTEST_F() 105 value = OH_Drawing_MatrixGetValue(matrixTwo, 3); in HWTEST_F() 106 EXPECT_TRUE(IsScalarAlmostEqual(value, 0.0f)); in HWTEST_F() 107 value in HWTEST_F() 155 float value; HWTEST_F() local 195 float value; HWTEST_F() local 231 float value; HWTEST_F() local 291 float value; HWTEST_F() local 330 float value; HWTEST_F() local 425 float value; HWTEST_F() local 462 float value; HWTEST_F() local 490 float value; HWTEST_F() local 525 float value; HWTEST_F() local 562 float value; HWTEST_F() local 589 float value; HWTEST_F() local 633 float value; HWTEST_F() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/progress/ |
H A D | progress_model_ng.h | 26 void Create(double min, double value, double cachedValue, double max, NG::ProgressType type) override; 27 void SetValue(double value) override; 28 void SetColor(const Color& value) override; 29 void SetBackgroundColor(const Color& value) override; 30 void SetStrokeWidth(const Dimension& value) override; 31 void SetScaleCount(int32_t value) override; 32 void SetScaleWidth(const Dimension& value) override; 33 void SetBorderColor(const Color& value) override; 34 void SetBorderWidth(const Dimension& value) override; 35 void SetFontSize(const Dimension& value) overrid [all...] |
/foundation/ability/ability_runtime/services/abilitymgr/src/ |
H A D | inner_mission_info.cpp | 42 nlohmann::json value; in ToJsonStr() local 43 value[KEY_MISSION_NAME] = missionName; in ToJsonStr() 44 value[KEY_LAUNCH_MODE] = launchMode; in ToJsonStr() 45 value[KEY_IS_TEMPORARY] = isTemporary; in ToJsonStr() 46 value[KEY_BUNDLE_NAME] = bundleName; in ToJsonStr() 47 value[KEY_START_METHOD] = startMethod; in ToJsonStr() 48 value[KEY_UID] = uid; in ToJsonStr() 49 value[KEY_SPEC_FLAG] = specifiedFlag; in ToJsonStr() 50 value[KEY_MISSION_ID] = missionInfo.id; in ToJsonStr() 51 value[KEY_RUNNING_STAT in ToJsonStr() 69 nlohmann::json value = nlohmann::json::parse(jsonStr, nullptr, false); FromJsonStr() local 168 CheckJsonNode(nlohmann::json &value, const std::string &node, JsonType jsonType) CheckJsonNode() argument [all...] |
/foundation/graphic/graphic_3d/lume/LumeBase/api/base/math/ |
H A D | mathf.h | 30 /** Returns Minimum value of 2 given parameter */ 37 /** Returns Maximum value of 2 given parameter */ 44 /** Clamps value between minimum and maximum value */ 46 constexpr inline const T& clamp(const T& value, const T& min, const T& max) in clamp() argument 48 return (value < min) ? min : (value > max) ? max : value; in clamp() 51 /** Clamps value between 0 and 1 and then returns it */ 52 constexpr inline float clamp01(float value) in clamp01() argument 64 abs(float value) abs() argument 70 abs(int value) abs() argument 76 floor(float value) floor() argument 82 ceil(float value) ceil() argument 88 floorToInt(float value) floorToInt() argument 94 ceilToInt(float value) ceilToInt() argument 106 round(float value) round() argument 112 sqrt(float value) sqrt() argument 118 sin(float value) sin() argument 124 cos(float value) cos() argument 130 tan(float value) tan() argument 154 asin(float value) asin() argument 160 acos(float value) acos() argument 181 sign(float value) sign() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | text_model_ng.cpp | 104 void TextModelNG::SetFont(const Font& value) in SetFont() argument 106 if (value.fontSize.has_value()) { in SetFont() 107 SetFontSize(value.fontSize.value()); in SetFont() 109 if (value.fontWeight.has_value()) { in SetFont() 110 SetFontWeight(value.fontWeight.value()); in SetFont() 112 if (!value.fontFamilies.empty()) { in SetFont() 113 SetFontFamily(value.fontFamilies); in SetFont() 115 if (value in SetFont() 121 SetFontSize(const Dimension& value) SetFontSize() argument 130 SetFontSize(FrameNode* frameNode, const Dimension& value) SetFontSize() argument 139 SetTextColor(const Color& value) SetTextColor() argument 154 SetTextColor(FrameNode* frameNode, const Color& value) SetTextColor() argument 168 SetTextShadow(const std::vector<Shadow>& value) SetTextShadow() argument 173 SetItalicFontStyle(Ace::FontStyle value) SetItalicFontStyle() argument 178 SetItalicFontStyle(FrameNode* frameNode, Ace::FontStyle value) SetItalicFontStyle() argument 183 SetFontWeight(FrameNode* frameNode, Ace::FontWeight value) SetFontWeight() argument 188 SetVariableFontWeight(FrameNode* frameNode, int32_t value) SetVariableFontWeight() argument 193 SetEnableVariableFontWeight(FrameNode* frameNode, bool value) SetEnableVariableFontWeight() argument 198 SetMinFontScale(const float value) SetMinFontScale() argument 203 SetMaxFontScale(const float value) SetMaxFontScale() argument 208 SetFontWeight(Ace::FontWeight value) SetFontWeight() argument 213 SetVariableFontWeight(int32_t value) SetVariableFontWeight() argument 218 SetEnableVariableFontWeight(bool value) SetEnableVariableFontWeight() argument 223 SetFontFamily(const std::vector<std::string>& value) SetFontFamily() argument 228 SetWordBreak(Ace::WordBreak value) SetWordBreak() argument 233 SetLineBreakStrategy(Ace::LineBreakStrategy value) SetLineBreakStrategy() argument 238 SetTextSelectableMode(Ace::TextSelectableMode value) SetTextSelectableMode() argument 248 SetEllipsisMode(EllipsisMode value) SetEllipsisMode() argument 253 SetTextAlign(Ace::TextAlign value) SetTextAlign() argument 258 SetTextAlign(FrameNode* frameNode, Ace::TextAlign value) SetTextAlign() argument 263 SetTextOverflow(Ace::TextOverflow value) SetTextOverflow() argument 268 SetTextOverflow(FrameNode* frameNode, Ace::TextOverflow value) SetTextOverflow() argument 273 SetMaxLines(uint32_t value) SetMaxLines() argument 278 SetTextIndent(const Dimension& value) SetTextIndent() argument 283 SetLineHeight(const Dimension& value) SetLineHeight() argument 288 SetLineHeight(FrameNode* frameNode, const Dimension& value) SetLineHeight() argument 293 SetLineSpacing(const Dimension& value) SetLineSpacing() argument 298 SetLineSpacing(FrameNode* frameNode, const Dimension& value) SetLineSpacing() argument 303 SetTextDecoration(Ace::TextDecoration value) SetTextDecoration() argument 308 SetTextDecoration(FrameNode* frameNode, TextDecoration value) SetTextDecoration() argument 313 SetTextDecorationColor(const Color& value) SetTextDecorationColor() argument 318 SetTextDecorationColor(FrameNode* frameNode, const Color& value) SetTextDecorationColor() argument 323 SetTextDecorationStyle(Ace::TextDecorationStyle value) SetTextDecorationStyle() argument 328 SetTextDecorationStyle(FrameNode* frameNode, TextDecorationStyle value) SetTextDecorationStyle() argument 333 SetBaselineOffset(const Dimension& value) SetBaselineOffset() argument 338 SetTextCase(Ace::TextCase value) SetTextCase() argument 343 SetLetterSpacing(const Dimension& value) SetLetterSpacing() argument 348 SetAdaptMinFontSize(const Dimension& value) SetAdaptMinFontSize() argument 353 SetAdaptMaxFontSize(const Dimension& value) SetAdaptMaxFontSize() argument 358 SetHeightAdaptivePolicy(TextHeightAdaptivePolicy value) SetHeightAdaptivePolicy() argument 363 SetTextDetectEnable(bool value) SetTextDetectEnable() argument 423 SetTextCaretColor(const Color& value) SetTextCaretColor() argument 428 SetSelectedBackgroundColor(const Color& value) SetSelectedBackgroundColor() argument 467 InitText(FrameNode* frameNode, std::string& value) InitText() argument 491 SetTextCase(FrameNode* frameNode, Ace::TextCase value) SetTextCase() argument 496 SetMaxLines(FrameNode* frameNode, uint32_t value) SetMaxLines() argument 501 SetAdaptMinFontSize(FrameNode* frameNode, const Dimension& value) SetAdaptMinFontSize() argument 506 SetAdaptMaxFontSize(FrameNode* frameNode, const Dimension& value) SetAdaptMaxFontSize() argument 511 SetMinFontScale(FrameNode* frameNode, const float value) SetMinFontScale() argument 516 SetMaxFontScale(FrameNode* frameNode, const float value) SetMaxFontScale() argument 521 SetFontFamily(FrameNode* frameNode, const std::vector<std::string>& value) SetFontFamily() argument 531 SetTextShadow(FrameNode* frameNode, const std::vector<Shadow>& value) SetTextShadow() argument 536 SetHeightAdaptivePolicy(FrameNode* frameNode, TextHeightAdaptivePolicy value) SetHeightAdaptivePolicy() argument 541 SetTextIndent(FrameNode* frameNode, const Dimension& value) SetTextIndent() argument 546 SetBaselineOffset(FrameNode* frameNode, const Dimension& value) SetBaselineOffset() argument 551 SetFont(FrameNode* frameNode, const Font& value) SetFont() argument 568 SetLetterSpacing(FrameNode* frameNode, const Dimension& value) SetLetterSpacing() argument 573 SetWordBreak(FrameNode* frameNode, Ace::WordBreak value) SetWordBreak() argument 578 SetLineBreakStrategy(FrameNode* frameNode, Ace::LineBreakStrategy value) SetLineBreakStrategy() argument 583 SetTextSelectableMode(FrameNode* frameNode, Ace::TextSelectableMode value) SetTextSelectableMode() argument 591 SetEllipsisMode(FrameNode* frameNode, Ace::EllipsisMode value) SetEllipsisMode() argument 596 SetTextDetectEnable(FrameNode* frameNode, bool value) SetTextDetectEnable() argument 636 SetFontFeature(const FONT_FEATURES_LIST& value) SetFontFeature() argument 641 SetFontFeature(FrameNode* frameNode, const FONT_FEATURES_LIST& value) SetFontFeature() argument 660 auto value = layoutProperty->GetLineHeight().value_or(defaultLineHeight); GetLineHeight() local 670 auto value = layoutProperty->GetLineSpacing().value_or(defaultLineSpacing); GetLineSpacing() local 759 std::vector<std::string> value; GetFontFamily() local 766 CopyOptions value = CopyOptions::None; GetCopyOption() local 773 TextHeightAdaptivePolicy value = TextHeightAdaptivePolicy::MAX_LINES_FIRST; GetHeightAdaptivePolicy() local 780 Dimension value; GetAdaptMinFontSize() local 788 Dimension value; GetAdaptMaxFontSize() local 796 Font value; GetFont() local 806 Dimension value; GetFontSize() local 813 Ace::FontWeight value = Ace::FontWeight::NORMAL; GetFontWeight() local 820 Ace::FontStyle value = Ace::FontStyle::NORMAL; GetItalicFontStyle() local 863 Ace::WordBreak value = Ace::WordBreak::BREAK_WORD; GetWordBreak() local 870 EllipsisMode value = EllipsisMode::TAIL; GetEllipsisMode() local 882 SetTextDetectConfig(FrameNode* frameNode, const std::string& value) SetTextDetectConfig() argument 924 FONT_FEATURES_LIST value; GetFontFeature() local 931 TextSelectableMode value = TextSelectableMode::SELECTABLE_UNFOCUSABLE; GetTextSelectableMode() local 936 SetCaretColor(FrameNode* frameNode, const Color& value) SetCaretColor() argument 947 Color value = theme->GetCaretColor(); GetCaretColor() local 961 SetSelectedBackgroundColor(FrameNode* frameNode, const Color& value) SetSelectedBackgroundColor() argument 977 Color value = theme->GetSelectedColor(); GetSelectedBackgroundColor() local 994 LineBreakStrategy value = LineBreakStrategy::GREEDY; GetLineBreakStrategy() local 999 SetTextContentWithStyledString(FrameNode* frameNode, ArkUI_StyledString* value) SetTextContentWithStyledString() argument 1139 bool value = false; GetHalfLeading() local [all...] |
/test/xts/acts/security/huks/security_huks_reformed_test/utils/param/agree/ |
H A D | publicAgreeParam.js | 20 value: param.HksKeyStorageType.HKS_STORAGE_PERSISTENT, 22 HuksKeyISKEYALIAS: { tag: param.HksTag.HKS_TAG_IS_KEY_ALIAS, value: true }, 25 value: param.HksKeyDigest.HKS_DIGEST_NONE, 29 value: param.HksKeyDigest.HKS_DIGEST_SHA1, 33 value: param.HksKeyDigest.HKS_DIGEST_SHA224, 37 value: param.HksKeyDigest.HKS_DIGEST_SHA256, 41 value: param.HksKeyDigest.HKS_DIGEST_SHA384, 45 value: param.HksKeyDigest.HKS_DIGEST_SHA512, 49 value: param.HksKeyPadding.HKS_PADDING_NONE, 53 value [all...] |
/test/xts/acts/security/huks/security_huks_basic/utils/param/agree/ |
H A D | publicAgreeParam.js | 20 value: param.HksKeyStorageType.HKS_STORAGE_PERSISTENT,
22 HuksKeyISKEYALIAS: { tag: param.HksTag.HKS_TAG_IS_KEY_ALIAS, value: true },
25 value: param.HksKeyDigest.HKS_DIGEST_NONE,
29 value: param.HksKeyDigest.HKS_DIGEST_SHA1,
33 value: param.HksKeyDigest.HKS_DIGEST_SHA224,
37 value: param.HksKeyDigest.HKS_DIGEST_SHA256,
41 value: param.HksKeyDigest.HKS_DIGEST_SHA384,
45 value: param.HksKeyDigest.HKS_DIGEST_SHA512,
49 value: param.HksKeyPadding.HKS_PADDING_NONE,
53 value [all...] |
/test/xts/acts/security/huks/security_huks_basic/utils/param/derive/ |
H A D | publicDeriveParam.js | 25 value: param.HksKeySize.HKS_AES_KEY_SIZE_512,
29 value: param.HksKeyAlg.HKS_ALG_HKDF,
33 value: param.HksKeyAlg.HKS_ALG_AES,
37 value: param.HksKeyPurpose.HKS_KEY_PURPOSE_DERIVE,
41 value: param.HksKeyDigest.HKS_DIGEST_SHA256,
45 value: param.HksKeyDigest.HKS_DIGEST_SHA384,
49 value: param.HksKeyDigest.HKS_DIGEST_SHA512,
53 value: param.HksKeySize.HKS_AES_KEY_SIZE_128,
57 value: param.HksKeySize.HKS_AES_KEY_SIZE_192,
61 value [all...] |
/test/xts/acts/security/huks/security_huks_reformed_test/utils/param/derive/ |
H A D | publicDeriveParam.js | 25 value: param.HksKeySize.HKS_AES_KEY_SIZE_512, 29 value: param.HksKeyAlg.HKS_ALG_HKDF, 33 value: param.HksKeyAlg.HKS_ALG_AES, 37 value: param.HksKeyPurpose.HKS_KEY_PURPOSE_DERIVE, 41 value: param.HksKeyDigest.HKS_DIGEST_SHA256, 45 value: param.HksKeyDigest.HKS_DIGEST_SHA384, 49 value: param.HksKeyDigest.HKS_DIGEST_SHA512, 53 value: param.HksKeySize.HKS_AES_KEY_SIZE_128, 57 value: param.HksKeySize.HKS_AES_KEY_SIZE_192, 61 value [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/ |
H A D | grid_view.h | 31 static void SetColumnsTemplate(const std::string& value); 32 static void SetRowsTemplate(const std::string& value); 33 static void SetColumnsGap(const Dimension& value); 34 static void SetRowsGap(const Dimension& value); 35 static void SetScrollBarMode(DisplayMode value); 36 static void SetScrollBarColor(const Color& value); 37 static void SetScrollBarWidth(const Dimension& value); 38 static void SetCachedCount(int32_t value); 39 static void SetLayoutDirection(FlexDirection value); 40 static void SetMaxCount(int32_t value); [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/slider/ |
H A D | slider_model_ng.cpp | 35 void SliderModelNG::Create(float value, float step, float min, float max) in Create() argument 46 SetSliderValue(value); in Create() 48 void SliderModelNG::SetSliderValue(float value) in SetSliderValue() argument 54 pattern->UpdateValue(value); in SetSliderValue() 57 sliderEventHub->SetValue(value); in SetSliderValue() 59 void SliderModelNG::SetSliderMode(const SliderMode& value) in SetSliderMode() argument 61 ACE_UPDATE_LAYOUT_PROPERTY(SliderLayoutProperty, SliderMode, value); in SetSliderMode() 62 ACE_UPDATE_PAINT_PROPERTY(SliderPaintProperty, SliderMode, value); in SetSliderMode() 64 void SliderModelNG::SetDirection(Axis value) in SetDirection() argument 66 ACE_UPDATE_LAYOUT_PROPERTY(SliderLayoutProperty, Direction, value); in SetDirection() 69 SetReverse(bool value) SetReverse() argument 74 SetBlockColor(const Color& value) SetBlockColor() argument 78 SetTrackBackgroundColor(const Gradient& value, bool isResourceColor) SetTrackBackgroundColor() argument 83 SetSelectColor(const Color& value) SetSelectColor() argument 87 SetMinLabel(float value) SetMinLabel() argument 91 SetMaxLabel(float value) SetMaxLabel() argument 95 SetMinResponsiveDistance(float value) SetMinResponsiveDistance() argument 117 SetShowSteps(bool value) SetShowSteps() argument 125 SetShowTips(bool value, const std::optional<std::string>& content) SetShowTips() argument 134 SetThickness(const Dimension& value) SetThickness() argument 159 SetBlockBorderColor(const Color& value) SetBlockBorderColor() argument 163 SetBlockBorderWidth(const Dimension& value) SetBlockBorderWidth() argument 167 SetStepColor(const Color& value) SetStepColor() argument 171 SetTrackBorderRadius(const Dimension& value) SetTrackBorderRadius() argument 175 SetSelectedBorderRadius(const Dimension& value) SetSelectedBorderRadius() argument 203 SetBlockType(BlockStyleType value) SetBlockType() argument 207 SetBlockImage( const std::string& value, const std::string& bundleName, const std::string& moduleName) SetBlockImage() argument 214 SetBlockShape(const RefPtr<BasicShape>& value) SetBlockShape() argument 218 SetStepSize(const Dimension& value) SetStepSize() argument 307 SetShowTips(FrameNode* frameNode, bool value, const std::optional<std::string>& content) SetShowTips() argument 317 SetThickness(FrameNode* frameNode, const Dimension& value) SetThickness() argument 341 SetStepSize(FrameNode* frameNode, const Dimension& value) SetStepSize() argument 345 SetBlockType(FrameNode* frameNode, BlockStyleType value) SetBlockType() argument 349 SetBlockShape(FrameNode* frameNode, const RefPtr<BasicShape>& value) SetBlockShape() argument 376 SetTrackBorderRadius(FrameNode* frameNode, const Dimension& value) SetTrackBorderRadius() argument 380 SetStepColor(FrameNode* frameNode, const Color& value) SetStepColor() argument 384 SetBlockBorderColor(FrameNode* frameNode, const Color& value) SetBlockBorderColor() argument 388 SetBlockBorderWidth(FrameNode* frameNode, const Dimension& value) SetBlockBorderWidth() argument 392 SetBlockColor(FrameNode* frameNode, const Color& value) SetBlockColor() argument 396 SetTrackBackgroundColor(FrameNode* frameNode, const Gradient& value, bool isResourceColor) SetTrackBackgroundColor() argument 401 SetSelectColor(FrameNode* frameNode, const Color& value) SetSelectColor() argument 405 SetShowSteps(FrameNode* frameNode, bool value) SetShowSteps() argument 413 SetMinResponsiveDistance(FrameNode* frameNode, float value) SetMinResponsiveDistance() argument 428 SetBlockImage( FrameNode* frameNode, const std::string& value, const std::string& bundleName, const std::string& moduleName) SetBlockImage() argument 517 SetSliderValue(FrameNode* frameNode, float value) SetSliderValue() argument 525 SetMinLabel(FrameNode* frameNode, float value) SetMinLabel() argument 529 SetMaxLabel(FrameNode* frameNode, float value) SetMaxLabel() argument 534 SetSliderMode(FrameNode* frameNode, const SliderMode& value) SetSliderMode() argument 539 SetDirection(FrameNode* frameNode, Axis value) SetDirection() argument 544 SetReverse(FrameNode* frameNode, bool value) SetReverse() argument 549 SetStep(FrameNode* frameNode, float value) SetStep() argument 591 Color value; GetBlockColor() local 599 Gradient value; GetTrackBackgroundColor() local 608 Color value; GetSelectColor() local 616 bool value = false; GetShowSteps() local 624 SliderModel::BlockStyleType value = SliderModel::BlockStyleType::DEFAULT; GetBlockType() local 632 float value = DEFAULT_MIN_VALUE; GetSliderValue() local 640 float value = DEFAULT_MIN_VALUE; GetMinLabel() local 647 float value = DEFAULT_MAX_VALUE; GetMaxLabel() local 655 SliderModel::SliderMode value = SliderModel::SliderMode::OUTSET; GetSliderMode() local 662 OHOS::Ace::Axis value = OHOS::Ace::Axis::HORIZONTAL; GetDirection() local 669 bool value = false; GetReverse() local 676 float value = DEFAULT_STEP; GetStep() local 684 std::string value = ""; GetBlockImageValue() local 692 RefPtr<BasicShape> value = AceType::MakeRefPtr<BasicShape>(); GetBlockShape() local 699 RefPtr<SliderModel::SliderValidRange> value = AceType::MakeRefPtr<SliderModel::SliderValidRange>(); GetValidSlideRange() local 704 CreateSolidGradient(Color value) CreateSolidGradient() argument 726 SetChangeValue(FrameNode* frameNode, double value, int32_t mode) SetChangeValue() argument 758 SetSelectedBorderRadius(FrameNode* frameNode, const Dimension& value) SetSelectedBorderRadius() argument [all...] |
/foundation/ability/ability_base/test/unittest/base/ |
H A D | zchar_wrapper_test.cpp | 45 zchar value = 0;
in HWTEST_F() local 46 Char zcharValue(value);
in HWTEST_F() 47 ErrCode result = zcharValue.GetValue(value);
in HWTEST_F() 58 char value = 0;
in HWTEST_F() local 59 Char charValue(value);
in HWTEST_F() 60 char result = charValue.Unbox(charValue.Box(value));
in HWTEST_F() 71 zchar value = 0xD801;
in HWTEST_F() local 72 Char zcharValue(value);
in HWTEST_F() 73 EXPECT_EQ(0, zcharValue.GetByteSize(value));
in HWTEST_F() 83 zchar value in HWTEST_F() local 95 zchar value = 0x00000800 - 1; HWTEST_F() local 107 zchar value = 0x00010000 - 1; HWTEST_F() local 119 zchar value = 0x00010000 + 1; HWTEST_F() local 131 zchar value = 0; HWTEST_F() local 146 zchar value = 0; HWTEST_F() local 161 zchar value = 0; HWTEST_F() local 176 zchar value = 0; HWTEST_F() local 190 zchar value = 0; HWTEST_F() local 204 zchar value = 0; HWTEST_F() local 218 zchar value = 0; HWTEST_F() local [all...] |