Home
last modified time | relevance | path

Searched refs:threshold (Results 1 – 25 of 65) sorted by relevance

123

/frameworks/av/media/libaaudio/src/fifo/
DFifoControllerBase.cpp26 FifoControllerBase::FifoControllerBase(fifo_frames_t capacity, fifo_frames_t threshold) in FifoControllerBase() argument
28 , mThreshold(threshold) in FifoControllerBase()
61 void FifoControllerBase::setThreshold(fifo_frames_t threshold) { in setThreshold() argument
62 if (threshold > mCapacity) { in setThreshold()
63 threshold = mCapacity; in setThreshold()
64 } else if (threshold < 0) { in setThreshold()
65 threshold = 0; in setThreshold()
67 mThreshold = threshold; in setThreshold()
DFifoControllerBase.h44 FifoControllerBase(fifo_frames_t capacity, fifo_frames_t threshold);
110 void setThreshold(fifo_frames_t threshold);
DFifoController.h33 FifoController(fifo_frames_t bufferSize, fifo_frames_t threshold) in FifoController() argument
34 : FifoControllerBase(bufferSize, threshold) in FifoController()
DFifoControllerIndirect.h37 fifo_frames_t threshold, in FifoControllerIndirect() argument
40 : FifoControllerBase(capacity, threshold) in FifoControllerIndirect()
DFifoBuffer.cpp183 void FifoBuffer::setThreshold(fifo_frames_t threshold) { in setThreshold() argument
184 mFifo->setThreshold(threshold); in setThreshold()
DFifoBuffer.h59 void setThreshold(fifo_frames_t threshold);
/frameworks/av/media/libaaudio/tests/
Dtest_atomic_fifo.cpp34 constexpr int threshold = 47; in TEST() local
35 FifoController fifoController(capacity, threshold); in TEST()
37 ASSERT_EQ(threshold, fifoController.getThreshold()); in TEST()
42 ASSERT_EQ(threshold, fifoController.getEmptyFramesAvailable()); in TEST()
53 ASSERT_EQ(threshold - advanced, fifoController.getEmptyFramesAvailable()); in TEST()
62 ASSERT_EQ(threshold, fifoController.getEmptyFramesAvailable()); in TEST()
73 ASSERT_EQ(threshold - advance2, fifoController.getEmptyFramesAvailable()); in TEST()
78 constexpr int threshold = capacity; in TEST() local
79 FifoController fifoController(capacity, threshold); in TEST()
81 ASSERT_EQ(threshold, fifoController.getThreshold()); in TEST()
[all …]
/frameworks/base/services/core/java/com/android/server/display/whitebalance/
DDisplayWhiteBalanceThrottler.java196 final float threshold;
199 threshold = mIncreaseThreshold;
200 tooClose = value < threshold;
202 threshold = mDecreaseThreshold;
203 tooClose = value > threshold;
207 + (value > threshold ? " > " : " < ") + threshold);
/frameworks/base/tools/preload2/src/com/android/preload/actions/
DComputeThresholdAction.java42 protected int threshold; field in ComputeThresholdAction
50 public ComputeThresholdAction(String name, DumpTableModel dataTableModel, int threshold, in ComputeThresholdAction() argument
54 this.threshold = threshold; in ComputeThresholdAction()
88 Set<String> result = fromThreshold(uses, blacklist, threshold); in run()
102 int threshold) { in fromThreshold() argument
106 if (e.getValue().size() >= threshold) { in fromThreshold()
DComputeThresholdXAction.java35 threshold = Integer.parseInt(value); in run()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DProximityEvaluator.java22 float threshold = 0.1f; in evaluate() local
24 threshold = 1.0f; in evaluate()
26 if (value >= threshold) evaluation += 2.0; in evaluate()
/frameworks/base/cmds/statsd/tests/e2e/
DConfigTtl_e2e_test.cpp31 StatsdConfig CreateStatsdConfig(int num_buckets, int threshold) { in CreateStatsdConfig() argument
50 alert->set_trigger_if_sum_gt(threshold); in CreateStatsdConfig()
61 const int threshold = 3; in TEST() local
62 auto config = CreateStatsdConfig(num_buckets, threshold); in TEST()
DAnomaly_count_e2e_test.cpp31 StatsdConfig CreateStatsdConfig(int num_buckets, int threshold) { in CreateStatsdConfig() argument
50 alert->set_trigger_if_sum_gt(threshold); in CreateStatsdConfig()
58 const int threshold = 3; in TEST() local
59 auto config = CreateStatsdConfig(num_buckets, threshold); in TEST()
161 const int threshold = 3; in TEST() local
162 auto config = CreateStatsdConfig(num_buckets, threshold); in TEST()
/frameworks/av/media/libeffects/dynamicsproc/dsp/
DDPBase.h116 float ratio, float threshold, float kneeWidth, float noiseGateThreshold,
139 void setThreshold(float threshold) { in setThreshold() argument
140 mThresholdDb = threshold; in setThreshold()
211 float ratio, float threshold, float postGain);
239 void setThreshold(float threshold) { in setThreshold() argument
240 mThresholdDb = threshold; in setThreshold()
DDPBase.cpp91 float ratio, float threshold, float kneeWidth, float noiseGateThreshold, in init() argument
97 setThreshold(threshold); in init()
166 float ratio, float threshold, float postGain) { in init() argument
172 setThreshold(threshold); in init()
/frameworks/base/libs/hwui/utils/
DMathUtils.h75 float threshold) { in divisionsNeededToApproximateArc() argument
76 const float errConst = (-threshold / radius + 1); in divisionsNeededToApproximateArc()
/frameworks/base/core/tests/coretests/src/android/view/
DVelocityTest.java274 private void assertEqualFuzzy(float expected, float actual, float threshold) { in assertEqualFuzzy() argument
275 boolean fuzzyEqual = actual >= expected - threshold && actual <= expected + threshold; in assertEqualFuzzy()
277 "> while accepting a variation of: <"+threshold+">", fuzzyEqual); in assertEqualFuzzy()
/frameworks/base/core/java/android/view/textclassifier/
DTextClassifierImpl.java513 final float threshold = getLangIdThreshold(); in detectLanguageTagsFromText() local
514 if (threshold < 0 || threshold > 1) { in detectLanguageTagsFromText()
516 "[detectLanguageTagsFromText] unexpected threshold is found: " + threshold); in detectLanguageTagsFromText()
525 if (textLanguage.getConfidenceScore(locale) < threshold) { in detectLanguageTagsFromText()
721 final float threshold = getLangIdThreshold(); in generateLanguageBundles() local
722 if (threshold < 0 || threshold > 1) { in generateLanguageBundles()
724 "[detectForeignLanguage] unexpected threshold is found: " + threshold); in generateLanguageBundles()
738 if (score < threshold) { in generateLanguageBundles()
/frameworks/base/packages/SystemUI/src/com/android/systemui/glwallpaper/
DImageProcessHelper.java198 float threshold = DEFAULT_OTSU_THRESHOLD; in compute() local
230 threshold = (tonalValue + 1f) / histogram.length; in compute()
234 return threshold; in compute()
/frameworks/base/core/java/com/android/internal/widget/
DDrawableHolder.java128 final float threshold = 1.0f / 256.0f; // contribution less than 1 LSB of RGB byte in draw() local
129 if (mAlpha <= threshold) // don't bother if it won't show up in draw()
/frameworks/ml/nn/tools/test_generator/
Dslicing.py88 def __init__(self, threshold): argument
90 self.__threshold = threshold
/frameworks/base/core/tests/coretests/src/android/hardware/display/
DVirtualDisplayTest.java483 final int threshold = width * height / 4; in scanImage() local
484 if (bluePixels > threshold) { in scanImage()
488 if (greenPixels > threshold) { in scanImage()
492 if (blackPixels > threshold) { in scanImage()
/frameworks/av/media/libaaudio/src/client/
DAudioEndpoint.cpp183 uint32_t threshold = descriptor->capacityInFrames / 2; in configure() local
184 mDataQueue->setThreshold(threshold); in configure()
/frameworks/av/media/libeffects/loudness/common/core/
Dbasic_types.h106 bool Equals(const WaveData &wave_data, int threshold = 0) const;
/frameworks/base/core/java/android/os/
DLooper.java267 private static boolean showSlowLog(long threshold, long measureStart, long measureEnd, in showSlowLog() argument
270 if (actualTime < threshold) { in showSlowLog()

123