Home
last modified time | relevance | path

Searched refs:thresholds (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/telephony/java/android/telephony/
DSignalThresholdInfo.java308 @NonNull int[] thresholds, boolean isEnabled) { in SignalThresholdInfo() argument
309 Objects.requireNonNull(thresholds, "thresholds must not be null"); in SignalThresholdInfo()
311 validateThresholdRange(signalMeasurementType, thresholds); in SignalThresholdInfo()
317 mThresholds = thresholds; in SignalThresholdInfo()
404 public @NonNull Builder setThresholds(@NonNull int[] thresholds) {
405 return setThresholds(thresholds, false /*isSystem*/);
418 public @NonNull Builder setThresholds(@NonNull int[] thresholds, boolean isSystem) {
419 Objects.requireNonNull(thresholds, "thresholds must not be null");
420 if (!isSystem && (thresholds.length < MINIMUM_NUMBER_OF_THRESHOLDS_ALLOWED
421 || thresholds.length > MAXIMUM_NUMBER_OF_THRESHOLDS_ALLOWED)) {
[all …]
DCellSignalStrengthNr.java454 private int updateLevelWithMeasure(int measure, int[] thresholds) { in updateLevelWithMeasure() argument
458 } else if (measure > thresholds[3]) { in updateLevelWithMeasure()
460 } else if (measure > thresholds[2]) { in updateLevelWithMeasure()
462 } else if (measure > thresholds[1]) { in updateLevelWithMeasure()
464 } else if (measure > thresholds[0]) { in updateLevelWithMeasure()
DCellSignalStrengthLte.java383 private int updateLevelWithMeasure(int measure, int[] thresholds) { in updateLevelWithMeasure() argument
387 } else if (measure >= thresholds[3]) { in updateLevelWithMeasure()
389 } else if (measure >= thresholds[2]) { in updateLevelWithMeasure()
391 } else if (measure >= thresholds[1]) { in updateLevelWithMeasure()
393 } else if (measure >= thresholds[0]) { in updateLevelWithMeasure()
/frameworks/base/core/java/android/window/
DSizeConfigurationBuckets.java135 private static boolean crossesSizeThreshold(int[] thresholds, int firstDp, in crossesSizeThreshold() argument
137 if (thresholds == null) { in crossesSizeThreshold()
140 for (int i = thresholds.length - 1; i >= 0; i--) { in crossesSizeThreshold()
141 final int threshold = thresholds[i]; in crossesSizeThreshold()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DThermalManagerServiceTest.java110 ArrayList<TemperatureThreshold> thresholds = new ArrayList<>(); in initializeThresholds() local
120 thresholds.add(skinThreshold); in initializeThresholds()
133 thresholds.add(cpuThreshold); in initializeThresholds()
135 return thresholds; in initializeThresholds()
/frameworks/native/services/surfaceflinger/FrameTimeline/
DFrameTimeline.h156 std::shared_ptr<TimeStats> timeStats, JankClassificationThresholds thresholds,
355 DisplayFrame(std::shared_ptr<TimeStats> timeStats, JankClassificationThresholds thresholds,
437 JankClassificationThresholds thresholds = {});
DFrameTimeline.cpp306 JankClassificationThresholds thresholds, in SurfaceFrame() argument
320 mJankClassificationThresholds(thresholds),
757 JankClassificationThresholds thresholds) in FrameTimeline() argument
761 mJankClassificationThresholds(thresholds) { in FrameTimeline()
763 std::make_shared<DisplayFrame>(mTimeStats, thresholds, &mTraceCookieCounter); in FrameTimeline()
807 JankClassificationThresholds thresholds, in DisplayFrame() argument
812 mJankClassificationThresholds(thresholds), in DisplayFrame()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DDisplayModeDirectorTest.java1579 String thresholds = toPropertyValue(brightnessThresholds); in setLowDisplayBrightnessThresholds() local
1582 Slog.e(TAG, "Brightness Thresholds = " + thresholds); in setLowDisplayBrightnessThresholds()
1588 thresholds); in setLowDisplayBrightnessThresholds()
1592 String thresholds = toPropertyValue(ambientThresholds); in setLowAmbientBrightnessThresholds() local
1595 Slog.e(TAG, "Ambient Thresholds = " + thresholds); in setLowAmbientBrightnessThresholds()
1601 thresholds); in setLowAmbientBrightnessThresholds()
1611 String thresholds = toPropertyValue(brightnessThresholds); in setHighDisplayBrightnessThresholds() local
1614 Slog.e(TAG, "Brightness Thresholds = " + thresholds); in setHighDisplayBrightnessThresholds()
1620 thresholds); in setHighDisplayBrightnessThresholds()
1624 String thresholds = toPropertyValue(ambientThresholds); in setHighAmbientBrightnessThresholds() local
[all …]
/frameworks/base/services/core/java/com/android/server/power/
DThermalManagerService.java1031 (status, thresholds) -> { in getTemperatureThresholds()
1033 ret.addAll(thresholds); in getTemperatureThresholds()
1093 List<TemperatureThreshold> thresholds = in updateSevereThresholds() local
1095 for (int t = 0; t < thresholds.size(); ++t) { in updateSevereThresholds()
1096 TemperatureThreshold threshold = thresholds.get(t); in updateSevereThresholds()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSignalThresholdInfoTest.java284 int[] thresholds) { in buildWithInvalidParameterThrowException() argument
289 .setThresholds(thresholds) in buildWithInvalidParameterThrowException()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayModeDirector.java747 Pair<int[], int[]> thresholds = (Pair<int[], int[]>) msg.obj; in handleMessage() local
749 thresholds.first, thresholds.second); in handleMessage()
761 Pair<int[], int[]> thresholds = (Pair<int[], int[]>) msg.obj; in handleMessage() local
764 thresholds.first, thresholds.second); in handleMessage()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhone.java4501 int signalStrengthMeasure, int[] thresholds, int ran, boolean isEnabled) { in setSignalStrengthReportingCriteria() argument
DRIL.java5293 signalThresholdInfoHal.thresholds = primitiveArrayToArrayList( in convertToHalSignalThresholdInfo()