Home
last modified time | relevance | path

Searched refs:ConnectedAppMetadata (Results 1 – 16 of 16) sorted by relevance

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/
DConnectedAppsViewModelTest.kt22 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 …]
DConnectedAppsFragmentTest.kt45 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 …]
DLoadHealthPermissionAppsTest.kt23 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/
DLoadHealthPermissionApps.kt23 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>
DConnectedAppsViewModel.kt26 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>()
DConnectedAppsFragment.kt46 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>()
DSettingsManagePermissionFragment.kt54 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/
DHomeFragmentTest.kt53 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/
DSearchAppsFragmentTest.kt13 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/
DSettingsManagePermissionFragmentTest.kt39 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/
DSearchHealthPermissionApps.kt19 import com.android.healthconnect.controller.shared.app.ConnectedAppMetadata in <lambda>()
33 list: List<ConnectedAppMetadata>, in <lambda>()
35 ): List<ConnectedAppMetadata> = in <lambda>()
DSearchAppsFragment.kt40 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/
DHomeFragmentViewModel.kt24 import com.android.healthconnect.controller.shared.app.ConnectedAppMetadata
35 private val _connectedApps = MutableLiveData<List<ConnectedAppMetadata>>()
36 val connectedApps: LiveData<List<ConnectedAppMetadata>>
DHomeFragment.kt46 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/
DFakeComponents.kt61 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/
DConnectedAppMetadata.kt23 data class ConnectedAppMetadata( class