/system/extras/tests/schedtest/ |
H A D | schedtest.c | 28 long max = 0; local 39 if (usec > max) max = usec; 42 printf("max %ld\tavg %ld\n", max, avg); 43 max = 0;
|
/system/vold/ |
H A D | Process.h | 28 static int checkFileMaps(int pid, const char *path, char *openFilename, size_t max); 30 static 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);
|
H A D | Process.cpp | 35 int Process::readSymLink(const char *path, char *link, size_t max) { argument 45 length = readlink(path, link, max- 1); 66 void Process::getProcessName(int pid, char *buffer, size_t max) { argument 68 snprintf(buffer, max, "/proc/%d/cmdline", pid); 73 int length = read(fd, buffer, max - 1); 83 int Process::checkFileDescriptorSymLinks(int pid, const char *mountPoint, char *openFilename, size_t max) { argument 112 memset(openFilename, 0, max); 113 strncpy(openFilename, link, max-1); 128 int Process::checkFileMaps(int pid, const char *mountPoint, char *openFilename, size_t max) { argument 142 memset(openFilename, 0, max); [all...] |
H A D | DirectVolume.h | 73 int getDeviceNodes(dev_t *devs, int max);
|
H A D | Volume.h | 98 virtual int getDeviceNodes(dev_t *devs, int max) = 0;
|
H A D | DirectVolume.cpp | 254 SLOGE("Dv:partAdd: ignoring part_num = %d (max: %d)\n", part_num, MAX_PARTITIONS-1); 397 int DirectVolume::getDeviceNodes(dev_t *devs, int max) { argument 408 if (i == max)
|
/system/core/libutils/ |
H A D | primes.py | 39 max = 2**31 - 1 variable 40 while n < max:
|
H A D | VectorImpl.cpp | 38 static inline size_t max(size_t a, size_t b) { function in namespace:android 378 const size_t new_capacity = max(kMinVectorCapacity, ((new_size*3)+1)/2); 437 const size_t new_capacity = max(kMinVectorCapacity, new_size*2);
|
/system/core/toolbox/upstream-netbsd/lib/libc/gen/ |
H A D | getbsize.c | 57 long n, max, mul, blocksize; local 76 max = MAXB / GB; 81 max = MAXB / KB; 86 max = MAXB / MB; 90 max = MAXB; 97 max = 0; 100 if (n > max) { 102 n = max;
|
H A D | humanize_number.c | 52 int64_t divisor, max, post = 1; local 124 for (max = 100, i = len - baselen; i-- > 0;) 125 max *= 10; 132 for (i = 0; bytes >= max - 50 && i < maxscale; i++)
|
/system/core/toolbox/ |
H A D | id.c | 33 int n, max; local 36 max = getgroups(64, list); 37 if (max < 0) max = 0; 43 if (max) { 46 for(n = 1; n < max; n++) {
|
/system/core/toolbox/upstream-netbsd/lib/libc/stdlib/ |
H A D | strsuftoll.c | 117 long long min, long long max) 122 result = strsuftollx(desc, val, min, max, errbuf, sizeof(errbuf)); 135 long long min, long long max, char *ebuf, size_t ebuflen, size_t depth) 211 num *= __strsuftollx(desc, expr + 1, min, max, ebuf, ebuflen, 233 if (num > max) { 236 desc, (long long)num, (long long)max); 245 long long min, long long max, char *ebuf, size_t ebuflen) 247 return __strsuftollx(desc, val, min, max, ebuf, ebuflen, 0); 134 __strsuftollx(const char *desc, const char *val, long long min, long long max, char *ebuf, size_t ebuflen, size_t depth) argument 244 strsuftollx(const char *desc, const char *val, long long min, long long max, char *ebuf, size_t ebuflen) argument
|
/system/extras/tests/audio/alsa/ |
H A D | pcmtest.cpp | 134 unsigned int max; local 142 max = pcm_params_get_max(params, PCM_PARAM_RATE); 143 EXPECT_LE(min, max); 144 /* printf(" Rate:\tmin=%uHz\tmax=%uHz\n", min, max); */ 146 max = pcm_params_get_max(params, PCM_PARAM_CHANNELS); 147 EXPECT_LE(min, max); 148 /* printf(" Channels:\tmin=%u\t\tmax=%u\n", min, max); */ 150 max = pcm_params_get_max(params, PCM_PARAM_SAMPLE_BITS); 151 EXPECT_LE(min, max); 152 /* printf(" Sample bits:\tmin=%u\t\tmax=%u\n", min, max); */ [all...] |
/system/extras/latencytop/ |
H A D | latencytop.c | 36 unsigned long max; member in struct:latency_entry 328 unsigned long count, max, total; local 345 sscanf(line, "%ld %ld %ld %s", &count, &total, &max, reason); 346 if (max > 0 || total > 0) { 350 if (max > e->max) 351 e->max = max; 356 e->max = max; [all...] |
/system/core/libsysutils/src/ |
H A D | SocketListener.cpp | 159 int max = -1; local 164 max = mSock; 169 if (mCtrlPipe[0] > max) 170 max = mCtrlPipe[0]; 177 if (fd > max) { 178 max = fd; 182 SLOGV("mListen=%d, max=%d, mSocketName=%s", mListen, max, mSocketName); 183 if ((rc = select(max + 1, &read_fds, NULL, NULL, NULL)) < 0) { 186 SLOGE("select failed (%s) mListen=%d, max [all...] |
/system/extras/tests/binder/benchmarks/ |
H A D | binderAddInts.cpp | 243 double min = FLT_MAX, max = 0.0, total = 0.0; // Time in seconds for all local 288 max = (delta > max) ? delta : max; 303 << " max: " << max
|
/system/extras/tests/ext4/ |
H A D | rand_emmc_perf.c | 55 struct timeval max = { 0 }; local 74 if (timercmp(&t, &max, >)) { 75 max = t; 87 max_usecs = (max.tv_sec * 1000000LL) + max.tv_usec;
|
/system/core/logcat/tests/ |
H A D | logcat_test.cpp | 286 int size, consumed, max, payload; local 290 size = consumed = max = payload = 0; 294 " max entry is %db, max payload is %db", 296 &max, &payload)) { 329 EXPECT_GT(full_size, max); 330 EXPECT_GT(max, payload); 333 && (full_size > max) 334 && (max > payload)) {
|
/system/core/logd/ |
H A D | LogBuffer.cpp | 443 log_time max = start; local 466 max = element->flushTo(reader); 468 if (max == element->FLUSH_ERROR) { 469 return max; 476 return max;
|
/system/extras/micro_bench/ |
H A D | micro_bench.cpp | 147 static inline void printSummary(uint64_t /*time_ns*/, const char *name, size_t size, size_t copies, double running_avg, double std_dev, double min, double max) { argument 148 printf(" %s %zux%zu bytes average %.2f MB/s std dev %.4f min %.2f MB/s max %.2f MB/s\n", 150 max/1024.0); 183 double running_avg, double square_avg, double min, double max) { 184 printf(" %s %zux%zux%zu bytes average %.2f MB/s std dev %.4f min %.2f MB/s max %.2f MB/s\n", 186 computeStdDev(running_avg, square_avg)/1024.0, min/1024.0, max/1024.0); 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)); 181 printColdSummary( uint64_t , const char *name, size_t size, size_t copies, size_t num_buffers, double running_avg, double square_avg, double min, double max) argument [all...] |
/system/core/libpixelflinger/ |
H A 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) { function in namespace:android 83 inline int max(int a, int b, int c) { function in namespace:android 84 return max(a,max(b,c)); 542 const int32_t bmaxx = TRI_CEIL( max(x0, x1, x2)) >> TRI_FRACTION_BITS; 543 const int32_t bmaxy = TRI_CEIL( max(y0, y1, y2)) >> TRI_FRACTION_BITS; 544 const int32_t minx = max(bminx, c->state.scissor.left); 545 const int32_t miny = max(bmin [all...] |
/system/core/libpixelflinger/codeflinger/tinyutils/ |
H A D | VectorImpl.cpp | 40 static inline size_t max(size_t a, size_t b) { function in namespace:android::tinyutils 285 const size_t new_capacity = max(kMinVectorCapacity, ((new_size*3)+1)/2); 338 const size_t new_capacity = max(kMinVectorCapacity, new_size*2);
|
/system/core/lmkd/ |
H A D | lmkd.c | 442 int max = 0; local 448 if (zoneval > max) 449 max = zoneval; 452 return max;
|
/system/media/camera/docs/ |
H A D | camera_metadata_tag_info.mako | 103 enum_value_max_len = max([len(value.name) for value in enum_values]) + 1
|
/system/core/healthd/ |
H A 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);
|