Searched refs:threshold (Results 1 - 25 of 56) sorted by relevance

123

/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
H A DProximityEvaluator.java22 float threshold = 0.1f;
24 threshold = 1.0f;
26 if (value >= threshold) evaluation += 2.0;
/frameworks/av/media/libaaudio/src/fifo/
H A DFifoControllerBase.cpp26 FifoControllerBase::FifoControllerBase(fifo_frames_t capacity, fifo_frames_t threshold) argument
28 , mThreshold(threshold)
61 void FifoControllerBase::setThreshold(fifo_frames_t threshold) { argument
62 mThreshold = threshold;
H A DFifoController.h33 FifoController(fifo_counter_t bufferSize, fifo_counter_t threshold) argument
34 : FifoControllerBase(bufferSize, threshold)
H A DFifoControllerBase.h42 * @param threshold Number of frames to fill. Must be less than capacity.
44 FifoControllerBase(fifo_frames_t capacity, fifo_frames_t threshold);
105 * @param threshold effective size of the buffer
107 void setThreshold(fifo_frames_t threshold);
H A DFifoControllerIndirect.h37 fifo_frames_t threshold,
40 : FifoControllerBase(capacity, threshold)
36 FifoControllerIndirect(fifo_frames_t capacity, fifo_frames_t threshold, fifo_counter_t * readCounterAddress, fifo_counter_t * writeCounterAddress) argument
H A DFifoBuffer.h58 void setThreshold(fifo_frames_t threshold);
/frameworks/av/media/libaaudio/tests/
H A Dtest_atomic_fifo.cpp34 constexpr int threshold = 47; local
35 FifoController fifoController(capacity, threshold);
37 ASSERT_EQ(threshold, fifoController.getThreshold());
42 ASSERT_EQ(threshold, fifoController.getEmptyFramesAvailable());
53 ASSERT_EQ(threshold - advanced, fifoController.getEmptyFramesAvailable());
62 ASSERT_EQ(threshold, fifoController.getEmptyFramesAvailable());
73 ASSERT_EQ(threshold - advance2, fifoController.getEmptyFramesAvailable());
79 explicit TestFifoBuffer(fifo_frames_t capacity, fifo_frames_t threshold = 0)
83 if (threshold <= 0) {
84 threshold
226 constexpr int threshold = 37; // arbitrary local
[all...]
/frameworks/base/tools/preload2/src/com/android/preload/actions/
H A DComputeThresholdXAction.java35 threshold = Integer.parseInt(value);
H A DComputeThresholdAction.java38 * appears in at least the number of threshold given packages. An optional blacklist can be
42 protected int threshold; field in class:ComputeThresholdAction
50 public ComputeThresholdAction(String name, DumpTableModel dataTableModel, int threshold, argument
54 this.threshold = threshold;
88 Set<String> result = fromThreshold(uses, blacklist, threshold);
102 int threshold) {
106 if (e.getValue().size() >= threshold) {
101 fromThreshold(Map<String, Set<String>> classUses, Pattern blacklist, int threshold) argument
/frameworks/base/cmds/statsd/tests/e2e/
H A DConfigTtl_e2e_test.cpp31 StatsdConfig CreateStatsdConfig(int num_buckets, int threshold) { argument
50 alert->set_trigger_if_sum_gt(threshold);
61 const int threshold = 3; local
62 auto config = CreateStatsdConfig(num_buckets, threshold);
H A DAnomaly_count_e2e_test.cpp31 StatsdConfig CreateStatsdConfig(int num_buckets, int threshold) { argument
50 alert->set_trigger_if_sum_gt(threshold);
58 const int threshold = 3; local
59 auto config = CreateStatsdConfig(num_buckets, threshold);
161 const int threshold = 3; local
162 auto config = CreateStatsdConfig(num_buckets, threshold);
/frameworks/base/libs/common_time/
H A Dcommon_time_config_service.cpp92 status_t CommonTimeConfigService::getPanicThreshold(int *threshold) { argument
93 return mTimeServer.getPanicThreshold(threshold);
96 status_t CommonTimeConfigService::setPanicThreshold(int threshold) { argument
97 return mTimeServer.setPanicThreshold(threshold);
H A Dcommon_time_config_service.h45 virtual status_t getPanicThreshold(int *threshold);
46 virtual status_t setPanicThreshold(int threshold);
H A Dcommon_time_server_api.cpp225 status_t CommonTimeServer::getPanicThreshold(int *threshold) { argument
227 *threshold = mPanicThresholdUsec;
231 status_t CommonTimeServer::setPanicThreshold(int threshold) { argument
234 if (threshold < 1000) // Min threshold is 1mSec
237 mPanicThresholdUsec = threshold;
/frameworks/support/dynamic-animation/src/main/java/androidx/dynamicanimation/animation/
H A DFlingAnimation.java24 * the animation is below the threshold derived from {@link #setMinimumVisibleChange(float)},
190 void setValueThreshold(float threshold) { argument
191 mFlingForce.setValueThreshold(threshold);
198 // This multiplier is used to calculate the velocity threshold given a certain value
199 // threshold. The idea is that if it takes >= 1 frame to move the value threshold amount,
200 // then the velocity is a reasonable threshold.
236 void setValueThreshold(float threshold) { argument
237 mVelocityThreshold = threshold * VELOCITY_THRESHOLD_MULTIPLIER;
/frameworks/base/libs/hwui/utils/
H A DMathUtils.h68 * approximation of an arc, with a given threshold value.
71 float threshold) {
72 const float errConst = (-threshold / radius + 1);
70 divisionsNeededToApproximateArc(float radius, float angleInRads, float threshold) argument
/frameworks/av/include/common_time/
H A DICommonTimeConfig.h50 virtual status_t getPanicThreshold(int *threshold) = 0;
51 virtual status_t setPanicThreshold(int threshold) = 0;
/frameworks/av/media/libeffects/dynamicsproc/dsp/
H A DDPBase.h116 float ratio, float threshold, float kneeWidth, float noiseGateThreshold,
139 void setThreshold(float threshold) { argument
140 mThresholdDb = threshold;
211 float ratio, float threshold, float postGain);
239 void setThreshold(float threshold) { argument
240 mThresholdDb = threshold;
H A DDPBase.cpp91 float ratio, float threshold, float kneeWidth, float noiseGateThreshold,
97 setThreshold(threshold);
166 float ratio, float threshold, float postGain) {
172 setThreshold(threshold);
90 init(bool enabled, float cutoffFrequency, float attackTime, float releaseTime, float ratio, float threshold, float kneeWidth, float noiseGateThreshold, float expanderRatio, float preGain, float postGain) argument
165 init(bool inUse, bool enabled, uint32_t linkGroup, float attackTime, float releaseTime, float ratio, float threshold, float postGain) argument
/frameworks/av/media/common_time/
H A DICommonTimeConfig.cpp246 virtual status_t getPanicThreshold(int *threshold) { argument
255 *threshold = reply.readInt32();
262 virtual status_t setPanicThreshold(int threshold) { argument
265 data.writeInt32(threshold);
462 int threshold; local
463 status_t status = getPanicThreshold(&threshold);
466 reply->writeInt32(threshold);
473 int threshold = data.readInt32(); local
474 status_t status = setPanicThreshold(threshold);
/frameworks/av/media/libeffects/loudness/common/core/
H A Dbasic_types.h106 bool Equals(const WaveData &wave_data, int threshold = 0) const;
/frameworks/base/libs/hwui/
H A DPathTessellator.h35 * Structure used for threshold values in outline path tessellation.
114 * @param threshold The threshold of acceptable error (in pixels) when approximating
117 static bool approximatePathOutlineVertices(const SkPath& path, float threshold,
/frameworks/base/core/java/android/os/
H A DCommonTimeConfig.java284 * Gets the panic threshold for the estimated error level of the common time service. When the
288 * @return The threshold (in microseconds) past which the common time service will panic.
298 * Sets the panic threshold for the estimated error level of the common time service. When the
302 * @param threshold The threshold (in microseconds) past which the common time service will
307 public int setPanicThreshold(int threshold) { argument
310 return mUtils.transactSetInt(METHOD_SET_PANIC_THRESHOLD, threshold);
/frameworks/base/core/java/com/android/internal/widget/
H A DDrawableHolder.java128 final float threshold = 1.0f / 256.0f; // contribution less than 1 LSB of RGB byte
129 if (mAlpha <= threshold) // don't bother if it won't show up
/frameworks/ml/nn/tools/test_generator/
H A Dslicing.py85 def __init__(self, threshold):
87 self.__threshold = threshold

Completed in 456 milliseconds

123