Home
last modified time | relevance | path

Searched refs:loadAccessDateUseCase (Results 1 – 9 of 9) sorted by relevance

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/api/
DLoadAccessDateUseCaseTest.kt38 private lateinit var loadAccessDateUseCase: LoadAccessDateUseCase variable in com.android.healthconnect.controller.tests.permissions.api.LoadAccessDateUseCaseTest
43 loadAccessDateUseCase = LoadAccessDateUseCase(healthPermissionManager) in setup()
51 val result = loadAccessDateUseCase.invoke("package.name") in loadAccessDate_callsHealthPermissionManager()
60 val result = loadAccessDateUseCase.invoke("package.name") in loadAccessDate_whenHealthPermissionManagerFails_returnsNull()
66 val result = loadAccessDateUseCase.invoke(null) in loadAccessDate_whenPackageNameNull_returnsNull()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/route/
DExerciseRouteViewModel.kt51 private val loadAccessDateUseCase: LoadAccessDateUseCase, constant in com.android.healthconnect.controller.route.ExerciseRouteViewModel
132 val accessLimit = loadAccessDateUseCase(packageName) in isSessionInaccessible()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/additionalaccess/
DAdditionalAccessViewModelTest.kt79 private val loadAccessDateUseCase: LoadAccessDateUseCase = mock() constant in com.android.healthconnect.controller.tests.permissions.additionalaccess.AdditionalAccessViewModelTest
108 loadAccessDateUseCase) in setup()
110 whenever(loadAccessDateUseCase.invoke(anyString())).thenReturn(NOW) in setup()
150 whenever(loadAccessDateUseCase.invoke(TEST_APP_PACKAGE_NAME)).thenReturn(accessDate) in loadAccessDate_returnsCorrectDate()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/additionalaccess/
DAdditionalAccessViewModel.kt62 private val loadAccessDateUseCase: LoadAccessDateUseCase in <lambda>() constant in com.android.healthconnect.controller.permissions.additionalaccess.AdditionalAccessViewModel
88 fun loadAccessDate(packageName: String) = loadAccessDateUseCase.invoke(packageName) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/app/
DAppPermissionViewModel.kt62 private val loadAccessDateUseCase: LoadAccessDateUseCase, in <lambda>() constant in com.android.healthconnect.controller.permissions.app.AppPermissionViewModel
198 return loadAccessDateUseCase.invoke(packageName) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/
DAppPermissionViewModelTest.kt78 private val loadAccessDateUseCase: LoadAccessDateUseCase = mock() constant in com.android.healthconnect.controller.tests.permissions.connectedapps.AppPermissionViewModelTest
124 loadAccessDateUseCase, in setup()
141 whenever(loadAccessDateUseCase.invoke(TEST_APP_PACKAGE_NAME)).thenReturn(accessDate) in loadsCorrectAccessDate()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/request/
DRequestPermissionViewModelTest.kt96 @BindValue var loadAccessDateUseCase: LoadAccessDateUseCase = mock() variable in com.android.healthconnect.controller.tests.permissions.request.RequestPermissionViewModelTest
115 loadAccessDateUseCase, in setup()
117 whenever(loadAccessDateUseCase.invoke(eq(TEST_APP_PACKAGE_NAME))).thenReturn(NOW) in setup()
DPermissionsActivityTest.kt125 val loadAccessDateUseCase: LoadAccessDateUseCase = mock(LoadAccessDateUseCase::class.java) in <lambda>() constant in com.android.healthconnect.controller.tests.permissions.request.PermissionsActivityTest
143 whenever(loadAccessDateUseCase.invoke(any())).thenReturn(NOW) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/request/
DRequestPermissionViewModel.kt57 private val loadAccessDateUseCase: LoadAccessDateUseCase, in <lambda>() constant in com.android.healthconnect.controller.permissions.request.RequestPermissionViewModel
195 fun loadAccessDate(packageName: String) = loadAccessDateUseCase.invoke(packageName) in <lambda>()