/packages/modules/NeuralNetworks/runtime/test/ |
D | TestOperandExtraParams.cpp | 45 ANeuralNetworksOperandType createOperand(int32_t dataType) { in createOperand() argument 47 switch (dataType) { in createOperand() 55 return {.type = dataType, in createOperand() 66 return {.type = dataType, in createOperand() 72 return {.type = dataType, in createOperand() 78 return {.type = dataType, in createOperand() 84 return {.type = dataType, in createOperand() 90 return {.type = dataType, in createOperand() 96 return {.type = dataType, in createOperand() 116 void testAddingWithSymmPerChannelQuantParams(int32_t dataType, in testAddingWithSymmPerChannelQuantParams() argument [all …]
|
D | TestGpuNnapi.cpp | 107 template <Type dataType> 158 template <Type dataType> 161 const uint32_t elementSize = sizeof(typename TestTypeHelper<dataType>::ElementType); in chooseDispatchSize() 289 template <Type dataType> 386 const auto dispatchSize = chooseDispatchSize<dataType>(mPhysicalDeviceProperties.limits); in initialize() 642 TestTypeHelper<dataType>::kClearData, // CLEAR_DATA in initialize() 808 template <Type dataType> 832 using ElementType = typename TestTypeHelper<dataType>::ElementType; 839 const float scale = TestTypeHelper<dataType>::kIsQuantized ? 1.0f : 0.0f; in initialize() 840 const OperandType tensorType(dataType, {kOperandSizeY, kOperandSizeX}, scale, in initialize() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/ |
D | ExifTag.java | 86 private final short dataType; field in ExifTag 122 dataType = type; in ExifTag() 180 return dataType; in getDataType() 226 if (dataType != TYPE_UNSIGNED_SHORT in setValue() 227 && dataType != TYPE_LONG in setValue() 228 && dataType != TYPE_UNSIGNED_LONG) { in setValue() 231 if (dataType == TYPE_UNSIGNED_SHORT && checkOverflowForUnsignedShort(value)) { in setValue() 233 } else if (dataType == TYPE_UNSIGNED_LONG && checkOverflowForUnsignedLong(value)) { in setValue() 257 if (checkBadComponentCount(value.length) || dataType != TYPE_UNSIGNED_LONG) { in setValue() 283 if (dataType != TYPE_ASCII && dataType != TYPE_UNDEFINED) { in setValue() [all …]
|
/packages/modules/NeuralNetworks/runtime/test/fuzzing/operation_signatures/ |
D | OperationSignatureUtils.h | 132 switch (op->dataType) { 240 NN_FUZZER_CHECK(to->dataType == from->dataType); 251 if (isQuantizedType(op->inputs[0]->dataType)) { 267 inline void sameShapeOpConstructor(TestOperandType dataType, uint32_t rank, RandomOperation* op) { 268 sameDimensionOpConstructor(dataType, rank, op); 272 inline void defaultOperandConstructor(TestOperandType dataType, uint32_t, RandomOperand* op) { 273 op->dataType = dataType; 274 if (dataType == TestOperandType::TENSOR_QUANT8_ASYMM) { 277 } else if (dataType == TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED) { 280 } else if (dataType == TestOperandType::TENSOR_QUANT8_SYMM) { [all …]
|
D | BoundingBox.cpp | 28 static void roiTensorConstructor(TestOperandType dataType, uint32_t, RandomOperand* op) { in roiTensorConstructor() argument 29 op->dataType = dataType; in roiTensorConstructor() 30 if (isQuantizedType(dataType)) { in roiTensorConstructor() 31 op->dataType = TestOperandType::TENSOR_QUANT16_ASYMM; in roiTensorConstructor() 101 switch (op->inputs[1]->dataType) { in roiFinalizer() 215 switch (op->inputs[1]->dataType) { in heatmapMaxKeypointFinalizer()
|
D | Normalization.cpp | 23 static void softmaxConstructor(TestOperandType dataType, uint32_t rank, RandomOperation* op) { in softmaxConstructor() argument 24 sameDimensionOpConstructor(dataType, rank, op); in softmaxConstructor() 91 static void l2normConstructor(TestOperandType dataType, uint32_t rank, RandomOperation* op) { in l2normConstructor() argument 92 sameDimensionOpConstructor(dataType, rank, op); in l2normConstructor() 158 static void localResponseNormConstructor(TestOperandType dataType, uint32_t rank, in localResponseNormConstructor() argument 160 sameDimensionOpConstructor(dataType, rank, op); in localResponseNormConstructor()
|
D | Elementwise.cpp | 23 static void elementwiseOpConstructor(TestOperandType dataType, uint32_t rank, RandomOperation* op) { in elementwiseOpConstructor() argument 24 sameShapeOpConstructor(dataType, rank, op); in elementwiseOpConstructor() 134 static void castingOpConstructor(TestOperandType dataType, uint32_t rank, RandomOperation* op) { in castingOpConstructor() argument 135 sameDimensionOpConstructor(dataType, rank, op); in castingOpConstructor() 139 if (op->inputs[0]->dataType == TestOperandType::TENSOR_FLOAT16) { in castingOpConstructor() 141 } else if (op->outputs[0]->dataType == TestOperandType::TENSOR_FLOAT16) { in castingOpConstructor()
|
/packages/modules/Permission/SafetyLabel/tests/java/com/android/permission/safetylabel/ |
D | DataTypeTest.kt | 193 val dataType = in getDataType_invalidBundle_nullDataType() constant 197 assertThat(dataType).isNull() in getDataType_invalidBundle_nullDataType() 202 val dataType = in getDataType_dataCollected_validDataType() constant 206 assertThat(dataType).isNotNull() in getDataType_dataCollected_validDataType() 207 assertThat(dataType?.purposeSet) in getDataType_dataCollected_validDataType() 209 assertThat(dataType?.isCollectionOptional).isTrue() in getDataType_dataCollected_validDataType() 210 assertThat(dataType?.ephemeral).isTrue() in getDataType_dataCollected_validDataType() 215 val dataType = in getDataType_dataShared_validDataType() constant 219 assertThat(dataType).isNotNull() in getDataType_dataShared_validDataType() 220 assertThat(dataType?.purposeSet) in getDataType_dataShared_validDataType() [all …]
|
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/analysis/impl/ |
D | ManagementStrategyValidation.kt | 45 .map { it.dataType } in <lambda>() 53 val dataType = managedDataTypesBySchemaName[target.schemaName] ?: return@flatMap emptyList() in <lambda>() constant 55 val retentionViolations = target.verifyRetentionSatisfiedBy(dataType) in <lambda>() 56 val deletionViolations = target.verifyDeletionTriggersSatisfiedBy(dataType) in <lambda>() 67 internal fun PolicyTarget.verifyRetentionSatisfiedBy(dataType: DataType): List<PolicyCheck> { in verifyRetentionSatisfiedBy() 68 val strategy = dataType.managementStrategy in verifyRetentionSatisfiedBy() 81 internal fun PolicyTarget.verifyDeletionTriggersSatisfiedBy(dataType: DataType): List<PolicyCheck> { in verifyDeletionTriggersSatisfiedBy() 82 val strategy = dataType.managementStrategy in verifyDeletionTriggersSatisfiedBy()
|
D | ChroniclePolicyEngine.kt | 65 context.connectionProviders.flatMap { checkWriteConnectionManagement(it.dataType, context) } in <lambda>() 71 dataType: DataType, in <lambda>() 75 if (dataType.connectionTypes.none { it.isWriteConnection }) return emptyList() in <lambda>() 79 val managementStrategies = context.policySet.findManagementStrategies(dataType.descriptor) in <lambda>() 86 if (managementStrategies.all { compare(dataType.managementStrategy, it) > 0 }) { in <lambda>()
|
/packages/modules/NeuralNetworks/common/cpu_operations/ |
D | Cast.cpp | 46 #define ANDROID_NN_COPY_CAST(operandType, dataType) \ in copyToTensor() argument 48 NNTRACE_COMP("cast::copyCast::" #dataType); \ in copyToTensor() 49 copyCast(inputData, reinterpret_cast<dataType*>(outputData), numElements); \ in copyToTensor() 77 #define ANDROID_NN_COPY_TO_TENSOR(operandType, dataType) \ in eval() argument 79 NNTRACE_TRANS("cast::copyToTensor::" #dataType); \ in eval() 80 copyToTensor(reinterpret_cast<const dataType*>(inputData), numElements, outputData, \ in eval()
|
D | Tile.cpp | 93 #define ANDROID_NN_IMPL_TILE(operandType, dataType) \ in eval() argument 95 NNTRACE_COMP_SWITCH("tileImpl::" #dataType); \ in eval() 96 tileImpl(reinterpret_cast<const dataType*>(inputData), inputShape, multiples, \ in eval() 97 reinterpret_cast<dataType*>(outputData), outputShape); \ in eval()
|
/packages/modules/NeuralNetworks/runtime/test/fuzzing/ |
D | RandomGraphGenerator.cpp | 44 RandomOperand::RandomOperand(const OperandSignature& operand, TestOperandType dataType, in RandomOperand() argument 48 if (operand.constructor) operand.constructor(dataType, rank, this); in RandomOperand() 64 if (dataType != other.dataType || dimensions.size() != other.dimensions.size() || in createEdgeIfValid() 78 return kSizeOfDataType[static_cast<int32_t>(dataType)] * getNumberOfElements(); in getBufferSize() 87 TestOperandType dataType = getRandomChoice(operation.supportedDataTypes); in RandomOperation() local 92 inputs.emplace_back(new RandomOperand(op, dataType, rank)); in RandomOperation() 95 outputs.emplace_back(new RandomOperand(op, dataType, rank)); in RandomOperation() 97 if (operation.constructor) operation.constructor(dataType, rank, this); in RandomOperation() 158 if (kScalarDataType[static_cast<int32_t>(operand->dataType)]) return true; in asConstant() 258 .type = static_cast<TestOperandType>(operand->dataType), in createTestModel()
|
D | OperationManager.cpp | 43 for (auto dataType : supportedDataTypes) { in matchFilter() local 44 if (hasValue(filter.dataTypes, dataType)) combinedDataTypes.push_back(dataType); in matchFilter()
|
/packages/modules/ImsMedia/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/include/ |
D | MockBaseNode.h | 48 bool* mark, uint32_t* seq, ImsMediaSubType* dataType, uint32_t* arrivalTime), 53 uint32_t seq, ImsMediaSubType dataType, uint32_t arrivalTime), 57 uint32_t seq, ImsMediaSubType dataType, uint32_t arrivalTime), 66 ImsMediaSubType dataType, uint32_t arrivalTime) in DelegateToFake() 71 seq, dataType, arrivalTime); in DelegateToFake()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/ |
D | FirstGrantTimeDatastoreXmlPersistence.java | 46 public UserGrantTimeState readForUser(@NonNull UserHandle user, @DataType int dataType) { in readForUser() argument 47 File file = getFile(user, dataType); in readForUser() 63 @DataType int dataType) { in writeForUser() argument 64 File file = getFile(user, dataType); in writeForUser()
|
D | FirstGrantTimeDatastore.java | 50 UserGrantTimeState readForUser(@NonNull UserHandle user, @DataType int dataType); in readForUser() argument 60 @DataType int dataType); in writeForUser() argument 67 File getFile(@NonNull UserHandle user, @DataType int dataType); in getFile() argument
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/entries/ |
D | FormattedDataEntry.kt | 32 val dataType: DataType, constant in com.android.healthconnect.controller.data.entries.FormattedEntry.FormattedDataEntry 43 val dataType: DataType, constant in com.android.healthconnect.controller.data.entries.FormattedEntry.SleepSessionEntry 53 val dataType: DataType, constant in com.android.healthconnect.controller.data.entries.FormattedEntry.ExerciseSessionEntry 64 val dataType: DataType constant in com.android.healthconnect.controller.data.entries.FormattedEntry.SeriesDataEntry 107 val dataType: DataType, constant in com.android.healthconnect.controller.data.entries.FormattedEntry.PlannedExerciseSessionEntry
|
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/analysis/ |
D | DefaultChronicleContext.kt | 51 val dataType = connectionProvider.dataType in <lambda>() constant 52 dataType.connectionTypes.forEach { connectionType -> in <lambda>() 62 tempDtds[connectionType] = dataType.descriptor in <lambda>() 63 tempMgmtProperties[connectionType] = dataType.managementStrategy in <lambda>()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/ |
D | SortDimension.java | 77 private SortDimension(int id, @StringRes int labelId, @DataType int dataType, in SortDimension() argument 81 mDataType = dataType; in SortDimension() 190 @DataType int dataType = in.readInt(); 195 new SortDimension(id, labelId, dataType, sortCapability, defaultSortDirection); 227 Builder withDataType(@DataType int dataType) { in withDataType() argument 228 mDataType = dataType; in withDataType()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/v34/ |
D | SafetyLabelUtils.kt | 52 val dataType: DataType? = dataCategory.dataTypes[type] in <lambda>() constant 53 if (dataType == null) { in <lambda>() 57 if (dataType.purposeSet.isNotEmpty()) { in <lambda>() 58 purposeSet.addAll(dataType.purposeSet) in <lambda>()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | LauncherRestoreEventLoggerImpl.kt | 43 @BackupRestoreDataType dataType: String, in logLauncherItemsRestoreFailed() 48 restoreEventLogger.logItemsRestoreFailed(dataType, count, error) in logLauncherItemsRestoreFailed() 58 override fun logLauncherItemsRestored(@BackupRestoreDataType dataType: String, count: Int) { in logLauncherItemsRestored() 60 restoreEventLogger.logItemsRestored(dataType, count) in logLauncherItemsRestored()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/ |
D | KeyValueData.java | 50 private KeyValueData(DataType dataType, String key, String value) { in KeyValueData() argument 51 mDataType = dataType; in KeyValueData() 80 public Builder setDataType(@NonNull DataType dataType) { in setDataType() argument 81 mDataType = dataType; in setDataType()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/ |
D | HealthDataEntryFormatterTest.kt | 72 dataType = DataType.HEART_RATE)) in format_formatsHeartRateRecord() 88 dataType = DataType.STEPS)) in format_formatsStepsRateRecord() 104 dataType = DataType.BASAL_METABOLIC_RATE)) in <lambda>() 119 dataType = DataType.PLANNED_EXERCISE, in format_formatsPlannedExerciseSessionRecord()
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/text/nodes/ |
D | TextRendererNode.cpp | 99 uint32_t timestamp, bool mark, uint32_t seq, ImsMediaSubType dataType, uint32_t arrivalTime) in OnDataFromFrontNode() argument 110 subtype, data, size, timestamp, mark, seq, dataType, arrivalTime); in OnDataFromFrontNode() 122 ImsMediaSubType dataType; in ProcessData() local 124 while (GetData(&subtype, &data, &size, ×tamp, &mark, &seq, &dataType)) in ProcessData()
|