/aosp14/frameworks/base/telephony/java/android/telephony/ |
H A D | SignalThresholdInfo.java | 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; 747 for (int threshold : thresholds) { [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/display/ |
H A 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()
|
/aosp14/frameworks/base/services/core/java/com/android/server/cpu/ |
H A 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()
|
H A D | CpuMonitorService.java | 429 int threshold = thresholds.get(i); in didCrossAnyThreshold() local 437 if (prevAvailabilityPercent < threshold && curAvailabilityPercent >= threshold) { in didCrossAnyThreshold() 440 if (prevAvailabilityPercent >= threshold && curAvailabilityPercent < threshold) { in didCrossAnyThreshold()
|
/aosp14/frameworks/base/services/core/java/com/android/server/display/whitebalance/ |
H A 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);
|
/aosp14/frameworks/base/core/java/com/android/internal/os/ |
H A 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()
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/ |
H A 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() 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() 449 TemperatureThreshold threshold = ret.get(0); in getTemperatureThresholds_withFilter_aidl() local 450 assertEquals(halT1.name, threshold.name); in getTemperatureThresholds_withFilter_aidl() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ |
H A D | FaceHelpMessageDeferralTest.kt | 40 val threshold = .75f regex 138 val nonDeferredMessagesCount = (totalMessages * threshold).toInt() + 1 198 val nonDeferredMessagesCount = (totalMessages * threshold).toInt() + 1 221 threshold,
|
/aosp14/system/core/init/ |
H A D | perfboot.py | 109 def _get_cpu_temp(self, threshold): argument 114 if temp >= threshold: 119 threshold = IntervalAdjuster._CPU_COOL_DOWN_THRESHOLDS.get( 121 if threshold is None: 128 temp = self._get_cpu_temp(threshold) 129 if temp < threshold: 133 temp, threshold))
|
/aosp14/frameworks/base/services/core/java/com/android/server/power/ |
H A D | ThermalManagerService.java | 541 for (TemperatureThreshold threshold : thresholds) { in dumpTemperatureThresholds() 543 + ", mName=" + threshold.name in dumpTemperatureThresholds() 545 threshold.hotThrottlingThresholds) in dumpTemperatureThresholds() 547 threshold.coldThrottlingThresholds) in dumpTemperatureThresholds() 1300 ret.name = threshold.name; in convertToAidlTemperatureThreshold() 1301 ret.type = threshold.type; in convertToAidlTemperatureThreshold() 1303 ret.hotThrottlingThresholds = threshold.hotThrottlingThresholds; in convertToAidlTemperatureThreshold() 1360 TemperatureThreshold threshold = thresholds.get(t); in updateSevereThresholds() local 1367 mSevereThresholds.put(threshold.name, in updateSevereThresholds() 1489 Float threshold = mSevereThresholds.get(name); in getForecast() local [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
H A D | FaceHelpMessageDeferral.kt | 59 private val threshold: Float, 75 pw.println("threshold=$threshold") 146 if (acquiredInfoToFrequency.getOrDefault(it, 0) > (threshold * totalFrames)) {
|
/aosp14/frameworks/base/core/java/android/window/ |
H A 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()
|
/aosp14/frameworks/base/services/core/jni/ |
H A D | com_android_server_display_SmallAreaDetectionController.cpp | 52 jfloat threshold) { in nativeSetSmallAreaDetectionThreshold() argument 53 SurfaceComposerClient::setSmallAreaDetectionThreshold(uid, threshold); in nativeSetSmallAreaDetectionThreshold()
|
/aosp14/frameworks/base/services/core/java/com/android/server/am/ |
H A 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()
|
/aosp14/frameworks/base/libs/hwui/utils/ |
H A D | MathUtils.h | 77 float threshold) { in divisionsNeededToApproximateArc() argument 78 const float errConst = (-threshold / radius + 1); in divisionsNeededToApproximateArc()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | LightRevealScrim.kt | 41 fun getPercentPastThreshold(value: Float, threshold: Float): Float { 42 return (value - threshold).coerceAtLeast(0f) * (1f / (1f - threshold)) 111 threshold = 1 - START_COLOR_REVEAL_PERCENTAGE 118 threshold = REVEAL_GRADIENT_END_COLOR_ALPHA_START_PERCENTAGE
|
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/install/ |
H A D | RequestThrottleTest.kt | 217 private fun LongSubject.isAround(value: Long, threshold: Long = 10) = 218 isIn(Range.closed(value - threshold, value + threshold))
|
/aosp14/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | VelocityTest.java | 293 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()
|
/aosp14/system/core/storaged/include/ |
H A D | storaged.h | 146 double hours, uint64_t threshold, bool force_report) { in get_uid_records() argument 147 return mUidm.dump(hours, threshold, force_report); in get_uid_records()
|
/aosp14/system/core/storaged/ |
H A D | storaged_service.cpp | 107 uint64_t threshold = 0; in dump() local 129 if(!ParseUint(String8(args[i]).c_str(), &threshold)) in dump() 145 storaged_sp->get_uid_records(hours, threshold, force_report); in dump()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
H A D | ThermalManagerServiceTest.java | 183 for (TemperatureThreshold threshold : mTemperatureThresholdList) { in getTemperatureThresholds() 184 if (shouldFilter && type != threshold.type) { in getTemperatureThresholds() 187 ret.add(threshold); in getTemperatureThresholds() 423 Float threshold = watcher.mSevereThresholds.get("skin1"); in testTemperatureWatcherUpdateSevereThresholds() local 424 assertNotNull(threshold); in testTemperatureWatcherUpdateSevereThresholds() 425 assertEquals(40.0f, threshold, 0.0f); in testTemperatureWatcherUpdateSevereThresholds()
|
/aosp14/frameworks/base/core/java/com/android/internal/widget/ |
H A D | DrawableHolder.java | 128 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()
|
/aosp14/frameworks/base/core/proto/android/os/ |
H A D | appbackgroundrestrictioninfo.proto | 51 // 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.
|
/aosp14/frameworks/base/core/java/com/android/internal/dynamicanimation/animation/ |
H A D | SpringForce.java | 319 void setValueThreshold(double threshold) { in setValueThreshold() argument 320 mValueThreshold = Math.abs(threshold); in setValueThreshold()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/hardware/display/ |
H A D | VirtualDisplayTest.java | 531 final int threshold = width * height / 4; in scanImage() local 532 if (bluePixels > threshold) { in scanImage() 536 if (greenPixels > threshold) { in scanImage() 540 if (blackPixels > threshold) { in scanImage()
|