/system/core/libbacktrace/ |
D | backtrace_read_benchmarks.cpp | 145 std::vector<uint8_t> read_buffer(state.range(0)); in BM_read_with_ptrace() local 148 if (PtraceRead(pid, addr, read_buffer.data(), read_buffer.size()) != read_buffer.size()) { in BM_read_with_ptrace() 163 std::vector<uint8_t> read_buffer(state.range(0)); in BM_read_with_process_vm_read() local 166 if (ProcessVmRead(pid, addr, read_buffer.data(), read_buffer.size()) != read_buffer.size()) { in BM_read_with_process_vm_read() 188 std::vector<uint8_t> read_buffer(state.range(0)); in BM_read_with_backtrace_object() local 190 if (backtrace->Read(addr, read_buffer.data(), read_buffer.size()) != read_buffer.size()) { in BM_read_with_backtrace_object()
|
/system/core/libunwindstack/tests/ |
D | MemoryFileTest.cpp | 197 std::vector<uint8_t> read_buffer(pagesize * 2); in TEST_F() local 199 ASSERT_FALSE(memory_.ReadFully(pagesize * 2, read_buffer.data(), 1)); in TEST_F() 200 ASSERT_TRUE(memory_.ReadFully(0, read_buffer.data(), pagesize * 2)); in TEST_F() 202 ASSERT_EQ(2, read_buffer[i]) << "Failed at byte " << i; in TEST_F() 205 ASSERT_EQ(3, read_buffer[i]) << "Failed at byte " << i; in TEST_F() 221 std::vector<uint8_t> read_buffer(pagesize * 2); in TEST_F() local 223 ASSERT_FALSE(memory_.ReadFully(pagesize * 2, read_buffer.data(), 1)); in TEST_F() 224 ASSERT_TRUE(memory_.ReadFully(0, read_buffer.data(), pagesize * 2)); in TEST_F() 226 ASSERT_EQ(2, read_buffer[i]) << "Failed at byte " << i; in TEST_F() 229 ASSERT_EQ(3, read_buffer[i]) << "Failed at byte " << i; in TEST_F() [all …]
|
/system/bt/stack/a2dp/ |
D | a2dp_aac_encoder.cc | 110 static bool a2dp_aac_read_feeding(uint8_t* read_buffer, uint32_t* bytes_read); 599 uint8_t read_buffer[BT_DEFAULT_BUFFER_SIZE]; in a2dp_aac_encode_frames() local 603 CHECK(pcm_bytes_per_frame <= static_cast<int>(sizeof(read_buffer))); in a2dp_aac_encode_frames() 657 if (a2dp_aac_read_feeding(read_buffer, &bytes_read)) { in a2dp_aac_encode_frames() 665 in_buf_vector[0] = read_buffer; in a2dp_aac_encode_frames() 720 static bool a2dp_aac_read_feeding(uint8_t* read_buffer, uint32_t* bytes_read) { in a2dp_aac_read_feeding() argument 730 a2dp_aac_encoder_cb.read_callback(read_buffer, read_size); in a2dp_aac_read_feeding() 738 memset(((uint8_t*)read_buffer) + nb_byte_read, 0, read_size - nb_byte_read); in a2dp_aac_read_feeding()
|
D | a2dp_vendor_ldac_encoder.cc | 184 static bool a2dp_ldac_read_feeding(uint8_t* read_buffer, uint32_t* bytes_read); 611 uint8_t read_buffer[LDACBT_MAX_LSU * 4 /* byte/sample */ * 2 /* ch */]; in a2dp_ldac_encode_frames() local 648 if (a2dp_ldac_read_feeding(read_buffer, &temp_bytes_read)) { in a2dp_ldac_encode_frames() 658 a2dp_ldac_encoder_cb.ldac_handle, read_buffer, (int*)&encode_count, in a2dp_ldac_encode_frames() 714 static bool a2dp_ldac_read_feeding(uint8_t* read_buffer, uint32_t* bytes_read) { in a2dp_ldac_read_feeding() argument 724 a2dp_ldac_encoder_cb.read_callback(read_buffer, read_size); in a2dp_ldac_read_feeding() 731 memset(((uint8_t*)read_buffer) + nb_byte_read, 0, read_size - nb_byte_read); in a2dp_ldac_read_feeding()
|
D | a2dp_sbc_encoder.cc | 616 static uint16_t read_buffer[SBC_MAX_NUM_FRAME * SBC_MAX_NUM_OF_BLOCKS * in a2dp_sbc_read_feeding() local 710 a2dp_sbc_encoder_cb.read_callback((uint8_t*)read_buffer, read_size); in a2dp_sbc_read_feeding() 717 memset(((uint8_t*)read_buffer) + nb_byte_read, 0, read_size - nb_byte_read); in a2dp_sbc_read_feeding() 733 (uint8_t*)read_buffer, in a2dp_sbc_read_feeding()
|
/system/core/adb/ |
D | socket_test.cpp | 90 std::string read_buffer = MESSAGE; in TEST_F() local 92 ASSERT_TRUE(WriteFdExactly(first[0], &read_buffer[0], read_buffer.size())); in TEST_F() 94 ASSERT_EQ(read_buffer, write_buffer); in TEST_F()
|
/system/core/adb/fdevent/ |
D | fdevent_test.cpp | 159 std::string read_buffer = MESSAGE; in TEST_F() local 161 ASSERT_TRUE(WriteFdExactly(writer, read_buffer.c_str(), read_buffer.size())); in TEST_F() 163 ASSERT_EQ(read_buffer, write_buffer); in TEST_F()
|
/system/libziparchive/ |
D | zip_archive_test.cc | 594 uint8_t read_buffer[data_size]; in TEST() local 596 ASSERT_TRUE(android::base::ReadFully(tmp_file.fd, read_buffer, data_size)); in TEST() 597 ASSERT_EQ(0, memcmp(read_buffer, data, data_size)); in TEST()
|
/system/libhwbinder/ |
D | IPCThreadState.cpp | 912 bwr.read_buffer = (uintptr_t)mIn.data(); in talkWithDriver() 915 bwr.read_buffer = 0; in talkWithDriver()
|