Home
last modified time | relevance | path

Searched refs:PowerExemptionManager (Results 1 – 25 of 51) sorted by relevance

123

/frameworks/base/apex/jobscheduler/framework/java/android/os/
DPowerWhitelistManager.java50 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 …]
DPowerExemptionManager.java51 public class PowerExemptionManager { class
529 public PowerExemptionManager(@NonNull Context context) { in PowerExemptionManager() method in PowerExemptionManager
/frameworks/base/apex/jobscheduler/framework/java/android/app/job/
DJobSchedulerFrameworkInitializer.java25 import android.os.PowerExemptionManager;
57 Context.POWER_EXEMPTION_SERVICE, PowerExemptionManager.class, in registerServiceWrappers()
58 PowerExemptionManager::new); in registerServiceWrappers()
/frameworks/base/core/java/android/app/
DBroadcastOptions.java38 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 …]
DActivityManagerInternal.java43 import android.os.PowerExemptionManager.ReasonCode;
44 import android.os.PowerExemptionManager.TempAllowListType;
/frameworks/base/apex/jobscheduler/framework/java/com/android/server/
DDeviceIdleInternal.java21 import android.os.PowerExemptionManager;
22 import android.os.PowerExemptionManager.ReasonCode;
23 import android.os.PowerExemptionManager.TempAllowListType;
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DFgsManagerController.kt32 import android.os.PowerExemptionManager in <lambda>()
689 var backgroundRestrictionExemptionReason = PowerExemptionManager.REASON_DENIED
705 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 …]
/frameworks/base/services/core/java/com/android/server/am/
DServiceRecord.java23 import static android.os.PowerExemptionManager.REASON_DENIED;
24 import static android.os.PowerExemptionManager.reasonCodeToString;
56 import android.os.PowerExemptionManager;
214 @PowerExemptionManager.ReasonCode
244 @PowerExemptionManager.ReasonCode
247 @PowerExemptionManager.ReasonCode
256 @PowerExemptionManager.ReasonCode
259 @PowerExemptionManager.ReasonCode
262 @PowerExemptionManager.ReasonCode
265 @PowerExemptionManager.ReasonCode
[all …]
DBaseAppStateTimeSlotEventsTracker.java26 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;
DBaseAppStateEvents.java19 import static android.os.PowerExemptionManager.REASON_DENIED;
23 import android.os.PowerExemptionManager.ReasonCode;
DBaseAppStateEventsTracker.java23 import android.os.PowerExemptionManager;
24 import android.os.PowerExemptionManager.ReasonCode;
273 return PowerExemptionManager.reasonCodeToString(reason); in getExemptionReasonString()
DAppRestrictionController.java66 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 …]
DBaseAppStatePolicy.java24 import android.os.PowerExemptionManager.ReasonCode;
DActiveServices.java52 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 …]
DAppMediaSessionTracker.java30 import android.os.PowerExemptionManager.ReasonCode;
DAppBatteryTracker.java37 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()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerInternal.java24 import android.os.PowerExemptionManager.ReasonCode;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/
DMediaOutputBaseDialogTest.java36 import android.os.PowerExemptionManager;
94 private PowerExemptionManager mPowerExemptionManager = mock(PowerExemptionManager.class);
DMediaOutputBroadcastDialogTest.java35 import android.os.PowerExemptionManager;
110 private PowerExemptionManager mPowerExemptionManager = mock(PowerExemptionManager.class);
DMediaOutputDialogTest.java36 import android.os.PowerExemptionManager;
109 private PowerExemptionManager mPowerExemptionManager = mock(PowerExemptionManager.class);
/frameworks/base/services/core/java/com/android/server/pm/
DBroadcastHelper.java19 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/
DFrameworkServicesModule.java82 import android.os.PowerExemptionManager;
515 static PowerExemptionManager providePowerExemptionManager(Context context) { in providePowerExemptionManager()
516 return context.getSystemService(PowerExemptionManager.class); in providePowerExemptionManager()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/
DMediaOutputController.java56 import android.os.PowerExemptionManager;
142 private final PowerExemptionManager mPowerExemptionManager;
193 PowerExemptionManager powerExemptionManager, in MediaOutputController()
1034 PowerExemptionManager.REASON_MEDIA_NOTIFICATION_TRANSFER, in setTemporaryAllowListExceptionIfNeeded()
/frameworks/base/services/companion/java/com/android/server/companion/
DCompanionDeviceManagerService.java82 import android.os.PowerExemptionManager;
140 private final PowerExemptionManager mPowerExemptionManager;
159 mPowerExemptionManager = context.getSystemService(PowerExemptionManager.class); in CompanionDeviceManagerService()
/frameworks/base/core/proto/android/os/
Dappbackgroundrestrictioninfo.proto103 // The reasons listed below are defined in PowerExemptionManager.java

123