Home
last modified time | relevance | path

Searched refs:recordClass (Results 1 – 17 of 17) sorted by relevance

/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/utils/
DParcelRecordConverter.java59 Class<? extends RecordInternal<?>> recordClass = mDataTypeClassMap.get(type); in getRecord() local
60 Objects.requireNonNull(recordClass); in getRecord()
61 RecordInternal<?> recordInternal = recordClass.getConstructor().newInstance(); in getRecord()
DInternalExternalRecordConverter.java65 Class<? extends RecordInternal<?>> recordClass = in newInternalRecord() local
67 Objects.requireNonNull(recordClass); in newInternalRecord()
70 recordInternal = recordClass.getConstructor().newInstance(); in newInternalRecord()
DRecordMapper.java324 (id, recordClass) -> mExternalRecordClassToRecordIdMap.put(recordClass, id)); in RecordMapper()
348 public int getRecordType(Class<? extends Record> recordClass) { in getRecordType() argument
349 return mExternalRecordClassToRecordIdMap.get(recordClass); in getRecordType()
353 public boolean hasRecordType(Class<? extends Record> recordClass) { in hasRecordType() argument
354 return mExternalRecordClassToRecordIdMap.containsKey(recordClass); in hasRecordType()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsResponseDecoderTests.java584 if (responseData.recordClass == MdnsInet4AddressRecord.class) { in makeMdnsResponse()
586 } else if (responseData.recordClass == MdnsInet6AddressRecord.class) { in makeMdnsResponse()
588 } else if (responseData.recordClass == MdnsPointerRecord.class) { in makeMdnsResponse()
590 } else if (responseData.recordClass == MdnsServiceRecord.class) { in makeMdnsResponse()
592 } else if (responseData.recordClass == MdnsTextRecord.class) { in makeMdnsResponse()
627 public final Class<?> recordClass; field in MdnsResponseDecoderTests.PacketAndRecordClass
631 recordClass = c; in PacketAndRecordClass()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/utils/
DInsertOrUpdateRecords.kt150 recordClass: KClass<out Record>, in createRecordObject()
156 recordClass, mFieldNameToFieldInput, getMetaData(context, recordUuid)) in createRecordObject()
160 recordClass: KClass<out Record>, in createRecordObject()
165 recordClass, mFieldNameToFieldInput, getMetaData(context)) in createRecordObject()
169 recordClass: KClass<out Record>, in createRecordObjectHelper()
174 when (recordClass) { in createRecordObjectHelper()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/exportimport/
DDatabaseMerger.java148 Class<? extends Record> recordClass = in merge() local
153 stagedDatabase, stagedPackageNamesByAppIds, recordTypeToMigrate, recordClass); in merge()
154 deleteRecordsOfType(stagedDatabase, recordTypeToMigrate, recordClass); in merge()
/packages/modules/HealthFitness/framework/java/android/health/connect/changelog/
DChangeLogTokenRequest.java160 for (Class<? extends Record> recordClass : mRecordTypes) { in getRecordTypesAsInteger()
161 recordTypes[index++] = RecordMapper.getInstance().getRecordType(recordClass); in getRecordTypesAsInteger()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/nopermission/
DHealthConnectManagerNoPermissionsGrantedTest.java197 Class<? extends Record> recordClass = permissionAndRecordClass.second; in testGetChangeLogs_noPermissions_expectError() local
201 new ChangeLogTokenRequest.Builder().addRecordType(recordClass).build()); in testGetChangeLogs_noPermissions_expectError()
210 recordClass.getSimpleName(), permission)); in testGetChangeLogs_noPermissions_expectError()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/selectabledeletion/api/
DDeleteEntriesUseCase.kt39 RecordIdFilter.fromId(deleteEntries.dataType.recordClass, id) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/deletion/api/
DDeleteEntryUseCase.kt38 RecordIdFilter.fromId(deleteEntry.dataType.recordClass, deleteEntry.id) in invoke()
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/
DTestUtils.java397 public static <T extends Record> List<T> readAllRecords(Class<T> recordClass) in readAllRecords() argument
402 new ReadRecordsRequestUsingFilters.Builder<>(recordClass).build()); in readAllRecords()
411 new ReadRecordsRequestUsingFilters.Builder<>(recordClass) in readAllRecords()
1149 Class<? extends Record> recordClass = records.get(i).getClass(); in getRecordIdFilters()
1151 return RecordIdFilter.fromId(recordClass, id); in getRecordIdFilters()
1326 public RecordAndIdentifier(int id, Record recordClass) { in RecordAndIdentifier() argument
1328 this.mRecordClass = recordClass; in RecordAndIdentifier()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/ui/
DDataTypeListFragment.kt65 if (mDataSet[position].recordClass == null) { in <lambda>()
DInsertRecordFragment.kt151 mRecordFields = permissionType.recordClass?.java?.declaredFields as Array<Field> in <lambda>()
152 mRecordClass = permissionType.recordClass in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/shared/
DBaseFormatter.kt49 return DataType.values().first { it.recordClass == record::class.java } in formatRecord()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/libs/HealthConnectTestLib/src/android/healthconnect/cts/lib/
DBundleHelper.java197 Class<? extends Record> recordClass = recordClassForName(recordClassName); in toReadRecordsRequestUsingFilters() local
200 new ReadRecordsRequestUsingFilters.Builder<>(recordClass); in toReadRecordsRequestUsingFilters()
315 Class<? extends Record> recordClass = in toDeleteRecordsByIdsRequest()
318 return RecordIdFilter.fromId(recordClass, recordId); in toDeleteRecordsByIdsRequest()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/
DDataType.kt60 enum class DataType(val recordClass: Class<out Record>) { constant in com.android.healthconnect.controller.shared.DataType
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/
DConstants.kt261 val recordClass: KClass<out Record>?, constant in com.android.healthconnect.testapps.toolbox.Constants.HealthPermissionType