Class ShadowAmbientDisplayConfiguration

java.lang.Object
org.robolectric.shadows.ShadowAmbientDisplayConfiguration

@Implements(className="android.hardware.display.AmbientDisplayConfiguration", minSdk=29, isInAndroidSdk=false) public class ShadowAmbientDisplayConfiguration extends Object
Shadow for AmbientDisplayConfiguration class.
  • Constructor Details

    • ShadowAmbientDisplayConfiguration

      public ShadowAmbientDisplayConfiguration()
  • Method Details

    • ambientDisplayComponent

      @Implementation protected String ambientDisplayComponent()
    • alwaysOnAvailable

      @Implementation protected boolean alwaysOnAvailable()
    • ambientDisplayAvailable

      @Implementation protected boolean ambientDisplayAvailable()
    • alwaysOnDisplayDebuggingEnabled

      @Implementation protected boolean alwaysOnDisplayDebuggingEnabled()
    • alwaysOnDisplayAvailable

      @Implementation protected boolean alwaysOnDisplayAvailable()
    • setDozeComponent

      public static void setDozeComponent(String dozeComponent)
      Overrides the string format of component for doze mode. See ambientDisplayComponent().
    • setDozeAlwaysOnDisplayAvailable

      public static void setDozeAlwaysOnDisplayAvailable(boolean dozeAlwaysOnDisplayAvailable)
      Overrides the available state for always on display. See alwaysOnDisplayAvailable().
    • reset

      @Resetter public static void reset()