/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/ |
D | ConnectedAppsViewModelTest.kt | 22 import com.android.healthconnect.controller.shared.app.ConnectedAppMetadata 94 ConnectedAppMetadata(TEST_APP, status = ConnectedAppStatus.ALLOWED), in <lambda>() 95 ConnectedAppMetadata(TEST_APP_2, status = ConnectedAppStatus.DENIED), in <lambda>() 96 ConnectedAppMetadata(OLD_TEST_APP, status = ConnectedAppStatus.NEEDS_UPDATE))) in <lambda>() 97 val testObserver = TestObserver<List<ConnectedAppMetadata>>() in <lambda>() 106 ConnectedAppMetadata(TEST_APP, status = ConnectedAppStatus.ALLOWED), in <lambda>() 107 ConnectedAppMetadata(TEST_APP_2, status = ConnectedAppStatus.DENIED), in <lambda>() 108 ConnectedAppMetadata(OLD_TEST_APP, status = ConnectedAppStatus.NEEDS_UPDATE))) in <lambda>() 115 ConnectedAppMetadata(TEST_APP, status = ConnectedAppStatus.ALLOWED), in <lambda>() 116 ConnectedAppMetadata(TEST_APP_2, status = ConnectedAppStatus.DENIED), in <lambda>() [all …]
|
D | ConnectedAppsFragmentTest.kt | 45 import com.android.healthconnect.controller.shared.app.ConnectedAppMetadata 140 val connectApp = listOf(ConnectedAppMetadata(TEST_APP, status = ALLOWED)) in test_allowedApps() 152 val connectApp = listOf(ConnectedAppMetadata(TEST_APP, status = DENIED)) in test_deniedApps() 163 val connectApp = listOf(ConnectedAppMetadata(TEST_APP, status = ALLOWED)) in allowedApps_removeAccessEnabled() 173 val connectApp = listOf(ConnectedAppMetadata(TEST_APP, status = ALLOWED)) in allowedApps_confirmationDialogDisplayed_dialogDoesNotDisAppearWhenActivityRestarts() 192 val connectApp = listOf(ConnectedAppMetadata(TEST_APP, status = DENIED)) in noAllowedApps_removeAccessDisabled() 202 val connectApp = listOf(ConnectedAppMetadata(TEST_APP, status = DENIED)) in showsLoading() 213 val connectApp = listOf(ConnectedAppMetadata(TEST_APP, status = DENIED)) in dismissLoading() 223 val connectApp = listOf(ConnectedAppMetadata(TEST_APP, status = INACTIVE)) in inactiveApp_showsInactiveApps() 236 val connectApp = listOf(ConnectedAppMetadata(TEST_APP, status = INACTIVE)) in whenClickOnInactiveApp_showsDeleteDataDialog() [all …]
|
D | LoadHealthPermissionAppsTest.kt | 23 import com.android.healthconnect.controller.shared.app.ConnectedAppMetadata 106 ConnectedAppMetadata( in <lambda>() 108 ConnectedAppMetadata( in <lambda>() 135 ConnectedAppMetadata( in <lambda>() 137 ConnectedAppMetadata( in <lambda>() 166 ConnectedAppMetadata( in appsWithOldHealthPermissions_withoutNewPermissions_correctlyCategorisedAsNeedsUpdate() 168 ConnectedAppMetadata( in appsWithOldHealthPermissions_withoutNewPermissions_correctlyCategorisedAsNeedsUpdate() 197 ConnectedAppMetadata( in <lambda>() 199 ConnectedAppMetadata( in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/connectedapps/ |
D | LoadHealthPermissionApps.kt | 23 import com.android.healthconnect.controller.shared.app.ConnectedAppMetadata in <lambda>() 44 override suspend operator fun invoke(): List<ConnectedAppMetadata> = in <lambda>() 48 val connectedApps = mutableListOf<ConnectedAppMetadata>() in <lambda>() 63 ConnectedAppMetadata(metadata, isConnected, recentAccess[metadata.packageName]) in <lambda>() 69 .map { ConnectedAppMetadata(it, ConnectedAppStatus.INACTIVE) } in <lambda>() 75 ConnectedAppMetadata( in <lambda>() 89 suspend fun invoke(): List<ConnectedAppMetadata>
|
D | ConnectedAppsViewModel.kt | 26 import com.android.healthconnect.controller.shared.app.ConnectedAppMetadata in <lambda>() 47 private val _connectedApps = MutableLiveData<List<ConnectedAppMetadata>>() in <lambda>() 48 val connectedApps: LiveData<List<ConnectedAppMetadata>> in <lambda>() 81 fun disconnectAllApps(apps: List<ConnectedAppMetadata>): Boolean { in <lambda>()
|
D | ConnectedAppsFragment.kt | 46 import com.android.healthconnect.controller.shared.app.ConnectedAppMetadata in <lambda>() 139 private fun createRemoveAllAppsAccessDialog(apps: List<ConnectedAppMetadata>) { in <lambda>() 219 val activeApps: MutableList<ConnectedAppMetadata> = allowedApps.toMutableList() in <lambda>() 255 private fun updateInactiveApps(appsList: List<ConnectedAppMetadata>) { in <lambda>() 279 private fun updateNeedUpdateApps(appsList: List<ConnectedAppMetadata>) { in <lambda>() 307 private fun updateAllowedApps(appsList: List<ConnectedAppMetadata>) { in <lambda>() 318 private fun updateDeniedApps(appsList: List<ConnectedAppMetadata>) { in <lambda>() 329 private fun navigateToAppInfoScreen(app: ConnectedAppMetadata) { in <lambda>() 346 app: ConnectedAppMetadata, in <lambda>() 427 private fun getAppUpdateNeededBanner(appsList: List<ConnectedAppMetadata>): BannerPreference { in <lambda>()
|
D | SettingsManagePermissionFragment.kt | 54 import com.android.healthconnect.controller.shared.app.ConnectedAppMetadata in <lambda>() 148 private fun updateAllowedApps(appsList: List<ConnectedAppMetadata>) { in <lambda>() 157 private fun updateDeniedApps(appsList: List<ConnectedAppMetadata>) { in <lambda>() 174 private fun getAppPreference(app: ConnectedAppMetadata): AppPreference { in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/home/ |
D | HomeFragmentTest.kt | 53 import com.android.healthconnect.controller.shared.app.ConnectedAppMetadata in <lambda>() 232 MutableLiveData(listOf<ConnectedAppMetadata>()) in <lambda>() 267 MutableLiveData(listOf<ConnectedAppMetadata>()) in <lambda>() 310 MutableLiveData(listOf<ConnectedAppMetadata>()) in <lambda>() 329 ConnectedAppMetadata(TEST_APP, ConnectedAppStatus.ALLOWED), in <lambda>() 330 ConnectedAppMetadata(TEST_APP_2, ConnectedAppStatus.ALLOWED))) in <lambda>() 354 MutableLiveData(listOf(ConnectedAppMetadata(TEST_APP, ConnectedAppStatus.ALLOWED))) in <lambda>() 377 ConnectedAppMetadata(TEST_APP, ConnectedAppStatus.ALLOWED), in <lambda>() 378 ConnectedAppMetadata(TEST_APP_2, ConnectedAppStatus.DENIED))) in <lambda>() 402 ConnectedAppMetadata(TEST_APP, ConnectedAppStatus.ALLOWED), in <lambda>() [all …]
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/searchapps/ |
D | SearchAppsFragmentTest.kt | 13 import com.android.healthconnect.controller.shared.app.ConnectedAppMetadata 67 ConnectedAppMetadata(TEST_APP, status = ConnectedAppStatus.ALLOWED), in searchAppsFragment_isDisplayedCorrectly() 68 ConnectedAppMetadata(TEST_APP_2, status = ConnectedAppStatus.DENIED), in searchAppsFragment_isDisplayedCorrectly() 69 ConnectedAppMetadata(TEST_APP_3, status = ConnectedAppStatus.INACTIVE))) in searchAppsFragment_isDisplayedCorrectly() 94 ConnectedAppMetadata(TEST_APP, status = ConnectedAppStatus.DENIED), in noAppsAllowed_doesNotShowAllowedAccessSection() 95 ConnectedAppMetadata(TEST_APP_2, status = ConnectedAppStatus.DENIED), in noAppsAllowed_doesNotShowAllowedAccessSection() 96 ConnectedAppMetadata(TEST_APP_3, status = ConnectedAppStatus.INACTIVE))) in noAppsAllowed_doesNotShowAllowedAccessSection() 115 ConnectedAppMetadata(TEST_APP, status = ConnectedAppStatus.ALLOWED), in noAppsDenied_doesNotShowAllowedAccessSection() 116 ConnectedAppMetadata(TEST_APP_2, status = ConnectedAppStatus.ALLOWED), in noAppsDenied_doesNotShowAllowedAccessSection() 117 ConnectedAppMetadata(TEST_APP_3, status = ConnectedAppStatus.ALLOWED))) in noAppsDenied_doesNotShowAllowedAccessSection() [all …]
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/settings/ |
D | SettingsManagePermissionFragmentTest.kt | 39 import com.android.healthconnect.controller.shared.app.ConnectedAppMetadata 126 val connectApp = listOf(ConnectedAppMetadata(TEST_APP, status = ALLOWED)) in test_allowedApps() 137 val connectApp = listOf(ConnectedAppMetadata(TEST_APP, status = DENIED)) in test_deniedApps() 148 val connectApp = listOf(ConnectedAppMetadata(TEST_APP, status = ALLOWED, NOW)) in test_accessedHealthData_showsRecentAccessSummary() 158 val connectApp = listOf(ConnectedAppMetadata(TEST_APP, status = INACTIVE)) in test_inactiveApp_doesNotShowInactiveApps() 171 ConnectedAppMetadata(TEST_APP, status = DENIED), in test_all() 172 ConnectedAppMetadata(TEST_APP_2, status = ALLOWED)) in test_all() 205 ConnectedAppMetadata(TEST_APP, status = DENIED), in whenMigrationInProgress_showsMigrationInProgressDialog() 206 ConnectedAppMetadata(TEST_APP_2, status = ALLOWED)) in whenMigrationInProgress_showsMigrationInProgressDialog() 249 ConnectedAppMetadata(TEST_APP, status = DENIED), in whenRestoreInProgress_showsRestoreInProgressDialog() [all …]
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/connectedapps/searchapps/ |
D | SearchHealthPermissionApps.kt | 19 import com.android.healthconnect.controller.shared.app.ConnectedAppMetadata in <lambda>() 33 list: List<ConnectedAppMetadata>, in <lambda>() 35 ): List<ConnectedAppMetadata> = in <lambda>()
|
D | SearchAppsFragment.kt | 40 import com.android.healthconnect.controller.shared.app.ConnectedAppMetadata in <lambda>() 172 private fun updateInactiveApps(appsList: List<ConnectedAppMetadata>) { in <lambda>() 182 private fun updateAllowedApps(appsList: List<ConnectedAppMetadata>) { in <lambda>() 195 private fun updateDeniedApps(appsList: List<ConnectedAppMetadata>) { in <lambda>() 208 private fun navigateToAppInfoScreen(app: ConnectedAppMetadata) { in <lambda>() 218 app: ConnectedAppMetadata, in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/home/ |
D | HomeFragmentViewModel.kt | 24 import com.android.healthconnect.controller.shared.app.ConnectedAppMetadata 35 private val _connectedApps = MutableLiveData<List<ConnectedAppMetadata>>() 36 val connectedApps: LiveData<List<ConnectedAppMetadata>>
|
D | HomeFragment.kt | 46 import com.android.healthconnect.controller.shared.app.ConnectedAppMetadata in <lambda>() 319 private fun updateConnectedApps(connectedApps: List<ConnectedAppMetadata>) { in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/di/ |
D | FakeComponents.kt | 61 import com.android.healthconnect.controller.shared.app.ConnectedAppMetadata 80 private var list: List<ConnectedAppMetadata> = emptyList() 82 fun updateList(list: List<ConnectedAppMetadata>) { in updateList() 86 override suspend fun invoke(): List<ConnectedAppMetadata> { in invoke()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/app/ |
D | ConnectedAppMetadata.kt | 23 data class ConnectedAppMetadata( class
|