/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ |
D | DeleteUsingFiltersRequestTest.java | 48 DataOrigin dataOrigin = new DataOrigin.Builder().setPackageName("test_package").build(); in testCreateDeleteUsingFiltersRequest() local 54 .addDataOrigin(dataOrigin) in testCreateDeleteUsingFiltersRequest() 59 assertThat(deleteUsingFiltersRequest.getDataOrigins()).isEqualTo(Set.of(dataOrigin)); in testCreateDeleteUsingFiltersRequest() 71 DataOrigin dataOrigin = new DataOrigin.Builder().setPackageName("test_package").build(); in testCreateDeleteUsingFiltersRequest_clearDataOriginsAndRecords() local 77 .addDataOrigin(dataOrigin) in testCreateDeleteUsingFiltersRequest_clearDataOriginsAndRecords()
|
D | SharedMemoryTest.java | 91 DataOrigin dataOrigin = in insertRecordsAndReadRecordsByFilter_viaSharedMemory_recordsEqual() local 96 Metadata metadata = new Metadata.Builder().setDataOrigin(dataOrigin).build(); in insertRecordsAndReadRecordsByFilter_viaSharedMemory_recordsEqual() 224 DataOrigin dataOrigin = in getChangeLogs_viaSharedMemory_recordsMatch() local 228 Metadata metadata = new Metadata.Builder().setDataOrigin(dataOrigin).build(); in getChangeLogs_viaSharedMemory_recordsMatch()
|
D | HealthConnectManagerTest.java | 2138 DataOrigin dataOrigin = getDataOrigin(packageName); in getStepsRecord() local 2140 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getStepsRecord() 2172 DataOrigin dataOrigin = getDataOrigin(); in getHeartRateRecord() local 2174 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getHeartRateRecord() 2191 DataOrigin dataOrigin = getDataOrigin(); in getBasalMetabolicRateRecord() local 2193 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getBasalMetabolicRateRecord() 2203 DataOrigin dataOrigin = getDataOrigin(); in getHydrationRecord() local 2205 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getHydrationRecord() 2216 DataOrigin dataOrigin = getDataOrigin(); in getNutritionRecord() local 2218 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getNutritionRecord()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/changelog/ |
D | ChangeLogTokenRequest.java | 82 Set<DataOrigin> dataOrigin = new ArraySet<>(); in ChangeLogTokenRequest() local 84 dataOrigin.add(new DataOrigin.Builder().setPackageName(packageName).build()); in ChangeLogTokenRequest() 86 mDataOriginFilters = dataOrigin; in ChangeLogTokenRequest() 170 (dataOrigin) -> packageNamesToFilter.add(dataOrigin.getPackageName())); in getPackageNames()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/ |
D | Metadata.java | 104 DataOrigin dataOrigin, in Metadata() argument 112 mDataOrigin = dataOrigin; in Metadata() 269 public Builder setDataOrigin(@NonNull DataOrigin dataOrigin) { in setDataOrigin() argument 270 Objects.requireNonNull(dataOrigin); in setDataOrigin() 272 mDataOrigin = dataOrigin; in setDataOrigin()
|
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/libs/HealthConnectTestLib/src/android/healthconnect/cts/lib/ |
D | UiTestUtils.kt | 277 val dataOrigin: DataOrigin = DataOrigin.Builder().setPackageName(packageName).build() in stepsRecord() constant 279 testMetadataBuilder.setDevice(TEST_DEVICE).setDataOrigin(dataOrigin) in stepsRecord() 290 val dataOrigin: DataOrigin = DataOrigin.Builder().setPackageName(packageName).build() in distanceRecord() constant 292 testMetadataBuilder.setDevice(TEST_DEVICE).setDataOrigin(dataOrigin) in distanceRecord() 300 val dataOrigin: DataOrigin = DataOrigin.Builder().setPackageName(packageName).build() in distanceRecord() constant 302 testMetadataBuilder.setDevice(TEST_DEVICE).setDataOrigin(dataOrigin) in distanceRecord()
|
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/device/src/android/healthconnect/cts/device/ |
D | HealthConnectDeviceTest.java | 465 .map(dataOrigin -> dataOrigin.getPackageName()) in testAggregateRecords_onlyWritePermissions_requestsOwnDataOnly_succeeds() 739 .map(dataOrigin -> dataOrigin.getPackageName()) in testRevokingOnlyOneCorrectPermissionDoesntRemoveAppFromPriorityList() 751 .map(dataOrigin -> dataOrigin.getPackageName()) in testRevokingOnlyOneCorrectPermissionDoesntRemoveAppFromPriorityList() 778 .map(dataOrigin -> dataOrigin.getPackageName()) in testRevokingAllCorrectPermissionsRemovesAppFromPriorityList() 792 .map(dataOrigin -> dataOrigin.getPackageName()) in testRevokingAllCorrectPermissionsRemovesAppFromPriorityList() 860 .map(dataOrigin -> dataOrigin.getPackageName()) in testAppWithManageHealthDataPermissionCanUpdatePriority() 866 .map(dataOrigin -> dataOrigin.getPackageName()) in testAppWithManageHealthDataPermissionCanUpdatePriority() 1005 .map(dataOrigin -> dataOrigin.getPackageName()) in testAggregationOutputForTotalStepsCountWithDataFromTwoAppsHavingDifferentPriority() 1011 .map(dataOrigin -> dataOrigin.getPackageName()) in testAggregationOutputForTotalStepsCountWithDataFromTwoAppsHavingDifferentPriority()
|
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/ |
D | DataFactory.java | 121 public static Metadata getMetadataForId(String id, DataOrigin dataOrigin) { in getMetadataForId() argument 122 return new Metadata.Builder().setId(id).setDataOrigin(dataOrigin).build(); in getMetadataForId() 131 public static Metadata getMetadataForClientId(String clientId, DataOrigin dataOrigin) { in getMetadataForClientId() argument 132 return new Metadata.Builder().setClientRecordId(clientId).setDataOrigin(dataOrigin).build(); in getMetadataForClientId() 144 public static Metadata getMetadata(DataOrigin dataOrigin) { in getMetadata() argument 145 return new Metadata.Builder().setDataOrigin(dataOrigin).build(); in getMetadata() 334 DataOrigin dataOrigin = new DataOrigin.Builder().setPackageName(packageName).build(); in getHeartRateRecord() local 339 .setDataOrigin(dataOrigin) in getHeartRateRecord() 461 DataOrigin dataOrigin = in getCompleteStepsRecord() local 468 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteStepsRecord()
|
D | ToStringUtils.java | 123 private static String dataOriginToString(@Nullable DataOrigin dataOrigin) { in dataOriginToString() argument 124 if (dataOrigin == null) { in dataOriginToString() 127 return "- packageName: " + dataOrigin.getPackageName(); in dataOriginToString()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/ |
D | DeleteUsingFiltersRequest.java | 95 public Builder addDataOrigin(@NonNull DataOrigin dataOrigin) { in addDataOrigin() argument 96 Objects.requireNonNull(dataOrigin); in addDataOrigin() 98 mDataOrigins.add(dataOrigin); in addDataOrigin()
|
D | ReadRecordsRequestUsingFilters.java | 137 public Builder<T> addDataOrigins(@NonNull DataOrigin dataOrigin) { in addDataOrigins() argument 138 Objects.requireNonNull(dataOrigin); in addDataOrigins() 139 mDataOrigins.add(dataOrigin); in addDataOrigins()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/migration/ |
D | PriorityMigrationPayload.java | 122 public Builder addDataOrigin(@NonNull DataOrigin dataOrigin) { in addDataOrigin() argument 123 requireNonNull(dataOrigin); in addDataOrigin() 124 mDataOrigins.add(dataOrigin); in addDataOrigin()
|
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/utils/ |
D | GeneralUtils.kt | 48 val dataOrigin = DataOrigin.Builder().setPackageName(context.packageName).build() in <lambda>() constant 51 .setDataOrigin(dataOrigin) in <lambda>() 59 val dataOrigin = DataOrigin.Builder().setPackageName(context.packageName).build() in <lambda>() constant 60 return Metadata.Builder().setDevice(device).setDataOrigin(dataOrigin).build() in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/ |
D | ApiExtensions.kt | 8 return this.dataOrigins.any { dataOrigin -> dataOrigin.packageName == packageName } in <lambda>() method
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissiontypes/api/ |
D | LoadPriorityListUseCase.kt | 49 return dataOriginPriorityOrderResponse.dataOriginsPriorityOrder.map { dataOrigin -> in <lambda>() method 50 appInfoReader.getAppMetadata(dataOrigin.packageName) in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/route/ |
D | ExerciseRouteViewModel.kt | 73 record.metadata.dataOrigin.packageName))) in getExerciseWithRoute() 128 if (packageName == session.metadata.dataOrigin.packageName) { in isSessionInaccessible()
|
/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/backuprestore/ |
D | BackupRestoreE2ETest.java | 156 DataOrigin dataOrigin = DataFactory.getDataOrigin(mContext.getPackageName()); in testBackupThenRestore_trainingPlans_expectDataIsRestoredCorrectly() local 158 metadataBuilder.setDataOrigin(dataOrigin); in testBackupThenRestore_trainingPlans_expectDataIsRestoredCorrectly() 322 DataOrigin dataOrigin = DataFactory.getDataOrigin(mContext.getPackageName()); in getCompleteActiveCaloriesBurnedRecord() local 324 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteActiveCaloriesBurnedRecord()
|
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/seed/ |
D | SeedData.kt | 170 val dataOrigin = DataOrigin.Builder().setPackageName(context.packageName).build() in <lambda>() constant 171 return Metadata.Builder().setDevice(device).setDataOrigin(dataOrigin).build() in <lambda>()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/ |
D | DataMigrationManager.java | 278 .map(dataOrigin -> dataOrigin.getPackageName()) in migratePriority()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/aidl/ |
D | AggregateDataResponseParcel.java | 290 for (DataOrigin dataOrigin : dataOrigins) { in writeToParcel() 291 packageNames.add(dataOrigin.getPackageName()); in writeToParcel()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/ |
D | MenstruationPeriodFormatter.kt | 75 return appInfoReader.getAppMetadata(record.metadata.dataOrigin.packageName).appName in getAppName()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ratelimiter/ |
D | RateLimiterTest.java | 164 DataOrigin dataOrigin = in exceedRecordMemoryQuota() local 167 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in exceedRecordMemoryQuota()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/ |
D | TotalCaloriesBurnedRecordTest.java | 489 DataOrigin dataOrigin = in getCompleteTotalCaloriesBurnedRecord() local 492 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteTotalCaloriesBurnedRecord()
|
D | MenstruationFlowRecordTest.java | 548 DataOrigin dataOrigin = in getCompleteMenstruationFlowRecord() local 551 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteMenstruationFlowRecord()
|
D | SexualActivityRecordTest.java | 531 DataOrigin dataOrigin = in getCompleteSexualActivityRecord() local 534 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteSexualActivityRecord()
|