/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 | 32 KeystoreArg::KeystoreArg(const void* data, size_t len) in KeystoreArg() argument 33 : mData(data), mSize(len) { in KeystoreArg() 39 const void *KeystoreArg::data() const { in data() function in android::KeystoreArg 58 Parcel data, reply; in test() local 59 data.writeInterfaceToken(IKeystoreService::getInterfaceDescriptor()); in test() 60 status_t status = remote()->transact(BnKeystoreService::TEST, data, &reply); in test() 76 Parcel data, reply; in get() local 77 data.writeInterfaceToken(IKeystoreService::getInterfaceDescriptor()); in get() 78 data.writeString16(name); in get() 79 status_t status = remote()->transact(BnKeystoreService::GET, data, &reply); in get() [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/core/libcorkscrew/ |
D | ptrace.c | 92 map_info_data_t* data = (map_info_data_t*)calloc(1, sizeof(map_info_data_t)); in load_ptrace_map_info_data() local 93 if (data) { in load_ptrace_map_info_data() 94 mi->data = data; in load_ptrace_map_info_data() 96 data->symbol_table = load_symbol_table(mi->name); in load_ptrace_map_info_data() 99 load_ptrace_map_info_data_arch(pid, mi, data); in load_ptrace_map_info_data() 119 map_info_data_t* data = (map_info_data_t*)mi->data; in free_ptrace_map_info_data() local 120 if (data) { in free_ptrace_map_info_data() 121 if (data->symbol_table) { in free_ptrace_map_info_data() 122 free_symbol_table(data->symbol_table); in free_ptrace_map_info_data() 125 free_ptrace_map_info_data_arch(mi, data); in free_ptrace_map_info_data() [all …]
|
D | map_info.c | 58 mi->data = NULL; in parse_vmmap_line() 123 mi->data = NULL; in parse_maps_line() 211 static void dec_ref(map_info_t* milist, my_map_info_data_t* data) { in dec_ref() argument 212 if (!--data->refs) { in dec_ref() 214 free(data); in dec_ref() 224 my_map_info_data_t* data = (my_map_info_data_t*)g_my_map_info_list->data; in acquire_my_map_info_list() local 225 int64_t age = time - data->timestamp; in acquire_my_map_info_list() 228 dec_ref(g_my_map_info_list, data); in acquire_my_map_info_list() 236 my_map_info_data_t* data = (my_map_info_data_t*)malloc(sizeof(my_map_info_data_t)); in acquire_my_map_info_list() local 240 g_my_map_info_list->data = data; in acquire_my_map_info_list() [all …]
|
/system/core/toolbox/ |
D | schedtop.c | 29 struct thread_info *data; member 58 new_table = realloc(table->data, size * sizeof(*table->data)); in grow_table() 63 table->data = new_table; in grow_table() 71 return table->data + table->active; in get_item() 176 int epid = last_threads.data[i].pid; in print_threads() 177 int tid = last_threads.data[i].tid; in print_threads() 181 if (tid == threads.data[j].tid) in print_threads() 185 … else if (!(flags & FLAG_HIDE_IDLE) || threads.data[j].run_count - last_threads.data[i].run_count) in print_threads() 187 NS_TO_S_D(threads.data[j].exec_time - last_threads.data[i].exec_time), in print_threads() 188 NS_TO_S_D(threads.data[j].delay_time - last_threads.data[i].delay_time), in print_threads() [all …]
|
/system/core/libsync/ |
D | sync.c | 39 struct sync_merge_data data; in sync_merge() local 42 data.fd2 = fd2; in sync_merge() 43 strlcpy(data.name, name, sizeof(data.name)); in sync_merge() 45 err = ioctl(fd1, SYNC_IOC_MERGE, &data); in sync_merge() 49 return data.fence; in sync_merge() 105 struct sw_sync_create_fence_data data; in sw_sync_fence_create() local 108 data.value = value; in sw_sync_fence_create() 109 strlcpy(data.name, name, sizeof(data.name)); in sw_sync_fence_create() 111 err = ioctl(fd, SW_SYNC_IOC_CREATE_FENCE, &data); in sw_sync_fence_create() 115 return data.fence; in sw_sync_fence_create()
|
/system/core/libion/ |
D | ion.c | 61 struct ion_allocation_data data = { in ion_alloc() local 68 ret = ion_ioctl(fd, ION_IOC_ALLOC, &data); in ion_alloc() 71 *handle = data.handle; in ion_alloc() 77 struct ion_handle_data data = { in ion_free() local 80 return ion_ioctl(fd, ION_IOC_FREE, &data); in ion_free() 86 struct ion_fd_data data = { in ion_map() local 90 int ret = ion_ioctl(fd, ION_IOC_MAP, &data); in ion_map() 93 *map_fd = data.fd; in ion_map() 109 struct ion_fd_data data = { in ion_share() local 113 int ret = ion_ioctl(fd, ION_IOC_SHARE, &data); in ion_share() [all …]
|
/system/core/toolbox/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/core/fastboot/ |
D | fastboot.c | 94 void *data; member 174 char *data; in load_fd() local 178 data = 0; in load_fd() 185 data = (char*) malloc(sz); in load_fd() 186 if(data == 0) goto oops; in load_fd() 188 if(read(fd, data, sz) != sz) goto oops; in load_fd() 192 return data; in load_fd() 197 if(data != 0) free(data); in load_fd() 388 void *data; in unzip_file() local 401 data = malloc(datasz); in unzip_file() [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/security/keystore-engine/ |
D | keyhandle.cpp | 62 void *ex_data_dup(void *data) { in ex_data_dup() argument 63 char* keyhandle = reinterpret_cast<char*>(data); in ex_data_dup() 67 void ex_data_free(void *data) { in ex_data_free() argument 68 char* keyhandle = reinterpret_cast<char*>(data); in ex_data_free() 72 void ex_data_clear_free(void *data) { in ex_data_clear_free() argument 73 char* keyhandle = reinterpret_cast<char*>(data); in ex_data_clear_free() 74 memset(data, '\0', strlen(keyhandle)); in ex_data_clear_free()
|
/system/core/adb/ |
D | file_sync_service.c | 136 msg.data.id = ID_FAIL; in fail_message() 137 msg.data.size = htoll(len); in fail_message() 138 if(writex(s, &msg.data, sizeof(msg.data)) || in fail_message() 174 if(readx(s, &msg.data, sizeof(msg.data))) in handle_send_file() 177 if(msg.data.id != ID_DATA) { in handle_send_file() 178 if(msg.data.id == ID_DONE) { in handle_send_file() 179 timestamp = ltohl(msg.data.size); in handle_send_file() 185 len = ltohl(msg.data.size); in handle_send_file() 233 if(readx(s, &msg.data, sizeof(msg.data))) in handle_send_link() 236 if(msg.data.id != ID_DATA) { in handle_send_link() [all …]
|
D | adb_auth.h | 36 int adb_auth_get_userkey(unsigned char *data, size_t len); 40 static inline void adb_auth_confirm_key(unsigned char *data, size_t len, atransport *t) { } in adb_auth_confirm_key() argument 46 static inline int adb_auth_get_userkey(unsigned char *data, size_t len) { return 0; } in adb_auth_get_userkey() argument 50 void adb_auth_confirm_key(unsigned char *data, size_t len, atransport *t);
|
/system/core/rootdir/etc/ |
D | init.testmenu | 6 n1=`cat /data/phoneentry1 2>/dev/null` 7 n2=`cat /data/phoneentry2 2>/dev/null` 8 n3=`cat /data/phoneentry3 2>/dev/null` 134 "4" ) echo -n "Number: "; read n1; echo $n1 >/data/phoneentry1;; 135 "5" ) echo -n "Number: "; read n2; echo $n2 >/data/phoneentry2;; 136 "6" ) echo -n "Number: "; read n3; echo $n3 >/data/phoneentry3;; 161 "1" ) cat /dev/omap_csmi_ffs >/data/ffsdata;; 162 "2" ) cat /data/ffsdata >/dev/omap_csmi_ffs;; 225 "5" ) test-data-connection;; 243 if exists /data/singleproc [all …]
|
/system/extras/tests/fstest/ |
D | perm_checker.conf | 8 /data/ 771 771 system system system system 9 /data/* 000 744 system system system system 10 /data/anr/ 000 751 root system log log 11 /data/anr/... 000 662 root system log log 12 /data/app/ 771 771 system system system system 13 /data/app/... 644 664 system system system system 14 /data/app-private/ 700 771 system system system system 15 /data/dalvik-cache/ 750 771 root system root system 16 /data/dalvik-cache/... 400 744 root 19999 root 19999 17 /data/data 701 771 system system system system [all …]
|
/system/core/libpixelflinger/ |
D | buffer.cpp | 63 dst->data = src->data; in ggl_set_surface() 69 dst->data += bpr * (dst->height-1); in ggl_set_surface() 96 gen.data = int32_t(s.data); in ggl_pick_texture() 118 uint8_t* const data = s->data + index * f->size; in read_pixel() local 121 case 1: v = *data; break; in read_pixel() 122 case 2: v = *(uint16_t*)data; break; in read_pixel() 123 case 3: v = (data[2]<<16)|(data[1]<<8)|data[0]; break; in read_pixel() 124 case 4: v = GGL_RGBA_TO_HOST(*(uint32_t*)data); break; in read_pixel() 136 uint16_t v = *(reinterpret_cast<uint16_t*>(s->data) + (x + (s->stride * y))); in readRGB565() 150 uint32_t v = *(reinterpret_cast<uint32_t*>(s->data) + (x + (s->stride * y))); in readABGR8888() [all …]
|
/system/extras/ext4_utils/ |
D | extent.c | 33 u8 *data = calloc(backing_len, 1); in extent_create_backing() local 34 if (!data) in extent_create_backing() 37 u8 *ptr = data; in extent_create_backing() 51 return data; in extent_create_backing() 124 u8 *data = calloc(info.block_size, 1); in do_inode_allocate_extents() local 125 if (!data) in do_inode_allocate_extents() 128 sparse_file_add_data(info.sparse_file, data, info.block_size, in do_inode_allocate_extents() 138 hdr = (struct ext4_extent_header *)data; in do_inode_allocate_extents() 146 extent = (struct ext4_extent *)(data + in do_inode_allocate_extents() 185 u8 *data = NULL; in inode_allocate_data_extents() local [all …]
|
/system/media/camera/src/ |
D | camera_metadata.c | 55 } data; member 408 camera_metadata_data_t *data = in validate_camera_metadata_structure() local 410 entry.data.offset); in validate_camera_metadata_structure() 412 if ((uintptr_t)data != ALIGN_TO(data, DATA_ALIGNMENT)) { in validate_camera_metadata_structure() 415 __FUNCTION__, i, data, DATA_ALIGNMENT, in validate_camera_metadata_structure() 421 size_t data_entry_end = entry.data.offset + data_size; in validate_camera_metadata_structure() 422 if (data_entry_end < entry.data.offset || // overflow check in validate_camera_metadata_structure() 432 if (entry.data.offset != 0) { in validate_camera_metadata_structure() 434 "(%u), tag name: %s", __FUNCTION__, i, entry.data.offset, in validate_camera_metadata_structure() 460 entry->data.offset += dst->data_count; in append_camera_metadata() [all …]
|
/system/core/rootdir/ |
D | init.rc | 58 mkdir /data 0771 system system 125 # qtaguid will limit access to specific data based on group memberships. 180 on post-fs-data 181 # We chown/chmod /data again so because mount is run as root + defaults 182 chown system system /data 183 chmod 0771 /data 184 # We restorecon /data in case the userdata partition has been reset. 185 restorecon /data 188 copy /data/system/entropy.dat /dev/urandom 193 mkdir /data/dontpanic 0750 root log [all …]
|
/system/core/include/mincrypt/ |
D | hash-internal.h | 31 #define HASH_update(ctx, data, len) (ctx)->f->update(ctx, data, len) argument 33 #define HASH_hash(data, len, digest) (ctx)->f->hash(data, len, digest) argument
|
/system/core/init/ |
D | ueventd_parser.c | 63 char *data; in ueventd_parse_config_file() local 64 data = read_file(fn, 0); in ueventd_parse_config_file() 65 if (!data) return -1; in ueventd_parse_config_file() 67 parse_config(fn, data); in ueventd_parse_config_file()
|