/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 | 26 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()
|
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/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 setThesholdForUid(uid_t uid, 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::setThesholdForUid(uid_t uid, float threshold) { in setThesholdForUid() argument 33 if (!isValidThreshold(threshold)) return; in setThesholdForUid() 36 mMap.emplace(uid, threshold); in setThesholdForUid()
|
D | LayerHistory.cpp | 42 bool isLayerActive(const LayerInfo& info, nsecs_t threshold) { in isLayerActive() argument 48 return info.isVisible() && info.getLastUpdatedTime() >= threshold; in isLayerActive() 219 const nsecs_t threshold = getActiveLayerThreshold(now); in partitionLayers() local 225 if (isLayerActive(*info, threshold)) { in partitionLayers() 243 if (isLayerActive(*info, threshold)) { in partitionLayers() 323 bool LayerHistory::isSmallDirtyArea(uint32_t dirtyArea, float threshold) const { in isSmallDirtyArea() 325 const bool isSmallDirty = ratio <= threshold; in isSmallDirtyArea()
|
/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/ |
D | SmallAreaDetectionController.java | 41 private static native void nativeSetSmallAreaDetectionThreshold(int uid, float threshold); in nativeSetSmallAreaDetectionThreshold() argument 100 final float threshold = Float.valueOf(items[1]); in putToAllowlist() local 101 mAllowPkgMap.put(pkg, threshold); in putToAllowlist() 109 private void updateUidListForAllUsers(SparseArray<Float> list, String pkg, float threshold) { in updateUidListForAllUsers() argument 113 if (uid > 0) list.put(uid, threshold); in updateUidListForAllUsers() 125 final float threshold = mAllowPkgMap.get(pkg); in updateSmallAreaDetection() local 126 updateUidListForAllUsers(uidThresholdList, pkg, threshold); in updateSmallAreaDetection() 143 void setSmallAreaDetectionThreshold(int uid, float threshold) { in setSmallAreaDetectionThreshold() argument 144 nativeSetSmallAreaDetectionThreshold(uid, threshold); in setSmallAreaDetectionThreshold()
|
/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 | 146 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/native/services/surfaceflinger/tests/unittests/ |
D | SmallAreaDetectionAllowMappingsTest.cpp | 49 const float threshold = 0.05f; in TEST_F() local 51 mMappings.setThesholdForUid(uid, threshold); in TEST_F() 52 ASSERT_EQ(mMappings.getThresholdForUid(uid), threshold); in TEST_F()
|
/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/tests/src/com/android/systemui/biometrics/ |
D | FaceHelpMessageDeferralTest.kt | 40 val threshold = .75f constant in com.android.systemui.biometrics.FaceHelpMessageDeferralTest 138 val nonDeferredMessagesCount = (totalMessages * threshold).toInt() + 1 in testDeferredMessage_mustMeetThreshold() 198 val nonDeferredMessagesCount = (totalMessages * threshold).toInt() + 1 in testDeferredMessage_meetThresholdWithIgnoredFrames() 221 threshold, in createMsgDeferral()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | FaceHelpMessageDeferral.kt | 59 private val threshold: Float, constant in BiometricMessageDeferral 75 pw.println("threshold=$threshold") in dump() 146 if (acquiredInfoToFrequency.getOrDefault(it, 0) > (threshold * totalFrames)) { in getDeferredMessage()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_display_SmallAreaDetectionController.cpp | 52 jfloat threshold) { in nativeSetSmallAreaDetectionThreshold() argument 53 SurfaceComposerClient::setSmallAreaDetectionThreshold(uid, 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 | 541 for (TemperatureThreshold threshold : thresholds) { in dumpTemperatureThresholds() 542 pw.println(prefix + "TemperatureThreshold{mType=" + threshold.type in dumpTemperatureThresholds() 543 + ", mName=" + threshold.name in dumpTemperatureThresholds() 545 threshold.hotThrottlingThresholds) in dumpTemperatureThresholds() 547 threshold.coldThrottlingThresholds) in dumpTemperatureThresholds() 1298 android.hardware.thermal.V2_0.TemperatureThreshold threshold) { in convertToAidlTemperatureThreshold() argument 1300 ret.name = threshold.name; in convertToAidlTemperatureThreshold() 1301 ret.type = threshold.type; in convertToAidlTemperatureThreshold() 1302 ret.coldThrottlingThresholds = threshold.coldThrottlingThresholds; in convertToAidlTemperatureThreshold() 1303 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()
|
/frameworks/proto_logging/stats/enums/server/display/ |
D | enums.proto | 39 // 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/services/core/java/com/android/server/am/ |
D | BaseAppStateTimeSlotEventsTracker.java | 112 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()
|