/third_party/skia/third_party/externals/tint/src/utils/ |
H A D | math.h | 25 /// @param alignment the next multiple to round `value` to 26 /// @param value the value to round to the next multiple of `alignment` 27 /// @return `value` rounded to the next multiple of `alignment` 30 inline T RoundUp(T alignment, T value) { in RoundUp() argument 31 return ((value + alignment - 1) / alignment) * alignment; in RoundUp() 34 /// @param value the value to check whether it is a power-of-two 35 /// @returns true if `value` is a power-of-two 36 /// @note `value` mus 38 IsPowerOfTwo(T value) IsPowerOfTwo() argument 45 MaxAlignOf(T value) MaxAlignOf() argument [all...] |
/third_party/typescript/tests/baselines/reference/ |
H A D | asyncMultiFile_es6.js | 10 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
12 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
13 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
14 function step(result) { result.done ? resolve(result.value) : adopt(result.value) [all...] |
H A D | autoAccessor5(target=es2022).js | 19 set ["w"](value) { this.#_a_accessor_storage = value; }
22 set ["x"](value) { this.#_b_accessor_storage = value; }
25 static set ["y"](value) { this.#_c_accessor_storage = value; }
28 static set ["z"](value) { this.#_d_accessor_storage = value; }
33 set [_a](value) { this.#_e_accessor_storage = value; }
[all...] |
H A D | exportDefaultAsyncFunction.js | 8 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
10 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
11 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
12 function step(result) { result.done ? resolve(result.value) : adopt(result.value) [all...] |
H A D | importCallExpressionNestedES2015.js | 15 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19 function step(result) { result.done ? resolve(result.value) : adopt(result.value) [all...] |
H A D | importCallExpressionNestedES2020.js | 16 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
18 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20 function step(result) { result.done ? resolve(result.value) : adopt(result.value) [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | jpeg_decoder_ex_test.cpp | 77 std::string value = ""; in HWTEST_F() local 79 jpegDecoder->GetImagePropertyString(0, key, value); in HWTEST_F() 80 ASSERT_EQ(value, exifInfo_.compressedBitsPerPixel_); in HWTEST_F() 98 std::string value = ""; in HWTEST_F() local 100 jpegDecoder->GetImagePropertyString(0, key, value); in HWTEST_F() 101 ASSERT_EQ(value, exifInfo_.dateTime_); in HWTEST_F() 119 std::string value = ""; in HWTEST_F() local 121 jpegDecoder->GetImagePropertyString(0, key, value); in HWTEST_F() 122 ASSERT_EQ(value, exifInfo_.gpsTimeStamp_); in HWTEST_F() 140 std::string value in HWTEST_F() local 161 std::string value = ""; HWTEST_F() local 182 std::string value = ""; HWTEST_F() local 203 std::string value = ""; HWTEST_F() local 224 std::string value = ""; HWTEST_F() local 245 std::string value = ""; HWTEST_F() local 266 std::string value = ""; HWTEST_F() local 287 std::string value = ""; HWTEST_F() local 308 std::string value = ""; HWTEST_F() local 329 std::string value = ""; HWTEST_F() local 350 std::string value = ""; HWTEST_F() local 371 std::string value = ""; HWTEST_F() local 392 std::string value = ""; HWTEST_F() local 413 std::string value = ""; HWTEST_F() local 434 std::string value = ""; HWTEST_F() local 455 std::string value = ""; HWTEST_F() local 476 std::string value = ""; HWTEST_F() local 497 std::string value = ""; HWTEST_F() local 518 std::string value = ""; HWTEST_F() local 539 std::string value = ""; HWTEST_F() local 560 std::string value = ""; HWTEST_F() local 581 std::string value = ""; HWTEST_F() local 812 int32_t value = 0; HWTEST_F() local 832 int32_t value = 0; HWTEST_F() local 852 int32_t value = 0; HWTEST_F() local 872 std::string value = ""; HWTEST_F() local 893 std::string value = ""; HWTEST_F() local 914 std::string value = ""; HWTEST_F() local 935 std::string value = ""; HWTEST_F() local 956 std::string value = ""; HWTEST_F() local 977 std::string value = ""; HWTEST_F() local 998 std::string value = ""; HWTEST_F() local 1020 std::string value = ""; HWTEST_F() local 1041 std::string value = ""; HWTEST_F() local 1062 std::string value = ""; HWTEST_F() local 1083 std::string value = ""; HWTEST_F() local 1104 std::string value = ""; HWTEST_F() local 1125 std::string value = ""; HWTEST_F() local 1146 std::string value = ""; HWTEST_F() local 1167 std::string value = ""; HWTEST_F() local 1188 std::string value = ""; HWTEST_F() local 1209 std::string value = ""; HWTEST_F() local 1230 std::string value = ""; HWTEST_F() local 1251 std::string value = ""; HWTEST_F() local 1273 std::string value = ""; HWTEST_F() local 1344 std::string value = ""; HWTEST_F() local 1403 const std::string value = "111"; HWTEST_F() local [all...] |
/base/location/frameworks/js/napi/notification/src/ |
H A D | notification_napi.cpp | 43 const napi_env &env, const napi_value &value, NotificationSubscribeInfo &subscriberInfo) in GetNotificationSubscriberInfo() 53 NAPI_CALL(env, napi_has_named_property(env, value, "bundleNames", &hasProperty)); in GetNotificationSubscriberInfo() 56 napi_get_named_property(env, value, "bundleNames", &nBundleNames); in GetNotificationSubscriberInfo() 83 NAPI_CALL(env, napi_has_named_property(env, value, "userId", &hasProperty)); in GetNotificationSubscriberInfo() 86 napi_get_named_property(env, value, "userId", &nUserId); in GetNotificationSubscriberInfo() 132 napi_value value = nullptr; in GetNotificationUserInputByInputKey() local 143 napi_get_named_property(env, userInputResult, "inputKey", &value); in GetNotificationUserInputByInputKey() 144 NAPI_CALL(env, napi_typeof(env, value, &valuetype)); in GetNotificationUserInputByInputKey() 149 NAPI_CALL(env, napi_get_value_string_utf8(env, value, str, STR_MAX_SIZE - 1, &strLen)); in GetNotificationUserInputByInputKey() 166 napi_value value in GetNotificationUserInputByTag() local 42 GetNotificationSubscriberInfo( const napi_env &env, const napi_value &value, NotificationSubscribeInfo &subscriberInfo) GetNotificationSubscriberInfo() argument 200 napi_value value = nullptr; GetNotificationUserInputByOptions() local 253 napi_value value = nullptr; GetNotificationUserInputByPermitMimeTypes() local 299 napi_value value = nullptr; GetNotificationUserInputByPermitFreeFormInput() local 330 napi_value value = nullptr; GetNotificationUserInputByEditType() local 429 GetNotificationSlot(const napi_env &env, const napi_value &value, NotificationSlot &slot) GetNotificationSlot() argument 485 GetNotificationSlotByString( const napi_env &env, const napi_value &value, NotificationSlot &slot) GetNotificationSlotByString() argument 532 GetNotificationSlotByBool( const napi_env &env, const napi_value &value, NotificationSlot &slot) GetNotificationSlotByBool() argument 588 GetNotificationSlotByNumber( const napi_env &env, const napi_value &value, NotificationSlot &slot) GetNotificationSlotByNumber() argument 649 GetNotificationSlotByVibration( const napi_env &env, const napi_value &value, NotificationSlot &slot) GetNotificationSlotByVibration() argument 708 GetBundleOption( const napi_env &env, const napi_value &value, NotificationBundleOption &option) GetBundleOption() argument 751 GetButtonOption( const napi_env &env, const napi_value &value, NotificationButtonOption &option) GetButtonOption() argument 780 GetHashCodes( const napi_env &env, const napi_value &value, std::vector<std::string> &hashCodes) GetHashCodes() argument 808 GetNotificationKey(const napi_env &env, const napi_value &value, NotificationKey &key) GetNotificationKey() argument 858 GetNotificationTemplate( const napi_env &env, const napi_value &value, NotificationRequest &request) GetNotificationTemplate() argument 887 GetNotificationBundleOption( const napi_env &env, const napi_value &value, NotificationRequest &request) GetNotificationBundleOption() argument 916 GetNotificationTemplateInfo(const napi_env &env, const napi_value &value, std::shared_ptr<NotificationTemplate> &templ) GetNotificationTemplateInfo() argument [all...] |
/third_party/libfuse/example/ |
H A D | cxxopts.hpp | 312 default_value(const std::string& value) = 0; 315 implicit_value(const std::string& value) = 0; 521 check_signed_range(bool negative, U value, const std::string& text) in check_signed_range() argument 523 SignedCheck<T, std::numeric_limits<T>::is_signed>()(negative, value, text); in check_signed_range() 546 integer_parser(const std::string& text, T& value) in integer_parser() argument 558 value = 0; in integer_parser() 606 value = checked_negate<T>(result, in integer_parser() 612 value = static_cast<T>(result); in integer_parser() 617 void stringstream_parser(const std::string& text, T& value) in stringstream_parser() argument 620 in >> value; in stringstream_parser() local 628 parse_value(const std::string& text, uint8_t& value) parse_value() argument 635 parse_value(const std::string& text, int8_t& value) parse_value() argument 642 parse_value(const std::string& text, uint16_t& value) parse_value() argument 649 parse_value(const std::string& text, int16_t& value) parse_value() argument 656 parse_value(const std::string& text, uint32_t& value) parse_value() argument 663 parse_value(const std::string& text, int32_t& value) parse_value() argument 670 parse_value(const std::string& text, uint64_t& value) parse_value() argument 677 parse_value(const std::string& text, int64_t& value) parse_value() argument 684 parse_value(const std::string& text, bool& value) parse_value() argument 707 parse_value(const std::string& text, std::string& value) parse_value() argument 717 parse_value(const std::string& text, T& value) parse_value() argument 723 parse_value(const std::string& text, std::vector<T>& value) parse_value() argument 737 parse_value(const std::string& text, std::optional<T>& value) parse_value() argument 748 static constexpr bool value = false; global() member 754 static constexpr bool value = true; global() member 825 default_value(const std::string& value) default_value() argument 833 implicit_value(const std::string& value) implicit_value() argument 940 value() value() function 947 value(T& t) value() function 987 const Value& value() const { value() function in cxxopts::OptionDetails 1122 value() const value() function in cxxopts::KeyValue 1533 operator ()( const std::string& opts, const std::string& desc, std::shared_ptr<const Value> value, std::string arg_help ) operator ()() argument 1598 parse_option( std::shared_ptr<OptionDetails> value, const std::string& , const std::string& arg ) parse_option() argument 1613 checked_parse_arg( int argc, char* argv[], int& current, std::shared_ptr<OptionDetails> value, const std::string& name ) checked_parse_arg() argument 1802 auto value = iter->second; parse() local 1867 auto& value = detail->value(); parse() local 1900 add_option( const std::string& group, const std::string& s, const std::string& l, std::string desc, std::shared_ptr<const Value> value, std::string arg_help ) add_option() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/svg/ |
H A D | render_svg_pattern.cpp | 45 double RenderSvgPattern::ParseUnitsAttr(const Dimension& attr, double value) const in ParseUnitsAttr() 50 return value * attr.Value(); in ParseUnitsAttr() 52 return attr.Value() * value; in ParseUnitsAttr() 56 return value * attr.Value(); in ParseUnitsAttr() 80 attributeName = svgAnimate->GetAttributeName()](double value) { in PrepareSelfAnimation() 86 bool ret = mask->SetProperty(attributeName, value); in PrepareSelfAnimation() 95 bool RenderSvgPattern::SetProperty(const std::string& attrName, double value) in SetProperty() argument 98 x_.SetValue(value); in SetProperty() 100 y_.SetValue(value); in SetProperty() 102 width_.SetValue(value); in SetProperty() [all...] |
H A D | render_svg_mask.cpp | 44 double RenderSvgMask::ParseUnitsAttr(const Dimension& attr, double value) in ParseUnitsAttr() argument 49 return value * attr.Value(); in ParseUnitsAttr() 51 return attr.Value() * value; in ParseUnitsAttr() 55 return value * attr.Value(); in ParseUnitsAttr() 78 attributeName = svgAnimate->GetAttributeName()](double value) { in PrepareSelfAnimation() 84 bool ret = mask->SetProperty(attributeName, value); in PrepareSelfAnimation() 93 bool RenderSvgMask::SetProperty(const std::string& attrName, double value) in SetProperty() argument 96 x_.SetValue(value); in SetProperty() 98 y_.SetValue(value); in SetProperty() 100 width_.SetValue(value); in SetProperty() [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_stack_ffi.cpp | 44 void FfiOHOSAceFrameworkStackCreate(int32_t value) in FfiOHOSAceFrameworkStackCreate() argument 46 if (!Utils::CheckParamsValid(value, ALIGNMENT_ARR.size())) { in FfiOHOSAceFrameworkStackCreate() 47 LOGE("invalid value for overflow"); in FfiOHOSAceFrameworkStackCreate() 50 StackModel::GetInstance()->Create(ALIGNMENT_ARR[value]); in FfiOHOSAceFrameworkStackCreate() 53 void FfiOHOSAceFrameworkStackSetOverflow(int32_t value) in FfiOHOSAceFrameworkStackSetOverflow() argument 55 if (!Utils::CheckParamsValid(value, OVERFLOWS.size())) { in FfiOHOSAceFrameworkStackSetOverflow() 56 LOGE("invalid value for overflow"); in FfiOHOSAceFrameworkStackSetOverflow() 59 StackModel::GetInstance()->SetOverflow(OVERFLOWS[value]); in FfiOHOSAceFrameworkStackSetOverflow() 62 void FfiOHOSAceFrameworkStackSetStackFit(int32_t value) in FfiOHOSAceFrameworkStackSetStackFit() argument 64 if (!Utils::CheckParamsValid(value, STACK_FIT in FfiOHOSAceFrameworkStackSetStackFit() 71 FfiOHOSAceFrameworkStackSetAlignment(int32_t value) FfiOHOSAceFrameworkStackSetAlignment() argument 80 FfiOHOSAceFrameworkStackSetWidth(double value, int32_t unit) FfiOHOSAceFrameworkStackSetWidth() argument 91 FfiOHOSAceFrameworkStackSetHeight(double value, int32_t unit) FfiOHOSAceFrameworkStackSetHeight() argument [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/src/engine/ |
H A D | engine_input_property_manager.cpp | 30 // evaluate property and set the value to engine value for synchronisation in Sync() 31 p.second.value->SetValue(p.second.property->GetValue()); in Sync() 35 static IProperty::Ptr ConstructFromValue(const IEngineValue::Ptr& value) in ConstructFromValue() argument 38 if (auto internal = interface_cast<IEngineValueInternal>(value)) { in ConstructFromValue() 39 property = GetObjectRegistry().GetPropertyRegister().Create(META_NS::ClassId::StackProperty, value->GetName()); in ConstructFromValue() 44 i->SetDefaultValue(value->GetValue()); in ConstructFromValue() 56 auto value = manager_->GetEngineValue(name); in ConstructProperty() local 57 IProperty::Ptr property = ConstructFromValue(value); in ConstructProperty() 59 props_[name] = PropInfo { property, value }; in ConstructProperty() 70 IEngineValue::Ptr value; TieProperty() local [all...] |
/foundation/graphic/graphic_3d/kits/js/src/ |
H A D | Vec3Proxy.cpp | 31 value = META_NS::Property<BASE_NS::Math::Vec3>(prop_)->GetValue();
in UpdateLocalValues() 36 META_NS::Property<BASE_NS::Math::Vec3>(prop_)->SetValue(value);
in UpdateRemoteValues() 42 if (value != v) {
in SetValue() 43 value = v;
in SetValue() 54 if ((memb == "x") && (val != value.x)) {
in SetValue() 55 value.x = val;
in SetValue() 57 } else if ((memb == "y") && (val != value.y)) {
in SetValue() 58 value.y = val;
in SetValue() 60 } else if ((memb == "z") && (val != value.z)) {
in SetValue() 61 value in SetValue() 83 napi_value value; GetValue() local [all...] |
/foundation/multimedia/image_framework/frameworks/kits/js/common/picture_ndk/ |
H A D | image_common.cpp | 52 Image_ErrorCode OH_PictureMetadata_GetProperty(OH_PictureMetadata *metadata, Image_String *key, Image_String *value) in OH_PictureMetadata_GetProperty() argument 54 if (metadata == nullptr || key == nullptr || key->data == nullptr || key->size == 0 || value == nullptr) { in OH_PictureMetadata_GetProperty() 66 if (value->size != 0 && value->size < val.size()) { in OH_PictureMetadata_GetProperty() 69 value->size = (value->size == 0) ? val.size() : value->size; in OH_PictureMetadata_GetProperty() 70 auto uniptrTmp = std::make_unique<char[]>(value->size); in OH_PictureMetadata_GetProperty() 74 if (EOK != memcpy_s(uniptrTmp.get(), value->size, val.c_str(), val.size())) { in OH_PictureMetadata_GetProperty() 77 value in OH_PictureMetadata_GetProperty() 82 OH_PictureMetadata_SetProperty(OH_PictureMetadata *metadata, Image_String *key, Image_String *value) OH_PictureMetadata_SetProperty() argument [all...] |
/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/convert/ |
H A D | udmf_conversion.cpp | 57 auto value = record->GetOriginValue();
in ConvertRecordToSubclass() local 61 record = std::make_shared<Text>(type, value);
in ConvertRecordToSubclass() 65 record = std::make_shared<PlainText>(type, value);
in ConvertRecordToSubclass() 69 record = std::make_shared<Html>(type, value);
in ConvertRecordToSubclass() 73 record = std::make_shared<Link>(type, value);
in ConvertRecordToSubclass() 77 record = std::make_shared<File>(type, value);
in ConvertRecordToSubclass() 81 record = std::make_shared<Image>(type, value);
in ConvertRecordToSubclass() 85 record = std::make_shared<Video>(type, value);
in ConvertRecordToSubclass() 89 record = std::make_shared<Audio>(type, value);
in ConvertRecordToSubclass() 93 record = std::make_shared<Folder>(type, value);
in ConvertRecordToSubclass() [all...] |
/foundation/filemanagement/app_file_service/tests/mock/module_ipc/ |
H A D | message_parcel_mock.cpp | 49 bool Parcel::WriteInt32(int32_t value) in WriteInt32() argument 51 return BackupMessageParcel::messageParcel->WriteInt32(value); in WriteInt32() 59 bool Parcel::ReadInt32(int32_t &value) in ReadInt32() argument 61 return BackupMessageParcel::messageParcel->ReadInt32(value); in ReadInt32() 84 bool Parcel::ReadBool(bool &value) in ReadBool() argument 86 return BackupMessageParcel::messageParcel->ReadBool(value); in ReadBool() 89 bool Parcel::WriteBool(bool value) in WriteBool() argument 91 return BackupMessageParcel::messageParcel->WriteBool(value); in WriteBool() 94 bool Parcel::WriteString(const std::string &value) in WriteString() argument 96 return BackupMessageParcel::messageParcel->WriteString(value); in WriteString() 99 ReadString(std::string &value) ReadString() argument 104 ReadStringVector(std::vector<std::string> *value) ReadStringVector() argument 119 ReadUint32(uint32_t &value) ReadUint32() argument [all...] |
H A D | message_parcel_mock.h | 48 virtual bool WriteInt32(int32_t value) = 0; 50 virtual bool ReadInt32(int32_t &value) = 0; 55 virtual bool ReadBool(bool &value) = 0; 56 virtual bool WriteBool(bool value) = 0; 57 virtual bool WriteString(const std::string &value) = 0; 59 virtual bool ReadString(std::string &value) = 0; 61 virtual bool ReadStringVector(std::vector<std::string> *value) = 0; 62 virtual bool ReadUint32(uint32_t &value) = 0; 72 MOCK_METHOD1(WriteInt32, bool(int32_t value)); 74 MOCK_METHOD1(ReadInt32, bool(int32_t &value)); [all...] |
/foundation/filemanagement/dfs_service/utils/preference/src/ |
H A D | cloud_pref_impl.cpp | 60 void CloudPrefImpl::SetString(const std::string& key, const std::string& value) in SetString() argument 66 pref_->PutString(key, value); in SetString() 73 void CloudPrefImpl::GetString(const std::string& key, std::string &value) in GetString() argument 79 value = pref_->GetString(key, ""); in GetString() 82 void CloudPrefImpl::SetLong(const std::string& key, const int64_t value) in SetLong() argument 88 pref_->PutLong(key, value); in SetLong() 95 void CloudPrefImpl::GetLong(const std::string& key, int64_t &value) in GetLong() argument 101 value = pref_->GetLong(key, 0); in GetLong() 104 void CloudPrefImpl::SetInt(const std::string& key, const int value) in SetInt() argument 110 pref_->PutInt(key, value); in SetInt() 117 GetInt(const std::string& key, int32_t &value) GetInt() argument 126 SetBool(const std::string& key, const bool& value) SetBool() argument 139 GetBool(const std::string& key, bool& value) GetBool() argument [all...] |
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/text/ |
H A D | text_fontsize_test.cpp | 27 ArkUI_NumberValue value[] = {{.f32 = size}}; in TestTextFontSize001() local 28 ArkUI_AttributeItem valueItem = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestTextFontSize001() 30 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_FONT_SIZE)->value[PARAM_0].f32, size); in TestTextFontSize001() 42 ArkUI_NumberValue value[] = {{.f32 = size}}; in TestTextFontSize002() local 43 ArkUI_AttributeItem valueItem = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestTextFontSize002() 45 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_FONT_SIZE)->value[PARAM_0].f32, size); in TestTextFontSize002() 57 ArkUI_NumberValue value[] = {{.f32 = size}}; in TestTextFontSize003() local 58 ArkUI_AttributeItem valueItem = {value, sizeo in TestTextFontSize003() 72 ArkUI_NumberValue value[] = {{.f32 = size}}; TestTextFontSize004() local [all...] |
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/scroll/ |
H A D | scroll_rotate_test.cpp | 29 ArkUI_NumberValue value[] = {{.f32 = DEFAULT_VALUE}, in TestScrollRotate001() local 34 ArkUI_AttributeItem value_item = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestScrollRotate001() 37 ASSERT_EQ(nodeAPI->getAttribute(scroll, NODE_ROTATE)->value[PARAM_0].f32, DEFAULT_VALUE); in TestScrollRotate001() 38 ASSERT_EQ(nodeAPI->getAttribute(scroll, NODE_ROTATE)->value[PARAM_1].f32, DEFAULT_VALUE); in TestScrollRotate001() 39 ASSERT_EQ(nodeAPI->getAttribute(scroll, NODE_ROTATE)->value[PARAM_2].f32, DEFAULT_VALUE); in TestScrollRotate001() 40 ASSERT_EQ(nodeAPI->getAttribute(scroll, NODE_ROTATE)->value[PARAM_3].f32, DEFAULT_VALUE); in TestScrollRotate001() 41 ASSERT_EQ(nodeAPI->getAttribute(scroll, NODE_ROTATE)->value[PARAM_4].f32, DEFAULT_VALUE); in TestScrollRotate001() 48 ArkUI_NumberValue value[] = {{.f32 = DEFAULT_VALUE}, in TestScrollRotate002() local 53 ArkUI_AttributeItem value_item = {value, sizeo in TestScrollRotate002() [all...] |
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/stack/ |
H A D | stack_rotate_test.cpp | 28 ArkUI_NumberValue value[] = {{.f32 = x}, {.f32 = y}, {.f32 = z}, {.f32 = angle}, {.f32 = perspective}}; in TestStackRotate001() local 29 ArkUI_AttributeItem value_item = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestStackRotate001() 32 ASSERT_EQ(nodeAPI->getAttribute(stack, NODE_ROTATE)->value[PARAM_0].f32, x); in TestStackRotate001() 33 ASSERT_EQ(nodeAPI->getAttribute(stack, NODE_ROTATE)->value[PARAM_1].f32, y); in TestStackRotate001() 34 ASSERT_EQ(nodeAPI->getAttribute(stack, NODE_ROTATE)->value[PARAM_2].f32, z); in TestStackRotate001() 35 ASSERT_EQ(nodeAPI->getAttribute(stack, NODE_ROTATE)->value[PARAM_3].f32, angle); in TestStackRotate001() 36 ASSERT_EQ(nodeAPI->getAttribute(stack, NODE_ROTATE)->value[PARAM_4].f32, perspective); in TestStackRotate001() 48 ArkUI_NumberValue value[] = {{.f32 = x}, {.f32 = y}, {.f32 = z}, {.f32 = angle}, {.f32 = perspective}}; in TestStackRotate002() local 49 ArkUI_AttributeItem value_item = {value, sizeo in TestStackRotate002() [all...] |
/third_party/PyYAML/tests/lib/ |
H A D | test_schema.py | 6 def check_bool(value, expected): 7 if expected == 'false()' and value is False: 9 if expected == 'true()' and value is True: 11 print(value) 15 def check_int(value, expected): 16 if (int(expected) == value): 18 print(value) 22 def check_float(value, expected): 24 if value == math.inf: 27 if value [all...] |
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/layout/ |
H A D | LanguageData.java | 154 public String getTag(int value) in getTag() argument 156 if (value < minLanguage || value > maxLanguage) { in getTag() 160 return languages[value - minLanguage].tag(); in getTag() 163 public String getTagLabel(int value) in getTagLabel() argument 165 if (value < minLanguage || value > maxLanguage) { in getTagLabel() 169 return languages[value - minLanguage].label(); in getTagLabel() 172 public String makeTag(int value) in makeTag() argument 174 if (value < minLanguag in makeTag() 181 getName(int value) getName() argument [all...] |
/third_party/node/deps/v8/tools/wasm-compilation-hints/ |
H A D | wasm.py | 22 value, bs = peek_uint8(fin) 24 return value, bs 33 value, bs = peek_uint32(fin) 35 return value, bs 38 value = 0 46 value |= (b & 0x7F) << shift; 48 return value, bs 53 value, bs = peek_varuintN(fin) 55 return value, bs 57 def to_varuintN(value) [all...] |