/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/transaction/ |
H A D | rs_marshalling_helper.h | 90 static bool Marshalling(Parcel& parcel, const T& val) in Marshalling() 95 static bool Unmarshalling(Parcel& parcel, T& val) in Unmarshalling() 107 static bool Marshalling(Parcel& parcel, const std::string& val) in Marshalling() 111 static bool Unmarshalling(Parcel& parcel, std::string& val) in Unmarshalling() 125 static bool UnmarshallingArray(Parcel& parcel, T*& val, int count) in UnmarshallingArray() 154 static bool UnmarshallingVec(Parcel& parcel, std::vector<T>& val) in UnmarshallingVec() 314 static bool Unmarshalling(Parcel& parcel, std::map<T, P>& val) in Unmarshalling() 323 P value; in Unmarshalling() local 346 static bool Unmarshalling(Parcel& parcel, std::vector<T>& val) in Unmarshalling() 376 static bool Unmarshalling(Parcel& parcel, std::optional<T>& val) in Unmarshalling() [all …]
|
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/common/include/ |
H A D | js_sendable_utils.h | 28 #define DECLARE_SENDABLE_PROPERTY(env, key, value) \ argument 55 napi_value GetSendableValue(napi_env env, const T &value) in GetSendableValue() 61 napi_value GetSendableValue(napi_env env, const T &value) in GetSendableValue() 63 auto *val = std::get_if<First>(&value); in GetSendableValue() local 77 napi_value JSUtils::Convert2Sendable(napi_env env, const std::vector<T> &value) in Convert2Sendable() 92 napi_value JSUtils::Convert2Sendable(napi_env env, const std::variant<Types...> &value) in Convert2Sendable()
|
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/ |
H A D | value_object.cpp | 66 ValueObject::ValueObject(bool val) : value(val) in ValueObject() 123 int64_t value = 0; in GetInt() local 192 int64_t val = 0L; variable 209 double val = 0.0L; variable 226 bool val = false; variable 241 static int32_t GetPrecision(double val) in GetPrecision() 259 std::string val; variable 282 Blob val; variable 295 auto val = std::get_if<Asset>(&value); variable 304 auto val = std::get_if<Assets>(&value); variable [all …]
|
/ohos5.0/foundation/multimodalinput/input/service/connect_manager/test/ |
H A D | message_parcel_mock.cpp | 58 bool Parcel::WriteInt32(int32_t value) in WriteInt32() 74 bool Parcel::ReadInt32(int32_t &value) in ReadInt32() 114 bool Parcel::ReadBool(bool &value) in ReadBool() 122 bool Parcel::WriteBool(bool value) in WriteBool() 186 bool Parcel::ReadUint32(uint32_t &value) in ReadUint32() 194 bool Parcel::WriteUint64(uint64_t value) in WriteUint64() 295 bool Parcel::WriteBoolVector(const std::vector<bool> &val) in WriteBoolVector() 303 bool Parcel::WriteInt32Vector(const std::vector<int32_t> &val) in WriteInt32Vector() 319 bool Parcel::ReadInt64(int64_t &value) in ReadInt64() 335 bool Parcel::ReadFloat(float &value) in ReadFloat() [all …]
|
/aosp12/frameworks/base/core/java/android/util/proto/ |
H A D | ProtoOutputStream.java | 227 public void write(long fieldId, double val) { in write() 362 public void write(long fieldId, float val) { in write() 497 public void write(long fieldId, int val) { in write() 632 public void write(long fieldId, long val) { in write() 765 public void write(long fieldId, boolean val) { in write() 1061 private void writeInt32Impl(int id, int val) { in writeInt32Impl() 1951 private void writeEnumImpl(int id, int val) { in writeEnumImpl() 2143 public void writeObject(long fieldId, @Nullable byte[] value) { in writeObject() 2150 void writeObjectImpl(int id, byte[] value) { in writeObjectImpl() 2164 public void writeRepeatedObject(long fieldId, @Nullable byte[] value) { in writeRepeatedObject() [all …]
|
/aosp14/frameworks/base/core/java/android/util/proto/ |
H A D | ProtoOutputStream.java | 227 public void write(long fieldId, double val) { in write() 362 public void write(long fieldId, float val) { in write() 497 public void write(long fieldId, int val) { in write() 632 public void write(long fieldId, long val) { in write() 765 public void write(long fieldId, boolean val) { in write() 1061 private void writeInt32Impl(int id, int val) { in writeInt32Impl() 1951 private void writeEnumImpl(int id, int val) { in writeEnumImpl() 2143 public void writeObject(long fieldId, @Nullable byte[] value) { in writeObject() 2150 void writeObjectImpl(int id, byte[] value) { in writeObjectImpl() 2164 public void writeRepeatedObject(long fieldId, @Nullable byte[] value) { in writeRepeatedObject() [all …]
|
/aosp12/hardware/google/graphics/common/libhwjpeg/ |
H A D | IFDWriter.h | 33 char *WriteDataInBig(char *p, T val) in WriteDataInBig() 69 char *WriteData(char *p, T val) in WriteData() 84 uint32_t val = Offset(addr); in WriteOffset() local 128 void WriteByte(uint16_t tag, uint32_t count, const uint8_t value[]) { in WriteByte() 145 void WriteShort(uint16_t tag, uint32_t count, const uint16_t value[]) { in WriteShort() 167 void WriteLong(uint16_t tag, uint32_t count, const uint32_t value[]) { in WriteLong() 184 void WriteASCII(uint16_t tag, uint32_t count, const char *value) { in WriteASCII() 225 void WriteRational(uint16_t tag, uint32_t count, const rational_t value[]) { in WriteRational() 246 void WriteSRational(uint16_t tag, uint32_t count, const srational_t value[]) { in WriteSRational() 257 void WriteUndef(uint16_t tag, uint32_t count, const unsigned char *value) { in WriteUndef()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/executor/document/ |
H A D | grd_resultset_api_inner.cpp | 34 int32_t GRD_GetValueInner(GRD_ResultSet *resultSet, char **value) in GRD_GetValueInner() 40 char *val = nullptr; in GRD_GetValueInner() local 50 int32_t GRD_FreeValueInner(char *value) in GRD_FreeValueInner() 74 int32_t GRD_FetchInner(GRD_ResultSet *resultSet, GRD_KVItemT *key, GRD_KVItemT *value) in GRD_FetchInner()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/ |
H A D | property_util.cpp | 392 …dHelper::SetCustomPropertyBlobValue(const PropertyTypeDecl& propertyType, const json::value* value, in SetCustomPropertyBlobValue() 396 Math::Vec4 val; in SetCustomPropertyBlobValue() local 400 Math::UVec4 val; in SetCustomPropertyBlobValue() local 404 Math::IVec4 val; in SetCustomPropertyBlobValue() local 408 Math::Vec3 val; in SetCustomPropertyBlobValue() local 412 Math::UVec3 val; in SetCustomPropertyBlobValue() local 416 Math::IVec3 val; in SetCustomPropertyBlobValue() local 420 Math::Vec2 val; in SetCustomPropertyBlobValue() local 432 float val; in SetCustomPropertyBlobValue() local 436 uint32_t val; in SetCustomPropertyBlobValue() local [all …]
|
/aosp12/frameworks/av/media/libaudioprocessing/ |
H A D | AudioResamplerFirGen.h | 67 inline double value() const { in value() function 107 inline SineGen value() { in value() function 153 double val = x * maxval; in toint() local 192 static const CONSTEXPR double value = I0Term<N-1>::value / (4. * N * N); member
|
/aosp12/system/core/libcutils/ |
H A D | str_parms.cpp | 89 static bool remove_pair(void *key, void *value, void *context) in remove_pair() 160 char *value; in str_parms_create_str() local 207 const char *value) in str_parms_add_str() 268 float value) in str_parms_add_float() 285 int str_parms_get_str(struct str_parms *str_parms, const char *key, char *val, in str_parms_get_str() 289 char* value = static_cast<char*>(hashmapGet(str_parms->map, (void*)key)); in str_parms_get_str() local 296 int str_parms_get_int(struct str_parms *str_parms, const char *key, int *val) in str_parms_get_int() 301 char* value = static_cast<char*>(hashmapGet(str_parms->map, (void*)key)); in str_parms_get_int() local 313 float *val) in str_parms_get_float() 331 static bool combine_strings(void *key, void *value, void *context) in combine_strings() [all …]
|
/aosp14/system/core/libcutils/ |
H A D | str_parms.cpp | 89 static bool remove_pair(void *key, void *value, void *context) in remove_pair() 160 char *value; in str_parms_create_str() local 207 const char *value) in str_parms_add_str() 268 float value) in str_parms_add_float() 285 int str_parms_get_str(struct str_parms *str_parms, const char *key, char *val, in str_parms_get_str() 289 char* value = static_cast<char*>(hashmapGet(str_parms->map, (void*)key)); in str_parms_get_str() local 296 int str_parms_get_int(struct str_parms *str_parms, const char *key, int *val) in str_parms_get_int() 301 char* value = static_cast<char*>(hashmapGet(str_parms->map, (void*)key)); in str_parms_get_int() local 313 float *val) in str_parms_get_float() 331 static bool combine_strings(void *key, void *value, void *context) in combine_strings() [all …]
|
/ohos5.0/foundation/multimedia/media_foundation/test/unittest/ |
H A D | TestFFmpegVidEncConfig.cpp | 30 ValueType value; variable 34 ValueType val = 3; variable
|
/ohos5.0/foundation/window/window_manager/window_scene/test/mock/ |
H A D | mock_message_parcel.cpp | 139 bool Parcel::WriteString(const std::string& value) in WriteString() 149 bool Parcel::WriteBool(bool value) in WriteBool() 155 bool Parcel::WriteInt32(int32_t value) in WriteInt32() 164 bool Parcel::WriteInt64(int64_t value) in WriteInt64() 173 bool Parcel::WriteUint32(uint32_t value) in WriteUint32() 182 bool Parcel::WriteFloat(float value) in WriteFloat() 198 bool Parcel::ReadUint32(uint32_t& value) in ReadUint32() 208 bool Parcel::ReadInt32(int32_t& value) in ReadInt32() 218 bool Parcel::ReadInt64(int64_t& value) in ReadInt64() 228 bool Parcel::WriteStringVector(const std::vector<std::string>& val) in WriteStringVector() [all …]
|
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/ |
H A D | ArrayUtils.java | 45 public static <T> boolean contains(T[] array, T value) { in contains() 53 public static <T> int indexOf(T[] array, T value) { in indexOf() 61 public static String[] appendString(String[] cur, String val) { in appendString()
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/src/c_adapter/ |
H A D | basic_rust_types.rs | 183 let val = match OhCloudExtValue::get_inner(value as *mut _, SafetyCheckId::Value) { in OhCloudExtVectorPush() localVariable 206 let val = match OhCloudExtTable::get_inner(value as *mut _, SafetyCheckId::Table) { in OhCloudExtVectorPush() localVariable 220 let val = in OhCloudExtVectorPush() localVariable 590 let value = char_ptr_to_string(value as *const c_uchar, value_len); in OhCloudExtHashMapInsert() localVariable 608 let val = in OhCloudExtHashMapInsert() localVariable 910 let mut val = null(); localVariable 947 let value = &*(val as *const $value_typ); localVariable 1143 let mut val = null(); localVariable 1181 let value = &*(val as *const $value_typ); localVariable 1187 let mut val = null(); localVariable [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/test/av_trans_input/dsoftbus_input_test/ |
H A D | dsoftbus_input_plugin_test.cpp | 101 std::string value = "dsoftbus_input_test"; variable 105 bool val = true; variable 116 std::string value = "dsoftbus_input_test"; variable 118 ValueType val; variable 127 ValueType val; variable
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/subscriber_managers/ |
H A D | rdb_subscriber_manager.cpp | 118 rdbCache_.Compute(key, [&observer, &context, executorPool, this](const auto &key, auto &value) { in Add() 148 std::vector<ObserverNode> &value) { in Delete() 169 …he_.EraseIf([&callerTokenId, &callerPid, this](const auto &key, std::vector<ObserverNode> &value) { in Delete() 191 std::vector<ObserverNode> &value) { in Disable() 205 …bCache_.ComputeIfPresent(key, [&context, this](const auto &key, std::vector<ObserverNode> &value) { in Enable() 234 rdbCache_.ForEach([&uri, &context, this](const Key &key, std::vector<ObserverNode> &val) { in Emit() 253 …ch([&uri, &userId, &metaData, &hasObserver, this](const Key &key, std::vector<ObserverNode> &val) { in Emit() 281 rdbCache_.ForEach([&uri, &results](const Key &key, std::vector<ObserverNode> &val) { in GetKeysByUri() 296 rdbCache_.ComputeIfPresent(key, [&rdbPath, &version, &userId, this](const Key &key, auto &val) { in EmitByKey() 318 … RdbSubscriberManager::Notify(const Key &key, int32_t userId, const std::vector<ObserverNode> &val, in Notify() [all …]
|
/ohos5.0/drivers/hdf_core/framework/model/audio/core/src/ |
H A D | audio_core.c | 343 int32_t AudioDaiReadReg(const struct DaiDevice *dai, uint32_t reg, uint32_t *val) in AudioDaiReadReg() 411 const uint32_t mask, const uint32_t shift, uint32_t value) in AudioUpdateCodecRegBits() 453 const uint32_t mask, const uint32_t shift, uint32_t value) in AudioUpdateDaiRegBits() 531 uint32_t val[2]; in AudioCodecMuxRegUpdate() local 573 uint32_t value; in AudioDaiRegUpdate() local 894 const struct AudioMixerControl *mixerCtrl, uint32_t *value) in AudioSetCtrlOpsReg() 896 uint32_t val; in AudioSetCtrlOpsReg() local 917 uint32_t val; in AudioSetCtrlOpsRReg() local 943 uint32_t value = 0; in AudioCodecSetCtrlOps() local 988 const uint32_t *value) in AudioCodecSetEnumRegUpdate() [all …]
|
/ohos5.0/foundation/communication/ipc/ipc/native/src/napi_common/source/ |
H A D | napi_message_sequence_read.cpp | 44 size_t value = napiSequence->nativeParcel_->GetDataSize(); in JS_getSize() local 60 size_t value = napiSequence->nativeParcel_->GetDataCapacity(); in JS_getCapacity() local 211 int8_t value = napiSequence->nativeParcel_->ReadInt8(); in JS_readByte() local 229 int16_t value = napiSequence->nativeParcel_->ReadInt16(); in JS_readShort() local 247 int32_t value = napiSequence->nativeParcel_->ReadInt32(); in JS_readInt() local 265 int64_t value = napiSequence->nativeParcel_->ReadInt64(); in JS_readLong() local 283 double value = napiSequence->nativeParcel_->ReadDouble(); in JS_readFloat() local 307 int8_t value = napiSequence->nativeParcel_->ReadInt8(); in JS_readBoolean() local 325 uint8_t value = napiSequence->nativeParcel_->ReadUint8(); in JS_readChar() local 786 napi_value val = nullptr; in JS_readStringArray() local [all …]
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/extension/ |
H A D | extension_util.cpp | 29 auto value = Convert(bucket); in Convert() local 50 void *value = nullptr; in Convert() local 86 OhCloudExtValue *value = nullptr; in Convert() local 89 int64_t val = std::get<int64_t>(dbValue); in Convert() local 93 std::string val = std::get<std::string>(dbValue); in Convert() local 98 bool val = std::get<bool>(dbValue); in Convert() local 102 DBBytes val = std::get<DBBytes>(dbValue); in Convert() local 187 void *value = nullptr; in ConvertBuckets() local 194 [](auto *val) { in ConvertBuckets() 243 DBValue ExtensionUtil::ConvertValue(OhCloudExtValue *value) in ConvertValue() [all …]
|
/ohos5.0/base/powermgr/thermal_manager/test/unittest/src/ |
H A D | thermal_utils_test.cpp | 75 uint32_t val = 1; variable 76 double value = 2; variable
|
/aosp12/art/libartbase/base/ |
H A D | bit_utils.h | 138 constexpr T TruncToPowerOfTwo(T val) { in TruncToPowerOfTwo() 216 #define CHECK_ALIGNED(value, alignment) \ argument 219 #define DCHECK_ALIGNED(value, alignment) \ argument 228 inline uint16_t Low16Bits(uint32_t value) { in Low16Bits() 236 inline uint32_t Low32Bits(uint64_t value) { in Low32Bits() 246 inline bool IsInt(size_t N, T value) { in IsInt() 265 constexpr bool IsInt(T value) { in IsInt() 277 constexpr bool IsUint(T value) { in IsUint() 292 constexpr bool IsAbsoluteUint(T value) { in IsAbsoluteUint() 420 const auto val = static_cast<std::make_unsigned_t<T>>(value); in BitFieldClear() local [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/test/av_trans_output/daudio_output_test/ |
H A D | daudio_output_test.cpp | 73 int value = 1; variable 102 int value = 1; variable 112 std::string value = "dsoftbus_output_test"; variable 123 std::string value = "dsoftbus_output_test"; variable 125 ValueType val; variable 134 ValueType val; variable 210 std::string value = "dsoftbus_output_test"; variable
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/test/av_trans_output/dscreen_output_test/ |
H A D | dscreen_output_test.cpp | 78 std::string value = "dscreen_output_test"; variable 91 std::string value = "dscreen_output_test"; variable 92 ValueType val; variable 101 ValueType val; variable 110 std::string value = "dscreen_output_test"; variable 113 ValueType val; variable 195 std::string value = "dscreen_output_test"; variable
|