Home
last modified time | relevance | path

Searched refs:isAllowlisted (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/
DPowerAllowlistBackendTest.java94 assertThat(mPowerAllowlistBackend.isAllowlisted(PACKAGE_ONE, UID)).isTrue(); in testIsAllowlisted()
95 assertThat(mPowerAllowlistBackend.isAllowlisted(PACKAGE_TWO, UID)).isFalse(); in testIsAllowlisted()
96 assertThat(mPowerAllowlistBackend.isAllowlisted(new String[] {PACKAGE_ONE}, UID)).isTrue(); in testIsAllowlisted()
97 assertThat(mPowerAllowlistBackend.isAllowlisted(new String[] {PACKAGE_TWO}, UID)).isFalse(); in testIsAllowlisted()
102 assertThat(mPowerAllowlistBackend.isAllowlisted(PACKAGE_ONE, UID)).isTrue(); in testIsAllowlisted()
103 assertThat(mPowerAllowlistBackend.isAllowlisted(PACKAGE_TWO, UID)).isTrue(); in testIsAllowlisted()
104 assertThat(mPowerAllowlistBackend.isAllowlisted( in testIsAllowlisted()
110 assertThat(mPowerAllowlistBackend.isAllowlisted(PACKAGE_ONE, UID)).isTrue(); in testIsAllowlisted()
111 assertThat(mPowerAllowlistBackend.isAllowlisted(PACKAGE_TWO, UID)).isFalse(); in testIsAllowlisted()
112 assertThat(mPowerAllowlistBackend.isAllowlisted(new String[] {PACKAGE_ONE}, UID)).isTrue(); in testIsAllowlisted()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DPowerAllowlistBackend.java101 public boolean isAllowlisted(String pkg, int uid) { in isAllowlisted() method in PowerAllowlistBackend
173 public boolean isAllowlisted(String[] pkgs, int uid) { in isAllowlisted() method in PowerAllowlistBackend
178 if (isAllowlisted(pkg, uid)) { in isAllowlisted()
207 final boolean wasInList = isAllowlisted(pkg, uid); in addApp()
249 final boolean wasInList = isAllowlisted(pkg, uid); in removeApp()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyLogger.java349 private static String getAppIdleWlChangedLog(int uid, boolean isAllowlisted) { in getAppIdleWlChangedLog() argument
350 return "App idle whitelist state of uid " + uid + ": " + isAllowlisted; in getAppIdleWlChangedLog()
538 public void appIdleWlChanged(int uid, boolean isAllowlisted) { in appIdleWlChanged() argument
545 data.bfield1 = isAllowlisted; in appIdleWlChanged()
/frameworks/base/services/core/java/com/android/server/wm/
DLockTaskController.java773 final boolean isAllowlisted = lockedTask.mLockTaskAuth == LOCK_TASK_AUTH_LAUNCHABLE in updateLockTaskPackages()
778 || !wasAllowlisted || isAllowlisted) { in updateLockTaskPackages()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DLockTaskControllerTest.java786 boolean isAllowlisted = in getTaskForUpdate()
788 tr.mLockTaskAuth = isAllowlisted ? authIfAllowlisted : LOCK_TASK_AUTH_PINNABLE; in getTaskForUpdate()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DSession.java5588 final boolean isAllowlisted = mService in triggerAugmentedAutofillLocked()
5591 if (!isAllowlisted) { in triggerAugmentedAutofillLocked()
5597 mCurrentViewId, isAllowlisted, /* isInline= */ null); in triggerAugmentedAutofillLocked()
5632 this, focusedId, isAllowlisted, mode, currentValue); in triggerAugmentedAutofillLocked()
5709 boolean isAllowlisted, in AugmentedAutofillInlineSuggestionRequestConsumer() argument
5714 mIsAllowlisted = isAllowlisted; in AugmentedAutofillInlineSuggestionRequestConsumer()
5800 boolean isAllowlisted, in onAugmentedAutofillInlineSuggestionAccept() argument
5807 focussedId, isAllowlisted, inlineSuggestionsRequest != null); in onAugmentedAutofillInlineSuggestionAccept()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionManagerServiceImpl.java3748 final boolean isAllowlisted = (newFlags
3756 if (!isAllowlisted && isGranted) {
3765 && !wasAllowlisted && isAllowlisted) {