Home
last modified time | relevance | path

Searched refs:historyReadPermission (Results 1 – 2 of 2) sorted by relevance

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/request/
DRequestPermissionViewModelTest.kt306 val historyReadPermission = fromPermissionString(READ_HEALTH_DATA_HISTORY) in <lambda>() constant
307 viewModel.updateHealthPermission(historyReadPermission, grant = true) in <lambda>()
309 assertThat(viewModel.isPermissionLocallyGranted(historyReadPermission)).isTrue() in <lambda>()
331 val historyReadPermission = fromPermissionString(READ_HEALTH_DATA_HISTORY) in <lambda>() constant
332 viewModel.updateHealthPermission(historyReadPermission, grant = false) in <lambda>()
334 assertThat(viewModel.isPermissionLocallyGranted(historyReadPermission)).isFalse() in <lambda>()
435 val historyReadPermission = fromPermissionString(READ_HEALTH_DATA_HISTORY) in <lambda>() constant
438 viewModel.updateHealthPermission(historyReadPermission, grant = true) in <lambda>()
441 assertThat(testObserver.getLastValue()).contains(historyReadPermission) in <lambda>()
463 val historyReadPermission = fromPermissionString(READ_HEALTH_DATA_HISTORY) in <lambda>() constant
[all …]
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/
DHealthPermissionReader.kt60 private val historyReadPermission = listOf(HealthPermissions.READ_HEALTH_DATA_HISTORY) in <lambda>() constant
249 return permission in historyReadPermission && !featureUtils.isHistoryReadEnabled() in <lambda>()