Home
last modified time | relevance | path

Searched refs:max (Results 1 – 24 of 24) sorted by relevance

/system/core/toolbox/
Did.c33 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()
Ddd.c1159 static long long strsuftoll(const char* name, const char* arg, int def, unsigned int max) in strsuftoll() argument
/system/extras/tests/schedtest/
Dschedtest.c28 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/vold/
DProcess.cpp35 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 …]
DProcess.h26 static int checkFileMaps(int pid, const char *path, char *openFilename, size_t max);
28 …c 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);
DDirectVolume.h59 int getDeviceNodes(dev_t *devs, int max);
DVolume.h88 virtual int getDeviceNodes(dev_t *devs, int max) = 0;
DDirectVolume.cpp354 int DirectVolume::getDeviceNodes(dev_t *devs, int max) { in getDeviceNodes() argument
365 if (i == max) in getDeviceNodes()
/system/core/libsysutils/src/
DSocketListener.cpp154 int max = -1; in runListener() local
159 max = mSock; in runListener()
164 if (mCtrlPipe[0] > max) in runListener()
165 max = mCtrlPipe[0]; in runListener()
171 if (fd > max) in runListener()
172 max = fd; in runListener()
175 SLOGV("mListen=%d, max=%d, mSocketName=%s", mListen, max, mSocketName); in runListener()
176 if ((rc = select(max + 1, &read_fds, NULL, NULL, NULL)) < 0) { in runListener()
179 SLOGE("select failed (%s) mListen=%d, max=%d", strerror(errno), mListen, max); in runListener()
/system/extras/latencytop/
Dlatencytop.c36 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/init/
Dlogo.c110 unsigned count, max; in load_565rle_image() local
133 max = fb_width(&fb) * fb_height(&fb); in load_565rle_image()
139 if (n > max) in load_565rle_image()
143 max -= n; in load_565rle_image()
Dreadme.txt213 setrlimit <resource> <cur> <max>
/system/extras/tests/bionic/libc/common/
Dbench_pthread.c96 int64_t min, max, avg, median; in filter_stats() local
114 max = stats[max_index]; in filter_stats()
125 max*1./SUBCOUNT, in filter_stats()
/system/extras/tests/binder/benchmarks/
DbinderAddInts.cpp243 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/libpixelflinger/
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) { 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 …]
Dpixelflinger.cpp78 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/sh/
Darith_lex.l54 #define YY_INPUT(buf,result,max) \ argument
Darith_lex.c522 #define YY_INPUT(buf,result,max) \ argument
/system/core/logcat/
Dlogcat.cpp253 int max = 0; in readLogLines() local
262 if (dev->fd > max) { in readLogLines()
263 max = dev->fd; in readLogLines()
274 result = select(max + 1, &readset, NULL, NULL, sleep ? NULL : &timeout); in readLogLines()
Devent.logtags70 75001 sqlite_mem_alarm_max (max|1|2)
/system/core/libpixelflinger/codeflinger/tinyutils/
DVectorImpl.cpp40 static inline size_t max(size_t a, size_t b) { in max() function
285 const size_t new_capacity = max(kMinVectorCapacity, ((new_size*3)+1)/2); in _grow()
338 const size_t new_capacity = max(kMinVectorCapacity, new_size*2); in _shrink()
/system/media/camera/docs/
Dcamera_metadata_tag_info.mako103 enum_value_max_len = max([len(value.name) for value in enum_values]) + 1
/system/core/charger/
Dcharger.c50 #ifndef max
51 #define max(a,b) ((a) > (b) ? (a) : (b)) macro
909 timeout = max(0, next_event - now); in wait_next_event()
/system/extras/tests/sdcard/
Dplot_sdcard.py118 self.duration = max(self.duration, dataset.duration)