Home
last modified time | relevance | path

Searched refs:isAllowed (Results 1 – 25 of 71) sorted by relevance

123

/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DFgsTempAllowListTest.java51 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/
DLoginFilter.java61 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/
DTestTogglePermissionAppListModel.kt29 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/
DAppOpsPermissionControllerTest.kt64 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/
DSchedulingPolicyService.cpp32 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/
DContentCaptureManagerServiceTest.java279 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/
DTogglePermissionAppInfoPageTest.kt98 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>()
DAppOpPermissionAppListTest.kt141 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()
DTogglePermissionAppListPageTest.kt71 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/
DLiveDataExt.kt32 val isAllowed by observeAsState() in observeAsCallback() constant
33 return { isAllowed } in observeAsCallback()
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/
DDomainVerificationEnforcer.java93 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/
DServiceUtilities.cpp431 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/
DAppOpPermissionAppList.kt125 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>()
DTogglePermissionAppInfoPage.kt150 val isAllowed = isAllowed(record) in TogglePermissionAppInfoPage() constant
154 override val checked = isAllowed in TogglePermissionAppInfoPage()
164 InfoPageAdditionalContent(record, isAllowed) in TogglePermissionAppInfoPage()
DTogglePermissionAppList.kt70 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/
DAccessibilityActivityTarget.java54 final boolean isAllowed = AccessibilityTargetHelper.isAccessibilityTargetAllowed( in updateActionItem()
58 final boolean enabled = isAllowed || (isEditMenuMode && isShortcutEnabled()); in updateActionItem()
DAccessibilityServiceTarget.java59 final boolean isAllowed = AccessibilityTargetHelper.isAccessibilityTargetAllowed( in updateActionItem()
63 final boolean enabled = isAllowed || (isEditMenuMode && isShortcutEnabled()); in updateActionItem()
DToggleAccessibilityServiceTarget.java66 final boolean isAllowed = AccessibilityTargetHelper.isAccessibilityTargetAllowed( in updateActionItem()
72 holder.mStatusView.setAlpha(isAllowed in updateActionItem()
/frameworks/base/cmds/incidentd/src/
DPrivacy.cpp53 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/
DSatelliteCommunicationAllowedStateCallbackWrapper.java29 void onSatelliteCommunicationAllowedStateChanged(boolean isAllowed); in onSatelliteCommunicationAllowedStateChanged() argument
/frameworks/base/telephony/java/android/telephony/satellite/
DISatelliteCommunicationAllowedStateCallback.aidl31 void onSatelliteCommunicationAllowedStateChanged(in boolean isAllowed); in onSatelliteCommunicationAllowedStateChanged() argument
DSatelliteCommunicationAllowedStateCallback.java42 void onSatelliteCommunicationAllowedStateChanged(boolean isAllowed); in onSatelliteCommunicationAllowedStateChanged() argument
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/satellite/
DSatelliteDialogUtils.kt53 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/
DGuestUserInteractorTest.kt133 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/
DAccessControllerMetricsStats.java119 public AccessControllerMetricsStats setIsAllowed(boolean isAllowed) { in setIsAllowed() argument
120 mIsAllowed = isAllowed; in setIsAllowed()

123