/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/core/base/include/android-base/ |
H A D | parsedouble.h | 29 // Optionally allows the caller to define a 'min' and 'max' beyond which 33 double max = std::numeric_limits<double>::max()) { 40 if (result < min || max < result) {
|
H A D | parseint.h | 30 // that value. Optionally allows the caller to define a 'max' beyond which 35 T max = std::numeric_limits<T>::max()) { 43 if (max < result) { 53 T max = std::numeric_limits<T>::max()) { 54 return ParseUint(s.c_str(), out, max); 58 // that value. Optionally allows the caller to define a 'min' and 'max 64 T max = std::numeric_limits<T>::max()) { [all...] |
H A D | properties.h | 47 T max = std::numeric_limits<T>::max()); 54 T max = std::numeric_limits<T>::max()); 66 std::chrono::milliseconds relative_timeout = std::chrono::milliseconds::max()); 72 std::chrono::milliseconds::max());
|
/system/update_engine/update_manager/ |
H A D | prng.h | 36 // Returns a random integer uniformly distributed in the range [min, max]. 37 int RandMinMax(int min, int max) { argument 38 DCHECK_LE(min, max); 39 return std::uniform_int_distribution<>(min, max)(gen_);
|
/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/chre/apps/chqts/src/general_test/ |
H A D | cell_info_lte.cc | 50 constexpr int32_t max = INT32_MAX; local 55 } else if (!isBoundedInt32(strength.rsrp, 44, 140, max)) { 58 } else if (!isBoundedInt32(strength.rsrq, 3, 20, max)) { 62 } else if (!isBoundedInt32(strength.rssnr, -200, 300, max)) { 66 } else if (!isBoundedInt32(strength.cqi, 0, 15, max)) { 69 } else if (!isBoundedInt32(strength.timingAdvance, 0, max, max)) {
|
H A D | cell_info_cdma.cc | 23 constexpr int32_t max = INT32_MAX; local 25 if (!isBoundedInt32(identity.networkId, 0, 65535, max)) { 28 } else if (!isBoundedInt32(identity.systemId, 0, 32767, max)) { 31 } else if (!isBoundedInt32(identity.basestationId, 0, 65535, max)) { 34 } else if (!isBoundedInt32(identity.longitude, -2592000, 2592000, max)) { 36 } else if (!isBoundedInt32(identity.latitude, -1296000, 1296000, max)) {
|
/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); 33 static int readSymLink(const char *path, char *link, size_t max);
|
H A D | Process.cpp | 42 int Process::readSymLink(const char *path, char *link, size_t max) { argument 52 length = readlink(path, link, 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); 143 strlcpy(openFilename, path, max);
|
/system/extras/simpleperf/runtest/ |
H A D | runtest.conf | 6 <symbol name="Function1()" min="90" max="100"/> 10 <symbol name="main" min="90" max="100"/> 24 <symbol name="Function1()" min="30" max="70"/> 25 <symbol name="Function2()" min="30" max="70"/> 29 <symbol name="main" min="90" max="100"/> 47 <symbol name="ParentFunction()" min="10" max="90"/> 48 <symbol name="ChildFunction()" min="10" max="90"/> 69 <symbol name="MainThreadFunction()" min="20" max="80"/> 70 <symbol name="ChildThreadFunction(void*)" min="20" max="80"/> 74 <symbol name="main" min="20" max [all...] |
/system/connectivity/wifilogd/tests/ |
H A D | local_utils_unittest.cpp | 61 EXPECT_EQ(std::numeric_limits<uint8_t>::max(), GetMaxVal<uint8_t>()); 62 EXPECT_EQ(std::numeric_limits<uint16_t>::max(), GetMaxVal<uint16_t>()); 63 EXPECT_EQ(std::numeric_limits<uint32_t>::max(), GetMaxVal<uint32_t>()); 64 EXPECT_EQ(std::numeric_limits<uint64_t>::max(), GetMaxVal<uint64_t>()); 68 EXPECT_EQ(std::numeric_limits<int8_t>::max(), GetMaxVal<int8_t>()); 69 EXPECT_EQ(std::numeric_limits<int16_t>::max(), GetMaxVal<int16_t>()); 70 EXPECT_EQ(std::numeric_limits<int32_t>::max(), GetMaxVal<int32_t>()); 71 EXPECT_EQ(std::numeric_limits<int64_t>::max(), GetMaxVal<int64_t>()); 75 EXPECT_EQ(std::numeric_limits<uint8_t>::max(), GetMaxVal(uint8_t{})); 76 EXPECT_EQ(std::numeric_limits<uint16_t>::max(), GetMaxVa [all...] |
/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/kernel.config/ |
H A D | aslr_rec_test.cpp | 65 EXPECT_FALSE(set_mmap_rnd_bits(max + 1, false)); 66 EXPECT_TRUE(set_mmap_rnd_bits(max, false)); 67 EXPECT_EQ(max, get_mmap_rnd_bits(false)); 99 /* make sure observed entropy is what we expect when we set max value */ 105 EXPECT_TRUE(set_mmap_rnd_bits(max, false)); 106 EXPECT_EQ(max, calc_mmap_entropy(path, lib, 16)); 110 /* make sure observed compat entropy is what we expect when we set max value */
|
/system/extras/memory_replay/ |
H A D | Action.cpp | 172 size_t max = MAX(sizeof(EndThreadAction), sizeof(MallocAction)); local 173 max = MAX(max, sizeof(CallocAction)); 174 max = MAX(max, sizeof(ReallocAction)); 175 max = MAX(max, sizeof(MemalignAction)); 176 return MAX(max, sizeof(FreeAction));
|
/system/update_engine/payload_consumer/ |
H A D | payload_constants.h | 70 const uint64_t kSparseHole = std::numeric_limits<uint64_t>::max();
|
/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 | 131 unsigned int max; local 139 max = pcm_params_get_max(params, PCM_PARAM_RATE); 140 EXPECT_LE(min, max); 141 /* printf(" Rate:\tmin=%uHz\tmax=%uHz\n", min, max); */ 143 max = pcm_params_get_max(params, PCM_PARAM_CHANNELS); 144 EXPECT_LE(min, max); 145 /* printf(" Channels:\tmin=%u\t\tmax=%u\n", min, max); */ 147 max = pcm_params_get_max(params, PCM_PARAM_SAMPLE_BITS); 148 EXPECT_LE(min, max); 149 /* 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/extras/simpleperf/inferno/ |
H A D | data_types.py | 109 max = 0 112 if depth > max: 113 max = depth 114 return max +
|
/system/core/libsysutils/src/ |
H A D | SocketListener.cpp | 162 int max = -1; local 167 max = mSock; 172 if (mCtrlPipe[0] > max) 173 max = mCtrlPipe[0]; 180 if (fd > max) { 181 max = fd; 185 SLOGV("mListen=%d, max=%d, mSocketName=%s", mListen, max, mSocketName); 186 if ((rc = select(max + 1, &read_fds, NULL, NULL, NULL)) < 0) { 189 SLOGE("select failed (%s) mListen=%d, max [all...] |
/system/bt/stack/mcap/ |
H A D | mca_dsm.cc | 148 int i, max; local 155 max = p_cs->max_mdl; 156 for (i = 0; i < max; i++, p_dcb_tmp++) { 184 int i, max; local 193 max = p_cs->max_mdl; 194 for (i = 0; i < max; i++, p_dcb++) { 201 max = 0; 204 left = max - count;
|
/system/bt/bta/ag/ |
H A D | bta_ag_at.h | 53 int16_t max; /* maximum value for int arg */ member in struct:__anon5
|
/system/bt/osi/src/ |
H A D | metrics_linux.cc | 71 audio_duration_ms = std::max(static_cast<int64_t>(0), audio_duration_ms); 84 std::max(media_timer_max_ms, metrics.media_timer_max_ms); 99 std::max(buffer_overruns_max_count, metrics.buffer_overruns_max_count); 103 std::max(static_cast<int32_t>(0), buffer_overruns_total);
|