/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/request/ |
D | RequestPermissionViewModelTest.kt | 41 …m.android.healthconnect.controller.permissions.data.HealthPermission.Companion.fromPermissionString 164 fromPermissionString(READ_EXERCISE), in <lambda>() 165 fromPermissionString(READ_SLEEP), in <lambda>() 166 fromPermissionString(WRITE_EXERCISE))) in <lambda>() 170 fromPermissionString(READ_HEALTH_DATA_IN_BACKGROUND), in <lambda>() 171 fromPermissionString(READ_HEALTH_DATA_HISTORY))) in <lambda>() 175 fromPermissionString(READ_EXERCISE), in <lambda>() 176 fromPermissionString(READ_SLEEP), in <lambda>() 177 fromPermissionString(WRITE_EXERCISE), in <lambda>() 178 fromPermissionString(READ_HEALTH_DATA_IN_BACKGROUND), in <lambda>() [all …]
|
D | MockedPermissionsActivityTest.kt | 58 …m.android.healthconnect.controller.permissions.data.HealthPermission.Companion.fromPermissionString in <lambda>() 115 fromPermissionString(READ_STEPS), in <lambda>() 116 fromPermissionString(READ_HEART_RATE), in <lambda>() 117 fromPermissionString(WRITE_DISTANCE), in <lambda>() 118 fromPermissionString(WRITE_EXERCISE)) in <lambda>() 167 fromPermissionString(READ_STEPS) to PermissionState.GRANTED, in <lambda>() 168 fromPermissionString(READ_HEART_RATE) to PermissionState.GRANTED, in <lambda>() 169 fromPermissionString(WRITE_DISTANCE) to PermissionState.GRANTED, in <lambda>() 170 fromPermissionString(WRITE_EXERCISE) to PermissionState.GRANTED) in <lambda>() 227 fromPermissionString(READ_HEALTH_DATA_HISTORY) to PermissionState.GRANTED, in <lambda>() [all …]
|
D | FitnessPermissionsFragmentTest.kt | 42 …nnect.controller.permissions.data.HealthPermission.FitnessPermission.Companion.fromPermissionString in <lambda>() 114 fromPermissionString(READ_STEPS), in <lambda>() 115 fromPermissionString(WRITE_HEART_RATE), in <lambda>() 159 fromPermissionString(READ_STEPS), in <lambda>() 160 fromPermissionString(WRITE_HEART_RATE), in <lambda>() 184 fromPermissionString(READ_STEPS), in <lambda>() 185 fromPermissionString(READ_HEART_RATE), in <lambda>() 211 fromPermissionString(WRITE_DISTANCE), in <lambda>() 212 fromPermissionString(WRITE_EXERCISE), in <lambda>() 238 fromPermissionString(READ_DISTANCE), in <lambda>() [all …]
|
D | MedicalPermissionsFragmentTest.kt | 42 …nnect.controller.permissions.data.HealthPermission.MedicalPermission.Companion.fromPermissionString in <lambda>() 118 fromPermissionString(READ_MEDICAL_DATA_IMMUNIZATION), in <lambda>() 119 fromPermissionString(WRITE_MEDICAL_DATA), in <lambda>() 160 fromPermissionString(READ_MEDICAL_DATA_IMMUNIZATION), in <lambda>() 161 fromPermissionString(WRITE_MEDICAL_DATA), in <lambda>() 185 fromPermissionString(READ_MEDICAL_DATA_IMMUNIZATION), in <lambda>() 186 fromPermissionString(WRITE_MEDICAL_DATA), in <lambda>() 209 fromPermissionString(READ_MEDICAL_DATA_IMMUNIZATION), in <lambda>() 230 fromPermissionString(WRITE_MEDICAL_DATA), in <lambda>() 251 fromPermissionString(READ_MEDICAL_DATA_IMMUNIZATION), in <lambda>() [all …]
|
D | AdditionalPermissionsFragmentTest.kt | 28 …m.android.healthconnect.controller.permissions.data.HealthPermission.Companion.fromPermissionString 271 fromPermissionString(HealthPermissions.READ_HEALTH_DATA_HISTORY) to in allowButton_noAdditionalPermissionsSelected_isDisabled() 273 fromPermissionString(HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND) to in allowButton_noAdditionalPermissionsSelected_isDisabled() 310 fromPermissionString(HealthPermissions.READ_HEALTH_DATA_HISTORY) to in allowButton_additionalPermissionsSelected_isEnabled() 312 fromPermissionString(HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND) to in allowButton_additionalPermissionsSelected_isEnabled() 347 fromPermissionString(HealthPermissions.READ_HEALTH_DATA_HISTORY) to in allowButton_medicalRequestConcluded_isEnabled() 349 fromPermissionString(HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND) to in allowButton_medicalRequestConcluded_isEnabled()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/data/ |
D | HealthPermissionTest.kt | 20 …m.android.healthconnect.controller.permissions.data.HealthPermission.Companion.fromPermissionString in <lambda>() 51 assertThat(fromPermissionString("android.permission.health.READ_ACTIVE_CALORIES_BURNED")) in <lambda>() 57 assertThat(fromPermissionString("android.permission.health.WRITE_BLOOD_GLUCOSE")) in <lambda>() 69 assertThat(fromPermissionString(permissionString).toString()) in <lambda>() 81 assertThat(fromPermissionString(permissionString).toString()) in <lambda>() 88 assertThat(fromPermissionString("android.permission.health.READ_HEALTH_DATA_HISTORY")) in <lambda>() 91 assertThat(fromPermissionString("android.permission.health.READ_HEALTH_DATA_IN_BACKGROUND")) in <lambda>() 97 assertThat(fromPermissionString("android.permission.health.WRITE_MEDICAL_DATA")) in <lambda>() 101 fromPermissionString( in <lambda>() 109 fromPermissionString("Unsupported_permission") in <lambda>()
|
D | FitnessPermissionStringsTest.kt | 55 val type = FitnessPermission.fromPermissionString(permission).healthPermissionType in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/data/ |
D | HealthPermission.kt | 36 fun fromPermissionString(permission: String): HealthPermission { in fromPermissionString() method 38 AdditionalPermission.fromPermissionString(permission) in fromPermissionString() 40 MedicalPermission.fromPermissionString(permission) in fromPermissionString() 42 FitnessPermission.fromPermissionString(permission) in fromPermissionString() 56 fun fromPermissionString(permission: String): FitnessPermission { in fromPermissionString() method 88 fun fromPermissionString(permission: String): AdditionalPermission = in fromPermissionString() method 121 fun fromPermissionString(permission: String): MedicalPermission { in isExerciseRoutesPermission() method
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/additionalaccess/ |
D | DisableExerciseRoutePermissionDialog.kt | 31 …nnect.controller.permissions.data.HealthPermission.FitnessPermission.Companion.fromPermissionString in <lambda>() 84 packageName, fromPermissionString(READ_EXERCISE), grant = true) in <lambda>()
|
D | AdditionalAccessViewModel.kt | 146 val healthPermission = HealthPermission.fromPermissionString(permission) in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/app/ |
D | AppPermissionViewModel.kt | 36 …nnect.controller.permissions.data.HealthPermission.FitnessPermission.Companion.fromPermissionString in <lambda>() 291 revokePermission(fromPermissionString(READ_EXERCISE), packageName) in <lambda>() 346 .map { permission -> fromPermissionString(permission) } in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/request/ |
D | RequestPermissionViewModel.kt | 324 val healthPermission = HealthPermission.fromPermissionString(permission) in <lambda>() 353 HealthPermission.fromPermissionString(permissionString) in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/shared/ |
D | HealthDataCategoryExtensionsTest.kt | 65 val fitnessPermission = FitnessPermission.fromPermissionString(permissionString) in <lambda>()
|
D | HealthPermissionReaderTest.kt | 218 return FitnessPermission.fromPermissionString(this) in String()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/ |
D | HealthPermissionReader.kt | 185 HealthPermission.fromPermissionString(permission) in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/ |
D | TestConstants.kt | 420 return this.map { HealthPermission.fromPermissionString(it) }.toList() in any()
|