Home
last modified time | relevance | path

Searched refs:max_size (Results 1 – 15 of 15) sorted by relevance

/system/core/libsparse/
Dsimg2simg.c49 int64_t max_size; in main() local
59 max_size = atoll(argv[3]); in main()
73 files = sparse_file_resparse(s, max_size, NULL, 0); in main()
85 files = sparse_file_resparse(s, max_size, out_s, files); in main()
/system/bt/osi/src/
Deager_reader.c164 size_t eager_reader_read(eager_reader_t *reader, uint8_t *buffer, size_t max_size) { in eager_reader_read() argument
179 if (max_size > bytes_available) in eager_reader_read()
180 max_size = bytes_available; in eager_reader_read()
183 while (bytes_consumed < max_size) { in eager_reader_read()
188 if (bytes_to_copy > (max_size - bytes_consumed)) in eager_reader_read()
189 bytes_to_copy = max_size - bytes_consumed; in eager_reader_read()
/system/core/crash_reporter/
Dwarn_collector.l42 void WarnInput(char *buf, yy_size_t *result, size_t max_size);
44 #define YY_INPUT(buf, result, max_size) WarnInput(buf, &result, max_size) argument
202 void WarnInput(char *buf, yy_size_t *result, size_t max_size) { in WarnInput() argument
204 ssize_t ret = read(yyin_fd, buf, max_size); in WarnInput()
Dcrash_collector.cc241 ssize_t max_size = 64; in GetSymlinkTarget() local
245 buffer.resize(max_size + 1); in GetSymlinkTarget()
246 ssize_t size = readlink(symlink.value().c_str(), buffer.data(), max_size); in GetSymlinkTarget()
255 if (size == max_size) { in GetSymlinkTarget()
256 max_size *= 2; in GetSymlinkTarget()
257 if (max_size > PATH_MAX) { in GetSymlinkTarget()
/system/bt/hci/src/
Dhci_hal_mct.c129 static size_t read_data(serial_data_type_t type, uint8_t *buffer, size_t max_size) { in read_data() argument
131 return eager_reader_read(acl_stream, buffer, max_size); in read_data()
133 return eager_reader_read(event_stream, buffer, max_size); in read_data()
Dhci_hal_h4.c116 static size_t read_data(serial_data_type_t type, uint8_t *buffer, size_t max_size) { in read_data() argument
128 return eager_reader_read(uart_stream, buffer, max_size); in read_data()
/system/bt/hci/test/
Dhci_layer_test.cpp213 static size_t replay_data_to_receive(size_t max_size, uint8_t *buffer) {
214 for (size_t i = 0; i < max_size; i++) {
220 if (i == (max_size - 1))
227 STUB_FUNCTION(size_t, hal_read_data, (serial_data_type_t type, uint8_t *buffer, size_t max_size))
230 return replay_data_to_receive(max_size, buffer);
235 return replay_data_to_receive(max_size, buffer);
243 return replay_data_to_receive(max_size, buffer);
/system/bt/osi/include/
Deager_reader.h63 size_t eager_reader_read(eager_reader_t *reader, uint8_t *buffer, size_t max_size);
/system/bt/hci/include/
Dhci_hal.h62 size_t (*read_data)(serial_data_type_t type, uint8_t *buffer, size_t max_size);
/system/keymaster/
Dkeymaster_enforcement.cpp37 AccessTimeMap(uint32_t max_size) : max_size_(max_size) {} in AccessTimeMap() argument
59 AccessCountMap(uint32_t max_size) : max_size_(max_size) {} in AccessCountMap() argument
/system/bt/stack/sdp/
Dsdp_main.c152 UINT16 sdp_set_max_attr_list_size (UINT16 max_size) in sdp_set_max_attr_list_size() argument
154 if (max_size > (sdp_cb.l2cap_my_cfg.mtu - 16) ) in sdp_set_max_attr_list_size()
155 max_size = sdp_cb.l2cap_my_cfg.mtu - 16; in sdp_set_max_attr_list_size()
157 sdp_cb.max_attr_list_size = max_size; in sdp_set_max_attr_list_size()
Dsdpint.h252 extern UINT16 sdp_set_max_attr_list_size (UINT16 max_size);
/system/bt/stack/gatt/
Dgatt_db.c737 UINT16 max_size = 0; in gatts_write_attr_perm_check() local
843 max_size = 2; in gatts_write_attr_perm_check()
874 else if (len != max_size) /* data does not match the required format */ in gatts_write_attr_perm_check()
/system/core/adb/
Dtest_device.py609 max_size = 16 * (1 << 10)
615 size = random.randrange(min_size, max_size, 1024)
628 max_size = 16 * (1 << 10)
632 size = random.randrange(min_size, max_size, 1024)
/system/core/fastboot/
Dfastboot.cpp701 static struct sparse_file **load_sparse_files(int fd, int max_size) in load_sparse_files() argument
708 int files = sparse_file_resparse(s, max_size, nullptr, 0); in load_sparse_files()
718 files = sparse_file_resparse(s, max_size, out_s, files); in load_sparse_files()