Home
last modified time | relevance | path

Searched refs:horizon (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/display/whitebalance/
DAmbientFilterTest.java51 final int horizon = 5 * 1000; in testBrightnessFilter_ZeroIntercept() local
56 setMockValues(mResourcesSpy, horizon, intercept); in testBrightnessFilter_ZeroIntercept()
76 filter.addValue(time_start + horizon + prediction_time, 50); in testBrightnessFilter_ZeroIntercept()
77 assertEquals(40.38846f, filter.getEstimate(time_start + horizon + prediction_time), 0.001); in testBrightnessFilter_ZeroIntercept()
82 final int horizon = 5 * 1000; in testBrightnessFilter_WithIntercept() local
87 setMockValues(mResourcesSpy, horizon, intercept); in testBrightnessFilter_WithIntercept()
107 filter.addValue(time_start + horizon + prediction_time, 50); in testBrightnessFilter_WithIntercept()
108 assertEquals(40.23513f, filter.getEstimate(time_start + horizon + prediction_time), 0.001); in testBrightnessFilter_WithIntercept()
111 private void setMockValues(Resources resources, int horizon, float intercept) { in setMockValues() argument
123 .config_displayWhiteBalanceBrightnessFilterHorizon)).thenReturn(horizon); in setMockValues()
/frameworks/base/services/core/java/com/android/server/display/whitebalance/
DAmbientFilter.java60 AmbientFilter(String tag, int horizon) { in AmbientFilter() argument
61 validateArguments(horizon); in AmbientFilter()
64 mHorizon = horizon; in AmbientFilter()
143 private void validateArguments(int horizon) { in validateArguments() argument
144 if (horizon <= 0) { in validateArguments()
181 WeightedMovingAverageAmbientFilter(String tag, int horizon, float intercept) { in WeightedMovingAverageAmbientFilter() argument
182 super(tag, horizon); in WeightedMovingAverageAmbientFilter()
DDisplayWhiteBalanceFactory.java119 final int horizon = resources.getInteger( in createBrightnessFilter() local
125 BRIGHTNESS_FILTER_TAG, horizon, intercept); in createBrightnessFilter()
147 final int horizon = resources.getInteger( in createColorTemperatureFilter() local
155 COLOR_TEMPERATURE_FILTER_TAG, horizon, intercept); in createColorTemperatureFilter()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DScoringParams.java68 public int horizon = 15; field in ScoringParams.Values
95 horizon = source.horizon; in Values()
104 validateRange(horizon, MIN_HORIZON, MAX_HORIZON); in validate()
143 horizon = updateInt(parser, KEY_HORIZON, horizon); in parseString()
180 sb.append(horizon); in toString()
343 return mVal.horizon; in getHorizonSeconds()
/frameworks/base/services/core/java/com/android/server/display/
DAutomaticBrightnessController.java573 private float calculateAmbientLux(long now, long horizon) { in calculateAmbientLux() argument
575 Slog.d(TAG, "calculateAmbientLux(" + now + ", " + horizon + ")"); in calculateAmbientLux()
585 final long horizonStartTime = now - horizon; in calculateAmbientLux()
1035 public void prune(long horizon) { in prune() argument
1045 if (mRingTime[next] > horizon) { in prune()
1059 if (mRingTime[mStart] < horizon) { in prune()
1060 mRingTime[mStart] = horizon; in prune()
DBrightnessTracker.java845 long horizon = mInjector.elapsedRealtimeNanos() - LUX_EVENT_HORIZON; in recordSensorEvent() local
857 && mLastSensorReadings.getFirst().timestamp < horizon) { in recordSensorEvent()
/frameworks/base/proto/src/
Dwifi.proto1186 // Prediction horizon (in second) of Wifi usability score provided by external
1944 // Prediction horizon (in second) of Wifi usability score provided by external
2125 // Prediction horizon (in second) of Wifi usability score provided by external