Home
last modified time | relevance | path

Searched refs:stateBuilder (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/core/java/com/android/server/display/brightness/clamper/
DBrightnessModifier.java42 DisplayBrightnessState.Builder stateBuilder) { in apply() argument
46 float value = stateBuilder.getBrightness(); in apply()
48 stateBuilder.setBrightness(getBrightnessAdjusted(value, request)); in apply()
49 stateBuilder.getBrightnessReason().addModifier(getModifier()); in apply()
52 stateBuilder.setIsSlowChange(false); in apply()
56 stateBuilder.setIsSlowChange(false); in apply()
DBrightnessLowLuxModifier.java171 DisplayBrightnessState.Builder stateBuilder) { in apply() argument
173 stateBuilder.setMinBrightness(mBrightnessLowerBound); in apply()
174 float boundedBrightness = Math.max(mBrightnessLowerBound, stateBuilder.getBrightness()); in apply()
175 stateBuilder.setBrightness(boundedBrightness); in apply()
176 if (BrightnessSynchronizer.floatEquals(stateBuilder.getBrightness(), in apply()
178 stateBuilder.getBrightnessReason().addModifier(mReason); in apply()
DBrightnessStateModifier.java33 DisplayBrightnessState.Builder stateBuilder); in apply() argument
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
DNetworkState.java239 StringBuilder stateBuilder = new StringBuilder(); in printStates() local
241 stateBuilder.append(" ").append(mStateDepository.get(i).toString()).append("->"); in printStates()
243 return stateBuilder.toString(); in printStates()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/pipeline/
DMediaDataProcessorTest.kt1711 val stateBuilder = PlaybackState.Builder().setActions(stateActions) in testPlaybackActions_hasPrevNext() constant
1713 stateBuilder.addCustomAction("action: $it", it, android.R.drawable.ic_media_pause) in testPlaybackActions_hasPrevNext()
1715 whenever(controller.playbackState).thenReturn(stateBuilder.build()) in testPlaybackActions_hasPrevNext()
1752 val stateBuilder = PlaybackState.Builder().setActions(stateActions) in testPlaybackActions_noPrevNext_usesCustom() constant
1754 stateBuilder.addCustomAction("action: $it", it, android.R.drawable.ic_media_pause) in testPlaybackActions_noPrevNext_usesCustom()
1756 whenever(controller.playbackState).thenReturn(stateBuilder.build()) in testPlaybackActions_noPrevNext_usesCustom()
1784 val stateBuilder = in testPlaybackActions_connecting() constant
1788 whenever(controller.playbackState).thenReturn(stateBuilder.build()) in testPlaybackActions_connecting()
1805 val stateBuilder = PlaybackState.Builder().setActions(stateActions) in testPlaybackActions_reservedSpace() constant
1807 stateBuilder.addCustomAction("action: $it", it, android.R.drawable.ic_media_pause) in testPlaybackActions_reservedSpace()
[all …]