Home
last modified time | relevance | path

Searched refs:isWhitelisted (Results 1 – 18 of 18) 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/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.java108 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/core/tests/coretests/src/android/content/
DContentCaptureOptionsTest.java81 assertThat(options.isWhitelisted(mContext)).isTrue(); in testIsWhitelisted_nullWhitelistedComponents()
87 assertThat(options.isWhitelisted(mContext)).isFalse(); in testIsWhitelisted_emptyWhitelistedComponents()
93 assertThat(options.isWhitelisted(mContext)).isFalse(); in testIsWhitelisted_notWhitelisted()
100 assertThat(options.isWhitelisted(mContext)).isTrue(); in testIsWhitelisted_whitelisted()
107 assertThat(options.isWhitelisted(invalidContext)).isFalse(); in testIsWhitelisted_invalidContext()
117 assertThat(options.isWhitelisted(context)).isFalse(); in testIsWhitelisted_clientWithNullComponentName()
/frameworks/base/services/tests/servicestests/src/com/android/server/contentcapture/
DContentCaptureManagerServiceTest.java341 mContentCaptureManagerService.mGlobalContentCaptureOptions.isWhitelisted( in isWhitelisted_packageName_contentCaptureDisabled_contentProtectionDisabled()
357 mContentCaptureManagerService.mGlobalContentCaptureOptions.isWhitelisted( in isWhitelisted_packageName_contentCaptureDisabled_contentProtectionEnabled()
369 mContentCaptureManagerService.mGlobalContentCaptureOptions.isWhitelisted( in isWhitelisted_packageName_contentCaptureEnabled_contentProtectionDisabled()
385 mContentCaptureManagerService.mGlobalContentCaptureOptions.isWhitelisted( in isWhitelisted_packageName_contentCaptureEnabled_contentProtectionEnabled()
396 mContentCaptureManagerService.mGlobalContentCaptureOptions.isWhitelisted( in isWhitelisted_componentName_contentCaptureDisabled_contentProtectionDisabled()
412 mContentCaptureManagerService.mGlobalContentCaptureOptions.isWhitelisted( in isWhitelisted_componentName_contentCaptureDisabled_contentProtectionEnabled()
424 mContentCaptureManagerService.mGlobalContentCaptureOptions.isWhitelisted( in isWhitelisted_componentName_contentCaptureEnabled_contentProtectionDisabled()
440 mContentCaptureManagerService.mGlobalContentCaptureOptions.isWhitelisted( in isWhitelisted_componentName_contentCaptureEnabled_contentProtectionEnabled()
456 mContentCaptureManagerService.mGlobalContentCaptureOptions.isWhitelisted( in isContentProtectionReceiverEnabled_true()
465 mContentCaptureManagerService.mGlobalContentCaptureOptions.isWhitelisted( in isContentProtectionReceiverEnabled_false_withoutManagers()
[all …]
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerShellCommand.java330 private int setAppIdleAllowlist(boolean isWhitelisted) { in setAppIdleAllowlist() argument
335 mInterface.setAppIdleWhitelist(uid, isWhitelisted); in setAppIdleAllowlist()
DNetworkPolicyLogger.java193 void appIdleWlChanged(int uid, boolean isWhitelisted) { in appIdleWlChanged() argument
196 Slog.d(TAG, getAppIdleWlChangedLog(uid, isWhitelisted)); in appIdleWlChanged()
198 mEventsBuffer.appIdleWlChanged(uid, isWhitelisted); in appIdleWlChanged()
DNetworkPolicyManagerService.java4875 final boolean isWhitelisted = isAllowlistedFromPowerSaveUL(uid,
4877 if (isWhitelisted || isUidForegroundOnRestrictPowerUL(uid)) {
5587 final boolean isWhitelisted = isAllowlistedFromPowerSaveUL(uid, mDeviceIdleMode);
5636 + ", isWhitelisted=" + isWhitelisted
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/
DContentCapturePerUserService.java270 final boolean whiteListed = mMaster.mGlobalContentCaptureOptions.isWhitelisted(mUserId, in startSessionLocked()
271 componentName) || mMaster.mGlobalContentCaptureOptions.isWhitelisted(mUserId, in startSessionLocked()
663 .isWhitelisted(mUserId, session.appComponentName); in setContentCaptureWhitelist()
DContentCaptureManagerService.java1529 public boolean isWhitelisted(@UserIdInt int userId, @NonNull String packageName) { in isWhitelisted() method in ContentCaptureManagerService.GlobalContentCaptureOptions
1535 public boolean isWhitelisted(@UserIdInt int userId, @NonNull ComponentName componentName) { in isWhitelisted() method in ContentCaptureManagerService.GlobalContentCaptureOptions
1536 return super.isWhitelisted(userId, componentName) in isWhitelisted()
1542 return super.isWhitelisted(userId, packageName); in isContentCaptureReceiverEnabled()
/frameworks/base/apex/jobscheduler/framework/java/android/os/
DPowerWhitelistManager.java435 public boolean isWhitelisted(@NonNull String packageName, boolean includingIdle) { in isWhitelisted() method in PowerWhitelistManager
/frameworks/base/core/java/android/content/
DContentCaptureOptions.java244 public boolean isWhitelisted(@NonNull Context context) { in isWhitelisted() method in ContentCaptureOptions
/frameworks/base/services/autofill/java/com/android/server/autofill/
DAutofillManagerService.java1586 options.augmentedAutofillEnabled = helper.isWhitelisted(packageName); in injectAugmentedAutofillInfo()
1594 public boolean isWhitelisted(@UserIdInt int userId, @NonNull ComponentName componentName) { in isWhitelisted() method in AutofillManagerService.AugmentedAutofillState
1596 if (!super.isWhitelisted(userId, componentName)) return false; in isWhitelisted()
DAutofillManagerServiceImpl.java1551 return mMaster.mAugmentedAutofillState.isWhitelisted(mUserId, componentName); in isWhitelistedForAugmentedAutofillLocked()
DSession.java6945 ComponentName augmentedRemoteServiceName, AutofillId focusedId, boolean isWhitelisted, in logAugmentedAutofillRequestLocked() argument
6952 + " w=" + isWhitelisted in logAugmentedAutofillRequestLocked()
/frameworks/base/core/java/android/app/
DSystemServiceRegistry.java1258 if (options != null && (options.lite || options.isWhitelisted(outerContext))) { in registerService()
/frameworks/base/boot/
Dboot-image-profile.txt3621 HSPLandroid/content/ContentCaptureOptions;->isWhitelisted(Landroid/content/Context;)Z
12598 HSPLandroid/os/PowerWhitelistManager;->isWhitelisted(Ljava/lang/String;Z)Z
/frameworks/base/config/
Dboot-image-profile.txt3624 HSPLandroid/content/ContentCaptureOptions;->isWhitelisted(Landroid/content/Context;)Z
12601 HSPLandroid/os/PowerWhitelistManager;->isWhitelisted(Ljava/lang/String;Z)Z