Home
last modified time | relevance | path

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

1234

/frameworks/ml/nn/runtime/test/
DTestOperandExtraParams.cpp44 ANeuralNetworksOperandType createOperand(int32_t dataType) { in createOperand() argument
46 switch (dataType) { in createOperand()
54 return {.type = dataType, in createOperand()
65 return {.type = dataType, in createOperand()
71 return {.type = dataType, in createOperand()
77 return {.type = dataType, in createOperand()
83 return {.type = dataType, in createOperand()
89 return {.type = dataType, in createOperand()
95 return {.type = dataType, in createOperand()
115 void testAddingWithSymmPerChannelQuantParams(int32_t dataType, in testAddingWithSymmPerChannelQuantParams() argument
[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.h132 switch (op->dataType) {
230 NN_FUZZER_CHECK(to->dataType == from->dataType);
241 if (isQuantizedType(op->inputs[0]->dataType)) {
257 inline void sameShapeOpConstructor(TestOperandType dataType, uint32_t rank, RandomOperation* op) {
258 sameDimensionOpConstructor(dataType, rank, op);
262 inline void defaultOperandConstructor(TestOperandType dataType, uint32_t, RandomOperand* op) {
263 op->dataType = dataType;
264 if (dataType == TestOperandType::TENSOR_QUANT8_ASYMM) {
267 } else if (dataType == TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED) {
270 } else if (dataType == TestOperandType::TENSOR_QUANT8_SYMM) {
[all …]
DBoundingBox.cpp28 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()
DNormalization.cpp23 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()
DElementwise.cpp23 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()
/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.cpp49 #define ANDROID_NN_COPY_CAST(operandType, dataType) \ in copyToTensor() argument
51 NNTRACE_COMP("cast::copyCast::" #dataType); \ in copyToTensor()
52 copyCast(inputData, reinterpret_cast<dataType*>(outputData), numElements); \ in copyToTensor()
80 #define ANDROID_NN_COPY_TO_TENSOR(operandType, dataType) \ in eval() argument
82 NNTRACE_TRANS("cast::copyToTensor::" #dataType); \ in eval()
83 copyToTensor(reinterpret_cast<const dataType*>(inputData), numElements, outputData, \ in eval()
DTile.cpp95 #define ANDROID_NN_IMPL_TILE(operandType, dataType) \ in eval() argument
97 NNTRACE_COMP_SWITCH("tileImpl::" #dataType); \ in eval()
98 tileImpl(reinterpret_cast<const dataType*>(inputData), inputShape, multiples, \ in eval()
99 reinterpret_cast<dataType*>(outputData), outputShape); \ in eval()
DArgMinMax.cpp60 #define NNAPI_IMPL_ARG_MIN_MAX(operandType, dataType) \ in argMinMaxGeneric() argument
62 NNTRACE_COMP_SWITCH("argMinMaxImpl::" #dataType); \ in argMinMaxGeneric()
63 argMinMaxImpl(reinterpret_cast<const dataType*>(inputData), inputShape, axis, isArgMin, \ 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/ml/nn/runtime/test/fuzzing/
DRandomGraphGenerator.cpp44 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()
DOperationManager.cpp43 for (auto dataType : supportedDataTypes) { in matchFilter() local
44 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/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 …]
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp247 EXPECT_THAT(prim->value.dataType, Eq(android::Res_value::TYPE_DIMENSION)); in TEST()
343 EXPECT_THAT(bp->value.dataType, Eq(android::Res_value::TYPE_INT_BOOLEAN)); in TEST()
349 EXPECT_THAT(bp->value.dataType, Eq(android::Res_value::TYPE_INT_BOOLEAN)); in TEST()
355 EXPECT_THAT(bp->value.dataType, Eq(android::Res_value::TYPE_INT_COLOR_RGB8)); in TEST()
361 EXPECT_THAT(bp->value.dataType, Eq(android::Res_value::TYPE_INT_COLOR_ARGB8)); in TEST()
367 EXPECT_THAT(bp->value.dataType, Eq(android::Res_value::TYPE_INT_COLOR_RGB4)); in TEST()
373 EXPECT_THAT(bp->value.dataType, Eq(android::Res_value::TYPE_INT_COLOR_ARGB4)); in TEST()
379 EXPECT_THAT(bp->value.dataType, Eq(android::Res_value::TYPE_INT_DEC)); in TEST()
385 EXPECT_THAT(bp->value.dataType, Eq(android::Res_value::TYPE_INT_DEC)); in TEST()
391 EXPECT_THAT(bp->value.dataType, Eq(android::Res_value::TYPE_INT_HEX)); in TEST()
[all …]
/frameworks/base/core/java/android/app/backup/
DRestoreDescription.java67 public RestoreDescription(String packageName, int dataType) { in RestoreDescription() argument
69 mDataType = dataType; in RestoreDescription()
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_single_source_alloc.java69 for (rsDataType dataType : rsDataType.values()) { in run()
73 s.invoke_CreateAndTestAlloc(dataType.Value(), vecSize); in run()
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_single_source_alloc.java67 for (rsDataType dataType : rsDataType.values()) { in run()
71 s.invoke_CreateAndTestAlloc(dataType.Value(), vecSize); in run()

1234