Searched refs:thresholds (Results 1 – 2 of 2) sorted by relevance
122 public static int calculateThermalState(int temp, Integer thresholds[]) { in calculateThermalState() argument123 if (thresholds == null) return THERMAL_STATE_OFF; in calculateThermalState()125 if (temp < thresholds[0]) in calculateThermalState()128 if (temp >= thresholds[thresholds.length - 2]) in calculateThermalState()129 return (thresholds.length - 2); in calculateThermalState()131 for (int i = 0; i < thresholds.length - 1; i++) { in calculateThermalState()132 if (temp >= thresholds[i] && temp < thresholds[i + 1]) { in calculateThermalState()141 public static int getLowerThresholdTemp(int index, Integer thresholds[]) { in getLowerThresholdTemp() argument142 if (thresholds == null) return INVALID_TEMP; in getLowerThresholdTemp()143 if (index < 0 || index >= thresholds.length) in getLowerThresholdTemp()[all …]
44 * |REPORT_EVENTS_EACH_SCAN| or one of the configured thresholds was54 * thresholds set via |IWifiStaIface.startRssiMonitoring|.