Searched refs:clamp (Results 1 – 10 of 10) sorted by relevance
/system/media/audio_utils/include/audio_utils/ |
D | threads.h | 61 return std::clamp(priority - kDefaultPrio, kMinNice, kMaxNice); in unified_priority_to_nice() 78 return std::clamp(kMaxRtPrio - 1 - priority, kMinRtPrio, kMaxRtPrio - 1); in unified_priority_to_rtprio()
|
D | ChannelMix.h | 29 inline float clamp(float value) { in clamp() function 812 dst[j] = clamp(ch[j]); in matrixProcess()
|
/system/media/audio_utils/ |
D | ChannelMix.cpp | 98 dst[j] = clamp(ch[j]); in sparseChannelMatrixMultiply()
|
/system/core/libprocessgroup/ |
D | task_profiles.h | 95 SetClampsAction(int boost, int clamp) noexcept : boost_(boost), clamp_(clamp) {} in SetClampsAction() argument
|
D | task_profiles.cpp | 936 unsigned long clamp = strtoul(clamp_value.c_str(), &end, 10); in Load() local 938 profile->Add(std::make_unique<SetClampsAction>(boost, clamp)); in Load()
|
/system/core/fs_mgr/libfiemap/ |
D | binder.cpp | 119 static_cast<int32_t>(std::clamp<typename std::chrono::milliseconds::rep>( in MapImageDevice()
|
/system/update_engine/aosp/ |
D | cleanup_previous_update_action.cc | 214 std::clamp<int>(android::base::GetIntProperty(kMergeDelaySecondsProp, 0), in CheckForMergeDelay()
|
/system/vold/ |
D | IdleMaint.cpp | 531 return 100 - std::clamp(lifeTime, 0, 100); in GetStorageRemainingLifetime()
|
/system/memory/lmkd/ |
D | lmkd.cpp | 591 static int clamp(int low, int high, int value) { in clamp() function 4212 swap_free_low_percentage = clamp(0, 100, GET_LMK_PROPERTY(int32, "swap_free_low_percentage", in update_props() 4221 thrashing_limit_decay_pct = clamp(0, 100, GET_LMK_PROPERTY(int32, "thrashing_limit_decay", in update_props() 4225 swap_util_max = clamp(0, 100, GET_LMK_PROPERTY(int32, "swap_util_max", 100)); in update_props()
|
/system/gsid/ |
D | gsi_service.cpp | 545 *_aidl_return = std::clamp(size, kMinScratchSize, kMaxScratchSize); in suggestScratchSize()
|