Home
last modified time | relevance | path

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

12

/aosp12/frameworks/base/telephony/java/android/telephony/
H A 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*/);
419 Objects.requireNonNull(thresholds, "thresholds must not be null");
421 || thresholds.length > MAXIMUM_NUMBER_OF_THRESHOLDS_ALLOWED)) {
426 mThresholds = thresholds.clone();
667 int[] thresholds) {
[all …]
H A 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()
H A 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()
/aosp12/frameworks/base/core/tests/mockingcoretests/src/android/window/
H A DSizeConfigurationBucketsTest.java120 final int[] thresholds = new int[] { 360, 600 }; in testCrossesSizeThreshold() local
121 final int nThresholds = thresholds.length; in testCrossesSizeThreshold()
123 final int minValueInBucket = i < 0 ? 0 : thresholds[i]; in testCrossesSizeThreshold()
125 ? thresholds[i + 1] - 1 : Integer.MAX_VALUE; in testCrossesSizeThreshold()
132 checkCrossesSizeThreshold(thresholds, oldValue, minValueInBucket, false); in testCrossesSizeThreshold()
133 checkCrossesSizeThreshold(thresholds, oldValue, in testCrossesSizeThreshold()
135 checkCrossesSizeThreshold(thresholds, oldValue, maxValueInBucket, false); in testCrossesSizeThreshold()
142 checkCrossesSizeThreshold(thresholds, oldValue, minValueInBucket - 20, true); in testCrossesSizeThreshold()
143 checkCrossesSizeThreshold(thresholds, oldValue, minValueInBucket - 1, true); in testCrossesSizeThreshold()
147 checkCrossesSizeThreshold(thresholds, oldValue, maxValueInBucket + 1, true); in testCrossesSizeThreshold()
[all …]
/aosp12/packages/services/Car/cpp/watchdog/server/src/
H A DOveruseConfigurationXmlHelper.cpp277 PerStateIoOveruseThreshold thresholds; in readComponentLevelThresholds() local
278 thresholds.name = toString(componentType); in readComponentLevelThresholds()
285 return thresholds; in readComponentLevelThresholds()
307 thresholds.push_back(threshold); in readPerStateThresholds()
309 return thresholds; in readPerStateThresholds()
320 thresholds.insert(thresholds.end(), result->begin(), result->end()); in readPackageSpecificThresholds()
326 return thresholds; in readPackageSpecificThresholds()
337 thresholds.insert(thresholds.end(), result->begin(), result->end()); in readAppCategorySpecificThresholds()
343 return thresholds; in readAppCategorySpecificThresholds()
578 for (const auto threshold : thresholds) { in writePackageSpecificThresholds()
[all …]
H A DIoOveruseConfigs.cpp89 thresholds.name.c_str(), thresholds.perStateWriteBytes.foregroundBytes, in toString()
95 if (thresholds.name.empty()) { in containsValidThresholds()
99 if (thresholds.perStateWriteBytes.foregroundBytes <= 0 || in containsValidThresholds()
100 thresholds.perStateWriteBytes.backgroundBytes <= 0 || in containsValidThresholds()
101 thresholds.perStateWriteBytes.garageModeBytes <= 0) { in containsValidThresholds()
103 << toString(thresholds); in containsValidThresholds()
253 if (thresholds.empty()) { in updatePerPackageThresholds()
257 for (const auto& packageThreshold : thresholds) { in updatePerPackageThresholds()
359 if (thresholds.empty()) { in updatePerCategoryThresholds()
363 for (const auto& categoryThreshold : thresholds) { in updatePerCategoryThresholds()
[all …]
H A DIoOveruseConfigs.h149 thresholds,
242 thresholds);
245 thresholds);
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/util/
H A DRssiUtil.java29 int[] thresholds = getRssiLevelThresholds(context); in calculateSignalLevel() local
31 for (int level = 0; level < thresholds.length; level++) { in calculateSignalLevel()
32 if (rssi < thresholds[level]) { in calculateSignalLevel()
36 return thresholds.length; in calculateSignalLevel()
/aosp12/packages/services/Car/service/src/com/android/car/watchdog/
H A DOveruseConfigurationCache.java273 List<PerStateIoOveruseThreshold> thresholds) { in setIoThresholdsByAppCategoryTypeLocked() argument
274 for (int i = 0; i < thresholds.size(); ++i) { in setIoThresholdsByAppCategoryTypeLocked()
275 PerStateIoOveruseThreshold threshold = thresholds.get(i); in setIoThresholdsByAppCategoryTypeLocked()
290 private void populateThresholdsByPackagesLocked(List<PerStateIoOveruseThreshold> thresholds, in populateThresholdsByPackagesLocked() argument
292 for (int i = 0; i < thresholds.size(); ++i) { in populateThresholdsByPackagesLocked()
294 thresholds.get(i).name, thresholds.get(i).perStateWriteBytes); in populateThresholdsByPackagesLocked()
H A DWatchdogPerfHandler.java2119 Map<String, PerStateBytes> thresholds) { in toPerStateIoOveruseThresholds() argument
2121 for (Map.Entry<String, PerStateBytes> entry : thresholds.entrySet()) { in toPerStateIoOveruseThresholds()
2122 if (!thresholds.isEmpty()) { in toPerStateIoOveruseThresholds()
2145 for (int i = 0; i < thresholds.size(); ++i) { in toInternalIoOveruseAlertThresholds()
2146 if (thresholds.get(i).getDurationInSeconds() == 0 in toInternalIoOveruseAlertThresholds()
2147 || thresholds.get(i).getWrittenBytesPerSecond() == 0) { in toInternalIoOveruseAlertThresholds()
2218 List<PerStateIoOveruseThreshold> thresholds) { in toPerStateBytesMap() argument
2220 for (int i = 0; i < thresholds.size(); ++i) { in toPerStateBytesMap()
2222 thresholds.get(i).name, toPerStateBytes(thresholds.get(i).perStateWriteBytes)); in toPerStateBytesMap()
2229 List<IoOveruseAlertThreshold> thresholds = new ArrayList<>(); in toIoOveruseAlertThresholds() local
[all …]
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/
H A DWifiNetworkAgent.java47 void onSignalStrengthThresholdsUpdated(@NonNull int[] thresholds); in onSignalStrengthThresholdsUpdated() argument
121 public void onSignalStrengthThresholdsUpdated(@NonNull int[] thresholds) { in onSignalStrengthThresholdsUpdated() argument
122 mCallback.onSignalStrengthThresholdsUpdated(thresholds); in onSignalStrengthThresholdsUpdated()
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
H A DInternalIoOveruseConfigurationSubject.java142 List<PerStateIoOveruseThreshold> thresholds) { in toPerStateThresholdStrings() argument
143 return thresholds.stream().map(x -> String.format("%s:{%d,%d,%d}", x.name, in toPerStateThresholdStrings()
150 List<IoOveruseAlertThreshold> thresholds) { in toAlertThresholdStrings() argument
151 return thresholds.stream().map(x -> String.format("%d:%d", x.durationInSeconds, in toAlertThresholdStrings()
H A DIoOveruseConfigurationSubject.java119 private static Set<String> toAlertThresholdStrings(List<IoOveruseAlertThreshold> thresholds) { in toAlertThresholdStrings() argument
120 return thresholds.stream().map(x -> String.format("%d:%d", x.getDurationInSeconds(), in toAlertThresholdStrings()
/aosp12/hardware/interfaces/radio/1.2/
H A DIRadio.hal89 * @param thresholdsDbm A vector of trigger thresholds in dBm. A vector size of 0 disables the
90 * use of thresholds for reporting.
91 * @param accessNetwork The type of network for which to apply these thresholds.
115 * @param thresholdsDownlinkKbps A vector of trigger thresholds in kbps for downlink reports. A
116 * vector size of 0 disables the use of DL thresholds for reporting.
117 * @param thresholdsUplinkKbps A vector of trigger thresholds in kbps for uplink reports. A
118 * vector size of 0 disables the use of UL thresholds for reporting.
119 * @param accessNetwork The type of network for which to apply these thresholds.
/aosp12/frameworks/base/core/java/android/window/
H A DSizeConfigurationBuckets.java233 public static boolean crossesSizeThreshold(int[] thresholds, int firstDp, in crossesSizeThreshold() argument
235 if (thresholds == null) { in crossesSizeThreshold()
238 for (int i = thresholds.length - 1; i >= 0; i--) { in crossesSizeThreshold()
239 final int threshold = thresholds[i]; in crossesSizeThreshold()
/aosp12/hardware/interfaces/thermal/2.0/
H A DIThermal.hal45 * Retrieves static temperature thresholds in Celsius.
53 * temperatures thresholds. The order of temperatures of built-in
57 * always returns and never removes such temperatures. The thresholds
60 * which might not be simple thresholds so these values Thermal HAL provided
/aosp12/hardware/interfaces/wifi/1.0/
H A DIWifiStaIfaceEventCallback.hal44 * |REPORT_EVENTS_EACH_SCAN| or one of the configured thresholds was
54 * thresholds set via |IWifiStaIface.startRssiMonitoring|.
/aosp12/packages/modules/Connectivity/framework/src/android/net/
H A DNetworkAgent.java706 public void onSignalStrengthThresholdsUpdated(@NonNull int[] thresholds) { in onSignalStrengthThresholdsUpdated() argument
708 CMD_SET_SIGNAL_STRENGTH_THRESHOLDS, thresholds)); in onSignalStrengthThresholdsUpdated()
1216 public void onSignalStrengthThresholdsUpdated(@NonNull int[] thresholds) { in onSignalStrengthThresholdsUpdated() argument
1217 setSignalStrengthThresholds(thresholds); in onSignalStrengthThresholdsUpdated()
1220 protected void setSignalStrengthThresholds(int[] thresholds) { in setSignalStrengthThresholds() argument
H A DINetworkAgent.aidl40 void onSignalStrengthThresholdsUpdated(in int[] thresholds); in onSignalStrengthThresholdsUpdated() argument
/aosp12/hardware/interfaces/radio/1.5/
H A DIRadio.hal45 * The hysteresisDb and thresholds apply to only the following measured quantities:
66 * @param accessNetwork The type of network for which to apply these thresholds.
90 * @param thresholdsDownlinkKbps A vector of trigger thresholds in kbps for downlink reports. A
91 * vector size of 0 disables the use of DL thresholds for reporting.
92 * @param thresholdsUplinkKbps A vector of trigger thresholds in kbps for uplink reports. A
93 * vector size of 0 disables the use of UL thresholds for reporting.
94 * @param accessNetwork The type of network for which to apply these thresholds.
/aosp12/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
H A DNetworkAgentTest.kt249 data class OnSignalStrengthThresholdsUpdated(val thresholds: IntArray) : CallbackEntry()
295 override fun onSignalStrengthThresholdsUpdated(thresholds: IntArray) {
296 history.add(OnSignalStrengthThresholdsUpdated(thresholds))
299 fun expectSignalStrengths(thresholds: IntArray? = intArrayOf()) {
301 assertArrayEquals(thresholds, it.thresholds)
514 val thresholds = intArrayOf(30, 50, 65) regex
515 val callbacks = thresholds.map { strength ->
525 createConnectedNetworkAgent(expectedInitSignalStrengthThresholds = thresholds).let {
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/power/
H A 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()
/aosp12/hardware/interfaces/radio/1.5/vts/functional/
H A Dradio_hidl_hal_api.cpp32 signalThresholdInfo.thresholds = {-109, -103, -97, -89}; in TEST_P()
81 signalThresholdInfo.thresholds = {-109, -103, -97, -89}; in TEST_P()
106 signalThresholdInfo.thresholds = {-110, -97, -73, -49, -25}; in TEST_P()
131 signalThresholdInfo.thresholds = {-128, -108, -88, -68}; in TEST_P()
156 signalThresholdInfo.thresholds = {-27, -20, -13, -6}; in TEST_P()
181 signalThresholdInfo.thresholds = {-10, 0, 10, 20}; in TEST_P()
202 signalThresholdInfo.thresholds = {-105, -90, -75, -65}; in TEST_P()
227 signalThresholdInfo.thresholds = {-105, -90, -75, -65}; in TEST_P()
257 signalThresholdInfo.thresholds = {-43, -20, 0, 20}; in TEST_P()
287 signalThresholdInfo.thresholds = {-10, 0, 10, 20}; in TEST_P()
[all …]
/aosp12/frameworks/native/services/surfaceflinger/FrameTimeline/
H A DFrameTimeline.h156 std::shared_ptr<TimeStats> timeStats, JankClassificationThresholds thresholds,
355 DisplayFrame(std::shared_ptr<TimeStats> timeStats, JankClassificationThresholds thresholds,
437 JankClassificationThresholds thresholds = {});
H A 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()

12