Home
last modified time | relevance | path

Searched refs:size_bytes (Results 1 – 20 of 20) sorted by relevance

/packages/modules/Bluetooth/system/main/shim/
Dconfig.cc80 int* size_bytes) { in GetStr() argument
82 log::assert_that(size_bytes != nullptr, in GetStr()
84 if (*size_bytes == 0) { in GetStr()
93 *size_bytes = str->copy(value, (*size_bytes - 1)); in GetStr()
94 value[*size_bytes] = '\0'; in GetStr()
95 *size_bytes += 1; in GetStr()
Dconfig.h42 char* value, int* size_bytes);
/packages/modules/Bluetooth/tools/rootcanal/model/devices/
Dlink_layer_socket_device.cc102 std::vector<uint8_t> size_bytes; in ReceiveLinkLayerPacket() local
103 pdl::packet::Builder::write_le<uint32_t>(size_bytes, packet_bytes.size()); in ReceiveLinkLayerPacket()
105 if (socket_->Send(size_bytes.data(), size_bytes.size()) == kSizeBytes) { in ReceiveLinkLayerPacket()
/packages/modules/Connectivity/staticlibs/native/bpf_headers/include/bpf/
Dbpf_helpers.h270 #define DEFINE_BPF_RINGBUF_EXT(the_map, ValueType, size_bytes, usr, grp, md, \ argument
273 DEFINE_BPF_MAP_BASE(the_map, RINGBUF, 0, 0, size_bytes, usr, grp, md, \
278 _Static_assert((size_bytes) >= 4096, "min 4 kiB ringbuffer size"); \
279 _Static_assert((size_bytes) <= 0x10000000, "max 256 MiB ringbuffer size"); \
280 _Static_assert(((size_bytes) & ((size_bytes) - 1)) == 0, \
/packages/modules/Bluetooth/system/device/test/
Ddevice_iot_config_test.cc2340 int size_bytes = initial_size_bytes; in TEST_F_WITH_FLAGS() local
2341 char get_value_str[size_bytes]; in TEST_F_WITH_FLAGS()
2343 get_value_str, &size_bytes)); in TEST_F_WITH_FLAGS()
2347 EXPECT_EQ(size_bytes, initial_size_bytes); in TEST_F_WITH_FLAGS()
2356 int size_bytes = initial_size_bytes; in TEST_F_WITH_FLAGS() local
2357 char get_value_str[size_bytes]; in TEST_F_WITH_FLAGS()
2362 get_value_str, &size_bytes)); in TEST_F_WITH_FLAGS()
2366 EXPECT_EQ(size_bytes, (int)actual_value_str.length() + 1); in TEST_F_WITH_FLAGS()
2367 EXPECT_TRUE(strncmp(get_value_str, actual_value_str.c_str(), size_bytes) == in TEST_F_WITH_FLAGS()
2535 size_t size_bytes = initial_size_bytes; in TEST_F_WITH_FLAGS() local
[all …]
/packages/modules/Bluetooth/system/test/mock/
Dmock_btif_config.h138 char* value, int* size_bytes)>
142 char* value, int* size_bytes) { in operator()
143 return body(section, key, value, size_bytes); in operator()
Dmock_device_iot_config.h135 char* value, int* size_bytes)>
140 char* value, int* size_bytes) { in operator()
141 return body(section, key, value, size_bytes); in operator()
Dmock_btif_config.cc96 char* value, int* size_bytes) { in btif_config_get_str() argument
99 size_bytes); in btif_config_get_str()
Dmock_device_iot_config.cc89 int* size_bytes) { in device_iot_config_get_str() argument
91 return test::mock::device_iot_config::device_iot_config_get_str(section, key, value, size_bytes); in device_iot_config_get_str()
/packages/modules/Bluetooth/system/device/src/
Ddevice_iot_config.cc191 int* size_bytes) { in device_iot_config_get_str() argument
197 log::assert_that(size_bytes != NULL, "assert failed: size_bytes != NULL"); in device_iot_config_get_str()
205 strlcpy(value, stored_value->c_str(), *size_bytes); in device_iot_config_get_str()
206 *size_bytes = strlen(value) + 1; in device_iot_config_get_str()
/packages/modules/Bluetooth/floss/pandora/floss/
Daudio_utils.py48 …S = dict(S32_LE=dict(message='Signed 32-bit integer, little-endian', dtype_str='<i', size_bytes=4),
49 … S16_LE=dict(message='Signed 16-bit integer, little-endian', dtype_str='<i', size_bytes=2))
/packages/modules/Bluetooth/system/gd/rust/topshim/src/profiles/
Dsocket.rs82 let (size_bytes, rest) = bytes.split_at(std::mem::size_of::<u16>()); in try_from()
83 if u16::from_ne_bytes(size_bytes.try_into().unwrap()) != (CONNECT_COMPLETE_SIZE as u16) { in try_from()
84 return Err(format!("Wrong size in Connection Complete: {:?}", size_bytes)); in try_from()
/packages/modules/Bluetooth/system/btif/src/
Dbtif_config.cc266 char* value, int* size_bytes) { in btif_config_get_str() argument
270 size_bytes); in btif_config_get_str()
/packages/modules/Bluetooth/system/btif/include/
Dbtif_config.h44 char* value, int* size_bytes);
/packages/modules/Bluetooth/system/device/include/
Ddevice_iot_config.h47 int* size_bytes);
/packages/modules/Virtualization/virtualizationmanager/src/
Daidl.rs242 size_bytes: i64, in initializeWritablePartition()
246 let size_bytes = size_bytes in initializeWritablePartition() localVariable
248 .with_context(|| format!("Invalid size: {}", size_bytes)) in initializeWritablePartition()
250 let size_bytes = round_up(size_bytes, PARTITION_GRANULARITY_BYTES); in initializeWritablePartition() localVariable
261 .set_len(size_bytes) in initializeWritablePartition()
/packages/modules/Bluetooth/tools/rootcanal/scripts/
Dsimple_link_layer_socket.py125 size_bytes = bytearray(size_chars)
Dsend_simple_commands.py142 size_bytes = bytearray(size_chars)
Dtest_channel.py116 size_bytes = bytearray(size_chars)
/packages/providers/MediaProvider/apex/framework/api/
Dcurrent.txt92 field public static final String SIZE_BYTES = "size_bytes";