Home
last modified time | relevance | path

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

1234567891011

/system/libbase/include/android-base/
Dparsedouble.h32 static inline bool ParseFloatingPoint(const char* s, T* out, T min, T max) { in ParseFloatingPoint() argument
39 if (result < min || max < result) { in ParseFloatingPoint()
53 double max = std::numeric_limits<double>::max()) {
54 return ParseFloatingPoint<double, strtod>(s, out, min, max);
58 double max = std::numeric_limits<double>::max()) {
59 return ParseFloatingPoint<double, strtod>(s.c_str(), out, min, max);
67 float max = std::numeric_limits<float>::max()) {
68 return ParseFloatingPoint<float, strtof>(s, out, min, max);
72 float max = std::numeric_limits<float>::max()) {
73 return ParseFloatingPoint<float, strtof>(s.c_str(), out, min, max);
Dparseint.h35 bool ParseUint(const char* s, T* out, T max = std::numeric_limits<T>::max(),
65 if (max < result) {
77 bool ParseUint(const std::string& s, T* out, T max = std::numeric_limits<T>::max(),
79 return ParseUint(s.c_str(), out, max, allow_suffixes);
83 bool ParseByteCount(const char* s, T* out, T max = std::numeric_limits<T>::max()) {
84 return ParseUint(s, out, max, true);
89 bool ParseByteCount(const std::string& s, T* out, T max = std::numeric_limits<T>::max()) {
90 return ParseByteCount(s.c_str(), out, max);
100 T max = std::numeric_limits<T>::max()) {
117 if (result < min || max < result) {
[all …]
Dproperties.h45 T max = std::numeric_limits<T>::max());
52 T max = std::numeric_limits<T>::max());
62 std::chrono::milliseconds relative_timeout = std::chrono::milliseconds::max());
70 std::chrono::milliseconds::max());
/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/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/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/simpleperf/
Dcommand.h82 uint64_t max = std::numeric_limits<T>::max()) {
84 if (option_value->uint_value < min || option_value->uint_value > max) {
95 double max = std::numeric_limits<double>::max()) {
97 if (option_value->double_value < min || option_value->double_value > max) {
172 uint64_t max = std::numeric_limits<T>::max(), bool allow_suffixes = false) {
177 if (!android::base::ParseUint(args[*pi], &tmp_value, max, allow_suffixes) || tmp_value < min) {
186 double min = 0, double max = std::numeric_limits<double>::max());
/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/update_engine/
Domaha_response.h96 uint16_t kernel_key = std::numeric_limits<uint16_t>::max();
98 uint16_t kernel = std::numeric_limits<uint16_t>::max();
100 uint16_t firmware_key = std::numeric_limits<uint16_t>::max();
102 uint16_t firmware = std::numeric_limits<uint16_t>::max();
Domaha_response_handler_action.cc177 if (kernel_key_version == numeric_limits<uint32_t>::max() || in PerformAction()
178 firmware_key_version == numeric_limits<uint32_t>::max() || in PerformAction()
249 auto max_firmware_rollforward = numeric_limits<uint32_t>::max(); in PerformAction()
250 auto max_kernel_rollforward = numeric_limits<uint32_t>::max(); in PerformAction()
267 if (max_firmware_rollforward == numeric_limits<uint32_t>::max() || in PerformAction()
268 max_kernel_rollforward == numeric_limits<uint32_t>::max()) { in PerformAction()
/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()
/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/libbase/
Dformat_benchmark.cpp30 std::numeric_limits<int>::max())); in BenchmarkFormatInt()
39 std::numeric_limits<int>::max())); in BenchmarkStringPrintfInt()
48 std::numeric_limits<float>::max())); in BenchmarkFormatFloat()
57 std::numeric_limits<float>::max())); in BenchmarkStringPrintfFloat()
/system/bt/gd/common/
Dnumbers.h34 if (std::numeric_limits<InputType>::max() > std::numeric_limits<RawType>::max()) { in IsNumberInNumericLimits()
35 if (input > std::numeric_limits<RawType>::max()) { in IsNumberInNumericLimits()
/system/bt/gd/storage/
Dconfig_cache_helper_test.cc52 uint64_t num = std::numeric_limits<int>::max(); in TEST()
55 …fig.GetProperty("A", "B"), Optional(StrEq(std::to_string(std::numeric_limits<int>::max()) + "0"))); in TEST()
70 uint64_t num = std::numeric_limits<uint32_t>::max(); in TEST()
74 …etProperty("A", "B"), Optional(StrEq(std::to_string(std::numeric_limits<uint32_t>::max()) + "0"))); in TEST()
85 int64_t num = std::numeric_limits<int32_t>::max(); in TEST()
88 …GetProperty("A", "B"), Optional(StrEq(std::to_string(std::numeric_limits<int32_t>::max()) + "0"))); in TEST()
93 …perty("A", "B"), Optional(StrEq("-" + std::to_string(std::numeric_limits<int32_t>::max()) + "0"))); in TEST()
116 int64_t num = std::numeric_limits<int32_t>::max(); in TEST()
/system/extras/tests/workloads/
Dcapture.sh29 max=$2
31 if [ $max -eq 0 ]; then
34 ((out=in*scale/max))
/system/tools/hidl/lint/test/interfaces/enum_max_all/1.0/
DIFoo.hal26 * @return max contains max value of ContainsMax
28 getMax() generates (ContainsMax max);
/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/timezone/apex/tests/src/java/android/tzdata/mts/
DTimeZoneVersionTest.java86 byte[] max = new byte[maxBytes]; in readBytes()
87 int bytesRead = in.read(max, 0, maxBytes); in readBytes()
89 System.arraycopy(max, 0, toReturn, 0, bytesRead); in readBytes()
/system/bt/stack/btm/
Dbtm_pm.cc185 ((p_mode->mode & BTM_PM_MD_FORCE) && (p_mode->max >= p_cb->interval) && in BTM_SetPowerMode()
188 (p_mode->max >= p_cb->interval))) { in BTM_SetPowerMode()
191 << " max " << p_mode->max << " min " << p_mode->min; in BTM_SetPowerMode()
468 p_res->max = (p_md1->max < p_md2->max) ? (p_md1->max) : (p_md2->max); in btm_pm_compare_modes()
473 if (p_res->max < p_res->min) return NULL; in btm_pm_compare_modes()
572 ((md_res.max >= p_cb->interval) && (md_res.min <= p_cb->interval))) in btm_pm_snd_md_req()
623 btsnd_hcic_hold_mode(btm_cb.acl_db[link_ind].hci_handle, md_res.max, in btm_pm_snd_md_req()
629 btsnd_hcic_sniff_mode(btm_cb.acl_db[link_ind].hci_handle, md_res.max, in btm_pm_snd_md_req()
635 btsnd_hcic_park_mode(btm_cb.acl_db[link_ind].hci_handle, md_res.max, in btm_pm_snd_md_req()
/system/libvintf/
DPropertyFetcher.cpp47 uint64_t max) const { in getUintProperty()
48 return android::base::GetUintProperty(key, defaultValue, max); in getUintProperty()
/system/media/audio_utils/fuzz/monoblend_fuzzer/
Dmonoblend_fuzzer.cpp44 size_t channelCount = samples / std::max(fuzzed_data.ConsumeIntegral<uint32_t>(), (uint32_t)1); in LLVMFuzzerTestOneInput()
45 size_t frames = samples / std::max(channelCount, (size_t)1); in LLVMFuzzerTestOneInput()

1234567891011