Home
last modified time | relevance | path

Searched refs:p (Results 1 – 22 of 22) sorted by relevance

/bootable/recovery/minadbd/
Dtransport_usb.c28 static inline void fix_endians(apacket *p) in fix_endians() argument
30 p->msg.command = H4(p->msg.command); in fix_endians()
31 p->msg.arg0 = H4(p->msg.arg0); in fix_endians()
32 p->msg.arg1 = H4(p->msg.arg1); in fix_endians()
33 p->msg.data_length = H4(p->msg.data_length); in fix_endians()
34 p->msg.data_check = H4(p->msg.data_check); in fix_endians()
35 p->msg.magic = H4(p->msg.magic); in fix_endians()
42 #define fix_endians(p) do {} while (0) argument
49 static int remote_read(apacket *p, atransport *t) in remote_read() argument
51 if(usb_read(t->usb, &p->msg, sizeof(amessage))){ in remote_read()
[all …]
Dadb.c72 const char* p = getenv("ADB_TRACE"); in adb_trace_init() local
94 if (p == NULL) in adb_trace_init()
98 while (*p) { in adb_trace_init()
101 q = strpbrk(p, " ,:;"); in adb_trace_init()
103 q = p + strlen(p); in adb_trace_init()
105 len = q - p; in adb_trace_init()
111 if (len == taglen && !memcmp(tags[tagn].tag, p, len) ) in adb_trace_init()
122 p = q; in adb_trace_init()
123 if (*p) in adb_trace_init()
124 p++; in adb_trace_init()
[all …]
Dsockets.c130 static int local_socket_enqueue(asocket *s, apacket *p) in local_socket_enqueue() argument
132 D("LS(%d): enqueue %d\n", s->id, p->len); in local_socket_enqueue()
134 p->ptr = p->data; in local_socket_enqueue()
147 while(p->len > 0) { in local_socket_enqueue()
148 int r = adb_write(s->fd, p->ptr, p->len); in local_socket_enqueue()
150 p->len -= r; in local_socket_enqueue()
151 p->ptr += r; in local_socket_enqueue()
163 if(p->len == 0) { in local_socket_enqueue()
164 put_apacket(p); in local_socket_enqueue()
169 p->next = 0; in local_socket_enqueue()
[all …]
Dtransport.c98 dump_packet(const char* name, const char* func, apacket* p) in dump_packet() argument
100 unsigned command = p->msg.command; in dump_packet()
101 int len = p->msg.data_length; in dump_packet()
120 if (p->msg.arg0 < 256U) in dump_packet()
121 snprintf(arg0, sizeof arg0, "%d", p->msg.arg0); in dump_packet()
123 snprintf(arg0, sizeof arg0, "0x%x", p->msg.arg0); in dump_packet()
125 if (p->msg.arg1 < 256U) in dump_packet()
126 snprintf(arg1, sizeof arg1, "%d", p->msg.arg1); in dump_packet()
128 snprintf(arg1, sizeof arg1, "0x%x", p->msg.arg1); in dump_packet()
132 dump_hex(p->data, len); in dump_packet()
[all …]
Dadb.h168 int (*read_from_remote)(apacket *p, atransport *t);
169 int (*write_to_remote)(apacket *p, atransport *t);
196 void print_packet(const char *label, apacket *p);
215 void handle_packet(apacket *p, atransport *t);
216 void send_packet(apacket *p, atransport *t);
289 void put_apacket(apacket *p);
291 int check_header(apacket *p);
292 int check_data(apacket *p);
358 #define print_packet(tag,p) do {} while (0) argument
Dsysdeps.h228 char* p = strchr(path, '/'); in adb_dirstart() local
231 if ( !p ) in adb_dirstart()
232 p = p2; in adb_dirstart()
233 else if ( p2 && p2 > p ) in adb_dirstart()
234 p = p2; in adb_dirstart()
236 return p; in adb_dirstart()
241 char* p = strrchr(path, '/'); in adb_dirstop() local
244 if ( !p ) in adb_dirstop()
245 p = p2; in adb_dirstop()
246 else if ( p2 && p2 > p ) in adb_dirstop()
[all …]
Dservices.c89 char *p;
101 p = buf;
103 r = write(fd, p, c);
106 p += r;
/bootable/recovery/applypatch/
Dutils.c42 unsigned char* p = pv; in Read2() local
43 return (int)(((unsigned int)p[1] << 8) | in Read2()
44 (unsigned int)p[0]); in Read2()
48 unsigned char* p = pv; in Read4() local
49 return (int)(((unsigned int)p[3] << 24) | in Read4()
50 ((unsigned int)p[2] << 16) | in Read4()
51 ((unsigned int)p[1] << 8) | in Read4()
52 (unsigned int)p[0]); in Read4()
56 unsigned char* p = pv; in Read8() local
57 return (long long)(((unsigned long long)p[7] << 56) | in Read8()
[all …]
Dutils.h26 int Read2(void* p);
27 int Read4(void* p);
28 long long Read8(void* p);
Dmain.c91 Value* p = (*patches)[i]; in ParsePatchArgs() local
92 if (p != NULL) { in ParsePatchArgs()
93 free(p->data); in ParsePatchArgs()
94 free(p); in ParsePatchArgs()
142 Value* p = patches[i]; in PatchMode() local
143 if (p != NULL) { in PatchMode()
144 free(p->data); in PatchMode()
145 free(p); in PatchMode()
Dimgdiff.c404 unsigned char* p = img+pos; in ReadImage() local
407 p[0] == 0x1f && p[1] == 0x8b && in ReadImage()
408 p[2] == 0x08 && // deflate compression in ReadImage()
409 p[3] == 0x00) { // no header flags in ReadImage()
420 curr->data = p; in ReadImage()
424 p += curr->len; in ReadImage()
439 curr->deflate_data = p; in ReadImage()
446 strm.next_in = p; in ReadImage()
466 p += curr->deflate_len; in ReadImage()
478 p += curr->len; in ReadImage()
[all …]
Dapplypatch.c230 char* p = (char*)file->data; in LoadPartitionContents() local
242 read = mtd_read_data(ctx, p, next); in LoadPartitionContents()
246 read = fread(p, 1, next, dev); in LoadPartitionContents()
256 SHA_update(&sha_ctx, p, read); in LoadPartitionContents()
282 p += read; in LoadPartitionContents()
467 size_t p; in WriteToPartition() local
468 for (p = 0; p < len; p += sizeof(buffer)) { in WriteToPartition()
469 size_t to_read = len - p; in WriteToPartition()
480 partition, p, strerror(errno)); in WriteToPartition()
486 partition, p, read_count, to_read, strerror(errno)); in WriteToPartition()
[all …]
/bootable/recovery/minzip/
DDirUtil.c115 char *p = cpath; in dirCreateHierarchy() local
116 while (*p != '\0') { in dirCreateHierarchy()
119 while (*p != '\0' && *p == '/') { in dirCreateHierarchy()
120 p++; in dirCreateHierarchy()
122 if (*p == '\0') { in dirCreateHierarchy()
130 while (*p != '/') { in dirCreateHierarchy()
131 p++; in dirCreateHierarchy()
133 *p = '\0'; in dirCreateHierarchy()
175 *p = '/'; in dirCreateHierarchy()
DZip.c889 char *p = helper->buf; in targetEntryPath() local
890 memcpy(p, helper->targetDir, helper->targetDirLen); in targetEntryPath()
891 p += helper->targetDirLen; in targetEntryPath()
892 if (p == helper->buf || p[-1] != '/') { in targetEntryPath()
894 *p++ = '/'; in targetEntryPath()
/bootable/recovery/mtdutils/
Dmtdutils.c97 MtdPartition *p = &g_mtd_state.partitions[i]; in mtd_scan_partitions() local
98 if (p->name != NULL) { in mtd_scan_partitions()
99 free(p->name); in mtd_scan_partitions()
100 p->name = NULL; in mtd_scan_partitions()
102 p->device_index = -1; in mtd_scan_partitions()
143 MtdPartition *p = &g_mtd_state.partitions[mtdnum]; in mtd_scan_partitions() local
144 p->device_index = mtdnum; in mtd_scan_partitions()
145 p->size = mtdsize; in mtd_scan_partitions()
146 p->erase_size = mtderasesize; in mtd_scan_partitions()
147 p->name = strdup(mtdname); in mtd_scan_partitions()
[all …]
/bootable/recovery/
Drecovery.cpp383 saved_log_file* p = (saved_log_file*) malloc(sizeof(saved_log_file)); in erase_volume() local
385 p->name = strdup(path); in erase_volume()
386 if (stat(path, &(p->st)) == 0) { in erase_volume()
388 if (p->st.st_size > (1 << 19)) { in erase_volume()
389 p->st.st_size = 1 << 19; in erase_volume()
391 p->data = (unsigned char*) malloc(p->st.st_size); in erase_volume()
393 fread(p->data, 1, p->st.st_size, f); in erase_volume()
395 p->next = head; in erase_volume()
396 head = p; in erase_volume()
398 free(p); in erase_volume()
[all …]
Dscreen_ui.cpp179 float p = progressScopeStart + progress * progressScopeSize; in draw_progress_locked() local
180 int pos = (int) (p * width); in draw_progress_locked()
348 float p = 1.0 * elapsed / duration; in progress_loop() local
349 if (p > 1.0) p = 1.0; in progress_loop()
350 if (p > progress) { in progress_loop()
351 progress = p; in progress_loop()
443 for (char* p = lang; *p; ++p) { in SetLocale() local
444 if (*p == '_') { in SetLocale()
445 *p = '\0'; in SetLocale()
/bootable/recovery/fonts/
DREADME5 https://code.google.com/p/googlefontdirectory/source/browse/ofl/inconsolata/
/bootable/diskinstaller/
Dinit.rc26 service installer /system/bin/installer -p /dev/block/sdb2
Dconfig.mk154 $(hide) PATH=$(foreach p,$(INTERNAL_USERIMAGES_BINARY_PATHS),$(p):)$(PATH) \
/bootable/recovery/edify/
Dexpr.c87 int p = 0; in ConcatFn() local
89 strcpy(result+p, strings[i]); in ConcatFn()
90 p += strlen(strings[i]); in ConcatFn()
92 result[p] = '\0'; in ConcatFn()
/bootable/recovery/updater/
Dinstall.c499 char* p; in make_parents() local
500 for (p = name + (strlen(name)-1); p > name; --p) { in make_parents()
501 if (*p != '/') continue; in make_parents()
502 *p = '\0'; in make_parents()
506 *p = '/'; in make_parents()