Home
last modified time | relevance | path

Searched refs:mPowerExemptionManager (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/apex/jobscheduler/framework/java/android/os/
DPowerWhitelistManager.java50 private final PowerExemptionManager mPowerExemptionManager; field in PowerWhitelistManager
380 mPowerExemptionManager = context.getSystemService(PowerExemptionManager.class); in PowerWhitelistManager()
391 mPowerExemptionManager.addToPermanentAllowList(packageName); in addToWhitelist()
402 mPowerExemptionManager.addToPermanentAllowList(packageNames); in addToWhitelist()
417 return mPowerExemptionManager.getAllowListedAppIds(includingIdle); in getWhitelistedAppIds()
431 return mPowerExemptionManager.isAllowListed(packageName, includingIdle); in isWhitelisted()
445 mPowerExemptionManager.removeFromPermanentAllowList(packageName); in removeFromWhitelist()
462 mPowerExemptionManager.addToTemporaryAllowList(packageName, reasonCode, reason, durationMs); in whitelistAppTemporarily()
476 mPowerExemptionManager.addToTemporaryAllowList( in whitelistAppTemporarily()
497 return mPowerExemptionManager.addToTemporaryAllowListForEvent( in whitelistAppTemporarilyForEvent()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/
DMediaOutputControllerTest.java117 private PowerExemptionManager mPowerExemptionManager = mock(PowerExemptionManager.class); field in MediaOutputControllerTest
146 Optional.of(mNearbyMediaDevicesManager), mAudioManager, mPowerExemptionManager, in setUp()
203 Optional.of(mNearbyMediaDevicesManager), mAudioManager, mPowerExemptionManager, in start_withoutPackageName_verifyMediaControllerInit()
233 Optional.of(mNearbyMediaDevicesManager), mAudioManager, mPowerExemptionManager, in stop_withoutPackageName_verifyMediaControllerDeinit()
422 Optional.of(mNearbyMediaDevicesManager), mAudioManager, mPowerExemptionManager, in getAppSourceName_packageNameIsNull_returnsNull()
445 Optional.of(mNearbyMediaDevicesManager), mAudioManager, mPowerExemptionManager, in getNotificationSmallIcon_packageNameIsNull_returnsNull()
481 Optional.of(mNearbyMediaDevicesManager), mAudioManager, mPowerExemptionManager, in addDeviceToPlayMedia_triggersFromLocalMediaManager()
498 Optional.of(mNearbyMediaDevicesManager), mAudioManager, mPowerExemptionManager, in removeDeviceFromPlayMedia_triggersFromLocalMediaManager()
786 Optional.of(mNearbyMediaDevicesManager), mAudioManager, mPowerExemptionManager, in getNotificationLargeIcon_withoutPackageName_returnsNull()
918 verify(mPowerExemptionManager).addToTemporaryAllowList(anyString(), anyInt(), anyString(), in setTemporaryAllowListExceptionIfNeeded_fromRemoteToBluetooth_addsAllowList()
DMediaOutputBaseDialogTest.java91 private PowerExemptionManager mPowerExemptionManager = mock(PowerExemptionManager.class); field in MediaOutputBaseDialogTest
125 Optional.of(mNearbyMediaDevicesManager), mAudioManager, mPowerExemptionManager, in setUp()
DMediaOutputDialogTest.java95 private PowerExemptionManager mPowerExemptionManager = mock(PowerExemptionManager.class); field in MediaOutputDialogTest
119 Optional.of(mNearbyMediaDevicesManager), mAudioManager, mPowerExemptionManager, in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/
DMediaOutputController.java129 private final PowerExemptionManager mPowerExemptionManager; field in MediaOutputController
183 mPowerExemptionManager = powerExemptionManager; in MediaOutputController()
974 mAudioManager, mPowerExemptionManager, mKeyGuardManager, mFeatureFlags); in launchMediaOutputBroadcastDialog()
1021 if (mPowerExemptionManager == null || mPackageName == null) { in setTemporaryAllowListExceptionIfNeeded()
1025 mPowerExemptionManager.addToTemporaryAllowList(mPackageName, in setTemporaryAllowListExceptionIfNeeded()
/frameworks/base/core/java/android/os/
DPowerManager.java1178 private PowerExemptionManager mPowerExemptionManager; field in PowerManager
1195 if (mPowerExemptionManager == null) { in getPowerExemptionManager()
1197 mPowerExemptionManager = mContext.getSystemService(PowerExemptionManager.class); in getPowerExemptionManager()
1199 return mPowerExemptionManager; in getPowerExemptionManager()