.class Landroidx/appcompat/app/AppCompatDelegateImpl$AutoBatteryNightModeManager; .super Landroidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager; .source "AppCompatDelegateImpl.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Landroidx/appcompat/app/AppCompatDelegateImpl; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x0 name = "AutoBatteryNightModeManager" .end annotation # instance fields .field private final mPowerManager:Landroid/os/PowerManager; .field final synthetic this$0:Landroidx/appcompat/app/AppCompatDelegateImpl; # direct methods .method constructor (Landroidx/appcompat/app/AppCompatDelegateImpl;Landroid/content/Context;)V .locals 0 iput-object p1, p0, Landroidx/appcompat/app/AppCompatDelegateImpl$AutoBatteryNightModeManager;->this$0:Landroidx/appcompat/app/AppCompatDelegateImpl; invoke-direct {p0, p1}, Landroidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager;->(Landroidx/appcompat/app/AppCompatDelegateImpl;)V const-string p1, "power" invoke-virtual {p2, p1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object; move-result-object p1 check-cast p1, Landroid/os/PowerManager; iput-object p1, p0, Landroidx/appcompat/app/AppCompatDelegateImpl$AutoBatteryNightModeManager;->mPowerManager:Landroid/os/PowerManager; return-void .end method # virtual methods .method createIntentFilterForBroadcastReceiver()Landroid/content/IntentFilter; .locals 2 sget v0, Landroid/os/Build$VERSION;->SDK_INT:I const/16 v1, 0x15 if-lt v0, v1, :cond_0 new-instance v0, Landroid/content/IntentFilter; invoke-direct {v0}, Landroid/content/IntentFilter;->()V const-string v1, "android.os.action.POWER_SAVE_MODE_CHANGED" invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V return-object v0 :cond_0 const/4 v0, 0x0 return-object v0 .end method .method public getApplyableNightMode()I .locals 3 sget v0, Landroid/os/Build$VERSION;->SDK_INT:I const/4 v1, 0x1 const/16 v2, 0x15 if-lt v0, v2, :cond_0 iget-object v0, p0, Landroidx/appcompat/app/AppCompatDelegateImpl$AutoBatteryNightModeManager;->mPowerManager:Landroid/os/PowerManager; invoke-virtual {v0}, Landroid/os/PowerManager;->isPowerSaveMode()Z move-result v0 if-eqz v0, :cond_0 const/4 v0, 0x2 return v0 :cond_0 return v1 .end method .method public onChange()V .locals 1 iget-object v0, p0, Landroidx/appcompat/app/AppCompatDelegateImpl$AutoBatteryNightModeManager;->this$0:Landroidx/appcompat/app/AppCompatDelegateImpl; invoke-virtual {v0}, Landroidx/appcompat/app/AppCompatDelegateImpl;->applyDayNight()Z return-void .end method