Home
last modified time | relevance | path

Searched refs:dataOrigin (Results 1 – 25 of 60) sorted by relevance

123

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DDeleteUsingFiltersRequestTest.java48 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()
DSharedMemoryTest.java91 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()
DHealthConnectManagerTest.java2138 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/
DChangeLogTokenRequest.java82 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/
DMetadata.java104 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/
DUiTestUtils.kt277 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/
DHealthConnectDeviceTest.java465 .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/
DDataFactory.java121 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()
DToStringUtils.java123 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/
DDeleteUsingFiltersRequest.java95 public Builder addDataOrigin(@NonNull DataOrigin dataOrigin) { in addDataOrigin() argument
96 Objects.requireNonNull(dataOrigin); in addDataOrigin()
98 mDataOrigins.add(dataOrigin); in addDataOrigin()
DReadRecordsRequestUsingFilters.java137 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/
DPriorityMigrationPayload.java122 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/
DGeneralUtils.kt48 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/
DApiExtensions.kt8 return this.dataOrigins.any { dataOrigin -> dataOrigin.packageName == packageName } in <lambda>() method
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissiontypes/api/
DLoadPriorityListUseCase.kt49 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/
DExerciseRouteViewModel.kt73 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/
DBackupRestoreE2ETest.java156 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/
DSeedData.kt170 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/
DDataMigrationManager.java278 .map(dataOrigin -> dataOrigin.getPackageName()) in migratePriority()
/packages/modules/HealthFitness/framework/java/android/health/connect/aidl/
DAggregateDataResponseParcel.java290 for (DataOrigin dataOrigin : dataOrigins) { in writeToParcel()
291 packageNames.add(dataOrigin.getPackageName()); in writeToParcel()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DMenstruationPeriodFormatter.kt75 return appInfoReader.getAppMetadata(record.metadata.dataOrigin.packageName).appName in getAppName()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ratelimiter/
DRateLimiterTest.java164 DataOrigin dataOrigin = in exceedRecordMemoryQuota() local
167 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in exceedRecordMemoryQuota()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DTotalCaloriesBurnedRecordTest.java489 DataOrigin dataOrigin = in getCompleteTotalCaloriesBurnedRecord() local
492 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteTotalCaloriesBurnedRecord()
DMenstruationFlowRecordTest.java548 DataOrigin dataOrigin = in getCompleteMenstruationFlowRecord() local
551 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteMenstruationFlowRecord()
DSexualActivityRecordTest.java531 DataOrigin dataOrigin = in getCompleteSexualActivityRecord() local
534 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteSexualActivityRecord()

123