/system/chre/apps/chqts/src/general_test/ |
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)) {
|
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)) {
|
/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/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/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_test.h | 47 static unsigned int def, min, max; member in class:AslrMmapTest
|
H A D | aslr_test.cpp | 159 unsigned int AslrMmapTest::def, AslrMmapTest::min, AslrMmapTest::max; member in class:AslrMmapTest 168 max = 32; 180 max = 16; 196 max = 24; 209 max = 16;
|
/system/nfc/src/nfc/nfc/ |
H A D | nfc_utils.cc | 48 int xx, max = NCI_MAX_CONN_CBS; local 52 for (xx = 0; xx < max; xx++) {
|
/system/bt/bta/ag/ |
H A D | bta_ag_at.h | 53 int16_t max; /* maximum value for int arg */ member in struct:__anon10
|
/system/bt/vendor_libs/test_vendor_lib/src/ |
H A D | broken_adv.cc | 146 static void RandomizeAdvertisement(vector<uint8_t>& ad, size_t max) { argument 147 uint8_t length = random_length(max); 148 uint8_t data_length = random_data_length(length, max);
|
/system/core/init/ |
H A D | security.cpp | 86 static bool SetHighestAvailableOptionValue(std::string path, int min, int max) { argument 93 int current = max;
|
/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/nvram/messages/ |
H A D | io.cpp | 34 T max(T x, T y) { function in namespace:nvram::__anon2574 225 if (!blob_->Resize(max<size_t>(blob_->size() * 2, 32))) {
|
/system/bt/embdrv/sbc/decoder/srce/ |
H A D | bitalloc-sbc.c | 120 uint8_t max = common->maxBitneed; local 123 return max;
|
/system/core/base/ |
H A D | properties.cpp | 63 T GetIntProperty(const std::string& key, T default_value, T min, T max) { argument 66 if (!value.empty() && android::base::ParseInt(value, &result, min, max)) return result; 71 T GetUintProperty(const std::string& key, T default_value, T max) { argument 74 if (!value.empty() && android::base::ParseUint(value, &result, max)) return result; 111 ts.tv_sec = std::min<std::chrono::seconds::rep>(s.count(), std::numeric_limits<time_t>::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/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/tests/ext4/ |
H A D | rand_emmc_perf.c | 55 struct timeval max = { 0, 0 }; local 74 if (timercmp(&t, &max, >)) { 75 max = t; 87 max_usecs = (max.tv_sec * 1000000LL) + max.tv_usec;
|
/system/update_engine/ |
H A D | metrics_reporter_omaha_unittest.cc | 385 int max = 5; local 388 SendEnumToUMA(metrics::kMetricInstallDateProvisioningSource, source, max)) 391 reporter_.ReportInstallDateProvisioningSource(source, max);
|
/system/bt/stack/mcap/ |
H A D | mca_api.cc | 266 int i, max; local 276 max = MCA_NUM_MDLS * MCA_NUM_LINKS; 277 p_dcb = &mca_cb.dcb[i * max]; 279 for (i = 0; i < max; i++, p_dcb++) {
|
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/core/libutils/ |
H A D | VectorImpl.cpp | 40 static inline size_t max(size_t a, size_t b) { function in namespace:android 404 new_capacity = max(kMinVectorCapacity, new_capacity); 472 const size_t new_capacity = max(kMinVectorCapacity, new_size * 2);
|
/system/extras/latencytop/ |
H A D | latencytop.c | 37 unsigned long max; member in struct:latency_entry 318 unsigned long count, max, total; local 335 sscanf(line, "%ld %ld %ld %s", &count, &total, &max, reason); 336 if (max > 0 || total > 0) { 340 if (max > e->max) 341 e->max = max; 346 e->max = max; [all...] |