Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/main/shim/
Dconfig.cc81 int* size_bytes) { in GetStr() argument
83 ASSERT(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 bluetooth::packet::BitInserter bit_inserter(size_bytes); in ReceiveLinkLayerPacket()
106 if (socket_->Send(size_bytes.data(), size_bytes.size()) == kSizeBytes) { in ReceiveLinkLayerPacket()
/packages/modules/Bluetooth/system/test/mock/
Dmock_btif_config.h120 char* value, int* size_bytes)>
122 int* size_bytes) { return false; }};
124 char* value, int* size_bytes) { in operator()
125 return body(section, key, value, size_bytes); in operator()
Dmock_device_iot_config.h127 char* value, int* size_bytes)>
129 char* value, int* size_bytes) { return return_value; }};
131 char* value, int* size_bytes) { in operator()
132 return body(section, key, value, size_bytes); in operator()
Dmock_btif_config.cc97 char* value, int* size_bytes) { in btif_config_get_str() argument
100 size_bytes); in btif_config_get_str()
Dmock_device_iot_config.cc91 int* size_bytes) { in device_iot_config_get_str() argument
93 return test::mock::device_iot_config::device_iot_config_get_str(section, key, value, size_bytes); in device_iot_config_get_str()
Dmock_main_shim_BtifConfigInterface.cc52 int* size_bytes) { in GetStr() argument
/packages/modules/Bluetooth/system/device/test/
Ddevice_iot_config_test.cc2295 int size_bytes = initial_size_bytes; in TEST_F() local
2296 char get_value_str[size_bytes]; in TEST_F()
2298 get_value_str, &size_bytes)); in TEST_F()
2302 EXPECT_EQ(size_bytes, initial_size_bytes); in TEST_F()
2311 int size_bytes = initial_size_bytes; in TEST_F() local
2312 char get_value_str[size_bytes]; in TEST_F()
2317 get_value_str, &size_bytes)); in TEST_F()
2321 EXPECT_EQ(size_bytes, (int)actual_value_str.length() + 1); in TEST_F()
2322 EXPECT_TRUE(strncmp(get_value_str, actual_value_str.c_str(), size_bytes) == in TEST_F()
2484 size_t size_bytes = initial_size_bytes; in TEST_F() local
[all …]
/packages/modules/Bluetooth/system/device/src/
Ddevice_iot_config.cc189 int* size_bytes) { in device_iot_config_get_str() argument
194 CHECK(size_bytes != NULL); in device_iot_config_get_str()
202 strlcpy(value, stored_value->c_str(), *size_bytes); in device_iot_config_get_str()
203 *size_bytes = strlen(value) + 1; in device_iot_config_get_str()
/packages/modules/Bluetooth/system/gd/rust/topshim/src/profiles/
Dsocket.rs83 let (size_bytes, rest) = bytes.split_at(std::mem::size_of::<u16>()); in try_from()
84 if u16::from_ne_bytes(size_bytes.clone().try_into().unwrap()) in try_from()
87 return Err(format!("Wrong size in Connection Complete: {:?}", size_bytes)); in try_from()
/packages/modules/Virtualization/virtualizationmanager/src/
Daidl.rs188 size_bytes: i64, in initializeWritablePartition()
192 let size_bytes = size_bytes.try_into().map_err(|e| { in initializeWritablePartition() localVariable
195 Some(format!("Invalid size {}: {:?}", size_bytes, e)), in initializeWritablePartition()
198 let size_bytes = round_up(size_bytes, PARTITION_GRANULARITY_BYTES); in initializeWritablePartition() localVariable
207 let mut part = QcowFile::new(image, size_bytes).map_err(|e| { in initializeWritablePartition()
/packages/modules/Bluetooth/system/btif/src/
Dbtif_config.cc261 char* value, int* size_bytes) { in btif_config_get_str() argument
264 size_bytes); in btif_config_get_str()
/packages/modules/Bluetooth/system/btif/include/
Dbtif_config.h58 char* value, int* size_bytes);
/packages/modules/Bluetooth/system/device/include/
Ddevice_iot_config.h47 int* size_bytes);
/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.txt91 field public static final String SIZE_BYTES = "size_bytes";