/system/bt/osi/test/ |
D | atomic_test.cpp | 14 atomic_s32_t *data; member 21 atomic_inc_prefix_s32(&at->data[i]); in atomic_thread() 30 atomic_inc_prefix_s32(&at->data[i]); in atomic_thread_inc_dec() 32 atomic_dec_prefix_s32(&at->data[i]); in atomic_thread_inc_dec() 38 atomic_s32_t data; in TEST() local 40 atomic_store_s32(&data, -1); in TEST() 41 EXPECT_EQ(-1, atomic_load_s32(&data)); in TEST() 43 atomic_store_s32(&data, 0); in TEST() 44 EXPECT_EQ(0, atomic_load_s32(&data)); in TEST() 46 atomic_store_s32(&data, 1); in TEST() [all …]
|
D | hash_map_test.cpp | 36 void key_free_fn00(UNUSED_ATTR void *data) { in key_free_fn00() argument 41 void data_free_fn00(UNUSED_ATTR void *data) { in data_free_fn00() argument 57 const char *data; in TEST_F() member 58 } data[] = { in TEST_F() local 65 size_t data_sz = sizeof(data)/sizeof(data[0]); in TEST_F() 69 hash_map_set(hash_map, data[i].key, (void*)data[i].data); in TEST_F() 76 char *val = (char *)hash_map_get(hash_map, data[i].key); in TEST_F() 77 EXPECT_STREQ(data[i].data, val); in TEST_F() 90 const char *data; in TEST_F() member 91 } data[] = { in TEST_F() local [all …]
|
/system/core/fingerprintd/ |
D | IFingerprintDaemonCallback.cpp | 34 Parcel data, reply; in onEnrollResult() local 35 data.writeInterfaceToken(IFingerprintDaemonCallback::getInterfaceDescriptor()); in onEnrollResult() 36 data.writeInt64(devId); in onEnrollResult() 37 data.writeInt32(fpId); in onEnrollResult() 38 data.writeInt32(gpId); in onEnrollResult() 39 data.writeInt32(rem); in onEnrollResult() 40 return remote()->transact(ON_ENROLL_RESULT, data, &reply, IBinder::FLAG_ONEWAY); in onEnrollResult() 44 Parcel data, reply; in onAcquired() local 45 data.writeInterfaceToken(IFingerprintDaemonCallback::getInterfaceDescriptor()); in onAcquired() 46 data.writeInt64(devId); in onAcquired() [all …]
|
D | IFingerprintDaemon.cpp | 47 status_t BnFingerprintDaemon::onTransact(uint32_t code, const Parcel& data, Parcel* reply, in onTransact() argument 51 CHECK_INTERFACE(IFingerprintDaemon, data, reply); in onTransact() 55 const uint64_t sessionId = data.readInt64(); in onTransact() 56 const uint32_t groupId = data.readInt32(); in onTransact() 63 CHECK_INTERFACE(IFingerprintDaemon, data, reply); in onTransact() 73 CHECK_INTERFACE(IFingerprintDaemon, data, reply); in onTransact() 77 const ssize_t tokenSize = data.readInt32(); in onTransact() 78 const uint8_t* token = static_cast<const uint8_t *>(data.readInplace(tokenSize)); in onTransact() 79 const int32_t groupId = data.readInt32(); in onTransact() 80 const int32_t timeout = data.readInt32(); in onTransact() [all …]
|
/system/core/adf/libadf/ |
D | adf.c | 108 int adf_get_device_data(struct adf_device *dev, struct adf_device_data *data) in adf_get_device_data() argument 113 memset(data, 0, sizeof(*data)); in adf_get_device_data() 115 err = ioctl(dev->fd, ADF_GET_DEVICE_DATA, data); in adf_get_device_data() 119 if (data->n_attachments) { in adf_get_device_data() 120 data->attachments = malloc(sizeof(data->attachments[0]) * in adf_get_device_data() 121 data->n_attachments); in adf_get_device_data() 122 if (!data->attachments) in adf_get_device_data() 126 if (data->n_allowed_attachments) { in adf_get_device_data() 127 data->allowed_attachments = in adf_get_device_data() 128 malloc(sizeof(data->allowed_attachments[0]) * 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/security/keystore/ |
D | IKeystoreService.cpp | 36 KeystoreArg::KeystoreArg(const void* data, size_t len) in KeystoreArg() argument 37 : mData(data), mSize(len) { in KeystoreArg() 43 const void *KeystoreArg::data() const { in data() function in android::KeystoreArg 52 data(NULL), dataLength(0) { in OperationResult() 68 data.reset(reinterpret_cast<uint8_t*>(malloc(length))); in readFromParcel() 69 if (data.get()) { in readFromParcel() 70 memcpy(data.get(), buf, length); in readFromParcel() 88 if (dataLength && data) { in writeToParcel() 91 memcpy(buf, data.get(), dataLength); in writeToParcel() 142 keymaster_free_param_values(params.data(), params.size()); in ~KeymasterArguments() [all …]
|
/system/core/libpixelflinger/codeflinger/tinyutils/ |
D | SharedBuffer.h | 50 static inline const SharedBuffer* sharedBuffer(const void* data); 53 inline const void* data() const; 56 inline void* data(); 62 static inline SharedBuffer* bufferFromData(void* data); 65 static inline const SharedBuffer* bufferFromData(const void* data); 68 static inline size_t sizeFromData(const void* data); 108 const SharedBuffer* SharedBuffer::sharedBuffer(const void* data) { in sharedBuffer() argument 109 return data ? reinterpret_cast<const SharedBuffer *>(data)-1 : 0; in sharedBuffer() 112 const void* SharedBuffer::data() const { in data() function 116 void* SharedBuffer::data() { in data() function [all …]
|
/system/core/include/utils/ |
D | SharedBuffer.h | 49 inline const void* data() const; 52 inline void* data(); 58 static inline SharedBuffer* bufferFromData(void* data); 61 static inline const SharedBuffer* bufferFromData(const void* data); 64 static inline size_t sizeFromData(const void* data); 105 const void* SharedBuffer::data() const { in data() function 109 void* SharedBuffer::data() { in data() function 117 SharedBuffer* SharedBuffer::bufferFromData(void* data) { in bufferFromData() argument 118 return data ? static_cast<SharedBuffer *>(data)-1 : 0; in bufferFromData() 121 const SharedBuffer* SharedBuffer::bufferFromData(const void* data) { in bufferFromData() argument [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/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/libion/ |
D | ion.c | 65 struct ion_allocation_data data = { in ion_alloc() local 75 ret = ion_ioctl(fd, ION_IOC_ALLOC, &data); in ion_alloc() 78 *handle = data.handle; in ion_alloc() 84 struct ion_handle_data data = { in ion_free() local 87 return ion_ioctl(fd, ION_IOC_FREE, &data); in ion_free() 95 struct ion_fd_data data = { in ion_map() local 104 ret = ion_ioctl(fd, ION_IOC_MAP, &data); in ion_map() 107 if (data.fd < 0) { in ion_map() 111 tmp_ptr = mmap(NULL, length, prot, flags, data.fd, offset); in ion_map() 116 *map_fd = data.fd; in ion_map() [all …]
|
/system/core/libbacktrace/ |
D | backtrace_testlib.c | 20 void (*callback_func)(void*), void* data) { in test_level_four() argument 22 callback_func(data); in test_level_four() 31 void (*callback_func)(void*), void* data) { in test_level_three() argument 32 return test_level_four(one+3, two+6, three+9, four+12, callback_func, data) + 3; in test_level_three() 36 void (*callback_func)(void*), void* data) { in test_level_two() argument 37 return test_level_three(one+2, two+4, three+6, four+8, callback_func, data) + 2; in test_level_two() 41 void (*callback_func)(void*), void* data) { in test_level_one() argument 42 return test_level_two(one+1, two+2, three+3, four+4, callback_func, data) + 1; in test_level_one() 45 int test_recursive_call(int level, void (*callback_func)(void*), void* data) { in test_recursive_call() argument 47 return test_recursive_call(level - 1, callback_func, data) + level; in test_recursive_call() [all …]
|
/system/bt/btif/src/ |
D | btif_gatt_multi_adv_util.c | 275 memset(&p_multi_adv_data_cb->inst_cb[cbindex].data, 0, sizeof(tBTA_BLE_ADV_DATA)); in btif_gattc_copy_datacb() 282 p_multi_adv_data_cb->inst_cb[cbindex].data.flag = ADV_FLAGS_GENERAL; in btif_gattc_copy_datacb() 284 p_multi_adv_data_cb->inst_cb[cbindex].data.flag = ADV_FLAGS_LIMITED; in btif_gattc_copy_datacb() 286 p_multi_adv_data_cb->inst_cb[cbindex].data.flag &= in btif_gattc_copy_datacb() 288 if (p_multi_adv_data_cb->inst_cb[cbindex].data.flag == 0) in btif_gattc_copy_datacb() 302 p_multi_adv_data_cb->inst_cb[cbindex].data.int_range.low = in btif_gattc_copy_datacb() 304 p_multi_adv_data_cb->inst_cb[cbindex].data.int_range.hi = in btif_gattc_copy_datacb() 315 p_multi_adv_data_cb->inst_cb[cbindex].data.int_range.low = in btif_gattc_copy_datacb() 317 p_multi_adv_data_cb->inst_cb[cbindex].data.int_range.hi = in btif_gattc_copy_datacb() 323 p_multi_adv_data_cb->inst_cb[cbindex].data.tx_power = in btif_gattc_copy_datacb() [all …]
|
/system/bt/osi/src/ |
D | list.c | 9 void *data; member 51 bool list_contains(const list_t *list, const void *data) { in list_contains() argument 53 assert(data != NULL); in list_contains() 56 if (list_node(node) == data) in list_contains() 72 return list->head->data; in list_front() 79 return list->tail->data; in list_back() 82 bool list_insert_after(list_t *list, list_node_t *prev_node, void *data) { in list_insert_after() argument 85 assert(data != NULL); in list_insert_after() 92 node->data = data; in list_insert_after() 100 bool list_prepend(list_t *list, void *data) { in list_prepend() argument [all …]
|
/system/core/adf/libadf/tests/ |
D | adf_test.cpp | 56 adf_overlay_engine_data data; in get8888Format() local 57 int err = adf_get_overlay_engine_data(eng, &data); in get8888Format() 61 for (size_t i = 0; i < data.n_supported_formats; i++) { in get8888Format() 63 if (data.supported_formats[i] == fmt8888[j]) { in get8888Format() 64 fmt = data.supported_formats[i]; in get8888Format() 66 adf_free_overlay_engine_data(&data); in get8888Format() 72 adf_free_overlay_engine_data(&data); in get8888Format() 96 void getInterfaceData(adf_interface_data &data) { in getInterfaceData() argument 97 int err = adf_get_interface_data(intf, &data); in getInterfaceData() 103 adf_interface_data data; in getCurrentMode() local [all …]
|
/system/core/libsync/ |
D | sync.c | 40 struct sync_merge_data data; in sync_merge() local 43 data.fd2 = fd2; in sync_merge() 44 strlcpy(data.name, name, sizeof(data.name)); in sync_merge() 46 err = ioctl(fd1, SYNC_IOC_MERGE, &data); in sync_merge() 50 return data.fence; in sync_merge() 106 struct sw_sync_create_fence_data data; in sw_sync_fence_create() local 109 data.value = value; in sw_sync_fence_create() 110 strlcpy(data.name, name, sizeof(data.name)); in sw_sync_fence_create() 112 err = ioctl(fd, SW_SYNC_IOC_CREATE_FENCE, &data); in sw_sync_fence_create() 116 return data.fence; in sw_sync_fence_create()
|
/system/core/libziparchive/ |
D | zip_archive_test.cc | 120 ZipEntry data; in TEST() local 124 ASSERT_EQ(0, Next(iteration_cookie, &data, &name)); in TEST() 128 ASSERT_EQ(0, Next(iteration_cookie, &data, &name)); in TEST() 132 ASSERT_EQ(0, Next(iteration_cookie, &data, &name)); in TEST() 136 ASSERT_EQ(0, Next(iteration_cookie, &data, &name)); in TEST() 140 ASSERT_EQ(0, Next(iteration_cookie, &data, &name)); in TEST() 144 ASSERT_EQ(-1, Next(iteration_cookie, &data, &name)); in TEST() 157 ZipEntry data; in TEST() local 161 ASSERT_EQ(0, Next(iteration_cookie, &data, &name)); in TEST() 165 ASSERT_EQ(0, Next(iteration_cookie, &data, &name)); in TEST() [all …]
|
/system/extras/tests/workloads/ |
D | atrace-uncompress.py | 18 data = ''.join(parts[1]) 21 if data.startswith('\r\n'): 22 data = data.replace('\r\n', '\n') 25 data = data[1:] 27 if not data: 31 out = zlib.decompress(data)
|
/system/core/toolbox/upstream-netbsd/usr.bin/grep/ |
D | queue.c | 51 struct str data; member 65 item->data.dat = grep_malloc(sizeof(char) * x->len); in enqueue() 66 item->data.len = x->len; in enqueue() 67 item->data.line_no = x->line_no; in enqueue() 68 item->data.off = x->off; in enqueue() 69 memcpy(item->data.dat, x->dat, x->len); in enqueue() 70 item->data.file = x->file; in enqueue() 76 free(item->data.dat); in enqueue() 101 printline(&item->data, '-', NULL, 0); in printqueue() 102 free(item->data.dat); in printqueue() [all …]
|
/system/core/libutils/ |
D | JenkinsHash.cpp | 37 uint32_t data = bytes[i] | (bytes[i+1] << 8) | (bytes[i+2] << 16) | (bytes[i+3] << 24); in JenkinsHashMixBytes() local 38 hash = JenkinsHashMix(hash, data); in JenkinsHashMixBytes() 41 uint32_t data = bytes[i]; in JenkinsHashMixBytes() local 42 data |= ((size & 3) > 1) ? (bytes[i+1] << 8) : 0; in JenkinsHashMixBytes() 43 data |= ((size & 3) > 2) ? (bytes[i+2] << 16) : 0; in JenkinsHashMixBytes() 44 hash = JenkinsHashMix(hash, data); in JenkinsHashMixBytes() 53 uint32_t data = shorts[i] | (shorts[i+1] << 16); in JenkinsHashMixShorts() local 54 hash = JenkinsHashMix(hash, data); in JenkinsHashMixShorts() 57 uint32_t data = shorts[i]; in JenkinsHashMixShorts() local 58 hash = JenkinsHashMix(hash, data); in JenkinsHashMixShorts()
|
/system/extras/tests/net_test/ |
D | iproute.py | 216 def _NlAttr(self, nla_type, data): argument 217 datalen = len(data) 221 return NLAttr((nla_len, nla_type)).Pack() + data + padding 297 data = struct.unpack("=I", nla_data)[0] 299 data = struct.unpack("=i", nla_data)[0] 301 data = ord(nla_data) 305 data = socket.inet_ntop(family, nla_data) 307 data = nla_data.strip("\x00") 309 data = self._ParseAttributes(-RTA_METRICS, family, nla_data) 311 data = RTACacheinfo(nla_data) [all …]
|
/system/extras/tests/sdcard/ |
D | plot_sdcard.py | 54 self.data = [] 61 return str(zip(self.time, self.data)) 65 self.data.append(value) 68 factor = len(self.data) / length 75 for t, d in izip(self.time, self.data): 83 self.data = new_data 134 data = [] # array of dataset 154 data.append(dataset) 175 data.append(dataset) 180 return (metadata, data) [all …]
|
/system/keymaster/ |
D | hmac.cpp | 50 bool HmacSha256::Sign(const Buffer& data, uint8_t* out_digest, size_t digest_len) const { in Sign() argument 51 return Sign(data.peek_read(), data.available_read(), out_digest, digest_len); in Sign() 54 bool HmacSha256::Sign(const uint8_t* data, size_t data_len, uint8_t* out_digest, in Sign() argument 63 if (nullptr == ::HMAC(EVP_sha256(), key_.get(), key_len_, data, data_len, digest, nullptr)) { in Sign() 72 bool HmacSha256::Verify(const Buffer& data, const Buffer& digest) const { in Verify() argument 73 return Verify(data.peek_read(), data.available_read(), digest.peek_read(), in Verify() 77 bool HmacSha256::Verify(const uint8_t* data, size_t data_len, const uint8_t* digest, in Verify() argument 83 if (!Sign(data, data_len, computed_digest, sizeof(computed_digest))) in Verify()
|