Home
last modified time | relevance | path

Searched refs:dataType (Results 1 – 25 of 104) sorted by relevance

12345

/frameworks/ml/nn/runtime/test/
DTestOperandExtraParams.cpp43 ANeuralNetworksOperandType createOperand(int32_t dataType) { in createOperand() argument
45 switch (dataType) { in createOperand()
52 return {.type = dataType, in createOperand()
63 return {.type = dataType, in createOperand()
69 return {.type = dataType, in createOperand()
75 return {.type = dataType, in createOperand()
81 return {.type = dataType, in createOperand()
87 return {.type = dataType, in createOperand()
107 void testAddingWithSymmPerChannelQuantParams(int32_t dataType, in testAddingWithSymmPerChannelQuantParams() argument
110 ANeuralNetworksOperandType operandType = createOperand(dataType); in testAddingWithSymmPerChannelQuantParams()
[all …]
/frameworks/base/libs/androidfw/
DAttributeResolution.cpp83 if (value.dataType == Res_value::TYPE_REFERENCE) { in ResolveAttrs()
112 value.dataType = Res_value::TYPE_NULL; in ResolveAttrs()
122 value.dataType = Res_value::TYPE_ATTRIBUTE; in ResolveAttrs()
125 ALOGI("-> From values: type=0x%x, data=0x%08x", value.dataType, value.data); in ResolveAttrs()
134 ALOGI("-> From def style: type=0x%x, data=0x%08x", value.dataType, value.data); in ResolveAttrs()
140 if (value.dataType != Res_value::TYPE_NULL) { in ResolveAttrs()
148 ALOGI("-> Resolved attr: type=0x%x, data=0x%08x", value.dataType, value.data); in ResolveAttrs()
155 ALOGI("-> From theme: type=0x%x, data=0x%08x", value.dataType, value.data); in ResolveAttrs()
163 ALOGI("-> Resolved theme: type=0x%x, data=0x%08x", value.dataType, value.data); in ResolveAttrs()
169 if (value.dataType == Res_value::TYPE_REFERENCE && value.data == 0) { in ResolveAttrs()
[all …]
/frameworks/ml/nn/runtime/test/fuzzing/operation_signatures/
DOperationSignatureUtils.h110 switch (op->dataType) {
196 NN_FUZZER_CHECK(to->dataType == from->dataType);
207 if (op->inputs[0]->dataType == Type::TENSOR_QUANT8_ASYMM) {
223 inline void sameShapeOpConstructor(Type dataType, uint32_t rank, RandomOperation* op) {
224 sameDimensionOpConstructor(dataType, rank, op);
228 inline void defaultOperandConstructor(Type dataType, uint32_t, RandomOperand* op) {
229 op->dataType = dataType;
230 if (dataType == Type::TENSOR_QUANT8_ASYMM) {
233 } else if (dataType == Type::TENSOR_QUANT8_SYMM) {
269 [](Type dataType, uint32_t rank, RandomOperand* op) { \
[all …]
DNormalization.cpp23 static void softmaxConstructor(Type dataType, uint32_t rank, RandomOperation* op) { in softmaxConstructor() argument
24 sameDimensionOpConstructor(dataType, rank, op); in softmaxConstructor()
68 static void l2normConstructor(Type dataType, uint32_t rank, RandomOperation* op) { in l2normConstructor() argument
69 sameDimensionOpConstructor(dataType, rank, op); in l2normConstructor()
114 static void localResponseNormConstructor(Type dataType, uint32_t rank, RandomOperation* op) { in localResponseNormConstructor() argument
115 sameDimensionOpConstructor(dataType, rank, op); in localResponseNormConstructor()
DBoundingBox.cpp23 static void roiTensorConstructor(Type dataType, uint32_t, RandomOperand* op) { in roiTensorConstructor() argument
24 op->dataType = dataType; in roiTensorConstructor()
25 if (dataType == Type::TENSOR_QUANT8_ASYMM) { in roiTensorConstructor()
26 op->dataType = Type::TENSOR_QUANT16_ASYMM; in roiTensorConstructor()
91 switch (op->inputs[1]->dataType) { in roiFinalizer()
190 switch (op->inputs[1]->dataType) { in heatmapMaxKeypointFinalizer()
/frameworks/base/libs/androidfw/tests/
DDynamicRefTable_test.cpp28 value.dataType = Res_value::TYPE_REFERENCE; in TEST()
37 value2.dataType = Res_value::TYPE_REFERENCE; in TEST()
48 value.dataType = Res_value::TYPE_ATTRIBUTE; in TEST()
57 value2.dataType = Res_value::TYPE_ATTRIBUTE; in TEST()
69 value.dataType = Res_value::TYPE_DYNAMIC_REFERENCE; in TEST()
78 value3.dataType = Res_value::TYPE_DYNAMIC_REFERENCE; in TEST()
90 value2.dataType = Res_value::TYPE_DYNAMIC_ATTRIBUTE; in TEST()
100 value.dataType = Res_value::TYPE_REFERENCE; in TEST()
110 value2.dataType = Res_value::TYPE_ATTRIBUTE; in TEST()
DResTable_test.cpp68 EXPECT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
115 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
120 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
139 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
144 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
163 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
168 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
184 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
189 EXPECT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
205 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
[all …]
DTheme_test.cpp89 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType); in TEST_F()
95 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType); in TEST_F()
113 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType); in TEST_F()
119 EXPECT_EQ(Res_value::TYPE_STRING, value.dataType); in TEST_F()
128 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType); in TEST_F()
160 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType); in TEST_F()
167 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType); in TEST_F()
174 EXPECT_EQ(Res_value::TYPE_REFERENCE, value.dataType); in TEST_F()
194 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType); in TEST_F()
201 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType); in TEST_F()
[all …]
DAssetManager2_test.cpp119 EXPECT_EQ(Res_value::TYPE_STRING, value.dataType); in TEST_F()
149 EXPECT_EQ(Res_value::TYPE_STRING, value.dataType); in TEST_F()
171 EXPECT_EQ(Res_value::TYPE_REFERENCE, value.dataType); in TEST_F()
178 EXPECT_EQ(Res_value::TYPE_STRING, value.dataType); in TEST_F()
188 EXPECT_EQ(Res_value::TYPE_REFERENCE, value.dataType); in TEST_F()
195 EXPECT_EQ(Res_value::TYPE_STRING, value.dataType); in TEST_F()
213 EXPECT_EQ(Res_value::TYPE_REFERENCE, value.dataType); in TEST_F()
235 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), bag->entries[0].value.dataType); in TEST_F()
239 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), bag->entries[1].value.dataType); in TEST_F()
243 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), bag->entries[2].value.dataType); in TEST_F()
[all …]
DAppAsLib_test.cpp40 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
59 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
78 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
/frameworks/ml/nn/common/operations/
DCast.cpp42 #define ANDROID_NN_COPY_CAST(operandType, dataType) \ in copyToTensor() argument
44 NNTRACE_COMP("cast::copyCast::" #dataType); \ in copyToTensor()
45 copyCast(inputData, reinterpret_cast<dataType*>(outputData), numElements); \ in copyToTensor()
76 #define ANDROID_NN_COPY_TO_TENSOR(operandType, dataType) \ in eval() argument
78 NNTRACE_TRANS("cast::copyToTensor::" #dataType); \ in eval()
79 copyToTensor(reinterpret_cast<const dataType*>(inputData), numElements, outputData, \ in eval()
DTile.cpp89 #define ANDROID_NN_IMPL_TILE(operandType, dataType) \ in eval() argument
91 NNTRACE_COMP_SWITCH("tileImpl::" #dataType); \ in eval()
92 tileImpl(reinterpret_cast<const dataType*>(inputData), inputShape, multiples, \ in eval()
93 reinterpret_cast<dataType*>(outputData), outputShape); \ in eval()
DArgMinMax.cpp61 #define NNAPI_IMPL_ARG_MIN_MAX(operandType, dataType) \ in argMinMaxGeneric() argument
63 NNTRACE_COMP_SWITCH("argMinMaxImpl::" #dataType); \ in argMinMaxGeneric()
65 reinterpret_cast<const dataType*>(inputData), \ in argMinMaxGeneric()
/frameworks/base/tools/aapt/
DAaptXml.cpp36 if (value.dataType != Res_value::TYPE_STRING) { in getStringAttributeAtIndex()
58 if (value.dataType < Res_value::TYPE_FIRST_INT in getIntegerAttributeAtIndex()
59 || value.dataType > Res_value::TYPE_LAST_INT) { in getIntegerAttributeAtIndex()
112 if (value.dataType == Res_value::TYPE_STRING) { in getResolvedAttribute()
127 if (value.dataType != Res_value::TYPE_STRING) { in getResolvedAttribute()
165 if (value.dataType == Res_value::TYPE_REFERENCE) { in getResolvedIntegerAttribute()
168 if (value.dataType < Res_value::TYPE_FIRST_INT in getResolvedIntegerAttribute()
169 || value.dataType > Res_value::TYPE_LAST_INT) { in getResolvedIntegerAttribute()
189 if (outValue->dataType == Res_value::TYPE_REFERENCE) { in getResolvedResourceAttribute()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/google/protobuf/
DApi.pbobjc.m99 .dataType = GPBDataTypeString,
108 .dataType = GPBDataTypeMessage,
117 .dataType = GPBDataTypeMessage,
126 .dataType = GPBDataTypeString,
135 .dataType = GPBDataTypeMessage,
144 .dataType = GPBDataTypeMessage,
153 .dataType = GPBDataTypeEnum,
218 .dataType = GPBDataTypeString,
227 .dataType = GPBDataTypeString,
236 .dataType = GPBDataTypeBool,
[all …]
DType.pbobjc.m131 .dataType = GPBDataTypeString,
140 .dataType = GPBDataTypeMessage,
149 .dataType = GPBDataTypeString,
158 .dataType = GPBDataTypeMessage,
167 .dataType = GPBDataTypeMessage,
176 .dataType = GPBDataTypeEnum,
248 .dataType = GPBDataTypeEnum,
257 .dataType = GPBDataTypeEnum,
266 .dataType = GPBDataTypeInt32,
275 .dataType = GPBDataTypeString,
[all …]
DStruct.pbobjc.m103 .dataType = GPBDataTypeMessage,
156 .dataType = GPBDataTypeEnum,
165 .dataType = GPBDataTypeDouble,
174 .dataType = GPBDataTypeString,
183 .dataType = GPBDataTypeBool,
192 .dataType = GPBDataTypeMessage,
201 .dataType = GPBDataTypeMessage,
267 .dataType = GPBDataTypeMessage,
DWrappers.pbobjc.m70 .dataType = GPBDataTypeDouble,
113 .dataType = GPBDataTypeFloat,
156 .dataType = GPBDataTypeInt64,
199 .dataType = GPBDataTypeUInt64,
242 .dataType = GPBDataTypeInt32,
285 .dataType = GPBDataTypeUInt32,
327 .dataType = GPBDataTypeBool,
370 .dataType = GPBDataTypeString,
413 .dataType = GPBDataTypeBytes,
/frameworks/ml/nn/runtime/test/fuzzing/
DRandomGraphGenerator.cpp39 RandomOperand::RandomOperand(const OperandSignature& operand, Type dataType, uint32_t rank) in RandomOperand() argument
42 if (operand.constructor) operand.constructor(dataType, rank, this); in RandomOperand()
54 if (dataType != other.dataType || dimensions.size() != other.dimensions.size() || in createEdgeIfValid()
67 return kSizeOfDataType[static_cast<int32_t>(dataType)] * getNumberOfElements(); in getBufferSize()
76 Type dataType = getRandomChoice(operation.supportedDataTypes); in RandomOperation() local
81 inputs.emplace_back(new RandomOperand(op, dataType, rank)); in RandomOperation()
84 outputs.emplace_back(new RandomOperand(op, dataType, rank)); in RandomOperation()
86 if (operation.constructor) operation.constructor(dataType, rank, this); in RandomOperation()
147 if (kScalarDataType[static_cast<int32_t>(operand->dataType)]) return true; in asConstant()
213 test_wrapper::OperandType type(operand->dataType, operand->getDimensions(), operand->scale, in createModel()
[all …]
DOperationManager.cpp41 for (auto dataType : supportedDataTypes) { in matchFilter() local
42 if (hasValue(filter.dataTypes, dataType)) combinedDataTypes.push_back(dataType); in matchFilter()
/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/
DDemoModeController.java280 private static final String getDataType(int dataType) { in getDataType() argument
281 if (dataType == 1) return "1x"; in getDataType()
282 if (dataType == 2) return "3g"; in getDataType()
283 if (dataType == 3) return "4g"; in getDataType()
284 if (dataType == 4) return "e"; in getDataType()
285 if (dataType == 5) return "g"; in getDataType()
286 if (dataType == 6) return "h"; in getDataType()
287 if (dataType == 7) return "lte"; in getDataType()
288 if (dataType == 8) return "roam"; in getDataType()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/
DGPBExtensionInternals.m47 GPB_INLINE size_t DataTypeSize(GPBDataType dataType) {
50 switch (dataType) {
67 static size_t ComputePBSerializedSizeNoTagOfObject(GPBDataType dataType, id object) {
74 switch (dataType) {
107 switch (description->dataType) {
141 size_t typeSize = DataTypeSize(description->dataType);
147 ComputePBSerializedSizeNoTagOfObject(description->dataType, value);
173 switch (description->dataType) {
214 switch (description->dataType) {
247 size_t typeSize = DataTypeSize(description->dataType);
[all …]
/frameworks/rs/script_api/
DGenerateTestFiles.cpp29 static void convertToRsType(const string& name, string* dataType, char* vectorSize) { in convertToRsType() argument
39 dataType->clear(); in convertToRsType()
42 *dataType = TYPES[i].rsDataType; in convertToRsType()
108 void writeJavaRandomCompatibleFloatAllocation(const string& dataType, const string& seed,
112 void writeJavaRandomCompatibleIntegerAllocation(const string& dataType, const string& seed,
318 string dataType; in writeJavaInputAllocationDefinition() local
320 convertToRsType(param.rsType, &dataType, &vectorSize); in writeJavaInputAllocationDefinition()
326 writeJavaRandomCompatibleFloatAllocation(dataType, seed, vectorSize, in writeJavaInputAllocationDefinition()
330 writeJavaRandomCompatibleIntegerAllocation(dataType, seed, vectorSize, in writeJavaInputAllocationDefinition()
335 *mJava << "createRandomFloatAllocation(mRS, Element.DataType." << dataType << ", " in writeJavaInputAllocationDefinition()
[all …]
/frameworks/base/tools/aapt2/
DResourceValues.cpp88 out_value->dataType = android::Res_value::TYPE_STRING; in Flatten()
124 out_value->dataType = android::Res_value::TYPE_DYNAMIC_REFERENCE; in Flatten()
126 out_value->dataType = android::Res_value::TYPE_REFERENCE; in Flatten()
130 out_value->dataType = android::Res_value::TYPE_DYNAMIC_ATTRIBUTE; in Flatten()
132 out_value->dataType = android::Res_value::TYPE_ATTRIBUTE; in Flatten()
218 out->dataType = android::Res_value::TYPE_INT_BOOLEAN; in Flatten()
264 out_value->dataType = android::Res_value::TYPE_STRING; in Flatten()
319 out_value->dataType = android::Res_value::TYPE_STRING; in Flatten()
355 out_value->dataType = android::Res_value::TYPE_STRING; in Flatten()
389 BinaryPrimitive::BinaryPrimitive(uint8_t dataType, uint32_t data) { in BinaryPrimitive() argument
[all …]
/frameworks/rs/driver/
DrsdShader.cpp287 if (f->mHal.state.dataType == RS_TYPE_MATRIX_4X4) { in appendUserConstants()
289 } else if (f->mHal.state.dataType == RS_TYPE_MATRIX_3X3) { in appendUserConstants()
291 } else if (f->mHal.state.dataType == RS_TYPE_MATRIX_2X2) { in appendUserConstants()
316 RsDataType dataType = field->mHal.state.dataType; in logUniform() local
322 if (dataType == RS_TYPE_MATRIX_4X4) { in logUniform()
328 } else if (dataType == RS_TYPE_MATRIX_3X3) { in logUniform()
333 } else if (dataType == RS_TYPE_MATRIX_2X2) { in logUniform()
363 RsDataType dataType = field->mHal.state.dataType; in setUniform() local
364 if (dataType == RS_TYPE_MATRIX_4X4) { in setUniform()
366 } else if (dataType == RS_TYPE_MATRIX_3X3) { in setUniform()
[all …]

12345