Home
last modified time | relevance | path

Searched refs:val (Results 1 – 25 of 67) sorted by relevance

123

/cts/tests/tests/renderscript/src/android/renderscript/cts/
DFloat16ArithmeticTest.java53 private boolean isFloat16NaN(short val) { in isFloat16NaN() argument
54 return (val & EXPONENT_MASK) == EXPONENT_MASK && in isFloat16NaN()
55 (val & MANTISSA_MASK) != 0; in isFloat16NaN()
59 private boolean isFloat16Infinite(short val) { in isFloat16Infinite() argument
60 return (val & EXPONENT_MASK) == EXPONENT_MASK && in isFloat16Infinite()
61 (val & MANTISSA_MASK) == 0; in isFloat16Infinite()
65 private boolean isFloat16SubNormal(short val) { in isFloat16SubNormal() argument
66 return (val & EXPONENT_MASK) == 0 && (val & MANTISSA_MASK) != 0; in isFloat16SubNormal()
70 private boolean isFloat16Zero(short val) { in isFloat16Zero() argument
71 return (val & ~SIGN_MASK) == 0; in isFloat16Zero()
[all …]
Dfloat16_gen.c88 int isFloat16NaN(unsigned short val) { in isFloat16NaN() argument
89 return (val & EXPONENT_MASK) == EXPONENT_MASK && in isFloat16NaN()
90 (val & MANTISSA_MASK) != 0; in isFloat16NaN()
94 int isFloat16Infinite(unsigned short val) { in isFloat16Infinite() argument
95 return (val & EXPONENT_MASK) == EXPONENT_MASK && in isFloat16Infinite()
96 (val & MANTISSA_MASK) == 0; in isFloat16Infinite()
100 int isFloat16SubNormal(unsigned short val) { in isFloat16SubNormal() argument
101 return (val & EXPONENT_MASK) == 0 && (val & MANTISSA_MASK) != 0; in isFloat16SubNormal()
105 int isFloat16Negative(unsigned short val) { in isFloat16Negative() argument
106 return (val & SIGN_MASK) != 0; in isFloat16Negative()
/cts/suite/audio_quality/lib/include/task/
DTaskCase.h62 inline Value(double val): mType(ETypeDouble) { in Value() argument
63 setDouble(val); in Value()
65 inline Value(int64_t val): mType(ETypeI64) { in Value() argument
66 setInt64(val); in Value()
74 inline void setDouble(double val) { in setDouble() argument
75 mValue[0] = val; in setDouble()
83 inline void setInt64(int64_t val) { in setInt64() argument
85 data[0] = val; in setInt64()
106 bool registerValue(const android::String8& name, Value& val);
107 bool updateValue(const android::String8& name, Value& val);
[all …]
/cts/suite/audio_quality/lib/src/audio/
DAudioSignalFactory.cpp34 double val = sin(multiplier * i) * maxPositive; in generateSineWave() local
35 *data = (int16_t)val; in generateSineWave()
38 *data = (int16_t)val; in generateSineWave()
57 int val = rand(); in generateWhiteNoise() local
58 val = (int16_t)((val - middle) * maxPositive / middle); in generateWhiteNoise()
59 *data = val; in generateWhiteNoise()
62 *data = val; in generateWhiteNoise()
/cts/apps/CameraITS/pymodules/its/
Dobjects.py37 return [{"numerator":val, "denominator":1} for val in i]
53 return [{"numerator":math.floor(val*denom+0.5), "denominator":denom}
54 for val in f]
68 return [float(val["numerator"]) / float(val["denominator"])
69 for val in r]
/cts/tests/tests/content/src/android/content/cts/util/
DXmlUtils.java185 public static final void writeMapXml(Map val, OutputStream out) in writeMapXml() argument
191 writeMapXml(val, null, serializer); in writeMapXml()
207 public static final void writeListXml(List val, OutputStream out) in writeListXml() argument
214 writeListXml(val, null, serializer); in writeListXml()
232 public static final void writeMapXml(Map val, String name, XmlSerializer out) in writeMapXml() argument
234 writeMapXml(val, name, out, null); in writeMapXml()
254 public static final void writeMapXml(Map val, String name, XmlSerializer out, in writeMapXml() argument
257 if (val == null) { in writeMapXml()
268 writeMapXml(val, out, callback); in writeMapXml()
288 public static final void writeMapXml(Map val, XmlSerializer out, in writeMapXml() argument
[all …]
/cts/tests/tests/widget/src/android/widget/cts/util/
DXmlUtils.java183 public static final void writeListXml(List val, OutputStream out) in writeListXml() argument
190 writeListXml(val, null, serializer); in writeListXml()
207 public static final void writeMapXml(Map val, String name, XmlSerializer out) in writeMapXml() argument
209 writeMapXml(val, name, out, null); in writeMapXml()
228 public static final void writeMapXml(Map val, String name, XmlSerializer out, in writeMapXml() argument
231 if (val == null) { in writeMapXml()
242 writeMapXml(val, out, callback); in writeMapXml()
261 public static final void writeMapXml(Map val, XmlSerializer out, in writeMapXml() argument
263 if (val == null) { in writeMapXml()
267 Set s = val.entrySet(); in writeMapXml()
[all …]
/cts/tests/tests/view/src/android/view/cts/util/
DXmlUtils.java182 public static final void writeListXml(List val, OutputStream out) in writeListXml() argument
189 writeListXml(val, null, serializer); in writeListXml()
206 public static final void writeMapXml(Map val, String name, XmlSerializer out) in writeMapXml() argument
208 writeMapXml(val, name, out, null); in writeMapXml()
227 public static final void writeMapXml(Map val, String name, XmlSerializer out, in writeMapXml() argument
230 if (val == null) { in writeMapXml()
241 writeMapXml(val, out, callback); in writeMapXml()
260 public static final void writeMapXml(Map val, XmlSerializer out, in writeMapXml() argument
262 if (val == null) { in writeMapXml()
266 Set s = val.entrySet(); in writeMapXml()
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/monitor_enter/
DTest_monitor_enter.java140 private int val; field in TestRunnable2
141 TestRunnable2(T_monitor_enter_2 t2, int val) { in TestRunnable2() argument
143 this.val = val; in TestRunnable2()
148 t2.run(val); in run()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/iget/d/
DT_iget_2.java21 public float val = 123.0f; field in T_iget_2
24 return val; in run()
DT_iget_9.java21 public float val = 123.0f; field in T_iget_9
24 return val; in run()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sget_wide/d/
DT_sget_wide_2.java21 public static double val = 123.0d; field in T_sget_wide_2
24 return val; in run()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_static/d/
DT_invoke_static_4.java21 static long val = 123456789l; field in T_invoke_static_4
24 return val; in run()
DT_invoke_static_4.d19 .field static val J
25 sput-wide v0, dot.junit.opcodes.invoke_static.d.T_invoke_static_4.val J
39 sget-wide v2, dot.junit.opcodes.invoke_static.d.T_invoke_static_4.val J
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/iget_wide/d/
DT_iget_wide_2.java21 public double val = 123.0d; field in T_iget_wide_2
24 return val; in run()
DT_iget_wide_2.d19 .field public val D
27 iput-wide v0, v2, dot.junit.opcodes.iget_wide.d.T_iget_wide_2.val D
35 iget-wide v1, v3, dot.junit.opcodes.iget_wide.d.T_iget_wide_2.val D
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sget/d/
DT_sget_2.java21 public static float val = 123.0f; field in T_sget_2
24 return val; in run()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsSerializer.java556 Object val[] = new Object[ja.length()]; in deserialize() local
559 Array.set(val, i, ja.getInt(i)); in deserialize()
561 Array.set(val, i, (byte)ja.getInt(i)); in deserialize()
563 Array.set(val, i, (float)ja.getDouble(i)); in deserialize()
565 Array.set(val, i, ja.getLong(i)); in deserialize()
567 Array.set(val, i, ja.getDouble(i)); in deserialize()
569 Array.set(val, i, ja.getBoolean(i)); in deserialize()
571 Array.set(val, i, ja.getString(i)); in deserialize()
574 Array.set(val, i, new Size( in deserialize()
578 Array.set(val, i, new Rect( in deserialize()
[all …]
/cts/tools/dasm/src/dasm/tokens/
Dnumber_token.java25 public number_token(int term_num, Number val) { in number_token() argument
27 number_val = val; in number_token()
/cts/apps/CameraITS/tests/scene1/
Dtest_black_white.py78 for val in black_means:
79 assert(val < 0.025)
80 for val in white_means:
81 assert(val > 0.975)
/cts/suite/audio_quality/lib/src/
DSignalProcessingImpl.cpp143 TaskCase::Value* val = reinterpret_cast<TaskCase::Value*>(inputs[i]); in run() local
144 bool isI64 = (val->getType() == TaskCase::Value::ETypeI64); in run()
147 mBuffer.write<int64_t>(val->getInt64()); in run()
149 mBuffer.write<double>(val->getDouble()); in run()
221 TaskCase::Value* val = reinterpret_cast<TaskCase::Value*>(outputs[i]); in run() local
223 if (!read((char*)val->getPtr(), sizeof(int64_t))) { in run()
228 val->setType(TaskCase::Value::ETypeI64); in run()
230 val->setType(TaskCase::Value::ETypeDouble); in run()
/cts/suite/audio_quality/lib/src/task/
DTaskCase.cpp177 bool TaskCase::registerValue(const android::String8& orig, Value& val) in registerValue() argument
184 return registerGeneric<Value>(mValueList, translated, val); in registerValue()
187 bool TaskCase::updateValue(const android::String8& orig, Value& val) in updateValue() argument
193 return updateGeneric<Value>(mValueList, translated, val); in updateValue()
196 bool TaskCase::findValue(const android::String8& orig, Value& val) in findValue() argument
202 return findGeneric<Value>(mValueList, translated, val); in findValue()
224 bool TaskCase::findIndex(const android::String8& name, int& val) in findIndex() argument
226 return findGeneric<int>(mIndexList, name, val); in findIndex()
259 int val; in translateVarName() local
260 if (!findIndex(indexName, val)) { in translateVarName()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/
DExactComparer.java75 float val = sum1DFloatAllocation(outputAllocation); in verifySameRowsRS() local
76 Log.d(TAG, "Number of different pixels RS : " + val); in verifySameRowsRS()
78 return val == 0; in verifySameRowsRS()
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/helpers/
DAssertHelpers.java205 for (Integer val : array) { in buildList()
206 list.add(val); in buildList()
217 String val = ((first) ? ", " : "") + ((elem != null) ? elem.toString() : "null"); in formatCollection() local
219 if ((builder.length() + val.length()) > maxLen - "...]".length()) { in formatCollection()
223 builder.append(val); in formatCollection()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DSoundGenerator.java42 short val = (short) ((dVal * 32767)); in SoundGenerator() local
43 generatedSound[i++] = (byte) (val & 0x00ff); in SoundGenerator()
44 generatedSound[i++] = (byte) ((val & 0xff00) >>> 8); in SoundGenerator()

123