Home
last modified time | relevance | path

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

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/additionalaccess/
DLoadExerciseRoutePermissionUseCase.kt62 ): PermissionUiState { in getPermissionState()
65 return PermissionUiState.ALWAYS_ALLOW in getPermissionState()
69 return PermissionUiState.NOT_DECLARED in getPermissionState()
72 val flag = permissionFlags[permission] ?: return PermissionUiState.NOT_DECLARED in getPermissionState()
74 return PermissionUiState.NEVER_ALLOW in getPermissionState()
77 return PermissionUiState.ASK_EVERY_TIME in getPermissionState()
82 val exerciseRoutePermissionState: PermissionUiState,
83 val exercisePermissionState: PermissionUiState
86 enum class PermissionUiState { class
DAdditionalAccessViewModel.kt29 import com.android.healthconnect.controller.permissions.additionalaccess.PermissionUiState.ALWAYS_A… in <lambda>()
30 import com.android.healthconnect.controller.permissions.additionalaccess.PermissionUiState.ASK_EVER… in <lambda>()
31 import com.android.healthconnect.controller.permissions.additionalaccess.PermissionUiState.NEVER_AL… in <lambda>()
32 import com.android.healthconnect.controller.permissions.additionalaccess.PermissionUiState.NOT_DECL… in <lambda>()
152 fun updateExerciseRouteState(packageName: String, exerciseRouteNewState: PermissionUiState) { in <lambda>()
211 val exerciseRoutePermissionUIState: PermissionUiState = NOT_DECLARED, in <lambda>()
212 val exercisePermissionUIState: PermissionUiState = NOT_DECLARED, in <lambda>()
DExerciseRoutesPermissionDialogFragment.kt34 import com.android.healthconnect.controller.permissions.additionalaccess.PermissionUiState.ALWAYS_A… in <lambda>()
35 import com.android.healthconnect.controller.permissions.additionalaccess.PermissionUiState.ASK_EVER… in <lambda>()
36 import com.android.healthconnect.controller.permissions.additionalaccess.PermissionUiState.NEVER_AL… in <lambda>()
139 private fun getId(currentState: PermissionUiState): Int { in <lambda>()
DAdditionalAccessFragment.kt28 import com.android.healthconnect.controller.permissions.additionalaccess.PermissionUiState.ALWAYS_A… in <lambda>()
29 import com.android.healthconnect.controller.permissions.additionalaccess.PermissionUiState.ASK_EVER… in <lambda>()
30 import com.android.healthconnect.controller.permissions.additionalaccess.PermissionUiState.NOT_DECL… in <lambda>()
111 private fun setupExerciseRoutePref(state: PermissionUiState) { in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/additionalaccess/
DAdditionalAccessViewModelTest.kt28 import com.android.healthconnect.controller.permissions.additionalaccess.PermissionUiState
170 .isEqualTo(PermissionUiState.ALWAYS_ALLOW) in <lambda>()
172 .isEqualTo(PermissionUiState.ALWAYS_ALLOW) in <lambda>()
208 .isEqualTo(PermissionUiState.ALWAYS_ALLOW) in <lambda>()
210 .isEqualTo(PermissionUiState.ALWAYS_ALLOW) in <lambda>()
248 .isEqualTo(PermissionUiState.ALWAYS_ALLOW) in loadAdditionalAccessPreferences_backgroundReadNotEnabled_doesNotReturnBackgroundRead()
250 .isEqualTo(PermissionUiState.ALWAYS_ALLOW) in loadAdditionalAccessPreferences_backgroundReadNotEnabled_doesNotReturnBackgroundRead()
290 .isEqualTo(PermissionUiState.ASK_EVERY_TIME) in loadAdditionalAccessPreferences_noReadPermissionsGranted_additionalPermissionsDisabled()
292 .isEqualTo(PermissionUiState.ASK_EVERY_TIME) in loadAdditionalAccessPreferences_noReadPermissionsGranted_additionalPermissionsDisabled()
335 .isEqualTo(PermissionUiState.ASK_EVERY_TIME) in <lambda>()
[all …]
DLoadExerciseRoutePermissionUseCaseTest.kt28 import com.android.healthconnect.controller.permissions.additionalaccess.PermissionUiState.ALWAYS_A…
29 import com.android.healthconnect.controller.permissions.additionalaccess.PermissionUiState.ASK_EVER…
30 import com.android.healthconnect.controller.permissions.additionalaccess.PermissionUiState.NEVER_AL…
31 import com.android.healthconnect.controller.permissions.additionalaccess.PermissionUiState.NOT_DECL…
DExerciseRoutesPermissionDialogFragmentTest.kt36 import com.android.healthconnect.controller.permissions.additionalaccess.PermissionUiState.ALWAYS_A…
37 import com.android.healthconnect.controller.permissions.additionalaccess.PermissionUiState.ASK_EVER…
38 import com.android.healthconnect.controller.permissions.additionalaccess.PermissionUiState.NEVER_AL…
DAdditionalAccessFragmentTest.kt46 import com.android.healthconnect.controller.permissions.additionalaccess.PermissionUiState.ALWAYS_A… in <lambda>()
47 import com.android.healthconnect.controller.permissions.additionalaccess.PermissionUiState.ASK_EVER… in <lambda>()
48 import com.android.healthconnect.controller.permissions.additionalaccess.PermissionUiState.NEVER_AL… in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/
DAppPermissionViewModelTest.kt22 import com.android.healthconnect.controller.permissions.additionalaccess.PermissionUiState
303 exerciseRoutePermissionState = PermissionUiState.ALWAYS_ALLOW, in <lambda>()
304 exercisePermissionState = PermissionUiState.ALWAYS_ALLOW)) in <lambda>()
367 exerciseRoutePermissionState = PermissionUiState.ASK_EVERY_TIME, in <lambda>()
368 exercisePermissionState = PermissionUiState.ALWAYS_ALLOW)) in <lambda>()
DConnectedAppFragmentTest.kt41 import com.android.healthconnect.controller.permissions.additionalaccess.PermissionUiState in <lambda>()
559 exerciseRoutePermissionUIState = PermissionUiState.ASK_EVERY_TIME, in <lambda>()
560 exercisePermissionUIState = PermissionUiState.ASK_EVERY_TIME) in <lambda>()
597 exerciseRoutePermissionUIState = PermissionUiState.ASK_EVERY_TIME, in <lambda>()
598 exercisePermissionUIState = PermissionUiState.ASK_EVERY_TIME) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/settings/
DSettingsManageAppPermissionsFragmentTest.kt45 import com.android.healthconnect.controller.permissions.additionalaccess.PermissionUiState in <lambda>()
368 exerciseRoutePermissionUIState = PermissionUiState.ASK_EVERY_TIME, in <lambda>()
369 exercisePermissionUIState = PermissionUiState.ASK_EVERY_TIME) in <lambda>()
401 exerciseRoutePermissionUIState = PermissionUiState.ASK_EVERY_TIME, in <lambda>()
402 exercisePermissionUIState = PermissionUiState.ASK_EVERY_TIME) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/di/
DFakeComponents.kt52 import com.android.healthconnect.controller.permissions.additionalaccess.PermissionUiState
517 exercisePermissionState = PermissionUiState.ASK_EVERY_TIME,
518 exerciseRoutePermissionState = PermissionUiState.ASK_EVERY_TIME)
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/app/
DAppPermissionViewModel.kt28 import com.android.healthconnect.controller.permissions.additionalaccess.PermissionUiState.ALWAYS_A… in <lambda>()