/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/request/ |
D | AdditionalPermissionsFragmentTest.kt | 27 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 …]
|
D | MockedPermissionsActivityTest.kt | 57 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>()
|
D | RequestPermissionViewModelTest.kt | 40 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/ |
D | HealthPermission.kt | 38 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()
|
D | AdditionalPermissionStrings.kt | 35 additionalPermission: HealthPermission.AdditionalPermission in fromAdditionalPermission()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/request/ |
D | RequestPermissionViewModel.kt | 35 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 …]
|
D | AdditionalPermissionsFragment.kt | 24 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>()
|
D | MedicalPermissionsFragment.kt | 133 allPermissions.filterIsInstance<HealthPermission.AdditionalPermission>() in <lambda>()
|
D | FitnessPermissionsFragment.kt | 130 allPermissions.filterIsInstance<HealthPermission.AdditionalPermission>() in <lambda>()
|
D | PermissionsActivity.kt | 131 allPermissions.filterIsInstance<HealthPermission.AdditionalPermission>() in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/shared/ |
D | HealthPermissionReaderTest.kt | 53 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/ |
D | HealthPermissionTest.kt | 19 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/ |
D | AppPermissionViewModelTest.kt | 95 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/ |
D | AdditionalAccessFragment.kt | 163 HealthPermission.AdditionalPermission.READ_HEALTH_DATA_HISTORY) in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/app/ |
D | AppPermissionViewModel.kt | 169 .filterIsInstance<HealthPermission.AdditionalPermission>() in <lambda>()
|