Searched defs:max (Results 1 - 22 of 22) sorted by relevance

/system/core/libutils/
H A Dprimes.py39 max = 2**31 - 1 variable
40 while n < max:
H A DVectorImpl.cpp38 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/extras/tests/schedtest/
H A Dschedtest.c28 long max = 0; local
39 if (usec > max) max = usec;
42 printf("max %ld\tavg %ld\n", max, avg);
43 max = 0;
/system/core/toolbox/
H A Did.c33 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/gen/
H A Dgetbsize.c57 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 Dhumanize_number.c52 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/upstream-netbsd/lib/libc/stdlib/
H A Dstrsuftoll.c117 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/core/libsysutils/src/
H A DSocketListener.cpp159 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/audio/alsa/
H A Dpcmtest.cpp134 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/tests/ext4/
H A Drand_emmc_perf.c55 struct timeval max = { 0 }; local
74 if (timercmp(&t, &max, >)) {
75 max = t;
87 max_usecs = (max.tv_sec * 1000000LL) + max.tv_usec;
/system/vold/
H A DProcess.cpp35 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 DDirectVolume.cpp254 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/logcat/tests/
H A Dlogcat_test.cpp286 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/extras/latencytop/
H A Dlatencytop.c36 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/extras/tests/binder/benchmarks/
H A DbinderAddInts.cpp243 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/core/logd/
H A DLogBuffer.cpp443 log_time max = start; local
466 max = element->flushTo(reader);
468 if (max == element->FLUSH_ERROR) {
469 return max;
476 return max;
/system/core/libpixelflinger/codeflinger/tinyutils/
H A DVectorImpl.cpp40 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/libpixelflinger/
H A Dpixelflinger.cpp78 static inline int max(int a, int b) CONST;
79 static inline int max(int a, int b) { function in namespace:android
603 c->state.scissor.left = max(0, l);
605 c->state.scissor.top = max(0, t);
H A Dtrap.cpp64 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/extras/micro_bench/
H A Dmicro_bench.cpp147 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/healthd/
H A Dhealthd_mode_charger.cpp53 #ifndef max
54 #define max(a,b) ((a) > (b) ? (a) : (b)) macro
636 timeout = max(0, next_event - now);
/system/core/lmkd/
H A Dlmkd.c442 int max = 0; local
448 if (zoneval > max)
449 max = zoneval;
452 return max;

Completed in 6041 milliseconds