Home
last modified time | relevance | path

Searched refs:then (Results 1 – 25 of 234) sorted by relevance

12345678910

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissiontypes/
DHealthPermissionTypesFragmentTest.kt119 Mockito.`when`(viewModel.permissionTypesData).then { in deletePermissionTypeData_showsDialog()
127 Mockito.`when`(viewModel.priorityList).then { in deletePermissionTypeData_showsDialog()
132 Mockito.`when`(viewModel.appsWithData).then { in deletePermissionTypeData_showsDialog()
136 Mockito.`when`(viewModel.selectedAppFilter).then { MutableLiveData("") } in deletePermissionTypeData_showsDialog()
137 Mockito.`when`(viewModel.editedPriorityList).then { in deletePermissionTypeData_showsDialog()
140 Mockito.`when`(viewModel.categoryLabel).then { MutableLiveData("activity") } in deletePermissionTypeData_showsDialog()
165 Mockito.`when`(viewModel.permissionTypesData).then { in permissionTypesFragment_activityCategory_isDisplayed()
173 Mockito.`when`(viewModel.priorityList).then { in permissionTypesFragment_activityCategory_isDisplayed()
178 Mockito.`when`(viewModel.appsWithData).then { in permissionTypesFragment_activityCategory_isDisplayed()
182 Mockito.`when`(viewModel.selectedAppFilter).then { MutableLiveData("") } in permissionTypesFragment_activityCategory_isDisplayed()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/request/
DMockedPermissionsActivityTest.kt119 whenever(viewModel.grantedFitnessPermissions).then { in <lambda>()
122 whenever(viewModel.allFitnessPermissionsGranted).then { MutableLiveData(true) } in <lambda>()
123 whenever(viewModel.appMetadata).then { in <lambda>()
132 whenever(migrationViewModel.migrationState).then { in <lambda>()
159 whenever(viewModel.healthPermissionsList).then { in <lambda>()
162 whenever(viewModel.fitnessPermissionsList).then { in <lambda>()
165 whenever(viewModel.getPermissionGrants()).then { in <lambda>()
214 whenever(viewModel.healthPermissionsList).then { in <lambda>()
217 whenever(viewModel.additionalPermissionsList).then { in <lambda>()
220 whenever(viewModel.additionalPermissionsInfo).then { in <lambda>()
[all …]
DAdditionalPermissionsFragmentTest.kt77 whenever(viewModel.grantedAdditionalPermissions).then { in setup()
92 Mockito.`when`(viewModel.additionalPermissionsInfo).then { in displaysCombinedAdditionalPermissions()
136 Mockito.`when`(viewModel.additionalPermissionsInfo).then { in displaysBackgroundReadPermission()
166 Mockito.`when`(viewModel.additionalPermissionsInfo).then { in displaysHistoryReadPermission()
195 Mockito.`when`(viewModel.additionalPermissionsInfo).then { in toggleOn_updatesAdditionalPermission()
219 Mockito.`when`(viewModel.additionalPermissionsInfo).then { in toggleOff_updatesAdditionalPermission()
228 Mockito.`when`(viewModel.grantedAdditionalPermissions).then { in toggleOff_updatesAdditionalPermission()
258 whenever(viewModel.healthPermissionsList).then { in allowButton_noAdditionalPermissionsSelected_isDisabled()
261 whenever(viewModel.additionalPermissionsList).then { in allowButton_noAdditionalPermissionsSelected_isDisabled()
264 whenever(viewModel.additionalPermissionsInfo).then { in allowButton_noAdditionalPermissionsSelected_isDisabled()
[all …]
DFitnessPermissionsFragmentTest.kt89 `when`(viewModel.appMetadata).then { in <lambda>()
96 `when`(viewModel.allFitnessPermissionsGranted).then { MutableLiveData(false) } in <lambda>()
97 `when`(viewModel.grantedFitnessPermissions).then { in <lambda>()
111 `when`(viewModel.healthPermissionsList).then { in <lambda>()
156 `when`(viewModel.healthPermissionsList).then { in <lambda>()
181 `when`(viewModel.healthPermissionsList).then { in <lambda>()
208 `when`(viewModel.healthPermissionsList).then { in <lambda>()
235 `when`(viewModel.healthPermissionsList).then { in <lambda>()
265 `when`(viewModel.healthPermissionsList).then { MutableLiveData(permissions) } in <lambda>()
298 `when`(viewModel.healthPermissionsList).then { MutableLiveData(permissions) } in <lambda>()
[all …]
DMedicalPermissionsFragmentTest.kt93 `when`(viewModel.appMetadata).then { in <lambda>()
100 `when`(viewModel.allMedicalPermissionsGranted).then { MutableLiveData(false) } in <lambda>()
101 `when`(viewModel.grantedMedicalPermissions).then { in <lambda>()
115 `when`(viewModel.healthPermissionsList).then { in <lambda>()
157 `when`(viewModel.healthPermissionsList).then { in <lambda>()
182 `when`(viewModel.healthPermissionsList).then { in <lambda>()
206 `when`(viewModel.healthPermissionsList).then { in <lambda>()
227 `when`(viewModel.healthPermissionsList).then { in <lambda>()
248 `when`(viewModel.healthPermissionsList).then { in <lambda>()
278 `when`(viewModel.healthPermissionsList).then { MutableLiveData(permissions) } in <lambda>()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/settings/
DSettingsManageAppPermissionsFragmentTest.kt106 whenever(viewModel.revokeAllPermissionsState).then { in <lambda>()
109 whenever(viewModel.appPermissions).then { MutableLiveData(emptyList<FitnessPermission>()) } in <lambda>()
110 whenever(viewModel.grantedPermissions).then { in <lambda>()
113 whenever(viewModel.allAppPermissionsGranted).then { MediatorLiveData(false) } in <lambda>()
114 whenever(viewModel.atLeastOnePermissionGranted).then { MediatorLiveData(true) } in <lambda>()
119 whenever(viewModel.appInfo).then { in <lambda>()
127 whenever(additionalAccessViewModel.additionalAccessState).then { in <lambda>()
131 whenever(migrationViewModel.getCurrentMigrationUiState()).then { in <lambda>()
137 whenever(migrationViewModel.migrationState).then { in <lambda>()
145 whenever(viewModel.lastReadPermissionDisconnected).then { MutableLiveData(false) } in <lambda>()
[all …]
DSettingsActivityTest.kt80 whenever(viewModel.grantedPermissions).then { in <lambda>()
86 whenever(viewModel.revokeAllPermissionsState).then { in <lambda>()
92 whenever(viewModel.allAppPermissionsGranted).then { MediatorLiveData(false) } in <lambda>()
93 whenever(viewModel.atLeastOnePermissionGranted).then { MediatorLiveData(false) } in <lambda>()
97 whenever(viewModel.appInfo).then { in <lambda>()
108 whenever(viewModel.appPermissions).then { in <lambda>()
111 whenever(viewModel.grantedPermissions).then { MutableLiveData(setOf(writePermission)) } in <lambda>()
112 whenever(viewModel.lastReadPermissionDisconnected).then { MutableLiveData(false) } in <lambda>()
122 whenever(viewModel.isPackageSupported(TEST_APP_PACKAGE_NAME)).then { false } in <lambda>()
123 whenever(viewModel.shouldNavigateToAppPermissionsFragment(TEST_APP_PACKAGE_NAME)).then { in <lambda>()
[all …]
DSettingsManagePermissionFragmentTest.kt86 whenever(viewModel.disconnectAllState).then { MutableLiveData(NotStarted) } in setup()
87 whenever(migrationViewModel.getCurrentMigrationUiState()).then { in setup()
93 whenever(migrationViewModel.migrationState).then { in setup()
114 whenever(viewModel.connectedApps).then { MutableLiveData(listOf<AppMetadata>()) } in test_displaysSections()
127 whenever(viewModel.connectedApps).then { MutableLiveData(connectApp) } in test_allowedApps()
138 whenever(viewModel.connectedApps).then { MutableLiveData(connectApp) } in test_deniedApps()
149 whenever(viewModel.connectedApps).then { MutableLiveData(connectApp) } in test_accessedHealthData_showsRecentAccessSummary()
159 whenever(viewModel.connectedApps).then { MutableLiveData(connectApp) } in test_inactiveApp_doesNotShowInactiveApps()
173 whenever(viewModel.connectedApps).then { MutableLiveData(connectApp) } in test_all()
189 whenever(migrationViewModel.getCurrentMigrationUiState()).then { in whenMigrationInProgress_showsMigrationInProgressDialog()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/
DConnectedAppFragmentTest.kt108 whenever(viewModel.revokeAllPermissionsState).then { MutableLiveData(NotStarted) } in <lambda>()
109 whenever(viewModel.allAppPermissionsGranted).then { MediatorLiveData(false) } in <lambda>()
110 whenever(viewModel.atLeastOnePermissionGranted).then { MediatorLiveData(true) } in <lambda>()
113 whenever(viewModel.grantedPermissions).then { in <lambda>()
120 whenever(viewModel.appPermissions).then { in <lambda>()
123 whenever(viewModel.appInfo).then { in <lambda>()
131 whenever(additionalAccessViewModel.additionalAccessState).then { in <lambda>()
134 whenever(viewModel.lastReadPermissionDisconnected).then { MutableLiveData(false) } in <lambda>()
151 whenever(viewModel.appPermissions).then { in <lambda>()
179 whenever(viewModel.appPermissions).then { MutableLiveData(listOf(permission)) } in <lambda>()
[all …]
DConnectedAppsFragmentTest.kt108 whenever(viewModel.disconnectAllState).then { MutableLiveData(NotStarted) } in setup()
109 whenever(viewModel.alertDialogActive).then { MutableLiveData(false) } in setup()
141 whenever(viewModel.connectedApps).then { MutableLiveData(connectApp) } in test_allowedApps()
153 whenever(viewModel.connectedApps).then { MutableLiveData(connectApp) } in test_deniedApps()
164 whenever(viewModel.connectedApps).then { MutableLiveData(connectApp) } in allowedApps_removeAccessEnabled()
174 whenever(viewModel.connectedApps).then { MutableLiveData(connectApp) } in allowedApps_confirmationDialogDisplayed_dialogDoesNotDisAppearWhenActivityRestarts()
175 whenever(viewModel.alertDialogActive).then { MutableLiveData(true) } in allowedApps_confirmationDialogDisplayed_dialogDoesNotDisAppearWhenActivityRestarts()
193 whenever(viewModel.connectedApps).then { MutableLiveData(connectApp) } in noAllowedApps_removeAccessDisabled()
203 whenever(viewModel.connectedApps).then { MutableLiveData(connectApp) } in showsLoading()
204 whenever(viewModel.disconnectAllState).then { MutableLiveData(Loading) } in showsLoading()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/home/
DHomeFragmentTest.kt138 whenever(migrationViewModel.migrationState).then { in <lambda>()
146 whenever(exportStatusViewModel.storedScheduledExportStatus).then { in <lambda>()
228 whenever(recentAccessViewModel.recentAccessApps).then { in <lambda>()
231 whenever(homeFragmentViewModel.connectedApps).then { in <lambda>()
263 whenever(recentAccessViewModel.recentAccessApps).then { in <lambda>()
266 whenever(homeFragmentViewModel.connectedApps).then { in <lambda>()
306 whenever(recentAccessViewModel.recentAccessApps).then { in <lambda>()
309 whenever(homeFragmentViewModel.connectedApps).then { in <lambda>()
323 whenever(recentAccessViewModel.recentAccessApps).then { in <lambda>()
326 whenever(homeFragmentViewModel.connectedApps).then { in <lambda>()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/backuprestore/
DBackupAndRestoreSettingsFragmentTest.kt86 whenever(importStatusViewModel.storedImportStatus).then { in setup()
94 whenever(exportStatusViewModel.storedScheduledExportStatus).then { in setup()
107 whenever(exportStatusViewModel.storedScheduledExportStatus).then { in backupAndRestoreSettingsFragmentInit_showsFragmentCorrectly()
115 whenever(exportSettingsViewModel.storedExportSettings).then { in backupAndRestoreSettingsFragmentInit_showsFragmentCorrectly()
134 whenever(exportSettingsViewModel.storedExportSettings).then { in backupAndRestoreSettingsFragment_withNoLastSuccessfulDate_doesNotShowLastExportTime()
137 whenever(exportStatusViewModel.storedScheduledExportStatus).then { in backupAndRestoreSettingsFragment_withNoLastSuccessfulDate_doesNotShowLastExportTime()
152 whenever(exportSettingsViewModel.storedExportSettings).then { in backupAndRestoreSettingsFragment_clicksScheduledExportWhenItIsOff_navigatesToExportSetupActivity()
168 whenever(exportSettingsViewModel.storedExportSettings).then { in backupAndRestoreSettingsFragment_clicksScheduledExportWhenItIsOn_navigatesToScheduledExportFragment()
184 whenever(exportSettingsViewModel.storedExportSettings).then { in backupAndRestoreSettingsFragment_whenExportFrequencyIsNever_showsCorrectSummary()
194 whenever(exportSettingsViewModel.storedExportSettings).then { in backupAndRestoreSettingsFragment_whenExportFrequencyIsDaily_showsCorrectSummary()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/
DBluetoothPbapVcardManagerTest.java109 .then( in testGetPhonebookSize_whenTypeIsPhonebook()
117 .then( in testGetPhonebookSize_whenTypeIsPhonebook()
124 .then( in testGetPhonebookSize_whenTypeIsPhonebook()
163 .then( in testGetPhonebookSize_whenTypeIsFavorites()
171 .then( in testGetPhonebookSize_whenTypeIsFavorites()
178 .then( in testGetPhonebookSize_whenTypeIsFavorites()
248 .then( in testLoadCallHistoryList()
255 .then( in testLoadCallHistoryList()
261 .then( in testLoadCallHistoryList()
268 .then( in testLoadCallHistoryList()
[all …]
DBluetoothPbapSimVcardManagerTest.java202 .then( in testMoveToPosition_byAlphabeticalOrder_success()
209 .then( in testMoveToPosition_byAlphabeticalOrder_success()
215 .then( in testMoveToPosition_byAlphabeticalOrder_success()
222 .then( in testMoveToPosition_byAlphabeticalOrder_success()
267 .then( in testGetSIMPhonebookNameList_orderByIndexed()
274 .then( in testGetSIMPhonebookNameList_orderByIndexed()
280 .then( in testGetSIMPhonebookNameList_orderByIndexed()
287 .then( in testGetSIMPhonebookNameList_orderByIndexed()
319 .then( in testGetSIMPhonebookNameList_orderByAlphabet()
326 .then( in testGetSIMPhonebookNameList_orderByAlphabet()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/datasources/
DDataSourcesFragmentTest.kt99 whenever(dataSourcesViewModel.getCurrentSelection()).then { HealthDataCategory.ACTIVITY } in <lambda>()
112 whenever(dataSourcesViewModel.dataSourcesAndAggregationsInfo).then { in <lambda>()
132 whenever(dataSourcesViewModel.updatedAggregationCardsData).then { in <lambda>()
156 whenever(dataSourcesViewModel.dataSourcesAndAggregationsInfo).then { in <lambda>()
164 whenever(dataSourcesViewModel.getEditedPriorityList()).then { listOf(TEST_APP, TEST_APP_2) } in <lambda>()
165 whenever(dataSourcesViewModel.updatedAggregationCardsData).then { in <lambda>()
204 whenever(dataSourcesViewModel.dataSourcesAndAggregationsInfo).then { in <lambda>()
223 whenever(dataSourcesViewModel.updatedAggregationCardsData).then { in <lambda>()
268 whenever(dataSourcesViewModel.dataSourcesAndAggregationsInfo).then { in <lambda>()
287 whenever(dataSourcesViewModel.updatedAggregationCardsData).then { in <lambda>()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/migration/
DMigrationNavigationFragmentTest.kt45 whenever(migrationViewModel.migrationState).then { in whenMigrationFragmentStateLoading_showsLoading()
56 whenever(migrationViewModel.migrationState).then { in whenMigrationFragmentStateError_showsError()
68 whenever(migrationViewModel.migrationState).then { in whenMigrationStateAllowedNotStarted_navigatesToMigrationPausedFragment()
85 whenever(migrationViewModel.migrationState).then { in whenMigrationStateAllowedPaused_navigatesToMigrationPausedFragment()
102 whenever(migrationViewModel.migrationState).then { in whenMigrationStateAppUpdateRequired_navigatesToAppUpdateRequiredFragment()
121 whenever(migrationViewModel.migrationState).then { in whenMigrationStateModuleUpdateRequired_navigatesToModuleUpdateRequiredFragment()
140 whenever(migrationViewModel.migrationState).then { in whenMigrationStateInProgress_navigatesToMigrationInProgressFragment()
158 whenever(migrationViewModel.migrationState).then { in whenMigrationStateCompleteIdle_navigatesToHomeFragment()
175 whenever(migrationViewModel.migrationState).then { in whenMigrationStateComplete_navigatesToHomeFragment()
192 whenever(migrationViewModel.migrationState).then { in whenMigrationStateIdle_navigatesToHomeFragment()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/deletion/
DDeletionFragmentTest.kt64 Mockito.`when`(viewModel.isInactiveApp).then { false } in setup()
72 Mockito.`when`(viewModel.deletionParameters).then { in deleteAllData_timeRangeDialog_showsCorrectText()
103 Mockito.`when`(viewModel.deletionParameters).then { in deleteCategoryData_timeRangeDialog_showsCorrectText()
135 Mockito.`when`(viewModel.deletionParameters).then { in deletePermissionTypeData_timeRangeDialog_showsCorrectText()
168 Mockito.`when`(viewModel.deletionParameters).then { in deleteAppData_timeRangeDialog_showsCorrectText()
198 Mockito.`when`(viewModel.deletionParameters).then { in deleteAllData_confirmationDialogForOneDay_showsCorrectText()
231 Mockito.`when`(viewModel.deletionParameters).then { in deleteAllData_confirmationDialogForOneWeek_showsCorrectText()
264 Mockito.`when`(viewModel.deletionParameters).then { in deleteAllData_confirmationDialogForOneMonth_showsCorrectText()
297 Mockito.`when`(viewModel.deletionParameters).then { in deleteAllData_confirmationDialogForAllTime_showsCorrectText()
331 Mockito.`when`(viewModel.deletionParameters).then { in deleteCategoryData_confirmationDialogForOneDay_showsCorrectText()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/
DMainActivityTest.kt62 whenever(viewModel.getCurrentMigrationUiState()).then { in setup()
68 whenever(viewModel.migrationState).then { in setup()
76 whenever(exportStatusViewModel.storedScheduledExportStatus).then { in setup()
99 whenever(viewModel.getCurrentMigrationUiState()).then { in <lambda>()
105 whenever(viewModel.migrationState).then { in <lambda>()
126 whenever(viewModel.getCurrentMigrationUiState()).then { in <lambda>()
132 whenever(viewModel.migrationState).then { in <lambda>()
154 whenever(viewModel.getCurrentMigrationUiState()).then { in <lambda>()
160 whenever(viewModel.migrationState).then { in <lambda>()
184 whenever(viewModel.getCurrentMigrationUiState()).then { in <lambda>()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/navigation/
DTrampolineActivityTest.kt116 whenever(migrationViewModel.getCurrentMigrationUiState()).then { in setup()
122 whenever(migrationViewModel.migrationState).then { in setup()
130 whenever(exportStatusViewModel.storedScheduledExportStatus).then { in setup()
140 whenever(appPermissionViewModel.appInfo).then { MutableLiveData(TEST_APP) } in setup()
144 .then { true } in setup()
145 whenever(appPermissionViewModel.appPermissions).then { in setup()
148 whenever(appPermissionViewModel.grantedPermissions).then { in setup()
151 whenever(appPermissionViewModel.revokeAllPermissionsState).then { in setup()
154 whenever(appPermissionViewModel.allAppPermissionsGranted).then { MediatorLiveData(false) } in setup()
155 whenever(appPermissionViewModel.atLeastOnePermissionGranted).then { MediatorLiveData(true) } in setup()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/autodelete/
DAutoDeleteFragmentTest.kt71 Mockito.`when`(viewModel.storedAutoDeleteRange).then { in autoDeleteFragment_isDisplayed()
104 Mockito.`when`(viewModel.storedAutoDeleteRange).then { in autoDelete_checkDefaultRange_defaultRange()
109 Mockito.`when`(viewModel.newAutoDeleteRange).then { in autoDelete_checkDefaultRange_defaultRange()
112 Mockito.`when`(viewModel.oldAutoDeleteRange).then { in autoDelete_checkDefaultRange_defaultRange()
122 Mockito.`when`(viewModel.storedAutoDeleteRange).then { in autoDelete_setRangeTo3Months_saveChanges()
127 Mockito.`when`(viewModel.newAutoDeleteRange).then { in autoDelete_setRangeTo3Months_saveChanges()
130 Mockito.`when`(viewModel.oldAutoDeleteRange).then { in autoDelete_setRangeTo3Months_saveChanges()
181 Mockito.`when`(viewModel.storedAutoDeleteRange).then { in autoDelete_setRangeTo18Months_confirmationDialog_saveChanges()
186 Mockito.`when`(viewModel.newAutoDeleteRange).then { in autoDelete_setRangeTo18Months_confirmationDialog_saveChanges()
189 Mockito.`when`(viewModel.oldAutoDeleteRange).then { in autoDelete_setRangeTo18Months_confirmationDialog_saveChanges()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/categories/
DHealthDataCategoriesFragmentTest.kt97 whenever(autoDeleteViewModel.storedAutoDeleteRange).then { in setup()
114 whenever(viewModel.categoriesData).then { in seeAllCategories_navigatesToSeeAllCategories()
133 whenever(viewModel.categoriesData).then { in activityButton_navigatesToActivityDataType()
153 whenever(viewModel.categoriesData).then { in oldIA_autoDelete_navigatesToAutoDelete()
171 whenever(viewModel.categoriesData).then { in categoriesFragment_isDisplayed()
184 whenever(viewModel.categoriesData).then { in categoriesFragment_whenNewAppPriorityEnabled_autoDeleteNotDisplayed()
197 whenever(viewModel.categoriesData).then { in categoriesFragment_emptyCategories_noDataViewIsDisplayed_deleteIconIsDisabled()
209 whenever(viewModel.categoriesData).then { in categoriesFragment_withCategories_categoryInformationIsDisplayed()
226 whenever(viewModel.categoriesData).then { in seeAllCategoriesPreference_isDisplayed()
247 whenever(viewModel.categoriesData).then { in seeAllCategoriesPreference_withNoData_isDisplayed()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/additionalaccess/
DLoadExerciseRoutePermissionUseCaseTest.kt70 whenever(loadDeclaredHealthPermissionUseCase.invoke(safeEq(TEST_APP_PACKAGE_NAME))).then { in setup()
73 whenever(getHealthPermissionsFlagsUseCase.invoke(any(), any())).then { in setup()
96 whenever(loadDeclaredHealthPermissionUseCase.invoke(safeEq(TEST_APP_PACKAGE_NAME))).then { in <lambda>()
112 whenever(getHealthPermissionsFlagsUseCase.invoke(any(), any())).then { flags } in <lambda>()
123 whenever(getHealthPermissionsFlagsUseCase.invoke(any(), any())).then { in <lambda>()
137 whenever(getHealthPermissionsFlagsUseCase.invoke(any(), any())).then { in <lambda>()
151 whenever(loadDeclaredHealthPermissionUseCase.invoke(TEST_APP_PACKAGE_NAME)).then { in <lambda>()
166 whenever(loadDeclaredHealthPermissionUseCase.invoke(TEST_APP_PACKAGE_NAME)).then { in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/route/
DRouteRequestActivityTest.kt141 whenever(migrationViewModel.migrationState).then { in <lambda>()
171 whenever(viewModel.exerciseSession).then { in <lambda>()
190 whenever(viewModel.exerciseSession).then { in <lambda>()
205 whenever(viewModel.exerciseSession).then { in <lambda>()
230 whenever(viewModel.exerciseSession).then { in <lambda>()
260 whenever(viewModel.exerciseSession).then { in <lambda>()
302 whenever(viewModel.exerciseSession).then { in <lambda>()
352 whenever(viewModel.exerciseSession).then { in <lambda>()
388 whenever(viewModel.exerciseSession).then { in <lambda>()
409 whenever(viewModel.exerciseSession).then { in <lambda>()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/
DDataManagementActivityTest.kt81 whenever(autoDeleteViewModel.storedAutoDeleteRange).then { in <lambda>()
86 whenever(categoryViewModel.categoriesData).then { in <lambda>()
95 whenever(migrationViewModel.getCurrentMigrationUiState()).then { in <lambda>()
101 whenever(migrationViewModel.migrationState).then { in <lambda>()
120 whenever(migrationViewModel.getCurrentMigrationUiState()).then { in <lambda>()
126 whenever(migrationViewModel.migrationState).then { in <lambda>()
145 whenever(migrationViewModel.getCurrentMigrationUiState()).then { in <lambda>()
151 whenever(migrationViewModel.migrationState).then { in <lambda>()
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DWorkspaceItemProcessorTest.kt130 whenever(iconCache.getShortcutIcon(any(), any(), any())).then {} in setup()
218 fun `When user is null then mark item deleted`() { in createWorkspaceItemProcessorUnderTest()
232 fun `When app has null intent then mark deleted`() { in When app has null intent then mark deleted()
245 fun `When app has null target package then mark deleted`() { in When app has null target package then mark deleted()
263 fun `When app has empty String target package then mark deleted`() { in When app has empty String target package then mark deleted()
280 fun `When valid app then mark restored`() { in When valid app then mark restored()
297 fun `When fallback Activity found for app then mark restored`() { in When fallback Activity found for app then mark restored()
325 fun `When app with disabled activity and no fallback found then mark deleted`() { in When app with disabled activity and no fallback found then mark deleted()
359 fun `When valid Pinned Deep Shortcut then mark restored`() { in When valid Pinned Deep Shortcut then mark restored()
394 fun `When Pinned Deep Shortcut not found then mark deleted`() { in When Pinned Deep Shortcut not found then mark deleted()
[all …]

12345678910