Home
last modified time | relevance | path

Searched refs:ecm (Results 1 – 23 of 23) sorted by relevance

/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DEnhancedConfirmationManagerTest.kt22 import android.app.ecm.EnhancedConfirmationManager
56 private val ecm by lazy { context.getSystemService(EnhancedConfirmationManager::class.java)!! } in <lambda>() constant
92 eventually { assertFalse(ecm.isRestricted(APP_PACKAGE_NAME, PROTECTED_SETTING)) } in givenStoreAppThenIsNotRestrictedFromProtectedSetting()
101 eventually { assertTrue(ecm.isRestricted(APP_PACKAGE_NAME, PROTECTED_SETTING)) } in givenLocalAppThenIsRestrictedFromProtectedSetting()
110 eventually { assertTrue(ecm.isRestricted(APP_PACKAGE_NAME, PROTECTED_SETTING)) } in givenDownloadedThenAppIsRestrictedFromProtectedSetting()
127 eventually { assertFalse(ecm.isRestricted(APP_PACKAGE_NAME, PROTECTED_SETTING)) } in givenExplicitlyRestrictedAppThenIsRestrictedFromProtectedSetting()
129 eventually { assertTrue(ecm.isRestricted(APP_PACKAGE_NAME, PROTECTED_SETTING)) } in givenExplicitlyRestrictedAppThenIsRestrictedFromProtectedSetting()
138 eventually { assertFalse(ecm.isRestricted(APP_PACKAGE_NAME, NON_PROTECTED_SETTING)) } in givenRestrictedAppThenIsNotRestrictedFromNonProtectedSetting()
147 eventually { assertFalse(ecm.isClearRestrictionAllowed(APP_PACKAGE_NAME)) } in givenRestrictedAppThenClearRestrictionNotAllowedByDefault()
156 eventually { assertTrue(ecm.isRestricted(APP_PACKAGE_NAME, PROTECTED_SETTING)) } in givenRestrictedAppWhenClearRestrictionThenNotRestrictedFromProtectedSetting()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/ecm/
DEnhancedConfirmationStatsLogUtils.kt17 package com.android.permissioncontroller.ecm
21 import android.app.ecm.EnhancedConfirmationManager
117 val ecm = userContext.getSystemService(EnhancedConfirmationManager::class.java) in isPackageEcmRestricted() constant
120 ecm?.isRestricted(packageName, arbitrarilyChosenRestrictedSetting) ?: false in isPackageEcmRestricted()
DEnhancedConfirmationDialogActivity.kt17 package com.android.permissioncontroller.ecm in <lambda>()
22 import android.app.ecm.EnhancedConfirmationManager in <lambda>()
44 import com.android.permissioncontroller.ecm.EnhancedConfirmationStatsLogUtils.DialogResult in <lambda>()
98 val ecm = Utils.getSystemServiceSafe(userContext, EnhancedConfirmationManager::class.java) in <lambda>() constant
100 val wasClearRestrictionAllowed = ecm.isClearRestrictionAllowed(packageName) in <lambda>()
101 ecm.setClearRestrictionAllowed(packageName) in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/
DGrantPermissionsActivity.java46 import android.app.ecm.EnhancedConfirmationManager;
86 import com.android.permissioncontroller.ecm.EnhancedConfirmationStatsLogUtils;
490 EnhancedConfirmationManager ecm = Utils.getSystemServiceSafe(userContext, in blockRestrictedPermissions() local
514 if (requestedPermGroup != null && isPermissionEcmRestricted(ecm, in blockRestrictedPermissions()
525 if (!restrictedPermGroups.isEmpty() && wasEcmDialogAlreadyShown(ecm, mTargetPackage)) { in blockRestrictedPermissions()
542 Intent intent = ecm.createRestrictedSettingDialogIntent(mTargetPackage, in blockRestrictedPermissions()
566 private boolean isPermissionEcmRestricted(EnhancedConfirmationManager ecm, in isPermissionEcmRestricted() argument
569 return ecm.isRestricted(packageName, requestedPermission); in isPermissionEcmRestricted()
576 private boolean wasEcmDialogAlreadyShown(EnhancedConfirmationManager ecm, in wasEcmDialogAlreadyShown() argument
579 return ecm.isClearRestrictionAllowed(packageName); in wasEcmDialogAlreadyShown()
/packages/modules/Permission/service/java/com/android/ecm/
DEnhancedConfirmationService.java17 package com.android.ecm;
24 import android.app.ecm.EnhancedConfirmationManager;
25 import android.app.ecm.IEnhancedConfirmationManager;
DEnhancedConfirmationStatsLogUtils.kt17 package com.android.ecm
/packages/modules/Permission/framework-s/java/android/app/ecm/
DIEnhancedConfirmationManager.aidl17 package android.app.ecm;
DEnhancedConfirmationFrameworkInitializer.java17 package android.app.ecm;
DEnhancedConfirmationManager.java17 package android.app.ecm;
/packages/modules/Permission/framework-s/api/
Dmodule-lib-current.txt2 package android.app.ecm {
Dsystem-current.txt2 package android.app.ecm {
10 …field public static final String ACTION_SHOW_ECM_RESTRICTED_SETTING_DIALOG = "android.app.ecm.acti…
/packages/modules/Permission/framework-s/
DAndroid.bp102 "android.app.ecm",
/packages/modules/Permission/
DAndroid.bp112 "android.app.ecm",
/packages/apps/Settings/src/com/android/settings/spa/app/appinfo/
DAppInfoSettingsMoreOptions.kt20 import android.app.ecm.EnhancedConfirmationManager
/packages/modules/Permission/service/
DAndroid.bp140 "com.android.ecm",
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DAutoRevokePermissions.kt34 import com.android.permissioncontroller.ecm.EnhancedConfirmationStatsLogUtils in <lambda>()
DPermissionControllerServiceImpl.java60 import com.android.permissioncontroller.ecm.EnhancedConfirmationStatsLogUtils;
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/
DAppInfoSettingsMoreOptionsTest.kt22 import android.app.ecm.EnhancedConfirmationManager
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppInfoDashboardFragmentTest.java38 import android.app.ecm.EnhancedConfirmationManager;
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppInfoDashboardFragment.java27 import android.app.ecm.EnhancedConfirmationManager;
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/model/
DRole.java21 import android.app.ecm.EnhancedConfirmationManager;
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DGrantPermissionsViewModel.kt71 import com.android.permissioncontroller.ecm.EnhancedConfirmationStatsLogUtils in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DUtils.java57 import android.app.ecm.EnhancedConfirmationManager;