/frameworks/base/core/tests/coretests/src/com/android/internal/infra/ |
D | WhitelistHelperTest.java | 61 () -> 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/ |
D | PowerWhitelistBackendTest.java | 85 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/ |
D | ContentCaptureOptionsTest.java | 59 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/ |
D | GlobalWhitelistState.java | 70 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()
|
D | WhitelistHelper.java | 108 public boolean isWhitelisted(@NonNull String packageName) { in isWhitelisted() method in WhitelistHelper 120 public boolean isWhitelisted(@NonNull ComponentName componentName) { in isWhitelisted() method in WhitelistHelper 129 return isWhitelisted(packageName); in isWhitelisted()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/ |
D | PowerWhitelistBackend.java | 74 public boolean isWhitelisted(String pkg) { in isWhitelisted() method in PowerWhitelistBackend 107 public boolean isWhitelisted(String[] pkgs) { in isWhitelisted() method in PowerWhitelistBackend 112 if (isWhitelisted(pkg)) { in isWhitelisted()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyLogger.java | 171 void appIdleWlChanged(int uid, boolean isWhitelisted) { in appIdleWlChanged() argument 174 Slog.d(TAG, getAppIdleWlChangedLog(uid, isWhitelisted)); in appIdleWlChanged() 176 mEventsBuffer.appIdleWlChanged(uid, isWhitelisted); in appIdleWlChanged() 313 private static String getAppIdleWlChangedLog(int uid, boolean isWhitelisted) { in getAppIdleWlChangedLog() argument 314 return "App idle whitelist state of uid " + uid + ": " + isWhitelisted; in getAppIdleWlChangedLog() 467 public void appIdleWlChanged(int uid, boolean isWhitelisted) { in appIdleWlChanged() argument 474 data.bfield1 = isWhitelisted; in appIdleWlChanged()
|
D | NetworkPolicyManagerShellCommand.java | 321 private int setAppIdleWhitelist(boolean isWhitelisted) { in setAppIdleWhitelist() argument 326 mInterface.setAppIdleWhitelist(uid, isWhitelisted); in setAppIdleWhitelist()
|
D | NetworkPolicyManagerService.java | 2628 final boolean isWhitelisted = policy == POLICY_ALLOW_METERED_BACKGROUND; in setUidPolicyUncheckedUL() 2630 final boolean isBlocked = isBlacklisted || (mRestrictBackground && !isWhitelisted); in setUidPolicyUncheckedUL() 2631 if ((wasWhitelisted && (!isWhitelisted || isBlacklisted)) in setUidPolicyUncheckedUL() 3830 boolean isWhitelisted = mPowerSaveTempWhitelistAppIds.get(appId) in isWhitelistedFromPowerSaveUL() 3833 isWhitelisted = isWhitelisted || mPowerSaveWhitelistExceptIdleAppIds.get(appId); in isWhitelistedFromPowerSaveUL() 3835 return isWhitelisted; in isWhitelistedFromPowerSaveUL() 3843 final boolean isWhitelisted = isWhitelistedFromPowerSaveUL(uid, in updateRulesForWhitelistedPowerSaveUL() 3845 if (isWhitelisted || isUidForegroundOnRestrictPowerUL(uid)) { in updateRulesForWhitelistedPowerSaveUL() 4299 final boolean isWhitelisted = (uidPolicy & POLICY_ALLOW_METERED_BACKGROUND) != 0; in updateRulesForDataUsageRestrictionsULInner() 4307 if (isBlacklisted || (mRestrictBackground && !isWhitelisted)) { in updateRulesForDataUsageRestrictionsULInner() [all …]
|
/frameworks/base/apex/jobscheduler/framework/java/android/os/ |
D | PowerWhitelistManager.java | 131 public boolean isWhitelisted(@NonNull String packageName, boolean includingIdle) { in isWhitelisted() method in PowerWhitelistManager
|
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/ |
D | ContentCapturePerUserService.java | 255 final boolean whiteListed = mMaster.mGlobalContentCaptureOptions.isWhitelisted(mUserId, in startSessionLocked() 256 componentName) || mMaster.mGlobalContentCaptureOptions.isWhitelisted(mUserId, in startSessionLocked() 611 .isWhitelisted(mUserId, session.appComponentName); in setContentCaptureWhitelist()
|
D | ContentCaptureManagerService.java | 886 packageWhitelisted = isWhitelisted(userId, packageName); in getOptions()
|
/frameworks/base/core/java/android/content/ |
D | ContentCaptureOptions.java | 149 public boolean isWhitelisted(@NonNull Context context) { in isWhitelisted() method in ContentCaptureOptions
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | LockTaskController.java | 665 final boolean isWhitelisted = lockedTask.mLockTaskAuth == LOCK_TASK_AUTH_LAUNCHABLE in updateLockTaskPackages() 670 || !wasWhitelisted || isWhitelisted) { in updateLockTaskPackages()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | LockTaskControllerTest.java | 766 boolean isWhitelisted = in getTaskForUpdate() 768 tr.mLockTaskAuth = isWhitelisted ? authIfWhitelisted : Task.LOCK_TASK_AUTH_PINNABLE; in getTaskForUpdate()
|
/frameworks/base/services/autofill/java/com/android/server/autofill/ |
D | AutofillManagerService.java | 1282 options.augmentedAutofillEnabled = helper.isWhitelisted(packageName); in injectAugmentedAutofillInfo() 1290 public boolean isWhitelisted(@UserIdInt int userId, @NonNull ComponentName componentName) { in isWhitelisted() method in AutofillManagerService.AugmentedAutofillState 1292 if (!super.isWhitelisted(userId, componentName)) return false; in isWhitelisted()
|
D | Session.java | 3272 final boolean isWhitelisted = mService 3275 if (!isWhitelisted) { 3281 mCurrentViewId, isWhitelisted, /* isInline= */ null); 3316 focusedId, isWhitelisted, inlineSuggestionsRequest != null); 3368 ComponentName augmentedRemoteServiceName, AutofillId focusedId, boolean isWhitelisted, 3375 + " w=" + isWhitelisted
|
/frameworks/base/core/java/android/os/ |
D | PowerManager.java | 1803 return getPowerWhitelistManager().isWhitelisted(packageName, true); in isIgnoringBatteryOptimizations()
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | PermissionManagerService.java | 3871 final boolean isWhitelisted = (newFlags in setWhitelistedRestrictedPermissionsForUsers() 3881 if (!isWhitelisted && isGranted) { in setWhitelistedRestrictedPermissionsForUsers() 3890 && !wasWhitelisted && isWhitelisted) { in setWhitelistedRestrictedPermissionsForUsers()
|
/frameworks/base/core/java/android/app/ |
D | SystemServiceRegistry.java | 1127 if (options != null && (options.lite || options.isWhitelisted(outerContext))) { in registerService()
|
/frameworks/base/config/ |
D | boot-image-profile.txt | 4714 HSPLandroid/content/ContentCaptureOptions;->isWhitelisted(Landroid/content/Context;)Z 16044 HSPLandroid/os/PowerWhitelistManager;->isWhitelisted(Ljava/lang/String;Z)Z 27995 HPLcom/android/internal/infra/GlobalWhitelistState;->isWhitelisted(ILandroid/content/ComponentName;… 27996 HSPLcom/android/internal/infra/GlobalWhitelistState;->isWhitelisted(ILjava/lang/String;)Z 28041 HPLcom/android/internal/infra/WhitelistHelper;->isWhitelisted(Landroid/content/ComponentName;)Z 28042 HPLcom/android/internal/infra/WhitelistHelper;->isWhitelisted(Ljava/lang/String;)Z
|
/frameworks/base/services/ |
D | art-profile | 9866 HPLcom/android/server/autofill/AutofillManagerService$AugmentedAutofillState;->isWhitelisted(ILandr…
|