/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | FgsTempAllowListTest.java | 51 assertTrue(allowList.isAllowed(10001)); in testIsAllowed() 56 assertTrue(allowList.isAllowed(10002)); in testIsAllowed() 62 assertFalse(allowList.isAllowed(10001)); in testIsAllowed() 77 assertFalse(allowList.isAllowed(10001)); in testExpired() 88 assertTrue(allowList.isAllowed(10001)); in testRemoveAppId() 89 assertTrue(allowList.isAllowed(10002)); in testRemoveAppId() 90 assertTrue(allowList.isAllowed(10_10001)); in testRemoveAppId() 94 assertFalse(allowList.isAllowed(10001)); in testRemoveAppId() 95 assertTrue(allowList.isAllowed(10002)); in testRemoveAppId() 96 assertFalse(allowList.isAllowed(10_10001)); in testRemoveAppId()
|
/frameworks/base/core/java/android/text/ |
D | LoginFilter.java | 61 if (!isAllowed(c)) onInvalidCharacter(c); in filter() 70 if (isAllowed(c)) { in filter() 93 if (!isAllowed(c)) onInvalidCharacter(c); in filter() 129 public abstract boolean isAllowed(char c); in isAllowed() method in LoginFilter 150 public boolean isAllowed(char c) { in isAllowed() method in LoginFilter.UsernameFilterGMail 181 public boolean isAllowed(char c) { in isAllowed() method in LoginFilter.UsernameFilterGeneric 216 public boolean isAllowed(char c) { in isAllowed() method in LoginFilter.PasswordFilterGMail
|
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/tests/testutils/ |
D | TestTogglePermissionAppListModel.kt | 29 isAllowed: Boolean? = null, 36 private var isAllowed by mutableStateOf(isAllowed) variable 44 override fun isAllowed(record: TestAppRecord) = { isAllowed } in transformItem() method 49 isAllowed = newAllowed in isChangeable()
|
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/model/app/ |
D | AppOpsPermissionControllerTest.kt | 64 val isAllowed = controller.isAllowedFlow.firstWithTimeoutOrNull() in <lambda>() constant 66 assertThat(isAllowed).isTrue() in <lambda>() 86 val isAllowed = controller.isAllowedFlow.firstWithTimeoutOrNull() in <lambda>() constant 88 assertThat(isAllowed).isTrue() in <lambda>() 108 val isAllowed = controller.isAllowedFlow.firstWithTimeoutOrNull() in isAllowedFlow_appOpsDefaultAndPermissionNotGranted_returnFalse() constant 110 assertThat(isAllowed).isFalse() in isAllowedFlow_appOpsDefaultAndPermissionNotGranted_returnFalse() 126 val isAllowed = controller.isAllowedFlow.firstWithTimeoutOrNull() in <lambda>() constant 128 assertThat(isAllowed).isFalse() in <lambda>()
|
/frameworks/native/services/schedulerservice/ |
D | SchedulingPolicyService.cpp | 32 bool SchedulingPolicyService::isAllowed() { in isAllowed() function in android::frameworks::schedulerservice::V1_0::implementation::SchedulingPolicyService 44 if (!isAllowed()) { in requestPriority() 55 if (!isAllowed()) { in getMaxAllowedPriority()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/contentcapture/ |
D | ContentCaptureManagerServiceTest.java | 279 verify(mMockContentProtectionAllowlistManager, never()).isAllowed(anyString()); in getOptions_contentCaptureDisabled_contentProtectionDisabled() 285 when(mMockContentProtectionAllowlistManager.isAllowed(PACKAGE_NAME)).thenReturn(true); in getOptions_contentCaptureDisabled_contentProtectionEnabled() 315 verify(mMockContentProtectionAllowlistManager, never()).isAllowed(anyString()); in getOptions_contentCaptureEnabled_contentProtectionDisabled() 321 when(mMockContentProtectionAllowlistManager.isAllowed(PACKAGE_NAME)).thenReturn(true); in getOptions_contentCaptureEnabled_contentProtectionEnabled() 346 verify(mMockContentProtectionAllowlistManager, never()).isAllowed(anyString()); in isWhitelisted_packageName_contentCaptureDisabled_contentProtectionDisabled() 352 when(mMockContentProtectionAllowlistManager.isAllowed(PACKAGE_NAME)).thenReturn(true); in isWhitelisted_packageName_contentCaptureDisabled_contentProtectionEnabled() 374 verify(mMockContentProtectionAllowlistManager, never()).isAllowed(anyString()); in isWhitelisted_packageName_contentCaptureEnabled_contentProtectionDisabled() 390 verify(mMockContentProtectionAllowlistManager, never()).isAllowed(anyString()); in isWhitelisted_packageName_contentCaptureEnabled_contentProtectionEnabled() 401 verify(mMockContentProtectionAllowlistManager, never()).isAllowed(anyString()); in isWhitelisted_componentName_contentCaptureDisabled_contentProtectionDisabled() 407 when(mMockContentProtectionAllowlistManager.isAllowed(PACKAGE_NAME)).thenReturn(true); in isWhitelisted_componentName_contentCaptureDisabled_contentProtectionEnabled() [all …]
|
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/template/app/ |
D | TogglePermissionAppInfoPageTest.kt | 98 val listModel = TestTogglePermissionAppListModel(isAllowed = true, isChangeable = true) in <lambda>() 108 val listModel = TestTogglePermissionAppListModel(isAllowed = false, isChangeable = true) in <lambda>() 140 val listModel = TestTogglePermissionAppListModel(isAllowed = true) in <lambda>() 150 val listModel = TestTogglePermissionAppListModel(isAllowed = false) in <lambda>() 160 val listModel = TestTogglePermissionAppListModel(isAllowed = false, isChangeable = true) in <lambda>() 172 val listModel = TestTogglePermissionAppListModel(isAllowed = false, isChangeable = false) in <lambda>() 184 val listModel = TestTogglePermissionAppListModel(isAllowed = false, isChangeable = false) in <lambda>()
|
D | AppOpPermissionAppListTest.kt | 141 val isAllowed = getIsAllowed(record) in isAllowed_allowed() constant 143 assertThat(isAllowed).isTrue() in isAllowed_allowed() 161 val isAllowed = getIsAllowed(record) in isAllowed_broaderPermissionTrumps() constant 163 assertThat(isAllowed).isTrue() in isAllowed_broaderPermissionTrumps() 176 val isAllowed = getIsAllowed(record) in isAllowed_notAllowed() constant 178 assertThat(isAllowed).isFalse() in isAllowed_notAllowed() 260 composeTestRule.setContent { isAllowedState = listModel.isAllowed(record) } in getIsAllowed()
|
D | TogglePermissionAppListPageTest.kt | 71 val listModel = TestTogglePermissionAppListModel(isAllowed = true) in <lambda>() 81 val listModel = TestTogglePermissionAppListModel(isAllowed = false) in <lambda>() 92 val listModel = TestTogglePermissionAppListModel(isAllowed = null) in <lambda>()
|
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/livedata/ |
D | LiveDataExt.kt | 32 val isAllowed by observeAsState() in observeAsCallback() constant 33 return { isAllowed } in observeAsCallback()
|
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/ |
D | DomainVerificationEnforcer.java | 93 boolean isAllowed; in assertApprovedVerifier() 98 isAllowed = true; in assertApprovedVerifier() 122 isAllowed = proxy.isCallerVerifier(callingUid); in assertApprovedVerifier() 126 if (!isAllowed) { in assertApprovedVerifier()
|
/frameworks/av/media/utils/ |
D | ServiceUtilities.cpp | 431 std::vector<bool> isAllowed; in doIsAllowed() local 432 auto status = mPackageManager->isAudioPlaybackCaptureAllowed(packageNames, &isAllowed); in doIsAllowed() 438 if (packageNames.size() != isAllowed.size()) { in doIsAllowed() 440 " response size: %zu != %zu", __func__, uid, packageNames.size(), isAllowed.size()); in doIsAllowed() 447 std::transform(begin(packageNames), end(packageNames), begin(isAllowed), in doIsAllowed() 448 begin(packages), [] (auto& name, bool isAllowed) -> Package { in doIsAllowed() argument 449 return {std::move(name), isAllowed}; in doIsAllowed() 453 bool playbackCaptureAllowed = std::all_of(begin(isAllowed), end(isAllowed), in doIsAllowed()
|
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/template/app/ |
D | AppOpPermissionAppList.kt | 125 override fun isAllowed(record: AppOpPermissionRecord): () -> Boolean? { in <lambda>() method in com.android.settingslib.spaprivileged.template.app.AppOpPermissionListModel 130 val isAllowed by record.appOpsPermissionController.isAllowedFlow in <lambda>() constant 132 return { isAllowed } in <lambda>()
|
D | TogglePermissionAppInfoPage.kt | 150 val isAllowed = isAllowed(record) in TogglePermissionAppInfoPage() constant 154 override val checked = isAllowed in TogglePermissionAppInfoPage() 164 InfoPageAdditionalContent(record, isAllowed) in TogglePermissionAppInfoPage()
|
D | TogglePermissionAppList.kt | 70 fun isAllowed(record: T): () -> Boolean? in <lambda>() method 83 fun InfoPageAdditionalContent(record: T, isAllowed: () -> Boolean?) {} in <lambda>()
|
/frameworks/base/core/java/com/android/internal/accessibility/dialog/ |
D | AccessibilityActivityTarget.java | 54 final boolean isAllowed = AccessibilityTargetHelper.isAccessibilityTargetAllowed( in updateActionItem() 58 final boolean enabled = isAllowed || (isEditMenuMode && isShortcutEnabled()); in updateActionItem()
|
D | AccessibilityServiceTarget.java | 59 final boolean isAllowed = AccessibilityTargetHelper.isAccessibilityTargetAllowed( in updateActionItem() 63 final boolean enabled = isAllowed || (isEditMenuMode && isShortcutEnabled()); in updateActionItem()
|
D | ToggleAccessibilityServiceTarget.java | 66 final boolean isAllowed = AccessibilityTargetHelper.isAccessibilityTargetAllowed( in updateActionItem() 72 holder.mStatusView.setAlpha(isAllowed in updateActionItem()
|
/frameworks/base/cmds/incidentd/src/ |
D | Privacy.cpp | 53 static bool isAllowed(const uint8_t policy, const uint8_t check) { in isAllowed() function 90 return isAllowed(mPolicy, check); in CheckPremission()
|
/frameworks/libs/gsma_services/satellite_client/src/android/telephony/satellite/wrapper/ |
D | SatelliteCommunicationAllowedStateCallbackWrapper.java | 29 void onSatelliteCommunicationAllowedStateChanged(boolean isAllowed); in onSatelliteCommunicationAllowedStateChanged() argument
|
/frameworks/base/telephony/java/android/telephony/satellite/ |
D | ISatelliteCommunicationAllowedStateCallback.aidl | 31 void onSatelliteCommunicationAllowedStateChanged(in boolean isAllowed); in onSatelliteCommunicationAllowedStateChanged() argument
|
D | SatelliteCommunicationAllowedStateCallback.java | 42 void onSatelliteCommunicationAllowedStateChanged(boolean isAllowed); in onSatelliteCommunicationAllowedStateChanged() argument
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/satellite/ |
D | SatelliteDialogUtils.kt | 53 allowClick: (isAllowed: Boolean) -> Unit in <lambda>() 68 allowClick: (isAllowed: Boolean) -> Unit in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/domain/interactor/ |
D | GuestUserInteractorTest.kt | 133 setAllowedToAdd(isAllowed = false) in onDeviceBootCompleted_awaitProvisioning_andCreateGuest() 139 setAllowedToAdd(isAllowed = true) in onDeviceBootCompleted_awaitProvisioning_andCreateGuest() 377 private fun setAllowedToAdd(isAllowed: Boolean = true) { in setAllowedToAdd() 378 whenever(deviceProvisionedController.isDeviceProvisioned).thenReturn(isAllowed) in setAllowedToAdd() 379 whenever(devicePolicyManager.isDeviceManaged).thenReturn(!isAllowed) in setAllowedToAdd()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/satellite/metrics/ |
D | AccessControllerMetricsStats.java | 119 public AccessControllerMetricsStats setIsAllowed(boolean isAllowed) { in setIsAllowed() argument 120 mIsAllowed = isAllowed; in setIsAllowed()
|