/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...] |
/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...] |
/base/telephony/core_service/frameworks/native/src/ |
H A D | tel_ril_base_parcel.cpp | 21 bool Read(Parcel &parcel, int8_t &value)
in Read() argument 23 return parcel.ReadInt8(value);
in Read() 26 bool Read(Parcel &parcel, uint8_t &value)
in Read() argument 28 return parcel.ReadUint8(value);
in Read() 31 bool Read(Parcel &parcel, int32_t &value)
in Read() argument 33 return parcel.ReadInt32(value);
in Read() 36 bool Read(Parcel &parcel, uint32_t &value)
in Read() argument 38 return parcel.ReadUint32(value);
in Read() 41 bool Read(Parcel &parcel, int64_t &value)
in Read() argument 43 return parcel.ReadInt64(value);
in Read() 46 Read(Parcel &parcel, uint64_t &value) Read() argument 51 Read(Parcel &parcel, bool &value) Read() argument 56 Read(Parcel &parcel, std::string &value) Read() argument 61 Write(Parcel &parcel, const int8_t &value) Write() argument 66 Write(Parcel &parcel, const uint8_t &value) Write() argument 71 Write(Parcel &parcel, const int32_t &value) Write() argument 76 Write(Parcel &parcel, const uint32_t &value) Write() argument 81 Write(Parcel &parcel, const int64_t &value) Write() argument 86 Write(Parcel &parcel, const uint64_t &value) Write() argument 91 Write(Parcel &parcel, const bool &value) Write() argument 96 Write(Parcel &parcel, const std::string &value) Write() argument 102 ReadBaseUint8(Parcel &parcel, uint8_t &value) ReadBaseUint8() argument 107 ReadBaseInt32(Parcel &parcel, int32_t &value) ReadBaseInt32() argument 112 ReadBaseInt64(Parcel &parcel, int64_t &value) ReadBaseInt64() argument 117 ReadBaseBool(Parcel &parcel, bool &value) ReadBaseBool() argument 122 ReadBaseString(Parcel &parcel, std::string &value) ReadBaseString() 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/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...] |
/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/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...] |
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/ |
H A D | hiappevent_c.cpp | 47 using ParamAdder = void (*)(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value); 49 void AddBoolParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) in AddBoolParamValue() argument 51 appEventPack->AddParam(name, value->value.bool_v); in AddBoolParamValue() 54 void AddBoolArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) in AddBoolArrayParamValue() argument 56 AddArrayParam(appEventPack, name, value->value.bool_arr_v, value->arrSize); in AddBoolArrayParamValue() 59 void AddInt8ParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) in AddInt8ParamValue() argument 61 appEventPack->AddParam(name, value in AddInt8ParamValue() 64 AddInt8ArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) AddInt8ArrayParamValue() argument 69 AddInt16ParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) AddInt16ParamValue() argument 74 AddInt16ArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) AddInt16ArrayParamValue() argument 79 AddInt32ParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) AddInt32ParamValue() argument 84 AddInt32ArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) AddInt32ArrayParamValue() argument 89 AddInt64ParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) AddInt64ParamValue() argument 94 AddInt64ArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) AddInt64ArrayParamValue() argument 99 AddFloatParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) AddFloatParamValue() argument 104 AddFloatArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) AddFloatArrayParamValue() argument 109 AddDoubleParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) AddDoubleParamValue() argument 114 AddDoubleArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) AddDoubleArrayParamValue() argument 119 AddStringParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) AddStringParamValue() argument 124 AddStringArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) AddStringArrayParamValue() argument 148 AddParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) AddParamValue() argument 181 HiAppEventInnerConfigure(const char* name, const char* value) HiAppEventInnerConfigure() argument [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...] |
/base/security/asset/test/unittest/module_test/src/ |
H A D | asset_system_api_test.cpp | 87 { .tag = SEC_ASSET_TAG_ALIAS, .value.blob = funcName }, in HWTEST_F() 88 { .tag = SEC_ASSET_TAG_SECRET, .value.blob = funcName }, in HWTEST_F() 89 { .tag = SEC_ASSET_TAG_ACCESSIBILITY, .value.u32 = SEC_ASSET_ACCESSIBILITY_DEVICE_UNLOCKED }, in HWTEST_F() 90 { .tag = SEC_ASSET_TAG_USER_ID, .value.u32 = SPECIFIC_USER_ID }, in HWTEST_F() 91 { .tag = SEC_ASSET_TAG_REQUIRE_PASSWORD_SET, .value.boolean = false }, in HWTEST_F() 92 { .tag = SEC_ASSET_TAG_AUTH_TYPE, .value.u32 = SEC_ASSET_AUTH_TYPE_NONE }, in HWTEST_F() 93 { .tag = SEC_ASSET_TAG_SYNC_TYPE, .value.u32 = SEC_ASSET_SYNC_TYPE_NEVER }, in HWTEST_F() 94 { .tag = SEC_ASSET_TAG_CONFLICT_RESOLUTION, .value.u32 = SEC_ASSET_CONFLICT_OVERWRITE }, in HWTEST_F() 95 { .tag = SEC_ASSET_TAG_DATA_LABEL_NORMAL_1, .value.blob = funcName }, in HWTEST_F() 96 { .tag = SEC_ASSET_TAG_DATA_LABEL_NORMAL_2, .value in HWTEST_F() [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/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/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/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...] |
/base/update/updateservice/services/firmware/data/db/src/ |
H A D | firmware_component_table.cpp | 61 void FirmwareComponentTable::ParseDbValue(ResultSet *resultSet, FirmwareComponent &value) in ParseDbValue() argument 63 GetColumnValue(resultSet, COLUMN_ID, value.id); in ParseDbValue() 64 GetColumnValue(resultSet, COLUMN_COMPONENT_VERSION_ID, value.versionId); in ParseDbValue() 67 value.versionPackageType = static_cast<PackageType>(versionPackageType); in ParseDbValue() 68 GetColumnValue(resultSet, COLUMN_COMPONENT_PACKAGE_INDEX, value.packageIndex); in ParseDbValue() 69 GetColumnValue(resultSet, COLUMN_COMPONENT_TARGET_BL_DISPLAY_VERSION_NUMBER, value.targetBlDisplayVersionNumber); in ParseDbValue() 70 GetColumnValue(resultSet, COLUMN_COMPONENT_TARGET_BL_VERSION_NUMBER, value.targetBlVersionNumber); in ParseDbValue() 71 GetColumnValue(resultSet, COLUMN_COMPONENT_VERSION_NUMBER, value.versionNumber); in ParseDbValue() 72 GetColumnValue(resultSet, COLUMN_COMPONENT_BL_VERSION_INFO, value.blVersionInfo); in ParseDbValue() 73 GetColumnValue(resultSet, COLUMN_COMPONENT_DESCRIPT_PACKAGE_ID, value in ParseDbValue() 92 BuildDbValue(const FirmwareComponent &value, NativeRdb::ValuesBucket &dbValue) BuildDbValue() 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/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/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/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...] |
/base/telephony/sms_mms/frameworks/native/mms/src/ |
H A D | mms_encode_buffer.cpp | 30 * @param value
34 bool MmsEncodeBuffer::EncodeUintvar(uint32_t value)
in EncodeUintvar() argument 41 reversed[0] = (char)value & setHighestBitZero;
in EncodeUintvar() 42 value = value >> shiftUintBits;
in EncodeUintvar() 43 while (value > 0) {
in EncodeUintvar() 44 reversed[len] = setNotHighestBitZero | (value & setHighestBitZero);
in EncodeUintvar() 46 value = value >> shiftUintBits;
in EncodeUintvar() 59 bool MmsEncodeBuffer::WriteByte(uint8_t value)
in WriteByte() argument 111 EncodeShortLength(uint8_t value) EncodeShortLength() argument 136 EncodeShortInteger(uint8_t value) EncodeShortInteger() argument 154 EncodeOctet(uint8_t value) EncodeOctet() argument 174 EncodeValueLength(uint32_t value) EncodeValueLength() argument 193 EncodeInteger(uint32_t value) EncodeInteger() argument 214 EncodeLongInteger(uint64_t value) EncodeLongInteger() argument 255 EncodeText(std::string value) EncodeText() argument 291 EncodeQuotedText(std::string value) EncodeQuotedText() argument 322 EncodeTokenText(std::string value) EncodeTokenText() argument [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...] |