/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/alldata/ |
D | AllDataFragmentTest.kt | 49 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 …]
|
D | AllDataViewModelTest.kt | 37 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/ |
D | FilterPermissionTypesUseCaseTest.kt | 22 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>()
|
D | LoadPriorityListUseCaseTest.kt | 14 import com.android.healthconnect.controller.tests.utils.getDataOrigin in <lambda>() 52 getDataOrigin(TEST_APP_PACKAGE_NAME), getDataOrigin(TEST_APP_PACKAGE_NAME_2))) in <lambda>()
|
D | UpdatePriorityListUseCaseTest.kt | 13 import com.android.healthconnect.controller.tests.utils.getDataOrigin in <lambda>() 69 getDataOrigin(TEST_APP_PACKAGE_NAME), getDataOrigin(TEST_APP_PACKAGE_NAME_2))) in <lambda>()
|
D | LoadPermissionTypesUseCaseTest.kt | 22 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>()
|
D | LoadContributingAppsUseCaseTest.kt | 22 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/ |
D | AggregateWithFiltersTest.java | 31 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 …]
|
D | TotalCaloriesAggregationTest.java | 27 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/ |
D | LoadPermissionTypeContributorAppsUseCaseTest.kt | 21 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/ |
D | Metadata.java | 140 public DataOrigin getDataOrigin() { in getDataOrigin() method in Metadata 197 && getDataOrigin().equals(other.getDataOrigin()) in equals() 215 getDataOrigin(), in hashCode()
|
D | IntermenstrualBleedingRecord.java | 117 .setPackageName(getMetadata().getDataOrigin().getPackageName()) in toRecordInternal()
|
D | HeartRateVariabilityRmssdRecord.java | 147 .setPackageName(getMetadata().getDataOrigin().getPackageName()) in toRecordInternal()
|
D | LeanBodyMassRecord.java | 149 .setPackageName(getMetadata().getDataOrigin().getPackageName()) in toRecordInternal()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/appdata/ |
D | AppDataViewModelTest.kt | 38 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/ |
D | TestHelperUtils.java | 59 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()
|
D | HealthConnectServiceLogsTests.java | 25 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/ |
D | ReadByFilterTests.java | 19 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/ |
D | HealthConnectDeviceTest.java | 25 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/ |
D | DistanceRecordTest.java | 550 .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
|
D | BasalMetabolicRateRecordTest.java | 593 .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/ |
D | BackupRestoreE2ETest.java | 156 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/ |
D | HealthConnectManagerTest.java | 2058 .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/ |
D | DataFactory.java | 149 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/ |
D | HealthConnectChangeLogsTests.java | 23 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()
|