Home
last modified time | relevance | path

Searched refs:UpsertTableRequest (Results 1 – 25 of 29) sorted by relevance

12

/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/request/
DUpsertTableRequest.java44 public class UpsertTableRequest { class
52 private List<UpsertTableRequest> mChildTableRequests = Collections.emptyList();
64 public UpsertTableRequest(@NonNull String table, @NonNull ContentValues contentValues) { in UpsertTableRequest() method in UpsertTableRequest
69 public UpsertTableRequest( in UpsertTableRequest() method in UpsertTableRequest
87 public UpsertTableRequest withParentKey(long rowId) { in withParentKey()
98 public UpsertTableRequest setParentColumnForChildTables(@Nullable String parentCol) { in setParentColumnForChildTables()
104 public UpsertTableRequest setRequiresUpdateClause(@NonNull IRequiresUpdate requiresUpdate) { in setRequiresUpdateClause()
127 public List<UpsertTableRequest> getChildTableRequests() { in getChildTableRequests()
132 public UpsertTableRequest setChildTableRequests( in setChildTableRequests()
133 @NonNull List<UpsertTableRequest> childTableRequests) { in setChildTableRequests()
[all …]
DUpsertTransactionRequest.java63 @NonNull private final List<UpsertTableRequest> mUpsertRequests = new ArrayList<>();
64 private final List<UpsertTableRequest> mAccessLogs = new ArrayList<>();
163 public List<UpsertTableRequest> getAccessLogs() { in getAccessLogs()
168 public List<UpsertTableRequest> getUpsertRequests() { in getUpsertRequests()
194 UpsertTableRequest request = in addRequest()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/
DTransactionManager.java62 import com.android.server.healthconnect.storage.request.UpsertTableRequest;
148 UpsertTableRequest upsertTableRequest = in upsertMedicalResources()
184 for (UpsertTableRequest upsertRequest : request.getUpsertRequests()) { in insertAll()
193 for (UpsertTableRequest insertRequestsForChangeLog : in insertAll()
197 for (UpsertTableRequest modificationChangelog : in insertAll()
202 for (UpsertTableRequest insertRequestsForAccessLogs : request.getAccessLogs()) { in insertAll()
218 public void insertAll(@NonNull List<UpsertTableRequest> requests) throws SQLiteException { in insertAll()
222 for (UpsertTableRequest request : requests) { in insertAll()
236 public void insertOrReplaceAll(@NonNull List<UpsertTableRequest> upsertTableRequests) in insertOrReplaceAll()
247 public void insertOrIgnoreOnConflict(@NonNull List<UpsertTableRequest> upsertTableRequests) { in insertOrIgnoreOnConflict()
[all …]
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DPlannedExerciseSessionRecordHelper.java78 import com.android.server.healthconnect.storage.request.UpsertTableRequest;
403 List<UpsertTableRequest> getChildTableUpsertRequests( in getChildTableUpsertRequests()
405 List<UpsertTableRequest> blockUpsertRequests = new ArrayList<>(); in getChildTableUpsertRequests()
413 private UpsertTableRequest getBlockUpsertRequest(PlannedExerciseBlockInternal exerciseBlock) { in getBlockUpsertRequest()
417 UpsertTableRequest blockUpsertRequest = in getBlockUpsertRequest()
418 new UpsertTableRequest( in getBlockUpsertRequest()
422 List<UpsertTableRequest> stepUpsertRequests = new ArrayList<>(); in getBlockUpsertRequest()
431 private UpsertTableRequest getStepUpsert(PlannedExerciseStepInternal exerciseStep) { in getStepUpsert()
437 UpsertTableRequest stepUpsertRequest = in getStepUpsert()
438 new UpsertTableRequest(PLANNED_EXERCISE_SESSION_STEPS_TABLE_NAME, stepContentValues) in getStepUpsert()
[all …]
DMigrationEntityHelper.java20 import static com.android.server.healthconnect.storage.request.UpsertTableRequest.TYPE_STRING;
32 import com.android.server.healthconnect.storage.request.UpsertTableRequest;
75 public static UpsertTableRequest getInsertRequest(@NonNull String entityId) { in getInsertRequest()
78 return new UpsertTableRequest( in getInsertRequest()
DPreferenceHelper.java19 import static com.android.server.healthconnect.storage.request.UpsertTableRequest.TYPE_STRING;
33 import com.android.server.healthconnect.storage.request.UpsertTableRequest;
68 new UpsertTableRequest( in insertOrReplacePreference()
83 List<UpsertTableRequest> requests = new ArrayList<>(); in insertOrReplacePreferencesTransaction()
87 new UpsertTableRequest( in insertOrReplacePreferencesTransaction()
DActivityDateHelper.java36 import com.android.server.healthconnect.storage.request.UpsertTableRequest;
82 List<UpsertTableRequest> upsertTableRequests = new ArrayList<>(); in insertRecordDate()
118 List<UpsertTableRequest> upsertTableRequests = new ArrayList<>(); in reSyncByRecordTypeIds()
208 public static UpsertTableRequest getUpsertTableRequest(int recordTypeId, long epochDays) { in getUpsertTableRequest()
209 return new UpsertTableRequest(TABLE_NAME, getContentValues(recordTypeId, epochDays)); in getUpsertTableRequest()
213 public static UpsertTableRequest getUpsertTableRequest(RecordInternal<?> recordInternal) { in getUpsertTableRequest()
DSeriesRecordHelper.java31 import com.android.server.healthconnect.storage.request.UpsertTableRequest;
60 final List<UpsertTableRequest> getChildTableUpsertRequests(@NonNull T record) { in getChildTableUpsertRequests()
62 List<UpsertTableRequest> requests = new ArrayList<>(samples.size()); in getChildTableUpsertRequests()
68 new UpsertTableRequest(getSeriesDataTableName(), contentValues) in getChildTableUpsertRequests()
DExerciseLapRecordHelper.java35 import com.android.server.healthconnect.storage.request.UpsertTableRequest;
62 static List<UpsertTableRequest> getLapsUpsertRequests(List<ExerciseLapInternal> laps) { in getLapsUpsertRequests()
63 List<UpsertTableRequest> requests = new ArrayList<>(laps.size()); in getLapsUpsertRequests()
69 new UpsertTableRequest(EXERCISE_LAPS_RECORD_TABLE_NAME, contentValues) in getLapsUpsertRequests()
DExerciseRouteRecordHelper.java32 import com.android.server.healthconnect.storage.request.UpsertTableRequest;
71 static List<UpsertTableRequest> getRouteUpsertRequests(ExerciseRouteInternal route) { in getRouteUpsertRequests()
72 List<UpsertTableRequest> requests = new ArrayList<>(route.getRouteLocations().size()); in getRouteUpsertRequests()
79 new UpsertTableRequest( in getRouteUpsertRequests()
DSleepStageRecordHelper.java38 import com.android.server.healthconnect.storage.request.UpsertTableRequest;
82 static List<UpsertTableRequest> getStagesUpsertRequests(List<SleepStageInternal> stages) { in getStagesUpsertRequests()
83 List<UpsertTableRequest> requests = new ArrayList<>(stages.size()); in getStagesUpsertRequests()
89 new UpsertTableRequest(SLEEP_STAGES_RECORD_TABLE_NAME, contentValues) in getStagesUpsertRequests()
DExerciseSegmentRecordHelper.java37 import com.android.server.healthconnect.storage.request.UpsertTableRequest;
66 static List<UpsertTableRequest> getSegmentsUpsertRequests( in getSegmentsUpsertRequests()
68 List<UpsertTableRequest> requests = new ArrayList<>(segments.size()); in getSegmentsUpsertRequests()
74 new UpsertTableRequest( in getSegmentsUpsertRequests()
DRecordHelper.java65 import com.android.server.healthconnect.storage.request.UpsertTableRequest;
100 new Pair<>(DEDUPE_HASH_COLUMN_NAME, UpsertTableRequest.TYPE_BLOB),
101 new Pair<>(UUID_COLUMN_NAME, UpsertTableRequest.TYPE_BLOB));
238 public UpsertTableRequest getUpsertTableRequest(RecordInternal<?> recordInternal) { in getUpsertTableRequest()
244 public UpsertTableRequest getUpsertTableRequest( in getUpsertTableRequest()
249 UpsertTableRequest upsertTableRequest = in getUpsertTableRequest()
250 new UpsertTableRequest(getMainTableName(), upsertValues, UNIQUE_COLUMNS_INFO) in getUpsertTableRequest()
252 new UpsertTableRequest.IRequiresUpdate() { in getUpsertTableRequest()
257 UpsertTableRequest request) { in getUpsertTableRequest()
676 List<UpsertTableRequest> getChildTableUpsertRequests(T record) { in getChildTableUpsertRequests()
[all …]
DAccessLogsHelper.java40 import com.android.server.healthconnect.storage.request.UpsertTableRequest;
124 UpsertTableRequest request = in addAccessLog()
130 public static UpsertTableRequest getUpsertTableRequest( in getUpsertTableRequest()
141 return new UpsertTableRequest(TABLE_NAME, contentValues); in getUpsertTableRequest()
DHealthDataCategoryPriorityHelper.java23 import static com.android.server.healthconnect.storage.request.UpsertTableRequest.TYPE_STRING;
49 import com.android.server.healthconnect.storage.request.UpsertTableRequest;
129 new UpsertTableRequest( in appendToPriorityList()
257 new UpsertTableRequest( in setPriorityOrder()
342 UpsertTableRequest request, in safelyUpdateDBAndUpdateCache()
498 new UpsertTableRequest( in maybeRemoveAppFromPriorityListInternal()
568 new UpsertTableRequest( in updateTableWithNewPriorityList()
DAppInfoHelper.java22 import static com.android.server.healthconnect.storage.request.UpsertTableRequest.TYPE_STRING;
60 import com.android.server.healthconnect.storage.request.UpsertTableRequest;
541 UpsertTableRequest upsertRequestForAppInfoUpdate = in updateAppInfoRecordTypesUsedSync()
542 new UpsertTableRequest( in updateAppInfoRecordTypesUsedSync()
622 new UpsertTableRequest( in insertIfNotPresent()
636 UpsertTableRequest upsertTableRequest = in updateIfPresent()
637 new UpsertTableRequest( in updateIfPresent()
DMedicalResourceHelper.java51 import com.android.server.healthconnect.storage.request.UpsertTableRequest;
75 List.of(new Pair<>(UUID_COLUMN_NAME, UpsertTableRequest.TYPE_BLOB));
149 public static UpsertTableRequest getUpsertTableRequest( in getUpsertTableRequest()
152 return new UpsertTableRequest(getMainTableName(), contentValues, UNIQUE_COLUMNS_INFO); in getUpsertTableRequest()
DChangeLogsRequestHelper.java41 import com.android.server.healthconnect.storage.request.UpsertTableRequest;
100 .insert(new UpsertTableRequest(TABLE_NAME, contentValues))); in getToken()
164 .insert(new UpsertTableRequest(TABLE_NAME, contentValues))); in getNextPageToken()
DSkinTemperatureRecordHelper.java48 import com.android.server.healthconnect.storage.request.UpsertTableRequest;
110 List<UpsertTableRequest> getChildTableUpsertRequests( in getChildTableUpsertRequests()
120 return new UpsertTableRequest(getSeriesDataTableName(), contentValues) in getChildTableUpsertRequests()
DChangeLogsHelper.java50 import com.android.server.healthconnect.storage.request.UpsertTableRequest;
274 public List<UpsertTableRequest> getUpsertTableRequests() { in getUpsertTableRequests()
275 List<UpsertTableRequest> requests = in getUpsertTableRequests()
293 requests.add(new UpsertTableRequest(TABLE_NAME, contentValues)); in getUpsertTableRequests()
DSleepSessionRecordHelper.java38 import com.android.server.healthconnect.storage.request.UpsertTableRequest;
130 List<UpsertTableRequest> getChildTableUpsertRequests( in getChildTableUpsertRequests()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/
DPriorityMigrationHelper.java19 import static com.android.server.healthconnect.storage.request.UpsertTableRequest.TYPE_STRING;
37 import com.android.server.healthconnect.storage.request.UpsertTableRequest;
155 UpsertTableRequest request = in populatePreMigrationTable()
156 new UpsertTableRequest( in populatePreMigrationTable()
172 UpsertTableRequest request = in populatePreMigrationTable()
173 new UpsertTableRequest( in populatePreMigrationTable()
DDataMigrationManager.java43 import com.android.server.healthconnect.storage.request.UpsertTableRequest;
149 private UpsertTableRequest parseRecord(@NonNull RecordMigrationPayload payload) { in parseRecord()
242 final UpsertTableRequest request = MigrationEntityHelper.getInsertRequest(entityId); in insertEntityIdIfNotPresent()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/
DChangeLogsHelperTest.java28 import com.android.server.healthconnect.storage.request.UpsertTableRequest;
43 List<UpsertTableRequest> requests = changeLogs.getUpsertTableRequests(); in changeLogs_getUpsertTableRequests_listLessThanDefaultPageSize()
59 List<UpsertTableRequest> requests = changeLogs.getUpsertTableRequests(); in changeLogs_getUpsertTableRequests_listMoreThanDefaultPageSize()
DTransactionTestUtils.java49 import com.android.server.healthconnect.storage.request.UpsertTableRequest;
78 new UpsertTableRequest( in insertApp()
164 new UpsertTableRequest(AccessLogsHelper.TABLE_NAME, contentValues)); in insertAccessLog()
175 new UpsertTableRequest(ChangeLogsHelper.TABLE_NAME, contentValues)); in insertChangeLog()

12