/system/core/libunwindstack/tests/ |
D | MemoryTest.cpp | 34 uint32_t data = 0xffffffff; in TEST() local 35 ASSERT_TRUE(memory.Read32(0, &data)); in TEST() 36 ASSERT_EQ(0U, data); in TEST() 42 uint64_t data = 0xffffffffffffffffULL; in TEST() local 43 ASSERT_TRUE(memory.Read64(0, &data)); in TEST() 44 ASSERT_EQ(0U, data); in TEST() 57 FakeStruct data; in TEST() local 58 memset(&data, 0xff, sizeof(data)); in TEST() 59 ASSERT_TRUE(memory.ReadField(0, &data, &data.one, sizeof(data.one))); in TEST() 60 ASSERT_EQ(0, data.one); in TEST() [all …]
|
D | MemoryOfflineBufferTest.cpp | 31 memory_.reset(new MemoryOfflineBuffer(buffer_.data(), kStart, kEnd)); in SetUp() 59 ASSERT_FALSE(memory_->ReadFully(0, buffer.data(), 1)); in TEST_F() 60 ASSERT_FALSE(memory_->ReadFully(0xfff, buffer.data(), 1)); in TEST_F() 61 ASSERT_FALSE(memory_->ReadFully(0xfff, buffer.data(), 2)); in TEST_F() 62 ASSERT_FALSE(memory_->ReadFully(0x3000, buffer.data(), 1)); in TEST_F() 63 ASSERT_FALSE(memory_->ReadFully(0x3001, buffer.data(), 1)); in TEST_F() 68 ASSERT_TRUE(memory_->ReadFully(kStart, buffer.data(), 10)); in TEST_F() 69 ASSERT_NO_FATAL_FAILURE(VerifyBuffer(buffer.data(), 0, 10)); in TEST_F() 71 ASSERT_TRUE(memory_->ReadFully(kStart + 555, buffer.data(), 40)); in TEST_F() 72 ASSERT_NO_FATAL_FAILURE(VerifyBuffer(buffer.data(), 555, 40)); in TEST_F() [all …]
|
D | MemoryOfflineTest.cpp | 31 data.push_back(i & 0xff); in SetUp() 35 ASSERT_TRUE(android::base::WriteFully(temp_file.fd, data.data(), data.size())); in SetUp() 45 std::vector<char> data; member in unwindstack::MemoryOfflineTest 52 ASSERT_EQ(0U, memory->Read(offset + data.size(), &buf, 1)); in TEST_F() 54 ASSERT_EQ(buf, data.front()); in TEST_F() 55 ASSERT_EQ(1U, memory->Read(offset + data.size() - 1, &buf, 1)); in TEST_F() 56 ASSERT_EQ(buf, data.back()); in TEST_F() 61 buf.resize(2 * data.size()); in TEST_F() 62 ASSERT_EQ(data.size(), memory->Read(offset, buf.data(), buf.size())); in TEST_F() 63 buf.resize(data.size()); in TEST_F() [all …]
|
D | MemoryFileTest.cpp | 52 ASSERT_TRUE(memory_.ReadFully(0, buffer.data(), 10)); in TEST_F() 54 ASSERT_STREQ("0123456789", buffer.data()); in TEST_F() 62 ASSERT_TRUE(memory_.ReadFully(0, buffer.data(), 10)); in TEST_F() 64 ASSERT_STREQ("abcdefghij", buffer.data()); in TEST_F() 78 ASSERT_TRUE(memory_.ReadFully(0, buffer.data(), 8)); in TEST_F() 80 ASSERT_STREQ("abcdefgh", buffer.data()); in TEST_F() 85 std::string data; in TEST_F() local 87 data += static_cast<char>((i / pagesize) + '0'); in TEST_F() 88 data += static_cast<char>((i % 10) + '0'); in TEST_F() 90 ASSERT_TRUE(android::base::WriteStringToFd(data, tf_->fd)); in TEST_F() [all …]
|
/system/vold/ |
D | EncryptInplace.cpp | 79 static void update_progress(struct encryptGroupsData* data, int is_used) in update_progress() argument 81 data->blocks_already_done++; in update_progress() 84 data->used_blocks_already_done++; in update_progress() 86 if (data->tot_used_blocks) { in update_progress() 87 data->new_pct = data->used_blocks_already_done / data->one_pct; in update_progress() 89 data->new_pct = data->blocks_already_done / data->one_pct; in update_progress() 92 if (!data->set_progress_properties) return; in update_progress() 94 if (data->new_pct > data->cur_pct) { in update_progress() 96 data->cur_pct = data->new_pct; in update_progress() 97 snprintf(buf, sizeof(buf), "%" PRId64, data->cur_pct); in update_progress() [all …]
|
/system/core/adf/libadf/ |
D | adf.cpp | 103 int adf_get_device_data(struct adf_device *dev, struct adf_device_data *data) in adf_get_device_data() argument 108 memset(data, 0, sizeof(*data)); in adf_get_device_data() 110 err = ioctl(dev->fd, ADF_GET_DEVICE_DATA, data); in adf_get_device_data() 114 if (data->n_attachments) in adf_get_device_data() 115 data->attachments = new adf_attachment_config[data->n_attachments]; in adf_get_device_data() 117 if (data->n_allowed_attachments) in adf_get_device_data() 118 data->allowed_attachments = in adf_get_device_data() 119 new adf_attachment_config[data->n_allowed_attachments]; in adf_get_device_data() 121 if (data->custom_data_size) in adf_get_device_data() 122 data->custom_data = new char[data->custom_data_size]; in adf_get_device_data() [all …]
|
/system/core/libcutils/ |
D | config_utils.cpp | 115 char *data; member 125 char *data; in _lex() local 127 data = cs->data; in _lex() 137 c = *data++; in _lex() 148 switch(*data) { in _lex() 150 cs->data = data; in _lex() 153 cs->data = data + 1; in _lex() 156 data++; in _lex() 162 cs->data = data; in _lex() 166 cs->data = data; in _lex() [all …]
|
D | load_file.cpp | 26 char *data; in load_file() local 30 data = 0; in load_file() 39 data = (char*) malloc(sz + 1); in load_file() 40 if(data == 0) goto oops; in load_file() 42 if(read(fd, data, sz) != sz) goto oops; in load_file() 44 data[sz] = 0; in load_file() 47 return data; in load_file() 51 if(data != 0) free(data); in load_file()
|
/system/core/libutils/ |
D | SharedBuffer.h | 54 inline const void* data() const; 57 inline void* data(); 63 static inline SharedBuffer* bufferFromData(void* data); 66 static inline const SharedBuffer* bufferFromData(const void* data); 69 static inline size_t sizeFromData(const void* data); 114 const void* SharedBuffer::data() const { in data() function 118 void* SharedBuffer::data() { in data() function 126 SharedBuffer* SharedBuffer::bufferFromData(void* data) { in bufferFromData() argument 127 return data ? static_cast<SharedBuffer *>(data)-1 : 0; in bufferFromData() 130 const SharedBuffer* SharedBuffer::bufferFromData(const void* data) { in bufferFromData() argument [all …]
|
/system/connectivity/wifilogd/tests/ |
D | byte_buffer_unittest.cpp | 44 buffer_.AppendOrDie(kSmallestMessage.data(), kSmallestMessage.size()); in TEST_F() 48 buffer_.AppendOrDie(kLargestMessage.data(), kLargestMessage.size()); in TEST_F() 54 buffer_.AppendOrDie(message1.data(), message1.size()); in TEST_F() 55 buffer_.AppendOrDie(message2.data(), message2.size()); in TEST_F() 58 EXPECT_EQ(0, std::memcmp(buffer_.data(), expected.data(), expected.size())); in TEST_F() 63 buffer_.AppendOrDie(message1.data(), message1.size()); in TEST_F() 70 EXPECT_EQ(0, std::memcmp(copy.data(), buffer_.data(), buffer_.size())); in TEST_F() 76 buffer_.AppendOrDie(message1.data(), message1.size()) in TEST_F() 77 .AppendOrDie(message2.data(), message2.size()); in TEST_F() 80 EXPECT_EQ(0, std::memcmp(buffer_.data(), expected.data(), expected.size())); in TEST_F() [all …]
|
/system/core/gatekeeperd/ |
D | IGateKeeperService.cpp | 30 uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags) { in onTransact() argument 33 CHECK_INTERFACE(IGateKeeperService, data, reply); in onTransact() 34 uint32_t uid = data.readInt32(); in onTransact() 36 ssize_t currentPasswordHandleSize = data.readInt32(); in onTransact() 38 static_cast<const uint8_t *>(data.readInplace(currentPasswordHandleSize)); in onTransact() 41 ssize_t currentPasswordSize = data.readInt32(); in onTransact() 43 static_cast<const uint8_t *>(data.readInplace(currentPasswordSize)); in onTransact() 46 ssize_t desiredPasswordSize = data.readInt32(); in onTransact() 48 static_cast<const uint8_t *>(data.readInplace(desiredPasswordSize)); in onTransact() 76 CHECK_INTERFACE(IGateKeeperService, data, reply); in onTransact() [all …]
|
/system/libfmq/tests/ |
D | mq_test.cpp | 128 inline void initData(uint8_t* data, size_t count) { in initData() argument 130 data[i] = i & 0xFF; in initData() 144 uint8_t data[dataLen]; in ReaderThreadBlocking() local 160 if ((efState & kFmqNotEmpty) && fmq->read(data, dataLen)) { in ReaderThreadBlocking() 179 uint8_t data[dataLen]; in ReaderThreadBlocking2() local 184 bool ret = fmq->readBlocking(data, in ReaderThreadBlocking2() 214 uint8_t data[dataLen] = {0}; in TEST_F() local 233 ASSERT_TRUE(mQueue->write(data, dataLen)); in TEST_F() 250 uint8_t data[dataLen] = {0}; in TEST_F() local 263 bool ret = mQueue->writeBlocking(data, in TEST_F() [all …]
|
/system/core/libziparchive/ |
D | zip_writer_test.cc | 64 ZipEntry data; in TEST_F() local 65 ASSERT_EQ(0, FindEntry(handle, ZipString("file.txt"), &data)); in TEST_F() 66 EXPECT_EQ(kCompressStored, data.method); in TEST_F() 67 EXPECT_EQ(0u, data.has_data_descriptor); in TEST_F() 68 EXPECT_EQ(strlen(expected), data.compressed_length); in TEST_F() 69 ASSERT_EQ(strlen(expected), data.uncompressed_length); in TEST_F() 70 ASSERT_TRUE(AssertFileEntryContentsEq(expected, handle, &data)); in TEST_F() 96 ZipEntry data; in TEST_F() local 98 ASSERT_EQ(0, FindEntry(handle, ZipString("file.txt"), &data)); in TEST_F() 99 EXPECT_EQ(kCompressStored, data.method); in TEST_F() [all …]
|
/system/chre/platform/slpi/see/ |
D | see_helper.cc | 108 SeeDataArg *data; member 177 auto *data = static_cast<const SeeBufArg *>(*arg); in copyPayload() local 181 stream, static_cast<const pb_byte_t *>(data->buf), data->bufLen)) { in copyPayload() 244 SeeBufArg data = { in encodeSnsSuidReq() local 250 .data_type.arg = &data, in encodeSnsSuidReq() 344 UniquePtr<sns_client_request_msg> *msg, SeeBufArg *data) { in prepSnsClientReq() argument 347 CHRE_ASSERT(data); in prepSnsClientReq() 357 data->buf = payload, in prepSnsClientReq() 358 data->bufLen = payloadLen, in prepSnsClientReq() 367 req->request.payload.arg = data; in prepSnsClientReq() [all …]
|
/system/update_engine/payload_consumer/ |
D | extent_writer_unittest.cc | 74 EXPECT_TRUE(direct_writer.Write(bytes.data(), bytes.size())); in TEST_F() 85 bytes.data(), bytes.data() + bytes.size()); in TEST_F() 114 brillo::Blob data(kBlockSize * 3); in WriteAlignedExtents() local 115 test_utils::FillWithData(&data); in WriteAlignedExtents() 122 while (bytes_written < data.size()) { in WriteAlignedExtents() 123 size_t bytes_to_write = min(data.size() - bytes_written, chunk_size); in WriteAlignedExtents() 125 bytes_to_write = min(data.size() - bytes_written, first_chunk_size); in WriteAlignedExtents() 127 EXPECT_TRUE(direct_writer.Write(&data[bytes_written], bytes_to_write)); in WriteAlignedExtents() 132 EXPECT_EQ(static_cast<off_t>(data.size()), in WriteAlignedExtents() 140 data.begin() + kBlockSize, in WriteAlignedExtents() [all …]
|
/system/core/adb/ |
D | shell_service_protocol_test.cpp | 72 read_protocol_->buffer_end_ = read_protocol_->data() + size; in SetReadDataCapacity() 91 const void* data, size_t data_length) { in PacketEquals() argument 95 !memcmp(data, protocol->data(), data_length)); in PacketEquals() 103 char data[] = "abc 123 \0\r\n"; in TEST_F() local 105 memcpy(write_protocol_->data(), data, sizeof(data)); in TEST_F() 106 ASSERT_TRUE(write_protocol_->Write(id, sizeof(data))); in TEST_F() 109 ASSERT_TRUE(PacketEquals(read_protocol_, id, data, sizeof(data))); in TEST_F() 116 memcpy(write_protocol_->data(), "1234567890", 10); in TEST_F() 140 write_protocol_->data()[0] = 20; in TEST_F() 145 ASSERT_EQ(20, read_protocol_->data()[0]); in TEST_F() [all …]
|
/system/core/bootstat/ |
D | bootstat.rc | 7 on post-fs-data 8 mkdir /data/misc/bootstat 0700 system log 11 chown system log /data/misc/bootstat/absolute_boot_time 12 chown system log /data/misc/bootstat/boot_complete 13 chown system log /data/misc/bootstat/boot_complete_no_encryption 14 chown system log /data/misc/bootstat/boot_reason 15 chown system log /data/misc/bootstat/boottime.bootloader.1BLE 16 chown system log /data/misc/bootstat/boottime.bootloader.1BLL 17 chown system log /data/misc/bootstat/boottime.bootloader.2BLE 18 chown system log /data/misc/bootstat/boottime.bootloader.2BLL [all …]
|
/system/bt/bta/ag/ |
D | bta_ag_int.h | 135 tBTA_AG_RES_DATA data; member 312 const tBTA_AG_DATA& data); 314 const tBTA_AG_DATA& data); 323 extern void bta_ag_create_records(tBTA_AG_SCB* p_scb, const tBTA_AG_DATA& data); 327 extern void bta_ag_free_db(tBTA_AG_SCB* p_scb, const tBTA_AG_DATA& data); 335 extern void bta_ag_rfc_do_close(tBTA_AG_SCB* p_scb, const tBTA_AG_DATA& data); 336 extern void bta_ag_rfc_do_open(tBTA_AG_SCB* p_scb, const tBTA_AG_DATA& data); 343 tBTM_ESCO_CONN_REQ_EVT_DATA* data); 358 extern void bta_ag_register(tBTA_AG_SCB* p_scb, const tBTA_AG_DATA& data); 359 extern void bta_ag_deregister(tBTA_AG_SCB* p_scb, const tBTA_AG_DATA& data); [all …]
|
/system/tools/hidl/test/hidl_test/ |
D | hidl_test | 1 source /data/nativetest64/hidl_test_helper && 3 chmod a+x /data/nativetest/hidl_test_servers/hidl_test_servers && 4 chmod a+x /data/nativetest64/hidl_test_servers/hidl_test_servers && 5 chmod a+x /data/nativetest/hidl_test_client/hidl_test_client && 6 chmod a+x /data/nativetest64/hidl_test_client/hidl_test_client && 9 "/data/nativetest/hidl_test_servers/hidl_test_servers" \ 10 "/data/nativetest64/hidl_test_servers/hidl_test_servers" \ 11 "/data/nativetest/hidl_test_client/hidl_test_client" \ 12 "/data/nativetest64/hidl_test_client/hidl_test_client" \
|
/system/bt/osi/src/ |
D | list.cc | 9 void* data; member 51 bool list_contains(const list_t* list, const void* data) { in list_contains() argument 53 CHECK(data != NULL); in list_contains() 57 if (list_node(node) == data) return true; in list_contains() 72 return list->head->data; in list_front() 79 return list->tail->data; in list_back() 89 bool list_insert_after(list_t* list, list_node_t* prev_node, void* data) { in list_insert_after() argument 92 CHECK(data != NULL); in list_insert_after() 98 node->data = data; in list_insert_after() 105 bool list_prepend(list_t* list, void* data) { in list_prepend() argument [all …]
|
/system/core/libion/ |
D | ion.c | 84 struct ion_allocation_data data = { in ion_alloc() local 88 ret = ion_ioctl(fd, ION_IOC_ALLOC, &data); in ion_alloc() 91 *handle = data.handle; in ion_alloc() 97 struct ion_handle_data data = { in ion_free() local 100 return ion_ioctl(fd, ION_IOC_FREE, &data); in ion_free() 108 struct ion_fd_data data = { in ion_map() local 115 ret = ion_ioctl(fd, ION_IOC_MAP, &data); in ion_map() 117 if (data.fd < 0) { in ion_map() 121 tmp_ptr = mmap(NULL, length, prot, flags, data.fd, offset); in ion_map() 126 *map_fd = data.fd; in ion_map() [all …]
|
/system/extras/simpleperf/ |
D | cmd_report_sample_test.cpp | 53 std::string data; in TEST() local 54 ASSERT_TRUE(android::base::ReadFileToString(tmpfile2.path, &data)); in TEST() 55 ASSERT_NE(data.find("file:"), std::string::npos); in TEST() 66 std::string data; in TEST() local 67 ASSERT_TRUE(android::base::ReadFileToString(tmpfile2.path, &data)); in TEST() 68 ASSERT_EQ(data.find("unknown"), std::string::npos); in TEST() 78 std::string data; in TEST() local 79 ASSERT_TRUE(android::base::ReadFileToString(tmpfile2.path, &data)); in TEST() 80 ASSERT_NE(data.find("event_count:"), std::string::npos); in TEST() 90 std::string data; in TEST() local [all …]
|
/system/connectivity/wificond/net/ |
D | nl80211_attribute.cpp | 39 memcpy(data_.data() + NLA_HDRLEN, raw_buffer.data(), raw_buffer.size()); in BaseNL80211Attr() 45 nlattr* header = reinterpret_cast<nlattr*>(data_.data()); in InitHeaderAndResize() 51 const nlattr* header = reinterpret_cast<const nlattr*>(data_.data()); in GetAttributeId() 59 const nlattr* header = reinterpret_cast<const nlattr*>(data_.data()); in IsValid() 104 auto our_header = reinterpret_cast<nlattr*>(data_.data()); in Merge() 107 reinterpret_cast<const nlattr*>(other_attr.GetConstData().data()); in Merge() 133 const vector<uint8_t>& data) { in NL80211Attr() argument 134 data_ = data; in NL80211Attr() 138 const nlattr* header = reinterpret_cast<const nlattr*>(data_.data()); in GetValue() 140 data_.data() + NLA_HDRLEN, in GetValue() [all …]
|
/system/media/audio_utils/tests/ |
D | primitives_tests.cpp | 45 memset(container.data(), 0, container.size() * sizeof(container[0])); in zeroFill() 213 memcpy_to_float_from_i16(fary.data(), i16ary.data(), fary.size()); in TEST() 215 checkMonotone(fary.data(), fary.size()); in TEST() 217 memcpy_to_i16_from_float(i16ary.data(), fary.data(), i16ary.size()); in TEST() 219 checkMonotone(i16ary.data(), i16ary.size()); in TEST() 224 memcpy_to_p24_from_i16(pary.data(), i16ary.data(), size /* note pary elem is 3 bytes */); in TEST() 236 memcpy_to_float_from_p24(fary.data(), pary.data(), fary.size()); in TEST() 238 checkMonotone(fary.data(), fary.size()); in TEST() 240 memcpy_to_p24_from_float(pary.data(), fary.data(), size /* note pary elem is 3 bytes */); in TEST() 242 checkMonotonep24(pary.data(), pary.size() /* this is * 3*/); in TEST() [all …]
|
/system/chre/apps/chqts/src/general_test/ |
D | basic_sensor_tests.cc | 46 auto data = static_cast<const chreSensorThreeAxisData*>(eventData); in sanityCheckThreeAxisData() local 47 for (size_t i = 0; i < data->header.readingCount; i++) { in sanityCheckThreeAxisData() 48 checkTimestampDelta(data->readings[i].timestampDelta, i); in sanityCheckThreeAxisData() 50 checkFloat(data->readings[i].values[j], extremeLow, extremeHigh); in sanityCheckThreeAxisData() 57 auto data = static_cast<const chreSensorFloatData*>(eventData); in sanityCheckFloatData() local 58 for (size_t i = 0; i < data->header.readingCount; i++) { in sanityCheckFloatData() 59 checkTimestampDelta(data->readings[i].timestampDelta, i); in sanityCheckFloatData() 60 checkFloat(data->readings[i].value, extremeLow, extremeHigh); in sanityCheckFloatData() 99 auto data = static_cast<const chreSensorByteData*>(eventData); in confirmDataIsSane() local 100 for (size_t i = 0; i < data->header.readingCount; i++) { in confirmDataIsSane() [all …]
|