Searched refs:PowerExemptionManager (Results 1 – 25 of 51) sorted by relevance
123
50 private final PowerExemptionManager mPowerExemptionManager;56 public static final int EVENT_UNSPECIFIED = PowerExemptionManager.EVENT_UNSPECIFIED;61 public static final int EVENT_SMS = PowerExemptionManager.EVENT_SMS;66 public static final int EVENT_MMS = PowerExemptionManager.EVENT_MMS;84 PowerExemptionManager.TEMPORARY_ALLOW_LIST_TYPE_FOREGROUND_SERVICE_ALLOWED;90 PowerExemptionManager.TEMPORARY_ALLOW_LIST_TYPE_FOREGROUND_SERVICE_NOT_ALLOWED;108 public static final int REASON_DENIED = PowerExemptionManager.REASON_DENIED;114 public static final int REASON_UNKNOWN = PowerExemptionManager.REASON_UNKNOWN;118 public static final int REASON_OTHER = PowerExemptionManager.REASON_OTHER;123 PowerExemptionManager.REASON_PROC_STATE_PERSISTENT;[all …]
51 public class PowerExemptionManager { class529 public PowerExemptionManager(@NonNull Context context) { in PowerExemptionManager() method in PowerExemptionManager
25 import android.os.PowerExemptionManager;57 Context.POWER_EXEMPTION_SERVICE, PowerExemptionManager.class, in registerServiceWrappers()58 PowerExemptionManager::new); in registerServiceWrappers()
38 import android.os.PowerExemptionManager;39 import android.os.PowerExemptionManager.ReasonCode;40 import android.os.PowerExemptionManager.TempAllowListType;177 PowerExemptionManager.TEMPORARY_ALLOW_LIST_TYPE_FOREGROUND_SERVICE_ALLOWED;186 PowerExemptionManager.TEMPORARY_ALLOW_LIST_TYPE_FOREGROUND_SERVICE_NOT_ALLOWED;334 PowerExemptionManager.REASON_UNKNOWN); in BroadcastOptions()381 PowerExemptionManager.TEMPORARY_ALLOW_LIST_TYPE_FOREGROUND_SERVICE_ALLOWED, in setTemporaryAppWhitelistDuration()382 PowerExemptionManager.REASON_UNKNOWN, null); in setTemporaryAppWhitelistDuration()420 != PowerExemptionManager.TEMPORARY_ALLOW_LIST_TYPE_NONE; in isTemporaryAppAllowlistSet()425 mTemporaryAppAllowlistType = PowerExemptionManager.TEMPORARY_ALLOW_LIST_TYPE_NONE; in resetTemporaryAppAllowlist()[all …]
43 import android.os.PowerExemptionManager.ReasonCode;44 import android.os.PowerExemptionManager.TempAllowListType;
21 import android.os.PowerExemptionManager;22 import android.os.PowerExemptionManager.ReasonCode;23 import android.os.PowerExemptionManager.TempAllowListType;
32 import android.os.PowerExemptionManager in <lambda>()689 var backgroundRestrictionExemptionReason = PowerExemptionManager.REASON_DENIED705 PowerExemptionManager.REASON_SYSTEM_UID, in updateUiControl()706 PowerExemptionManager.REASON_DEVICE_DEMO_MODE -> UIControl.HIDE_ENTRY in updateUiControl()708 PowerExemptionManager.REASON_SYSTEM_ALLOW_LISTED, in updateUiControl()709 PowerExemptionManager.REASON_DEVICE_OWNER, in updateUiControl()710 PowerExemptionManager.REASON_DISALLOW_APPS_CONTROL, in updateUiControl()711 PowerExemptionManager.REASON_DPO_PROTECTED_APP, in updateUiControl()712 PowerExemptionManager.REASON_PROFILE_OWNER, in updateUiControl()713 PowerExemptionManager.REASON_ACTIVE_DEVICE_ADMIN, in updateUiControl()[all …]
23 import static android.os.PowerExemptionManager.REASON_DENIED;24 import static android.os.PowerExemptionManager.reasonCodeToString;56 import android.os.PowerExemptionManager;214 @PowerExemptionManager.ReasonCode244 @PowerExemptionManager.ReasonCode247 @PowerExemptionManager.ReasonCode256 @PowerExemptionManager.ReasonCode259 @PowerExemptionManager.ReasonCode262 @PowerExemptionManager.ReasonCode265 @PowerExemptionManager.ReasonCode[all …]
26 import static android.os.PowerExemptionManager.REASON_DENIED;27 import static android.os.PowerExemptionManager.REASON_PROC_STATE_FGS;28 import static android.os.PowerExemptionManager.REASON_PROC_STATE_TOP;29 import static android.os.PowerExemptionManager.reasonCodeToString;38 import android.os.PowerExemptionManager.ReasonCode;
19 import static android.os.PowerExemptionManager.REASON_DENIED;23 import android.os.PowerExemptionManager.ReasonCode;
23 import android.os.PowerExemptionManager;24 import android.os.PowerExemptionManager.ReasonCode;273 return PowerExemptionManager.reasonCodeToString(reason); in getExemptionReasonString()
66 import static android.os.PowerExemptionManager.REASON_ACTIVE_DEVICE_ADMIN;67 import static android.os.PowerExemptionManager.REASON_ALLOWLISTED_PACKAGE;68 import static android.os.PowerExemptionManager.REASON_CARRIER_PRIVILEGED_APP;69 import static android.os.PowerExemptionManager.REASON_COMPANION_DEVICE_MANAGER;70 import static android.os.PowerExemptionManager.REASON_DENIED;71 import static android.os.PowerExemptionManager.REASON_DEVICE_DEMO_MODE;72 import static android.os.PowerExemptionManager.REASON_DEVICE_OWNER;73 import static android.os.PowerExemptionManager.REASON_DISALLOW_APPS_CONTROL;74 import static android.os.PowerExemptionManager.REASON_DPO_PROTECTED_APP;75 import static android.os.PowerExemptionManager.REASON_OP_ACTIVATE_PLATFORM_VPN;[all …]
24 import android.os.PowerExemptionManager.ReasonCode;
52 import static android.os.PowerExemptionManager.REASON_ACTIVE_DEVICE_ADMIN;53 import static android.os.PowerExemptionManager.REASON_ACTIVITY_STARTER;54 import static android.os.PowerExemptionManager.REASON_ACTIVITY_VISIBILITY_GRACE_PERIOD;55 import static android.os.PowerExemptionManager.REASON_ALARM_MANAGER_ALARM_CLOCK;56 import static android.os.PowerExemptionManager.REASON_ALLOWLISTED_PACKAGE;57 import static android.os.PowerExemptionManager.REASON_BACKGROUND_ACTIVITY_PERMISSION;58 import static android.os.PowerExemptionManager.REASON_BACKGROUND_FGS_PERMISSION;59 import static android.os.PowerExemptionManager.REASON_CARRIER_PRIVILEGED_APP;60 import static android.os.PowerExemptionManager.REASON_COMPANION_DEVICE_MANAGER;61 import static android.os.PowerExemptionManager.REASON_CURRENT_INPUT_METHOD;[all …]
30 import android.os.PowerExemptionManager.ReasonCode;
37 import static android.os.PowerExemptionManager.REASON_DENIED;59 import android.os.PowerExemptionManager;60 import android.os.PowerExemptionManager.ReasonCode;865 PowerExemptionManager.reasonCodeToString(bgPolicy.shouldExemptUid(uid)), in dump()1883 + " " + PowerExemptionManager.reasonCodeToString(reason)); in handleUidBatteryUsage()
36 import android.os.PowerExemptionManager;94 private PowerExemptionManager mPowerExemptionManager = mock(PowerExemptionManager.class);
35 import android.os.PowerExemptionManager;110 private PowerExemptionManager mPowerExemptionManager = mock(PowerExemptionManager.class);
36 import android.os.PowerExemptionManager;109 private PowerExemptionManager mPowerExemptionManager = mock(PowerExemptionManager.class);
19 import static android.os.PowerExemptionManager.REASON_LOCKED_BOOT_COMPLETED;20 import static android.os.PowerExemptionManager.REASON_PACKAGE_REPLACED;21 import static android.os.PowerExemptionManager.TEMPORARY_ALLOW_LIST_TYPE_FOREGROUND_SERVICE_ALLOWED;53 import android.os.PowerExemptionManager;285 @PowerExemptionManager.ReasonCode int reasonCode) { in getTemporaryAppAllowlistBroadcastOptions()894 @PowerExemptionManager.ReasonCode int reasonCode) { in getTemporaryBroadcastOptionsForSystemPackageUpdate()
82 import android.os.PowerExemptionManager;515 static PowerExemptionManager providePowerExemptionManager(Context context) { in providePowerExemptionManager()516 return context.getSystemService(PowerExemptionManager.class); in providePowerExemptionManager()
56 import android.os.PowerExemptionManager;142 private final PowerExemptionManager mPowerExemptionManager;193 PowerExemptionManager powerExemptionManager, in MediaOutputController()1034 PowerExemptionManager.REASON_MEDIA_NOTIFICATION_TRANSFER, in setTemporaryAllowListExceptionIfNeeded()
82 import android.os.PowerExemptionManager;140 private final PowerExemptionManager mPowerExemptionManager;159 mPowerExemptionManager = context.getSystemService(PowerExemptionManager.class); in CompanionDeviceManagerService()
103 // The reasons listed below are defined in PowerExemptionManager.java