Home
last modified time | relevance | path

Searched refs:AdditionalPermission (Results 1 – 15 of 15) sorted by relevance

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/request/
DAdditionalPermissionsFragmentTest.kt27 import com.android.healthconnect.controller.permissions.data.HealthPermission.AdditionalPermission
78 MutableLiveData(emptySet<AdditionalPermission>()) in setup()
96 AdditionalPermission.READ_HEALTH_DATA_HISTORY, in displaysCombinedAdditionalPermissions()
97 AdditionalPermission.READ_HEALTH_DATA_IN_BACKGROUND), in displaysCombinedAdditionalPermissions()
139 listOf(AdditionalPermission.READ_HEALTH_DATA_IN_BACKGROUND), in displaysBackgroundReadPermission()
169 listOf(AdditionalPermission.READ_HEALTH_DATA_HISTORY), in displaysHistoryReadPermission()
199 AdditionalPermission.READ_HEALTH_DATA_HISTORY, in toggleOn_updatesAdditionalPermission()
200 AdditionalPermission.READ_HEALTH_DATA_IN_BACKGROUND), in toggleOn_updatesAdditionalPermission()
209 .updateHealthPermission(any(AdditionalPermission::class.java), Matchers.eq(true)) in toggleOn_updatesAdditionalPermission()
223 AdditionalPermission.READ_HEALTH_DATA_HISTORY, in toggleOff_updatesAdditionalPermission()
[all …]
DMockedPermissionsActivityTest.kt57 import com.android.healthconnect.controller.permissions.data.HealthPermission.AdditionalPermission in <lambda>()
223 permissions.toPermissionsList().map { it as AdditionalPermission }, TEST_APP)) in <lambda>()
253 permissions.toPermissionsList().map { it as AdditionalPermission }, TEST_APP)) in <lambda>()
283 permissions.toPermissionsList().map { it as AdditionalPermission }, TEST_APP)) in <lambda>()
325 permissions.toPermissionsList().map { it as AdditionalPermission }, TEST_APP)) in <lambda>()
328 MutableLiveData(emptySet<AdditionalPermission>()) in <lambda>()
375 healthPermissionsList.filterIsInstance<AdditionalPermission>() in <lambda>()
454 healthPermissionsList.filterIsInstance<AdditionalPermission>() in <lambda>()
532 healthPermissionsList.filterIsInstance<AdditionalPermission>() in <lambda>()
DRequestPermissionViewModelTest.kt40 import com.android.healthconnect.controller.permissions.data.HealthPermission.AdditionalPermission
154 val additionalPermissionObserver = TestObserver<List<AdditionalPermission>>() in <lambda>()
436 val testObserver = TestObserver<Set<AdditionalPermission>>() in <lambda>()
464 val testObserver = TestObserver<Set<AdditionalPermission>>() in <lambda>()
493 val testObserver = TestObserver<Set<AdditionalPermission>>() in updateAdditionalPermissions_grant_updatesGrantedAdditionalPermissions()
524 val testObserver = TestObserver<Set<AdditionalPermission>>() in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/data/
DHealthPermission.kt38 AdditionalPermission.fromPermissionString(permission) in fromPermissionString()
85 data class AdditionalPermission(val additionalPermission: String) : HealthPermission() { dataClass
88 fun fromPermissionString(permission: String): AdditionalPermission = in fromPermissionString()
89 AdditionalPermission(permission) in fromPermissionString()
93 AdditionalPermission(HealthPermissions.READ_HEALTH_DATA_HISTORY) in fromPermissionString()
95 AdditionalPermission(HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND) in fromPermissionString()
96 val READ_EXERCISE_ROUTES = AdditionalPermission(HealthPermissions.READ_EXERCISE_ROUTES) in fromPermissionString()
DAdditionalPermissionStrings.kt35 additionalPermission: HealthPermission.AdditionalPermission in fromAdditionalPermission()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/request/
DRequestPermissionViewModel.kt35 import com.android.healthconnect.controller.permissions.data.HealthPermission.AdditionalPermission in <lambda>()
80 private val _additionalPermissionsList = MutableLiveData<List<AdditionalPermission>>() in <lambda>()
81 val additionalPermissionsList: LiveData<List<AdditionalPermission>> in <lambda>()
103 MutableLiveData<Set<AdditionalPermission>>(emptySet()) in <lambda>()
104 val grantedAdditionalPermissions: LiveData<Set<AdditionalPermission>> in <lambda>()
231 } else if (permission is AdditionalPermission) { in <lambda>()
284 .filterKeys { it is AdditionalPermission } in <lambda>()
285 .filterKeys { it != AdditionalPermission.READ_EXERCISE_ROUTES } in <lambda>()
386 .map { permission -> permission as AdditionalPermission } in <lambda>()
432 private fun updateAdditionalPermission(permission: AdditionalPermission, grant: Boolean) { in <lambda>()
[all …]
DAdditionalPermissionsFragment.kt24 import com.android.healthconnect.controller.permissions.data.HealthPermission.AdditionalPermission in <lambda>()
94 private fun setupAllowButton(permissionList: List<AdditionalPermission>) { in <lambda>()
153 val additionalPermission = AdditionalPermission.READ_HEALTH_DATA_IN_BACKGROUND in <lambda>()
176 val additionalPermission = AdditionalPermission.READ_HEALTH_DATA_HISTORY in <lambda>()
199 val additionalPermission = AdditionalPermission.READ_HEALTH_DATA_HISTORY in <lambda>()
215 val additionalPermission = AdditionalPermission.READ_HEALTH_DATA_HISTORY in <lambda>()
231 additionalPermission: AdditionalPermission, in <lambda>()
DMedicalPermissionsFragment.kt133 allPermissions.filterIsInstance<HealthPermission.AdditionalPermission>() in <lambda>()
DFitnessPermissionsFragment.kt130 allPermissions.filterIsInstance<HealthPermission.AdditionalPermission>() in <lambda>()
DPermissionsActivity.kt131 allPermissions.filterIsInstance<HealthPermission.AdditionalPermission>() in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/shared/
DHealthPermissionReaderTest.kt53 HealthPermission.AdditionalPermission.READ_EXERCISE_ROUTES) in <lambda>()
69 HealthPermission.AdditionalPermission.READ_EXERCISE_ROUTES, in getValidHealthPermissions_returnsDataTypeAndAdditionalPermissions()
71 HealthPermission.AdditionalPermission.READ_HEALTH_DATA_IN_BACKGROUND, in getValidHealthPermissions_returnsDataTypeAndAdditionalPermissions()
72 HealthPermission.AdditionalPermission.READ_HEALTH_DATA_HISTORY) in getValidHealthPermissions_returnsDataTypeAndAdditionalPermissions()
86 HealthPermission.AdditionalPermission.READ_EXERCISE_ROUTES) in <lambda>()
201 val perm = HealthPermission.AdditionalPermission(HealthPermissions.READ_EXERCISE_ROUTES) in <lambda>()
213 val perm = HealthPermission.AdditionalPermission(HealthPermissions.READ_EXERCISE_ROUTES) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/data/
DHealthPermissionTest.kt19 import com.android.healthconnect.controller.permissions.data.HealthPermission.AdditionalPermission in <lambda>()
89 .isEqualTo(AdditionalPermission(HealthPermissions.READ_HEALTH_DATA_HISTORY)) in <lambda>()
92 .isEqualTo(AdditionalPermission(HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND)) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/
DAppPermissionViewModelTest.kt95 HealthPermission.AdditionalPermission.READ_EXERCISE_ROUTES
97 HealthPermission.AdditionalPermission.READ_HEALTH_DATA_HISTORY
99 HealthPermission.AdditionalPermission.READ_HEALTH_DATA_IN_BACKGROUND
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/additionalaccess/
DAdditionalAccessFragment.kt163 HealthPermission.AdditionalPermission.READ_HEALTH_DATA_HISTORY) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/app/
DAppPermissionViewModel.kt169 .filterIsInstance<HealthPermission.AdditionalPermission>() in <lambda>()