/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 | MemoryFileTest.cpp | 52 ASSERT_TRUE(memory_.Read(0, buffer.data(), 10)); in TEST_F() 54 ASSERT_STREQ("0123456789", buffer.data()); in TEST_F() 62 ASSERT_TRUE(memory_.Read(0, buffer.data(), 10)); in TEST_F() 64 ASSERT_STREQ("abcdefghij", buffer.data()); in TEST_F() 78 ASSERT_TRUE(memory_.Read(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 …]
|
D | MemoryLocalTest.cpp | 30 memset(src.data(), 0x4c, 1024); in TEST() 35 ASSERT_TRUE(local.Read(reinterpret_cast<uint64_t>(src.data()), dst.data(), 1024)); in TEST() 36 ASSERT_EQ(0, memcmp(src.data(), dst.data(), 1024)); in TEST() 41 memset(src.data(), 0x23, 512); in TEST() 42 ASSERT_TRUE(local.Read(reinterpret_cast<uint64_t>(src.data()), dst.data(), 1024)); in TEST() 43 ASSERT_EQ(0, memcmp(src.data(), dst.data(), 1024)); in TEST() 56 ASSERT_FALSE(local.Read(0, dst.data(), 1)); in TEST() 57 ASSERT_FALSE(local.Read(0, dst.data(), 100)); in TEST() 67 ASSERT_FALSE(local.Read(reinterpret_cast<uint64_t>(&value), dst.data(), SIZE_MAX)); in TEST()
|
/system/vold/ |
D | EncryptInplace.cpp | 81 static void update_progress(struct encryptGroupsData* data, int is_used) in update_progress() argument 83 data->blocks_already_done++; in update_progress() 86 data->used_blocks_already_done++; in update_progress() 88 if (data->tot_used_blocks) { in update_progress() 89 data->new_pct = data->used_blocks_already_done / data->one_pct; in update_progress() 91 data->new_pct = data->blocks_already_done / data->one_pct; 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() 101 if (data->cur_pct >= 5) { in update_progress() [all …]
|
/system/security/keystore/ |
D | IKeystoreService.cpp | 42 KeystoreArg::KeystoreArg(const void* data, size_t len) : mData(data), mSize(len) {} in KeystoreArg() argument 46 const void* KeystoreArg::data() const { in data() function in android::KeystoreArg 54 OperationResult::OperationResult() : resultCode(), token(), handle(0), inputConsumed(0), data() {} in OperationResult() 64 data = readKeymasterBlob(in); in readFromParcel() 74 writeKeymasterBlob(data, out); in writeToParcel() 99 static void readByteArray(const Parcel& in, const uint8_t** data, size_t* length) { in readByteArray() argument 102 *data = reinterpret_cast<const uint8_t*>(in.readInplace(slength)); in readByteArray() 103 if (*data) { in readByteArray() 109 *data = NULL; in readByteArray() 120 Parcel data, reply; in getState() local [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.c | 116 char *data; member 126 char *data; in _lex() local 128 data = cs->data; in _lex() 138 c = *data++; in _lex() 149 switch(*data) { in _lex() 151 cs->data = data; in _lex() 154 cs->data = data + 1; in _lex() 157 data++; in _lex() 163 cs->data = data; in _lex() 167 cs->data = data; in _lex() [all …]
|
D | load_file.c | 24 char *data; in load_file() local 28 data = 0; in load_file() 37 data = (char*) malloc(sz + 1); in load_file() 38 if(data == 0) goto oops; in load_file() 40 if(read(fd, data, sz) != sz) goto oops; in load_file() 42 data[sz] = 0; in load_file() 45 return data; in load_file() 49 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/extras/perfprofd/quipper/ |
D | perf_reader.h | 43 std::vector<CStringWithLength> data; member 48 std::vector<uint32_t> data; member 53 std::vector<uint64_t> data; member 91 bool ReadFromVector(const std::vector<char>& data); 105 bool WriteToVector(std::vector<char>* data); 177 bool ReadHeader(const ConstBufferWithSize& data); 179 bool ReadAttrs(const ConstBufferWithSize& data); 180 bool ReadAttr(const ConstBufferWithSize& data, size_t* offset); 181 bool ReadEventAttr(const ConstBufferWithSize& data, size_t* offset, 183 bool ReadUniqueIDs(const ConstBufferWithSize& data, size_t num_ids, [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/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/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/core/libbacktrace/ |
D | backtrace_testlib.cpp | 33 void* data) { in test_level_four() argument 35 callback_func(data); in test_level_four() 44 void* data) { in test_level_three() argument 45 return test_level_four(one + 3, two + 6, three + 9, four + 12, callback_func, data) + 3; in test_level_three() 48 int test_level_two(int one, int two, int three, int four, void (*callback_func)(void*), void* data)… in test_level_two() argument 49 return test_level_three(one + 2, two + 4, three + 6, four + 8, callback_func, data) + 2; in test_level_two() 52 int test_level_one(int one, int two, int three, int four, void (*callback_func)(void*), void* data)… in test_level_one() argument 53 return test_level_two(one + 1, two + 2, three + 3, four + 4, callback_func, data) + 1; in test_level_one() 56 int test_recursive_call(int level, void (*callback_func)(void*), void* data) { in test_recursive_call() argument 58 return test_recursive_call(level - 1, callback_func, data) + level; in test_recursive_call() [all …]
|
/system/core/libion/ |
D | ion.c | 66 struct ion_allocation_data data = { in ion_alloc() local 76 ret = ion_ioctl(fd, ION_IOC_ALLOC, &data); in ion_alloc() 79 *handle = data.handle; in ion_alloc() 85 struct ion_handle_data data = { in ion_free() local 88 return ion_ioctl(fd, ION_IOC_FREE, &data); in ion_free() 96 struct ion_fd_data data = { in ion_map() local 105 ret = ion_ioctl(fd, ION_IOC_MAP, &data); in ion_map() 108 if (data.fd < 0) { in ion_map() 112 tmp_ptr = mmap(NULL, length, prot, flags, data.fd, offset); in ion_map() 117 *map_fd = data.fd; in ion_map() [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 | 3 on post-fs-data 4 mkdir /data/misc/bootstat 0700 system log 7 chown system log /data/misc/bootstat/absolute_boot_time 8 chown system log /data/misc/bootstat/boot_complete 9 chown system log /data/misc/bootstat/boot_complete_no_encryption 10 chown system log /data/misc/bootstat/boot_reason 11 chown system log /data/misc/bootstat/boottime.bootloader.1BLE 12 chown system log /data/misc/bootstat/boottime.bootloader.1BLL 13 chown system log /data/misc/bootstat/boottime.bootloader.2BLE 14 chown system log /data/misc/bootstat/boottime.bootloader.2BLL [all …]
|
/system/update_engine/payload_consumer/ |
D | extent_writer_unittest.cc | 78 EXPECT_TRUE(direct_writer.Write(bytes.data(), bytes.size())); in TEST_F() 89 bytes.data(), bytes.data() + bytes.size()); in TEST_F() 132 brillo::Blob data(kBlockSize * 3); in WriteAlignedExtents() local 133 test_utils::FillWithData(&data); in WriteAlignedExtents() 139 while (bytes_written < data.size()) { in WriteAlignedExtents() 140 size_t bytes_to_write = min(data.size() - bytes_written, chunk_size); in WriteAlignedExtents() 142 bytes_to_write = min(data.size() - bytes_written, first_chunk_size); in WriteAlignedExtents() 144 EXPECT_TRUE(direct_writer.Write(&data[bytes_written], bytes_to_write)); in WriteAlignedExtents() 149 EXPECT_EQ(static_cast<off_t>(data.size()), in WriteAlignedExtents() 157 data.begin() + kBlockSize, in WriteAlignedExtents() [all …]
|
/system/connectivity/wificond/net/ |
D | nl80211_attribute.cpp | 37 nlattr* header = reinterpret_cast<nlattr*>(data_.data()); in InitHeaderAndResize() 43 const nlattr* header = reinterpret_cast<const nlattr*>(data_.data()); in GetAttributeId() 51 const nlattr* header = reinterpret_cast<const nlattr*>(data_.data()); in IsValid() 91 memcpy(data_.data() + NLA_HDRLEN, raw_buffer.data(), raw_buffer.size()); in NL80211Attr() 95 const vector<uint8_t>& data) { in NL80211Attr() argument 96 data_ = data; in NL80211Attr() 100 const nlattr* header = reinterpret_cast<const nlattr*>(data_.data()); in GetValue() 102 data_.data() + NLA_HDRLEN, in GetValue() 103 data_.data() + header->nla_len); in GetValue() 113 char* storage = reinterpret_cast<char*>(data_.data() + NLA_HDRLEN); in NL80211Attr() [all …]
|
D | nl80211_packet.cpp | 26 NL80211Packet::NL80211Packet(const vector<uint8_t>& data) in NL80211Packet() argument 27 : data_(data) { in NL80211Packet() 28 data_ = data; in NL80211Packet() 44 nlmsghdr* nl_header = reinterpret_cast<nlmsghdr*>(data_.data()); in NL80211Packet() 53 reinterpret_cast<genlmsghdr*>(data_.data() + NLMSG_HDRLEN); in NL80211Packet() 66 const nlmsghdr* nl_header = reinterpret_cast<const nlmsghdr*>(data_.data()); in IsValid() 107 data_.data() + NLMSG_HDRLEN); in GetCommand() 112 const nlmsghdr* nl_header = reinterpret_cast<const nlmsghdr*>(data_.data()); in GetFlags() 117 const nlmsghdr* nl_header = reinterpret_cast<const nlmsghdr*>(data_.data()); in GetMessageType() 122 const nlmsghdr* nl_header = reinterpret_cast<const nlmsghdr*>(data_.data()); in GetMessageSequence() [all …]
|
/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/tools/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/nfc/src/adaptation/ |
D | android_logmsg.cpp | 34 static void ToHex(const uint8_t* data, uint16_t len, char* hexString, 36 static void dumpbin(const char* data, int size, uint32_t trace_layer, 38 static inline void word2hex(const char* data, char** hex); 39 static inline void byte2char(const char* data, char** str); 40 static inline void byte2hex(const char* data, char** str); 62 void ToHex(const uint8_t* data, uint16_t len, char* hexString, in ToHex() argument 66 hexString[j++] = sTable[(*data >> 4) & 0xf]; in ToHex() 67 hexString[j++] = sTable[*data & 0xf]; in ToHex() 68 data++; in ToHex() 91 void dumpbin(const char* data, int size, uint32_t trace_layer, in dumpbin() argument [all …]
|
/system/nfc/halimpl/bcm2079x/adaptation/ |
D | android_logmsg.cpp | 33 static void ToHex(const uint8_t* data, uint16_t len, char* hexString, 35 static void dumpbin(const char* data, int size, uint32_t trace_layer, 37 static inline void word2hex(const char* data, char** hex); 38 static inline void byte2char(const char* data, char** str); 39 static inline void byte2hex(const char* data, char** str); 61 void ToHex(const uint8_t* data, uint16_t len, char* hexString, in ToHex() argument 65 hexString[j++] = sTable[(*data >> 4) & 0xf]; in ToHex() 66 hexString[j++] = sTable[*data & 0xf]; in ToHex() 67 data++; in ToHex() 90 void dumpbin(const char* data, int size, uint32_t trace_layer, in dumpbin() argument [all …]
|