Home
last modified time | relevance | path

Searched refs:isOneTime (Results 1 – 13 of 13) sorted by relevance

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/livedatatypes/
DLightAppPermGroup.kt123 val isOneTime = in <lambda>() constant in com.android.permissioncontroller.permission.model.livedatatypes.LightAppPermGroup
125 permissions.any { it.value.isOneTime } && in <lambda>()
126 permissions.none { !it.value.isOneTime && it.value.isGrantedIncludingAppOp }) || in <lambda>()
128 permissions[ACCESS_COARSE_LOCATION]?.isOneTime == true) in <lambda>()
197 val isOneTime = in <lambda>() constant
198 permissions.any { it.value.isOneTime } && in <lambda>()
199 permissions.none { it.value.isGrantedIncludingAppOp && !it.value.isOneTime } in <lambda>()
DLightPermission.kt71 val isOneTime = flags and PackageManager.FLAG_PERMISSION_ONE_TIME != 0 constant
136 if (isOneTime) append(", OneTime") in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DGrantPermissionsViewModel.kt599 grantForegroundRuntimePermissions(app, group, listOf(perm), group.isOneTime) in <lambda>()
730 isOneTime = false, in <lambda>()
740 isOneTime = false, in <lambda>()
750 isOneTime = true, in <lambda>()
764 isOneTime = false, in <lambda>()
774 isOneTime = false, in <lambda>()
799 isOneTime = true, in <lambda>()
849 isOneTime: Boolean, in <lambda>()
862 if (isOneTime) { in <lambda>()
879 isOneTime in <lambda>()
[all …]
DAppPermissionViewModel.kt497 askOneTimeState.isShown = group.foreground.isGranted && group.isOneTime in <lambda>()
500 !(group.foreground.isGranted && group.isOneTime) in <lambda>()
513 !group.background.isOneTime in <lambda>()
516 (!group.background.isGranted || group.background.isOneTime) && in <lambda>()
517 !group.foreground.isOneTime in <lambda>()
518 askState.isChecked = !group.foreground.isGranted && group.isOneTime in <lambda>()
519 askOneTimeState.isChecked = group.foreground.isGranted && group.isOneTime in <lambda>()
521 deniedState.isChecked = !group.foreground.isGranted && !group.isOneTime in <lambda>()
584 group.foreground.isGranted && !group.foreground.isOneTime in <lambda>()
585 askState.isChecked = !group.foreground.isGranted && group.isOneTime in <lambda>()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DAppPermGroupUiInfoLiveData.kt289 val isOneTime = in <lambda>() constant
314 return if (isOneTime) { in <lambda>()
320 return if (isOneTime || onlySelectedPhotosGranted) { in <lambda>()
329 if (isOneTime) { in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DKotlinUtils.kt804 isOneTime: Boolean = false, in <lambda>()
812 isOneTime, in <lambda>()
840 isOneTime = false, in <lambda>()
852 isOneTime: Boolean = false, in <lambda>()
865 grantRuntimePermission(app, perm, group, isOneTime, userFixed, withoutAppOps) in <lambda>()
907 if (newGroup.permissions.any { it.value.isOneTime && it.value.isGrantedIncludingAppOp }) { in <lambda>()
951 isOneTime: Boolean, in <lambda>()
1038 if (isOneTime) { in <lambda>()
1152 val wasOneTime = group.isOneTime in <lambda>()
1244 if (group?.isOneTime == true) { in <lambda>()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/privacy/
DPermissionUtils.java268 boolean isOneTime = containsOneTimePerm && !containsGrantedNonOneTimePerm; in getPermissionGroupGrantStatus()
274 if (isOneTime) { in getPermissionGroupGrantStatus()
285 if (isOneTime) { in getPermissionGroupGrantStatus()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/
DAppPermissionGroup.java792 if (isGranted && (!asOneTime || permission.isOneTime())) {
1285 public void setOneTime(boolean isOneTime) {
1289 permission.setOneTime(isOneTime);
1423 public boolean isOneTime() {
1427 if (permission.isOneTime()) {
1443 if (!permission.isOneTime()) {
1595 | (permission.isOneTime() ? PackageManager.FLAG_PERMISSION_ONE_TIME : 0)
DPermission.java288 public boolean isOneTime() { in isOneTime() method in Permission
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DPermissionControllerServiceImpl.java687 boolean isBgGroupOneTime = bgGroup != null && bgGroup.isOneTime(); in onOneTimePermissionSessionTimeout()
688 if (group.isOneTime() || isBgGroupOneTime) { in onOneTimePermissionSessionTimeout()
700 .filter(Permission::isOneTime).filter(Permission::isGranted) in onOneTimePermissionSessionTimeout()
729 .filter(Permission::isOneTime).filter(Permission::isGranted) in onOneTimePermissionSessionTimeout()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/grantPermissions/
DBackgroundGrantBehavior.kt61 val isFgOneTime = group.foreground.isOneTime in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/television/
DPermissionAppsFragment.java229 app.areRuntimePermissionsGranted() && !app.getPermissionGroup().isOneTime(); in updateCategories()
DAppPermissionsFragment.java417 if (group.isOneTime()) { in setPreferencesCheckedState()