/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/request/ |
D | UpsertTransactionRequest.java | 119 for (RecordInternal<?> recordInternal : recordInternals) { in UpsertTransactionRequest() 121 StorageUtils.addPackageNameTo(recordInternal, packageName); in UpsertTransactionRequest() 124 .populateAppInfoId(recordInternal, context, /* requireAllFields= */ true); in UpsertTransactionRequest() 125 DeviceInfoHelper.getInstance().populateDeviceInfoId(recordInternal); in UpsertTransactionRequest() 128 if (useProvidedUuid && recordInternal.getUuid() != null) { in UpsertTransactionRequest() 133 addNameBasedUUIDTo(recordInternal); in UpsertTransactionRequest() 138 StorageUtils.updateNameBasedUUIDIfRequired(recordInternal); in UpsertTransactionRequest() 140 mRecordTypes.add(recordInternal.getRecordType()); in UpsertTransactionRequest() 141 recordInternal.setLastModifiedTime(Instant.now().toEpochMilli()); in UpsertTransactionRequest() 142 addRequest(recordInternal, isInsertRequest); in UpsertTransactionRequest() [all …]
|
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/ |
D | NutritionRecord.java | 1981 NutritionRecordInternal recordInternal = in toRecordInternal() local 1995 recordInternal.setStartTime(getStartTime().toEpochMilli()); in toRecordInternal() 1996 recordInternal.setEndTime(getEndTime().toEpochMilli()); in toRecordInternal() 1997 recordInternal.setStartZoneOffset(getStartZoneOffset().getTotalSeconds()); in toRecordInternal() 1998 recordInternal.setEndZoneOffset(getEndZoneOffset().getTotalSeconds()); in toRecordInternal() 2001 recordInternal.setUnsaturatedFat(getUnsaturatedFat().getInGrams()); in toRecordInternal() 2004 recordInternal.setPotassium(getPotassium().getInGrams()); in toRecordInternal() 2007 recordInternal.setThiamin(getThiamin().getInGrams()); in toRecordInternal() 2009 recordInternal.setMealType(getMealType()); in toRecordInternal() 2011 recordInternal.setTransFat(getTransFat().getInGrams()); in toRecordInternal() [all …]
|
D | ExerciseSessionRecord.java | 426 ExerciseSessionRecordInternal recordInternal = in toRecordInternal() local 439 recordInternal.setStartTime(getStartTime().toEpochMilli()); in toRecordInternal() 440 recordInternal.setEndTime(getEndTime().toEpochMilli()); in toRecordInternal() 441 recordInternal.setStartZoneOffset(getStartZoneOffset().getTotalSeconds()); in toRecordInternal() 442 recordInternal.setEndZoneOffset(getEndZoneOffset().getTotalSeconds()); in toRecordInternal() 445 recordInternal.setNotes(getNotes().toString()); in toRecordInternal() 449 recordInternal.setTitle(getTitle().toString()); in toRecordInternal() 452 recordInternal.setHasRoute(hasRoute()); in toRecordInternal() 454 recordInternal.setRoute(getRoute().toRouteInternal()); in toRecordInternal() 458 recordInternal.setExerciseLaps( in toRecordInternal() [all …]
|
D | PlannedExerciseSessionRecord.java | 427 PlannedExerciseSessionRecordInternal recordInternal = in toRecordInternal() local 440 recordInternal.setStartTime(getStartTime().toEpochMilli()); in toRecordInternal() 441 recordInternal.setEndTime(getEndTime().toEpochMilli()); in toRecordInternal() 442 recordInternal.setStartZoneOffset(getStartZoneOffset().getTotalSeconds()); in toRecordInternal() 443 recordInternal.setEndZoneOffset(getEndZoneOffset().getTotalSeconds()); in toRecordInternal() 445 recordInternal.setNotes(getNotes().toString()); in toRecordInternal() 448 recordInternal.setTitle(getTitle().toString()); in toRecordInternal() 450 recordInternal.setExerciseType(getExerciseType()); in toRecordInternal() 451 recordInternal.setHasExplicitTime(hasExplicitTime()); in toRecordInternal() 456 recordInternal.setCompletedExerciseSessionId( in toRecordInternal() [all …]
|
D | MindfulnessSessionRecord.java | 311 MindfulnessSessionRecordInternal recordInternal = in toRecordInternal() local 324 recordInternal.setStartTime(getStartTime().toEpochMilli()); in toRecordInternal() 325 recordInternal.setEndTime(getEndTime().toEpochMilli()); in toRecordInternal() 326 recordInternal.setStartZoneOffset(getStartZoneOffset().getTotalSeconds()); in toRecordInternal() 327 recordInternal.setEndZoneOffset(getEndZoneOffset().getTotalSeconds()); in toRecordInternal() 328 recordInternal.setMindfulnessSessionType(getMindfulnessSessionType()); in toRecordInternal() 330 recordInternal.setTitle(getTitle().toString()); in toRecordInternal() 333 recordInternal.setNotes(getNotes().toString()); in toRecordInternal() 335 return recordInternal; in toRecordInternal()
|
D | StepsRecord.java | 200 StepsRecordInternal recordInternal = in toRecordInternal() local 213 recordInternal.setStartTime(getStartTime().toEpochMilli()); in toRecordInternal() 214 recordInternal.setEndTime(getEndTime().toEpochMilli()); in toRecordInternal() 215 recordInternal.setStartZoneOffset(getStartZoneOffset().getTotalSeconds()); in toRecordInternal() 216 recordInternal.setEndZoneOffset(getEndZoneOffset().getTotalSeconds()); in toRecordInternal() 217 recordInternal.setCount((int) mCount); in toRecordInternal() 218 return recordInternal; in toRecordInternal()
|
D | FloorsClimbedRecord.java | 208 FloorsClimbedRecordInternal recordInternal = in toRecordInternal() local 221 recordInternal.setStartTime(getStartTime().toEpochMilli()); in toRecordInternal() 222 recordInternal.setEndTime(getEndTime().toEpochMilli()); in toRecordInternal() 223 recordInternal.setStartZoneOffset(getStartZoneOffset().getTotalSeconds()); in toRecordInternal() 224 recordInternal.setEndZoneOffset(getEndZoneOffset().getTotalSeconds()); in toRecordInternal() 225 recordInternal.setFloors(mFloors); in toRecordInternal() 226 return recordInternal; in toRecordInternal()
|
D | ActiveCaloriesBurnedRecord.java | 213 ActiveCaloriesBurnedRecordInternal recordInternal = in toRecordInternal() local 226 recordInternal.setStartTime(getStartTime().toEpochMilli()); in toRecordInternal() 227 recordInternal.setEndTime(getEndTime().toEpochMilli()); in toRecordInternal() 228 recordInternal.setStartZoneOffset(getStartZoneOffset().getTotalSeconds()); in toRecordInternal() 229 recordInternal.setEndZoneOffset(getEndZoneOffset().getTotalSeconds()); in toRecordInternal() 230 recordInternal.setEnergy(mEnergy.getInCalories()); in toRecordInternal() 231 return recordInternal; in toRecordInternal()
|
D | HydrationRecord.java | 210 HydrationRecordInternal recordInternal = in toRecordInternal() local 223 recordInternal.setStartTime(getStartTime().toEpochMilli()); in toRecordInternal() 224 recordInternal.setEndTime(getEndTime().toEpochMilli()); in toRecordInternal() 225 recordInternal.setStartZoneOffset(getStartZoneOffset().getTotalSeconds()); in toRecordInternal() 226 recordInternal.setEndZoneOffset(getEndZoneOffset().getTotalSeconds()); in toRecordInternal() 227 recordInternal.setVolume(mVolume.getInLiters()); in toRecordInternal() 228 return recordInternal; in toRecordInternal()
|
D | WheelchairPushesRecord.java | 217 WheelchairPushesRecordInternal recordInternal = in toRecordInternal() local 230 recordInternal.setStartTime(getStartTime().toEpochMilli()); in toRecordInternal() 231 recordInternal.setEndTime(getEndTime().toEpochMilli()); in toRecordInternal() 232 recordInternal.setStartZoneOffset(getStartZoneOffset().getTotalSeconds()); in toRecordInternal() 233 recordInternal.setEndZoneOffset(getEndZoneOffset().getTotalSeconds()); in toRecordInternal() 234 recordInternal.setCount((int) mCount); in toRecordInternal() 235 return recordInternal; in toRecordInternal()
|
D | ElevationGainedRecord.java | 212 ElevationGainedRecordInternal recordInternal = in toRecordInternal() local 225 recordInternal.setStartTime(getStartTime().toEpochMilli()); in toRecordInternal() 226 recordInternal.setEndTime(getEndTime().toEpochMilli()); in toRecordInternal() 227 recordInternal.setStartZoneOffset(getStartZoneOffset().getTotalSeconds()); in toRecordInternal() 228 recordInternal.setEndZoneOffset(getEndZoneOffset().getTotalSeconds()); in toRecordInternal() 229 recordInternal.setElevation(mElevation.getInMeters()); in toRecordInternal() 230 return recordInternal; in toRecordInternal()
|
D | DistanceRecord.java | 218 DistanceRecordInternal recordInternal = in toRecordInternal() local 231 recordInternal.setStartTime(getStartTime().toEpochMilli()); in toRecordInternal() 232 recordInternal.setEndTime(getEndTime().toEpochMilli()); in toRecordInternal() 233 recordInternal.setStartZoneOffset(getStartZoneOffset().getTotalSeconds()); in toRecordInternal() 234 recordInternal.setEndZoneOffset(getEndZoneOffset().getTotalSeconds()); in toRecordInternal() 235 recordInternal.setDistance(mDistance.getInMeters()); in toRecordInternal() 236 return recordInternal; in toRecordInternal()
|
D | BloodGlucoseRecord.java | 332 BloodGlucoseRecordInternal recordInternal = in toRecordInternal() local 345 recordInternal.setTime(getTime().toEpochMilli()); in toRecordInternal() 346 recordInternal.setZoneOffset(getZoneOffset().getTotalSeconds()); in toRecordInternal() 347 recordInternal.setSpecimenSource(mSpecimenSource); in toRecordInternal() 348 recordInternal.setLevel(mLevel.getInMillimolesPerLiter()); in toRecordInternal() 349 recordInternal.setRelationToMeal(mRelationToMeal); in toRecordInternal() 350 recordInternal.setMealType(mMealType); in toRecordInternal() 351 return recordInternal; in toRecordInternal()
|
D | MenstruationPeriodRecord.java | 153 MenstruationPeriodRecordInternal recordInternal = in toRecordInternal() local 166 recordInternal.setStartTime(getStartTime().toEpochMilli()); in toRecordInternal() 167 recordInternal.setEndTime(getEndTime().toEpochMilli()); in toRecordInternal() 168 recordInternal.setStartZoneOffset(getStartZoneOffset().getTotalSeconds()); in toRecordInternal() 169 recordInternal.setEndZoneOffset(getEndZoneOffset().getTotalSeconds()); in toRecordInternal() 170 return recordInternal; in toRecordInternal()
|
D | TotalCaloriesBurnedRecord.java | 220 TotalCaloriesBurnedRecordInternal recordInternal = in toRecordInternal() local 233 recordInternal.setStartTime(getStartTime().toEpochMilli()); in toRecordInternal() 234 recordInternal.setEndTime(getEndTime().toEpochMilli()); in toRecordInternal() 235 recordInternal.setStartZoneOffset(getStartZoneOffset().getTotalSeconds()); in toRecordInternal() 236 recordInternal.setEndZoneOffset(getEndZoneOffset().getTotalSeconds()); in toRecordInternal() 237 recordInternal.setEnergy(mEnergy.getInCalories()); in toRecordInternal() 238 return recordInternal; in toRecordInternal()
|
D | SleepSessionRecord.java | 423 SleepSessionRecordInternal recordInternal = in toRecordInternal() local 436 recordInternal.setStartTime(getStartTime().toEpochMilli()); in toRecordInternal() 437 recordInternal.setEndTime(getEndTime().toEpochMilli()); in toRecordInternal() 438 recordInternal.setStartZoneOffset(getStartZoneOffset().getTotalSeconds()); in toRecordInternal() 439 recordInternal.setEndZoneOffset(getEndZoneOffset().getTotalSeconds()); in toRecordInternal() 440 recordInternal.setSleepStages( in toRecordInternal() 444 recordInternal.setNotes(getNotes().toString()); in toRecordInternal() 448 recordInternal.setTitle(getTitle().toString()); in toRecordInternal() 450 return recordInternal; in toRecordInternal()
|
D | SkinTemperatureRecord.java | 201 SkinTemperatureRecordInternal recordInternal = in toRecordInternal() local 215 recordInternal.setBaseline(getBaseline()); in toRecordInternal() 218 recordInternal.setSamples( in toRecordInternal() 227 recordInternal.setMeasurementLocation(getMeasurementLocation()); in toRecordInternal() 228 recordInternal.setStartTime(getStartTime().toEpochMilli()); in toRecordInternal() 229 recordInternal.setEndTime(getEndTime().toEpochMilli()); in toRecordInternal() 230 recordInternal.setStartZoneOffset(getStartZoneOffset().getTotalSeconds()); in toRecordInternal() 231 recordInternal.setEndZoneOffset(getEndZoneOffset().getTotalSeconds()); in toRecordInternal() 233 return recordInternal; in toRecordInternal()
|
D | BasalBodyTemperatureRecord.java | 180 BasalBodyTemperatureRecordInternal recordInternal = in toRecordInternal() local 193 recordInternal.setTime(getTime().toEpochMilli()); in toRecordInternal() 194 recordInternal.setZoneOffset(getZoneOffset().getTotalSeconds()); in toRecordInternal() 195 recordInternal.setMeasurementLocation(mMeasurementLocation); in toRecordInternal() 196 recordInternal.setTemperature(mTemperature.getInCelsius()); in toRecordInternal() 197 return recordInternal; in toRecordInternal()
|
D | BodyTemperatureRecord.java | 180 BodyTemperatureRecordInternal recordInternal = in toRecordInternal() local 193 recordInternal.setTime(getTime().toEpochMilli()); in toRecordInternal() 194 recordInternal.setZoneOffset(getZoneOffset().getTotalSeconds()); in toRecordInternal() 195 recordInternal.setMeasurementLocation(mMeasurementLocation); in toRecordInternal() 196 recordInternal.setTemperature(mTemperature.getInCelsius()); in toRecordInternal() 197 return recordInternal; in toRecordInternal()
|
D | BloodPressureRecord.java | 405 BloodPressureRecordInternal recordInternal = in toRecordInternal() local 418 recordInternal.setTime(getTime().toEpochMilli()); in toRecordInternal() 419 recordInternal.setZoneOffset(getZoneOffset().getTotalSeconds()); in toRecordInternal() 420 recordInternal.setMeasurementLocation(mMeasurementLocation); in toRecordInternal() 421 recordInternal.setSystolic(mSystolic.getInMillimetersOfMercury()); in toRecordInternal() 422 recordInternal.setDiastolic(mDiastolic.getInMillimetersOfMercury()); in toRecordInternal() 423 recordInternal.setBodyPosition(mBodyPosition); in toRecordInternal() 424 return recordInternal; in toRecordInternal()
|
D | Vo2MaxRecord.java | 229 Vo2MaxRecordInternal recordInternal = in toRecordInternal() local 242 recordInternal.setTime(getTime().toEpochMilli()); in toRecordInternal() 243 recordInternal.setZoneOffset(getZoneOffset().getTotalSeconds()); in toRecordInternal() 244 recordInternal.setMeasurementMethod(mMeasurementMethod); in toRecordInternal() 245 recordInternal.setVo2MillilitersPerMinuteKilogram(mVo2MillilitersPerMinuteKilogram); in toRecordInternal() 246 return recordInternal; in toRecordInternal()
|
D | HeartRateVariabilityRmssdRecord.java | 143 HeartRateVariabilityRmssdRecordInternal recordInternal = in toRecordInternal() local 156 recordInternal.setTime(getTime().toEpochMilli()); in toRecordInternal() 157 recordInternal.setZoneOffset(getZoneOffset().getTotalSeconds()); in toRecordInternal() 158 recordInternal.setHeartRateVariabilityMillis(mHeartRateVariabilityMillis); in toRecordInternal() 159 return recordInternal; in toRecordInternal()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/utils/ |
D | InternalExternalRecordConverter.java | 68 RecordInternal<?> recordInternal; in newInternalRecord() local 70 recordInternal = recordClass.getConstructor().newInstance(); in newInternalRecord() 78 return recordInternal; in newInternalRecord() 87 for (RecordInternal<?> recordInternal : recordInternals) { in getExternalRecords() 89 externalRecordList.add(recordInternal.toExternalRecord()); in getExternalRecords()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/ |
D | RecordHelper.java | 238 public UpsertTableRequest getUpsertTableRequest(RecordInternal<?> recordInternal) { in getUpsertTableRequest() argument 239 return getUpsertTableRequest(recordInternal, null); in getUpsertTableRequest() 245 RecordInternal<?> recordInternal, in getUpsertTableRequest() argument 247 ContentValues upsertValues = getContentValues((T) recordInternal); in getUpsertTableRequest() 287 .setChildTableRequests(getChildTableUpsertRequests((T) recordInternal)) in getUpsertTableRequest() 288 .setPostUpsertCommands(getPostUpsertCommands(recordInternal)) in getUpsertTableRequest() 668 @NonNull ContentValues contentValues, @NonNull T recordInternal); in populateContentValues() argument 674 abstract void populateRecordValue(@NonNull Cursor cursor, @NonNull T recordInternal); in populateRecordValue() argument 820 private ContentValues getContentValues(@NonNull T recordInternal) { in getContentValues() argument 824 UUID_COLUMN_NAME, StorageUtils.convertUUIDToBytes(recordInternal.getUuid())); in getContentValues() [all …]
|
D | IntervalRecordHelper.java | 193 final void populateRecordValue(@NonNull Cursor cursor, @NonNull T recordInternal) { in populateRecordValue() argument 194 recordInternal.setStartTime(getCursorLong(cursor, START_TIME_COLUMN_NAME)); in populateRecordValue() 195 recordInternal.setStartZoneOffset(getCursorInt(cursor, START_ZONE_OFFSET_COLUMN_NAME)); in populateRecordValue() 196 recordInternal.setEndTime(getCursorLong(cursor, END_TIME_COLUMN_NAME)); in populateRecordValue() 197 recordInternal.setEndZoneOffset(getCursorInt(cursor, END_ZONE_OFFSET_COLUMN_NAME)); in populateRecordValue() 198 populateSpecificRecordValue(cursor, recordInternal); in populateRecordValue() 202 abstract void populateSpecificRecordValue(@NonNull Cursor cursor, @NonNull T recordInternal); in populateSpecificRecordValue() argument
|