Home
last modified time | relevance | path

Searched refs:val (Results 1 – 25 of 55) sorted by relevance

123

/system/core/sh/
Doptions.h51 char val; /* value of <letter>flag */ member
65 #define eflag optlist[0].val
67 #define fflag optlist[1].val
69 #define Iflag optlist[2].val
71 #define iflag optlist[3].val
73 #define mflag optlist[4].val
75 #define nflag optlist[5].val
77 #define sflag optlist[6].val
79 #define xflag optlist[7].val
81 #define vflag optlist[8].val
[all …]
Dalias.c65 setalias(char *name, char *val) in setalias() argument
73 ckfree(ap->val); in setalias()
74 ap->val = savestr(val); in setalias()
101 ap->val = savestr(val); in setalias()
104 int len = strlen(val); in setalias()
105 ap->val = ckmalloc(len + 2); in setalias()
106 memcpy(ap->val, val, len); in setalias()
107 ap->val[len] = ' '; /* fluff */ in setalias()
108 ap->val[len+1] = '\0'; in setalias()
138 ckfree(ap->val); in unalias()
[all …]
Dmiscbltin.c342 rlim_t val = 0; in ulimitcmd() local
378 val = RLIM_INFINITY; in ulimitcmd()
380 val = (rlim_t) 0; in ulimitcmd()
384 val = (val * 10) + (long)(c - '0'); in ulimitcmd()
385 if ((long)val < 0) in ulimitcmd()
390 val *= l->factor; in ulimitcmd()
397 val = limit.rlim_cur; in ulimitcmd()
399 val = limit.rlim_max; in ulimitcmd()
402 if (val == RLIM_INFINITY) in ulimitcmd()
406 val /= l->factor; in ulimitcmd()
[all …]
Doptions.c95 optlist[i].val = 2; in procargs()
104 if (optlist[i].val == 2) in procargs()
105 optlist[i].val = 0; in procargs()
156 int val; in options() local
164 val = 1; in options()
177 val = 0; in options()
187 minus_o(*argptr, val); in options()
191 setoption(c, val); in options()
198 set_opt_val(int i, int val) in set_opt_val() argument
203 if (val && (flag = optlist[i].opt_set)) { in set_opt_val()
[all …]
Dsyntax.c13 #define set(ch, val) [ndx(ch)] = val, argument
14 #define set_range(s, e, val) [ndx(s) ... ndx(e)] = val, argument
Derror.h116 #define longjmp(jmploc, val) _longjmp(jmploc, val) argument
Dalias.h42 char *val; member
/system/extras/tests/sdcard/
Dtestcase.h61 void setNproc(size_t val) { mNproc = val; } in setNproc() argument
64 void setDataSize(size_t val) { mDataSize = val; } in setDataSize() argument
67 void setChunkSize(size_t val) { mChunkSize = val; } in setChunkSize() argument
70 void setTreeDepth(size_t val) { mTreeDepth = val; } in setTreeDepth() argument
73 void setNewFairSleepers(bool val) { in setNewFairSleepers() argument
74 mNewFairSleepers = val; in setNewFairSleepers()
75 android::setNewFairSleepers(val); in setNewFairSleepers()
79 void setNormalizedSleepers(bool val) { in setNormalizedSleepers() argument
80 mNormalizedSleepers = val; in setNormalizedSleepers()
81 android::setNormalizedSleepers(val); in setNormalizedSleepers()
Dstopwatch.cpp211 double val = double(time.tv_nsec) / 1.0e9 + double(time.tv_sec); in timespecToDouble() local
212 return val < 0.0 ? -val : val; // sometimes 0.00 is -0.00 in timespecToDouble()
/system/extras/tests/lib/testUtil/
DtestUtil.c46 double ts2double(const struct timespec *val) in ts2double() argument
50 rv = val->tv_sec; in ts2double()
51 rv += (double) val->tv_nsec / nSecsPerSec; in ts2double()
57 double tv2double(const struct timeval *val) in tv2double() argument
61 rv = val->tv_sec; in tv2double()
62 rv += (double) val->tv_usec / uSecsPerSec; in tv2double()
183 uint32_t val; in testRand() local
187 val = lrand48(); in testRand()
191 val ^= lrand48() << 1; in testRand()
193 return val; in testRand()
[all …]
/system/core/mkbootimg/
Dmkbootimg.c125 char *val = argv[1]; in main() local
132 bootimg = val; in main()
134 kernel_fn = val; in main()
136 ramdisk_fn = val; in main()
138 second_fn = val; in main()
140 cmdline = val; in main()
142 base = strtoul(val, 0, 16); in main()
144 kernel_offset = strtoul(val, 0, 16); in main()
146 ramdisk_offset = strtoul(val, 0, 16); in main()
148 second_offset = strtoul(val, 0, 16); in main()
[all …]
/system/core/include/cutils/
Dsockets.h50 const char *val; in android_get_control_socket() local
65 val = getenv(key); in android_get_control_socket()
66 if (!val) in android_get_control_socket()
70 fd = strtol(val, NULL, 10); in android_get_control_socket()
/system/core/libutils/
DLinearTransform.cpp30 uint64_t val, in scale_u64_to_u64() argument
55 tmp2 = (val >> 32) * N; in scale_u64_to_u64()
56 tmp1 = (val & UINT32_MAX) * N; in scale_u64_to_u64()
113 int64_t val, in linear_transform_s64_to_s64() argument
129 if (val < basis1) { in linear_transform_s64_to_s64()
131 abs_val = basis1 - val; in linear_transform_s64_to_s64()
134 abs_val = val - basis1; in linear_transform_s64_to_s64()
/system/core/include/utils/
DList.h50 explicit _Node(const T& val) : mVal(val) {} in _Node() argument
56 inline void setVal(const T& val) { mVal = val; } in setVal() argument
207 void push_front(const T& val) { insert(begin(), val); } in push_front() argument
208 void push_back(const T& val) { insert(end(), val); } in push_back() argument
211 iterator insert(iterator posn, const T& val) in insert() argument
213 _Node* newNode = new _Node(val); // alloc & copy-construct in insert()
/system/core/include/sysutils/
DList.h51 explicit _Node(const T& val) : mVal(val) {} in _Node() argument
57 inline void setVal(const T& val) { mVal = val; } in setVal() argument
208 void push_front(const T& val) { insert(begin(), val); } in push_front() argument
209 void push_back(const T& val) { insert(end(), val); } in push_back() argument
212 iterator insert(iterator posn, const T& val) in insert() argument
214 _Node* newNode = new _Node(val); // alloc & copy-construct in insert()
/system/netd/
DList.h51 explicit _Node(const T& val) : mVal(val) {} in _Node() argument
57 inline void setVal(const T& val) { mVal = val; } in setVal() argument
208 void push_front(const T& val) { insert(begin(), val); } in push_front() argument
209 void push_back(const T& val) { insert(end(), val); } in push_back() argument
212 iterator insert(iterator posn, const T& val) in insert() argument
214 _Node* newNode = new _Node(val); // alloc & copy-construct in insert()
/system/core/libsync/
Dsync_test.c93 unsigned val = i + j * 3 + 1; in main() local
95 int fd = sw_sync_fence_create(sync_timeline_fd, str, val); in main()
97 printf("can't create sync pt %d: %s", val, strerror(errno)); in main()
141 void *val; in main() local
142 pthread_join(threads[i], &val); in main()
/system/extras/tests/include/
DtestUtil.h30 double ts2double(const struct timespec *val);
31 double tv2double(const struct timeval *val);
/system/core/debuggerd/arm/
Dmachine.c94 char val = (data >> (j*8)) & 0xff; in dump_memory()
95 if (val >= 0x20 && val < 0x7f) { in dump_memory()
96 *asc_out++ = val; in dump_memory()
/system/media/camera/docs/
Dmetadata_helpers_test.py10 for (idx, val) in enumerate(expected_list):
11 self.assertEquals(val,
Dcamera_metadata_tags.mako100 % for val in entry.enum.values:
101 % if val.id is None:
102 ${entry.name | csym}_${val.name},
104 ${'%s_%s'%(csym(entry.name), val.name) | pad(65)} = ${val.id},
/system/core/debuggerd/mips/
Dmachine.c85 char val = (data >> (j*8)) & 0xff; in dump_memory() local
86 if (val >= 0x20 && val < 0x7f) { in dump_memory()
87 *asc_out++ = val; in dump_memory()
/system/core/libcutils/
Dstr_parms.c241 int str_parms_get_str(struct str_parms *str_parms, const char *key, char *val, in str_parms_get_str() argument
248 return strlcpy(val, value, len); in str_parms_get_str()
253 int str_parms_get_int(struct str_parms *str_parms, const char *key, int *val) in str_parms_get_int() argument
262 *val = (int)strtol(value, &end, 0); in str_parms_get_int()
270 float *val) in str_parms_get_float() argument
/system/extras/tests/directiotest/
Ddirectiotest.c141 int val = data[i]; in dump_hex() local
146 printf("%02x ", val); in dump_hex()
147 ascii_buf[off] = isprint(val) ? val : '.'; in dump_hex()
/system/core/fastboot/
Dfastboot.c457 char *val[MAX_OPTIONS]; in setup_requirement_line() local
483 val[0] = x + 1; in setup_requirement_line()
486 x = strchr(val[count - 1],'|'); in setup_requirement_line()
489 val[count] = x + 1; in setup_requirement_line()
493 for(n = 0; n < count; n++) val[n] = strip(val[n]); in setup_requirement_line()
505 out[n] = strdup(strip(val[n])); in setup_requirement_line()
923 unsigned long val; in main() local
925 val = strtoul(optarg, &endptr, 0); in main()
926 if (!endptr || *endptr != '\0' || (val & ~0xffff)) in main()
928 vendor_id = (unsigned short)val; in main()

123