Home
last modified time | relevance | path

Searched +defs:val +defs:bytes (Results 1 – 25 of 124) sorted by relevance

12345

/aosp12/hardware/broadcom/wlan/bcmdhd/dhdutil/include/
H A Dbcmendian.h30 #define BCMSWAP16(val) \ argument
125 #define htol16_ua_store(val, bytes) ({ \ argument
132 #define htol32_ua_store(val, bytes) ({ \ argument
141 #define hton16_ua_store(val, bytes) ({ \ argument
148 #define hton32_ua_store(val, bytes) ({ \ argument
181 bcmswap16(uint16 val) in bcmswap16()
187 bcmswap32(uint32 val) in bcmswap32()
216 htol16_ua_store(uint16 val, uint8 *bytes) in htol16_ua_store()
226 htol32_ua_store(uint32 val, uint8 *bytes) in htol32_ua_store()
238 hton16_ua_store(uint16 val, uint8 *bytes) in hton16_ua_store()
[all …]
/aosp12/art/libartbase/base/
H A Dendian_utils.h27 inline void AppendBytes(std::vector<uint8_t>& bytes, T data) { in AppendBytes()
33 inline void Append1BE(std::vector<uint8_t>& bytes, uint8_t value) { in Append1BE()
37 inline void Append2BE(std::vector<uint8_t>& bytes, uint16_t value) { in Append2BE()
41 inline void Append4BE(std::vector<uint8_t>& bytes, uint32_t value) { in Append4BE()
45 inline void Append8BE(std::vector<uint8_t>& bytes, uint64_t value) { in Append8BE()
56 inline void AppendUtf16CompressedBE(std::vector<uint8_t>& bytes, in AppendUtf16CompressedBE()
66 inline void SetBytes(uint8_t* buf, T val) { in SetBytes()
70 inline void Set1(uint8_t* buf, uint8_t val) { in Set1()
74 inline void Set2BE(uint8_t* buf, uint16_t val) { in Set2BE()
78 inline void Set4BE(uint8_t* buf, uint32_t val) { in Set4BE()
[all …]
H A Darena_allocator.cc114 void ArenaAllocatorStatsImpl<kCount>::RecordAlloc(size_t bytes, ArenaAllocKind kind) { in RecordAlloc()
223 void* ArenaAllocator::AllocWithMemoryTool(size_t bytes, ArenaAllocKind kind) { in AllocWithMemoryTool()
238 DCHECK(std::all_of(ret, ret + bytes, [](uint8_t val) { return val == 0u; })); in AllocWithMemoryTool()
242 void* ArenaAllocator::AllocWithMemoryToolAlign16(size_t bytes, ArenaAllocKind kind) { in AllocWithMemoryToolAlign16()
262 DCHECK(std::all_of(ret, ret + bytes, [](uint8_t val) { return val == 0u; })); in AllocWithMemoryToolAlign16()
272 uint8_t* ArenaAllocator::AllocFromNewArena(size_t bytes) { in AllocFromNewArena()
296 uint8_t* ArenaAllocator::AllocFromNewArenaWithMemoryTool(size_t bytes) { in AllocFromNewArenaWithMemoryTool()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DDataUsageDetailView.java68 final long bytes; in bind() local
126 private String formatBytes(long bytes) { in formatBytes()
128 double val; in formatBytes() local
/aosp12/system/chre/apps/test/chqts/src/shared/
H A Dnano_string.cc33 void memset(void *mem, int val, size_t count) { in memset()
34 uint8_t *bytes = static_cast<uint8_t *>(mem); in memset() local
40 void memcpy(void *d, const void *s, size_t bytes) { in memcpy()
/aosp12/system/keymaster/include/keymaster/
H A Dauthorization_set.h240 bool Contains(TypedEnumTag<KM_ENUM_REP, Tag, T> tag, T val) const { in Contains()
248 bool Contains(TypedEnumTag<KM_ENUM, Tag, T> tag, T val) const { in Contains()
264 inline bool GetTagValue(TypedTag<KM_UINT, T> tag, uint32_t* val) const { in GetTagValue()
283 inline bool GetTagValue(TypedTag<KM_ULONG, T> tag, uint64_t* val) const { in GetTagValue()
302 bool GetTagValue(TypedEnumTag<KM_ENUM, Tag, T> tag, T* val) const { in GetTagValue()
322 bool GetTagValue(TypedEnumTag<KM_ENUM_REP, Tag, T> tag, T* val) const { in GetTagValue()
342 bool GetTagValue(TypedTag<KM_BYTES, Tag> tag, keymaster_blob_t* val) const { in GetTagValue()
351 bool GetTagValue(TypedTag<KM_BIGNUM, Tag> tag, keymaster_blob_t* val) const { in GetTagValue()
407 bool push_back(TypedTag<KM_BYTES, Tag> tag, const void* bytes, size_t bytes_len) { in push_back()
425 bool push_back(TypedTag<KM_BIGNUM, Tag> tag, const void* bytes, size_t bytes_len) { in push_back()
[all …]
/aosp12/system/bt/gd/packet/
H A Draw_builder.cc33 bool RawBuilder::AddOctets(size_t octets, const vector<uint8_t>& bytes) { in AddOctets()
43 bool RawBuilder::AddOctets(const vector<uint8_t>& bytes) { in AddOctets()
102 for (const auto& val : payload_) { in Serialize() local
/aosp12/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/
H A Diio_utils.h73 unsigned bytes; member
94 unsigned *bytes, in iioutils_get_type()
434 inline int _write_sysfs_int(char *filename, char *basedir, int val, int verify) in _write_sysfs_int()
479 int write_sysfs_int(char *filename, char *basedir, int val) in write_sysfs_int()
484 int write_sysfs_int_and_verify(char *filename, char *basedir, int val) in write_sysfs_int_and_verify()
490 inline int write_sysfs_int64(char *filename, char *basedir, long long val) in write_sysfs_int64()
517 int _write_sysfs_string(char *filename, char *basedir, char *val, int verify) in _write_sysfs_string()
566 int write_sysfs_string_and_verify(char *filename, char *basedir, char *val) in write_sysfs_string_and_verify()
571 int write_sysfs_string(char *filename, char *basedir, char *val) in write_sysfs_string()
620 int read_sysfs_float(char *filename, char *basedir, float *val) in read_sysfs_float()
/aosp12/frameworks/native/libs/binder/
H A DDebug.cpp29 std::string hexString(const void* bytes, size_t len) { in hexString()
77 static inline char makehexdigit(uint32_t val) in makehexdigit()
82 static char* appendhexnum(uint32_t val, char* out) in appendhexnum()
255 const unsigned char val = *(pos+startIndex-index); in printHexData() local
272 const unsigned char val = *(pos+startIndex-index); in printHexData() local
290 const unsigned char val = pos[index]; in printHexData() local
/aosp12/frameworks/native/libs/input/
H A DPropertyMap_fuzz.cpp52 const char* bytes = contents.c_str(); in __anond7bced8b0502() local
61 android::String8 val = android::String8(valStr.c_str()); in __anond7bced8b0602() local
/aosp12/frameworks/base/media/java/android/media/
H A DExifInterfaceUtils.java90 public static String byteArrayToHexString(byte[] bytes) { in byteArrayToHexString()
101 public static boolean startsWith(byte[] cur, byte[] val) { in startsWith()
/aosp12/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/
H A Diio_utils.h75 unsigned bytes; member
96 unsigned *bytes, in iioutils_get_type()
435 inline int _write_sysfs_int(char *filename, char *basedir, int val, int verify) in _write_sysfs_int()
480 int write_sysfs_int(char *filename, char *basedir, int val) in write_sysfs_int()
485 int write_sysfs_int_and_verify(char *filename, char *basedir, int val) in write_sysfs_int_and_verify()
490 int _write_sysfs_string(char *filename, char *basedir, char *val, int verify) in _write_sysfs_string()
540 int write_sysfs_string_and_verify(char *filename, char *basedir, char *val) in write_sysfs_string_and_verify()
545 int write_sysfs_string(char *filename, char *basedir, char *val) in write_sysfs_string()
572 int read_sysfs_float(char *filename, char *basedir, float *val) in read_sysfs_float()
/aosp12/hardware/invensense/6515/libsensors_iio/software/simple_apps/devnode_parser/
H A Diio_utils.h75 unsigned bytes; member
96 unsigned *bytes, in iioutils_get_type()
435 inline int _write_sysfs_int(char *filename, char *basedir, int val, int verify) in _write_sysfs_int()
480 int write_sysfs_int(char *filename, char *basedir, int val) in write_sysfs_int()
485 int write_sysfs_int_and_verify(char *filename, char *basedir, int val) in write_sysfs_int_and_verify()
490 int _write_sysfs_string(char *filename, char *basedir, char *val, int verify) in _write_sysfs_string()
540 int write_sysfs_string_and_verify(char *filename, char *basedir, char *val) in write_sysfs_string_and_verify()
545 int write_sysfs_string(char *filename, char *basedir, char *val) in write_sysfs_string()
572 int read_sysfs_float(char *filename, char *basedir, float *val) in read_sysfs_float()
/aosp12/frameworks/base/core/java/com/android/internal/util/
H A DBitUtils.java66 public static int[] unpackBits(long val) { in unpackBits()
103 public static int bytesToBEInt(byte[] bytes) { in bytesToBEInt()
110 public static int bytesToLEInt(byte[] bytes) { in bytesToLEInt()
126 public static void put(ByteBuffer buffer, int position, byte[] bytes) { in put()
/aosp12/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/
H A DProtoMessageConverter.cpp151 void toProto(vhal_proto::VehiclePropValue* protoVal, const VehiclePropValue& val) { in toProto()
182 void fromProto(VehiclePropValue* val, const vhal_proto::VehiclePropValue& protoVal) { in fromProto()
192 auto cast_proto_bytes_to_vec = [](auto&& bytes) { in fromProto()
/ohos5.0/base/powermgr/thermal_manager/test/unittest/mock/src/
H A Dmock_parcel.cpp395 void Parcel::SkipBytes(size_t bytes) in SkipBytes()
704 bool Parcel::ReadBoolVector(std::vector<bool>* val) in ReadBoolVector()
710 bool Parcel::ReadInt8Vector(std::vector<int8_t>* val) in ReadInt8Vector()
715 bool Parcel::ReadInt16Vector(std::vector<int16_t>* val) in ReadInt16Vector()
720 bool Parcel::ReadInt32Vector(std::vector<int32_t>* val) in ReadInt32Vector()
725 bool Parcel::ReadInt64Vector(std::vector<int64_t>* val) in ReadInt64Vector()
730 bool Parcel::ReadUInt8Vector(std::vector<uint8_t>* val) in ReadUInt8Vector()
735 bool Parcel::ReadUInt16Vector(std::vector<uint16_t>* val) in ReadUInt16Vector()
740 bool Parcel::ReadUInt32Vector(std::vector<uint32_t>* val) in ReadUInt32Vector()
750 bool Parcel::ReadFloatVector(std::vector<float>* val) in ReadFloatVector()
[all …]
/ohos5.0/base/powermgr/battery_manager/test/unittest/mock/source/
H A Dmock_parcel.cpp382 void Parcel::SkipBytes(size_t bytes) in SkipBytes()
679 bool Parcel::ReadBoolVector(std::vector<bool>* val) in ReadBoolVector()
685 bool Parcel::ReadInt8Vector(std::vector<int8_t>* val) in ReadInt8Vector()
690 bool Parcel::ReadInt16Vector(std::vector<int16_t>* val) in ReadInt16Vector()
695 bool Parcel::ReadInt32Vector(std::vector<int32_t>* val) in ReadInt32Vector()
700 bool Parcel::ReadInt64Vector(std::vector<int64_t>* val) in ReadInt64Vector()
705 bool Parcel::ReadUInt8Vector(std::vector<uint8_t>* val) in ReadUInt8Vector()
710 bool Parcel::ReadUInt16Vector(std::vector<uint16_t>* val) in ReadUInt16Vector()
715 bool Parcel::ReadUInt32Vector(std::vector<uint32_t>* val) in ReadUInt32Vector()
725 bool Parcel::ReadFloatVector(std::vector<float>* val) in ReadFloatVector()
[all …]
/ohos5.0/base/powermgr/battery_statistics/test/unittest/mock/source/
H A Dmock_parcel.cpp384 void Parcel::SkipBytes(size_t bytes) in SkipBytes()
681 bool Parcel::ReadBoolVector(std::vector<bool> *val) in ReadBoolVector()
687 bool Parcel::ReadInt8Vector(std::vector<int8_t> *val) in ReadInt8Vector()
692 bool Parcel::ReadInt16Vector(std::vector<int16_t> *val) in ReadInt16Vector()
697 bool Parcel::ReadInt32Vector(std::vector<int32_t> *val) in ReadInt32Vector()
702 bool Parcel::ReadInt64Vector(std::vector<int64_t> *val) in ReadInt64Vector()
707 bool Parcel::ReadUInt8Vector(std::vector<uint8_t> *val) in ReadUInt8Vector()
712 bool Parcel::ReadUInt16Vector(std::vector<uint16_t> *val) in ReadUInt16Vector()
717 bool Parcel::ReadUInt32Vector(std::vector<uint32_t> *val) in ReadUInt32Vector()
727 bool Parcel::ReadFloatVector(std::vector<float> *val) in ReadFloatVector()
[all …]
/ohos5.0/base/powermgr/display_manager/state_manager/test/unittest/mock/src/
H A Dmock_parcel.cpp382 void Parcel::SkipBytes(size_t bytes) in SkipBytes()
684 bool Parcel::ReadBoolVector(std::vector<bool>* val) in ReadBoolVector()
690 bool Parcel::ReadInt8Vector(std::vector<int8_t>* val) in ReadInt8Vector()
695 bool Parcel::ReadInt16Vector(std::vector<int16_t>* val) in ReadInt16Vector()
700 bool Parcel::ReadInt32Vector(std::vector<int32_t>* val) in ReadInt32Vector()
705 bool Parcel::ReadInt64Vector(std::vector<int64_t>* val) in ReadInt64Vector()
710 bool Parcel::ReadUInt8Vector(std::vector<uint8_t>* val) in ReadUInt8Vector()
715 bool Parcel::ReadUInt16Vector(std::vector<uint16_t>* val) in ReadUInt16Vector()
720 bool Parcel::ReadUInt32Vector(std::vector<uint32_t>* val) in ReadUInt32Vector()
730 bool Parcel::ReadFloatVector(std::vector<float>* val) in ReadFloatVector()
[all …]
/ohos5.0/base/powermgr/power_manager/test/unittest/mock/
H A Dmock_parcel.cpp382 void Parcel::SkipBytes(size_t bytes) in SkipBytes()
684 bool Parcel::ReadBoolVector(std::vector<bool>* val) in ReadBoolVector()
690 bool Parcel::ReadInt8Vector(std::vector<int8_t>* val) in ReadInt8Vector()
695 bool Parcel::ReadInt16Vector(std::vector<int16_t>* val) in ReadInt16Vector()
700 bool Parcel::ReadInt32Vector(std::vector<int32_t>* val) in ReadInt32Vector()
705 bool Parcel::ReadInt64Vector(std::vector<int64_t>* val) in ReadInt64Vector()
710 bool Parcel::ReadUInt8Vector(std::vector<uint8_t>* val) in ReadUInt8Vector()
715 bool Parcel::ReadUInt16Vector(std::vector<uint16_t>* val) in ReadUInt16Vector()
720 bool Parcel::ReadUInt32Vector(std::vector<uint32_t>* val) in ReadUInt32Vector()
730 bool Parcel::ReadFloatVector(std::vector<float>* val) in ReadFloatVector()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/platform/utils/
H A Dparcel.cpp316 void Parcel::SkipBytes(size_t bytes) in SkipBytes()
620 bool Parcel::ReadBoolVector(std::vector<bool> *val) in ReadBoolVector()
625 bool Parcel::ReadInt8Vector(std::vector<int8_t> *val) in ReadInt8Vector()
630 bool Parcel::ReadInt16Vector(std::vector<int16_t> *val) in ReadInt16Vector()
635 bool Parcel::ReadInt32Vector(std::vector<int32_t> *val) in ReadInt32Vector()
640 bool Parcel::ReadInt64Vector(std::vector<int64_t> *val) in ReadInt64Vector()
645 bool Parcel::ReadUInt8Vector(std::vector<uint8_t> *val) in ReadUInt8Vector()
650 bool Parcel::ReadUInt16Vector(std::vector<uint16_t> *val) in ReadUInt16Vector()
655 bool Parcel::ReadUInt32Vector(std::vector<uint32_t> *val) in ReadUInt32Vector()
665 bool Parcel::ReadFloatVector(std::vector<float> *val) in ReadFloatVector()
[all …]
/aosp12/system/core/debuggerd/libdebuggerd/
H A Dutility.cpp151 size_t bytes = memory->Read(*addr, reinterpret_cast<uint8_t*>(out), len); in dump_memory() local
210 ssize_t bytes = dump_memory(data, sizeof(data), tags, sizeof(tags), &addr, memory); in dump_memory() local
237 for (size_t val = 0; val < sizeof(uintptr_t); val++, ptr++) { in dump_memory() local
/aosp12/bionic/tests/
H A Dmalloc_test.cpp419 int val; in TEST() local
448 int val; in TEST() local
489 int val; in TEST() local
1038 EXPECT_EXIT(CheckAllocationFunction([](size_t bytes) { return calloc(bytes, 1) != nullptr; }), in TEST()
1042 EXPECT_EXIT(CheckAllocationFunction([](size_t bytes) { return malloc(bytes) != nullptr; }), in TEST()
1045 [](size_t bytes) { return memalign(sizeof(void*), bytes) != nullptr; }), in TEST()
1047 EXPECT_EXIT(CheckAllocationFunction([](size_t bytes) { in TEST()
1053 [](size_t bytes) { return aligned_alloc(sizeof(void*), bytes) != nullptr; }), in TEST()
1055 EXPECT_EXIT(CheckAllocationFunction([](size_t bytes) { in TEST()
1061 EXPECT_EXIT(CheckAllocationFunction([](size_t bytes) { return pvalloc(bytes) != nullptr; }), in TEST()
[all …]
/ohos5.0/commonlibrary/c_utils/base/src/
H A Dparcel.cpp867 void Parcel::SkipBytes(size_t bytes) in SkipBytes()
1505 bool Parcel::ReadBoolVector(std::vector<bool> *val) in ReadBoolVector()
1510 bool Parcel::ReadInt8Vector(std::vector<int8_t> *val) in ReadInt8Vector()
1515 bool Parcel::ReadInt16Vector(std::vector<int16_t> *val) in ReadInt16Vector()
1520 bool Parcel::ReadInt32Vector(std::vector<int32_t> *val) in ReadInt32Vector()
1525 bool Parcel::ReadInt64Vector(std::vector<int64_t> *val) in ReadInt64Vector()
1530 bool Parcel::ReadUInt8Vector(std::vector<uint8_t> *val) in ReadUInt8Vector()
1535 bool Parcel::ReadUInt16Vector(std::vector<uint16_t> *val) in ReadUInt16Vector()
1540 bool Parcel::ReadUInt32Vector(std::vector<uint32_t> *val) in ReadUInt32Vector()
1550 bool Parcel::ReadFloatVector(std::vector<float> *val) in ReadFloatVector()
[all …]
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/extension/
H A Dextension_util.cpp89 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
194 [](auto *val) { in ConvertBuckets()
288 std::vector<uint8_t> bytes; in DoConvertValue() local

12345