Home
last modified time | relevance | path

Searched refs:HealthDataCategory (Results 1 – 25 of 94) sorted by relevance

1234

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/
DHealthDataCategoryExtensions.kt20 import android.health.connect.HealthDataCategory
35 HealthDataCategory.ACTIVITY -> ACTIVITY_PERMISSION_GROUPS in healthPermissionTypes()
36 HealthDataCategory.BODY_MEASUREMENTS -> BODY_MEASUREMENTS_PERMISSION_GROUPS in healthPermissionTypes()
37 HealthDataCategory.CYCLE_TRACKING -> CYCLE_TRACKING_PERMISSION_GROUPS in healthPermissionTypes()
38 HealthDataCategory.NUTRITION -> NUTRITION_PERMISSION_GROUPS in healthPermissionTypes()
39 HealthDataCategory.SLEEP -> SLEEP_PERMISSION_GROUPS in healthPermissionTypes()
40 HealthDataCategory.VITALS -> VITALS_PERMISSION_GROUPS in healthPermissionTypes()
48 HealthDataCategory.ACTIVITY -> R.string.activity_category_lowercase in lowercaseTitle()
49 HealthDataCategory.BODY_MEASUREMENTS -> R.string.body_measurements_category_lowercase in lowercaseTitle()
50 HealthDataCategory.CYCLE_TRACKING -> R.string.cycle_tracking_category_lowercase in lowercaseTitle()
[all …]
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/
DHealthDataCategoryPriorityHelperTest.java41 import android.health.connect.HealthDataCategory;
168 HealthDataCategory.BODY_MEASUREMENTS, List.of(APP_PACKAGE_ID, APP_PACKAGE_ID_2)); in testAppendToPriorityList_ifAppInList_doesNotAddToList()
173 APP_PACKAGE_NAME, HealthDataCategory.BODY_MEASUREMENTS, mContext, true); in testAppendToPriorityList_ifAppInList_doesNotAddToList()
182 HealthDataCategory.BODY_MEASUREMENTS, List.of(APP_PACKAGE_ID, APP_PACKAGE_ID_2)); in testAppendToPriorityList_activeDefaultApp_addsToTopOfList()
189 APP_PACKAGE_NAME_4, HealthDataCategory.BODY_MEASUREMENTS, mContext, false); in testAppendToPriorityList_activeDefaultApp_addsToTopOfList()
195 assertThat(spy.getAppIdPriorityOrder(HealthDataCategory.BODY_MEASUREMENTS)) in testAppendToPriorityList_activeDefaultApp_addsToTopOfList()
203 HealthDataCategory.BODY_MEASUREMENTS, List.of(APP_PACKAGE_ID, APP_PACKAGE_ID_2)); in testAppendToPriorityList_ifNonDefaultApp_addsToBottomOfList()
210 APP_PACKAGE_NAME_4, HealthDataCategory.BODY_MEASUREMENTS, mContext, false); in testAppendToPriorityList_ifNonDefaultApp_addsToBottomOfList()
216 assertThat(spy.getAppIdPriorityOrder(HealthDataCategory.BODY_MEASUREMENTS)) in testAppendToPriorityList_ifNonDefaultApp_addsToBottomOfList()
224 HealthDataCategory.BODY_MEASUREMENTS, List.of(APP_PACKAGE_ID, APP_PACKAGE_ID_2)); in testAppendToPriorityList_inactiveDefaultApp_addsToBottomOfList()
[all …]
/packages/modules/HealthFitness/framework/java/android/health/connect/
DHealthPermissions.java861 @HealthDataCategory.Type
876 public static String[] getWriteHealthPermissionsFor(@HealthDataCategory.Type int dataCategory) { in getWriteHealthPermissionsFor()
977 @HealthDataCategory.Type int dataCategory, in getPackageHasWriteHealthPermissionsForCategory()
1081 WRITE_ACTIVE_CALORIES_BURNED, HealthDataCategory.ACTIVITY); in populateWriteHealthPermissionToHealthDataCategoryMap()
1083 WRITE_DISTANCE, HealthDataCategory.ACTIVITY); in populateWriteHealthPermissionToHealthDataCategoryMap()
1085 WRITE_ELEVATION_GAINED, HealthDataCategory.ACTIVITY); in populateWriteHealthPermissionToHealthDataCategoryMap()
1087 WRITE_EXERCISE, HealthDataCategory.ACTIVITY); in populateWriteHealthPermissionToHealthDataCategoryMap()
1089 WRITE_PLANNED_EXERCISE, HealthDataCategory.ACTIVITY); in populateWriteHealthPermissionToHealthDataCategoryMap()
1091 WRITE_FLOORS_CLIMBED, HealthDataCategory.ACTIVITY); in populateWriteHealthPermissionToHealthDataCategoryMap()
1092 sWriteHealthPermissionToHealthDataCategoryMap.put(WRITE_STEPS, HealthDataCategory.ACTIVITY); in populateWriteHealthPermissionToHealthDataCategoryMap()
[all …]
DUpdateDataOriginPriorityOrderRequest.java34 @HealthDataCategory.Type private final int mDataCategory;
42 @HealthDataCategory.Type int dataCategory) { in UpdateDataOriginPriorityOrderRequest()
60 @HealthDataCategory.Type
DRecordTypeInfoResponse.java40 @HealthDataCategory.Type private final int mDataCategory;
46 @NonNull @HealthDataCategory.Type int dataCategory, in RecordTypeInfoResponse()
60 @HealthDataCategory.Type
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/recentaccess/
DRecentAccessFragmentTest.kt20 import android.health.connect.HealthDataCategory
91 HealthDataCategory.ACTIVITY.uppercaseTitle(), in test_RecentAccessFragment_displaysCorrectly()
92 HealthDataCategory.VITALS.uppercaseTitle()), in test_RecentAccessFragment_displaysCorrectly()
95 HealthDataCategory.SLEEP.uppercaseTitle(), in test_RecentAccessFragment_displaysCorrectly()
96 HealthDataCategory.NUTRITION.uppercaseTitle())) in test_RecentAccessFragment_displaysCorrectly()
106 HealthDataCategory.SLEEP.uppercaseTitle(), in test_RecentAccessFragment_displaysCorrectly()
107 HealthDataCategory.NUTRITION.uppercaseTitle()), in test_RecentAccessFragment_displaysCorrectly()
110 HealthDataCategory.ACTIVITY.uppercaseTitle(), in test_RecentAccessFragment_displaysCorrectly()
111 HealthDataCategory.VITALS.uppercaseTitle())) in test_RecentAccessFragment_displaysCorrectly()
150 HealthDataCategory.ACTIVITY.uppercaseTitle(), in test_RecentAccessFragment_inactiveApp_doesNotNavigate()
[all …]
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/migration/
DPriorityMigrationHelperTest.java34 import android.health.connect.HealthDataCategory;
98 HealthDataCategory.BODY_MEASUREMENTS, List.of(APP_PACKAGE_ID, APP_PACKAGE_ID_2)); in testPopulatePreMigrationPriority_preMigrationPriorityExists_prioritySaved()
100 HealthDataCategory.ACTIVITY, List.of(APP_PACKAGE_ID_3, APP_PACKAGE_ID_4)); in testPopulatePreMigrationPriority_preMigrationPriorityExists_prioritySaved()
101 preMigrationPriority.put(HealthDataCategory.SLEEP, new ArrayList<>()); in testPopulatePreMigrationPriority_preMigrationPriorityExists_prioritySaved()
112 HealthDataCategory.BODY_MEASUREMENTS, in testPopulatePreMigrationPriority_preMigrationPriorityExists_prioritySaved()
115 times(1), HealthDataCategory.ACTIVITY, List.of(APP_PACKAGE_ID_3, APP_PACKAGE_ID_4)); in testPopulatePreMigrationPriority_preMigrationPriorityExists_prioritySaved()
116 verifyPreMigrationPriorityWrite(never(), HealthDataCategory.SLEEP, new ArrayList<>()); in testPopulatePreMigrationPriority_preMigrationPriorityExists_prioritySaved()
124 HealthDataCategory.BODY_MEASUREMENTS, List.of(APP_PACKAGE_ID, APP_PACKAGE_ID_2)); in testPopulatePreMigrationPriority_preMigrationTableIsPopulated_noOperationPerformed()
126 HealthDataCategory.ACTIVITY, List.of(APP_PACKAGE_ID_3, APP_PACKAGE_ID_4)); in testPopulatePreMigrationPriority_preMigrationTableIsPopulated_noOperationPerformed()
127 preMigrationPriority.put(HealthDataCategory.SLEEP, new ArrayList<>()); in testPopulatePreMigrationPriority_preMigrationTableIsPopulated_noOperationPerformed()
[all …]
DPriorityMigrationTest.java29 import android.health.connect.HealthDataCategory;
113 when(mPriorityMigrationHelper.getPreMigrationPriority(HealthDataCategory.BODY_MEASUREMENTS)) in testMigratePriority_noPreMigrationPriorityAdditionalAppsInPayload_priorityMigrated()
118 .setDataCategory(HealthDataCategory.BODY_MEASUREMENTS) in testMigratePriority_noPreMigrationPriorityAdditionalAppsInPayload_priorityMigrated()
130 eq(HealthDataCategory.BODY_MEASUREMENTS), in testMigratePriority_noPreMigrationPriorityAdditionalAppsInPayload_priorityMigrated()
137 when(mPriorityMigrationHelper.getPreMigrationPriority(HealthDataCategory.BODY_MEASUREMENTS)) in testMigratePriority_preMigrationPriorityNewAppsInPayload_priorityMigrated()
144 .setDataCategory(HealthDataCategory.BODY_MEASUREMENTS) in testMigratePriority_preMigrationPriorityNewAppsInPayload_priorityMigrated()
156 eq(HealthDataCategory.BODY_MEASUREMENTS), in testMigratePriority_preMigrationPriorityNewAppsInPayload_priorityMigrated()
168 when(mPriorityMigrationHelper.getPreMigrationPriority(HealthDataCategory.BODY_MEASUREMENTS)) in testMigratePriority_preMigrationPriorityWithChangedOrderInPayload_priorityMigrated()
190 .setDataCategory(HealthDataCategory.BODY_MEASUREMENTS) in testMigratePriority_preMigrationPriorityWithChangedOrderInPayload_priorityMigrated()
205 eq(HealthDataCategory.BODY_MEASUREMENTS), in testMigratePriority_preMigrationPriorityWithChangedOrderInPayload_priorityMigrated()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/categories/
DHealthDataCategoriesFragmentTest.kt19 import android.health.connect.HealthDataCategory
70 HealthCategoryUiState(category = HealthDataCategory.ACTIVITY, hasData = true),
71 HealthCategoryUiState(category = HealthDataCategory.BODY_MEASUREMENTS, hasData = true),
72 HealthCategoryUiState(category = HealthDataCategory.SLEEP, hasData = false),
73 HealthCategoryUiState(category = HealthDataCategory.VITALS, hasData = false),
74 HealthCategoryUiState(category = HealthDataCategory.CYCLE_TRACKING, hasData = false),
75 HealthCategoryUiState(category = HealthDataCategory.NUTRITION, hasData = false),
238 HealthCategoryUiState(category = HealthDataCategory.ACTIVITY, hasData = false), in seeAllCategoriesPreference_withNoData_isDisplayed()
240 category = HealthDataCategory.BODY_MEASUREMENTS, hasData = false), in seeAllCategoriesPreference_withNoData_isDisplayed()
241 HealthCategoryUiState(category = HealthDataCategory.SLEEP, hasData = false), in seeAllCategoriesPreference_withNoData_isDisplayed()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/appdata/
DAppDataViewModelTest.kt20 import android.health.connect.HealthDataCategory in <lambda>()
105 PermissionTypesPerCategory(HealthDataCategory.ACTIVITY, listOf()), in <lambda>()
106 PermissionTypesPerCategory(HealthDataCategory.BODY_MEASUREMENTS, listOf()), in <lambda>()
107 PermissionTypesPerCategory(HealthDataCategory.CYCLE_TRACKING, listOf()), in <lambda>()
108 PermissionTypesPerCategory(HealthDataCategory.NUTRITION, listOf()), in <lambda>()
109 PermissionTypesPerCategory(HealthDataCategory.SLEEP, listOf()), in <lambda>()
110 PermissionTypesPerCategory(HealthDataCategory.VITALS, listOf())) in <lambda>()
122 HealthDataCategory.ACTIVITY, in <lambda>()
129 HealthDataCategory.BODY_MEASUREMENTS, in <lambda>()
134 HealthDataCategory.VITALS, in <lambda>()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/alldata/
DAllDataViewModelTest.kt20 import android.health.connect.HealthDataCategory in <lambda>()
101 PermissionTypesPerCategory(HealthDataCategory.ACTIVITY, listOf()), in <lambda>()
102 PermissionTypesPerCategory(HealthDataCategory.BODY_MEASUREMENTS, listOf()), in <lambda>()
103 PermissionTypesPerCategory(HealthDataCategory.CYCLE_TRACKING, listOf()), in <lambda>()
104 PermissionTypesPerCategory(HealthDataCategory.NUTRITION, listOf()), in <lambda>()
105 PermissionTypesPerCategory(HealthDataCategory.SLEEP, listOf()), in <lambda>()
106 PermissionTypesPerCategory(HealthDataCategory.VITALS, listOf())) in <lambda>()
118 HealthDataCategory.ACTIVITY, in <lambda>()
125 HealthDataCategory.BODY_MEASUREMENTS, in <lambda>()
130 HealthDataCategory.VITALS, in <lambda>()
[all …]
DAllDataFragmentTest.kt20 import android.health.connect.HealthDataCategory in <lambda>()
109 HealthDataCategory.ACTIVITY, in <lambda>()
114 HealthDataCategory.ACTIVITY, in <lambda>()
119 HealthDataCategory.ACTIVITY, in <lambda>()
124 HealthDataCategory.VITALS, in <lambda>()
149 HealthDataCategory.ACTIVITY, in <lambda>()
154 HealthDataCategory.CYCLE_TRACKING, in <lambda>()
210 HealthDataCategory.ACTIVITY, in <lambda>()
215 HealthDataCategory.VITALS, in <lambda>()
243 HealthDataCategory.ACTIVITY, in <lambda>()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissiontypes/api/
DFilterPermissionTypesUseCaseTest.kt5 import android.health.connect.HealthDataCategory in <lambda>()
61 HealthDataCategory.ACTIVITY, in <lambda>()
66 HealthDataCategory.ACTIVITY, in <lambda>()
74 usecase.invoke(HealthDataCategory.ACTIVITY, TEST_APP_PACKAGE_NAME) in <lambda>()
80 usecase.invoke(HealthDataCategory.ACTIVITY, TEST_APP_PACKAGE_NAME_2) in <lambda>()
95 HealthDataCategory.ACTIVITY, in <lambda>()
100 HealthDataCategory.ACTIVITY, in <lambda>()
105 HealthDataCategory.ACTIVITY, in <lambda>()
110 HealthDataCategory.ACTIVITY, in <lambda>()
117 val result = usecase.invoke(HealthDataCategory.ACTIVITY, TEST_APP_PACKAGE_NAME) in <lambda>()
DLoadPermissionTypesUseCaseTest.kt5 import android.health.connect.HealthDataCategory in <lambda>()
61 HealthDataCategory.ACTIVITY, in <lambda>()
66 HealthDataCategory.ACTIVITY, in <lambda>()
73 val loadedContributingApps = usecase.invoke(HealthDataCategory.ACTIVITY) in <lambda>()
87 val loadedContributingApps = usecase.invoke(HealthDataCategory.ACTIVITY) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/datasources/api/
DLoadMostRecentAggregationsUseCaseTest.kt4 import android.health.connect.HealthDataCategory
97 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.ACTIVITY) in <lambda>()
134 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.ACTIVITY) in loadMostRecentAggregations_forActivity_whenNoStepsData_returnsInOrder_DistanceCalories()
167 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.ACTIVITY) in loadMostRecentAggregations_forActivity_whenNoDistanceData_returnsInOrder_StepsCalories()
200 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.ACTIVITY) in loadMostRecentAggregations_forActivity_whenNoCaloriesData_returnsInOrder_StepsDistance()
217 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.ACTIVITY) in <lambda>()
233 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.SLEEP) in loadMostRecentAggregations_forSleep_sessionsSpanOneDay_returnsAggregationInfoForOneDay()
259 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.SLEEP) in loadMostRecentAggregations_forSleep_sessionsSpanTwoDays_returnsAggregationInfoWithStartAndEndTime()
273 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.SLEEP) in <lambda>()
283 val result = loadMostRecentAggregationsUseCase.invoke(HealthDataCategory.ACTIVITY) in loadMostRecentAggregations_whenLoadLastDateWithPriorityDataFails_returnsFailure()
[all …]
DLoadPotentialPriorityListUseCaseTest.kt18 import android.health.connect.HealthDataCategory in <lambda>()
99 val result = loadPotentialPriorityListUseCase.getAppsWithData(HealthDataCategory.ACTIVITY) in <lambda>()
111 val result = loadPotentialPriorityListUseCase.getAppsWithData(HealthDataCategory.SLEEP) in <lambda>()
144 loadPotentialPriorityListUseCase.getAppsWithWritePermission(HealthDataCategory.ACTIVITY) in <lambda>()
175 loadPotentialPriorityListUseCase.getAppsWithWritePermission(HealthDataCategory.SLEEP) in <lambda>()
186 HealthDataCategory.ACTIVITY, in <lambda>()
191 HealthDataCategory.ACTIVITY, in <lambda>()
196 HealthDataCategory.VITALS, in <lambda>()
201 HealthDataCategory.SLEEP, in <lambda>()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/utils/
DRecordTypeRecordCategoryMapper.java19 import static android.health.connect.HealthDataCategory.ACTIVITY;
20 import static android.health.connect.HealthDataCategory.BODY_MEASUREMENTS;
21 import static android.health.connect.HealthDataCategory.CYCLE_TRACKING;
22 import static android.health.connect.HealthDataCategory.NUTRITION;
23 import static android.health.connect.HealthDataCategory.SLEEP;
24 import static android.health.connect.HealthDataCategory.VITALS;
25 import static android.health.connect.HealthDataCategory.WELLNESS;
69 import android.health.connect.HealthDataCategory;
133 @HealthDataCategory.Type
139 @HealthDataCategory.Type in getRecordCategoryForRecordType()
/packages/modules/HealthFitness/testapps/toolbox/tests/src/com/android/healthconnect/testapps/toolbox/
DDataTypeListFragmentTest.kt32 import com.android.healthconnect.testapps.toolbox.Constants.HealthDataCategory in <lambda>()
45 launchScenario(HealthDataCategory.VITALS) in <lambda>()
67 launchScenario(HealthDataCategory.BODY_MEASUREMENTS) in <lambda>()
76 launchScenario(HealthDataCategory.SLEEP) in <lambda>()
85 launchScenario(HealthDataCategory.CYCLE_TRACKING) in <lambda>()
94 launchScenario(HealthDataCategory.NUTRITION) in <lambda>()
101 private fun launchScenario(category: HealthDataCategory): ActivityScenario<MainActivity>? { in <lambda>()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DHealthDataCategoryPriorityHelper.java35 import android.health.connect.HealthDataCategory;
111 @HealthDataCategory.Type int dataCategory, in appendToPriorityList()
155 @HealthDataCategory.Type int dataCategory, in maybeRemoveAppFromPriorityList()
216 @HealthDataCategory.Type int type, @NonNull Context context) { in getPriorityOrder()
228 public List<Long> getAppIdPriorityOrder(@HealthDataCategory.Type int type) { in getAppIdPriorityOrder()
343 @HealthDataCategory.Type int dataCategory, in safelyUpdateDBAndUpdateCache()
355 DeleteTableRequest request, @HealthDataCategory.Type int dataCategory) { in safelyUpdateDBAndUpdateCache()
366 @HealthDataCategory.Type int dataCategory, List<Long> priorityList) { in getContentValuesFor()
470 @HealthDataCategory.Type int dataCategory, @NonNull String packageName) { in maybeRemoveAppFromPriorityListInternal()
530 HealthDataCategory.ACTIVITY, in maybeAddContributingAppsIfEmpty()
[all …]
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DHealthPermissionCategoryPriorityTests.java19 import static android.health.connect.HealthDataCategory.ACTIVITY;
20 import static android.health.connect.HealthDataCategory.BODY_MEASUREMENTS;
21 import static android.health.connect.HealthDataCategory.CYCLE_TRACKING;
22 import static android.health.connect.HealthDataCategory.NUTRITION;
23 import static android.health.connect.HealthDataCategory.SLEEP;
24 import static android.health.connect.HealthDataCategory.VITALS;
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/
DAggregateOtherAppsDataTest.java39 import android.health.connect.HealthDataCategory;
76 HealthDataCategory.ACTIVITY); in testAppWithReadPerms_aggregateOtherAppsDistance_expectSuccess()
87 HealthDataCategory.ACTIVITY); in testAppWithReadPerms_aggregateOtherAppsSteps_expectSuccess()
98 HealthDataCategory.VITALS); in testAppWithReadPerms_aggregateOtherAppsHeartRate_expectSuccess()
110 HealthDataCategory.ACTIVITY); in testAppWithReadPerms_aggregateOtherAppsTotalCaloriesBurned_expectSuccess()
123 HealthDataCategory.ACTIVITY); in testAppWithReadPerms_aggregateOtherAppsExercise_expectSuccess()
138 HealthDataCategory.SLEEP); in testAppWithReadPerms_aggregateOtherAppsSleep_expectSuccess()
DExerciseDurationAggregationTest.java32 import android.health.connect.HealthDataCategory;
101 setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testSimpleAggregation_oneSession_returnsItsDuration()
125 setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testSimpleAggregation_oneSessionStartEarlierThanWindow_returnsOverlapDuration()
147 setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testSimpleAggregation_oneSessionBiggerThanWindow_returnsOverlapDuration()
170 setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testSimpleAggregation_oneSessionWithRest_returnsDurationMinusRest()
212 setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testAggregationByDuration_oneSession_returnsSplitDurationIntoGroups()
244 setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testAggregation_oneSessionLocalTimeFilter_findsSessionWithMinOffset()
276 setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testAggregation_oneSessionLocalTimeFilterExcludeSegment_substractsExcludeInterval()
/packages/modules/HealthFitness/framework/java/android/health/connect/migration/
DPriorityMigrationPayload.java24 import android.health.connect.HealthDataCategory;
59 @HealthDataCategory.Type int dataCategory, @NonNull List<DataOrigin> dataOrigins) { in PriorityMigrationPayload()
97 @HealthDataCategory.Type
111 private int mDataCategory = HealthDataCategory.UNKNOWN;
115 public Builder setDataCategory(@HealthDataCategory.Type int dataCategory) { in setDataCategory()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/shared/
DHealthDataCategoryExtensionsTest.kt21 import android.health.connect.HealthDataCategory.ACTIVITY in <lambda>()
22 import android.health.connect.HealthDataCategory.BODY_MEASUREMENTS in <lambda>()
23 import android.health.connect.HealthDataCategory.CYCLE_TRACKING in <lambda>()
24 import android.health.connect.HealthDataCategory.NUTRITION in <lambda>()
25 import android.health.connect.HealthDataCategory.SLEEP in <lambda>()
26 import android.health.connect.HealthDataCategory.VITALS in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/datasources/
DDataSourcesFragmentTest.kt18 import android.health.connect.HealthDataCategory in <lambda>()
99 whenever(dataSourcesViewModel.getCurrentSelection()).then { HealthDataCategory.ACTIVITY } in <lambda>()
143 launchFragment<DataSourcesFragment>(bundleOf(CATEGORY_KEY to HealthDataCategory.ACTIVITY)) in <lambda>()
168 launchFragment<DataSourcesFragment>(bundleOf(CATEGORY_KEY to HealthDataCategory.ACTIVITY)) in <lambda>()
234 launchFragment<DataSourcesFragment>(bundleOf(CATEGORY_KEY to HealthDataCategory.ACTIVITY)) in <lambda>()
298 launchFragment<DataSourcesFragment>(bundleOf(CATEGORY_KEY to HealthDataCategory.ACTIVITY)) in <lambda>()
306 whenever(dataSourcesViewModel.getCurrentSelection()).then { HealthDataCategory.SLEEP } in <lambda>()
339 launchFragment<DataSourcesFragment>(bundleOf(CATEGORY_KEY to HealthDataCategory.SLEEP)) in <lambda>()
373 whenever(dataSourcesViewModel.getCurrentSelection()).then { HealthDataCategory.SLEEP } in <lambda>()
406 launchFragment<DataSourcesFragment>(bundleOf(CATEGORY_KEY to HealthDataCategory.SLEEP)) in <lambda>()
[all …]

1234