Home
last modified time | relevance | path

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

/cts/tests/tests/renderscript/src/android/renderscript/cts/
DRSBaseCompute.java76 protected Element getElement(RenderScript rs, Element.DataType dataType, int size) { in getElement() argument
79 if (dataType == Element.DataType.FLOAT_64) { in getElement()
81 } else if (dataType == Element.DataType.FLOAT_32) { in getElement()
83 } else if (dataType == Element.DataType.FLOAT_16) { in getElement()
85 } else if (dataType == Element.DataType.SIGNED_64) { in getElement()
87 } else if (dataType == Element.DataType.UNSIGNED_64) { in getElement()
89 } else if (dataType == Element.DataType.SIGNED_32) { in getElement()
91 } else if (dataType == Element.DataType.UNSIGNED_32) { in getElement()
93 } else if (dataType == Element.DataType.SIGNED_16) { in getElement()
95 } else if (dataType == Element.DataType.UNSIGNED_16) { in getElement()
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSignalStrengthTest.java107 Class<? extends CellSignalStrength> dataType = in testSignalStrength() local
109 if (dataType != null) types.add(dataType); in testSignalStrength()
115 if (dataType == null && voiceType != null) { in testSignalStrength()
120 if (dataType != null && voiceType != null in testSignalStrength()
121 && dataType.equals(CellSignalStrengthLte.class) in testSignalStrength()
137 (dataType != null && !ss.getCellSignalStrengths(dataType).isEmpty()) in testSignalStrength()
/cts/tests/tests/neuralnetworks/java_test/jni/
Dandroid_neuralnetworks_cts_ModelAssetTest.cpp53 bool isQuantizedType(int dataType) { in isQuantizedType() argument
54 return dataType == ANEURALNETWORKS_TENSOR_QUANT8_ASYMM || in isQuantizedType()
55 dataType == ANEURALNETWORKS_TENSOR_QUANT8_ASYMM_SIGNED; in isQuantizedType()
155 bool createAndCompileAddModel(JNIEnv* env, int dataType, const ANeuralNetworksMemory* memory, in createAndCompileAddModel() argument
157 ASSERT_OR_RETURN_FALSE(kDataTypeToElementSizeMap.count(dataType) > 0); in createAndCompileAddModel()
159 const uint32_t tensorSize = 1 * 256 * 256 * 4 * kDataTypeToElementSizeMap.at(dataType); in createAndCompileAddModel()
170 tensorType.type = dataType; in createAndCompileAddModel()
171 tensorType.scale = isQuantizedType(dataType) ? 1.0f : 0.0f; in createAndCompileAddModel()
292 for (const auto& [dataType, _] : kDataTypeToElementSizeMap) { in Java_android_neuralnetworks_cts_ModelAssetTest_nativeTestCompileFromAssetFile()
293 bool successWithAshmem = createAndCompileAddModel(env, dataType, memoryFromAshmem, device); in Java_android_neuralnetworks_cts_ModelAssetTest_nativeTestCompileFromAssetFile()
[all …]
/cts/tests/tests/rsblas/assets/
Dblas_gen.py324 dataType = ['s', 'd', 'c', 'z'];
326 for dt in dataType:
348 dataType = ['s', 'd', 'c', 'z'];
350 for dt in dataType:
370 dataType = ['c', 'z'];
372 for dt in dataType:
392 dataType = ['s', 'd', 'c', 'z'];
394 for dt in dataType:
409 dataType = ['c', 'z'];
411 for dt in dataType:
[all …]
/cts/tests/tests/content/src/android/content/cts/
DIntentFilterTest.java100 final String dataType = "testdataType"; in testConstructor() local
102 new IntentFilter(ACTION, dataType); in testConstructor()
114 private void verifyContent(IntentFilter filter, String action, String dataType) { in verifyContent() argument
121 if (dataType != null) { in verifyContent()
123 assertEquals(dataType, filter.getDataType(0)); in verifyContent()