/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/ |
D | AppPermissionViewModelTest.kt | 30 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission 91 FitnessPermission(HealthPermissionType.EXERCISE, PermissionsAccessType.READ) 93 FitnessPermission(HealthPermissionType.NUTRITION, PermissionsAccessType.READ) 101 FitnessPermission(HealthPermissionType.SLEEP, PermissionsAccessType.WRITE) 103 FitnessPermission(HealthPermissionType.DISTANCE, PermissionsAccessType.WRITE) 159 val appPermissionsObserver = TestObserver<List<FitnessPermission>>() in <lambda>() 160 val grantedPermissionsObserver = TestObserver<Set<FitnessPermission>>() in <lambda>() 194 val appPermissionsObserver = TestObserver<List<FitnessPermission>>() in <lambda>() 195 val grantedPermissionsObserver = TestObserver<Set<FitnessPermission>>() in <lambda>() 212 val grantedPermissionsObserver = TestObserver<Set<FitnessPermission>>() in <lambda>() [all …]
|
D | ConnectedAppFragmentTest.kt | 46 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission in <lambda>() 114 MutableLiveData(emptySet<FitnessPermission>()) in <lambda>() 118 val writePermission = FitnessPermission(EXERCISE, WRITE) in <lambda>() 119 val readPermission = FitnessPermission(DISTANCE, READ) in <lambda>() 178 val permission = FitnessPermission(DISTANCE, READ) in <lambda>() 207 val permission = FitnessPermission(EXERCISE, WRITE) in <lambda>() 235 val writePermission = FitnessPermission(EXERCISE, WRITE) in <lambda>() 236 val readPermission = FitnessPermission(DISTANCE, READ) in <lambda>() 275 val writePermission = FitnessPermission(EXERCISE, WRITE) in <lambda>() 276 val readPermission = FitnessPermission(DISTANCE, READ) in <lambda>() [all …]
|
D | LoadAppPermissionsStatusUseCaseTest.kt | 20 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission 56 FitnessPermission(HealthPermissionType.EXERCISE, PermissionsAccessType.READ) in <lambda>() 58 FitnessPermission(HealthPermissionType.EXERCISE, PermissionsAccessType.WRITE) in <lambda>() 76 FitnessPermission(HealthPermissionType.EXERCISE, PermissionsAccessType.READ) in <lambda>() 78 FitnessPermission(HealthPermissionType.EXERCISE, PermissionsAccessType.WRITE) in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/app/ |
D | AppPermissionViewModel.kt | 35 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission in <lambda>() 36 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission.Com… in <lambda>() 74 private val _appPermissions = MutableLiveData<List<FitnessPermission>>(emptyList()) in <lambda>() 75 val appPermissions: LiveData<List<FitnessPermission>> in <lambda>() 78 private val _grantedPermissions = MutableLiveData<Set<FitnessPermission>>(emptySet()) in <lambda>() 79 val grantedPermissions: LiveData<Set<FitnessPermission>> in <lambda>() 158 permissionsList.map { it.healthPermission }.filterIsInstance<FitnessPermission>()) in <lambda>() 163 .filterIsInstance<FitnessPermission>() in <lambda>() 186 .filterIsInstance<FitnessPermission>()) in <lambda>() 190 .filterIsInstance<FitnessPermission>() in <lambda>() [all …]
|
D | SettingsManageAppPermissionsFragment.kt | 54 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission in <lambda>() 98 private val permissionMap: MutableMap<FitnessPermission, TwoStatePreference> = mutableMapOf() in <lambda>() 275 private fun updatePermissions(permissions: List<FitnessPermission>) { in <lambda>()
|
D | ConnectedAppFragment.kt | 55 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission in <lambda>() 112 private val permissionMap: MutableMap<FitnessPermission, HealthSwitchPreference> = in <lambda>() 302 private fun updatePermissions(permissions: List<FitnessPermission>) { in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/settings/ |
D | SettingsManageAppPermissionsFragmentTest.kt | 50 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission in <lambda>() 109 whenever(viewModel.appPermissions).then { MutableLiveData(emptyList<FitnessPermission>()) } in <lambda>() 111 MutableLiveData(emptySet<FitnessPermission>()) in <lambda>() 161 FitnessPermission(HealthPermissionType.EXERCISE, PermissionsAccessType.WRITE) in <lambda>() 163 FitnessPermission(HealthPermissionType.DISTANCE, PermissionsAccessType.READ) in <lambda>() 188 FitnessPermission(HealthPermissionType.DISTANCE, PermissionsAccessType.READ) in <lambda>() 207 FitnessPermission(HealthPermissionType.EXERCISE, PermissionsAccessType.WRITE) in <lambda>() 226 FitnessPermission(HealthPermissionType.STEPS, PermissionsAccessType.READ) in <lambda>() 228 FitnessPermission(HealthPermissionType.SLEEP, PermissionsAccessType.WRITE) in <lambda>() 264 FitnessPermission(HealthPermissionType.STEPS, PermissionsAccessType.READ) in <lambda>() [all …]
|
D | SettingsActivityTest.kt | 34 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission in <lambda>() 81 MutableLiveData<Set<FitnessPermission>>(emptySet()) in <lambda>() 105 FitnessPermission(HealthPermissionType.EXERCISE, PermissionsAccessType.WRITE) in <lambda>() 107 FitnessPermission(HealthPermissionType.DISTANCE, PermissionsAccessType.READ) in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/data/ |
D | HealthPermission.kt | 42 FitnessPermission.fromPermissionString(permission) in fromPermissionString() 48 data class FitnessPermission( class in com.android.healthconnect.controller.permissions.data.HealthPermission 56 fun fromPermissionString(permission: String): FitnessPermission { in fromPermissionString() 60 FitnessPermission(type, PermissionsAccessType.READ) in fromPermissionString() 65 FitnessPermission(type, PermissionsAccessType.WRITE) in fromPermissionString()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/request/ |
D | RequestPermissionViewModel.kt | 36 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission in <lambda>() 70 private val _fitnessPermissionsList = MutableLiveData<List<FitnessPermission>>() in <lambda>() 71 val fitnessPermissionsList: LiveData<List<FitnessPermission>> in <lambda>() 90 private val _grantedFitnessPermissions = MutableLiveData<Set<FitnessPermission>>(emptySet()) in <lambda>() 91 val grantedFitnessPermissions: LiveData<Set<FitnessPermission>> in <lambda>() 205 is FitnessPermission -> { in <lambda>() 227 if (permission is FitnessPermission) { in <lambda>() 266 .filterKeys { it is FitnessPermission } in <lambda>() 325 return ((healthPermission is FitnessPermission) && in <lambda>() 369 .map { permission -> permission as FitnessPermission } in <lambda>() [all …]
|
D | FitnessPermissionsFragment.kt | 128 allPermissions.filterIsInstance<HealthPermission.FitnessPermission>() in <lambda>() 197 private fun updateDataList(permissionsList: List<HealthPermission.FitnessPermission>) { in <lambda>() 225 permission: HealthPermission.FitnessPermission in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/datasources/api/ |
D | LoadPotentialPriorityListUseCaseTest.kt | 31 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission in <lambda>() 128 FitnessPermission(HealthPermissionType.DISTANCE, PermissionsAccessType.WRITE) in <lambda>() 134 FitnessPermission(HealthPermissionType.SLEEP, PermissionsAccessType.WRITE) in <lambda>() 140 FitnessPermission(HealthPermissionType.HEART_RATE, PermissionsAccessType.READ) in <lambda>() 159 FitnessPermission(HealthPermissionType.SLEEP, PermissionsAccessType.READ) in <lambda>() 165 FitnessPermission(HealthPermissionType.SLEEP, PermissionsAccessType.WRITE) in <lambda>() 171 FitnessPermission(HealthPermissionType.HEART_RATE, PermissionsAccessType.READ) in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/data/ |
D | HealthPermissionTest.kt | 21 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission in <lambda>() 52 .isEqualTo(FitnessPermission(ACTIVE_CALORIES_BURNED, PermissionsAccessType.READ)) in <lambda>() 58 .isEqualTo(FitnessPermission(BLOOD_GLUCOSE, PermissionsAccessType.WRITE)) in <lambda>()
|
D | FitnessPermissionStringsTest.kt | 17 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission in <lambda>() 55 val type = FitnessPermission.fromPermissionString(permission).healthPermissionType in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/access/ |
D | LoadAccessUseCase.kt | 19 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission in <lambda>() 63 FitnessPermission(permissionType, PermissionsAccessType.READ).toString())) { in <lambda>() 68 FitnessPermission(permissionType, PermissionsAccessType.WRITE) in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/request/ |
D | RequestPermissionViewModelTest.kt | 42 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission 151 val fitnessPermissionObserver = TestObserver<List<FitnessPermission>>() in <lambda>() 187 val testObserver = TestObserver<List<FitnessPermission>>() in <lambda>() 250 val testObserver = TestObserver<List<FitnessPermission>>() in <lambda>() 422 val testObserver = TestObserver<Set<FitnessPermission>>() in <lambda>() 450 val testObserver = TestObserver<Set<FitnessPermission>>() in <lambda>() 477 val testObserver = TestObserver<Set<FitnessPermission>>() in <lambda>() 509 val testObserver = TestObserver<Set<FitnessPermission>>() in <lambda>()
|
D | FitnessPermissionsFragmentTest.kt | 41 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission in <lambda>() 42 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission.Com… in <lambda>() 98 MutableLiveData(emptySet<FitnessPermission>()) in <lambda>() 251 verify(viewModel).updateHealthPermission(any(FitnessPermission::class.java), eq(true)) in <lambda>() 334 MutableLiveData(emptySet<FitnessPermission>()) in <lambda>()
|
D | MedicalPermissionsFragmentTest.kt | 40 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission in <lambda>() 102 MutableLiveData(emptySet<FitnessPermission>()) in <lambda>() 273 FitnessPermission.fromPermissionString(READ_STEPS), in <lambda>() 274 FitnessPermission.fromPermissionString(WRITE_DISTANCE), in <lambda>() 339 MutableLiveData(emptySet<FitnessPermission>()) in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/api/ |
D | RevokeHealthPermissionUseCaseTest.kt | 23 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission 47 FitnessPermission(HealthPermissionType.HEIGHT, PermissionsAccessType.WRITE).toString()) in invoke_withFitnessPermission_callsHealthPermissionManager()
|
D | GrantHealthPermissionUseCaseTest.kt | 23 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission 45 useCase.invoke("TEST_APP", FitnessPermission(HEIGHT, WRITE).toString()) in invoke_withFitnessPermission_callsHealthPermissionManager()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/shared/ |
D | HealthPermissionReaderTest.kt | 11 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission 217 private fun String.toHealthPermission(): FitnessPermission { in String() 218 return FitnessPermission.fromPermissionString(this) in String()
|
D | HealthDataCategoryExtensionsTest.kt | 28 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission in <lambda>() 65 val fitnessPermission = FitnessPermission.fromPermissionString(permissionString) in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/access/ |
D | LoadAccessUseCaseTest.kt | 6 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission 72 FitnessPermission(HealthPermissionType.STEPS, PermissionsAccessType.WRITE).toString() in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/datasources/api/ |
D | LoadPotentialPriorityListUseCase.kt | 25 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission in <lambda>() 131 FitnessPermission(healthPermissionType, PermissionsAccessType.WRITE) in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/navigation/ |
D | TrampolineActivityTest.kt | 60 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission 137 FitnessPermission(HealthPermissionType.EXERCISE, PermissionsAccessType.WRITE) in setup() 139 FitnessPermission(HealthPermissionType.DISTANCE, PermissionsAccessType.READ) in setup()
|