Home
last modified time | relevance | path

Searched refs:s (Results 1 – 19 of 19) sorted by relevance

/bootable/recovery/minadbd/
Dsockets.c31 static void local_socket_close_locked(asocket *s);
64 asocket *s; in find_local_socket() local
68 for (s = local_socket_list.next; s != &local_socket_list; s = s->next) { in find_local_socket()
69 if (s->id == id) { in find_local_socket()
70 result = s; in find_local_socket()
80 insert_local_socket(asocket* s, asocket* list) in insert_local_socket() argument
82 s->next = list; in insert_local_socket()
83 s->prev = s->next->prev; in insert_local_socket()
84 s->prev->next = s; in insert_local_socket()
85 s->next->prev = s; in insert_local_socket()
[all …]
Dservices.c46 static void sideload_service(int s, void *cookie) in sideload_service() argument
57 adb_close(s); in sideload_service()
63 if(readx(s, buf, xfer)) break; in sideload_service()
69 writex(s, "OKAY", 4); in sideload_service()
71 writex(s, "FAIL", 4); in sideload_service()
74 adb_close(s); in sideload_service()
122 int s[2]; in create_service_thread() local
124 if(adb_socketpair(s)) { in create_service_thread()
133 sti->fd = s[1]; in create_service_thread()
137 adb_close(s[0]); in create_service_thread()
[all …]
Dadb.c285 asocket *s; in handle_packet() local
320 s = create_local_service_socket(name); in handle_packet()
321 if(s == 0) { in handle_packet()
324 s->peer = create_remote_socket(p->msg.arg0, t); in handle_packet()
325 s->peer->peer = s; in handle_packet()
326 send_ready(s->id, s->peer->id, t); in handle_packet()
327 s->ready(s); in handle_packet()
334 if((s = find_local_socket(p->msg.arg1))) { in handle_packet()
335 if(s->peer == 0) { in handle_packet()
336 s->peer = create_remote_socket(p->msg.arg0, t); in handle_packet()
[all …]
Dadb.h112 int (*enqueue)(asocket *s, apacket *pkt);
117 void (*ready)(asocket *s);
123 void (*close)(asocket *s);
199 void install_local_socket(asocket *s);
200 void remove_socket(asocket *s);
209 void connect_to_remote(asocket *s, const char *destination);
210 void connect_to_smartsocket(asocket *s);
218 void get_my_path(char *s, size_t maxLen);
247 int init_socket_transport(atransport *t, int s, int port, int local);
254 void register_socket_transport(int s, const char *serial, int port, int local);
[all …]
Dutils.c40 buff_adds (char* buff, char* buffEnd, const char* s) in buff_adds() argument
42 int slen = strlen(s); in buff_adds()
44 return buff_addb(buff, buffEnd, s, slen); in buff_adds()
Dtransport.c427 int s[2]; in transport_registration_func() local
473 if(adb_socketpair(s)) { in transport_registration_func()
477 D("transport: %s (%d,%d) starting\n", t->serial, s[0], s[1]); in transport_registration_func()
479 t->transport_socket = s[0]; in transport_registration_func()
480 t->fd = s[1]; in transport_registration_func()
513 int s[2]; in init_transport_registration() local
515 if(adb_socketpair(s)){ in init_transport_registration()
519 transport_registration_send = s[0]; in init_transport_registration()
520 transport_registration_recv = s[1]; in init_transport_registration()
681 void register_socket_transport(int s, const char *serial, int port, int local) in register_socket_transport() argument
[all …]
DREADME.txt5 - much support for host mode and non-linux OS's stripped out; this
7 - always setuid/setgid's itself to the shell user
Dutils.h48 char* buff_adds (char* buff, char* buffEnd, const char* s);
Dfdevent.c668 int s[2]; in fdevent_subproc_setup() local
670 if(adb_socketpair(s)) { in fdevent_subproc_setup()
673 SHELL_EXIT_NOTIFY_FD = s[0]; in fdevent_subproc_setup()
675 fde = fdevent_create(s[1], fdevent_subproc_event_func, NULL); in fdevent_subproc_setup()
/bootable/recovery/edify/
Dparser.y29 void yyerror(Expr** root, int* error_count, const char* s);
124 void yyerror(Expr** root, int* error_count, const char* s) {
125 if (strlen(s) == 0) {
126 s = "syntax error";
128 printf("line %d col %d: %s\n", gLine, gColumn, s);
DREADME43 - There's no distinction between quoted and unquoted strings; the
86 second argument only if it's needed to determine the truth of the
Dexpr.c31 int BooleanString(const char* s) { in BooleanString() argument
32 return s[0] != '\0'; in BooleanString()
/bootable/recovery/applypatch/
Dbsdiff.c232 off_t s,Sf,lenf,Sb,lenb; in bsdiff() local
304 s=0;Sf=0;lenf=0; in bsdiff()
306 if(old[lastpos+i]==new[lastscan+i]) s++; in bsdiff()
308 if(s*2-i>Sf*2-lenf) { Sf=s; lenf=i; }; in bsdiff()
313 s=0;Sb=0; in bsdiff()
315 if(old[pos-i]==new[scan-i]) s++; in bsdiff()
316 if(s*2-i>Sb*2-lenb) { Sb=s; lenb=i; }; in bsdiff()
322 s=0;Ss=0;lens=0; in bsdiff()
325 old[lastpos+lenf-overlap+i]) s++; in bsdiff()
327 old[pos-lenb+i]) s--; in bsdiff()
[all …]
Dimgdiff_test.sh61 stat -c %s $1 | tr -d '\n'
Dapplypatch.sh105 NEW_SIZE=$(stat -c %s $DATA_DIR/new.file)
/bootable/recovery/fonts/
DOFL.txt30 Holder(s) under this license and clearly marked as such. This may
34 copyright statement(s).
37 distributed by the Copyright Holder(s).
64 Name(s) unless explicit written permission is granted by the corresponding
68 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
70 Modified Version, except to acknowledge the contribution(s) of the
71 Copyright Holder(s) and the Author(s) or with their explicit written
/bootable/recovery/minui/
Dminui.h40 int gr_text(int x, int y, const char *s, int bold);
42 int gr_measure(const char *s);
Dgraphics.c215 int gr_measure(const char *s) in gr_measure() argument
217 return gr_font->cwidth * strlen(s); in gr_measure()
226 int gr_text(int x, int y, const char *s, int bold) in gr_text() argument
245 while((off = *s++)) { in gr_text()
/bootable/recovery/
DNOTICE93 Contribution(s) alone or by combination of their Contribution(s)
94 with the Work to which such Contribution(s) was submitted. If You