Home
last modified time | relevance | path

Searched refs:BrightnessConfiguration (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/hardware/display/
DBrightnessConfigurationTest.java52 BrightnessConfiguration.Builder builder = new BrightnessConfiguration.Builder( in testSetCurveIsUnmodified()
54 BrightnessConfiguration config = builder.build(); in testSetCurveIsUnmodified()
64 new BrightnessConfiguration.Builder(lux, NITS_LEVELS); in testCurveMustHaveZeroLuxPoint()
69 new BrightnessConfiguration.Builder(null, null); in testCurveMustNotHaveNullArrays()
74 new BrightnessConfiguration.Builder(new float[0], new float[0]); in testCurveMustNotHaveEmptyArrays()
82 new BrightnessConfiguration.Builder(lux, NITS_LEVELS); in testCurveMustNotHaveArraysOfDifferentLengths()
88 new BrightnessConfiguration.Builder(LUX_LEVELS, nits); in testCurveMustNotHaveArraysOfDifferentLengths()
97 new BrightnessConfiguration.Builder(lux, NITS_LEVELS); in testCurvesMustNotContainNaN()
103 new BrightnessConfiguration.Builder(LUX_LEVELS, nits); in testCurvesMustNotContainNaN()
110 BrightnessConfiguration.Builder builder = in testParceledConfigIsEquivalent()
[all …]
/frameworks/base/core/java/android/hardware/display/
DBrightnessConfiguration.java47 public final class BrightnessConfiguration implements Parcelable { class
64 private BrightnessConfiguration(float[] lux, float[] nits, in BrightnessConfiguration() method in BrightnessConfiguration
192 if (!(o instanceof BrightnessConfiguration)) { in equals()
195 final BrightnessConfiguration other = (BrightnessConfiguration) o; in equals()
202 public static final @android.annotation.NonNull Creator<BrightnessConfiguration> CREATOR =
203 new Creator<BrightnessConfiguration>() {
204 public BrightnessConfiguration createFromParcel(Parcel in) {
230 public BrightnessConfiguration[] newArray(int size) {
231 return new BrightnessConfiguration[size];
289 public static BrightnessConfiguration loadFromXml(@NonNull XmlPullParser parser) in loadFromXml()
[all …]
DIDisplayManager.aidl21 import android.hardware.display.BrightnessConfiguration;
103 void setBrightnessConfigurationForUser(in BrightnessConfiguration c, int userId, in setBrightnessConfigurationForUser()
109 BrightnessConfiguration getBrightnessConfigurationForUser(int userId); in getBrightnessConfigurationForUser()
112 BrightnessConfiguration getDefaultBrightnessConfiguration(); in getDefaultBrightnessConfiguration()
DDisplayManager.java695 public void setBrightnessConfiguration(BrightnessConfiguration c) { in setBrightnessConfiguration()
707 public void setBrightnessConfigurationForUser(BrightnessConfiguration c, int userId, in setBrightnessConfigurationForUser()
720 public BrightnessConfiguration getBrightnessConfiguration() { in getBrightnessConfiguration()
733 public BrightnessConfiguration getBrightnessConfigurationForUser(int userId) { in getBrightnessConfigurationForUser()
747 public BrightnessConfiguration getDefaultBrightnessConfiguration() { in getDefaultBrightnessConfiguration()
DBrightnessConfiguration.aidl19 parcelable BrightnessConfiguration;
DDisplayManagerGlobal.java561 public void setBrightnessConfigurationForUser(BrightnessConfiguration c, int userId, in setBrightnessConfigurationForUser()
575 public BrightnessConfiguration getBrightnessConfigurationForUser(int userId) { in getBrightnessConfigurationForUser()
588 public BrightnessConfiguration getDefaultBrightnessConfiguration() { in getDefaultBrightnessConfiguration()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DPersistentDataStoreTest.java24 import android.hardware.display.BrightnessConfiguration;
79 BrightnessConfiguration config = mDataStore.getBrightnessConfiguration(1 /*userSerial*/); in testLoadingBrightnessConfigurations()
150 final BrightnessConfiguration config = new BrightnessConfiguration.Builder(lux, nits) in testStoreAndReloadOfBrightnessConfigurations()
176 final BrightnessConfiguration config = new BrightnessConfiguration.Builder(lux, nits) in testNullBrightnessConfiguration()
DDisplayManagerServiceTest.java30 import android.hardware.display.BrightnessConfiguration;
339 BrightnessConfiguration config = in testTooDarkBrightnessConfigurationThrowException()
340 new BrightnessConfiguration.Builder(lux, nits).build(); in testTooDarkBrightnessConfigurationThrowException()
361 BrightnessConfiguration config = new BrightnessConfiguration.Builder(lux, nits).build(); in testBrightEnoughBrightnessConfigurationDoesNotThrowException()
DBrightnessMappingStrategyTest.java31 import android.hardware.display.BrightnessConfiguration;
155 BrightnessConfiguration config = new BrightnessConfiguration.Builder(lux, nits) in testSimpleStrategyIgnoresNewConfiguration()
216 BrightnessConfiguration config = new BrightnessConfiguration.Builder(lux, nits) in testPhysicalStrategyUsesNewConfigurations()
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessMappingStrategy.java23 import android.hardware.display.BrightnessConfiguration;
83 BrightnessConfiguration.Builder builder = new BrightnessConfiguration.Builder( in create()
189 public abstract boolean setBrightnessConfiguration(@Nullable BrightnessConfiguration config); in setBrightnessConfiguration()
275 public abstract BrightnessConfiguration getDefaultConfig(); in getDefaultConfig()
487 public boolean setBrightnessConfiguration(@Nullable BrightnessConfiguration config) { in setBrightnessConfiguration()
571 public BrightnessConfiguration getDefaultConfig() { in getDefaultConfig()
606 private BrightnessConfiguration mConfig;
617 private final BrightnessConfiguration mDefaultConfig;
628 public PhysicalMappingStrategy(BrightnessConfiguration config, float[] nits, in PhysicalMappingStrategy()
663 public boolean setBrightnessConfiguration(@Nullable BrightnessConfiguration config) { in setBrightnessConfiguration()
[all …]
DPersistentDataStore.java21 import android.hardware.display.BrightnessConfiguration;
274 public void setBrightnessConfigurationForUser(BrightnessConfiguration c, int userSerial, in setBrightnessConfigurationForUser()
283 public BrightnessConfiguration getBrightnessConfiguration(int userSerial) { in getBrightnessConfiguration()
578 private SparseArray<BrightnessConfiguration> mConfigurations;
590 private boolean setBrightnessConfigurationForUser(BrightnessConfiguration c, in setBrightnessConfigurationForUser()
592 BrightnessConfiguration currentConfig = mConfigurations.get(userSerial); in setBrightnessConfigurationForUser()
612 public BrightnessConfiguration getBrightnessConfiguration(int userSerial) { in getBrightnessConfiguration()
641 BrightnessConfiguration config = in loadFromXml()
642 BrightnessConfiguration.loadFromXml(parser); in loadFromXml()
662 final BrightnessConfiguration config = mConfigurations.valueAt(i); in saveToXml()
DDisplayManagerService.java48 import android.hardware.display.BrightnessConfiguration;
404 BrightnessConfiguration config = in onSwitchUser()
1104 @Nullable BrightnessConfiguration c, @UserIdInt int userId, in setBrightnessConfigurationForUserInternal()
1122 void validateBrightnessConfiguration(BrightnessConfiguration config) { in validateBrightnessConfiguration()
1131 private boolean isBrightnessConfigurationTooDark(BrightnessConfiguration config) { in isBrightnessConfigurationTooDark()
1146 BrightnessConfiguration config = in loadBrightnessConfiguration()
2127 BrightnessConfiguration c, @UserIdInt int userId, String packageName) { in setBrightnessConfigurationForUser()
2149 public BrightnessConfiguration getBrightnessConfigurationForUser(int userId) { in getBrightnessConfigurationForUser()
2163 BrightnessConfiguration config = in getBrightnessConfigurationForUser()
2176 public BrightnessConfiguration getDefaultBrightnessConfiguration() { in getDefaultBrightnessConfiguration()
DAutomaticBrightnessController.java30 import android.hardware.display.BrightnessConfiguration;
320 public void configure(boolean enable, @Nullable BrightnessConfiguration configuration, in configure()
358 public BrightnessConfiguration getDefaultConfig() { in getDefaultConfig()
414 public boolean setBrightnessConfiguration(BrightnessConfiguration configuration) { in setBrightnessConfiguration()
DDisplayPowerController.java34 import android.hardware.display.BrightnessConfiguration;
347 private BrightnessConfiguration mBrightnessConfiguration;
647 public BrightnessConfiguration getDefaultBrightnessConfiguration() { in getDefaultBrightnessConfiguration()
1158 public void setBrightnessConfiguration(BrightnessConfiguration c) {
1904 mBrightnessConfiguration = (BrightnessConfiguration)msg.obj; in handleMessage()
/frameworks/base/api/
Dtest-current.txt952 public final class BrightnessConfiguration implements android.os.Parcelable {
958 …atic final android.os.Parcelable.Creator<android.hardware.display.BrightnessConfiguration> CREATOR;
961 public static class BrightnessConfiguration.Builder {
962 ctor public BrightnessConfiguration.Builder(float[], float[]);
963 …method @NonNull public android.hardware.display.BrightnessConfiguration.Builder addCorrectionByCat…
964 …method @NonNull public android.hardware.display.BrightnessConfiguration.Builder addCorrectionByPac…
965 method @NonNull public android.hardware.display.BrightnessConfiguration build();
968 …method @NonNull public android.hardware.display.BrightnessConfiguration.Builder setDescription(@Nu…
981 …on.CONFIGURE_DISPLAY_BRIGHTNESS) public android.hardware.display.BrightnessConfiguration getBright…
983 …on.CONFIGURE_DISPLAY_BRIGHTNESS) public android.hardware.display.BrightnessConfiguration getDefaul…
[all …]
Dtest-lint-baseline.txt808 MissingNullability: android.hardware.display.BrightnessConfiguration#getCurve():
810 MissingNullability: android.hardware.display.BrightnessConfiguration#writeToParcel(android.os.Parce…
812 MissingNullability: android.hardware.display.BrightnessConfiguration.Builder#Builder(float[], float…
814 MissingNullability: android.hardware.display.BrightnessConfiguration.Builder#Builder(float[], float…
826 …splayManager#setBrightnessConfiguration(android.hardware.display.BrightnessConfiguration) paramete…
Dsystem-current.txt2125 public final class BrightnessConfiguration implements android.os.Parcelable {
2131 …atic final android.os.Parcelable.Creator<android.hardware.display.BrightnessConfiguration> CREATOR;
2134 public static class BrightnessConfiguration.Builder {
2135 ctor public BrightnessConfiguration.Builder(float[], float[]);
2136 …method @NonNull public android.hardware.display.BrightnessConfiguration.Builder addCorrectionByCat…
2137 …method @NonNull public android.hardware.display.BrightnessConfiguration.Builder addCorrectionByPac…
2138 method @NonNull public android.hardware.display.BrightnessConfiguration build();
2141 …method @NonNull public android.hardware.display.BrightnessConfiguration.Builder setDescription(@Nu…
2171 …on.CONFIGURE_DISPLAY_BRIGHTNESS) public android.hardware.display.BrightnessConfiguration getBright…
2173 …on.CONFIGURE_DISPLAY_BRIGHTNESS) public android.hardware.display.BrightnessConfiguration getDefaul…
[all …]
/frameworks/base/non-updatable-api/
Dsystem-current.txt2125 public final class BrightnessConfiguration implements android.os.Parcelable {
2131 …atic final android.os.Parcelable.Creator<android.hardware.display.BrightnessConfiguration> CREATOR;
2134 public static class BrightnessConfiguration.Builder {
2135 ctor public BrightnessConfiguration.Builder(float[], float[]);
2136 …method @NonNull public android.hardware.display.BrightnessConfiguration.Builder addCorrectionByCat…
2137 …method @NonNull public android.hardware.display.BrightnessConfiguration.Builder addCorrectionByPac…
2138 method @NonNull public android.hardware.display.BrightnessConfiguration build();
2141 …method @NonNull public android.hardware.display.BrightnessConfiguration.Builder setDescription(@Nu…
2171 …on.CONFIGURE_DISPLAY_BRIGHTNESS) public android.hardware.display.BrightnessConfiguration getBright…
2173 …on.CONFIGURE_DISPLAY_BRIGHTNESS) public android.hardware.display.BrightnessConfiguration getDefaul…
[all …]
/frameworks/base/config/
Dpreloaded-classes1525 android.hardware.display.BrightnessConfiguration$1
1526 android.hardware.display.BrightnessConfiguration$Builder
1527 android.hardware.display.BrightnessConfiguration
Dboot-image-profile.txt7170 HSPLandroid/hardware/display/BrightnessConfiguration$1;-><init>()V
7171 …d/hardware/display/BrightnessConfiguration$1;->createFromParcel(Landroid/os/Parcel;)Landroid/hardw…
7172 HPLandroid/hardware/display/BrightnessConfiguration$1;->createFromParcel(Landroid/os/Parcel;)Ljava/…
7173 HSPLandroid/hardware/display/BrightnessConfiguration$Builder;-><init>([F[F)V
7174BrightnessConfiguration$Builder;->addCorrectionByCategory(ILandroid/hardware/display/BrightnessCor…
7175BrightnessConfiguration$Builder;->addCorrectionByPackageName(Ljava/lang/String;Landroid/hardware/d…
7176 HSPLandroid/hardware/display/BrightnessConfiguration$Builder;->build()Landroid/hardware/display/Bri…
7177 HSPLandroid/hardware/display/BrightnessConfiguration$Builder;->checkMonotonic([FZLjava/lang/String;…
7178 HSPLandroid/hardware/display/BrightnessConfiguration$Builder;->getMaxCorrectionsByCategory()I
7179 HSPLandroid/hardware/display/BrightnessConfiguration$Builder;->getMaxCorrectionsByPackageName()I
[all …]
Dhiddenapi-greylist-max-o.txt22604 Landroid/hardware/display/BrightnessConfiguration$Builder;-><init>()V
22605 Landroid/hardware/display/BrightnessConfiguration$Builder;->checkMonotonic([FZLjava/lang/String;)V
22606 Landroid/hardware/display/BrightnessConfiguration$Builder;->mCurveLux:[F
22607 Landroid/hardware/display/BrightnessConfiguration$Builder;->mCurveNits:[F
22608 Landroid/hardware/display/BrightnessConfiguration$Builder;->mDescription:Ljava/lang/String;
22609 Landroid/hardware/display/BrightnessConfiguration$Builder;->setCurve([F[F)Landroid/hardware/display…
22610 Landroid/hardware/display/BrightnessConfiguration;-><init>([F[FLjava/lang/String;)V
22611 Landroid/hardware/display/BrightnessConfiguration;->getDescription()Ljava/lang/String;
22612 Landroid/hardware/display/BrightnessConfiguration;->mDescription:Ljava/lang/String;
22613 Landroid/hardware/display/BrightnessConfiguration;->mLux:[F
[all …]
/frameworks/base/services/
Dart-profile6521 …utomaticBrightnessController;->configure(ZLandroid/hardware/display/BrightnessConfiguration;FZFZI)V
6535 …ghtnessController;->setBrightnessConfiguration(Landroid/hardware/display/BrightnessConfiguration;)Z
6546 …Strategy$PhysicalMappingStrategy;-><init>(Landroid/hardware/display/BrightnessConfiguration;[F[IF)V
6556 …alMappingStrategy;->setBrightnessConfiguration(Landroid/hardware/display/BrightnessConfiguration;)Z
6664 …ce;->setBrightnessConfigurationForUser(Landroid/hardware/display/BrightnessConfiguration;ILjava/la…
6712 …agerService;->isBrightnessConfigurationTooDark(Landroid/hardware/display/BrightnessConfiguration;)Z
6728 …BrightnessConfigurationForUserInternal(Landroid/hardware/display/BrightnessConfiguration;ILjava/la…
6865 …ns;->setBrightnessConfigurationForUser(Landroid/hardware/display/BrightnessConfiguration;ILjava/la…