/aosp12/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/ |
H A D | CbSendMessageCalculatorTest.java | 79 float threshold = 100; in testSingleSquareOutside() local 82 testSquareOutside(coor, threshold - 10, threshold); in testSingleSquareOutside() 83 testSquareOutside(coor, threshold + 10, threshold); in testSingleSquareOutside() 95 float threshold = 100; in testSingleSquareInside() local 96 testSquareInside(coor, threshold - 10, threshold); in testSingleSquareInside() 97 testSquareInside(coor, threshold + 10, threshold); in testSingleSquareInside() 109 float threshold = 100; in testSingleSquareInsideAndOutsideThreshold() local 113 testSquareAmbiguous(coor, threshold + 50, threshold); in testSingleSquareInsideAndOutsideThreshold() 187 float threshold = 100; in testMultipleAddsWithOnceSendAlwaysSend() local 205 float threshold = 100; in testMultipleAddsWithDontSendThenSend() local [all …]
|
/aosp12/frameworks/base/telephony/java/android/telephony/ |
H A D | SignalThresholdInfo.java | 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) { 669 if (!isValidThreshold(signalMeasurement, threshold)) { [all …]
|
/aosp12/frameworks/av/media/libaaudio/src/fifo/ |
H A D | FifoControllerBase.cpp | 26 FifoControllerBase::FifoControllerBase(fifo_frames_t capacity, fifo_frames_t threshold) in FifoControllerBase() argument 28 , mThreshold(threshold) in FifoControllerBase() 67 void FifoControllerBase::setThreshold(fifo_frames_t threshold) { in setThreshold() argument 68 if (threshold > mCapacity) { in setThreshold() 69 threshold = mCapacity; in setThreshold() 70 } else if (threshold < 0) { in setThreshold() 71 threshold = 0; in setThreshold() 73 mThreshold = threshold; in setThreshold()
|
/aosp12/packages/services/Car/service/src/com/android/car/watchdog/ |
H A D | OveruseConfigurationCache.java | 168 PerStateBytes threshold = null; in fetchThreshold() local 172 if (threshold != null) { in fetchThreshold() 173 return copyPerStateBytes(threshold); in fetchThreshold() 178 if (threshold != null) { in fetchThreshold() 179 return copyPerStateBytes(threshold); in fetchThreshold() 184 if (threshold != null) { in fetchThreshold() 185 return copyPerStateBytes(threshold); in fetchThreshold() 188 return threshold != null ? copyPerStateBytes(threshold) in fetchThreshold() 275 PerStateIoOveruseThreshold threshold = thresholds.get(i); in setIoThresholdsByAppCategoryTypeLocked() local 276 switch(threshold.name) { in setIoThresholdsByAppCategoryTypeLocked() [all …]
|
/aosp12/frameworks/av/media/libaaudio/tests/ |
H A 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() 79 constexpr int threshold = capacity; in TEST() local 80 FifoController fifoController(capacity, threshold); in TEST() 121 if (threshold <= 0) { in TestFifoBuffer() 122 threshold = capacity; in TestFifoBuffer() 124 mFifoBuffer.setThreshold(threshold); in TestFifoBuffer() 125 mThreshold = threshold; in TestFifoBuffer() 368 constexpr int threshold = 37; // arbitrary in TEST() local [all …]
|
/aosp12/packages/apps/Dialer/java/com/android/incallui/ |
H A D | InCallOrientationEventListener.java | 83 private static boolean isWithinThreshold(int value, int center, int threshold) { in isWithinThreshold() argument 84 return isWithinRange(value, center - threshold, center + threshold); in isWithinThreshold() 87 private static boolean isInLeftRange(int value, int center, int threshold) { in isInLeftRange() argument 88 return isWithinRange(value, center - threshold, center); in isInLeftRange() 91 private static boolean isInRightRange(int value, int center, int threshold) { in isInRightRange() argument 92 return isWithinRange(value, center, center + threshold); in isInRightRange()
|
/aosp12/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);
|
/aosp12/packages/services/Car/cpp/watchdog/server/tests/ |
H A D | OveruseConfigurationTestUtils.cpp | 117 PerStateIoOveruseThreshold threshold; in toPerStateIoOveruseThreshold() local 118 threshold.name = name; in toPerStateIoOveruseThreshold() 119 threshold.perStateWriteBytes = perStateBytes; in toPerStateIoOveruseThreshold() 120 return threshold; in toPerStateIoOveruseThreshold() 151 IoOveruseAlertThreshold threshold; in toIoOveruseAlertThreshold() local 152 threshold.durationInSeconds = durationInSeconds; in toIoOveruseAlertThreshold() 153 threshold.writtenBytesPerSecond = writtenBytesPerSecond; in toIoOveruseAlertThreshold() 154 return threshold; in toIoOveruseAlertThreshold()
|
/aosp12/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()
|
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
H A D | RecentsOrientedState.java | 464 int threshold = 70; in getRotationForUserDegreesRotated() local 467 if (degrees > 180 && degrees < (360 - threshold)) { in getRotationForUserDegreesRotated() 470 if (degrees < 180 && degrees > threshold) { in getRotationForUserDegreesRotated() 475 if (degrees < (90 - threshold) || in getRotationForUserDegreesRotated() 479 if (degrees > (90 + threshold) && degrees < 180) { in getRotationForUserDegreesRotated() 483 if (degrees > (180 + threshold) && degrees < 360) { in getRotationForUserDegreesRotated() 488 if (degrees < (180 - threshold)) { in getRotationForUserDegreesRotated() 491 if (degrees > (180 + threshold)) { in getRotationForUserDegreesRotated() 496 if (degrees < (270 - threshold) && degrees > 90) { in getRotationForUserDegreesRotated() 499 if (degrees > (270 + threshold) && degrees < 360 in getRotationForUserDegreesRotated() [all …]
|
/aosp12/packages/services/Car/cpp/watchdog/server/src/ |
H A D | IoOveruseMonitor.cpp | 284 calculateOveruseAndForgivenBytes(deltaWrittenBytes, threshold); 302 const auto exceedsWarnThreshold = [&](double remaining, double threshold) { in __anon39c7dd3a0802() argument 303 if (threshold == 0) { in __anon39c7dd3a0802() 306 double usedPercent = (100 - (remaining / threshold) * 100); in __anon39c7dd3a0802() 326 threshold.foregroundBytes) || 328 threshold.backgroundBytes) || 330 threshold.garageModeBytes))) { 395 for (const auto& threshold : mIoOveruseConfigs->systemWideAlertThresholds()) { in onPeriodicMonitor() local 404 if (accountedDurationInSecs >= threshold.durationInSeconds) { in onPeriodicMonitor() 411 threshold.durationInSeconds > accountedDurationInSecs) { in onPeriodicMonitor() [all …]
|
H A D | IoOveruseConfigs.h | 56 android::automotive::watchdog::internal::PerStateIoOveruseThreshold threshold; in defaultThreshold() local 57 threshold.name = kDefaultThresholdName; in defaultThreshold() 58 threshold.perStateWriteBytes.foregroundBytes = std::numeric_limits<int64_t>::max(); in defaultThreshold() 59 threshold.perStateWriteBytes.backgroundBytes = std::numeric_limits<int64_t>::max(); in defaultThreshold() 60 threshold.perStateWriteBytes.garageModeBytes = std::numeric_limits<int64_t>::max(); in defaultThreshold() 61 return threshold; in defaultThreshold() 112 threshold) const;
|
H A D | IoOveruseConfigs.cpp | 108 Result<void> containsValidThreshold(const IoOveruseAlertThreshold& threshold) { in containsValidThreshold() argument 109 if (threshold.durationInSeconds <= 0) { in containsValidThreshold() 112 if (threshold.writtenBytesPerSecond <= 0) { in containsValidThreshold() 149 for (const auto& threshold : ioOveruseConfig.systemWideThresholds) { in isValidIoOveruseConfiguration() local 150 if (auto result = containsValidThreshold(threshold); !result.ok()) { in isValidIoOveruseConfiguration() 347 const IoOveruseAlertThreshold& threshold) const { in operator ()() 348 return std::hash<std::string>{}(std::to_string(threshold.durationInSeconds)); in operator ()() 628 ioOveruseConfiguration.packageSpecificThresholds.push_back(threshold); in get() 636 for (const auto& [category, threshold] : mPerCategoryThresholds) { in get() 641 for (const auto& threshold : mAlertThresholds) { in get() local [all …]
|
/aosp12/art/tools/dexfuzz/src/dexfuzz/ |
H A D | Log.java | 23 private static LogTag threshold = LogTag.ERROR; field in Log 37 threshold = tag; in setLoggingLevel() 41 return (threshold.ordinal() < LogTag.ERROR.ordinal()); in likelyToLog() 65 if (tag.ordinal() >= threshold.ordinal()) { in log()
|
/aosp12/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/ |
H A D | ContactMatcher.java | 232 float threshold = emailBased in matchName() local 235 if (distance > threshold) { in matchName() 284 public List<Long> prepareSecondaryMatchCandidates(int threshold) { in prepareSecondaryMatchCandidates() argument 294 if (s >= threshold) { in prepareSecondaryMatchCandidates() 311 public long pickBestMatch(int threshold, boolean allowMultipleMatches) { in pickBestMatch() argument 329 if (s >= threshold) { in pickBestMatch() 347 public List<MatchScore> pickBestMatches(int threshold) { in pickBestMatches() argument 348 int scaledThreshold = threshold * MatchScore.SCORE_SCALE; in pickBestMatches()
|
/aosp12/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/ |
H A D | ContextualCardFeatureProviderImpl.java | 46 final long threshold = System.currentTimeMillis() - DateUtils.DAY_IN_MILLIS; in getContextualCards() local 49 final String[] selectionArgs = {String.valueOf(threshold)}; in getContextualCards() 53 ThreadUtils.postOnBackgroundThread(() -> resetDismissedTime(threshold)); in getContextualCards() 70 int resetDismissedTime(long threshold) { in resetDismissedTime() argument 77 final String[] selectionArgs = {String.valueOf(threshold)}; in resetDismissedTime()
|
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
H A D | UsageBytesThresholdPickerDialog.java | 148 void setThresholdEditor(long threshold) { in setThresholdEditor() argument 149 updateCurrentView(threshold); in setThresholdEditor() 152 private void updateCurrentView(long threshold) { in updateCurrentView() argument 154 if (threshold > MB_GB_SUFFIX_THRESHOLD * GIB_IN_BYTES) { in updateCurrentView() 155 bytesText = formatText(threshold / (float) GIB_IN_BYTES); in updateCurrentView() 158 bytesText = formatText(threshold / (float) MIB_IN_BYTES); in updateCurrentView()
|
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/ |
H A D | InternalIoOveruseConfigurationSubject.java | 105 public static String toString(PerStateIoOveruseThreshold threshold) { in toString() argument 107 builder.append("{Name: ").append(threshold.name).append(", WriteBytes: "); in toString() 108 InternalPerStateBytesSubject.toStringBuilder(builder, threshold.perStateWriteBytes); in toString() 113 public static String toString(IoOveruseAlertThreshold threshold) { in toString() argument 115 builder.append("{durationInSeconds: ").append(threshold.durationInSeconds) in toString() 116 .append(", writtenBytesPerSecond: ").append(threshold.writtenBytesPerSecond) in toString()
|
/aosp12/packages/modules/StatsD/statsd/tests/e2e/ |
H A D | Anomaly_count_e2e_test.cpp | 32 StatsdConfig CreateStatsdConfig(int num_buckets, int threshold, int refractory_period_sec) { in CreateStatsdConfig() argument 51 alert->set_trigger_if_sum_gt(threshold); in CreateStatsdConfig() 59 const int threshold = 3; in TEST() local 61 auto config = CreateStatsdConfig(num_buckets, threshold, refractory_period_sec); in TEST() 176 const int threshold = 3; in TEST() local 178 auto config = CreateStatsdConfig(num_buckets, threshold, refractory_period_sec); in TEST() 246 const int threshold = 0; in TEST() local 248 auto config = CreateStatsdConfig(num_buckets, threshold, refractory_period_sec); in TEST() 271 const int threshold = 0; in TEST() local 273 auto config = CreateStatsdConfig(num_buckets, threshold, refractory_period_sec); in TEST() [all …]
|
H A D | ConfigTtl_e2e_test.cpp | 31 StatsdConfig CreateStatsdConfig(int num_buckets, int threshold) { in CreateStatsdConfig() argument 50 alert->set_trigger_if_sum_gt(threshold); in CreateStatsdConfig() 61 const int threshold = 3; in TEST() local 62 auto config = CreateStatsdConfig(num_buckets, threshold); in TEST()
|
/aosp12/system/memory/lmkd/ |
H A D | README.md | 68 total swap space used as a threshold to consider 73 the file-backed pagecache size used as a threshold 78 ro.lmk.thrashing_limit_decay: thrashing threshold decay expressed as a 79 percentage of the original threshold used to lower 80 the threshold when system does not recover even 84 ro.lmk.psi_partial_stall_ms: partial PSI stall threshold in milliseconds for 88 ro.lmk.psi_complete_stall_ms: complete PSI stall threshold in milliseconds for
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | AutoCorrectionUtils.java | 33 final String consideredWord, final float threshold) { in suggestionExceedsThreshold() argument 51 + "(" + threshold + ")"); in suggestionExceedsThreshold() 53 if (normalizedScore >= threshold) { in suggestionExceedsThreshold()
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
H A D | MessageTextStats.java | 63 final int threshold = mmsConfig.getSmsToMmsTextThreshold(); in updateMessageTextStats() local 64 mMessageLengthRequiresMms = threshold > 0 && mMessageCount > threshold; in updateMessageTextStats()
|
/aosp12/frameworks/av/media/libeffects/dynamicsproc/dsp/ |
H A 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()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/ |
H A D | ContextualCardFeatureProviderImplTest.java | 87 final long threshold = 1000L; in resetDismissedTime_durationExpired_shouldResetToNull() local 89 final int rowsUpdated = mImpl.resetDismissedTime(threshold); in resetDismissedTime_durationExpired_shouldResetToNull() 97 final long threshold = 1000L; in resetDismissedTime_durationNotExpired_shouldNotUpdate() local 99 final int rowsUpdated = mImpl.resetDismissedTime(threshold); in resetDismissedTime_durationNotExpired_shouldNotUpdate()
|