/third_party/node/deps/v8/src/base/ |
H A D | safe_conversions_impl.h | 37 static const int value = std::is_floating_point<NumericType>::value member 46 static const int value = std::numeric_limits<NumericType>::digits + member 47 std::is_signed<NumericType>::value; 54 static const size_t value = IntegerBitsPlusSign<Integer>::value - 1; member 57 // Determines if a numeric value is negative without throwing compiler 58 // warnings on: unsigned(value) < 0. 60 typename std::enable_if<std::is_signed<T>::value>::type* = nullptr> 61 constexpr bool IsValueNegative(T value) { in IsValueNegative() argument 88 SafeUnsignedAbs(T value) SafeUnsignedAbs() argument 165 static const NumericRangeRepresentation value = global() member 178 static const NumericRangeRepresentation value = global() member 190 static const NumericRangeRepresentation value = NUMERIC_RANGE_NOT_CONTAINED; global() member [all...] |
/third_party/skia/third_party/externals/angle2/src/common/third_party/base/anglebase/numerics/ |
H A D | safe_conversions_impl.h | 33 static const int value = std::is_floating_point<NumericType>::value member 43 static const int value = member 44 std::numeric_limits<NumericType>::digits + std::is_signed<NumericType>::value; 52 static const size_t value = IntegerBitsPlusSign<Integer>::value - 1; member 55 // Determines if a numeric value is negative without throwing compiler 56 // warnings on: unsigned(value) < 0. 57 template <typename T, typename std::enable_if<std::is_signed<T>::value>::type * = nullptr> 58 constexpr bool IsValueNegative(T value) in IsValueNegative() argument 85 SafeUnsignedAbs(T value) SafeUnsignedAbs() argument 176 static const NumericRangeRepresentation value = global() member 189 static const NumericRangeRepresentation value = global() member 201 static const NumericRangeRepresentation value = NUMERIC_RANGE_NOT_CONTAINED; global() member [all...] |
/third_party/skia/third_party/externals/swiftshader/include/vulkan/ |
H A D | vulkan_enums.hpp | 13 template <typename EnumType, EnumType value> 20 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = false; member 23 VULKAN_HPP_INLINE std::string toHexString( uint32_t value ) in toHexString() 26 stream << std::hex << value; in toHexString() local 86 VULKAN_HPP_INLINE std::string to_string( Result value ) in to_string() 88 switch ( value ) in to_string() 130 default: return "invalid ( " + VULKAN_HPP_NAMESPACE::toHexString( static_cast<uint32_t>( value ) ) + " )"; in to_string() 1011 VULKAN_HPP_INLINE std::string to_string( StructureType value ) in to_string() 1013 switch ( value ) in to_string() 1828 default: return "invalid ( " + VULKAN_HPP_NAMESPACE::toHexString( static_cast<uint32_t>( value ) ) in to_string() 8213 static VULKAN_HPP_CONST_OR_CONSTEXPR IndexType value = IndexType::eUint16; global() member 8225 static VULKAN_HPP_CONST_OR_CONSTEXPR IndexType value = IndexType::eUint32; global() member 8237 static VULKAN_HPP_CONST_OR_CONSTEXPR IndexType value = IndexType::eUint8EXT; global() member [all...] |
/foundation/arkui/ace_engine/frameworks/base/json/ |
H A D | uobject.cpp | 24 size_t HashItem(const std::string& key, const T& value) in HashItem() argument 26 return std::hash<std::string>()(key) + std::hash<T>()(value); in HashItem() 30 void UObject::AddItemToObject(const std::string& key, const char* value) in AddItemToObject() argument 32 if (value) { in AddItemToObject() 33 stringItems_[key] = value; in AddItemToObject() 37 void UObject::AddItemToObject(const std::string& key, const std::string& value) in AddItemToObject() argument 39 stringItems_[key] = value; in AddItemToObject() 42 void UObject::AddItemToObject(const std::string& key, size_t value) in AddItemToObject() argument 44 sizetItems_[key] = value; in AddItemToObject() 47 void UObject::AddItemToObject(const std::string& key, int32_t value) in AddItemToObject() argument 52 AddItemToObject(const std::string& key, int64_t value) AddItemToObject() argument 57 AddItemToObject(const std::string& key, double value) AddItemToObject() argument 62 AddItemToObject(const std::string& key, bool value) AddItemToObject() argument 67 AddItemToObject(const std::string& key, const std::shared_ptr<UObject>& value) AddItemToObject() argument 263 WriteChar(char value) WriteChar() argument 270 WriteInt32(int32_t value) WriteInt32() argument 280 WriteSizeT(size_t value) WriteSizeT() argument 290 WriteInt64(int64_t value) WriteInt64() argument 300 WriteDouble(double value) WriteDouble() argument 310 WriteString(const std::string& value) WriteString() argument 323 WriteKV(const std::string& key, const std::string& value) WriteKV() argument 332 WriteKV(const std::string& key, size_t value) WriteKV() argument 340 WriteKV(const std::string& key, int32_t value) WriteKV() argument 348 WriteKV(const std::string& key, int64_t value) WriteKV() argument 356 WriteKV(const std::string& key, double value) WriteKV() argument 364 WriteKV(const std::string& key, bool value) WriteKV() argument 470 std::string value = ReadString(valueLen); ReadKV() local 474 size_t value = ReadSizeT(); ReadKV() local 478 int32_t value = ReadInt32(); ReadKV() local 482 int64_t value = ReadInt64(); ReadKV() local 486 double value = ReadDouble(); ReadKV() local 490 bool value = ReadChar(); ReadKV() local [all...] |
/third_party/icu/icu4c/source/common/ |
H A D | unifiedcache.cpp | 201 (const SharedObject *) element->value.pointer; in _dumpContents() 208 "Unified Cache: Key '%s', error %d, value %p, total refcount %d, soft refcount %d\n", in _dumpContents() 256 (const SharedObject *) element->value.pointer; in _flush() 288 (const SharedObject *) element->value.pointer; in _runEvictionSlice() 301 const SharedObject *value, in _putNew() 313 if (value->softRefCount == 0) { in _putNew() 314 _registerPrimary(keyToAdopt, value); in _putNew() 316 void *oldValue = uhash_put(fHashtable, keyToAdopt, (void *) value, &status); in _putNew() 320 value->softRefCount++; in _putNew() 326 const SharedObject *&value, in _putIfAbsentAndGet() 299 _putNew( const CacheKeyBase &key, const SharedObject *value, const UErrorCode creationStatus, UErrorCode &status) const _putNew() argument 324 _putIfAbsentAndGet( const CacheKeyBase &key, const SharedObject *&value, UErrorCode &status) const _putIfAbsentAndGet() argument 347 _poll( const CacheKeyBase &key, const SharedObject *&value, UErrorCode &status) const _poll() argument 378 _get( const CacheKeyBase &key, const SharedObject *&value, const void *creationContext, UErrorCode &status) const _get() argument 414 _put( const UHashElement *element, const SharedObject *value, const UErrorCode status) const _put() argument 436 _fetch( const UHashElement *element, const SharedObject *&value, UErrorCode &status) const _fetch() argument 454 const SharedObject * value = NULL; _inProgress() local [all...] |
/third_party/node/deps/icu-small/source/common/ |
H A D | unifiedcache.cpp | 201 (const SharedObject *) element->value.pointer; in _dumpContents() 208 "Unified Cache: Key '%s', error %d, value %p, total refcount %d, soft refcount %d\n", in _dumpContents() 256 (const SharedObject *) element->value.pointer; in _flush() 288 (const SharedObject *) element->value.pointer; in _runEvictionSlice() 301 const SharedObject *value, in _putNew() 313 if (value->softRefCount == 0) { in _putNew() 314 _registerPrimary(keyToAdopt, value); in _putNew() 316 void *oldValue = uhash_put(fHashtable, keyToAdopt, (void *) value, &status); in _putNew() 320 value->softRefCount++; in _putNew() 326 const SharedObject *&value, in _putIfAbsentAndGet() 299 _putNew( const CacheKeyBase &key, const SharedObject *value, const UErrorCode creationStatus, UErrorCode &status) const _putNew() argument 324 _putIfAbsentAndGet( const CacheKeyBase &key, const SharedObject *&value, UErrorCode &status) const _putIfAbsentAndGet() argument 347 _poll( const CacheKeyBase &key, const SharedObject *&value, UErrorCode &status) const _poll() argument 378 _get( const CacheKeyBase &key, const SharedObject *&value, const void *creationContext, UErrorCode &status) const _get() argument 414 _put( const UHashElement *element, const SharedObject *value, const UErrorCode status) const _put() argument 436 _fetch( const UHashElement *element, const SharedObject *&value, UErrorCode &status) const _fetch() argument 454 const SharedObject * value = nullptr; _inProgress() local [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
H A D | queryconversions.cpp | 22 GLint64 ExpandFloatToInteger(GLfloat value) in ExpandFloatToInteger() argument 24 return static_cast<GLint64>((static_cast<double>(0xFFFFFFFFULL) * value - 1.0) / 2.0); in ExpandFloatToInteger() 28 QueryT CastFromStateValueToInt(GLenum pname, NativeT value) in CastFromStateValueToInt() argument 30 GLenum nativeType = GLTypeToGLenum<NativeT>::value; in CastFromStateValueToInt() 48 return clampCast<QueryT>(ExpandFloatToInteger(static_cast<GLfloat>(value))); in CastFromStateValueToInt() 50 return clampCast<QueryT>(std::round(value)); in CastFromStateValueToInt() 54 return clampCast<QueryT>(value); in CastFromStateValueToInt() 58 NativeT CastQueryValueToInt(GLenum pname, QueryT value) in CastQueryValueToInt() argument 60 GLenum queryType = GLTypeToGLenum<QueryT>::value; in CastQueryValueToInt() 67 // int and then convert to unsigned int to "preserve the value" in CastQueryValueToInt() 81 CastMaskValue(GLuint value) CastMaskValue() argument 87 CastFromGLintStateValue(GLenum pname, InternalT value) CastFromGLintStateValue() argument 104 CastFromStateValue(GLenum pname, NativeT value) CastFromStateValue() argument 142 CastQueryValueTo(GLenum pname, QueryT value) CastQueryValueTo() argument [all...] |
/third_party/skia/third_party/externals/icu/source/common/ |
H A D | unifiedcache.cpp | 201 (const SharedObject *) element->value.pointer; in _dumpContents() 208 "Unified Cache: Key '%s', error %d, value %p, total refcount %d, soft refcount %d\n", in _dumpContents() 256 (const SharedObject *) element->value.pointer; in _flush() 288 (const SharedObject *) element->value.pointer; in _runEvictionSlice() 301 const SharedObject *value, in _putNew() 313 if (value->softRefCount == 0) { in _putNew() 314 _registerPrimary(keyToAdopt, value); in _putNew() 316 void *oldValue = uhash_put(fHashtable, keyToAdopt, (void *) value, &status); in _putNew() 320 value->softRefCount++; in _putNew() 326 const SharedObject *&value, in _putIfAbsentAndGet() 299 _putNew( const CacheKeyBase &key, const SharedObject *value, const UErrorCode creationStatus, UErrorCode &status) const _putNew() argument 324 _putIfAbsentAndGet( const CacheKeyBase &key, const SharedObject *&value, UErrorCode &status) const _putIfAbsentAndGet() argument 347 _poll( const CacheKeyBase &key, const SharedObject *&value, UErrorCode &status) const _poll() argument 378 _get( const CacheKeyBase &key, const SharedObject *&value, const void *creationContext, UErrorCode &status) const _get() argument 414 _put( const UHashElement *element, const SharedObject *value, const UErrorCode status) const _put() argument 436 _fetch( const UHashElement *element, const SharedObject *&value, UErrorCode &status) const _fetch() argument 454 const SharedObject * value = NULL; _inProgress() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/picker/ |
H A D | picker_option_component.h | 42 void SetSelected(bool value) in SetSelected() argument 44 selected_ = value; in SetSelected() 51 void SetAutoLayout(bool value) in SetAutoLayout() argument 53 autoLayout_ = value; in SetAutoLayout() 60 void SetText(const std::string& value) in SetText() argument 62 text_ = value; in SetText() 69 void SetTheme(const RefPtr<PickerTheme>& value) in SetTheme() argument 71 theme_ = value; in SetTheme() 78 void SetIndex(uint32_t value) in SetIndex() argument 80 index_ = value; in SetIndex() 97 SetAlignTop(bool value) SetAlignTop() argument 106 SetAlignBottom(bool value) SetAlignBottom() argument 115 SetDisappear(bool value) SetDisappear() argument 124 SetFixHeight(const Dimension& value) SetFixHeight() argument 134 SetDefaultHeight(bool value) SetDefaultHeight() argument [all...] |
H A D | picker_base_component.h | 79 void SetHasTitle(bool value) in SetHasTitle() argument 81 hasTitle_ = (!subsidiary_ && value); in SetHasTitle() 88 void SetHasLunar(bool value) in SetHasLunar() argument 90 hasLunar_ = SystemProperties::GetDeviceType() == DeviceType::PHONE && value; in SetHasLunar() 97 void SetHasButtons(bool value) in SetHasButtons() argument 99 hasButtons_ = (!subsidiary_ && value); in SetHasButtons() 106 void SetHasTriangle(bool value) in SetHasTriangle() argument 108 hasTriangle_ = value; in SetHasTriangle() 115 void SetIsDialog(bool value) in SetIsDialog() argument 117 isDialog_ = value; in SetIsDialog() 124 SetIsCreateDialogComponent(bool value) SetIsCreateDialogComponent() argument 133 SetSubsidiary(bool value) SetSubsidiary() argument 142 SetMasterHasLunar(bool value) SetMasterHasLunar() argument 151 SetOnChange(const EventMarker& value) SetOnChange() argument 160 SetOnColumnChange(const EventMarker& value) SetOnColumnChange() argument 169 SetOnCancel(const EventMarker& value) SetOnCancel() argument 178 SetDialogAcceptEvent(const EventMarker& value) SetDialogAcceptEvent() argument 187 SetDialogCancelEvent(const EventMarker& value) SetDialogCancelEvent() argument 196 SetDialogChangeEvent(const EventMarker& value) SetDialogChangeEvent() argument 222 SetTheme(const RefPtr<PickerTheme>& value) SetTheme() argument 233 SetAnimationController(const RefPtr<PickerAnimationController>& value) SetAnimationController() argument 253 SetNodeId(int32_t value) SetNodeId() argument 264 SetColumnHeight(const Dimension& value) SetColumnHeight() argument 274 SetDefaultHeight(bool value) SetDefaultHeight() argument 358 OnTriangleCallback(bool value) OnTriangleCallback() argument 403 SetHasBackgroundColor(bool value) SetHasBackgroundColor() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/shape/ |
H A D | line_paint_property.h | 37 auto value = MakeRefPtr<LinePaintProperty>(); variable 38 value->PaintProperty::UpdatePaintProperty(DynamicCast<PaintProperty>(this)); 39 value->propStartPoint_ = CloneStartPoint(); 40 value->propEndPoint_ = CloneEndPoint(); 41 value->propFill_ = CloneFill(); 42 value->propFillOpacity_ = CloneFillOpacity(); 43 value->propStroke_ = CloneStroke(); 44 value->propStrokeWidth_ = CloneStrokeWidth(); 45 value->propStrokeOpacity_ = CloneStrokeOpacity(); 46 value [all...] |
/third_party/node/deps/v8/include/v8-include/ |
H A D | v8-primitive-object.h | 21 static Local<Value> New(Isolate* isolate, double value); 25 V8_INLINE static NumberObject* Cast(Value* value) { in Cast() argument 27 CheckCast(value); in Cast() 29 return static_cast<NumberObject*>(value); in Cast() 41 static Local<Value> New(Isolate* isolate, int64_t value); 45 V8_INLINE static BigIntObject* Cast(Value* value) { in Cast() argument 47 CheckCast(value); in Cast() 49 return static_cast<BigIntObject*>(value); in Cast() 61 static Local<Value> New(Isolate* isolate, bool value); 65 V8_INLINE static BooleanObject* Cast(Value* value) { in Cast() argument 85 Cast(Value* value) Cast() argument 105 Cast(Value* value) Cast() argument [all...] |
/third_party/node/deps/v8/include/ |
H A D | v8-primitive-object.h | 21 static Local<Value> New(Isolate* isolate, double value); 25 V8_INLINE static NumberObject* Cast(Value* value) { in Cast() argument 27 CheckCast(value); in Cast() 29 return static_cast<NumberObject*>(value); in Cast() 41 static Local<Value> New(Isolate* isolate, int64_t value); 45 V8_INLINE static BigIntObject* Cast(Value* value) { in Cast() argument 47 CheckCast(value); in Cast() 49 return static_cast<BigIntObject*>(value); in Cast() 61 static Local<Value> New(Isolate* isolate, bool value); 65 V8_INLINE static BooleanObject* Cast(Value* value) { in Cast() argument 85 Cast(Value* value) Cast() argument 105 Cast(Value* value) Cast() argument [all...] |
/third_party/node/deps/v8/src/objects/ |
H A D | smi.h | 19 // The ptr_ value has the following format: [31 bit signed int] 0 32 // Returns the integer value. 33 inline int value() const { return Internals::SmiValue(ptr()); } in value() function in v8::internal::Smi 35 if (value() <= 0) return Smi::FromInt(0); in ToUint32Smi() 36 return Smi::FromInt(static_cast<uint32_t>(value())); in ToUint32Smi() 41 return Smi::cast(object).value(); in ToInt() 44 // Convert a value to a Smi object. 45 static inline constexpr Smi FromInt(int value) { in FromInt() argument 46 DCHECK(Smi::IsValid(value)); in FromInt() 47 return Smi(Internals::IntToSmi(value)); in FromInt() 50 FromIntptr(intptr_t value) FromIntptr() argument 58 From31BitPattern(int value) From31BitPattern() argument 65 FromEnum(E value) FromEnum() argument 71 IsValid(intptr_t value) IsValid() argument 73 value >= kMinValue && value <= kMaxValue); IsValid() local [all...] |
/third_party/typescript/tests/baselines/reference/ |
H A D | asyncFunctionsAcrossFiles.js | 20 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
22 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
23 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
24 function step(result) { result.done ? resolve(result.value) : adopt(result.value) [all...] |
H A D | privateNamesIncompatibleModifiers.js | 19 public set #fooProp(value: number) { } // Error 21 private set #barProp(value: number) { } // Error 23 protected set #bazProp(value: number) { } // Error 25 readonly set #quxProp(value: number) { } // Error 27 declare set #whatProp(value: number) // Error 29 async set #asyncProp(value: number) { } // Error 40 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
[all...] |
/foundation/ability/ability_runtime/frameworks/js/napi/inner/napi_common/ |
H A D | napi_common_util.cpp | 81 napi_value WrapInt32ToJS(napi_env env, int32_t value) in WrapInt32ToJS() argument 84 NAPI_CALL(env, napi_create_int32(env, value, &result)); in WrapInt32ToJS() 90 int value = defaultValue; in UnwrapInt32FromJS() local 91 if (napi_get_value_int32(env, param, &value) == napi_ok) { in UnwrapInt32FromJS() 92 return value; in UnwrapInt32FromJS() 98 bool UnwrapInt32FromJS2(napi_env env, napi_value param, int &value) in UnwrapInt32FromJS2() argument 101 if (napi_get_value_int32(env, param, &value) == napi_ok) { in UnwrapInt32FromJS2() 107 napi_value WrapLongToJS(napi_env env, long value) in WrapLongToJS() argument 110 NAPI_CALL(env, napi_create_int32(env, value, &result)); in WrapLongToJS() 116 int value in UnwrapLongFromJS() local 124 UnwrapLongFromJS2(napi_env env, napi_value param, long &value) UnwrapLongFromJS2() argument 135 WrapInt64ToJS(napi_env env, int64_t value) WrapInt64ToJS() argument 144 int64_t value = defaultValue; UnwrapInt64FromJS() local 152 UnwrapInt64FromJS2(napi_env env, napi_value param, int64_t &value) UnwrapInt64FromJS2() argument 161 WrapBoolToJS(napi_env env, bool value) WrapBoolToJS() argument 170 bool value = defaultValue; UnwrapBoolFromJS() local 178 UnwrapBoolFromJS2(napi_env env, napi_value param, bool &value) UnwrapBoolFromJS2() argument 187 WrapDoubleToJS(napi_env env, double value) WrapDoubleToJS() argument 196 double value = defaultValue; UnwrapDoubleFromJS() local 204 UnwrapDoubleFromJS2(napi_env env, napi_value param, double &value) UnwrapDoubleFromJS2() argument 213 WrapStringToJS(napi_env env, const std::string &value) WrapStringToJS() argument 253 UnwrapStringFromJS2(napi_env env, napi_value param, std::string &value) UnwrapStringFromJS2() argument 280 WrapArrayInt32ToJS(napi_env env, const std::vector<int> &value) WrapArrayInt32ToJS() argument 299 UnwrapArrayInt32FromJS(napi_env env, napi_value param, std::vector<int> &value) UnwrapArrayInt32FromJS() argument 328 WrapArrayLongToJS(napi_env env, const std::vector<long> &value) WrapArrayLongToJS() argument 346 UnwrapArrayLongFromJS(napi_env env, napi_value param, std::vector<long> &value) UnwrapArrayLongFromJS() argument 375 WrapArrayInt64ToJS(napi_env env, const std::vector<int64_t> &value) WrapArrayInt64ToJS() argument 393 UnwrapArrayInt64FromJS(napi_env env, napi_value param, std::vector<int64_t> &value) UnwrapArrayInt64FromJS() argument 422 WrapArrayDoubleToJS(napi_env env, const std::vector<double> &value) WrapArrayDoubleToJS() argument 440 UnwrapArrayDoubleFromJS(napi_env env, napi_value param, std::vector<double> &value) UnwrapArrayDoubleFromJS() argument 469 WrapArrayBoolToJS(napi_env env, const std::vector<bool> &value) WrapArrayBoolToJS() argument 487 UnwrapArrayBoolFromJS(napi_env env, napi_value param, std::vector<bool> &value) UnwrapArrayBoolFromJS() argument 514 WrapArrayStringToJS(napi_env env, const std::vector<std::string> &value) WrapArrayStringToJS() argument 532 UnwrapArrayStringFromJS(napi_env env, napi_value param, std::vector<std::string> &value) UnwrapArrayStringFromJS() argument 559 UnwrapArrayComplexFromJSNumber(napi_env env, ComplexArrayData &value, bool isDouble, napi_value jsValue) UnwrapArrayComplexFromJSNumber() argument 600 UnwrapArrayComplexFromJS(napi_env env, napi_value param, ComplexArrayData &value) UnwrapArrayComplexFromJS() argument 686 napi_value value = nullptr; GetPropertyValueByPropertyName() local 702 SetPropertyValueByPropertyName(napi_env env, napi_value jsObject, const char *propertyName, napi_value value) SetPropertyValueByPropertyName() argument 721 UnwrapInt32ByPropertyName(napi_env env, napi_value jsObject, const char *propertyName, int32_t &value) UnwrapInt32ByPropertyName() argument 741 UnwrapDoubleByPropertyName(napi_env env, napi_value jsObject, const char *propertyName, double &value) UnwrapDoubleByPropertyName() argument 761 UnwrapBooleanByPropertyName(napi_env env, napi_value jsObject, const char *propertyName, bool &value) UnwrapBooleanByPropertyName() argument 771 UnwrapBooleanArrayByPropertyName( napi_env env, napi_value jsObject, const char *propertyName, std::vector<bool> &value) UnwrapBooleanArrayByPropertyName() argument 792 UnwrapStringByPropertyName(napi_env env, napi_value jsObject, const char *propertyName, std::string &value) UnwrapStringByPropertyName() argument 802 UnwrapStringArrayByPropertyName( napi_env env, napi_value jsObject, const char *propertyName, std::vector<std::string> &value) UnwrapStringArrayByPropertyName() argument 813 UnwrapComplexArrayByPropertyName( napi_env env, napi_value jsObject, const char *propertyName, ComplexArrayData &value) UnwrapComplexArrayByPropertyName() argument 912 WrapThreadReturnData(napi_env env, const ThreadReturnData *data, napi_value *value) WrapThreadReturnData() argument [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/state_manage/ |
H A D | cj_persistent_storage_ffi.cpp | 39 void SetValueToStorage(std::string key, std::string value) in SetValueToStorage() argument 50 StorageProxy::GetInstance()->GetStorage()->SetString(key, value); in SetValueToStorage() 56 NativeOptionCString result {.hasValue = false, .value = Utils::MallocCString("").value}; in FfiOHOSAceFrameworkPersistentGetString() 65 result.value = Utils::MallocCString(tmp).value; in FfiOHOSAceFrameworkPersistentGetString() 70 void FfiOHOSAceFrameworkPersistentSetString(const char* key, const char* value, NotifyCallbackString callback) in FfiOHOSAceFrameworkPersistentSetString() argument 77 SetValueToStorage(key, value); in FfiOHOSAceFrameworkPersistentSetString() 78 auto cjCallback = [func = CJLambda::Create(callback), key, value]() { in FfiOHOSAceFrameworkPersistentSetString() 79 func(key, value); in FfiOHOSAceFrameworkPersistentSetString() 100 FfiOHOSAceFrameworkPersistentSetInt64(const char* key, int64_t value, NotifyCallbackInt64 callback) FfiOHOSAceFrameworkPersistentSetInt64() argument 131 FfiOHOSAceFrameworkPersistentSetFloat64(const char* key, double value, NotifyCallbackFloat64 callback) FfiOHOSAceFrameworkPersistentSetFloat64() argument 162 FfiOHOSAceFrameworkPersistentSetBool(const char* key, bool value, NotifyCallbackBool callback) FfiOHOSAceFrameworkPersistentSetBool() argument [all...] |
/foundation/distributeddatamgr/preferences/frameworks/native/src/ |
H A D | preferences_value.cpp | 36 PreferencesValue::PreferencesValue(int value) in PreferencesValue() argument 38 value_ = value; in PreferencesValue() 41 PreferencesValue::PreferencesValue(int64_t value) in PreferencesValue() argument 43 value_ = value; in PreferencesValue() 46 PreferencesValue::PreferencesValue(float value) in PreferencesValue() argument 48 value_ = value; in PreferencesValue() 51 PreferencesValue::PreferencesValue(double value) in PreferencesValue() argument 53 value_ = value; in PreferencesValue() 56 PreferencesValue::PreferencesValue(bool value) in PreferencesValue() argument 58 value_ = value; in PreferencesValue() 61 PreferencesValue(const char *value) PreferencesValue() argument 66 PreferencesValue(std::string value) PreferencesValue() argument 71 PreferencesValue(std::vector<double> value) PreferencesValue() argument 76 PreferencesValue(std::vector<std::string> value) PreferencesValue() argument 81 PreferencesValue(std::vector<bool> value) PreferencesValue() argument 86 PreferencesValue(std::vector<uint8_t> value) PreferencesValue() argument 91 PreferencesValue(Object value) PreferencesValue() argument 96 PreferencesValue(BigInt value) PreferencesValue() argument 239 operator ==(const PreferencesValue &value) operator ==() argument [all...] |
H A D | preferences_impl.cpp | 210 static void Convert2PrefValue(const Element &element, T &value) in Convert2PrefValue() argument 212 if constexpr (std::is_same<T, bool>::value) { in Convert2PrefValue() 213 value = (element.value_.compare("true") == 0) ? true : false; in Convert2PrefValue() 214 } else if constexpr (std::is_same<T, std::string>::value) { in Convert2PrefValue() 215 value = element.value_; in Convert2PrefValue() 216 } else if constexpr (std::is_same<T, std::monostate>::value) { in Convert2PrefValue() 217 value = std::monostate(); in Convert2PrefValue() 221 ss >> value; in Convert2PrefValue() local 229 T value; in Convert2PrefValue() local 230 Convert2PrefValue(child, value); in Convert2PrefValue() 235 Convert2PrefValue(const Element &element, BigInt &value) Convert2PrefValue() argument 250 GetPrefValue(const Element &element, T &value) GetPrefValue() argument 256 Convert2PrefValue(const Element &element, std::vector<uint8_t> &value) Convert2PrefValue() argument 263 Convert2PrefValue(const Element &element, Object &value) Convert2PrefValue() argument 269 GetPrefValue(const Element &element, T &value) GetPrefValue() argument 281 Convert2PrefValue(const Element &element, std::variant<Types...> &value) Convert2PrefValue() argument 311 Convert2Element(Element &elem, const T &value) Convert2Element() argument 326 Convert2Element(Element &elem, const std::vector<T> &value) Convert2Element() argument 336 Convert2Element(Element &elem, const std::vector<uint8_t> &value) Convert2Element() argument 342 Convert2Element(Element &elem, const Object &value) Convert2Element() argument 348 Convert2Element(Element &elem, const BigInt &value) Convert2Element() argument 362 GetElement(Element &elem, const T &value) GetElement() argument 367 GetElement(Element &elem, const T &value) GetElement() argument 376 Convert2Element(Element &elem, const std::variant<Types...> &value) Convert2Element() argument 381 WriteXmlElement(Element &elem, const PreferencesValue &value) WriteXmlElement() argument 393 PreferencesValue value = it->second; WriteSettingXml() local 412 Put(const std::string &key, const PreferencesValue &value) Put() argument 512 uint64_t value = 0; FlushSync() local 558 PreferencesValue value; NotifyPreferencesObserver() local [all...] |
/third_party/gn/src/gn/ |
H A D | action_target_generator.cc | 17 #include "gn/value.h" 115 const Value* value = scope_->GetValue(variables::kScript, true); in FillScript() local 116 if (!value) { in FillScript() 120 if (!value->VerifyTypeIs(Value::STRING, err_)) in FillScript() 124 *value, err_, scope_->settings()->build_settings()->root_path_utf8()); in FillScript() 132 const Value* value = scope_->GetValue(variables::kArgs, true); in FillScriptArgs() local 133 if (!value) in FillScriptArgs() 136 if (!target_->action_values().args().Parse(*value, err_)) in FillScriptArgs() 140 &IsValidScriptArgsSubstitution, value->origin(), err_)) in FillScriptArgs() 147 const Value* value in FillResponseFileContents() local 162 const Value* value = scope_->GetValue(variables::kDepfile, true); FillDepfile() local 177 const Value* value = scope_->GetValue(variables::kMnemonic, true); FillMnemonic() local 200 const Value* value = scope_->GetValue(variables::kPool, true); FillPool() local 252 const Value* value = scope_->GetValue(variables::kInputs, true); FillInputs() local [all...] |
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/data/ |
H A D | negotiate_message.cpp | 156 for (const auto &[key, value] : values_) { in Marshalling() 163 uint8_t data = std::any_cast<bool>(value); in Marshalling() 169 WifiDirectUtils::IntToBytes(std::any_cast<int>(value), sizeof(int), data); in Marshalling() 175 WifiDirectUtils::IntToBytes(std::any_cast<uint32_t>(value), sizeof(uint32_t), data); in Marshalling() 180 auto data = std::any_cast<std::string>(value); in Marshalling() 185 const auto &data = std::any_cast<const std::vector<uint8_t> &>(value); in Marshalling() 336 void NegotiateMessage::SetMessageType(NegotiateMessageType value) in SetMessageType() argument 338 Set(NegotiateMessageKey::MSG_TYPE, static_cast<int>(value)); in SetMessageType() 341 void NegotiateMessage::SetMessageType(LegacyCommandType value) in SetMessageType() argument 343 Set(NegotiateMessageKey::MSG_TYPE, static_cast<int>(value)); in SetMessageType() 348 auto value = Get(NegotiateMessageKey::MSG_TYPE, static_cast<int>(NegotiateMessageType::CMD_INVALID)); GetMessageType() local 372 SetSessionId(uint32_t value) SetSessionId() argument 382 SetWifiConfigInfo(const std::vector<uint8_t> &value) SetWifiConfigInfo() argument 392 SetIpv4InfoArray(const std::vector<Ipv4Info> &value) SetIpv4InfoArray() argument 402 SetPreferLinkMode(LinkInfo::LinkMode value) SetPreferLinkMode() argument 409 auto value = Get(NegotiateMessageKey::PREFER_LINK_MODE, static_cast<int>(LinkInfo::LinkMode::INVALID)); GetPreferLinkMode() local 413 SetIsModeStrict(bool value) SetIsModeStrict() argument 423 SetPreferLinkBandWidth(int value) SetPreferLinkBandWidth() argument 433 SetIsBridgeSupported(bool value) SetIsBridgeSupported() argument 443 SetLinkInfo(const LinkInfo &value) SetLinkInfo() argument 453 SetResultCode(int value) SetResultCode() argument 463 SetInterfaceInfoArray(const std::vector<InterfaceInfo> &value) SetInterfaceInfoArray() argument 473 SetRemoteDeviceId(const std::string &value) SetRemoteDeviceId() argument 483 SetExtraData(const std::vector<uint8_t> &value) SetExtraData() argument 493 SetIsProxyEnable(bool value) SetIsProxyEnable() argument 503 Set5GChannelList(const std::string &value) Set5GChannelList() argument 513 Set5GChannelScore(const std::string &value) Set5GChannelScore() argument 523 SetChallengeCode(uint32_t value) SetChallengeCode() argument 533 SetNewPtkFrame(bool value) SetNewPtkFrame() argument 543 SetLegacyP2pGcChannelList(const std::string &value) SetLegacyP2pGcChannelList() argument 553 SetLegacyP2pStationFrequency(int value) SetLegacyP2pStationFrequency() argument 563 SetLegacyP2pRole(WifiDirectRole value) SetLegacyP2pRole() argument 570 auto value = Get(NegotiateMessageKey::ROLE, static_cast<int>(WifiDirectRole::WIFI_DIRECT_ROLE_INVALID)); GetLegacyP2pRole() local 574 SetLegacyP2pExpectedRole(WifiDirectRole value) SetLegacyP2pExpectedRole() argument 581 auto value = Get(NegotiateMessageKey::EXPECTED_ROLE, static_cast<int>(WifiDirectRole::WIFI_DIRECT_ROLE_INVALID)); GetLegacyP2pExpectedRole() local 585 SetLegacyP2pVersion(int value) SetLegacyP2pVersion() argument 595 SetLegacyP2pGcIp(const std::string &value) SetLegacyP2pGcIp() argument 605 SetLegacyP2pWideBandSupported(bool value) SetLegacyP2pWideBandSupported() argument 615 SetLegacyP2pGroupConfig(const std::string &value) SetLegacyP2pGroupConfig() argument 625 SetLegacyP2pMac(const std::string &value) SetLegacyP2pMac() argument 635 SetLegacyP2pBridgeSupport(bool value) SetLegacyP2pBridgeSupport() argument 645 SetLegacyP2pGoIp(const std::string &value) SetLegacyP2pGoIp() argument 655 SetLegacyP2pGoMac(const std::string &value) SetLegacyP2pGoMac() argument 665 SetLegacyP2pGoPort(int value) SetLegacyP2pGoPort() argument 675 SetLegacyP2pIp(const std::string &value) SetLegacyP2pIp() argument 685 SetLegacyP2pResult(LegacyResult value) SetLegacyP2pResult() argument 692 auto value = Get(NegotiateMessageKey::RESULT, static_cast<int>(LegacyResult::OK)); GetLegacyP2pResult() local 696 SetLegacyP2pContentType(LegacyContentType value) SetLegacyP2pContentType() argument 703 auto value = Get(NegotiateMessageKey::CONTENT_TYPE, static_cast<int>(LegacyContentType::INVALID)); GetLegacyP2pContentType() local 707 SetLegacyP2pGcMac(const std::string &value) SetLegacyP2pGcMac() argument 717 SetLegacyP2pWifiConfigInfo(const std::string &value) SetLegacyP2pWifiConfigInfo() argument 727 SetLegacyP2pCommandType(LegacyCommandType value) SetLegacyP2pCommandType() argument 734 auto value = Get(NegotiateMessageKey::COMMAND_TYPE, static_cast<int>(LegacyCommandType::CMD_INVALID)); GetLegacyP2pCommandType() local 738 SetLegacyInterfaceName(const std::string &value) SetLegacyInterfaceName() argument [all...] |
/foundation/arkui/ace_engine_lite/frameworks/src/core/wrapper/ |
H A D | js.cpp | 23 void JSRelease(JSValue value) in JSRelease() argument 25 return jerry_release_value(value); in JSRelease() 28 JSValue JSString::Create(const char * const value) in Create() argument 30 return jerry_create_string(reinterpret_cast<const jerry_char_t *>(value)); in Create() 38 char *JSString::Value(JSValue value) in Value() argument 40 if (jerry_value_is_undefined(value)) { in Value() 45 if (jerry_value_is_symbol(value)) { in Value() 46 target = jerry_get_symbol_descriptive_string(value); in Value() 48 target = jerry_value_to_string(value); in Value() 122 JSValue value in Get() local 129 JSValue value = JSObject::Get(target, prop); GetString() local 136 JSValue value = JSObject::Get(target, prop); GetNumber() local 143 JSValue value = JSObject::Get(target, prop); GetBoolean() local 148 Set(JSValue target, const char * const prop, JSValue value) Set() argument 155 SetString(JSValue target, const char * const prop, const char * const value) SetString() argument 162 SetNumber(JSValue target, const char * const prop, const double value) SetNumber() argument 169 SetBoolean(JSValue target, const char * const prop, const bool value) SetBoolean() argument 209 JSValue value = JSFunction::Call(func, target, args, size); Call() local 242 Set(const char * const prop, JSValue value) Set() argument 272 Is(JSValue value) Is() argument 287 Value(JSValue value) Value() argument 292 Create(bool value) Create() argument 302 Value(JSValue value) Value() argument 324 JSValue value = JSArray::Get(array, index); GetString() local [all...] |
/foundation/arkui/ace_engine/interfaces/napi/kits/plugincomponent/ |
H A D | js_plugin_util.cpp | 75 napi_value AceWrapInt32ToJS(napi_env env, int32_t value) in AceWrapInt32ToJS() argument 78 NAPI_CALL(env, napi_create_int32(env, value, &result)); in AceWrapInt32ToJS() 84 int value = defaultValue; in AceUnwrapInt32FromJS() local 85 if (napi_get_value_int32(env, param, &value) == napi_ok) { in AceUnwrapInt32FromJS() 86 return value; in AceUnwrapInt32FromJS() 92 bool AceUnwrapInt32FromJS2(napi_env env, napi_value param, int& value) in AceUnwrapInt32FromJS2() argument 95 if (napi_get_value_int32(env, param, &value) == napi_ok) { in AceUnwrapInt32FromJS2() 101 napi_value AceWrapLongToJS(napi_env env, int64_t value) in AceWrapLongToJS() argument 104 NAPI_CALL(env, napi_create_int32(env, value, &result)); in AceWrapLongToJS() 110 int value in AceUnwrapLongFromJS() local 118 AceUnwrapLongFromJS2(napi_env env, napi_value param, int64_t& value) AceUnwrapLongFromJS2() argument 129 AceWrapInt64ToJS(napi_env env, int64_t value) AceWrapInt64ToJS() argument 138 int64_t value = defaultValue; AceUnwrapInt64FromJS() local 146 AceUnwrapInt64FromJS2(napi_env env, napi_value param, int64_t& value) AceUnwrapInt64FromJS2() argument 155 AceWrapBoolToJS(napi_env env, bool value) AceWrapBoolToJS() argument 164 bool value = defaultValue; AceUnwrapBoolFromJS() local 172 AceUnwrapBoolFromJS2(napi_env env, napi_value param, bool& value) AceUnwrapBoolFromJS2() argument 181 AceWrapDoubleToJS(napi_env env, double value) AceWrapDoubleToJS() argument 190 double value = defaultValue; AceUnwrapDoubleFromJS() local 198 AceUnwrapDoubleFromJS2(napi_env env, napi_value param, double& value) AceUnwrapDoubleFromJS2() argument 207 AceWrapStringToJS(napi_env env, const std::string& value) AceWrapStringToJS() argument 248 AceUnwrapStringFromJS2(napi_env env, napi_value param, std::string& value) AceUnwrapStringFromJS2() argument 279 AceWrapArrayInt32ToJS(napi_env env, const std::vector<int>& value) AceWrapArrayInt32ToJS() argument 297 AceUnwrapArrayInt32FromJS(napi_env env, napi_value param, std::vector<int>& value) AceUnwrapArrayInt32FromJS() argument 324 AceWrapArrayLongToJS(napi_env env, const std::vector<int64_t>& value) AceWrapArrayLongToJS() argument 342 AceUnwrapArrayLongFromJS(napi_env env, napi_value param, std::vector<int64_t>& value) AceUnwrapArrayLongFromJS() argument 369 AceWrapArrayInt64ToJS(napi_env env, const std::vector<int64_t>& value) AceWrapArrayInt64ToJS() argument 387 AceUnwrapArrayInt64FromJS(napi_env env, napi_value param, std::vector<int64_t>& value) AceUnwrapArrayInt64FromJS() argument 414 AceWrapArrayDoubleToJS(napi_env env, const std::vector<double>& value) AceWrapArrayDoubleToJS() argument 432 AceUnwrapArrayDoubleFromJS(napi_env env, napi_value param, std::vector<double>& value) AceUnwrapArrayDoubleFromJS() argument 459 AceWrapArrayBoolToJS(napi_env env, const std::vector<bool>& value) AceWrapArrayBoolToJS() argument 477 AceUnwrapArrayBoolFromJS(napi_env env, napi_value param, std::vector<bool>& value) AceUnwrapArrayBoolFromJS() argument 504 AceWrapArrayStringToJS(napi_env env, const std::vector<std::string>& value) AceWrapArrayStringToJS() argument 522 AceUnwrapArrayStringFromJS(napi_env env, napi_value param, std::vector<std::string>& value) AceUnwrapArrayStringFromJS() argument 549 AceKVObjectToString(napi_env env, napi_value param, std::string& value) AceKVObjectToString() argument 601 AceInitComplexArrayData(ACEComplexArrayData& value) AceInitComplexArrayData() argument 610 AceTranscomplex(ACEComplexArrayData& value) AceTranscomplex() argument 620 AceUnwrapNumberComplexFromJS(napi_env env, napi_value jsValue, bool& isDouble, ACEComplexArrayData& value) AceUnwrapNumberComplexFromJS() argument 649 AceUnwrapArrayComplexFromJS(napi_env env, napi_value param, ACEComplexArrayData& value) AceUnwrapArrayComplexFromJS() argument 746 napi_value value = nullptr; AceGetPropertyValueByPropertyName() local 762 AceSetPropertyValueByPropertyName(napi_env env, napi_value jsObject, const char* propertyName, napi_value value) AceSetPropertyValueByPropertyName() argument 781 AceUnwrapInt32ByPropertyName(napi_env env, napi_value jsObject, const char* propertyName, int32_t& value) AceUnwrapInt32ByPropertyName() argument 801 AceUnwrapDoubleByPropertyName(napi_env env, napi_value jsObject, const char* propertyName, double& value) AceUnwrapDoubleByPropertyName() argument 821 AceUnwrapBooleanByPropertyName(napi_env env, napi_value jsObject, const char* propertyName, bool& value) AceUnwrapBooleanByPropertyName() argument 831 AceUnwrapBooleanArrayByPropertyName( napi_env env, napi_value jsObject, const char* propertyName, std::vector<bool>& value) AceUnwrapBooleanArrayByPropertyName() argument 852 AceUnwrapStringByPropertyName(napi_env env, napi_value jsObject, const char* propertyName, std::string& value) AceUnwrapStringByPropertyName() argument 862 AceUnwrapStringArrayByPropertyName( napi_env env, napi_value jsObject, const char* propertyName, std::vector<std::string>& value) AceUnwrapStringArrayByPropertyName() argument 962 AceWrapThreadReturnData(napi_env env, const ACEThreadReturnData* data, napi_value* value) AceWrapThreadReturnData() argument [all...] |
/third_party/gn/src/base/numerics/ |
H A D | safe_conversions_impl.h | 28 static const int value = std::is_floating_point<NumericType>::value member 37 static const int value = std::numeric_limits<NumericType>::digits + member 38 std::is_signed<NumericType>::value; 45 static const size_t value = IntegerBitsPlusSign<Integer>::value - 1; member 48 // Determines if a numeric value is negative without throwing compiler 49 // warnings on: unsigned(value) < 0. 51 typename std::enable_if<std::is_signed<T>::value>::type* = nullptr> 52 constexpr bool IsValueNegative(T value) { in IsValueNegative() argument 80 SafeUnsignedAbs(T value) SafeUnsignedAbs() argument 161 static const NumericRangeRepresentation value = global() member 174 static const NumericRangeRepresentation value = global() member 186 static const NumericRangeRepresentation value = NUMERIC_RANGE_NOT_CONTAINED; global() member [all...] |