Home
last modified time | relevance | path

Searched refs:clamp (Results 1 – 10 of 10) sorted by relevance

/system/media/audio_utils/include/audio_utils/
Dthreads.h61 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()
DChannelMix.h29 inline float clamp(float value) { in clamp() function
812 dst[j] = clamp(ch[j]); in matrixProcess()
/system/media/audio_utils/
DChannelMix.cpp98 dst[j] = clamp(ch[j]); in sparseChannelMatrixMultiply()
/system/core/libprocessgroup/
Dtask_profiles.h95 SetClampsAction(int boost, int clamp) noexcept : boost_(boost), clamp_(clamp) {} in SetClampsAction() argument
Dtask_profiles.cpp936 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/
Dbinder.cpp119 static_cast<int32_t>(std::clamp<typename std::chrono::milliseconds::rep>( in MapImageDevice()
/system/update_engine/aosp/
Dcleanup_previous_update_action.cc214 std::clamp<int>(android::base::GetIntProperty(kMergeDelaySecondsProp, 0), in CheckForMergeDelay()
/system/vold/
DIdleMaint.cpp531 return 100 - std::clamp(lifeTime, 0, 100); in GetStorageRemainingLifetime()
/system/memory/lmkd/
Dlmkd.cpp591 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/
Dgsi_service.cpp545 *_aidl_return = std::clamp(size, kMinScratchSize, kMaxScratchSize); in suggestScratchSize()