/frameworks/base/telephony/java/android/telephony/ |
D | SignalThresholdInfo.java | 685 private static boolean isValidThreshold(@SignalMeasurementType int type, int threshold) { 688 return threshold >= SIGNAL_RSSI_MIN_VALUE && threshold <= SIGNAL_RSSI_MAX_VALUE; 690 return threshold >= SIGNAL_RSCP_MIN_VALUE && threshold <= SIGNAL_RSCP_MAX_VALUE; 692 return threshold >= SIGNAL_RSRP_MIN_VALUE && threshold <= SIGNAL_RSRP_MAX_VALUE; 694 return threshold >= SIGNAL_RSRQ_MIN_VALUE && threshold <= SIGNAL_RSRQ_MAX_VALUE; 696 return threshold >= SIGNAL_RSSNR_MIN_VALUE && threshold <= SIGNAL_RSSNR_MAX_VALUE; 698 return threshold >= SIGNAL_SSRSRP_MIN_VALUE && threshold <= SIGNAL_SSRSRP_MAX_VALUE; 700 return threshold >= SIGNAL_SSRSRQ_MIN_VALUE && threshold <= SIGNAL_SSRSRQ_MAX_VALUE; 702 return threshold >= SIGNAL_SSSINR_MIN_VALUE && threshold <= SIGNAL_SSSINR_MAX_VALUE; 704 return threshold >= SIGNAL_ECNO_MIN_VALUE && threshold <= SIGNAL_ECNO_MAX_VALUE; [all …]
|
/frameworks/av/media/libaaudio/src/fifo/ |
D | FifoControllerBase.cpp | 27 FifoControllerBase::FifoControllerBase(fifo_frames_t capacity, fifo_frames_t threshold) in FifoControllerBase() argument 29 , mThreshold(threshold) in FifoControllerBase() 65 void FifoControllerBase::setThreshold(fifo_frames_t threshold) { in setThreshold() argument 66 if (threshold > mCapacity) { in setThreshold() 67 threshold = mCapacity; in setThreshold() 68 } else if (threshold < 0) { in setThreshold() 69 threshold = 0; in setThreshold() 71 mThreshold = threshold; in setThreshold()
|
D | FifoControllerBase.h | 44 FifoControllerBase(fifo_frames_t capacity, fifo_frames_t threshold); 110 void setThreshold(fifo_frames_t threshold);
|
D | FifoController.h | 33 FifoController(fifo_frames_t bufferSize, fifo_frames_t threshold) in FifoController() argument 34 : FifoControllerBase(bufferSize, threshold) in FifoController()
|
D | FifoControllerIndirect.h | 37 fifo_frames_t threshold, in FifoControllerIndirect() argument 40 : FifoControllerBase(capacity, threshold) in FifoControllerIndirect()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | SmallAreaDetectionController.java | 41 private static native void nativeSetSmallAreaDetectionThreshold(int appId, float threshold); in nativeSetSmallAreaDetectionThreshold() argument 99 final float threshold = Float.valueOf(items[1]); in putToAllowlist() local 100 mAllowPkgMap.put(pkg, threshold); in putToAllowlist() 110 final float threshold = allowPkgMap.get(pkg); in updateSmallAreaDetection() local 113 appIdThresholdList.put(stage.getAppId(), threshold); in updateSmallAreaDetection() local 131 void setSmallAreaDetectionThreshold(int appId, float threshold) { in setSmallAreaDetectionThreshold() argument 132 nativeSetSmallAreaDetectionThreshold(appId, threshold); in setSmallAreaDetectionThreshold() 157 float threshold = 0.0f; in onPackageAdded() local 160 threshold = mAllowPkgMap.get(packageName); in onPackageAdded() 163 if (threshold > 0.0f) { in onPackageAdded() [all …]
|
/frameworks/av/media/libaaudio/tests/ |
D | test_atomic_fifo.cpp | 35 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/native/services/surfaceflinger/Scheduler/ |
D | SmallAreaDetectionAllowMappings.h | 31 void setThresholdForAppId(int32_t appId, float threshold) EXCLUDES(mLock); 35 static bool isValidThreshold(float threshold) { return threshold >= 0.0f && threshold <= 1.0f; } in isValidThreshold() argument
|
D | SmallAreaDetectionAllowMappings.cpp | 32 void SmallAreaDetectionAllowMappings::setThresholdForAppId(int32_t appId, float threshold) { in setThresholdForAppId() argument 33 if (!isValidThreshold(threshold)) return; in setThresholdForAppId() 36 mMap.emplace(appId, threshold); in setThresholdForAppId()
|
/frameworks/base/services/core/java/com/android/server/cpu/ |
D | CpuAvailabilityMonitoringConfig.java | 72 for (int threshold : thresholds) { in Builder() 73 addThreshold(threshold); in Builder() 78 public Builder addThreshold(int threshold) { in addThreshold() argument 79 if (mThresholds.indexOf(threshold) == -1) { in addThreshold() 80 mThresholds.add(threshold); in addThreshold()
|
/frameworks/base/services/core/java/com/android/server/display/whitebalance/ |
D | DisplayWhiteBalanceThrottler.java | 196 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/ |
D | BinderCallHeavyHitterWatcher.java | 147 int totalBinderCalls, float threshold, long timeSpan); in onHeavyHit() argument 248 public void setConfig(final boolean enable, final int batchSize, final float threshold, in setConfig() argument 260 if (threshold < EPSILON || threshold > 1.0f) { in setConfig() 264 if (batchSize == mTotalInputSize && Math.abs(threshold - mThreshold) < EPSILON) { in setConfig() 270 final int capacity = (int) (1.0f / threshold); in setConfig() 286 resetInternalLocked(listener, sketch, inputSize, batchSize, threshold, capacity); in setConfig() 293 final int batchSize, final float threshold, final int capacity) { in resetInternalLocked() argument 303 mThreshold = threshold; in resetInternalLocked()
|
/frameworks/native/services/inputflinger/ |
D | InputFilter.cpp | 112 void InputFilter::setAccessibilityBounceKeysThreshold(nsecs_t threshold) { in setAccessibilityBounceKeysThreshold() argument 115 if (mConfig.bounceKeysThresholdNs != threshold) { in setAccessibilityBounceKeysThreshold() 116 mConfig.bounceKeysThresholdNs = threshold; in setAccessibilityBounceKeysThreshold() 121 void InputFilter::setAccessibilitySlowKeysThreshold(nsecs_t threshold) { in setAccessibilitySlowKeysThreshold() argument 124 if (mConfig.slowKeysThresholdNs != threshold) { in setAccessibilitySlowKeysThreshold() 125 mConfig.slowKeysThresholdNs = threshold; in setAccessibilitySlowKeysThreshold()
|
D | InputFilter.h | 37 virtual void setAccessibilityBounceKeysThreshold(nsecs_t threshold) = 0; 38 virtual void setAccessibilitySlowKeysThreshold(nsecs_t threshold) = 0; 64 void setAccessibilityBounceKeysThreshold(nsecs_t threshold) override; 65 void setAccessibilitySlowKeysThreshold(nsecs_t threshold) override;
|
/frameworks/base/core/java/com/android/internal/dynamicanimation/animation/ |
D | FlingAnimation.java | 162 void setValueThreshold(float threshold) { in setValueThreshold() argument 163 mFlingForce.setValueThreshold(threshold); in setValueThreshold() 198 void setValueThreshold(float threshold) { in setValueThreshold() argument 199 mVelocityThreshold = threshold * VELOCITY_THRESHOLD_MULTIPLIER; in setValueThreshold()
|
/frameworks/av/media/libeffects/dynamicsproc/dsp/ |
D | DPBase.h | 116 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()
|
D | DPBase.cpp | 91 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/services/tests/mockingservicestests/src/com/android/server/power/ |
D | ThermalManagerServiceMockingTest.java | 410 TemperatureThreshold threshold = ret.get(0).type == Temperature.TYPE_SKIN ? ret.get(0) in getTemperatureThresholds_aidl() local 413 assertEquals(halT1.name, threshold.name); in getTemperatureThresholds_aidl() 414 assertEquals(halT1.type, threshold.type); in getTemperatureThresholds_aidl() 415 assertArrayEquals(halT1.hotThrottlingThresholds, threshold.hotThrottlingThresholds, 0.1f); in getTemperatureThresholds_aidl() 416 assertArrayEquals(halT1.coldThrottlingThresholds, threshold.coldThrottlingThresholds, 0.1f); in getTemperatureThresholds_aidl() 418 threshold = ret.get(0).type == Temperature.TYPE_SOC ? ret.get(0) : ret.get(1); in getTemperatureThresholds_aidl() 420 assertEquals(halT2.name, threshold.name); in getTemperatureThresholds_aidl() 421 assertEquals(halT2.type, threshold.type); in getTemperatureThresholds_aidl() 422 assertArrayEquals(halT2.hotThrottlingThresholds, threshold.hotThrottlingThresholds, 0.1f); in getTemperatureThresholds_aidl() 423 assertArrayEquals(halT2.coldThrottlingThresholds, threshold.coldThrottlingThresholds, 0.1f); in getTemperatureThresholds_aidl() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/ |
D | FaceHelpMessageDeferralTest.kt | 39 val threshold = .75f constant 137 val nonDeferredMessagesCount = (totalMessages * threshold).toInt() + 1 in testDeferredMessage_mustMeetThreshold() 197 val nonDeferredMessagesCount = (totalMessages * threshold).toInt() + 1 in testDeferredMessage_meetThresholdWithIgnoredFrames() 220 threshold, in createMsgDeferral()
|
/frameworks/native/services/inputflinger/rust/ |
D | bounce_keys_filter.rs | 263 threshold: i64, in setup_filter_with_external_device() 268 threshold, in setup_filter_with_external_device() 275 threshold: i64, in setup_filter_with_internal_device() 280 threshold, in setup_filter_with_internal_device() 287 threshold: i64, in setup_filter_with_devices() 289 let mut filter = BounceKeysFilter::new(next, threshold); in setup_filter_with_devices()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | LightRevealScrim.kt | 42 fun getPercentPastThreshold(value: Float, threshold: Float): Float { in setRevealAmountOnScrim() 43 return (value - threshold).coerceAtLeast(0f) * (1f / (1f - threshold)) in setRevealAmountOnScrim() 112 threshold = 1 - START_COLOR_REVEAL_PERCENTAGE in setRevealAmountOnScrim() 119 threshold = REVEAL_GRADIENT_END_COLOR_ALPHA_START_PERCENTAGE in setRevealAmountOnScrim() 164 getPercentPastThreshold(1 - amount, threshold = 1 - START_COLOR_REVEAL_PERCENTAGE) in setRevealAmountOnScrim() 169 threshold = REVEAL_GRADIENT_END_COLOR_ALPHA_START_PERCENTAGE in setRevealAmountOnScrim()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_display_SmallAreaDetectionController.cpp | 52 jfloat threshold) { in nativeSetSmallAreaDetectionThreshold() argument 53 SurfaceComposerClient::setSmallAreaDetectionThreshold(appId, threshold); in nativeSetSmallAreaDetectionThreshold()
|
/frameworks/base/libs/hwui/utils/ |
D | MathUtils.h | 77 float threshold) { in divisionsNeededToApproximateArc() argument 78 const float errConst = (-threshold / radius + 1); in divisionsNeededToApproximateArc()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | ThermalManagerService.java | 640 for (TemperatureThreshold threshold : thresholds) { in dumpTemperatureThresholds() 641 pw.println(prefix + "TemperatureThreshold{mType=" + threshold.type in dumpTemperatureThresholds() 642 + ", mName=" + threshold.name in dumpTemperatureThresholds() 644 threshold.hotThrottlingThresholds) in dumpTemperatureThresholds() 646 threshold.coldThrottlingThresholds) in dumpTemperatureThresholds() 1569 android.hardware.thermal.V2_0.TemperatureThreshold threshold) { in convertToAidlTemperatureThreshold() argument 1571 ret.name = threshold.name; in convertToAidlTemperatureThreshold() 1572 ret.type = threshold.type; in convertToAidlTemperatureThreshold() 1573 ret.coldThrottlingThresholds = threshold.coldThrottlingThresholds; in convertToAidlTemperatureThreshold() 1574 ret.hotThrottlingThresholds = threshold.hotThrottlingThresholds; in convertToAidlTemperatureThreshold() [all …]
|
/frameworks/base/core/java/android/window/ |
D | SizeConfigurationBuckets.java | 230 final int threshold = thresholds[i]; in crossesSizeThreshold() local 231 if ((firstDp < threshold && secondDp >= threshold) in crossesSizeThreshold() 232 || (firstDp >= threshold && secondDp < threshold)) { in crossesSizeThreshold()
|