Home
last modified time | relevance | path

Searched refs:min (Results 1 – 25 of 263) sorted by relevance

1234567891011

/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"/>
52 <symbol name="main" min="10"/>
69 <symbol name="MainThreadFunction()" min="20" max="80"/>
70 <symbol name="ChildThreadFunction(void*)" min="20" max="80"/>
[all …]
/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()
52 double min = std::numeric_limits<double>::lowest(),
54 return ParseFloatingPoint<double, strtod>(s, out, min, max);
57 double min = std::numeric_limits<double>::lowest(),
59 return ParseFloatingPoint<double, strtod>(s.c_str(), out, min, max);
66 float min = std::numeric_limits<float>::lowest(),
68 return ParseFloatingPoint<float, strtof>(s, out, min, max);
71 float min = std::numeric_limits<float>::lowest(),
73 return ParseFloatingPoint<float, strtof>(s.c_str(), out, min, max);
Dparseint.h99 T min = std::numeric_limits<T>::min(),
117 if (result < min || max < result) {
130 T min = std::numeric_limits<T>::min(),
132 return ParseInt(s.c_str(), out, min, max);
Dproperties.h44 T min = std::numeric_limits<T>::min(),
/system/extras/tests/audio/alsa/
Dpcmtest.cpp151 unsigned int min; in getPcmParams() local
159 min = pcm_params_get_min(params, PCM_PARAM_RATE); in getPcmParams()
161 EXPECT_LE(min, max); in getPcmParams()
163 min = pcm_params_get_min(params, PCM_PARAM_CHANNELS); in getPcmParams()
165 EXPECT_LE(min, max); in getPcmParams()
167 min = pcm_params_get_min(params, PCM_PARAM_SAMPLE_BITS); in getPcmParams()
169 EXPECT_LE(min, max); in getPcmParams()
171 min = pcm_params_get_min(params, PCM_PARAM_PERIOD_SIZE); in getPcmParams()
173 EXPECT_LE(min, max); in getPcmParams()
175 min = pcm_params_get_min(params, PCM_PARAM_PERIODS); in getPcmParams()
[all …]
/system/core/init/
Dsecurity.cpp39 static bool SetHighestAvailableOptionValue(const std::string& path, int min, int max) { in SetHighestAvailableOptionValue() argument
47 while (current >= min) { in SetHighestAvailableOptionValue()
69 if (current < min) { in SetHighestAvailableOptionValue()
70 LOG(ERROR) << "Unable to set minimum option value " << min << " in " << path; in SetHighestAvailableOptionValue()
79 static bool SetMmapRndBitsMin(int start, int min, bool compat) { in SetMmapRndBitsMin() argument
87 return SetHighestAvailableOptionValue(path, min, start); in SetMmapRndBitsMin()
/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/extras/tests/kernel.config/
Daslr_rec_test.cpp44 EXPECT_FALSE(set_mmap_rnd_bits(min - 1, false)); in TEST_F()
45 EXPECT_TRUE(set_mmap_rnd_bits(min, false)); in TEST_F()
46 EXPECT_EQ(min, get_mmap_rnd_bits(false)); in TEST_F()
86 EXPECT_TRUE(set_mmap_rnd_bits(min, false)); in TEST_F()
87 EXPECT_EQ(min, calc_mmap_entropy(path, lib, 16)); in TEST_F()
Daslr_test.cpp159 unsigned int AslrMmapTest::def, AslrMmapTest::min, AslrMmapTest::max; member in AslrMmapTest
167 min = 28; in SetUpTestCase()
179 min = 8; in SetUpTestCase()
195 min = 18 - (pgbits - 12); in SetUpTestCase()
208 min = 8; in SetUpTestCase()
/system/libbase/
Dformat_benchmark.cpp29 benchmark::DoNotOptimize(fmt::format("{} {} {}", 42, std::numeric_limits<int>::min(), in BenchmarkFormatInt()
38 benchmark::DoNotOptimize(StringPrintf("%d %d %d", 42, std::numeric_limits<int>::min(), in BenchmarkStringPrintfInt()
47 benchmark::DoNotOptimize(fmt::format("{} {} {}", 42.42, std::numeric_limits<float>::min(), in BenchmarkFormatFloat()
56 benchmark::DoNotOptimize(StringPrintf("%f %f %f", 42.42, std::numeric_limits<float>::min(), in BenchmarkStringPrintfFloat()
/system/extras/simpleperf/
Dcommand.h79 bool PullUintValue(const OptionName& name, T* value, uint64_t min = 0,
82 if (option_value->uint_value < min || option_value->uint_value > max) {
92 double min = std::numeric_limits<double>::lowest(),
95 if (option_value->double_value < min || option_value->double_value > max) {
168 bool GetUintOption(const std::vector<std::string>& args, size_t* pi, T* value, uint64_t min = 0,
174 if (!android::base::ParseUint(args[*pi], &tmp_value, max, allow_suffixes) || tmp_value < min) {
183 double min = 0, double max = std::numeric_limits<double>::max());
/system/netd/libnetdutils/include/netdutils/
DSlice.h97 const size_t tmp = std::min(cut, s.size()); in split()
113 const auto min = std::min(dst.size(), src.size()); in copy() local
114 memcpy(dst.base(), src.base(), min); in copy()
115 return min; in copy()
/system/update_engine/payload_consumer/
Dextent_writer.cc28 using std::min;
43 static_cast<size_t>(min(static_cast<uint64_t>(count - bytes_written), in Write()
Dfake_file_descriptor.cc39 first_failure = std::min(first_failure, failure.first); in Read()
41 count = std::min(static_cast<uint64_t>(count), first_failure - offset_); in Read()
Dextent_writer_unittest.cc35 using std::min;
115 size_t bytes_to_write = min(data.size() - bytes_written, chunk_size); in WriteAlignedExtents()
117 bytes_to_write = min(data.size() - bytes_written, first_chunk_size); in WriteAlignedExtents()
156 min(block_count * kBlockSize - bytes_written, data.size()); in TEST_F()
Dfile_descriptor_utils.cc29 using std::min;
55 auto read_blocks = std::min(total_blocks, buffer_blocks); in CommonHashExtents()
/system/bt/test/mock/
Dmock_main_shim_link_policy.h80 std::function<tBTM_STATUS(tACL_CONN& p_acl, uint16_t max, uint16_t min)> body{
81 [](tACL_CONN& p_acl, uint16_t max, uint16_t min) { return 0; }};
82 tBTM_STATUS operator()(tACL_CONN& p_acl, uint16_t max, uint16_t min) { in operator()
83 return body(p_acl, max, min); in operator()
/system/chre/core/
Dsensor_request.cc57 mInterval = std::min(interval, Nanoseconds(kMaxIntervalLatencyNs)); in SensorRequest()
60 mLatency = std::min(latency, Nanoseconds(kMaxIntervalLatencyNs)); in SensorRequest()
81 std::min(getBatchInterval(*this), getBatchInterval(request)); in mergeWith()
/system/bt/stack/acl/
Dbtm_pm.cc237 (p_mode->min <= p_cb->interval)) || in BTM_SetPowerMode()
243 p_mode->mode, p_cb->interval, p_mode->max, p_mode->min); in BTM_SetPowerMode()
447 p_res->min = (p_md1->min > p_md2->min) ? (p_md1->min) : (p_md2->min); in btm_pm_compare_modes()
450 if (p_res->max < p_res->min) return NULL; in btm_pm_compare_modes()
546 ((md_res.max >= p_cb->interval) && (md_res.min <= p_cb->interval))) { in btm_pm_snd_md_req()
603 btsnd_hcic_hold_mode(handle, md_res.max, md_res.min); in btm_pm_snd_md_req()
608 btsnd_hcic_sniff_mode(handle, md_res.max, md_res.min, md_res.attempt, in btm_pm_snd_md_req()
614 btsnd_hcic_park_mode(handle, md_res.max, md_res.min); in btm_pm_snd_md_req()
/system/media/audio_utils/tests/
Dfifo_tests.cpp27 #ifndef min
28 #define min(x, y) (((x) < (y)) ? (x) : (y)) macro
137 if (actualWritten < min((int) frameCount - fifoFillLevel, (int) framesToWrite)) { in main()
193 if (actualRead < min(fifoFillLevel, (int) framesToRead)) { in main()
/system/keymaster/km_openssl/
Diso18033kdf.cpp25 inline size_t min(size_t a, size_t b) { in min() function
72 size_t block_length = min(digest_size_, output_len - block_start); in GenerateKey()
/system/libhwbinder/vts/performance/
DPerfTest.cpp46 using std::min;
88 ret.best_ = min(a.best_, b.best_); in combine()
103 buckets_[min(nano, kMaxTimeBucket - 1) / kTimePerBucket] += 1; in addTime()
104 best_ = min(nano, best_); in addTime()
/system/chre/apps/wifi_offload/
Dchre_scan_params_safe.cc55 chre_scan_params_.frequencyListLen = std::min( in UpdateFromScanParams()
71 std::min(static_cast<uint8_t>(scan_params.ssids_to_scan_.size()), in UpdateFromScanParams()
/system/extras/ext4_utils/include/ext4_utils/
Dext4_utils.h55 #ifndef min /* already defined by windows.h */
56 #define min(a, b) ((a) < (b) ? (a) : (b)) macro
/system/update_engine/payload_generator/
Dfull_update_generator.cc128 full_chunk_size = std::min(static_cast<size_t>(config.hard_chunk_size), in GenerateOperations()
131 full_chunk_size = std::min(kDefaultFullChunkSize, config.soft_chunk_size); in GenerateOperations()
162 std::min(chunk_blocks, partition_blocks - i * chunk_blocks); in GenerateOperations()

1234567891011