/system/core/toolbox/upstream-netbsd/lib/libc/gen/ |
D | getbsize.c | 57 long n, max, mul, blocksize; in __weak_alias() local 76 max = MAXB / GB; in __weak_alias() 81 max = MAXB / KB; in __weak_alias() 86 max = MAXB / MB; in __weak_alias() 90 max = MAXB; in __weak_alias() 97 max = 0; in __weak_alias() 100 if (n > max) { in __weak_alias() 102 n = max; in __weak_alias()
|
D | humanize_number.c | 52 int64_t divisor, max, post = 1; in humanize_number() local 124 for (max = 100, i = len - baselen; i-- > 0;) in humanize_number() 125 max *= 10; in humanize_number() 132 for (i = 0; bytes >= max - 50 && i < maxscale; i++) in humanize_number()
|
/system/core/toolbox/ |
D | id.c | 33 int n, max; in id_main() local 36 max = getgroups(64, list); in id_main() 37 if (max < 0) max = 0; in id_main() 43 if (max) { in id_main() 46 for(n = 1; n < max; n++) { in id_main()
|
/system/extras/tests/schedtest/ |
D | schedtest.c | 28 long max = 0; in main() local 39 if (usec > max) max = usec; in main() 42 printf("max %ld\tavg %ld\n", max, avg); in main() 43 max = 0; in main()
|
/system/core/toolbox/upstream-netbsd/lib/libc/stdlib/ |
D | strsuftoll.c | 117 long long min, long long max) in __weak_alias() 122 result = strsuftollx(desc, val, min, max, errbuf, sizeof(errbuf)); in __weak_alias() 135 long long min, long long max, char *ebuf, size_t ebuflen, size_t depth) in __strsuftollx() argument 211 num *= __strsuftollx(desc, expr + 1, min, max, ebuf, ebuflen, in __strsuftollx() 233 if (num > max) { in __strsuftollx() 236 desc, (long long)num, (long long)max); in __strsuftollx() 245 long long min, long long max, char *ebuf, size_t ebuflen) in strsuftollx() argument 247 return __strsuftollx(desc, val, min, max, ebuf, ebuflen, 0); in strsuftollx()
|
/system/extras/tests/audio/alsa/ |
D | pcmtest.cpp | 134 unsigned int max; in getPcmParams() local 142 max = pcm_params_get_max(params, PCM_PARAM_RATE); in getPcmParams() 143 EXPECT_LE(min, max); in getPcmParams() 146 max = pcm_params_get_max(params, PCM_PARAM_CHANNELS); in getPcmParams() 147 EXPECT_LE(min, max); in getPcmParams() 150 max = pcm_params_get_max(params, PCM_PARAM_SAMPLE_BITS); in getPcmParams() 151 EXPECT_LE(min, max); in getPcmParams() 154 max = pcm_params_get_max(params, PCM_PARAM_PERIOD_SIZE); in getPcmParams() 155 EXPECT_LE(min, max); in getPcmParams() 158 max = pcm_params_get_max(params, PCM_PARAM_PERIODS); in getPcmParams() [all …]
|
/system/vold/ |
D | Process.cpp | 35 int Process::readSymLink(const char *path, char *link, size_t max) { in readSymLink() argument 45 length = readlink(path, link, max- 1); in readSymLink() 66 void Process::getProcessName(int pid, char *buffer, size_t max) { in getProcessName() argument 68 snprintf(buffer, max, "/proc/%d/cmdline", pid); in getProcessName() 73 int length = read(fd, buffer, max - 1); in getProcessName() 83 …ess::checkFileDescriptorSymLinks(int pid, const char *mountPoint, char *openFilename, size_t max) { in checkFileDescriptorSymLinks() argument 112 memset(openFilename, 0, max); in checkFileDescriptorSymLinks() 113 strncpy(openFilename, link, max-1); in checkFileDescriptorSymLinks() 128 int Process::checkFileMaps(int pid, const char *mountPoint, char *openFilename, size_t max) { in checkFileMaps() argument 142 memset(openFilename, 0, max); in checkFileMaps() [all …]
|
D | Process.h | 28 static int checkFileMaps(int pid, const char *path, char *openFilename, size_t max); 30 …c int checkFileDescriptorSymLinks(int pid, const char *mountPoint, char *openFilename, size_t max); 31 static void getProcessName(int pid, char *buffer, size_t max); 33 static int readSymLink(const char *path, char *link, size_t max);
|
D | DirectVolume.h | 73 int getDeviceNodes(dev_t *devs, int max);
|
D | Volume.h | 98 virtual int getDeviceNodes(dev_t *devs, int max) = 0;
|
D | DirectVolume.cpp | 397 int DirectVolume::getDeviceNodes(dev_t *devs, int max) { in getDeviceNodes() argument 408 if (i == max) in getDeviceNodes()
|
/system/extras/latencytop/ |
D | latencytop.c | 36 unsigned long max; member 328 unsigned long count, max, total; in read_latency_file() local 345 sscanf(line, "%ld %ld %ld %s", &count, &total, &max, reason); in read_latency_file() 346 if (max > 0 || total > 0) { in read_latency_file() 350 if (max > e->max) in read_latency_file() 351 e->max = max; in read_latency_file() 356 e->max = max; in read_latency_file() 398 e->max / 1000, (e->max % 1000) / 10, in print_latency_entries() 441 return numcmp(pb->max, pa->max); in lat_cmp()
|
/system/core/libsysutils/src/ |
D | SocketListener.cpp | 159 int max = -1; in runListener() local 164 max = mSock; in runListener() 169 if (mCtrlPipe[0] > max) in runListener() 170 max = mCtrlPipe[0]; in runListener() 177 if (fd > max) { in runListener() 178 max = fd; in runListener() 182 SLOGV("mListen=%d, max=%d, mSocketName=%s", mListen, max, mSocketName); in runListener() 183 if ((rc = select(max + 1, &read_fds, NULL, NULL, NULL)) < 0) { in runListener() 186 SLOGE("select failed (%s) mListen=%d, max=%d", strerror(errno), mListen, max); in runListener()
|
/system/core/libutils/ |
D | primes.py | 39 max = 2**31 - 1 variable 40 while n < max:
|
D | VectorImpl.cpp | 39 static inline size_t max(size_t a, size_t b) { in max() function 400 new_capacity = max(kMinVectorCapacity, new_capacity); in _grow() 468 const size_t new_capacity = max(kMinVectorCapacity, new_size * 2); in _shrink()
|
/system/extras/tests/ext4/ |
D | rand_emmc_perf.c | 55 struct timeval max = { 0 }; in print_stats() local 74 if (timercmp(&t, &max, >)) { in print_stats() 75 max = t; in print_stats() 87 max_usecs = (max.tv_sec * 1000000LL) + max.tv_usec; in print_stats()
|
/system/extras/tests/binder/benchmarks/ |
D | binderAddInts.cpp | 243 double min = FLT_MAX, max = 0.0, total = 0.0; // Time in seconds for all in client() local 288 max = (delta > max) ? delta : max; in client() 303 << " max: " << max in client()
|
/system/core/logcat/tests/ |
D | logcat_test.cpp | 286 int size, consumed, max, payload; in TEST() local 290 size = consumed = max = payload = 0; in TEST() 296 &max, &payload)) { in TEST() 329 EXPECT_GT(full_size, max); in TEST() 330 EXPECT_GT(max, payload); in TEST() 333 && (full_size > max) in TEST() 334 && (max > payload)) { in TEST()
|
/system/extras/micro_bench/ |
D | micro_bench.cpp | 147 …ar *name, size_t size, size_t copies, double running_avg, double std_dev, double min, double max) { in printSummary() argument 150 max/1024.0); in printSummary() 183 double running_avg, double square_avg, double min, double max) { in printColdSummary() argument 186 computeStdDev(running_avg, square_avg)/1024.0, min/1024.0, max/1024.0); in printColdSummary() 194 double min = 0.0, max = 0.0, running_avg = 0.0, square_avg = 0.0; \ 207 if (avg > max) { \ 208 max = avg; \ 230 std_dev, min, max)); 256 running_avg, square_avg, min, max)); 379 min, max)); in benchmarkSleep() [all …]
|
/system/core/logd/ |
D | LogBuffer.cpp | 443 log_time max = start; in flushTo() local 466 max = element->flushTo(reader); in flushTo() 468 if (max == element->FLUSH_ERROR) { in flushTo() 469 return max; in flushTo() 476 return max; in flushTo()
|
/system/core/libpixelflinger/ |
D | trap.cpp | 64 static inline int max(int a, int b) CONST; 66 static inline int max(int a, int b, int c) CONST; 77 inline int max(int a, int b) { in max() function 83 inline int max(int a, int b, int c) { in max() function 84 return max(a,max(b,c)); in max() 542 const int32_t bmaxx = TRI_CEIL( max(x0, x1, x2)) >> TRI_FRACTION_BITS; in trianglex_small() 543 const int32_t bmaxy = TRI_CEIL( max(y0, y1, y2)) >> TRI_FRACTION_BITS; in trianglex_small() 544 const int32_t minx = max(bminx, c->state.scissor.left); in trianglex_small() 545 const int32_t miny = max(bminy, c->state.scissor.top); in trianglex_small() 745 const int32_t xl = max(left_x >> TRI_ITERATORS_BITS, xmin); in triangle_sweep_edges() [all …]
|
D | pixelflinger.cpp | 78 static inline int max(int a, int b) CONST; 79 static inline int max(int a, int b) { in max() function 603 c->state.scissor.left = max(0, l); in ggl_set_scissor() 605 c->state.scissor.top = max(0, t); in ggl_set_scissor()
|
/system/core/lmkd/ |
D | lmkd.c | 442 int max = 0; in zoneinfo_parse_protection() local 448 if (zoneval > max) in zoneinfo_parse_protection() 449 max = zoneval; in zoneinfo_parse_protection() 452 return max; in zoneinfo_parse_protection()
|
/system/core/healthd/ |
D | healthd_mode_charger.cpp | 53 #ifndef max 54 #define max(a,b) ((a) > (b) ? (a) : (b)) macro 636 timeout = max(0, next_event - now); in healthd_mode_charger_preparetowait()
|
/system/media/camera/docs/ |
D | camera_metadata_tag_info.mako | 103 enum_value_max_len = max([len(value.name) for value in enum_values]) + 1
|