/system/extras/tests/schedtest/ |
H A D | schedtest.c | 29 long max = 0; local 40 if (usec > max) max = usec; 43 printf("max %ld\tavg %ld\n", max, avg); 44 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 strlcpy(openFilename, link, max); 128 int Process::checkFileMaps(int pid, const char *mountPoint, char *openFilename, size_t max) { argument 142 memset(openFilename, 0, max); [all...] |
/system/core/libutils/ |
H A D | primes.py | 39 max = 2**31 - 1 variable 40 while n < max:
|
/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/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/workloads/ |
H A D | capture.sh | 29 max=$2 31 if [ $max -eq 0 ]; then 34 ((out=in*scale/max))
|
/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 | 37 unsigned long max; member in struct:latency_entry 329 unsigned long count, max, total; local 346 sscanf(line, "%ld %ld %ld %s", &count, &total, &max, reason); 347 if (max > 0 || total > 0) { 351 if (max > e->max) 352 e->max = max; 357 e->max = max; [all...] |
/system/bt/btif/include/ |
H A D | btif_av_co.h | 172 BOOLEAN bta_av_co_get_remote_bitpool_pref(UINT8 *min, UINT8 *max);
|
/system/extras/perfprofd/quipper/ |
H A D | perf_internals.h | 35 #undef max macro
|
/system/bt/stack/mcap/ |
H A D | mca_dsm.c | 178 int i, max; local 186 max = p_cs->max_mdl; 187 for (i=0; i<max; i++, p_dcb_tmp++) 218 int i, max; local 228 max = p_cs->max_mdl; 229 for (i=0; i<max; i++, p_dcb++) 240 max = 0; 243 left = max - count;
|
/system/core/libsysutils/src/ |
H A D | SocketListener.cpp | 160 int max = -1; local 165 max = mSock; 170 if (mCtrlPipe[0] > max) 171 max = mCtrlPipe[0]; 178 if (fd > max) { 179 max = fd; 183 SLOGV("mListen=%d, max=%d, mSocketName=%s", mListen, max, mSocketName); 184 if ((rc = select(max + 1, &read_fds, NULL, NULL, NULL)) < 0) { 187 SLOGE("select failed (%s) mListen=%d, max [all...] |
/system/bt/bta/ag/ |
H A D | bta_ag_at.h | 53 INT16 max; /* maximum value for int arg */ member in struct:__anon4
|
/system/bt/stack/btm/ |
H A D | btm_pm.c | 217 /* already in the requested mode and the current interval has less latency than the max */ 219 ((p_mode->mode & BTM_PM_MD_FORCE) && (p_mode->max >= p_cb->interval) && (p_mode->min <= p_cb->interval)) || 220 ((p_mode->mode & BTM_PM_MD_FORCE)==0 && (p_mode->max >= p_cb->interval)) ) 222 BTM_TRACE_DEBUG( "BTM_SetPowerMode: mode:0x%x interval %d max:%d, min:%d", p_mode->mode, p_cb->interval, p_mode->max, p_mode->min); 486 p_res->max = (p_md1->max < p_md2->max)? (p_md1->max) : (p_md2->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/extras/perfprofd/quipper/kernel-headers/tools/perf/util/include/linux/kernel/ |
H A D | kernel.h | 35 #ifndef max 36 #define max(x,y) ({ typeof(x) _max1 = (x); typeof(y) _max2 = (y); (void) (& _max1 == & _max2); _max1 > _max2 ? _max1 : _max2; }) macro
|
/system/bt/bta/hf_client/ |
H A D | bta_hf_client_at.h | 34 INT16 max; /* maximum value for int arg */ member in struct:__anon194
|
/system/bt/embdrv/sbc/decoder/srce/ |
H A D | bitalloc-sbc.c | 121 OI_UINT8 max = common->maxBitneed; local 124 return max;
|
/system/core/logd/ |
H A D | LogStatistics.cpp | 17 #include <algorithm> // std::max 191 ssize_t drop_len = std::max(pruned.length() + 1, pruned_len); 192 ssize_t size_len = std::max(size.length() + 1, 320 name.appendFormat("%*s%s", (int)std::max(6 - name.length(), (size_t)1), "", n); 373 name.appendFormat("%*s%s", (int)std::max(12 - name.length(), (size_t)1), "", n); 377 name.appendFormat("%*s%s", (int)std::max(12 - name.length(), (size_t)1), "", un); 427 name.appendFormat("%*s%s", (int)std::max(12 - name.length(), (size_t)1), "", n); 432 name.appendFormat("%*s%s", (int)std::max(12 - name.length(), (size_t)1), "", un); 487 name.appendFormat("%*s%s", (int)std::max(14 - name.length(), (size_t)1), "", n);
|
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/include/linux/kernel/ |
H A D | kernel.h | 33 #ifndef max 34 #define max(x, y) ({ \ macro
|
/system/vold/bench/ |
H A D | benchgen.py | 225 f.size = max(f.size, int(e.args[2]) + int(e.args[3])) 233 f.size = max(f.size, int(e.args[2]) + int(e.args[3])) 255 f.size = max(f.size, count + offset)
|
/system/extras/micro_bench/ |
H A D | micro_bench.cpp | 148 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 149 printf(" %s %zux%zu bytes average %.2f MB/s std dev %.4f min %.2f MB/s max %.2f MB/s\n", 151 max/1024.0); 184 double running_avg, double square_avg, double min, double max) { 185 printf(" %s %zux%zux%zu bytes average %.2f MB/s std dev %.4f min %.2f MB/s max %.2f MB/s\n", 187 computeStdDev(running_avg, square_avg)/1024.0, min/1024.0, max/1024.0); 195 double min = 0.0, max = 0.0, running_avg = 0.0, square_avg = 0.0; \ 208 if (avg > max) { \ 209 max = avg; \ 231 std_dev, min, max)); 182 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...] |