Home
last modified time | relevance | path

Searched refs:inputType (Results 1 – 25 of 81) sorted by relevance

1234

/packages/modules/NeuralNetworks/common/
DLegacyUtils.cpp770 auto inputType = operands[inputIndexes[0]].type; in validateOperation() local
773 if (inputType == OperandType::TENSOR_FLOAT32) { in validateOperation()
777 } else if (inputType == OperandType::TENSOR_FLOAT16) { in validateOperation()
781 } else if (inputType == OperandType::TENSOR_QUANT8_ASYMM) { in validateOperation()
785 } else if (inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in validateOperation()
810 auto inputType = operands[inputIndexes[0]].type; in validateOperation() local
813 if (inputType == OperandType::TENSOR_FLOAT32) { in validateOperation()
817 } else if (inputType == OperandType::TENSOR_FLOAT16) { in validateOperation()
821 } else if (inputType == OperandType::TENSOR_QUANT8_ASYMM) { in validateOperation()
825 } else if (inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in validateOperation()
[all …]
DValidation.cpp1818 auto inputType = operands[inputIndexes[0]].type; in validateOperationButNotOperandsImpl() local
1822 if (inputType == OperandType::TENSOR_FLOAT32) { in validateOperationButNotOperandsImpl()
1826 } else if (inputType == OperandType::TENSOR_FLOAT16) { in validateOperationButNotOperandsImpl()
1830 } else if (inputType == OperandType::TENSOR_QUANT8_ASYMM) { in validateOperationButNotOperandsImpl()
1834 } else if (inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in validateOperationButNotOperandsImpl()
1855 auto inputType = operands[inputIndexes[0]].type; in validateOperationButNotOperandsImpl() local
1859 if (inputType == OperandType::TENSOR_FLOAT32) { in validateOperationButNotOperandsImpl()
1863 } else if (inputType == OperandType::TENSOR_FLOAT16) { in validateOperationButNotOperandsImpl()
1867 } else if (inputType == OperandType::TENSOR_QUANT8_ASYMM) { in validateOperationButNotOperandsImpl()
1871 } else if (inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in validateOperationButNotOperandsImpl()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
DKeyboardLayoutSetNavigateMoreKeysBase.java80 final int elementId, final int inputType, final int imeOptions, in doTestMoreKeysOf() argument
83 editorInfo.inputType = inputType; in doTestMoreKeysOf()
121 final int elementId, final int inputType) { in doTestNavigationMoreKeysOf() argument
123 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
127 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
131 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
135 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
139 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
143 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
147 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DInputTypeUtils.java44 private static boolean isWebEditTextInputType(final int inputType) { in isWebEditTextInputType() argument
45 return inputType == (TYPE_CLASS_TEXT | TYPE_TEXT_VARIATION_WEB_EDIT_TEXT); in isWebEditTextInputType()
48 private static boolean isWebPasswordInputType(final int inputType) { in isWebPasswordInputType() argument
50 && inputType == WEB_TEXT_PASSWORD_INPUT_TYPE; in isWebPasswordInputType()
53 private static boolean isWebEmailAddressInputType(final int inputType) { in isWebEmailAddressInputType() argument
55 && inputType == WEB_TEXT_EMAIL_ADDRESS_INPUT_TYPE; in isWebEmailAddressInputType()
58 private static boolean isNumberPasswordInputType(final int inputType) { in isNumberPasswordInputType() argument
60 && inputType == NUMBER_PASSWORD_INPUT_TYPE; in isNumberPasswordInputType()
63 private static boolean isTextPasswordInputType(final int inputType) { in isTextPasswordInputType() argument
64 return inputType == TEXT_PASSWORD_INPUT_TYPE; in isTextPasswordInputType()
[all …]
/packages/modules/NeuralNetworks/runtime/test/fibonacci_extension/
DFibonacciExtensionTest.cpp129 void addNopOperation(ExtensionModel* model, ExtensionOperandType inputType, uint32_t input, in addNopOperation() argument
132 ASSERT_EQ(inputType.operandType.type, ANEURALNETWORKS_TENSOR_FLOAT32); in addNopOperation()
133 ASSERT_EQ(inputType.dimensions.size(), 1u); in addNopOperation()
135 uint32_t inputZeros = model->addOperand(&inputType); in addNopOperation()
136 uint32_t inputSize = inputType.dimensions[0]; in addNopOperation()
150 void createModel(ExtensionModel* model, ExtensionOperandType inputType, in createModel() argument
152 uint32_t fibonacciInput = model->addOperand(&inputType); in createModel()
155 uint32_t modelInput = addNopOperations ? model->addOperand(&inputType) : fibonacciInput; in createModel()
159 addNopOperation(model, inputType, modelInput, fibonacciInput); in createModel()
178 ExtensionOperandType inputType(static_cast<Type>(mModel.getExtensionOperandType( in TEST_F() local
[all …]
/packages/modules/NeuralNetworks/common/operations/
DElementwise.cpp88 OperandType inputType = context->getInputType(kInputTensor); in validate() local
89 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validate()
90 inputType == OperandType::TENSOR_FLOAT32) in validate()
92 NN_RET_CHECK(validateInputTypes(context, {inputType})); in validate()
93 NN_RET_CHECK(validateOutputTypes(context, {inputType})); in validate()
100 OperandType inputType = context->getInputType(kInputTensor); in validateAbs() local
101 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validateAbs()
102 inputType == OperandType::TENSOR_FLOAT32 || inputType == OperandType::TENSOR_INT32) in validateAbs()
104 NN_RET_CHECK(validateInputTypes(context, {inputType})); in validateAbs()
105 NN_RET_CHECK(validateOutputTypes(context, {inputType})); in validateAbs()
[all …]
DRank.cpp36 OperandType inputType = context->getInputType(kInputTensor); in validate() local
37 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validate()
38 inputType == OperandType::TENSOR_FLOAT32 || in validate()
39 inputType == OperandType::TENSOR_INT32 || in validate()
40 inputType == OperandType::TENSOR_QUANT8_ASYMM || in validate()
41 inputType == OperandType::TENSOR_QUANT16_SYMM || in validate()
42 inputType == OperandType::TENSOR_BOOL8 || in validate()
43 inputType == OperandType::TENSOR_QUANT8_SYMM_PER_CHANNEL || in validate()
44 inputType == OperandType::TENSOR_QUANT16_ASYMM || in validate()
45 inputType == OperandType::TENSOR_QUANT8_SYMM || in validate()
[all …]
DReduce.cpp76 OperandType inputType = context->getInputType(kInputTensor); in validateProdSum() local
77 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validateProdSum()
78 inputType == OperandType::TENSOR_FLOAT32) in validateProdSum()
81 validateInputTypes(context, {inputType, OperandType::TENSOR_INT32, OperandType::BOOL})); in validateProdSum()
82 NN_RET_CHECK(validateOutputTypes(context, {inputType})); in validateProdSum()
93 OperandType inputType = context->getInputType(kInputTensor); in validateMaxMin() local
94 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validateMaxMin()
95 inputType == OperandType::TENSOR_FLOAT32 || in validateMaxMin()
96 inputType == OperandType::TENSOR_QUANT8_ASYMM || in validateMaxMin()
97 inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) in validateMaxMin()
[all …]
DDequantize.cpp82 const OperandType inputType = context->getInputType(kInputTensor); in validate() local
90 if (inputType == OperandType::TENSOR_QUANT8_ASYMM && in validate()
95 NN_RET_CHECK(inputType == OperandType::TENSOR_QUANT8_ASYMM || in validate()
96 inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED || in validate()
97 inputType == OperandType::TENSOR_QUANT8_SYMM || in validate()
98 inputType == OperandType::TENSOR_QUANT8_SYMM_PER_CHANNEL) in validate()
99 << "Unsupported input operand type for DEQUANTIZE op: " << inputType; in validate()
118 const OperandType inputType = context->getInputType(kInputTensor); in execute() local
122 if (inputType == OperandType::TENSOR_QUANT8_ASYMM) { in execute()
130 } else if (inputType == OperandType::TENSOR_QUANT8_SYMM) { in execute()
[all …]
DSqueeze.cpp41 OperandType inputType = context->getInputType(kInputTensor); in validate() local
42 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validate()
43 inputType == OperandType::TENSOR_FLOAT32 || in validate()
44 inputType == OperandType::TENSOR_QUANT8_ASYMM || in validate()
45 inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) in validate()
46 << "Unsupported input operand type for SQUEEZE op: " << inputType; in validate()
49 if (inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in validate()
51 } else if (inputType == OperandType::TENSOR_FLOAT16) { in validate()
58 inputType, in validate()
61 NN_RET_CHECK(validateOutputTypes(context, {inputType})); in validate()
DSelect.cpp72 OperandType inputType = context->getInputType(kInputTensor1); in validate() local
73 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validate()
74 inputType == OperandType::TENSOR_FLOAT32 || in validate()
75 inputType == OperandType::TENSOR_INT32 || in validate()
76 inputType == OperandType::TENSOR_QUANT8_ASYMM || in validate()
77 inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) in validate()
78 << "Unsupported input operand type for select op: " << inputType; in validate()
79 NN_RET_CHECK(validateInputTypes(context, {OperandType::TENSOR_BOOL8, inputType, inputType})); in validate()
80 NN_RET_CHECK(validateOutputTypes(context, {inputType})); in validate()
DTopK_V2.cpp79 OperandType inputType = context->getInputType(kInputTensor); in validate() local
80 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validate()
81 inputType == OperandType::TENSOR_FLOAT32 || in validate()
82 inputType == OperandType::TENSOR_INT32 || in validate()
83 inputType == OperandType::TENSOR_QUANT8_ASYMM || in validate()
84 inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) in validate()
85 << "Unsupported input operand type for select op: " << inputType; in validate()
86 NN_RET_CHECK(validateInputTypes(context, {inputType, OperandType::INT32})); in validate()
87 NN_RET_CHECK(validateOutputTypes(context, {inputType, OperandType::TENSOR_INT32})); in validate()
89 if (inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in validate()
DBidirectionalSequenceRNN.cpp326 OperandType inputType = context->getInputType(kInputTensor); in validate() local
327 if (inputType != OperandType::TENSOR_FLOAT16 && inputType != OperandType::TENSOR_FLOAT32) { in validate()
329 << inputType; in validate()
332 context, {inputType, inputType, inputType, inputType, inputType, inputType, inputType, in validate()
333 inputType, inputType, inputType, inputType, inputType, OperandType::INT32, in validate()
336 std::vector<OperandType> outExpectedTypes(numOutputs, inputType); in validate()
DUnidirectionalSequenceRNN.cpp135 OperandType inputType = context->getInputType(kInputTensor); in validate() local
136 if (inputType != OperandType::TENSOR_FLOAT16 && inputType != OperandType::TENSOR_FLOAT32) { in validate()
138 << inputType; in validate()
140 NN_RET_CHECK(validateInputTypes(context, {inputType, inputType, inputType, inputType, inputType, in validate()
142 std::vector<OperandType> outputTypes = {inputType}; in validate()
146 outputTypes.push_back(inputType); in validate()
DResizeImageOps.cpp187 auto inputType = context->getInputType(kInputTensor); in validate() local
189 std::vector<OperandType> inExpectedTypes = {inputType, scalarType, scalarType}; in validate()
191 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validate()
192 inputType == OperandType::TENSOR_FLOAT32 || in validate()
193 inputType == OperandType::TENSOR_QUANT8_ASYMM || in validate()
194 inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) in validate()
196 if (inputType == OperandType::TENSOR_FLOAT16 || inputType == OperandType::TENSOR_QUANT8_ASYMM) { in validate()
199 if (inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in validate()
204 if (inputType == OperandType::TENSOR_FLOAT32) { in validate()
206 } else if (inputType == OperandType::TENSOR_FLOAT16) { in validate()
[all …]
DQuantize.cpp70 const OperandType inputType = context->getInputType(kInputTensor); in validate() local
73 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validate()
74 inputType == OperandType::TENSOR_FLOAT32) in validate()
75 << "Unsupported input operand type for QUANTIZE op: " << inputType; in validate()
97 const OperandType inputType = context->getInputType(kInputTensor); in execute() local
99 if (inputType == OperandType::TENSOR_FLOAT32) { in execute()
109 } else if (inputType == OperandType::TENSOR_FLOAT16) { in execute()
121 << inputType << " output type: " << context->getOutputType(kOutputTensor) in execute()
DGather.cpp65 OperandType inputType = context->getInputType(kInputTensor); in validate() local
66 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validate()
67 inputType == OperandType::TENSOR_FLOAT32 || in validate()
68 inputType == OperandType::TENSOR_INT32 || in validate()
69 inputType == OperandType::TENSOR_QUANT8_ASYMM || in validate()
70 inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) in validate()
73 {inputType, OperandType::INT32, OperandType::TENSOR_INT32})); in validate()
74 NN_RET_CHECK(validateOutputTypes(context, {inputType})); in validate()
75 if (inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in validate()
DStridedSlice.cpp107 OperandType inputType = context->getInputType(kInputTensor); in validate() local
108 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validate()
109 inputType == OperandType::TENSOR_FLOAT32 || in validate()
110 inputType == OperandType::TENSOR_QUANT8_ASYMM || in validate()
111 inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) in validate()
112 << "Unsupported input operand type for STRIDED_SLICE op: " << inputType; in validate()
115 if (inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in validate()
117 } else if (inputType == OperandType::TENSOR_FLOAT16) { in validate()
124 inputType, in validate()
132 NN_RET_CHECK(validateOutputTypes(context, {inputType})); in validate()
DPRelu.cpp105 auto inputType = context->getInputType(kInputTensor); in validate() local
106 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validate()
107 inputType == OperandType::TENSOR_FLOAT32 || in validate()
108 inputType == OperandType::TENSOR_QUANT8_ASYMM || in validate()
109 inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) in validate()
111 NN_RET_CHECK(validateInputTypes(context, {inputType, inputType})); in validate()
112 NN_RET_CHECK(validateOutputTypes(context, {inputType})); in validate()
113 if (inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in validate()
DChannelShuffle.cpp63 auto inputType = context->getInputType(kInputTensor); in validate() local
64 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validate()
65 inputType == OperandType::TENSOR_FLOAT32 || in validate()
66 inputType == OperandType::TENSOR_QUANT8_ASYMM || in validate()
67 inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) in validate()
73 NN_RET_CHECK(validateInputTypes(context, {inputType, OperandType::INT32, OperandType::INT32})); in validate()
74 NN_RET_CHECK(validateOutputTypes(context, {inputType})); in validate()
75 if (inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in validate()
DComparisons.cpp129 OperandType inputType = context->getInputType(kInputTensor1); in validate() local
131 inputType == OperandType::TENSOR_BOOL8 || inputType == OperandType::TENSOR_FLOAT16 || in validate()
132 inputType == OperandType::TENSOR_FLOAT32 || inputType == OperandType::TENSOR_INT32 || in validate()
133 inputType == OperandType::TENSOR_QUANT8_ASYMM || in validate()
134 inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) in validate()
135 << "Unsupported input operand type for comparison op: " << inputType; in validate()
136 NN_RET_CHECK(validateInputTypes(context, {inputType, inputType})); in validate()
138 if (inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in validate()
DSlice.cpp90 const OperandType inputType = context->getInputType(kInputTensor); in validate() local
91 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validate()
92 inputType == OperandType::TENSOR_FLOAT32 || in validate()
93 inputType == OperandType::TENSOR_INT32 || in validate()
94 inputType == OperandType::TENSOR_QUANT8_ASYMM || in validate()
95 inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) in validate()
98 if (inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in validate()
104 context, {inputType, OperandType::TENSOR_INT32, OperandType::TENSOR_INT32})); in validate()
105 NN_RET_CHECK(validateOutputTypes(context, {inputType})); in validate()
DNeg.cpp53 OperandType inputType = context->getInputType(kInputTensor); in validate() local
54 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validate()
55 inputType == OperandType::TENSOR_FLOAT32 || inputType == OperandType::TENSOR_INT32) in validate()
57 NN_RET_CHECK(validateInputTypes(context, {inputType})); in validate()
58 NN_RET_CHECK(validateOutputTypes(context, {inputType})); in validate()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DInputAttributes.java62 final int inputType = null != editorInfo ? editorInfo.inputType : 0; in InputAttributes() local
63 final int inputClass = inputType & InputType.TYPE_MASK_CLASS; in InputAttributes()
64 mInputType = inputType; in InputAttributes()
65 mIsPasswordField = InputTypeUtils.isPasswordInputType(inputType) in InputAttributes()
66 || InputTypeUtils.isVisiblePasswordInputType(inputType); in InputAttributes()
74 } else if (InputType.TYPE_NULL == inputType) { in InputAttributes()
80 + " imeOptions=0x%08x", inputType, editorInfo.imeOptions)); in InputAttributes()
92 final int variation = inputType & InputType.TYPE_MASK_VARIATION; in InputAttributes()
94 0 != (inputType & InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS); in InputAttributes()
96 0 != (inputType & InputType.TYPE_TEXT_FLAG_MULTI_LINE); in InputAttributes()
[all …]
/packages/services/Car/service/src/com/android/car/
DInputCaptureClientController.java384 for (int inputType : inputTypes) { in requestInputEventCapture()
386 inputType); in requestInputEventCapture()
389 perInputStacks.put(inputType, perInputStack); in requestInputEventCapture()
393 if (oldTopClient.mGrantedTypes.remove(Integer.valueOf(inputType))) { in requestInputEventCapture()
398 newClient.mGrantedTypes.add(inputType); in requestInputEventCapture()
404 int inputType = perInputStacks.keyAt(i); in requestInputEventCapture() local
412 if (!topStackClient.mGrantedTypes.contains(inputType)) { in requestInputEventCapture()
413 topStackClient.mGrantedTypes.add(inputType); in requestInputEventCapture()
474 int inputType = perInputStacks.keyAt(i); in releaseInputEventCapture() local
482 newTopClient.mGrantedTypes.add(inputType); in releaseInputEventCapture()
[all …]

1234