Searched refs:max (Results 1 - 23 of 23) sorted by relevance

/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/vold/
H A DProcess.h26 static int checkFileMaps(int pid, const char *path, char *openFilename, size_t max);
28 static int checkFileDescriptorSymLinks(int pid, const char *mountPoint, char *openFilename, size_t max);
29 static void getProcessName(int pid, char *buffer, size_t max);
31 static int readSymLink(const char *path, char *link, size_t max);
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.h59 int getDeviceNodes(dev_t *devs, int max);
H A DVolume.h88 virtual int getDeviceNodes(dev_t *devs, int max) = 0;
H A DDirectVolume.cpp214 SLOGE("Dv:partAdd: ignoring part_num = %d (max: %d)\n", part_num, MAX_PARTITIONS-1);
354 int DirectVolume::getDeviceNodes(dev_t *devs, int max) { argument
365 if (i == max)
/system/core/toolbox/
H A Did.c36 int n, max; local
41 max = getgroups(64, list);
42 if (max < 0) max = 0;
48 if (max) {
51 for(n = 1; n < max; n++) {
H A Ddd.c781 * Copy variable length newline terminated records with a max size cbsz
784 * max in buffer: MAX(ibs, cbsz)
785 * max out buffer: obs + cbsz
817 * Copy records (max cbsz size chunks) into the output buffer. The
897 * max in buffer: MAX(ibs, cbsz) + cbsz
898 * max out buffer: obs + cbsz
912 * Copy records (max cbsz size chunks) into the output buffer. The
1159 static long long strsuftoll(const char* name, const char* arg, int def, unsigned int max) argument
/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/core/include/cutils/
H A Dtztime.h52 size_t strftime_tz(char *s, size_t max, const char *format, const struct tm *tm, const struct strftime_locale *locale);
/system/core/libsysutils/src/
H A DSocketListener.cpp154 int max = -1; local
159 max = mSock;
164 if (mCtrlPipe[0] > max)
165 max = mCtrlPipe[0];
171 if (fd > max)
172 max = fd;
175 SLOGV("mListen=%d, max=%d, mSocketName=%s", mListen, max, mSocketName);
176 if ((rc = select(max + 1, &read_fds, NULL, NULL, NULL)) < 0) {
179 SLOGE("select failed (%s) mListen=%d, max
[all...]
/system/core/init/
H A Dlogo.c110 unsigned count, max; local
133 max = fb_width(&fb) * fb_height(&fb);
139 if (n > max)
143 max -= n;
/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/extras/tests/bionic/libc/common/
H A Dbench_pthread.c96 int64_t min, max, avg, median; local
112 /* the minimum is the first, the max the last */
114 max = stats[max_index];
125 max*1./SUBCOUNT,
/system/core/sh/
H A Darith_lex.l54 #define YY_INPUT(buf,result,max) \
H A Darith_lex.c522 #define YY_INPUT(buf,result,max) \
/system/core/libpixelflinger/
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...]
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);
/system/core/libpixelflinger/tinyutils/
H A DVectorImpl.cpp38 static inline size_t max(size_t a, size_t b) { function in namespace:android
283 const size_t new_capacity = max(kMinVectorCapacity, ((new_size*3)+1)/2);
336 const size_t new_capacity = max(kMinVectorCapacity, new_size*2);
/system/core/logcat/
H A Dlogcat.cpp253 int max = 0; local
262 if (dev->fd > max) {
263 max = dev->fd;
274 result = select(max + 1, &readset, NULL, NULL, sleep ? NULL : &timeout);
403 " -n <count> Sets max number of rotated logs to <count>, default 4\n"
764 "max entry is %db, max payload is %db\n", dev->device,
/system/extras/tests/sdcard/
H A Dplot_sdcard.py118 self.duration = max(self.duration, dataset.duration)
/system/core/charger/
H A Dcharger.c46 #ifndef max
47 #define max(a,b) ((a) > (b) ? (a) : (b)) macro
885 timeout = max(0, next_event - now);
/system/core/libcutils/
H A Dtztime.c56 /* Complex computations to determine the min/max of time_t depending
178 int max));
677 getnum(strp, nump, min, max)
681 const int max;
691 if (num > max)
1567 ** just 32 bits, its a max of 32 iterations (even at 64 bits it

Completed in 218 milliseconds