/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/wavelib/ |
D | PipeShort.java | 44 public int write(short[] buffer, int offset, int count) in write() argument 48 if (written > count) { in write() 49 written = count; in write() 53 if ((count -= written) > rear) { in write() 54 count = rear; in write() 56 if (count > 0) { in write() 57 System.arraycopy(buffer, offset + written, mBuffer, 0, count); in write() 58 written += count; in write() 86 public int read(short[] buffer, int offset, int count) in read() argument 94 if (count > avail) { in read() [all …]
|
/cts/tests/tests/rscpp/librscpptest/ |
D | rs_jni_allocation.cpp | 145 static bool helperCopy1D(sp<RS> rs, int cellCount, int offset, int count, bool copyRange, in helperCopy1D() argument 149 int copyCount = count; in helperCopy1D() 155 copyCount = count * 3; in helperCopy1D() 174 alloc->copy1DRangeFrom(offset, count, src); in helperCopy1D() 191 static bool helperFloatAllocationCopy1D(sp<RS> rs, int cellCount, int offset, int count) { in helperFloatAllocationCopy1D() argument 208 dstA->copy1DRangeFrom(offset, count, srcA, offset); in helperFloatAllocationCopy1D() 211 for (int i = 0; i < count; i++) { in helperFloatAllocationCopy1D() 443 for (int count = 1; count <= s - off; count ++) { in Java_android_cts_rscpp_RSAllocationTest_test1DCopy() local 444 passed &= helperCopy1D<float>(rs, s, off, count, true, RS_TYPE_FLOAT_32); in Java_android_cts_rscpp_RSAllocationTest_test1DCopy() 445 passed &= helperCopy1D<char>(rs, s, off, count, true, RS_TYPE_SIGNED_8); in Java_android_cts_rscpp_RSAllocationTest_test1DCopy() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MidiSoloTest.java | 55 public void onSend(byte[] msg, int offset, int count, long timestamp) in onSend() argument 57 assertTrue("Message too large.", (count <= getMaxMessageSize())); in onSend() 59 System.arraycopy(msg, offset, data, byteCount, count); in onSend() 63 byteCount += count; in onSend() 118 public void onSend(byte[] msg, int offset, int count, in testMidiReceiver() 137 int count = 3; in testMidiReceiver() local 138 checkReceivedData(myReceiver, bar, offset, count); in testMidiReceiver() 142 count = 3; in testMidiReceiver() 143 checkReceivedData(myReceiver, bar, offset, count); in testMidiReceiver() 147 count = bar.length; in testMidiReceiver() [all …]
|
D | MediaRouterTest.java | 68 final int count = mMediaRouter.getRouteCount(); in testGetRouteCount() local 69 assertTrue("By default, a media router has at least one route.", count > 0); in testGetRouteCount() 73 assertEquals(count + 1, mMediaRouter.getRouteCount()); in testGetRouteCount() 76 assertEquals(count, mMediaRouter.getRouteCount()); in testGetRouteCount() 81 assertEquals(count + 2, mMediaRouter.getRouteCount()); in testGetRouteCount() 84 assertEquals(count, mMediaRouter.getRouteCount()); in testGetRouteCount() 88 final int count = mMediaRouter.getCategoryCount(); in testRouteCategory() local 89 assertTrue("By default, a media router has at least one route category.", count > 0); in testRouteCategory() 93 assertEquals(count + 1, mMediaRouter.getCategoryCount()); in testRouteCategory()
|
D | ScannerNotificationReceiver.java | 59 int count = 0; in countFiles() local 64 count += countFiles(file); in countFiles() 66 count++; in countFiles() 70 return count; in countFiles()
|
D | VideoDecoderPerfTest.java | 270 private void count(int[] resources, int numGoog, int numOther) throws Exception { in count() method in VideoDecoderPerfTest 310 public void testAvcCount0320x0240() throws Exception { count(sAvcMedia0320x0240, 1, 4); } in testAvcCount0320x0240() 321 public void testAvcCount0720x0480() throws Exception { count(sAvcMedia0720x0480, 1, 4); } in testAvcCount0720x0480() 335 public void testAvcCount1280x0720() throws Exception { count(sAvcMedia1280x0720, 1, 4); } in testAvcCount1280x0720() 350 public void testAvcCount1920x1080() throws Exception { count(sAvcMedia1920x1080, 1, 4); } in testAvcCount1920x1080() 363 public void testH263Count0176x0144() throws Exception { count(sH263Media0176x0144, 1, 2); } in testH263Count0176x0144() 372 public void testH263Count0352x0288() throws Exception { count(sH263Media0352x0288, 1, 2); } in testH263Count0352x0288() 387 public void testHevcCount0352x0288() throws Exception { count(sHevcMedia0352x0288, 1, 4); } in testHevcCount0352x0288() 398 public void testHevcCount0640x0360() throws Exception { count(sHevcMedia0640x0360, 1, 4); } in testHevcCount0640x0360() 409 public void testHevcCount0720x0480() throws Exception { count(sHevcMedia0720x0480, 1, 4); } in testHevcCount0720x0480() [all …]
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorverification/ |
D | EventOrderingVerification.java | 73 final int count = mOutOfOrderEvents.size(); in verify() local 74 stats.addValue(PASSED_KEY, count == 0); in verify() 75 stats.addValue(SensorStats.EVENT_OUT_OF_ORDER_COUNT_KEY, count); in verify() 80 if (count > 0) { in verify() 82 sb.append(count).append(" events out of order: "); in verify() 83 for (int i = 0; i < Math.min(count, TRUNCATE_MESSAGE_LENGTH); i++) { in verify() 89 if (count > TRUNCATE_MESSAGE_LENGTH) { in verify() 90 sb.append(count - TRUNCATE_MESSAGE_LENGTH).append(" more"); in verify()
|
D | BatchArrivalVerification.java | 90 final int count = mFailures.size(); in verify() local 91 stats.addValue(PASSED_KEY, count == 0); in verify() 92 stats.addValue(SensorStats.DELAYED_BATCH_DELIVERY, count); in verify() 94 if (count > 0) { in verify() 96 sb.append(count).append(" BatchArrivalDelayed: "); in verify() 97 for (int i = 0; i < Math.min(count, TRUNCATE_MESSAGE_LENGTH); i++) { in verify() 111 if (count > TRUNCATE_MESSAGE_LENGTH) { in verify() 112 sb.append(count - TRUNCATE_MESSAGE_LENGTH).append(" more; "); in verify()
|
D | EventGapVerification.java | 75 final int count = mEventGaps.size(); in verify() local 79 boolean pass = count <= eventGapThreshold; in verify() 82 stats.addValue(SensorStats.EVENT_GAP_COUNT_KEY, count); in verify() 87 sb.append(count).append(" events gaps: "); in verify() 88 for (int i = 0; i < Math.min(count, TRUNCATE_MESSAGE_LENGTH); i++) { in verify() 93 if (count > TRUNCATE_MESSAGE_LENGTH) { in verify() 94 sb.append(count - TRUNCATE_MESSAGE_LENGTH).append(" more; "); in verify()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | AllocationCopyToTest.java | 40 int count = arr_len - offset; in test_Allocationcopy1DRangeTo_Byte() local 41 alloc.copy1DRangeFrom(offset, count, inArray); in test_Allocationcopy1DRangeTo_Byte() 42 alloc.copy1DRangeTo(offset, count, outArray); in test_Allocationcopy1DRangeTo_Byte() 45 for (int i = 0; i < count; i++) { in test_Allocationcopy1DRangeTo_Byte() 51 for (int i = count; i < arr_len; i++) { in test_Allocationcopy1DRangeTo_Byte() 77 int count = arr_len - offset; in test_Allocationcopy1DRangeTo_Short_Helper() local 79 alloc.copy1DRangeFrom(offset, count, inArray); in test_Allocationcopy1DRangeTo_Short_Helper() 80 alloc.copy1DRangeTo(offset, count, outArray); in test_Allocationcopy1DRangeTo_Short_Helper() 82 alloc.copy1DRangeFrom(offset, count, (Object) inArray); in test_Allocationcopy1DRangeTo_Short_Helper() 83 alloc.copy1DRangeTo(offset, count, (Object) outArray); in test_Allocationcopy1DRangeTo_Short_Helper() [all …]
|
D | AllocationCopyPaddedTest.java | 600 int count = width - offset; in test_AllocationPadded_copy1DRangeTo_Byte3() local 601 alloc.copy1DRangeFrom(offset, count, inArray); in test_AllocationPadded_copy1DRangeTo_Byte3() 602 alloc.copy1DRangeTo(offset, count, outArray); in test_AllocationPadded_copy1DRangeTo_Byte3() 605 for (int i = 0; i < count * 3; i++) { in test_AllocationPadded_copy1DRangeTo_Byte3() 611 for (int i = count * 3; i < arr_len; i++) { in test_AllocationPadded_copy1DRangeTo_Byte3() 638 int count = width - offset; in test_AllocationPadded_copy1DRangeTo_Short3_Helper() local 639 alloc.copy1DRangeFrom(offset, count, inArray); in test_AllocationPadded_copy1DRangeTo_Short3_Helper() 640 alloc.copy1DRangeTo(offset, count, outArray); in test_AllocationPadded_copy1DRangeTo_Short3_Helper() 643 for (int i = 0; i < count * 3; i++) { in test_AllocationPadded_copy1DRangeTo_Short3_Helper() 649 for (int i = count * 3; i < arr_len; i++) { in test_AllocationPadded_copy1DRangeTo_Short3_Helper() [all …]
|
D | AllocationTest.java | 296 void helperFloatCopy(int nElems, int offset, int count, int copyMode) { in helperFloatCopy() argument 302 for (int i = 0; i < count; i++) { in helperFloatCopy() 310 case 2: A.copy1DRangeFrom(offset, count, src); break; in helperFloatCopy() 311 case 3: A.copy1DRangeFromUnchecked(offset, count, src); break; in helperFloatCopy() 315 for (int i = 0; i < count; i++) { in helperFloatCopy() 320 void helperByteCopy(int nElems, int offset, int count, int copyMode) { in helperByteCopy() argument 326 for (int i = 0; i < count; i++) { in helperByteCopy() 334 case 2: A.copy1DRangeFrom(offset, count, src); break; in helperByteCopy() 335 case 3: A.copy1DRangeFromUnchecked(offset, count, src); break; in helperByteCopy() 339 for (int i = 0; i < count; i++) { in helperByteCopy() [all …]
|
/cts/tests/tests/opengl/libopengltest/ |
D | attach_shader_four.cpp | 28 GLsizei count; in attachShaderFour() local 32 &count, in attachShaderFour() 35 LOGI("ShaderCount %d\n", count); in attachShaderFour() 37 Data data = {error, count, -1}; in attachShaderFour()
|
D | attach_shader_eleven.cpp | 33 GLsizei count; in attachShaderEleven() local 37 &count, in attachShaderEleven() 40 LOGI("ShaderCount %d\n", count); in attachShaderEleven() 42 Data data = {error, count, -1}; in attachShaderEleven()
|
D | attach_shader_two.cpp | 34 GLsizei count; in attachShaderTwo() local 38 &count, in attachShaderTwo() 41 LOGI("ShaderCount %d\n", count); in attachShaderTwo() 44 Data data = {error, count, -1}; in attachShaderTwo()
|
D | attach_shader_ten.cpp | 32 GLsizei count; in attachShaderTen() local 36 &count, in attachShaderTen() 39 LOGI("ShaderCount %d\n", count); in attachShaderTen() 41 Data data = {error, count, -1}; in attachShaderTen()
|
D | attach_shader_five.cpp | 32 GLsizei count; in attachShaderFive() local 36 &count, in attachShaderFive() 39 LOGI("ShaderCount %d\n", count); in attachShaderFive() 41 Data data = {error, count, -1}; in attachShaderFive()
|
D | attach_shader_one.cpp | 49 GLsizei count; in attachShaderOne() local 53 &count, in attachShaderOne() 56 LOGI("ShaderCount %d\n", count); in attachShaderOne() 58 Data data = {error, count, -1}; in attachShaderOne()
|
/cts/tests/tests/view/jni/ |
D | android_view_cts_ChoreographerNativeTest.cpp | 46 int count{0}; member 53 cb->count++; in frameCallback() 100 ASSERT(cb1->count == 1, "Choreographer failed to invoke callback 1"); in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback() 103 ASSERT(cb2->count == 1, "Choreographer failed to invoke callback 2"); in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback() 116 ASSERT(cb1->count == 2, "Choreographer failed to invoke callback 1 a second time"); in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback() 119 ASSERT(cb2->count == 1, "Choreographer invoked callback 2 when not posted"); in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback() 129 auto delay = std::chrono::duration_cast<std::chrono::milliseconds>(DELAY_PERIOD).count(); in android_view_cts_ChoreographerNativeTest_testPostCallbackWithDelayEventuallyRunsCallback() 134 ASSERT(cb1->count == 0, in android_view_cts_ChoreographerNativeTest_testPostCallbackWithDelayEventuallyRunsCallback() 140 ASSERT(cb1->count == 1, "Choreographer failed to invoke delayed callback"); in android_view_cts_ChoreographerNativeTest_testPostCallbackWithDelayEventuallyRunsCallback()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/ |
D | ExactComparer.java | 38 int count = 0; in verifySame() local 44 if (count < 50) { in verifySame() 49 count++; in verifySame() 53 Log.d(TAG, "Number of different pixels : " + count); in verifySame() 55 return (count == 0); in verifySame()
|
/cts/common/util/src/com/android/compatibility/common/util/ |
D | MeasureTime.java | 32 public static double[] measure(int count, MeasureRun run) throws Exception { in measure() argument 33 double[] result = new double[count]; in measure() 35 for (int i = 0; i < count; i++) { in measure()
|
/cts/tools/cts-xml-generator/src/com/android/cts/xmlgenerator/ |
D | TestSuite.java | 71 int count = 0; in countTests() local 73 count += suite.countTests(); in countTests() 76 count += testCase.countTests(); in countTests() 78 return count; in countTests()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | MockContentProvider.java | 135 int count; in delete() local 143 count = db.delete("TestTable1", selection, selectionArgs); in delete() 147 count = db.delete("TestTable1", "_id=" + segment + in delete() 152 count = db.delete("TestTable2", selection, selectionArgs); in delete() 156 count = db.delete("TestTable2", "_id=" + segment + in delete() 163 count = 1; in delete() 171 return count; in delete() 303 int count; in update() local 307 count = db.update("TestTable1", values, selection, selectionArgs); in update() 312 count = db.update("TestTable1", values, "_id=" + segment + in update() [all …]
|
/cts/tests/tests/text/src/android/text/cts/ |
D | AndroidCharacterTest.java | 34 int count = 128; in testGetDirectionalities() local 35 AndroidCharacter.getDirectionalities(src, dest, count); in testGetDirectionalities() 80 int count = 8; in testGetEastAsianWidths() local 81 byte[] dest = new byte[count]; in testGetEastAsianWidths() 82 AndroidCharacter.getEastAsianWidths(src, start, count, dest); in testGetEastAsianWidths()
|
/cts/tests/openglperf2/jni/primitive/fullpipeline/ |
D | FullPipelineRenderer.cpp | 150 float count = workload * workload; in setUp() local 151 float middle = count / 2.0f; in setUp() 152 float scale = 2.0f / count; in setUp() 157 for (int i = 0; i < count; i++) { in setUp() 158 for (int j = 0; j < count; j++) { in setUp()
|