Home
last modified time | relevance | path

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

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DGrantPermissionsViewModel.kt390 if (groupState.group.isOneTime) { in <lambda>()
432 if (coarseLocationPerm.isOneTime) { in <lambda>()
436 if (coarseLocationPerm?.isOneTime == false && in <lambda>()
768 affectedForegroundPermissions, granted = true, isOneTime = false, in <lambda>()
773 affectedForegroundPermissions, granted = true, isOneTime = false, in <lambda>()
780 affectedForegroundPermissions, granted = true, isOneTime = false, in <lambda>()
785 affectedForegroundPermissions, granted = false, isOneTime = false, in <lambda>()
792 affectedForegroundPermissions, granted = true, isOneTime = true, in <lambda>()
797 affectedForegroundPermissions, granted = false, isOneTime = true, in <lambda>()
804 affectedForegroundPermissions, granted = false, isOneTime = false, in <lambda>()
[all …]
DAppPermissionViewModel.kt229 askOneTimeState.isShown = group.foreground.isGranted && group.isOneTime in <lambda>()
231 !(group.foreground.isGranted && group.isOneTime) in <lambda>()
244 !group.background.isGranted && !group.isOneTime in <lambda>()
245 askState.isChecked = !group.foreground.isGranted && group.isOneTime in <lambda>()
246 askOneTimeState.isChecked = group.foreground.isGranted && group.isOneTime in <lambda>()
248 deniedState.isChecked = !group.foreground.isGranted && !group.isOneTime in <lambda>()
272 askState.isChecked = !group.foreground.isGranted && group.isOneTime in <lambda>()
273 askOneTimeState.isChecked = group.foreground.isGranted && group.isOneTime in <lambda>()
275 deniedState.isChecked = !group.foreground.isGranted && !group.isOneTime in <lambda>()
498 if (!group.isOneTime) { in <lambda>()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DKotlinUtils.kt467 isOneTime: Boolean = false in <lambda>()
469 return grantRuntimePermissions(app, group, false, isOneTime, filterPermissions) in <lambda>()
498 isOneTime: Boolean = false, in <lambda>()
501 val wasOneTime = group.isOneTime in <lambda>()
508 val (newPerm, shouldKill) = grantRuntimePermission(app, perm, isOneTime, group) in <lambda>()
521 if (newGroup.permissions.any { it.value.isOneTime && it.value.isGrantedIncludingAppOp }) { in <lambda>()
544 isOneTime: Boolean, in <lambda>()
597 newFlags = if (isOneTime) { in <lambda>()
689 val wasOneTime = group.isOneTime in <lambda>()
733 if (group?.isOneTime == true) { in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/livedatatypes/
DLightAppPermGroup.kt124 val isOneTime = (permGroupName != Manifest.permission_group.LOCATION && in <lambda>() constant
125 permissions.any { it.value.isOneTime }) || in <lambda>()
127 permissions[ACCESS_COARSE_LOCATION]?.isOneTime == true) in <lambda>()
DLightPermission.kt71 val isOneTime = flags and PackageManager.FLAG_PERMISSION_ONE_TIME != 0 constant
118 if (isOneTime) append(", OneTime") in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DAppPermGroupUiInfoLiveData.kt269 val isOneTime = permissionState.any { in <lambda>() constant
277 return if (isOneTime) { in <lambda>()
283 return if (isOneTime) { in <lambda>()
292 if (isOneTime) { in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/
DAppPermissionGroup.java1161 public void setOneTime(boolean isOneTime) {
1166 permission.setOneTime(isOneTime);
1301 public boolean isOneTime() {
1305 if (permission.isOneTime()) {
1438 | (permission.isOneTime() ? PackageManager.FLAG_PERMISSION_ONE_TIME : 0);
1477 if (isOneTime() && areRuntimePermissionsGranted()) {
DPermission.java260 public boolean isOneTime() { in isOneTime() method in Permission
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DPermissionControllerServiceImpl.java655 if (group != null && group.isOneTime()) { in onOneTimePermissionSessionTimeout()
665 .filter(Permission::isOneTime).filter(Permission::isGranted) in onOneTimePermissionSessionTimeout()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/television/
DPermissionAppsFragment.java208 app.areRuntimePermissionsGranted() && !app.getPermissionGroup().isOneTime(); in updateCategories()
DAppPermissionsFragment.java393 if (group.isOneTime()) { in setPreferencesCheckedState()