Home
last modified time | relevance | path

Searched refs:CreateTableRequest (Results 1 – 25 of 30) sorted by relevance

12

/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/request/
DCreateTableRequest.java39 public final class CreateTableRequest { class
50 private List<CreateTableRequest> mChildTableRequests = Collections.emptyList();
53 public CreateTableRequest(String tableName, List<Pair<String, String>> columnInfo) { in CreateTableRequest() method in CreateTableRequest
63 public CreateTableRequest addForeignKey( in addForeignKey()
72 public CreateTableRequest createIndexOn(@NonNull String columnName) { in createIndexOn()
80 public List<CreateTableRequest> getChildTableRequests() { in getChildTableRequests()
85 public CreateTableRequest setChildTableRequests( in setChildTableRequests()
86 @NonNull List<CreateTableRequest> childCreateTableRequests) { in setChildTableRequests()
141 public CreateTableRequest addUniqueConstraints(List<String> columnNames) { in addUniqueConstraints()
165 public CreateTableRequest setGeneratedColumnInfo( in setGeneratedColumnInfo()
[all …]
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/request/
DCreateTableRequestTest.java33 private CreateTableRequest mCreateTableRequest;
44 mCreateTableRequest = new CreateTableRequest(TABLE_NAME, mColumnInfo); in setUp()
63 List<CreateTableRequest> childTables = new ArrayList<>(); in testCreateTable_getChildTableRequests()
66 childTables.add(new CreateTableRequest(tableName, mColumnInfo)); in testCreateTable_getChildTableRequests()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/
DMedicalDataSourceHelperTest.java32 import com.android.server.healthconnect.storage.request.CreateTableRequest;
50 CreateTableRequest expected = in getCreateTableRequest_correctResult()
51 new CreateTableRequest(MEDICAL_DATA_SOURCE_TABLE_NAME, columnInfo) in getCreateTableRequest_correctResult()
57 CreateTableRequest result = mMedicalDataSourceHelper.getCreateTableRequest(); in getCreateTableRequest_correctResult()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DIntervalRecordHelper.java33 import com.android.server.healthconnect.storage.request.CreateTableRequest;
95 new CreateTableRequest.GeneratedColumnInfo( in applyGeneratedLocalTimeUpgrade()
102 new CreateTableRequest.GeneratedColumnInfo( in applyGeneratedLocalTimeUpgrade()
115 protected List<CreateTableRequest.GeneratedColumnInfo> getGeneratedColumnInfo() { in getGeneratedColumnInfo()
117 new CreateTableRequest.GeneratedColumnInfo( in getGeneratedColumnInfo()
121 new CreateTableRequest.GeneratedColumnInfo( in getGeneratedColumnInfo()
DMedicalDataSourceHelper.java29 import com.android.server.healthconnect.storage.request.CreateTableRequest;
61 public CreateTableRequest getCreateTableRequest() { in getCreateTableRequest()
62 return new CreateTableRequest(MEDICAL_DATA_SOURCE_TABLE_NAME, getColumnInfo()) in getCreateTableRequest()
DMigrationEntityHelper.java30 import com.android.server.healthconnect.storage.request.CreateTableRequest;
56 public static CreateTableRequest getCreateTableRequest() { in getCreateTableRequest()
57 return new CreateTableRequest(TABLE_NAME, getColumnInfo()); in getCreateTableRequest()
DInstantRecordHelper.java33 import com.android.server.healthconnect.storage.request.CreateTableRequest;
89 new CreateTableRequest.GeneratedColumnInfo( in applyGeneratedLocalTimeUpgrade()
101 protected List<CreateTableRequest.GeneratedColumnInfo> getGeneratedColumnInfo() { in getGeneratedColumnInfo()
103 new CreateTableRequest.GeneratedColumnInfo( in getGeneratedColumnInfo()
DSeriesRecordHelper.java30 import com.android.server.healthconnect.storage.request.CreateTableRequest;
49 final List<CreateTableRequest> getChildTableCreateRequests() { in getChildTableCreateRequests()
51 new CreateTableRequest(getSeriesDataTableName(), getSeriesTableColumnInfo()) in getChildTableCreateRequests()
DExerciseLapRecordHelper.java34 import com.android.server.healthconnect.storage.request.CreateTableRequest;
54 static CreateTableRequest getCreateLapsTableRequest(String parentTableName) { in getCreateLapsTableRequest()
55 return new CreateTableRequest(EXERCISE_LAPS_RECORD_TABLE_NAME, getLapsTableColumnInfo()) in getCreateLapsTableRequest()
DExerciseRouteRecordHelper.java31 import com.android.server.healthconnect.storage.request.CreateTableRequest;
61 static CreateTableRequest getCreateRouteTableRequest(String parentTableName) { in getCreateRouteTableRequest()
62 return new CreateTableRequest( in getCreateRouteTableRequest()
DPreferenceHelper.java30 import com.android.server.healthconnect.storage.request.CreateTableRequest;
96 public static CreateTableRequest getCreateTableRequest() { in getCreateTableRequest()
97 return new CreateTableRequest(TABLE_NAME, getColumnInfo()); in getCreateTableRequest()
DSleepStageRecordHelper.java37 import com.android.server.healthconnect.storage.request.CreateTableRequest;
74 static CreateTableRequest getCreateStagesTableRequest(String parentTableName) { in getCreateStagesTableRequest()
75 return new CreateTableRequest(SLEEP_STAGES_RECORD_TABLE_NAME, getStagesTableColumnInfo()) in getCreateStagesTableRequest()
DExerciseSegmentRecordHelper.java36 import com.android.server.healthconnect.storage.request.CreateTableRequest;
57 static CreateTableRequest getCreateSegmentsTableRequest(String parentTableName) { in getCreateSegmentsTableRequest()
58 return new CreateTableRequest( in getCreateSegmentsTableRequest()
DAccessLogsHelper.java37 import com.android.server.healthconnect.storage.request.CreateTableRequest;
64 public static CreateTableRequest getCreateTableRequest() { in getCreateTableRequest()
65 return new CreateTableRequest(TABLE_NAME, getColumnInfo()); in getCreateTableRequest()
DRecordHelper.java62 import com.android.server.healthconnect.storage.request.CreateTableRequest;
222 public final CreateTableRequest getCreateTableRequest() { in getCreateTableRequest()
223 return new CreateTableRequest(getMainTableName(), getColumnInfo()) in getCreateTableRequest()
311 for (CreateTableRequest childTableCreateRequest : getChildTableCreateRequests()) { in getAllChildTables()
319 protected List<CreateTableRequest.GeneratedColumnInfo> getGeneratedColumnInfo() { in getGeneratedColumnInfo()
324 CreateTableRequest childTableCreateRequest, List<String> childTables) { in populateWithTablesNames()
326 for (CreateTableRequest childTableRequest : in populateWithTablesNames()
638 List<CreateTableRequest> getChildTableCreateRequests() { in getChildTableCreateRequests()
DChangeLogsRequestHelper.java38 import com.android.server.healthconnect.storage.request.CreateTableRequest;
74 public static CreateTableRequest getCreateTableRequest() { in getCreateTableRequest()
75 return new CreateTableRequest(TABLE_NAME, getColumnInfo()); in getCreateTableRequest()
DSkinTemperatureRecordHelper.java47 import com.android.server.healthconnect.storage.request.CreateTableRequest;
90 List<CreateTableRequest> getChildTableCreateRequests() { in getChildTableCreateRequests()
92 new CreateTableRequest(getSeriesDataTableName(), getSeriesTableColumnInfo()) in getChildTableCreateRequests()
DActivityDateHelper.java33 import com.android.server.healthconnect.storage.request.CreateTableRequest;
65 public static CreateTableRequest getCreateTableRequest() { in getCreateTableRequest()
66 return new CreateTableRequest(TABLE_NAME, getColumnInfo()) in getCreateTableRequest()
DDeviceInfoHelper.java36 import com.android.server.healthconnect.storage.request.CreateTableRequest;
75 public static CreateTableRequest getCreateTableRequest() { in getCreateTableRequest()
76 return new CreateTableRequest(TABLE_NAME, getColumnInfo()); in getCreateTableRequest()
DMedicalResourceHelper.java49 import com.android.server.healthconnect.storage.request.CreateTableRequest;
112 public static CreateTableRequest getCreateTableRequest() { in getCreateTableRequest()
113 return new CreateTableRequest(MEDICAL_RESOURCE_TABLE_NAME, getColumnInfo()); in getCreateTableRequest()
DSleepSessionRecordHelper.java37 import com.android.server.healthconnect.storage.request.CreateTableRequest;
118 List<CreateTableRequest> getChildTableCreateRequests() { in getChildTableCreateRequests()
DPlannedExerciseSessionRecordHelper.java76 import com.android.server.healthconnect.storage.request.CreateTableRequest;
170 List<CreateTableRequest> getChildTableCreateRequests() { in getChildTableCreateRequests()
172 new CreateTableRequest( in getChildTableCreateRequests()
184 new CreateTableRequest( in getChildTableCreateRequests()
197 new CreateTableRequest( in getChildTableCreateRequests()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/
DDatabaseUpgradeHelper.java46 import com.android.server.healthconnect.storage.request.CreateTableRequest;
127 for (CreateTableRequest createTableRequest : getInitialCreateTableRequests()) { in createInitialSetOfTables()
135 .map(CreateTableRequest::getTableName) in dropInitialSetOfTables()
142 private static List<CreateTableRequest> getInitialCreateTableRequests() { in getInitialCreateTableRequests()
143 List<CreateTableRequest> requests = new ArrayList<>(); in getInitialCreateTableRequests()
DHealthConnectDatabase.java25 import com.android.server.healthconnect.storage.request.CreateTableRequest;
78 public static void createTable(SQLiteDatabase db, CreateTableRequest createTableRequest) { in createTable()
81 for (CreateTableRequest childRequest : createTableRequest.getChildTableRequests()) { in createTable()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/
DPriorityMigrationHelper.java34 import com.android.server.healthconnect.storage.request.CreateTableRequest;
133 public static CreateTableRequest getCreateTableRequest() { in getCreateTableRequest()
134 return new CreateTableRequest(PRE_MIGRATION_TABLE_NAME, getColumnInfo()); in getCreateTableRequest()

12