Home
last modified time | relevance | path

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

1234

/frameworks/base/telephony/java/android/telephony/
DSignalThresholdInfo.java609 private static boolean isValidThreshold(@SignalMeasurementType int type, int threshold) {
612 return threshold >= SIGNAL_RSSI_MIN_VALUE && threshold <= SIGNAL_RSSI_MAX_VALUE;
614 return threshold >= SIGNAL_RSCP_MIN_VALUE && threshold <= SIGNAL_RSCP_MAX_VALUE;
616 return threshold >= SIGNAL_RSRP_MIN_VALUE && threshold <= SIGNAL_RSRP_MAX_VALUE;
618 return threshold >= SIGNAL_RSRQ_MIN_VALUE && threshold <= SIGNAL_RSRQ_MAX_VALUE;
620 return threshold >= SIGNAL_RSSNR_MIN_VALUE && threshold <= SIGNAL_RSSNR_MAX_VALUE;
622 return threshold >= SIGNAL_SSRSRP_MIN_VALUE && threshold <= SIGNAL_SSRSRP_MAX_VALUE;
624 return threshold >= SIGNAL_SSRSRQ_MIN_VALUE && threshold <= SIGNAL_SSRSRQ_MAX_VALUE;
626 return threshold >= SIGNAL_SSSINR_MIN_VALUE && threshold <= SIGNAL_SSSINR_MAX_VALUE;
668 for (int threshold : thresholds) {
[all …]
/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()
64 void FifoControllerBase::setThreshold(fifo_frames_t threshold) { in setThreshold() argument
65 if (threshold > mCapacity) { in setThreshold()
66 threshold = mCapacity; in setThreshold()
67 } else if (threshold < 0) { in setThreshold()
68 threshold = 0; in setThreshold()
70 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()
/frameworks/av/media/libaaudio/tests/
Dtest_atomic_fifo.cpp35 constexpr int threshold = 47; in TEST() local
36 FifoController fifoController(capacity, threshold); in TEST()
38 ASSERT_EQ(threshold, fifoController.getThreshold()); in TEST()
43 ASSERT_EQ(threshold, fifoController.getEmptyFramesAvailable()); in TEST()
54 ASSERT_EQ(threshold - advanced, fifoController.getEmptyFramesAvailable()); in TEST()
63 ASSERT_EQ(threshold, fifoController.getEmptyFramesAvailable()); in TEST()
74 ASSERT_EQ(threshold - advance2, fifoController.getEmptyFramesAvailable()); in TEST()
79 constexpr int threshold = capacity; in TEST() local
80 FifoController fifoController(capacity, threshold); in TEST()
82 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/core/java/com/android/internal/os/
DBinderCallHeavyHitterWatcher.java146 int totalBinderCalls, float threshold, long timeSpan); in onHeavyHit() argument
247 public void setConfig(final boolean enable, final int batchSize, final float threshold, in setConfig() argument
259 if (threshold < EPSILON || threshold > 1.0f) { in setConfig()
263 if (batchSize == mTotalInputSize && Math.abs(threshold - mThreshold) < EPSILON) { in setConfig()
269 final int capacity = (int) (1.0f / threshold); in setConfig()
285 resetInternalLocked(listener, sketch, inputSize, batchSize, threshold, capacity); in setConfig()
292 final int batchSize, final float threshold, final int capacity) { in resetInternalLocked() argument
302 mThreshold = threshold; in resetInternalLocked()
/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/packages/SystemUI/src/com/android/systemui/biometrics/
DFaceHelpMessageDeferral.kt57 private val threshold: Float, constant in BiometricMessageDeferral
73 pw.println("threshold=$threshold") in dump()
136 if (acquiredInfoToFrequency.getOrDefault(it, 0) > (threshold * totalFrames)) { in getDeferredMessage()
/frameworks/base/libs/hwui/utils/
DMathUtils.h77 float threshold) { in divisionsNeededToApproximateArc() argument
78 const float errConst = (-threshold / radius + 1); in divisionsNeededToApproximateArc()
/frameworks/native/services/surfaceflinger/Scheduler/
DLayerHistory.cpp41 bool isLayerActive(const LayerInfo& info, nsecs_t threshold) { in isLayerActive() argument
47 return info.isVisible() && info.getLastUpdatedTime() >= threshold; in isLayerActive()
175 const nsecs_t threshold = getActiveLayerThreshold(now); in partitionLayers() local
181 if (isLayerActive(*info, threshold)) { in partitionLayers()
199 if (isLayerActive(*info, threshold)) { in partitionLayers()
/frameworks/base/core/java/android/window/
DSizeConfigurationBuckets.java230 final int threshold = thresholds[i]; in crossesSizeThreshold() local
231 if ((firstDp < threshold && secondDp >= threshold) in crossesSizeThreshold()
232 || (firstDp >= threshold && secondDp < threshold)) { in crossesSizeThreshold()
/frameworks/base/services/core/java/com/android/server/am/
DBaseAppStateTimeSlotEventsTracker.java112 void onNumOfEventsThresholdChanged(int threshold) { in onNumOfEventsThresholdChanged() argument
122 if (totalEvents >= threshold) { in onNumOfEventsThresholdChanged()
230 final int threshold = DeviceConfig.getInt( in updateNumOfEventsThreshold() local
234 if (threshold != mNumOfEventsThreshold) { in updateNumOfEventsThreshold()
235 mNumOfEventsThreshold = threshold; in updateNumOfEventsThreshold()
236 mTracker.onNumOfEventsThresholdChanged(threshold); in updateNumOfEventsThreshold()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DFaceHelpMessageDeferralTest.kt38 val threshold = .75f constant
136 val nonDeferredMessagesCount = (totalMessages * threshold).toInt() + 1 in testDeferredMessage_mustMeetThreshold()
186 return BiometricMessageDeferral(messagesToDefer, threshold, logger, dumpManager) in createMsgDeferral()
/frameworks/proto_logging/stats/enums/server/display/
Denums.proto39 // Hbm sunlight visibility is off due to ambient light drop below threshold.
43 // Hbm sunlight visibility is off due to thermal status exceeding threshold.
53 // Hbm HDR is off due to thermal status exceeding threshold.
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DLightRevealScrim.kt39 fun getPercentPastThreshold(value: Float, threshold: Float): Float { in setRevealAmountOnScrim()
40 return (value - threshold).coerceAtLeast(0f) * (1f / (1f - threshold)) in setRevealAmountOnScrim()
109 threshold = 1 - START_COLOR_REVEAL_PERCENTAGE in setRevealAmountOnScrim()
116 threshold = REVEAL_GRADIENT_END_COLOR_ALPHA_START_PERCENTAGE in setRevealAmountOnScrim()
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/install/
DRequestThrottleTest.kt217 private fun LongSubject.isAround(value: Long, threshold: Long = 10) =
218 isIn(Range.closed(value - threshold, value + threshold))
/frameworks/av/media/libheadtracking/include/media/
DVectorRecorder.h50 size_t vectorSize, std::chrono::duration<double> threshold, int maxLogLine,
57 , mRecordThreshold(threshold) in mVectorSize()
/frameworks/base/core/tests/coretests/src/android/view/
DVelocityTest.java293 private void assertEqualFuzzy(float expected, float actual, float threshold) { in assertEqualFuzzy() argument
294 boolean fuzzyEqual = actual >= expected - threshold && actual <= expected + threshold; in assertEqualFuzzy()
296 "> while accepting a variation of: <"+threshold+">", fuzzyEqual); in assertEqualFuzzy()
/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/base/services/tests/servicestests/src/com/android/server/power/
DThermalManagerServiceTest.java176 for (TemperatureThreshold threshold : mTemperatureThresholdList) { in getTemperatureThresholds()
177 if (shouldFilter && type != threshold.type) { in getTemperatureThresholds()
180 ret.add(threshold); in getTemperatureThresholds()
406 Float threshold = watcher.mSevereThresholds.get("skin1"); in testTemperatureWatcherUpdateSevereThresholds() local
407 assertNotNull(threshold); in testTemperatureWatcherUpdateSevereThresholds()
408 assertEquals(40.0f, threshold, 0.0f); in testTemperatureWatcherUpdateSevereThresholds()
/frameworks/base/core/proto/android/os/
Dappbackgroundrestrictioninfo.proto51 // indicates which threshold caused the app to be put into bg restriction.
52 optional Threshold threshold = 3; field
64 // indicates the reason/tracker which caused the app to hit the threshold.
/frameworks/base/core/java/com/android/internal/dynamicanimation/animation/
DSpringForce.java319 void setValueThreshold(double threshold) { in setValueThreshold() argument
320 mValueThreshold = Math.abs(threshold); in setValueThreshold()

1234