Home
last modified time | relevance | path

Searched refs:isWhitelisted (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/infra/
DWhitelistHelperTest.java61 () -> mWhitelistHelper.isWhitelisted((String) null)); in testWhitelistHelper_nullArguments()
63 () -> mWhitelistHelper.isWhitelisted((ComponentName) null)); in testWhitelistHelper_nullArguments()
74 assertThat(mWhitelistHelper.isWhitelisted(mPackage1)).isFalse(); in testSetWhitelist_nullPackage()
75 assertThat(mWhitelistHelper.isWhitelisted(mPackage2)).isFalse(); in testSetWhitelist_nullPackage()
77 assertThat(mWhitelistHelper.isWhitelisted(mComponent1)).isFalse(); in testSetWhitelist_nullPackage()
78 assertThat(mWhitelistHelper.isWhitelisted(mComponent2)).isFalse(); in testSetWhitelist_nullPackage()
79 assertThat(mWhitelistHelper.isWhitelisted(mComponentDifferentPkg)).isFalse(); in testSetWhitelist_nullPackage()
88 assertThat(mWhitelistHelper.isWhitelisted(mPackage1)).isFalse(); in testSetWhitelist_nullActivity()
89 assertThat(mWhitelistHelper.isWhitelisted(mPackage2)).isFalse(); in testSetWhitelist_nullActivity()
91 assertThat(mWhitelistHelper.isWhitelisted(mComponent1)).isFalse(); in testSetWhitelist_nullActivity()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/
DPowerWhitelistBackendTest.java85 assertThat(mPowerWhitelistBackend.isWhitelisted(PACKAGE_ONE)).isTrue(); in testIsWhitelisted()
86 assertThat(mPowerWhitelistBackend.isWhitelisted(PACKAGE_TWO)).isFalse(); in testIsWhitelisted()
87 assertThat(mPowerWhitelistBackend.isWhitelisted(new String[] {PACKAGE_ONE})).isTrue(); in testIsWhitelisted()
88 assertThat(mPowerWhitelistBackend.isWhitelisted(new String[] {PACKAGE_TWO})).isFalse(); in testIsWhitelisted()
93 assertThat(mPowerWhitelistBackend.isWhitelisted(PACKAGE_ONE)).isTrue(); in testIsWhitelisted()
94 assertThat(mPowerWhitelistBackend.isWhitelisted(PACKAGE_TWO)).isTrue(); in testIsWhitelisted()
95 assertThat(mPowerWhitelistBackend.isWhitelisted( in testIsWhitelisted()
101 assertThat(mPowerWhitelistBackend.isWhitelisted(PACKAGE_ONE)).isTrue(); in testIsWhitelisted()
102 assertThat(mPowerWhitelistBackend.isWhitelisted(PACKAGE_TWO)).isFalse(); in testIsWhitelisted()
103 assertThat(mPowerWhitelistBackend.isWhitelisted(new String[] {PACKAGE_ONE})).isTrue(); in testIsWhitelisted()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/
DContentCaptureOptionsTest.java59 assertThat(options.isWhitelisted(mContext)).isTrue(); in testIsWhitelisted_nullWhitelistedComponents()
65 assertThat(options.isWhitelisted(mContext)).isFalse(); in testIsWhitelisted_emptyWhitelistedComponents()
71 assertThat(options.isWhitelisted(mContext)).isFalse(); in testIsWhitelisted_notWhitelisted()
77 assertThat(options.isWhitelisted(mContext)).isTrue(); in testIsWhitelisted_whitelisted()
84 assertThat(options.isWhitelisted(invalidContext)).isFalse(); in testIsWhitelisted_invalidContext()
94 assertThat(options.isWhitelisted(context)).isFalse(); in testIsWhitelisted_clientWithNullComponentName()
/frameworks/base/core/java/com/android/internal/infra/
DGlobalWhitelistState.java70 public boolean isWhitelisted(@UserIdInt int userId, @NonNull String packageName) { in isWhitelisted() method in GlobalWhitelistState
74 return helper == null ? false : helper.isWhitelisted(packageName); in isWhitelisted()
81 public boolean isWhitelisted(@UserIdInt int userId, @NonNull ComponentName componentName) { in isWhitelisted() method in GlobalWhitelistState
85 return helper == null ? false : helper.isWhitelisted(componentName); in isWhitelisted()
DWhitelistHelper.java109 public boolean isWhitelisted(@NonNull String packageName) { in isWhitelisted() method in WhitelistHelper
121 public boolean isWhitelisted(@NonNull ComponentName componentName) { in isWhitelisted() method in WhitelistHelper
130 return isWhitelisted(packageName); in isWhitelisted()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DPowerWhitelistBackend.java73 public boolean isWhitelisted(String pkg) { in isWhitelisted() method in PowerWhitelistBackend
116 public boolean isWhitelisted(String[] pkgs) { in isWhitelisted() method in PowerWhitelistBackend
121 if (isWhitelisted(pkg)) { in isWhitelisted()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyLogger.java149 void appIdleWlChanged(int uid, boolean isWhitelisted) { in appIdleWlChanged() argument
151 if (LOGD) Slog.d(TAG, getAppIdleWlChangedLog(uid, isWhitelisted)); in appIdleWlChanged()
152 mEventsBuffer.appIdleWlChanged(uid, isWhitelisted); in appIdleWlChanged()
270 private static String getAppIdleWlChangedLog(int uid, boolean isWhitelisted) { in getAppIdleWlChangedLog() argument
271 return "App idle whitelist state of uid " + uid + ": " + isWhitelisted; in getAppIdleWlChangedLog()
424 public void appIdleWlChanged(int uid, boolean isWhitelisted) { in appIdleWlChanged() argument
431 data.bfield1 = isWhitelisted; in appIdleWlChanged()
DNetworkPolicyManagerShellCommand.java300 private int setAppIdleWhitelist(boolean isWhitelisted) { in setAppIdleWhitelist() argument
305 mInterface.setAppIdleWhitelist(uid, isWhitelisted); in setAppIdleWhitelist()
DNetworkPolicyManagerService.java2602 final boolean isWhitelisted = policy == POLICY_ALLOW_METERED_BACKGROUND; in setUidPolicyUncheckedUL()
2604 final boolean isBlocked = isBlacklisted || (mRestrictBackground && !isWhitelisted); in setUidPolicyUncheckedUL()
2605 if ((wasWhitelisted && (!isWhitelisted || isBlacklisted)) in setUidPolicyUncheckedUL()
3716 boolean isWhitelisted = mPowerSaveTempWhitelistAppIds.get(appId) in isWhitelistedFromPowerSaveUL()
3719 isWhitelisted = isWhitelisted || mPowerSaveWhitelistExceptIdleAppIds.get(appId); in isWhitelistedFromPowerSaveUL()
3721 return isWhitelisted; in isWhitelistedFromPowerSaveUL()
3729 final boolean isWhitelisted = isWhitelistedFromPowerSaveUL(uid, in updateRulesForWhitelistedPowerSaveUL()
3731 if (isWhitelisted || isUidForegroundOnRestrictPowerUL(uid)) { in updateRulesForWhitelistedPowerSaveUL()
4161 final boolean isWhitelisted = (uidPolicy & POLICY_ALLOW_METERED_BACKGROUND) != 0; in updateRulesForDataUsageRestrictionsULInner()
4169 if (isBlacklisted || (mRestrictBackground && !isWhitelisted)) { in updateRulesForDataUsageRestrictionsULInner()
[all …]
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/
DContentCapturePerUserService.java253 final boolean whiteListed = mMaster.mGlobalContentCaptureOptions.isWhitelisted(mUserId, in startSessionLocked()
254 componentName) || mMaster.mGlobalContentCaptureOptions.isWhitelisted(mUserId, in startSessionLocked()
591 .isWhitelisted(mUserId, session.appComponentName); in setContentCaptureWhitelist()
DContentCaptureManagerService.java790 packageWhitelisted = isWhitelisted(userId, packageName); in getOptions()
/frameworks/base/core/java/android/content/
DContentCaptureOptions.java149 public boolean isWhitelisted(@NonNull Context context) { in isWhitelisted() method in ContentCaptureOptions
/frameworks/base/services/core/java/com/android/server/wm/
DLockTaskController.java639 final boolean isWhitelisted = lockedTask.mLockTaskAuth == LOCK_TASK_AUTH_LAUNCHABLE in updateLockTaskPackages()
644 || !wasWhitelisted || isWhitelisted) { in updateLockTaskPackages()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DLockTaskControllerTest.java723 boolean isWhitelisted = in getTaskRecordForUpdate()
725 tr.mLockTaskAuth = isWhitelisted in getTaskRecordForUpdate()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DAutofillManagerService.java1007 options.augmentedAutofillEnabled = helper.isWhitelisted(packageName); in injectAugmentedAutofillInfo()
1015 public boolean isWhitelisted(@UserIdInt int userId, @NonNull ComponentName componentName) { in isWhitelisted() method in AutofillManagerService.AugmentedAutofillState
1017 if (!super.isWhitelisted(userId, componentName)) return false; in isWhitelisted()
DSession.java2752 final boolean isWhitelisted = mService in triggerAugmentedAutofillLocked()
2760 + " w=" + isWhitelisted; in triggerAugmentedAutofillLocked()
2763 if (!isWhitelisted) { in triggerAugmentedAutofillLocked()
DAutofillManagerServiceImpl.java1268 return mMaster.mAugmentedAutofillState.isWhitelisted(mUserId, componentName); in isWhitelistedForAugmentedAutofillLocked()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionManagerService.java2391 final boolean isWhitelisted = (newFlags in setWhitelistedRestrictedPermissionsForUser()
2400 if (!isWhitelisted && isGranted) { in setWhitelistedRestrictedPermissionsForUser()
2409 && !wasWhitelisted && isWhitelisted) { in setWhitelistedRestrictedPermissionsForUser()
/frameworks/base/core/java/android/app/
DSystemServiceRegistry.java1146 if (options != null && (options.lite || options.isWhitelisted(outerContext))) { in registerService()