Home
last modified time | relevance | path

Searched refs:RecordInternal (Results 1 – 25 of 32) sorted by relevance

12

/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DRecordInternal.java42 public abstract class RecordInternal<T extends Record> { class
60 RecordInternal() { in RecordInternal() method in RecordInternal
120 public RecordInternal<T> setUuid(@Nullable UUID uuid) { in setUuid()
127 public RecordInternal<T> setUuid(@Nullable String uuid) { in setUuid()
144 public RecordInternal<T> setPackageName(@Nullable String packageName) { in setPackageName()
155 public RecordInternal<T> setRowId(int rowId) { in setRowId()
173 public RecordInternal<T> setAppName(@Nullable String appName) { in setAppName()
183 public RecordInternal<T> setLastModifiedTime(long lastModifiedTime) { in setLastModifiedTime()
195 public RecordInternal<T> setClientRecordId(@Nullable String clientRecordId) { in setClientRecordId()
205 public RecordInternal<T> setClientRecordVersion(long clientRecordVersion) { in setClientRecordVersion()
[all …]
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/utils/
DInternalExternalRecordConverter.java24 import android.health.connect.internal.datatypes.RecordInternal;
41 private final Map<Integer, Class<? extends RecordInternal<?>>>
64 public RecordInternal<?> newInternalRecord(@RecordTypeIdentifier.RecordType int type) { in newInternalRecord()
65 Class<? extends RecordInternal<?>> recordClass = in newInternalRecord()
68 RecordInternal<?> recordInternal; in newInternalRecord()
84 public List<Record> getExternalRecords(@NonNull List<RecordInternal<?>> recordInternals) { in getExternalRecords()
87 for (RecordInternal<?> recordInternal : recordInternals) { in getExternalRecords()
DParcelRecordConverter.java21 import android.health.connect.internal.datatypes.RecordInternal;
37 private final Map<Integer, Class<? extends RecordInternal<?>>> mDataTypeClassMap;
55 public RecordInternal<?> getRecord( in getRecord()
59 Class<? extends RecordInternal<?>> recordClass = mDataTypeClassMap.get(type); in getRecord()
61 RecordInternal<?> recordInternal = recordClass.getConstructor().newInstance(); in getRecord()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/request/
DUpsertTransactionRequest.java29 import android.health.connect.internal.datatypes.RecordInternal;
72 @NonNull List<RecordInternal<?>> recordInternals, in UpsertTransactionRequest()
88 @NonNull List<RecordInternal<?>> recordInternals, in UpsertTransactionRequest()
106 @NonNull List<RecordInternal<?>> recordInternals, in UpsertTransactionRequest()
119 for (RecordInternal<?> recordInternal : recordInternals) { in UpsertTransactionRequest()
179 private WhereClauses generateWhereClausesForUpdate(@NonNull RecordInternal<?> recordInternal) { in generateWhereClausesForUpdate()
189 private void addRequest(@NonNull RecordInternal<?> recordInternal, boolean isInsertRequest) { in addRequest()
DUpsertTableRequest.java27 import android.health.connect.internal.datatypes.RecordInternal;
58 private RecordInternal<?> mRecordInternal;
201 public <T extends RecordInternal<?>> UpsertTableRequest setHelper( in setHelper()
221 public RecordInternal<?> getRecordInternal() { in getRecordInternal()
225 public void setRecordInternal(RecordInternal<?> recordInternal) { in setRecordInternal()
229 public <T extends RecordInternal<?>> UpsertTableRequest setExtraWritePermissionsStateMapping( in setExtraWritePermissionsStateMapping()
/packages/modules/HealthFitness/framework/java/android/health/connect/aidl/
DRecordsParcel.java23 import android.health.connect.internal.datatypes.RecordInternal;
53 private final List<RecordInternal<?>> mRecordInternals;
58 public RecordsParcel(@NonNull List<RecordInternal<?>> recordInternals) { in RecordsParcel()
96 public List<RecordInternal<?>> getRecords() { in getRecords()
117 for (RecordInternal<?> recordInternal : mRecordInternals) { in writeToParcelInternal()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/
DRecordHelperTest.java36 import android.health.connect.internal.datatypes.RecordInternal;
86 List<RecordInternal<?>> records = helper.getInternalRecords(cursor); in getInternalRecords_insertThenRead_recordReturned()
107 List<RecordInternal<?>> records = helper.getInternalRecords(cursor); in getInternalRecords_requestSizeMoreThanRecordNumber_recordsReturned()
117 List<RecordInternal<?>> records = new ArrayList<>(MAXIMUM_ALLOWED_CURSOR_COUNT + 1); in getInternalRecords_cursorHasTooManyData_throws()
163 Pair<List<RecordInternal<?>>, PageTokenWrapper> page1 = in getNextInternalRecordsPageAndToken_zeroOffsetDesc_correctResults()
181 Pair<List<RecordInternal<?>>, PageTokenWrapper> page2 = in getNextInternalRecordsPageAndToken_zeroOffsetDesc_correctResults()
247 Pair<List<RecordInternal<?>>, PageTokenWrapper> page1 = in getNextInternalRecordsPageAndToken_sameStartTimeAsc_correctResults()
266 Pair<List<RecordInternal<?>>, PageTokenWrapper> page2 = in getNextInternalRecordsPageAndToken_sameStartTimeAsc_correctResults()
286 Pair<List<RecordInternal<?>>, PageTokenWrapper> result = in getNextInternalRecordsPageAndToken_wrongOffsetPageToken_skipSameStartTimeRecords()
DTransactionTestUtils.java43 import android.health.connect.internal.datatypes.RecordInternal;
86 public List<String> insertRecords(String packageName, RecordInternal<?>... records) { in insertRecords()
91 public List<String> insertRecords(String packageName, List<RecordInternal<?>> records) { in insertRecords()
123 public static RecordInternal<StepsRecord> createStepsRecord( in createStepsRecord()
128 public static RecordInternal<StepsRecord> createStepsRecord( in createStepsRecord()
137 public static RecordInternal<BloodPressureRecord> createBloodPressureRecord( in createBloodPressureRecord()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/
DTransactionManagerExerciseRoutesTest.java32 import android.health.connect.internal.datatypes.RecordInternal;
105 List<RecordInternal<?>> returnedRecords = mTransactionManager.readRecordsByIds(request); in readRecordsByIds_doesNotReturnRoutesOfOtherApps()
137 List<RecordInternal<?>> returnedRecords = mTransactionManager.readRecordsByIds(request); in readRecordsByIds_unknownApp_doesNotReturnRoute()
162 List<RecordInternal<?>> returnedRecords = mTransactionManager.readRecordsByIds(request); in readRecordsByIds_nullPackageName_doesNotReturnRoute()
187 List<RecordInternal<?>> returnedRecords = mTransactionManager.readRecordsByIds(request); in readRecordsByIds_unknownApp_withReadRoutePermission_returnsRoute()
223 List<RecordInternal<?>> returnedRecords = in readRecordsAndPageToken_byFilters_doesNotReturnRoutesOfOtherApps()
262 List<RecordInternal<?>> returnedRecords = in readRecordsAndPageToken_byFilters_unknownApp_doesNotReturnRoute()
293 List<RecordInternal<?>> returnedRecords = in readRecordsAndPageToken_byFilters_nullPackageName_doesNotReturnRoute()
324 List<RecordInternal<?>> returnedRecords = in readRecordsAndPageToken_byFilters_withReadRoutePermission_returnsRoute()
DNoMockAutoDeleteServiceTest.java25 import android.health.connect.internal.datatypes.RecordInternal;
67 List<RecordInternal<?>> records = helper.getInternalRecords(cursor); in startAutoDelete_changeLogsGenerated()
77 List<RecordInternal<?>> records = helper.getInternalRecords(cursor); in startAutoDelete_changeLogsGenerated()
DTransactionManagerTest.java53 import android.health.connect.internal.datatypes.RecordInternal;
124 List<RecordInternal<?>> records = in readRecordsById_returnsAllRecords()
150 List<RecordInternal<?>> records = mTransactionManager.readRecordsByIds(request); in readRecordsById_multipleRecordTypes_returnsAllRecords()
199 Pair<List<RecordInternal<?>>, PageTokenWrapper> result = in readRecordsAndPageToken_returnsRecordsAndPageToken()
201 List<RecordInternal<?>> records = result.first; in readRecordsAndPageToken_returnsRecordsAndPageToken()
265 ImmutableList.Builder<RecordInternal<?>> records = new ImmutableList.Builder<>(); in deleteAll_bulkDeleteByTimeFilter_generateChangeLogs()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DRecordHelper.java52 import android.health.connect.internal.datatypes.RecordInternal;
88 public abstract class RecordHelper<T extends RecordInternal<?>> {
238 public UpsertTableRequest getUpsertTableRequest(RecordInternal<?> recordInternal) { in getUpsertTableRequest()
245 RecordInternal<?> recordInternal, in getUpsertTableRequest()
367 @NonNull List<RecordInternal<?>> recordInternals, @NonNull String packageName) { in logUpsertMetrics()
378 @NonNull List<RecordInternal<?>> recordInternals, @NonNull String packageName) { in logReadMetrics()
447 public List<RecordInternal<?>> getInternalRecords(Cursor cursor) { in getInternalRecords()
452 List<RecordInternal<?>> recordInternalList = new ArrayList<>(); in getInternalRecords()
465 public Pair<List<RecordInternal<?>>, PageTokenWrapper> getNextInternalRecordsPageAndToken( in getNextInternalRecordsPageAndToken()
493 public Pair<List<RecordInternal<?>>, PageTokenWrapper> getNextInternalRecordsPageAndToken( in getNextInternalRecordsPageAndToken()
[all …]
DExerciseSessionRecordHelper.java56 import android.health.connect.internal.datatypes.RecordInternal;
257 List<String> getPostUpsertCommands(RecordInternal<?> record) { in getPostUpsertCommands()
337 public void checkRecordOperationsAreEnabled(RecordInternal<?> recordInternal) { in checkRecordOperationsAreEnabled()
353 public List<String> getRequiredExtraWritePermissions(RecordInternal<?> recordInternal) { in getRequiredExtraWritePermissions()
456 @NonNull List<RecordInternal<?>> recordInternals, @NonNull String packageName) { in logUpsertMetrics()
467 @NonNull List<RecordInternal<?>> recordInternals, @NonNull String packageName) { in logReadMetrics()
559 @NonNull List<RecordInternal<?>> recordInternals) { in getNumberOfRecordsWithExerciseRoutes()
562 for (RecordInternal<?> recordInternal : recordInternals) { in getNumberOfRecordsWithExerciseRoutes()
DActivityDateHelper.java28 import android.health.connect.internal.datatypes.RecordInternal;
77 public static void insertRecordDate(@NonNull List<RecordInternal<?>> recordInternals) { in insertRecordDate()
213 public static UpsertTableRequest getUpsertTableRequest(RecordInternal<?> recordInternal) { in getUpsertTableRequest()
DDeviceInfoHelper.java32 import android.health.connect.internal.datatypes.RecordInternal;
84 public void populateDeviceInfoId(@NonNull RecordInternal<?> recordInternal) { in populateDeviceInfoId()
102 public void populateRecordWithValue(long deviceInfoId, @NonNull RecordInternal<?> record) { in populateRecordWithValue()
DSleepSessionRecordHelper.java31 import android.health.connect.internal.datatypes.RecordInternal;
152 public void checkRecordOperationsAreEnabled(RecordInternal<?> recordInternal) { in checkRecordOperationsAreEnabled()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/
DDataPermissionEnforcer.java28 import android.health.connect.internal.datatypes.RecordInternal;
131 List<RecordInternal<?>> recordInternals, AttributionSource attributionSource) { in enforceRecordsWritePermissions()
134 for (RecordInternal<?> recordInternal : recordInternals) { in enforceRecordsWritePermissions()
205 List<RecordInternal<?>> recordInternals, AttributionSource attributionSource) { in collectExtraWritePermissionStateMapping()
207 for (RecordInternal<?> recordInternal : recordInternals) { in collectExtraWritePermissionStateMapping()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/exportimport/
DDatabaseMerger.java38 import android.health.connect.internal.datatypes.RecordInternal;
184 List<RecordInternal<?>> records = recordsToMergeAndToken.first; in mergeRecordsOfType()
242 private <T extends Record> Pair<List<RecordInternal<?>>, PageTokenWrapper> getRecordsToMerge( in getRecordsToMerge()
271 List<RecordInternal<?>> recordInternalList; in getRecordsToMerge()
275 Pair<List<RecordInternal<?>>, PageTokenWrapper> readResult = in getRecordsToMerge()
/packages/modules/HealthFitness/framework/java/android/health/connect/migration/
DRecordMigrationPayload.java25 import android.health.connect.internal.datatypes.RecordInternal;
53 private final RecordInternal<?> mRecordInternal;
111 public RecordInternal<?> getRecordInternal() { in getRecordInternal()
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DRecord.java24 import android.health.connect.internal.datatypes.RecordInternal;
92 public abstract RecordInternal<?> toRecordInternal(); in toRecordInternal()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/
DTransactionManager.java45 import android.health.connect.internal.datatypes.RecordInternal;
394 public List<RecordInternal<?>> readRecordsByIds(@NonNull ReadTransactionRequest request) in readRecordsByIds()
400 List<RecordInternal<?>> recordInternals = new ArrayList<>(); in readRecordsByIds()
406 List<RecordInternal<?>> internalRecords = helper.getInternalRecords(cursor); in readRecordsByIds()
427 public Pair<List<RecordInternal<?>>, PageTokenWrapper> readRecordsAndPageToken( in readRecordsAndPageToken()
437 List<RecordInternal<?>> recordInternalList; in readRecordsAndPageToken()
447 Pair<List<RecordInternal<?>>, PageTokenWrapper> readResult = in readRecordsAndPageToken()
817 List<RecordInternal<?>> records, ReadTableRequest request) { in populateInternalRecordsWithExtraData()
/packages/modules/HealthFitness/framework/java/android/health/connect/changelog/
DChangeLogsResponse.java25 import android.health.connect.internal.datatypes.RecordInternal;
138 List<RecordInternal<?>> recordInternal = new ArrayList<>(); in writeToParcel()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/utils/
DStorageUtils.java46 import android.health.connect.internal.datatypes.RecordInternal;
154 public static void addNameBasedUUIDTo(@NonNull RecordInternal<?> recordInternal) { in addNameBasedUUIDTo()
170 public static void updateNameBasedUUIDIfRequired(@NonNull RecordInternal<?> recordInternal) { in updateNameBasedUUIDIfRequired()
214 @NonNull RecordInternal<?> recordInternal, @NonNull String packageName) { in addPackageNameTo()
329 public static byte[] getDedupeByteBuffer(@NonNull RecordInternal<?> record) { in getDedupeByteBuffer()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/
DHealthConnectServiceImpl.java109 import android.health.connect.internal.datatypes.RecordInternal;
379 final List<RecordInternal<?>> recordInternals = recordsParcel.getRecords(); in insertRecords()
443 .map(RecordInternal::getRecordType) in postInsertTasks()
685 List<RecordInternal<?>> records; in readRecords()
693 Pair<List<RecordInternal<?>>, PageTokenWrapper> in readRecords()
827 final List<RecordInternal<?>> recordInternals = recordsParcel.getRecords(); in updateRecords()
858 .map(RecordInternal::getRecordType) in updateRecords()
1040 List<RecordInternal<?>> recordInternals = in getChangeLogs()
2533 @NonNull List<RecordInternal<?>> recordInternals, @NonNull String packageName) { in logRecordTypeSpecificUpsertMetrics()
2536 Map<Integer, List<RecordInternal<?>>> recordTypeToRecordInternals = in logRecordTypeSpecificUpsertMetrics()
[all …]
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/exportimport/
DImportManagerTest.java35 import android.health.connect.internal.datatypes.RecordInternal;
142 List<RecordInternal<?>> records = mTransactionManager.readRecordsByIds(request); in copiesAllData()
191 List<RecordInternal<?>> records = mTransactionManager.readRecordsByIds(request); in skipsMissingTables()

12