Home
last modified time | relevance | path

Searched refs:AppMetadata (Results 1 – 25 of 55) sorted by relevance

123

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/access/
DLoadAccessUseCase.kt25 import com.android.healthconnect.controller.shared.app.AppMetadata in <lambda>()
45 ): UseCaseResults<Map<AppAccessState, List<AppMetadata>>> = in <lambda>()
50 val contributingApps: List<AppMetadata> = in <lambda>()
52 val readAppMetadataSet: MutableSet<AppMetadata> = mutableSetOf() in <lambda>()
53 val writeAppMetadataSet: MutableSet<AppMetadata> = mutableSetOf() in <lambda>()
55 val inactiveAppMetadataSet: MutableSet<AppMetadata> = mutableSetOf() in <lambda>()
96 packageNames: Set<AppMetadata> in <lambda>()
97 ): List<AppMetadata> { in <lambda>()
105 ): UseCaseResults<Map<AppAccessState, List<AppMetadata>>>
DLoadPermissionTypeContributorAppsUseCase.kt26 import com.android.healthconnect.controller.shared.app.AppMetadata in <lambda>()
43 override suspend operator fun invoke(permissionType: HealthPermissionType): List<AppMetadata> = in <lambda>()
69 suspend fun invoke(permissionType: HealthPermissionType): List<AppMetadata>
DAccessViewModel.kt26 import com.android.healthconnect.controller.shared.app.AppMetadata
69 data class WithData(val appMetadata: Map<AppAccessState, List<AppMetadata>>) :
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/di/
DFakeComponents.kt60 import com.android.healthconnect.controller.shared.app.AppMetadata
258 private var potentialPriorityList = listOf<AppMetadata>()
262 ): UseCaseResults<List<AppMetadata>> { in invoke()
266 fun updatePotentialPriorityList(potentialList: List<AppMetadata>) { in updatePotentialPriorityList()
277 private var priorityList = listOf<AppMetadata>()
283 ): UseCaseResults<List<AppMetadata>> { in invoke()
288 override suspend fun execute(input: Int): List<AppMetadata> { in execute()
292 fun updatePriorityList(priorityList: List<AppMetadata>) { in updatePriorityList()
326 private var appDataMap: Map<AppAccessState, List<AppMetadata>> = mutableMapOf()
330 ): UseCaseResults<Map<AppAccessState, List<AppMetadata>>> { in invoke()
[all …]
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/datasources/
DDataSourcesViewModel.kt29 import com.android.healthconnect.controller.shared.app.AppMetadata in <lambda>()
64 private val _editedPotentialAppSources = MutableLiveData<List<AppMetadata>>() in <lambda>()
68 private val _editedPriorityList = MutableLiveData<List<AppMetadata>>() in <lambda>()
203 val appMetadataList: List<AppMetadata> = in <lambda>()
233 fun setEditedPriorityList(newList: List<AppMetadata>) { in <lambda>()
237 fun setEditedPotentialAppSources(newList: List<AppMetadata>) { in <lambda>()
241 fun getEditedPotentialAppSources(): List<AppMetadata> { in <lambda>()
245 fun getEditedPriorityList(): List<AppMetadata> { in <lambda>()
271 val appSources: List<AppMetadata> in <lambda>()
283 val priorityList: List<AppMetadata> in <lambda>()
DAddAnAppFragment.kt26 import com.android.healthconnect.controller.shared.app.AppMetadata in <lambda>()
42 private var currentPriority: List<AppMetadata> = listOf() in <lambda>()
81 private fun updateAppsList(appSources: List<AppMetadata>) { in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissiontypes/api/
DLoadPriorityListUseCase.kt25 import com.android.healthconnect.controller.shared.app.AppMetadata in <lambda>()
40 ) : BaseUseCase<@HealthDataCategoryInt Int, List<AppMetadata>>(dispatcher), ILoadPriorityListUseCas… in <lambda>()
43 override suspend fun execute(input: @HealthDataCategoryInt Int): List<AppMetadata> { in <lambda>()
56 suspend fun invoke(input: @HealthDataCategoryInt Int) : UseCaseResults<List<AppMetadata>>
58 suspend fun execute(input: @HealthDataCategoryInt Int) : List<AppMetadata>
DLoadContributingAppsUseCase.kt12 import com.android.healthconnect.controller.shared.app.AppMetadata in <lambda>()
29 suspend operator fun invoke(category: @HealthDataCategoryInt Int): List<AppMetadata> = in <lambda>()
31 val appsList: MutableSet<AppMetadata> = mutableSetOf() in <lambda>()
73 packageNames: Set<AppMetadata> in <lambda>()
74 ): List<AppMetadata> { in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissiontypes/
DHealthPermissionTypesViewModel.kt31 import com.android.healthconnect.controller.shared.app.AppMetadata
57 private val _editedPriorityList = MutableLiveData<List<AppMetadata>>()
86 val editedPriorityList: LiveData<List<AppMetadata>>
96 fun setEditedPriorityList(newList: List<AppMetadata>) { in setEditedPriorityList()
159 val appMetadataList: List<AppMetadata> = in updatePriorityList()
174 data class WithData(val priorityList: List<AppMetadata>) : PriorityListState()
179 data class WithData(val appsWithData: List<AppMetadata>) : AppsWithDataFragmentState()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/app/
DAppInfoReader.kt36 private var cache: HashMap<String, AppMetadata> = HashMap()
39 suspend fun getAppMetadata(packageName: String): AppMetadata { in getAppMetadata()
44 AppMetadata( in getAppMetadata()
57 AppMetadata(packageName = packageName, appName = "", icon = null) in getAppMetadata()
DGetContributorAppInfoUseCase.kt65 override suspend fun invoke(): Map<String, AppMetadata> = in <lambda>()
81 private fun toAppMetadata(appInfo: AppInfo): AppMetadata { in <lambda>()
82 return AppMetadata( in <lambda>()
96 suspend operator fun invoke(): Map<String, AppMetadata>
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/filters/
DChipPreference.kt23 import com.android.healthconnect.controller.shared.app.AppMetadata
35 private val appMetadataList: List<AppMetadata> = listOf(),
36 private val addFilterChip: (appMetadata: AppMetadata, chipGroup: RadioGroup) -> Unit,
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/request/
DAdditionalPermissionsFragment.kt25 import com.android.healthconnect.controller.shared.app.AppMetadata in <lambda>()
131 private fun showCombinedAdditionalPermissions(appMetadata: AppMetadata) { in <lambda>()
175 private fun getHistoryReadPreference(appMetadata: AppMetadata): HealthSwitchPreference { in <lambda>()
198 private fun getHistoryReadPermissionPreferenceSummary(appMetadata: AppMetadata): String { in <lambda>()
214 private fun getHistoryReadPermissionRequestText(appMetadata: AppMetadata): String { in <lambda>()
232 appMetadata: AppMetadata in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissiontypes/prioritylist/
DPriorityListAdapter.kt30 import com.android.healthconnect.controller.shared.app.AppMetadata in <lambda>()
35 appMetadataList: List<AppMetadata>, in <lambda>()
78 val movedAppInfo: AppMetadata = appMetadataList.removeAt(fromPosition) in <lambda>()
94 return appMetadataList.stream().map(AppMetadata::packageName).toList() in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/appdata/
DAppDataViewModel.kt25 import com.android.healthconnect.controller.shared.app.AppMetadata
45 private val _appInfo = MutableLiveData<AppMetadata>()
51 val appInfo: LiveData<AppMetadata>
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/datasources/appsources/
DAppSourcesAdapter.kt29 import com.android.healthconnect.controller.shared.app.AppMetadata in <lambda>()
43 priorityList: List<AppMetadata>, in <lambda>()
44 potentialAppSourcesList: List<AppMetadata>, in <lambda>()
95 val movedAppInfo: AppMetadata = priorityList.removeAt(fromPosition) in <lambda>()
154 fun bind(appPosition: Int, appMetadata: AppMetadata, isOnlyApp: Boolean) { in <lambda>()
DAppSourcesPreference.kt26 import com.android.healthconnect.controller.shared.app.AppMetadata
38 private var priorityList: List<AppMetadata> = listOf()
39 private var potentialAppSourcesList: List<AppMetadata> = listOf()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataaccess/
DHealthDataAccessFragmentTest.kt35 import com.android.healthconnect.controller.shared.app.AppMetadata
97 AppAccessState.Read to listOf(AppMetadata("package1", "appName1", null)), in dataAccessFragment_readSection_isDisplayed()
121 AppAccessState.Read to listOf(AppMetadata("package1", "appName1", null)), in dataAccessFragment_readAndWriteSections_isDisplayed()
122 AppAccessState.Write to listOf(AppMetadata("package1", "appName1", null)), in dataAccessFragment_readAndWriteSections_isDisplayed()
154 AppAccessState.Inactive to listOf(AppMetadata("package1", "appName1", null))) in dataAccessFragment_inactiveSection_isDisplayed()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/recentaccess/
DRecentAccessEntry.kt19 import com.android.healthconnect.controller.shared.app.AppMetadata
24 val metadata: AppMetadata,
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/access/
DAccessFragmentTest.kt41 import com.android.healthconnect.controller.shared.app.AppMetadata
95 AppAccessState.Read to listOf(AppMetadata("package1", "appName1", null)), in dataAccessFragment_readSection_isDisplayed()
119 AppAccessState.Read to listOf(AppMetadata("package1", "appName1", null)), in dataAccessFragment_readAndWriteSections_isDisplayed()
120 AppAccessState.Write to listOf(AppMetadata("package1", "appName1", null)), in dataAccessFragment_readAndWriteSections_isDisplayed()
145 AppAccessState.Inactive to listOf(AppMetadata("package1", "appName1", null))) in dataAccessFragment_inactiveSection_isDisplayed()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/request/
DAdditionalPermissionsFragmentTest.kt33 import com.android.healthconnect.controller.shared.app.AppMetadata
98 AppMetadata(TEST_APP_PACKAGE_NAME, TEST_APP_NAME, null))) in displaysCombinedAdditionalPermissions()
140 AppMetadata(TEST_APP_PACKAGE_NAME, TEST_APP_NAME, null))) in displaysBackgroundReadPermission()
170 AppMetadata(TEST_APP_PACKAGE_NAME, TEST_APP_NAME, null))) in displaysHistoryReadPermission()
201 AppMetadata(TEST_APP_PACKAGE_NAME, TEST_APP_NAME, null))) in toggleOn_updatesAdditionalPermission()
225 AppMetadata(TEST_APP_PACKAGE_NAME, TEST_APP_NAME, null))) in toggleOff_updatesAdditionalPermission()
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DBaseUsePermissionTest.kt434 installPackageViaSession(apkName, AppMetadata.createEmptyAppMetadata()) in <lambda>()
438 installPackageViaSession(apkName, AppMetadata.createDefaultAppMetadata()) in <lambda>()
444 AppMetadata.createDefaultAppMetadata(), in <lambda>()
452 AppMetadata.createDefaultAppMetadata(), in <lambda>()
460 AppMetadata.createDefaultAppMetadata(), in <lambda>()
470 AppMetadata.createDefaultAppMetadata(), in <lambda>()
479 AppMetadata.createDefaultAppMetadata(), in <lambda>()
517 installPackageViaSession(apkName, AppMetadata.createInvalidAppMetadata()) in <lambda>()
525 AppMetadata.createInvalidAppMetadataWithoutTopLevelVersion() in <lambda>()
534 AppMetadata.createInvalidAppMetadataWithInvalidTopLevelVersion() in <lambda>()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissiontypes/
DHealthPermissionTypesFragmentTest.kt44 import com.android.healthconnect.controller.shared.app.AppMetadata
297 MutableLiveData<List<AppMetadata>>(listOf()) in permissionTypesFragment_emptyPriorityList_noPriorityButton()
472 MutableLiveData<List<AppMetadata>>(listOf()) in permissionTypesFragment_withTwoOrMoreContributingApps_appFilters_areDisplayed()
504 MutableLiveData<List<AppMetadata>>(listOf()) in permissionTypesFragment_withLessThanTwoContributingApps_appFilters_areNotDisplayed()
531 MutableLiveData<List<AppMetadata>>(listOf()) in permissionTypesFragment_appFilters_areSelectableCorrectly()
563 MutableLiveData<List<AppMetadata>>(listOf(TEST_APP, TEST_APP_2)) in permissionTypesFragment_activityCategory_whenNewPriorityEnabled_showsNewAppPriorityButton()
675 MutableLiveData<List<AppMetadata>>(listOf(TEST_APP, TEST_APP_2)) in permissionTypesFragment_whenBodyMeasurementsCategory_doesNotShowNewPriorityButton()
704 MutableLiveData<List<AppMetadata>>(listOf(TEST_APP, TEST_APP_2)) in permissionTypesFragment_whenCycleTrackingCategory_doesNotShowOldPriorityButton()
734 MutableLiveData<List<AppMetadata>>(listOf(TEST_APP, TEST_APP_2)) in permissionTypesFragment_whenCycleTrackingCategory_doesNotShowNewPriorityButton()
763 MutableLiveData<List<AppMetadata>>(listOf(TEST_APP, TEST_APP_2)) in permissionTypesFragment_whenNutritionCategory_doesNotShowOldPriorityButton()
[all …]
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/datasources/api/
DLoadPotentialPriorityListUseCase.kt33 import com.android.healthconnect.controller.shared.app.AppMetadata in <lambda>()
58 ): UseCaseResults<List<AppMetadata>> = in <lambda>()
154 suspend fun invoke(category: @HealthDataCategoryInt Int): UseCaseResults<List<AppMetadata>>
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/connectedapps/
DHealthAppPreference.kt22 import com.android.healthconnect.controller.shared.app.AppMetadata
30 class HealthAppPreference(context: Context, private val appMetadata: AppMetadata) :

123