Home
last modified time | relevance | path

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

12345678

/system/core/base/include/android-base/
Dparseint.h35 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);
64 T max = std::numeric_limits<T>::max()) {
72 if (result < min || max < result) {
83 T max = std::numeric_limits<T>::max()) {
84 return ParseInt(s.c_str(), out, min, max);
Dproperties.h47 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());
Dparsedouble.h33 double max = std::numeric_limits<double>::max()) {
40 if (result < min || max < result) {
/system/extras/simpleperf/runtest/
Druntest.conf6 <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="80"/>
[all …]
/system/connectivity/wifilogd/tests/
Dlocal_utils_unittest.cpp61 EXPECT_EQ(std::numeric_limits<uint8_t>::max(), GetMaxVal<uint8_t>()); in TEST()
62 EXPECT_EQ(std::numeric_limits<uint16_t>::max(), GetMaxVal<uint16_t>()); in TEST()
63 EXPECT_EQ(std::numeric_limits<uint32_t>::max(), GetMaxVal<uint32_t>()); in TEST()
64 EXPECT_EQ(std::numeric_limits<uint64_t>::max(), GetMaxVal<uint64_t>()); in TEST()
68 EXPECT_EQ(std::numeric_limits<int8_t>::max(), GetMaxVal<int8_t>()); in TEST()
69 EXPECT_EQ(std::numeric_limits<int16_t>::max(), GetMaxVal<int16_t>()); in TEST()
70 EXPECT_EQ(std::numeric_limits<int32_t>::max(), GetMaxVal<int32_t>()); in TEST()
71 EXPECT_EQ(std::numeric_limits<int64_t>::max(), GetMaxVal<int64_t>()); in TEST()
75 EXPECT_EQ(std::numeric_limits<uint8_t>::max(), GetMaxVal(uint8_t{})); in TEST()
76 EXPECT_EQ(std::numeric_limits<uint16_t>::max(), GetMaxVal(uint16_t{})); in TEST()
[all …]
/system/core/toolbox/upstream-netbsd/lib/libc/gen/
Dgetbsize.c57 long n, max, mul, blocksize; in __weak_alias() local
76 max = MAXB / GB; in __weak_alias()
81 max = MAXB / KB; in __weak_alias()
86 max = MAXB / MB; in __weak_alias()
90 max = MAXB; in __weak_alias()
97 max = 0; in __weak_alias()
100 if (n > max) { in __weak_alias()
102 n = max; in __weak_alias()
Dhumanize_number.c52 int64_t divisor, max, post = 1; in humanize_number() local
124 for (max = 100, i = len - baselen; i-- > 0;) in humanize_number()
125 max *= 10; in humanize_number()
132 for (i = 0; bytes >= max - 50 && i < maxscale; i++) in humanize_number()
/system/extras/tests/schedtest/
Dschedtest.c29 long max = 0; in main() local
40 if (usec > max) max = usec; in main()
43 printf("max %ld\tavg %ld\n", max, avg); in main()
44 max = 0; in main()
/system/chre/apps/chqts/src/general_test/
Dcell_info_lte.cc50 constexpr int32_t max = INT32_MAX; in validateSignalStrength() local
55 } else if (!isBoundedInt32(strength.rsrp, 44, 140, max)) { in validateSignalStrength()
58 } else if (!isBoundedInt32(strength.rsrq, 3, 20, max)) { in validateSignalStrength()
62 } else if (!isBoundedInt32(strength.rssnr, -200, 300, max)) { in validateSignalStrength()
66 } else if (!isBoundedInt32(strength.cqi, 0, 15, max)) { in validateSignalStrength()
69 } else if (!isBoundedInt32(strength.timingAdvance, 0, max, max)) { in validateSignalStrength()
Dcell_info_cdma.cc23 constexpr int32_t max = INT32_MAX; in validateIdentity() local
25 if (!isBoundedInt32(identity.networkId, 0, 65535, max)) { in validateIdentity()
28 } else if (!isBoundedInt32(identity.systemId, 0, 32767, max)) { in validateIdentity()
31 } else if (!isBoundedInt32(identity.basestationId, 0, 65535, max)) { in validateIdentity()
34 } else if (!isBoundedInt32(identity.longitude, -2592000, 2592000, max)) { in validateIdentity()
36 } else if (!isBoundedInt32(identity.latitude, -1296000, 1296000, max)) { in validateIdentity()
/system/core/toolbox/upstream-netbsd/lib/libc/stdlib/
Dstrsuftoll.c117 long long min, long long max) in __weak_alias()
122 result = strsuftollx(desc, val, min, max, errbuf, sizeof(errbuf)); in __weak_alias()
135 long long min, long long max, char *ebuf, size_t ebuflen, size_t depth) in __strsuftollx() argument
211 num *= __strsuftollx(desc, expr + 1, min, max, ebuf, ebuflen, in __strsuftollx()
233 if (num > max) { in __strsuftollx()
236 desc, (long long)num, (long long)max); in __strsuftollx()
245 long long min, long long max, char *ebuf, size_t ebuflen) in strsuftollx() argument
247 return __strsuftollx(desc, val, min, max, ebuf, ebuflen, 0); in strsuftollx()
/system/extras/tests/audio/alsa/
Dpcmtest.cpp131 unsigned int max; in getPcmParams() local
139 max = pcm_params_get_max(params, PCM_PARAM_RATE); in getPcmParams()
140 EXPECT_LE(min, max); in getPcmParams()
143 max = pcm_params_get_max(params, PCM_PARAM_CHANNELS); in getPcmParams()
144 EXPECT_LE(min, max); in getPcmParams()
147 max = pcm_params_get_max(params, PCM_PARAM_SAMPLE_BITS); in getPcmParams()
148 EXPECT_LE(min, max); in getPcmParams()
151 max = pcm_params_get_max(params, PCM_PARAM_PERIOD_SIZE); in getPcmParams()
152 EXPECT_LE(min, max); in getPcmParams()
155 max = pcm_params_get_max(params, PCM_PARAM_PERIODS); in getPcmParams()
[all …]
/system/extras/memory_replay/
DAction.cpp172 size_t max = MAX(sizeof(EndThreadAction), sizeof(MallocAction)); in MaxActionSize() local
173 max = MAX(max, sizeof(CallocAction)); in MaxActionSize()
174 max = MAX(max, sizeof(ReallocAction)); in MaxActionSize()
175 max = MAX(max, sizeof(MemalignAction)); in MaxActionSize()
176 return MAX(max, sizeof(FreeAction)); in MaxActionSize()
/system/extras/latencytop/
Dlatencytop.c37 unsigned long max; member
318 unsigned long count, max, total; in read_latency_file() local
335 sscanf(line, "%ld %ld %ld %s", &count, &total, &max, reason); in read_latency_file()
336 if (max > 0 || total > 0) { in read_latency_file()
340 if (max > e->max) in read_latency_file()
341 e->max = max; in read_latency_file()
346 e->max = max; in read_latency_file()
388 e->max / 1000, (e->max % 1000) / 10, in print_latency_entries()
431 return numcmp(pb->max, pa->max); in lat_cmp()
/system/extras/tests/kernel.config/
Daslr_rec_test.cpp65 EXPECT_FALSE(set_mmap_rnd_bits(max + 1, false)); in TEST_F()
66 EXPECT_TRUE(set_mmap_rnd_bits(max, false)); in TEST_F()
67 EXPECT_EQ(max, get_mmap_rnd_bits(false)); in TEST_F()
105 EXPECT_TRUE(set_mmap_rnd_bits(max, false)); in TEST_F()
106 EXPECT_EQ(max, calc_mmap_entropy(path, lib, 16)); in TEST_F()
Daslr_test.cpp159 unsigned int AslrMmapTest::def, AslrMmapTest::min, AslrMmapTest::max; member in AslrMmapTest
168 max = 32; in SetUpTestCase()
180 max = 16; in SetUpTestCase()
196 max = 24; in SetUpTestCase()
209 max = 16; in SetUpTestCase()
/system/update_engine/update_manager/
Dprng.h37 int RandMinMax(int min, int max) { in RandMinMax() argument
38 DCHECK_LE(min, max); in RandMinMax()
39 return std::uniform_int_distribution<>(min, max)(gen_); in RandMinMax()
/system/bt/stack/mcap/
Dmca_dsm.cc148 int i, max; in mca_dcb_alloc() local
155 max = p_cs->max_mdl; in mca_dcb_alloc()
156 for (i = 0; i < max; i++, p_dcb_tmp++) { in mca_dcb_alloc()
184 int i, max; in mca_dep_free_mdl() local
193 max = p_cs->max_mdl; in mca_dep_free_mdl()
194 for (i = 0; i < max; i++, p_dcb++) { in mca_dep_free_mdl()
201 max = 0; in mca_dep_free_mdl()
204 left = max - count; in mca_dep_free_mdl()
/system/core/libsysutils/src/
DSocketListener.cpp162 int max = -1; in runListener() local
167 max = mSock; in runListener()
172 if (mCtrlPipe[0] > max) in runListener()
173 max = mCtrlPipe[0]; in runListener()
180 if (fd > max) { in runListener()
181 max = fd; in runListener()
185 SLOGV("mListen=%d, max=%d, mSocketName=%s", mListen, max, mSocketName); in runListener()
186 if ((rc = select(max + 1, &read_fds, NULL, NULL, NULL)) < 0) { in runListener()
189 SLOGE("select failed (%s) mListen=%d, max=%d", strerror(errno), mListen, max); in runListener()
/system/extras/tests/workloads/
Dcapture.sh29 max=$2
31 if [ $max -eq 0 ]; then
34 ((out=in*scale/max))
/system/timezone/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/
DErrors.java49 level = Math.max(level, LEVEL_FATAL); in addFatal()
54 level = Math.max(level, LEVEL_ERROR); in addError()
59 level = Math.max(level, LEVEL_WARNING); in addWarning()
/system/core/init/
Dproperty_type_test.cpp40 EXPECT_TRUE(CheckType("int", std::to_string(std::numeric_limits<int64_t>::max()))); in TEST()
50 EXPECT_TRUE(CheckType("uint", std::to_string(std::numeric_limits<uint64_t>::max()))); in TEST()
61 EXPECT_TRUE(CheckType("double", std::to_string(std::numeric_limits<double>::max()))); in TEST()
/system/bt/stack/btm/
Dbtm_pm.cc191 ((p_mode->mode & BTM_PM_MD_FORCE) && (p_mode->max >= p_cb->interval) && in BTM_SetPowerMode()
194 (p_mode->max >= p_cb->interval))) { in BTM_SetPowerMode()
197 << " max " << p_mode->max << " min " << p_mode->min; in BTM_SetPowerMode()
474 p_res->max = (p_md1->max < p_md2->max) ? (p_md1->max) : (p_md2->max); in btm_pm_compare_modes()
479 if (p_res->max < p_res->min) return NULL; in btm_pm_compare_modes()
578 ((md_res.max >= p_cb->interval) && (md_res.min <= p_cb->interval))) in btm_pm_snd_md_req()
629 btsnd_hcic_hold_mode(btm_cb.acl_db[link_ind].hci_handle, md_res.max, in btm_pm_snd_md_req()
635 btsnd_hcic_sniff_mode(btm_cb.acl_db[link_ind].hci_handle, md_res.max, in btm_pm_snd_md_req()
641 btsnd_hcic_park_mode(btm_cb.acl_db[link_ind].hci_handle, md_res.max, in btm_pm_snd_md_req()
/system/bt/osi/src/
Dmetrics_linux.cc71 audio_duration_ms = std::max(static_cast<int64_t>(0), audio_duration_ms); in Update()
84 std::max(media_timer_max_ms, metrics.media_timer_max_ms); in Update()
99 std::max(buffer_overruns_max_count, metrics.buffer_overruns_max_count); in Update()
103 std::max(static_cast<int32_t>(0), buffer_overruns_total); in Update()
/system/extras/tests/ext4/
Drand_emmc_perf.c55 struct timeval max = { 0, 0 }; in print_stats() local
74 if (timercmp(&t, &max, >)) { in print_stats()
75 max = t; in print_stats()
87 max_usecs = (max.tv_sec * 1000000LL) + max.tv_usec; in print_stats()

12345678