Home
last modified time | relevance | path

Searched refs:getDataOrigin (Results 1 – 25 of 109) sorted by relevance

12345

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/alldata/
DAllDataFragmentTest.kt49 import com.android.healthconnect.controller.tests.utils.getDataOrigin in <lambda>()
110 listOf(getDataOrigin(TEST_APP_PACKAGE_NAME))), in <lambda>()
115 listOf(getDataOrigin(TEST_APP_PACKAGE_NAME))), in <lambda>()
120 listOf((getDataOrigin(TEST_APP_PACKAGE_NAME)))), in <lambda>()
125 listOf(getDataOrigin(TEST_APP_PACKAGE_NAME)))) in <lambda>()
150 listOf(getDataOrigin(TEST_APP_PACKAGE_NAME))), in <lambda>()
155 listOf(getDataOrigin(TEST_APP_PACKAGE_NAME)))) in <lambda>()
211 listOf(getDataOrigin(TEST_APP_PACKAGE_NAME))), in <lambda>()
216 listOf(getDataOrigin(TEST_APP_PACKAGE_NAME)))) in <lambda>()
244 listOf(getDataOrigin(TEST_APP_PACKAGE_NAME))), in <lambda>()
[all …]
DAllDataViewModelTest.kt37 import com.android.healthconnect.controller.tests.utils.getDataOrigin in <lambda>()
120 getDataOrigin(TEST_APP_PACKAGE_NAME), in <lambda>()
121 getDataOrigin(TEST_APP_PACKAGE_NAME_2))), in <lambda>()
126 listOf((getDataOrigin(TEST_APP_PACKAGE_NAME_2)))), in <lambda>()
131 listOf((getDataOrigin(TEST_APP_PACKAGE_NAME))))) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissiontypes/api/
DFilterPermissionTypesUseCaseTest.kt22 import com.android.healthconnect.controller.tests.utils.getDataOrigin in <lambda>()
62 listOf(getDataOrigin(TEST_APP_PACKAGE_NAME))), in <lambda>()
67 listOf(getDataOrigin(TEST_APP_PACKAGE_NAME_2)))) in <lambda>()
96 listOf(getDataOrigin(TEST_APP_PACKAGE_NAME))), in <lambda>()
101 listOf(getDataOrigin(TEST_APP_PACKAGE_NAME))), in <lambda>()
106 listOf(getDataOrigin(TEST_APP_PACKAGE_NAME))), in <lambda>()
111 listOf(getDataOrigin(TEST_APP_PACKAGE_NAME)))) in <lambda>()
DLoadPriorityListUseCaseTest.kt14 import com.android.healthconnect.controller.tests.utils.getDataOrigin in <lambda>()
52 getDataOrigin(TEST_APP_PACKAGE_NAME), getDataOrigin(TEST_APP_PACKAGE_NAME_2))) in <lambda>()
DUpdatePriorityListUseCaseTest.kt13 import com.android.healthconnect.controller.tests.utils.getDataOrigin in <lambda>()
69 getDataOrigin(TEST_APP_PACKAGE_NAME), getDataOrigin(TEST_APP_PACKAGE_NAME_2))) in <lambda>()
DLoadPermissionTypesUseCaseTest.kt22 import com.android.healthconnect.controller.tests.utils.getDataOrigin in <lambda>()
62 listOf(getDataOrigin(TEST_APP_PACKAGE_NAME))), in <lambda>()
67 listOf(getDataOrigin(TEST_APP_PACKAGE_NAME_2)))) in <lambda>()
DLoadContributingAppsUseCaseTest.kt22 import com.android.healthconnect.controller.tests.utils.getDataOrigin in <lambda>()
64 listOf(getDataOrigin(TEST_APP_PACKAGE_NAME))), in <lambda>()
69 listOf(getDataOrigin(TEST_APP_PACKAGE_NAME_2)))) in <lambda>()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/
DAggregateWithFiltersTest.java31 import static android.healthconnect.cts.utils.DataFactory.getDataOrigin;
123 .containsExactly(getDataOrigin(mPackageName), getDataOrigin(PKG_TEST_APP)); in dataOriginFilter_noFilter_everythingIncluded()
141 .addDataOriginsFilter(getDataOrigin(PKG_TEST_APP)) in dataOriginFilter_validFilter_onlyDataFromFilteredApps()
147 .containsExactly(getDataOrigin(PKG_TEST_APP)); in dataOriginFilter_validFilter_onlyDataFromFilteredApps()
170 .addDataOriginsFilter(getDataOrigin("invalid.app.pkg")) in dataOriginFilter_invalidApp_noDataReturned()
177 .addDataOriginsFilter(getDataOrigin("invalid.app.pkg")) in dataOriginFilter_invalidApp_noDataReturned()
215 .addDataOriginsFilter(getDataOrigin(mPackageName)) in dataOriginFilter_appNotInPriorityList_noDataReturned()
222 .addDataOriginsFilter(getDataOrigin(mPackageName)) in dataOriginFilter_appNotInPriorityList_noDataReturned()
256 .addDataOriginsFilter(getDataOrigin(mPackageName)) in dataOriginFilter_noDataFromFilteredApps_noDataReturned()
263 .addDataOriginsFilter(getDataOrigin(mPackageName)) in dataOriginFilter_noDataFromFilteredApps_noDataReturned()
[all …]
DTotalCaloriesAggregationTest.java27 import static android.healthconnect.cts.utils.DataFactory.getDataOrigin;
276 .addDataOriginsFilter(getDataOrigin(mPackageName)) in testAggregation_totalCaloriesBurned_activeCalories_groupBy()
300 .addDataOriginsFilter(getDataOrigin(mPackageName)) in testAggregation_totalCaloriesBurned_activeCalories_groupBy_duration()
334 .addDataOriginsFilter(getDataOrigin(mPackageName)) in testAggregation_groupByDurationLocalFilter_shiftRecordsAndFilterWithOffset()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/access/
DLoadPermissionTypeContributorAppsUseCaseTest.kt21 import com.android.healthconnect.controller.tests.utils.getDataOrigin in <lambda>()
79 getDataOrigin(TEST_APP_PACKAGE_NAME), in <lambda>()
80 getDataOrigin(TEST_APP_PACKAGE_NAME_2))), in <lambda>()
85 listOf((getDataOrigin(TEST_APP_PACKAGE_NAME_2)))), in <lambda>()
90 listOf((getDataOrigin(TEST_APP_PACKAGE_NAME_3))))) in <lambda>()
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DMetadata.java140 public DataOrigin getDataOrigin() { in getDataOrigin() method in Metadata
197 && getDataOrigin().equals(other.getDataOrigin()) in equals()
215 getDataOrigin(), in hashCode()
DIntermenstrualBleedingRecord.java117 .setPackageName(getMetadata().getDataOrigin().getPackageName()) in toRecordInternal()
DHeartRateVariabilityRmssdRecord.java147 .setPackageName(getMetadata().getDataOrigin().getPackageName()) in toRecordInternal()
DLeanBodyMassRecord.java149 .setPackageName(getMetadata().getDataOrigin().getPackageName()) in toRecordInternal()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/appdata/
DAppDataViewModelTest.kt38 import com.android.healthconnect.controller.tests.utils.getDataOrigin in <lambda>()
124 getDataOrigin(TEST_APP_PACKAGE_NAME), in <lambda>()
125 getDataOrigin(TEST_APP_PACKAGE_NAME_2))), in <lambda>()
130 listOf((getDataOrigin(TEST_APP_PACKAGE_NAME_2)))), in <lambda>()
135 listOf((getDataOrigin(TEST_APP_PACKAGE_NAME))))) in <lambda>()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/HealthConnectTestHelper/src/android/healthconnect/cts/testhelper/
DTestHelperUtils.java59 return new Metadata.Builder().setDataOrigin(getDataOrigin()).build(); in getMetadata()
63 return new Metadata.Builder().setDataOrigin(getDataOrigin()).setId(id).build(); in getMetadata()
66 public static DataOrigin getDataOrigin() { in getDataOrigin() method in TestHelperUtils
213 .addDataOrigin(getDataOrigin()) in deleteAllRecordsAddedByTestApp()
DHealthConnectServiceLogsTests.java25 import static android.healthconnect.cts.testhelper.TestHelperUtils.getDataOrigin;
138 .addDataOrigin(getDataOrigin()) in testHealthConnectDeleteRecords()
151 .addDataOrigin(getDataOrigin()) in testHealthConnectDeleteRecordsError()
254 .addDataOrigin(getDataOrigin()) in testHealthConnectGetChangeLogs()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/readdata/
DReadByFilterTests.java19 import static android.healthconnect.cts.utils.DataFactory.getDataOrigin;
133 .addDataOrigins(getDataOrigin(mContext.getPackageName())) in filterByDataOrigin_dataOfOtherOriginsExcluded()
141 .addDataOrigins(getDataOrigin(PKG_TEST_APP)) in filterByDataOrigin_dataOfOtherOriginsExcluded()
175 .addDataOrigins(getDataOrigin("invalid.app")) in filterByDataOrigin_invalidOrigin_emptyResult()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/device/src/android/healthconnect/cts/device/
DHealthConnectDeviceTest.java25 import static android.healthconnect.cts.utils.DataFactory.getDataOrigin;
226 getExerciseSessionRecord(getMetadata(getDataOrigin("ignored.package.name"))); in testDataOriginGetsOverriddenBySelfPackageName()
240 getDataOrigin(APP_A_WITH_READ_WRITE_PERMS.getPackageName())) in testDataOriginGetsOverriddenBySelfPackageName()
253 getDataOrigin(APP_WITH_WRITE_PERMS_ONLY.getPackageName())) in testAppWithWritePermsOnly_readOwnData_success()
262 getDataOrigin( in testAppWithWritePermsOnly_readOwnData_success()
295 getDataOrigin( in testAppWithWritePermsOnly_readDataFromOtherApps_throwsError()
299 getDataOrigin( in testAppWithWritePermsOnly_readDataFromOtherApps_throwsError()
637 getDataOrigin(APP_A_WITH_READ_WRITE_PERMS.getPackageName())) in testAppWithReadPerms_getChangeTokensAndLogsOfOtherApps_expectSuccess()
653 getDataOrigin(APP_B_WITH_READ_WRITE_PERMS.getPackageName())) in testAppWithReadPerms_getChangeTokensAndLogsOfOtherApps_expectSuccess()
1134 getDataOrigin(APP_A_WITH_READ_WRITE_PERMS.getPackageName())) in testToVerifyNoPermissionChangeLog()
[all …]
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DDistanceRecordTest.java550 .setDataOrigin(metadata.getDataOrigin()) in getDistanceRecord_update()
587 new Metadata.Builder().setDataOrigin(getDataOrigin()).build(), in getBaseDistanceRecord()
597 new Metadata.Builder().setDataOrigin(getDataOrigin()).build(), in getBaseDistanceRecord()
614 testMetadataBuilder.setDevice(device).setDataOrigin(getDataOrigin()); in getCompleteDistanceRecord()
627 private static DataOrigin getDataOrigin() { in getDataOrigin() method in DistanceRecordTest
DBasalMetabolicRateRecordTest.java593 .setDataOrigin(metadata.getDataOrigin()) in getBasalMetabolicRateRecord_update()
605 new Metadata.Builder().setDataOrigin(getDataOrigin()).build(), in getBaseBasalMetabolicRateRecord()
619 testMetadataBuilder.setDevice(device).setDataOrigin(getDataOrigin()); in getCompleteBasalMetabolicRateRecord()
630 private static DataOrigin getDataOrigin() { in getDataOrigin() method in BasalMetabolicRateRecordTest
/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/backuprestore/
DBackupRestoreE2ETest.java156 DataOrigin dataOrigin = DataFactory.getDataOrigin(mContext.getPackageName()); in testBackupThenRestore_trainingPlans_expectDataIsRestoredCorrectly()
322 DataOrigin dataOrigin = DataFactory.getDataOrigin(mContext.getPackageName()); in getCompleteActiveCaloriesBurnedRecord()
520 appendToLog(stringBuilder, 2, "data origin: ", metadata.getDataOrigin().getPackageName()); in recordToString()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DHealthConnectManagerTest.java2058 .setDataOrigin(metadata.getDataOrigin()) in setTestRecordId()
2138 DataOrigin dataOrigin = getDataOrigin(packageName); in getStepsRecord()
2172 DataOrigin dataOrigin = getDataOrigin(); in getHeartRateRecord()
2191 DataOrigin dataOrigin = getDataOrigin(); in getBasalMetabolicRateRecord()
2203 DataOrigin dataOrigin = getDataOrigin(); in getHydrationRecord()
2216 DataOrigin dataOrigin = getDataOrigin(); in getNutritionRecord()
2239 private static DataOrigin getDataOrigin() { in getDataOrigin() method in HealthConnectManagerTest
2240 return getDataOrigin(/* packageName= */ ""); in getDataOrigin()
2243 private static DataOrigin getDataOrigin(String packageName) { in getDataOrigin() method in HealthConnectManagerTest
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/
DDataFactory.java149 public static DataOrigin getDataOrigin(String packageName) { in getDataOrigin() method in DataFactory
155 return Arrays.stream(packageNames).map(DataFactory::getDataOrigin).toList(); in getDataOrigins()
485 .setDataOrigin(metadata.getDataOrigin()) in getUpdatedStepsRecord()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/changelogs/
DHealthConnectChangeLogsTests.java23 import static android.healthconnect.cts.utils.DataFactory.getDataOrigin;
699 getMetadataForId(preExistingStepsId, getDataOrigin(mPackageName)), in testChangeLogs_operationCombinations_expectCorrectChangeLogs()
734 getDataOrigin(mPackageName)), // workaround for b/325029194 in testChangeLogs_operationCombinations_expectCorrectChangeLogs()
744 getDataOrigin(mPackageName)), in testChangeLogs_operationCombinations_expectCorrectChangeLogs()

12345