Home
last modified time | relevance | path

Searched refs:FitnessPermission (Results 1 – 25 of 31) sorted by relevance

12

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/
DAppPermissionViewModelTest.kt30 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 …]
DConnectedAppFragmentTest.kt46 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 …]
DLoadAppPermissionsStatusUseCaseTest.kt20 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/
DAppPermissionViewModel.kt35 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 …]
DSettingsManageAppPermissionsFragment.kt54 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>()
DConnectedAppFragment.kt55 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/
DSettingsManageAppPermissionsFragmentTest.kt50 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 …]
DSettingsActivityTest.kt34 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/
DHealthPermission.kt42 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/
DRequestPermissionViewModel.kt36 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 …]
DFitnessPermissionsFragment.kt128 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/
DLoadPotentialPriorityListUseCaseTest.kt31 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/
DHealthPermissionTest.kt21 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>()
DFitnessPermissionStringsTest.kt17 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/
DLoadAccessUseCase.kt19 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/
DRequestPermissionViewModelTest.kt42 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>()
DFitnessPermissionsFragmentTest.kt41 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>()
DMedicalPermissionsFragmentTest.kt40 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/
DRevokeHealthPermissionUseCaseTest.kt23 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission
47 FitnessPermission(HealthPermissionType.HEIGHT, PermissionsAccessType.WRITE).toString()) in invoke_withFitnessPermission_callsHealthPermissionManager()
DGrantHealthPermissionUseCaseTest.kt23 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/
DHealthPermissionReaderTest.kt11 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission
217 private fun String.toHealthPermission(): FitnessPermission { in String()
218 return FitnessPermission.fromPermissionString(this) in String()
DHealthDataCategoryExtensionsTest.kt28 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/
DLoadAccessUseCaseTest.kt6 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/
DLoadPotentialPriorityListUseCase.kt25 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/
DTrampolineActivityTest.kt60 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()

12