Searched defs:tmp (Results 1 - 25 of 52) sorted by path

123

/system/core/adb/
H A Dadb_client.c41 char* tmp = adb_query("host:devices"); local
42 char* p = tmp;
43 if(!tmp) {
56 free(tmp);
64 free(tmp);
89 char tmp[5]; local
116 snprintf(tmp, sizeof tmp, "%04x", len);
118 if(writex(fd, tmp, 4) || writex(fd, service, len)) {
172 char tmp[ local
299 char *tmp; local
[all...]
H A Dcommandline.c1020 char *tmp; local
1031 tmp = adb_query(buf);
1032 if(tmp) {
1034 printf("%s\n", tmp);
1042 char *tmp; local
1048 tmp = adb_query(buf);
1049 if(tmp) {
1050 printf("%s\n", tmp);
1058 char *tmp; local
1068 tmp
1315 char *tmp; local
[all...]
H A Dfile_sync_client.c305 char tmp[64]; local
310 snprintf(tmp, sizeof(tmp), ",%d", mode);
311 r = strlen(tmp);
374 writex(fd, rpath, len) || writex(fd, tmp, r)) {
684 char *tmp = malloc(tmplen); local
685 if(tmp == 0) return -1;
686 snprintf(tmp, tmplen, "%s/",lpath);
687 lpath = tmp;
691 char *tmp local
783 char *tmp = malloc(strlen(name) + strlen(rpath) + 2); local
883 char *tmp = malloc(tmplen); local
890 char *tmp = malloc(tmplen); local
977 char *tmp = malloc(tmplen); local
[all...]
H A Dfile_sync_service.c84 char tmp[1024 + 256 + 1]; local
88 memcpy(tmp, path, len);
89 tmp[len] = '/';
90 fname = tmp + len + 1;
105 if(lstat(tmp, &st) == 0) {
278 char *tmp; local
282 tmp = strrchr(path,',');
283 if(tmp) {
284 *tmp = 0;
286 mode = strtoul(tmp
[all...]
H A Dtransport_local.c243 char tmp[256]; local
272 res = adb_read(fd, tmp, sizeof(tmp));
273 if (res != 2 || memcmp(tmp, _ok_resp, 2)) {
/system/core/charger/
H A Dcharger.c276 int tmp; local
283 tmp = strtol(buf, &end, 0);
288 *val = tmp;
/system/core/cpio/
H A Dmkbootfs.c236 char *tmp; local
242 tmp = (char*) malloc(s.st_size);
243 if(tmp == 0) die("cannot allocate %d bytes", s.st_size);
245 if(read(fd, tmp, s.st_size) != s.st_size) {
249 _eject(&s, out, olen, tmp, s.st_size);
251 free(tmp);
/system/core/debuggerd/
H A Dcrasher.c26 char tmp[1]; local
28 sprintf(tmp, "%d", gettid());
32 read(s, tmp, 1);
/system/core/fastboot/
H A Dfastboot.c635 char *tmp; local
641 tmp = malloc(sz + 128);
642 if (tmp == 0) die("out of memory");
643 sprintf(tmp,"board=%sversion-baseband=0.66.04.19\n",(char*)data);
644 data = tmp;
645 sz = strlen(tmp);
/system/core/include/cutils/
H A Datomic-arm.h155 int32_t prev, tmp, status; local
161 : "=&r" (prev), "=&r" (tmp),
197 int32_t prev, tmp, status; local
203 : "=&r" (prev), "=&r" (tmp),
228 int32_t prev, tmp, status; local
234 : "=&r" (prev), "=&r" (tmp),
/system/core/include/private/pixelflinger/
H A Dggl_fixed.h198 GGLfixed result,tmp,tmp1,tmp2; local
204 : [res]"=&r"(result),[tmp]"=&r"(tmp)
211 "li %[tmp],1\t\n"
212 "sll %[tmp],%[tmp],0x1f\t\n"
214 "addu %[tmp1],%[tmp],%[res] \t\n"
215 "sltu %[tmp1],%[tmp1],%[tmp]\t\n" /*obit*/
216 "sra %[tmp],%[tmp],
[all...]
/system/core/init/
H A Dbuiltins.c365 char tmp[64]; local
399 sprintf(tmp, "/dev/block/mtdblock%d", n);
402 wait_for_file(tmp, COMMAND_RETRY_TIMEOUT);
403 if (mount(tmp, target, system, flags, options) < 0) {
419 sprintf(tmp, "/dev/block/loop%d", n);
420 loop = open(tmp, mode);
431 if (mount(tmp, target, system, flags, options) < 0) {
H A Dinit.c242 char tmp[32]; local
263 sprintf(tmp, "%d,%d", dup(fd), sz);
264 add_environment("ANDROID_PROPERTY_WORKSPACE", tmp);
352 char *tmp = strdup(dynamic_args); local
353 char *next = tmp;
460 char *tmp = NULL; local
466 tmp = strdup(name);
467 args = strchr(tmp, ':');
471 svc = service_find_by_name(tmp);
479 if (tmp)
576 char tmp[PROP_VALUE_MAX]; local
655 char tmp[PROP_VALUE_MAX]; local
842 char tmp[32]; local
[all...]
H A Dproperty_service.c492 char *key, *value, *eol, *sol, *tmp; local
506 tmp = value - 2;
507 while((tmp > key) && isspace(*tmp)) *tmp-- = 0;
510 tmp = eol - 2;
511 while((tmp > value) && isspace(*tmp)) *tmp-- = 0;
H A Dsignal_handler.c73 char tmp[128]; local
74 snprintf(tmp, sizeof(tmp), ANDROID_SOCKET_DIR"/%s", si->name);
75 unlink(tmp);
121 char tmp[32]; local
124 read(signal_recv_fd, tmp, sizeof(tmp));
H A Dueventd.c54 char tmp[32]; local
84 snprintf(tmp, sizeof(tmp), "/ueventd.%s.rc", hardware);
85 ueventd_parse_config_file(tmp);
121 char *tmp = 0; local
147 asprintf(&tmp, "/dev/mtd/mtd%d", n);
148 name = tmp;
160 free(tmp);
167 free(tmp);
175 free(tmp);
[all...]
/system/core/libcutils/
H A Dtztime.c184 struct tm * tmp));
186 struct tm * tmp, const struct state *sp));
195 static time_t time1 P((struct tm * tmp,
199 static time_t time2 P((struct tm *tmp,
203 static time_t time2sub P((struct tm *tmp,
208 const struct state * sp, struct tm * tmp));
1181 localsub(timep, offset, tmp, sp)
1184 struct tm * const tmp;
1194 return gmtsub(timep, offset, tmp);
1221 result = localsub(&newt, offset, tmp, s
1292 localtime_tz(const time_t * const timep, struct tm * tmp, const char* tz) argument
1942 mktime_tz(struct tm * const tmp, char const * tz) argument
[all...]
/system/core/libdiskconfig/
H A Ddiskconfig.c40 char tmp[64]; local
44 strncpy(tmp, str, sizeof(tmp));
45 tmp[sizeof(tmp)-1] = '\0';
46 len_str = strlen(tmp);
52 switch(tmp[len_str - 1]) {
59 tmp[len_str - 1] = '\0';
65 *plen = strtoull(tmp, NULL, 0);
100 const char *tmp; local
146 const char *tmp; local
[all...]
H A Ddiskutils.c39 int tmp; local
83 if ((tmp = write(dst_fd, buffer, nr_bytes)) < 0) {
90 if (!tmp)
92 nr_bytes -= tmp;
/system/core/libmincrypt/
H A Drsa_e_3.c105 uint32_t tmp = local
110 a[i] = tmp;
124 uint32_t tmp = aaa[i]; local
125 *inout++ = tmp >> 24;
126 *inout++ = tmp >> 16;
127 *inout++ = tmp >> 8;
128 *inout++ = tmp >> 0;
H A Drsa_e_f4.c106 uint32_t tmp = local
111 a[i] = tmp;
128 uint32_t tmp = aaa[i]; local
129 *inout++ = tmp >> 24;
130 *inout++ = tmp >> 16;
131 *inout++ = tmp >> 8;
132 *inout++ = tmp >> 0;
H A Dsha.c180 uint8_t tmp = cnt >> ((7 - i) * 8); local
181 SHA_update(ctx, &tmp, 1);
202 uint32_t tmp = *p++ << 24; local
203 tmp |= *p++ << 16;
204 tmp |= *p++ << 8;
205 tmp |= *p++;
206 W[t] = tmp;
220 uint32_t tmp = rol(5,A) + E + W[t]; local
223 tmp += (D^(B&(C^D))) + 0x5A827999;
225 tmp
269 uint8_t tmp = cnt >> ((7 - i) * 8); local
274 uint32_t tmp = ctx->state[i]; local
[all...]
/system/core/libnl_2/
H A Dattr.c52 uint64_t tmp; local
53 nla_memcpy(&tmp, nla, sizeof(tmp));
54 return tmp;
/system/core/libsparse/
H A Dsparse.c283 struct sparse_file *tmp; local
286 tmp = sparse_file_new(in_s->block_size, in_s->len);
287 if (!tmp) {
299 backed_block_list_move(s->backed_block_list, tmp->backed_block_list,
306 backed_block_list_move(tmp->backed_block_list, in_s->backed_block_list,
309 sparse_file_destroy(tmp);
/system/core/libsysutils/src/
H A DFrameworkListener.cpp77 char tmp[255]; local
79 char *q = tmp;
80 char *qlimit = tmp + sizeof(tmp) - 1;
87 memset(tmp, 0, sizeof(tmp));
133 int cmdNum = (int)strtol(tmp, &endptr, 0);
143 argv[argc++] = strdup(tmp);
145 memset(tmp, 0, sizeof(tmp));
[all...]

Completed in 88 milliseconds

123