Home
last modified time | relevance | path

Searched refs:id (Results 1 – 25 of 47) sorted by relevance

12

/system/vold/
DVolumeManager.h36 : id(_id) in ContainerData()
41 if (id != NULL) { in ~ContainerData()
42 free(id); in ~ContainerData()
43 id = NULL; in ~ContainerData()
47 char *id; variable
90 int findAsec(const char *id, char *asecPath = NULL, size_t asecPathLen = 0,
92 int createAsec(const char *id, unsigned numSectors, const char *fstype,
94 int finalizeAsec(const char *id);
106 int fixupAsecPermissions(const char *id, gid_t gid, const char* privateFilename);
107 int destroyAsec(const char *id, bool force);
[all …]
DVolumeManager.cpp79 char *VolumeManager::asecHash(const char *id, char *buffer, size_t len) { in asecHash() argument
88 } else if (id == NULL) { in asecHash()
99 MD5(reinterpret_cast<const unsigned char*>(id), strlen(id), sig); in asecHash()
208 int VolumeManager::getAsecMountPath(const char *id, char *buffer, int maxlen) { in getAsecMountPath() argument
211 if (findAsec(id, asecFileName, sizeof(asecFileName))) { in getAsecMountPath()
212 SLOGE("Couldn't find ASEC %s", id); in getAsecMountPath()
222 int written = snprintf(buffer, maxlen, "%s/%s", Volume::ASECDIR, id); in getAsecMountPath()
224 SLOGE("getAsecMountPath failed for %s: couldn't construct path in buffer", id); in getAsecMountPath()
232 int VolumeManager::getAsecFilesystemPath(const char *id, char *buffer, int maxlen) { in getAsecFilesystemPath() argument
235 if (findAsec(id, asecFileName, sizeof(asecFileName))) { in getAsecFilesystemPath()
[all …]
DLoop.h29 static int lookupActive(const char *id, char *buffer, size_t len);
31 static int create(const char *id, const char *loopFile, char *loopDeviceBuffer, size_t len);
DLoop.cpp81 int Loop::lookupActive(const char *id, char *buffer, size_t len) { in lookupActive() argument
114 if (!strncmp((const char*) li.lo_crypt_name, id, LO_NAME_SIZE)) { in lookupActive()
127 int Loop::create(const char *id, const char *loopFile, char *loopDeviceBuffer, size_t len) { in create() argument
195 strlcpy((char*) li.lo_crypt_name, id, LO_NAME_SIZE); in create()
/system/core/adb/
Dsockets.c62 asocket *find_local_socket(unsigned id) in find_local_socket() argument
69 if (s->id == id) { in find_local_socket()
93 s->id = local_socket_next_id++; in install_local_socket()
108 s->id = 0; in remove_socket()
132 D("LS(%d): enqueue %d\n", s->id, p->len); in local_socket_enqueue()
155 D( "LS(%d): not ready, errno=%d: %s\n", s->id, errno, strerror(errno) ); in local_socket_enqueue()
204 D("LS(%d): destroying fde.fd=%d\n", s->id, s->fde.fd); in local_socket_destroy()
213 D("LS(%d): discarding %d bytes\n", s->id, p->len); in local_socket_destroy()
229 D("entered. LS(%d) fd=%d\n", s->id, s->fd); in local_socket_close_locked()
232 s->id, s->peer->id, s->peer->fd); in local_socket_close_locked()
[all …]
Dfile_sync_service.h50 unsigned id; member
52 unsigned id; member
56 unsigned id; member
62 unsigned id; member
69 unsigned id; member
73 unsigned id; member
Dfile_sync_service.c61 msg.stat.id = ID_STAT; in do_stat()
92 msg.dent.id = ID_DENT; in do_list()
121 msg.dent.id = ID_DONE; in do_list()
136 msg.data.id = ID_FAIL; in fail_message()
177 if(msg.data.id != ID_DATA) { in handle_send_file()
178 if(msg.data.id == ID_DONE) { in handle_send_file()
212 msg.status.id = ID_OKAY; in handle_send_file()
236 if(msg.data.id != ID_DATA) { in handle_send_link()
262 if(msg.data.id == ID_DONE) { in handle_send_link()
263 msg.status.id = ID_OKAY; in handle_send_link()
[all …]
Dfile_sync_client.c69 msg.req.id = ID_QUIT; in sync_quit()
86 msg.req.id = ID_LIST; in sync_ls()
96 if(msg.dent.id == ID_DONE) return 0; in sync_ls()
97 if(msg.dent.id != ID_DENT) break; in sync_ls()
119 unsigned id; member
131 msg.req.id = ID_STAT; in sync_readtime()
143 if(msg.stat.id != ID_STAT) { in sync_readtime()
156 msg.req.id = ID_STAT; in sync_start_readtime()
175 if(msg.stat.id != ID_STAT) in sync_finish_readtime()
190 msg.req.id = ID_STAT; in sync_readmode()
[all …]
Dprotocol.txt50 The identifiers "local-id" and "remote-id" are always relative to the
96 --- OPEN(local-id, 0, "destination") -----------------------------------
99 identified by local-id that it wishes to connect to the named
100 destination in the message payload. The local-id may not be zero.
118 --- READY(local-id, remote-id, "") -------------------------------------
121 identified by local-id is ready for write messages and that it is
122 connected to the recipient's stream identified by remote-id.
124 Neither the local-id nor the remote-id may be zero.
126 A READY message containing a remote-id which does not map to an open
130 The local-id is ignored on all but the first READY message (where it
[all …]
/system/core/init/
Dkeychords.c53 keychord->id = keychords_count + 1; in add_service_keycodes()
55 svc->keychord_id = keychord->id; in add_service_keycodes()
101 __u16 id; in handle_keychord() local
105 ret = read(keychord_fd, &id, sizeof(id)); in handle_keychord()
106 if (ret != sizeof(id)) { in handle_keychord()
112 svc = service_find_by_keychord(id); in handle_keychord()
117 ERROR("service for keychord %d not found\n", id); in handle_keychord()
Dueventd.c102 static int get_android_id(const char *id) in get_android_id() argument
106 if (!strcmp(id, android_ids[i].name)) in get_android_id()
/system/media/camera/docs/
Dmetadata_template.mako25 <tag id="${tag.id}">${tag.description | x}</tag>
27 <tag id="${tag.id}"><!-- TODO: fill the tag description --></tag>
69 <tag id="${tag.id}" />
106 % if value.id is not None:
107 id="${value.id}"
135 <tag id="${tag.id}" />
Dhtml.mako140 <tr><td colspan="7" id="section_${section.name}" class="section">${section.name}</td></tr>
186 <tag id="${tag.id}" />
191 <tr class="entry" id="${prop.kind}_${prop.name}">
227 % if value.id is not None:
228 <span class="entry_type_enum_value">${value.id}</span>
268 <li><a href="#tag_${tag.id}">${tag.id}</a></li>
290 <div class="tags" id="tag_index">
294 <li id="tag_${tag.id}">${tag.id} - ${tag.description}
300 </li> <!-- tag_${tag.id} -->
/system/netd/
DMDnsSdListener.h72 DNSServiceRef *allocateServiceRef(int id, Context *c);
73 void startMonitoring(int id);
74 DNSServiceRef *lookupServiceRef(int id);
75 void freeServiceRef(int id);
89 Element(int id, Context *context) in Element() argument
90 : mId(id), mNext(NULL), mContext(context), mReady(0) {} in Element()
/system/extras/tests/framebuffer/
Dfb_test.c139 int gr_init(int bpp, int id) in gr_init() argument
167 gr_active_fb = id; in gr_init()
168 set_active_framebuffer(id); in gr_init()
260 int id = 0; in main() local
267 id = !!atoi(argv[4]); in main()
269 gr_init(bpp, id); in main()
282 draw_grid(w, h, gr_fbs[id].data); in main()
284 set_active_framebuffer(!id); in main()
285 set_active_framebuffer(id); in main()
/system/bluetooth/bluedroid/
Dbluetooth.c54 int id; in init_rfkill() local
55 for (id = 0; ; id++) { in init_rfkill()
56 snprintf(path, sizeof(path), "/sys/class/rfkill/rfkill%d/type", id); in init_rfkill()
65 rfkill_id = id; in init_rfkill()
/system/extras/tests/bionic/libc/other/
Dtest_timer_create.c49 create(int seconds, int id) in create() argument
58 se.sigev_value.sival_int = id; in create()
Dtest_timer_create3.c66 create(int seconds, int id) in create() argument
74 se.sigev_value.sival_int = id; in create()
/system/core/toolbox/
Dlsusb.c28 static const char *get_str(struct usb_device *dev, int id) in get_str() argument
30 char *str = usb_device_get_string(dev, id); in get_str()
32 if (id && str) { in get_str()
36 snprintf(str_buff, sizeof(str_buff), "%02x", id); in get_str()
Dvmstat.c225 int us, ni, sy, id, wa, ir; in print_line() local
229 id = JP(new->cpu_id - old->cpu_id); NORM(id); in print_line()
236 us, ni, sy, id, wa, ir); in print_line()
Dgetevent.c303 struct input_id id; in open_device() local
317 if(ioctl(fd, EVIOCGID, &id)) { in open_device()
358 id.bustype, id.vendor, id.product, id.version); in open_device()
376 print_hid_descriptor(id.bustype, id.vendor, id.product); in open_device()
/system/core/libnl_2/genl/
Dgenl.c279 int id = -1; in genl_ctrl_resolve() local
287 return id; in genl_ctrl_resolve()
293 id = genl_family_get_id(gf); in genl_ctrl_resolve()
301 return id; in genl_ctrl_resolve()
/system/core/include/system/
Dwindow.h93 void incStrong(const void* id) const { in incStrong()
96 void decStrong(const void* id) const { in decStrong()
347 void incStrong(const void* id) const { in incStrong()
350 void decStrong(const void* id) const { in decStrong()
/system/core/include/usbhost/
Dusbhost.h132 char* usb_device_get_name_from_unique_id(int id);
147 char* usb_device_get_string(struct usb_device *device, int id);
/system/core/libpixelflinger/codeflinger/
DCodeCache.h67 void incStrong(const void* id) const;
68 void decStrong(const void* id) const;

12