Home
last modified time | relevance | path

Searched refs:healthPermissionReader (Results 1 – 25 of 27) sorted by relevance

12

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/
DLoadHealthPermissionAppsTest.kt52 private val healthPermissionReader: HealthPermissionReader = constant in com.android.healthconnect.controller.tests.permissions.connectedapps.LoadHealthPermissionAppsTest
67 healthPermissionReader, in setup()
85 whenever(healthPermissionReader.getAppsWithHealthPermissions()) in <lambda>()
98 whenever(healthPermissionReader.getAppsWithOldHealthPermissions()).thenReturn(listOf()) in <lambda>()
115 whenever(healthPermissionReader.getAppsWithHealthPermissions()) in <lambda>()
129 whenever(healthPermissionReader.getAppsWithOldHealthPermissions()).thenReturn(listOf()) in <lambda>()
145 whenever(healthPermissionReader.getAppsWithHealthPermissions()) in appsWithOldHealthPermissions_withoutNewPermissions_correctlyCategorisedAsNeedsUpdate()
159 whenever(healthPermissionReader.getAppsWithOldHealthPermissions()) in appsWithOldHealthPermissions_withoutNewPermissions_correctlyCategorisedAsNeedsUpdate()
175 whenever(healthPermissionReader.getAppsWithHealthPermissions()) in <lambda>()
190 whenever(healthPermissionReader.getAppsWithOldHealthPermissions()) in <lambda>()
DAppPermissionViewModelTest.kt76 private val healthPermissionReader: HealthPermissionReader = mock() constant in com.android.healthconnect.controller.tests.permissions.connectedapps.AppPermissionViewModelTest
115 getGrantedHealthPermissionsUseCase, healthPermissionReader, Dispatchers.Main) in setup()
127 healthPermissionReader, in setup()
148 whenever(healthPermissionReader.isRationaleIntentDeclared(any())).thenReturn(true) in <lambda>()
149 whenever(healthPermissionReader.getValidHealthPermissions(any())) in <lambda>()
183 whenever(healthPermissionReader.isRationaleIntentDeclared(any())).thenReturn(false) in <lambda>()
184 whenever(healthPermissionReader.getValidHealthPermissions(any())) in <lambda>()
280 whenever(healthPermissionReader.isRationaleIntentDeclared(any())).thenReturn(true) in <lambda>()
281 whenever(healthPermissionReader.getValidHealthPermissions(any())) in <lambda>()
345 whenever(healthPermissionReader.isRationaleIntentDeclared(any())).thenReturn(true) in <lambda>()
[all …]
DLoadAppPermissionsStatusUseCaseTest.kt43 private val healthPermissionReader: HealthPermissionReader = mock() constant in com.android.healthconnect.controller.tests.permissions.connectedapps.LoadAppPermissionsStatusUseCaseTest
50 loadGrantedHealthPermissionsUseCase, healthPermissionReader, Dispatchers.Main) in setup()
62 whenever(healthPermissionReader.getValidHealthPermissions(TEST_APP_PACKAGE_NAME)) in <lambda>()
83 whenever(healthPermissionReader.getValidHealthPermissions(TEST_APP_PACKAGE_NAME)) in <lambda>()
DConnectedAppFragmentTest.kt95 @BindValue val healthPermissionReader: HealthPermissionReader = mock() in <lambda>() constant in com.android.healthconnect.controller.tests.permissions.connectedapps.ConnectedAppFragmentTest
412 whenever(healthPermissionReader.isRationaleIntentDeclared(TEST_APP_PACKAGE_NAME)) in <lambda>()
414 whenever(healthPermissionReader.getApplicationRationaleIntent(TEST_APP_PACKAGE_NAME)) in <lambda>()
438 whenever(healthPermissionReader.isRationaleIntentDeclared(TEST_APP_PACKAGE_NAME)) in <lambda>()
440 whenever(healthPermissionReader.getApplicationRationaleIntent(TEST_APP_PACKAGE_NAME)) in <lambda>()
472 whenever(healthPermissionReader.isRationaleIntentDeclared(TEST_APP_PACKAGE_NAME)) in <lambda>()
474 whenever(healthPermissionReader.getApplicationRationaleIntent(TEST_APP_PACKAGE_NAME)) in <lambda>()
502 whenever(healthPermissionReader.isRationaleIntentDeclared(TEST_APP_PACKAGE_NAME)) in <lambda>()
504 whenever(healthPermissionReader.getApplicationRationaleIntent(TEST_APP_PACKAGE_NAME)) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/data/
DHealthPermissionTest.kt42 @Inject lateinit var healthPermissionReader: HealthPermissionReader in <lambda>() variable in com.android.healthconnect.controller.tests.permissions.data.HealthPermissionTest
64 healthPermissionReader.getHealthPermissions().filterNot { perm -> in <lambda>()
65 healthPermissionReader.isAdditionalPermission(perm) || in <lambda>()
66 healthPermissionReader.isMedicalPermission(perm) in <lambda>()
77 healthPermissionReader.getHealthPermissions().filter { perm -> in <lambda>()
78 healthPermissionReader.isMedicalPermission(perm) in <lambda>()
DFitnessPermissionStringsTest.kt33 @Inject lateinit var healthPermissionReader: HealthPermissionReader in <lambda>() variable in com.android.healthconnect.controller.tests.permissions.data.FitnessPermissionStringsTest
50 healthPermissionReader.getHealthPermissions().filterNot { perm -> in <lambda>()
51 healthPermissionReader.isAdditionalPermission(perm) || in <lambda>()
52 healthPermissionReader.isMedicalPermission(perm) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/additionalaccess/
DGetAdditionalPermissionUseCaseTest.kt45 @BindValue val healthPermissionReader = Mockito.mock(HealthPermissionReader::class.java) constant in com.android.healthconnect.controller.tests.permissions.additionalaccess.GetAdditionalPermissionUseCaseTest
50 whenever(healthPermissionReader.getAdditionalPermissions(TEST_APP_PACKAGE_NAME)).then { in setup()
59 verify(healthPermissionReader).getAdditionalPermissions(safeEq(TEST_APP_PACKAGE_NAME)) in execute_callsGetHealthPermissions()
64 whenever(healthPermissionReader.getAdditionalPermissions(TEST_APP_PACKAGE_NAME)).then { in execute_returnsAdditionalPermissions()
DLoadDeclaredHealthPermissionUseCaseTest.kt43 @BindValue val healthPermissionReader = mock(HealthPermissionReader::class.java) constant in com.android.healthconnect.controller.tests.permissions.additionalaccess.LoadDeclaredHealthPermissionUseCaseTest
48 whenever(healthPermissionReader.getDeclaredHealthPermissions(TEST_APP_PACKAGE_NAME)).then { in setup()
57 verify(healthPermissionReader).getDeclaredHealthPermissions(safeEq(TEST_APP_PACKAGE_NAME)) in execute_callsGetHealthPermissions()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/shared/
DHealthDataCategoryExtensionsTest.kt50 @Inject lateinit var healthPermissionReader: HealthPermissionReader in <lambda>() variable in com.android.healthconnect.controller.tests.shared.HealthDataCategoryExtensionsTest
60 healthPermissionReader.getHealthPermissions().filterNot { perm -> in <lambda>()
61 healthPermissionReader.isAdditionalPermission(perm) || in <lambda>()
62 healthPermissionReader.isMedicalPermission(perm) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/connectedapps/
DLoadHealthPermissionApps.kt35 private val healthPermissionReader: HealthPermissionReader, in <lambda>() constant in com.android.healthconnect.controller.permissions.connectedapps.LoadHealthPermissionApps
46 val appsWithHealthPermissions = healthPermissionReader.getAppsWithHealthPermissions() in <lambda>()
51 healthPermissionReader.getAppsWithOldHealthPermissions() in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/service/
DUseCaseModule.kt101 healthPermissionReader: HealthPermissionReader, in providesLoadHealthPermissionAppsUseCase()
109 healthPermissionReader, in providesLoadHealthPermissionAppsUseCase()
206 healthPermissionReader: HealthPermissionReader, in providesLoadPotentialPriorityListUseCase()
214 healthPermissionReader, in providesLoadPotentialPriorityListUseCase()
257 healthPermissionReader: HealthPermissionReader, in providesLoadAccessUseCase()
264 healthPermissionReader, in providesLoadAccessUseCase()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/additionalaccess/
DGetAdditionalPermissionUseCase.kt28 constructor(private val healthPermissionReader: HealthPermissionReader) { constant in com.android.healthconnect.controller.permissions.additionalaccess.GetAdditionalPermissionUseCase
30 return healthPermissionReader.getAdditionalPermissions(packageName) in invoke()
DLoadDeclaredHealthPermissionUseCase.kt28 constructor(private val healthPermissionReader: HealthPermissionReader) { constant in com.android.healthconnect.controller.permissions.additionalaccess.LoadDeclaredHealthPermissionUseCase
30 return healthPermissionReader.getDeclaredHealthPermissions(packageName) in invoke()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/request/
DRequestPermissionViewModel.kt58 private val healthPermissionReader: HealthPermissionReader in <lambda>() constant in com.android.healthconnect.controller.permissions.request.RequestPermissionViewModel
341 val declaredPermissions = healthPermissionReader.getDeclaredHealthPermissions(packageName) in <lambda>()
346 .filterNot { permission -> healthPermissionReader.shouldHidePermission(permission) } in <lambda>()
367 healthPermissionReader.isFitnessPermission(permission.toString()) in <lambda>()
374 healthPermissionReader.isMedicalPermission(permission.toString()) in <lambda>()
381 healthPermissionReader.isAdditionalPermission(permission.toString()) in <lambda>()
DMedicalPermissionsFragment.kt57 @Inject lateinit var healthPermissionReader: HealthPermissionReader in <lambda>() variable in com.android.healthconnect.controller.permissions.request.MedicalPermissionsFragment
118 healthPermissionReader.getApplicationRationaleIntent(app.packageName) in <lambda>()
DFitnessPermissionsFragment.kt57 @Inject lateinit var healthPermissionReader: HealthPermissionReader in <lambda>() variable in com.android.healthconnect.controller.permissions.request.FitnessPermissionsFragment
117 healthPermissionReader.getApplicationRationaleIntent(app.packageName) in <lambda>()
DPermissionsActivity.kt64 @Inject lateinit var healthPermissionReader: HealthPermissionReader in <lambda>() variable in com.android.healthconnect.controller.permissions.request.PermissionsActivity
111 healthPermissionReader.isRationaleIntentDeclared(getPackageNameExtra()) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/app/
DLoadAppPermissionsStatusUseCase.kt34 private val healthPermissionReader: HealthPermissionReader, in <lambda>() constant in com.android.healthconnect.controller.permissions.app.LoadAppPermissionsStatusUseCase
39 val permissions = healthPermissionReader.getValidHealthPermissions(packageName) in <lambda>()
DSettingsManageAppPermissionsFragment.kt91 @Inject lateinit var healthPermissionReader: HealthPermissionReader in <lambda>() variable in com.android.healthconnect.controller.permissions.app.SettingsManageAppPermissionsFragment
344 if (healthPermissionReader.isRationaleIntentDeclared(packageName)) { in <lambda>()
348 healthPermissionReader.getApplicationRationaleIntent(packageName) in <lambda>()
DConnectedAppFragment.kt105 @Inject lateinit var healthPermissionReader: HealthPermissionReader in <lambda>() variable in com.android.healthconnect.controller.permissions.app.ConnectedAppFragment
388 if (healthPermissionReader.isRationaleIntentDeclared(packageName)) { in <lambda>()
394 healthPermissionReader.getApplicationRationaleIntent(packageName) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/datasources/api/
DLoadPotentialPriorityListUseCaseTest.kt72 private val healthPermissionReader: HealthPermissionReader = in <lambda>() constant in com.android.healthconnect.controller.tests.datasources.api.LoadPotentialPriorityListUseCaseTest
87 healthPermissionReader, in <lambda>()
121 whenever(healthPermissionReader.getAppsWithFitnessPermissions()) in <lambda>()
153 whenever(healthPermissionReader.getAppsWithFitnessPermissions()) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/access/
DLoadAccessUseCase.kt38 private val healthPermissionReader: HealthPermissionReader, in <lambda>() constant in com.android.healthconnect.controller.data.access.LoadAccessUseCase
49 healthPermissionReader.getAppsWithFitnessPermissions() in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/access/
DLoadAccessUseCaseTest.kt44 @Inject lateinit var healthPermissionReader: HealthPermissionReader variable in com.android.healthconnect.controller.tests.data.access.LoadAccessUseCaseTest
54 healthPermissionReader, in setup()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/datasources/api/
DLoadPotentialPriorityListUseCase.kt47 private val healthPermissionReader: HealthPermissionReader, in <lambda>() constant in com.android.healthconnect.controller.datasources.api.LoadPotentialPriorityListUseCase
128 healthPermissionReader.getAppsWithFitnessPermissions() in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/shared/
DSettingsActivity.kt40 @Inject lateinit var healthPermissionReader: HealthPermissionReader variable in com.android.healthconnect.controller.permissions.shared.SettingsActivity

12