Home
last modified time | relevance | path

Searched refs:num (Results 1 – 24 of 24) sorted by relevance

/cts/tests/sample/src/android/sample/cts/
DSampleDeviceResultTest.java84 private static long factorialRecursive(int num) { in factorialRecursive() argument
85 if (num <= 0) { in factorialRecursive()
88 return num * factorialRecursive(num - 1); in factorialRecursive()
96 private static long factorialIterative(int num) { in factorialIterative() argument
98 for (int i = 2; i <= num; i++) { in factorialIterative()
/cts/tests/tests/database/src/android/database/sqlite/cts/
DDatabaseStatementTest.java144 long num = c.getLong(numCol); in testStatementLongBinding() local
145 assertEquals(i, num); in testStatementLongBinding()
166 String num = c.getString(numCol); in testStatementStringBinding() local
167 assertEquals(Long.toHexString(i), num); in testStatementStringBinding() local
211 String num = c.getString(numCol); in testSimpleStringBinding() local
212 assertEquals(Integer.toHexString(0), num); in testSimpleStringBinding()
237 long num = c.getLong(numCol); in testStatementMultipleBindings() local
239 assertEquals(i, num); in testStatementMultipleBindings()
272 long num = c.getLong(numCol); in run() local
274 assertEquals(i, num); in run()
[all …]
DSQLiteDatabaseTest.java272 private void setNum(int num) { in setNum() argument
273 mDatabase.execSQL("UPDATE test SET num = " + num); in setNum()
276 private void assertNum(int num) { in assertNum() argument
277 assertEquals(num, DatabaseUtils.longForQuery(mDatabase, in assertNum()
/cts/tests/tests/media/libmediandkjni/
Dcodec-utils-jni.cpp399 int64_t num = rawStats[0]; // #Y,U,V in Raw2YUVStats() local
406 if (num > 0) { in Raw2YUVStats()
407 stats[0] = sum_x[0] / (float)num; // y average in Raw2YUVStats()
408 stats[1] = sum_x[1] / (float)num; // u average in Raw2YUVStats()
409 stats[2] = sum_x[2] / (float)num; // v average in Raw2YUVStats()
413 stats[3] = sqrtf((sum_xx[0] + 1) * num - sum_x[0] * sum_x[0]) / num; // y stdev in Raw2YUVStats()
414 stats[4] = sqrtf((sum_xx[1] + 1) * num - sum_x[1] * sum_x[1]) / num; // u stdev in Raw2YUVStats()
415 stats[5] = sqrtf((sum_xx[2] + 1) * num - sum_x[2] * sum_x[2]) / num; // v stdev in Raw2YUVStats()
418 stats[6] = (float)(sum_xy[0] + 1 - sum_x[0] * sum_x[1] / num) / num / stats[3] / stats[4]; in Raw2YUVStats()
420 stats[7] = (float)(sum_xy[1] + 1 - sum_x[0] * sum_x[2] / num) / num / stats[3] / stats[5]; in Raw2YUVStats()
[all …]
/cts/libs/deviceutil/src/android/cts/util/
DMediaUtils.java424 int num = data.length; in getAverage() local
425 if (num == 0) { in getAverage()
430 for (int i = 1; i < num; i++) { in getAverage()
433 return sum / num; in getAverage()
441 int num = data.length; in getStdev() local
442 if (num == 0) { in getStdev()
446 for (int i = 0; i < num; ++i) { in getStdev()
449 variance /= num; in getStdev()
454 int num = array.length; in calculateMovingAverage() local
455 if (num < n) { in calculateMovingAverage()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DPresentationSyncTest.java388 private void drawFrame(int num, float mult) { in drawFrame() argument
389 num %= 64; in drawFrame()
399 startX = (num % 16) * (mWidth / 16); in drawFrame()
400 startY = (num / 16) * (mHeight / 4); in drawFrame()
401 if ((num >= 16 && num < 32) || (num >= 48)) { in drawFrame()
/cts/tools/dasm/src/dasm/
DScanner.java464 Number num; in readNumber()
466 num = Utils.stringToNumber(str); in readNumber()
473 if (num instanceof Integer) { in readNumber()
474 return new int_token(sym.Int, num.intValue()); in readNumber()
477 return new number_token(sym.Num, num); in readNumber()
DDAsm.java1287 void addFillArrayData(Number num) throws DasmError { in addFillArrayData() argument
1288 if (PARSER_DEBUG) System.out.println("addFillArrayData(" + num + ")"); in addFillArrayData()
1289 fill_array_data_values.add(num); in addFillArrayData()
1303 Number num = fill_array_data_values.elementAt(i); in endFillArrayData() local
1305 constant = CstLong.make(num.longValue()); in endFillArrayData()
1308 .make(Float.floatToIntBits(num.floatValue())); in endFillArrayData()
1310 constant = CstDouble.make(Double.doubleToLongBits(num in endFillArrayData()
1313 constant = CstBoolean.make(num.intValue()); in endFillArrayData()
1315 constant = CstByte.make(num.intValue()); in endFillArrayData()
1317 constant = CstChar.make(num.intValue()); in endFillArrayData()
[all …]
Dparser.cup607 // .var <num> is <name> <desc> from StartLab to EndLab
608 // .var <num> is <name> <desc> signature <sign> from StartLab to EndLab
644 // .line <num>
/cts/tests/tests/database/src/android/database/cts/
DAbstractCursorTest.java510 Number num = (Number) mRows[mPos].get(columnIndex); in getShort() local
511 return num.shortValue(); in getShort()
516 Number num = (Number) mRows[mPos].get(columnIndex); in getInt() local
517 return num.intValue(); in getInt()
522 Number num = (Number) mRows[mPos].get(columnIndex); in getLong() local
523 return num.longValue(); in getLong()
528 Number num = (Number) mRows[mPos].get(columnIndex); in getFloat() local
529 return num.floatValue(); in getFloat()
534 Number num = (Number) mRows[mPos].get(columnIndex); in getDouble() local
535 return num.doubleValue(); in getDouble()
/cts/tests/tests/widget/src/android/widget/cts/util/
DXmlUtils.java988 int num; in readThisIntArrayXml() local
990 num = Integer.parseInt(parser.getAttributeValue(null, "num")); in readThisIntArrayXml()
1000 int[] array = new int[num]; in readThisIntArrayXml()
1057 int num; in readThisLongArrayXml() local
1059 num = Integer.parseInt(parser.getAttributeValue(null, "num")); in readThisLongArrayXml()
1067 long[] array = new long[num]; in readThisLongArrayXml()
1117 int num; in readThisDoubleArrayXml() local
1119 num = Integer.parseInt(parser.getAttributeValue(null, "num")); in readThisDoubleArrayXml()
1127 double[] array = new double[num]; in readThisDoubleArrayXml()
1177 int num; in readThisStringArrayXml() local
[all …]
/cts/tests/tests/view/src/android/view/cts/util/
DXmlUtils.java987 int num; in readThisIntArrayXml() local
989 num = Integer.parseInt(parser.getAttributeValue(null, "num")); in readThisIntArrayXml()
999 int[] array = new int[num]; in readThisIntArrayXml()
1056 int num; in readThisLongArrayXml() local
1058 num = Integer.parseInt(parser.getAttributeValue(null, "num")); in readThisLongArrayXml()
1066 long[] array = new long[num]; in readThisLongArrayXml()
1116 int num; in readThisDoubleArrayXml() local
1118 num = Integer.parseInt(parser.getAttributeValue(null, "num")); in readThisDoubleArrayXml()
1126 double[] array = new double[num]; in readThisDoubleArrayXml()
1176 int num; in readThisStringArrayXml() local
[all …]
/cts/tests/tests/content/src/android/content/cts/util/
DXmlUtils.java1015 int num; in readThisIntArrayXml() local
1017 num = Integer.parseInt(parser.getAttributeValue(null, "num")); in readThisIntArrayXml()
1027 int[] array = new int[num]; in readThisIntArrayXml()
1084 int num; in readThisLongArrayXml() local
1086 num = Integer.parseInt(parser.getAttributeValue(null, "num")); in readThisLongArrayXml()
1094 long[] array = new long[num]; in readThisLongArrayXml()
1144 int num; in readThisDoubleArrayXml() local
1146 num = Integer.parseInt(parser.getAttributeValue(null, "num")); in readThisDoubleArrayXml()
1154 double[] array = new double[num]; in readThisDoubleArrayXml()
1204 int num; in readThisStringArrayXml() local
[all …]
/cts/apps/cts-usb-accessory/
Dcts-usb-accessory.c37 int num = 0; in message_thread() local
52 sprintf(message, "Message from Android accessory #%d", num++); in message_thread()
/cts/suite/audio_quality/test_description/processing/
Dcalc_thd.py53 index = np.linspace(0.0, samples, num=samples, endpoint=False)
Dcalc_delay.py68 index = np.linspace(0.0, samples, num=samples, endpoint=False)
/cts/suite/cts/deviceTests/opengl/jni/graphics/
DGLUtils.cpp49 int num = AAsset_read(asset, buffer, length); in openTextFile() local
51 if (num != length) { in openTextFile()
/cts/apps/CtsVerifier/libs/
Dopencv-android.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/opencv/ org/ ...
/cts/tests/tests/os/jni/seccomp-tests/tests/
Dsigsegv.c110 __attribute__((unused)) register long num asm ("rdx") = PROT_NONE; in local_mprotect()
Dseccomp_bpf_tests.c921 void cont_handler(int num) { in cont_handler() argument
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DIntrinsicConvolve5x5.java24 Element e, float cf[], String name, int num, int w, int h, in test5() argument
/cts/tools/signature-tools/test/signature/converter/
DConvertAnnotationTest.java119 IAnnotationField num = ModelUtil.getAnnotationField(sigClass, "num"); in convertAnnotationDefinition3() local
122 assertEquals("num", num.getName()); in convertAnnotationDefinition3()
125 assertEquals(3, num.getDefaultValue()); in convertAnnotationDefinition3()
/cts/suite/cts/deviceTests/browserbench/assets/octane/js/
Djquery.js215 get: function( num ) {
216 return num == null ?
222 ( num < 0 ? this[ this.length + num ] : this[ num ] );
4738 fescape = function(all, num){ argument
4739 return "\\" + (num - 0 + 1);
5552 var num = 0;
5555 if ( cur.nodeType === 1 && ++num === result ) {
8530 function genFx( type, num ) { argument
8533 jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice( 0, num )), function() {
/cts/suite/cts/deviceTests/browserbench/assets/octane/
Dearley-boyer.js794 function sc_iota(num, init) { argument
797 for (var i = num - 1; i >= 0; i--)