/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 | ScannerNotificationReceiver.java | 59 int count = 0; in countFiles() local 64 count += countFiles(file); in countFiles() 66 count++; in countFiles() 70 return count; in countFiles()
|
/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 | EventGapVerification.java | 74 final int count = mEventGaps.size(); in verify() local 78 stats.addValue(PASSED_KEY, count <= eventGapTolerance); in verify() 79 stats.addValue(SensorStats.EVENT_GAP_COUNT_KEY, count); in verify() 82 if (count > eventGapTolerance) { in verify() 84 sb.append(count).append(" events gaps: "); in verify() 85 for (int i = 0; i < Math.min(count, TRUNCATE_MESSAGE_LENGTH); i++) { in verify() 90 if (count > TRUNCATE_MESSAGE_LENGTH) { in verify() 91 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()
|
/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_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_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_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/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() local 78 alloc.copy1DRangeFrom(offset, count, inArray); in test_Allocationcopy1DRangeTo_Short() 79 alloc.copy1DRangeTo(offset, count, outArray); in test_Allocationcopy1DRangeTo_Short() 82 for (int i = 0; i < count; i++) { in test_Allocationcopy1DRangeTo_Short() 88 for (int i = count; i < arr_len; i++) { in test_Allocationcopy1DRangeTo_Short() [all …]
|
D | AllocationCopyPaddedTest.java | 585 int count = width - offset; in test_AllocationPadded_copy1DRangeTo_Byte3() local 586 alloc.copy1DRangeFrom(offset, count, inArray); in test_AllocationPadded_copy1DRangeTo_Byte3() 587 alloc.copy1DRangeTo(offset, count, outArray); in test_AllocationPadded_copy1DRangeTo_Byte3() 590 for (int i = 0; i < count * 3; i++) { in test_AllocationPadded_copy1DRangeTo_Byte3() 596 for (int i = count * 3; i < arr_len; i++) { in test_AllocationPadded_copy1DRangeTo_Byte3() 623 int count = width - offset; in test_AllocationPadded_copy1DRangeTo_Short3() local 624 alloc.copy1DRangeFrom(offset, count, inArray); in test_AllocationPadded_copy1DRangeTo_Short3() 625 alloc.copy1DRangeTo(offset, count, outArray); in test_AllocationPadded_copy1DRangeTo_Short3() 628 for (int i = 0; i < count * 3; i++) { in test_AllocationPadded_copy1DRangeTo_Short3() 634 for (int i = count * 3; i < arr_len; i++) { in test_AllocationPadded_copy1DRangeTo_Short3() [all …]
|
D | AllocationTest.java | 288 void helperFloatCopy(int nElems, int offset, int count, int copyMode) { in helperFloatCopy() argument 294 for (int i = 0; i < count; i++) { in helperFloatCopy() 302 case 2: A.copy1DRangeFrom(offset, count, src); break; in helperFloatCopy() 303 case 3: A.copy1DRangeFromUnchecked(offset, count, src); break; in helperFloatCopy() 307 for (int i = 0; i < count; i++) { in helperFloatCopy() 312 void helperByteCopy(int nElems, int offset, int count, int copyMode) { in helperByteCopy() argument 318 for (int i = 0; i < count; i++) { in helperByteCopy() 326 case 2: A.copy1DRangeFrom(offset, count, src); break; in helperByteCopy() 327 case 3: A.copy1DRangeFromUnchecked(offset, count, src); break; in helperByteCopy() 331 for (int i = 0; i < count; i++) { in helperByteCopy() [all …]
|
/cts/libs/commonutil/src/com/android/cts/util/ |
D | MeasureTime.java | 28 public static double[] measure(int count, MeasureRun run) throws Exception { in measure() argument 29 double[] result = new double[count]; in measure() 31 for (int i = 0; i < count; i++) { in measure()
|
/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/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/tests/tests/location/src/android/location/cts/ |
D | GpsStatusTest.java | 48 int count = 0; in testGetSatellites() local 50 count++; in testGetSatellites() 53 assertTrue(count <= maxSatellites); in testGetSatellites()
|
/cts/suite/cts/deviceTests/opengl/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()
|
/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/suite/cts/deviceTests/browserbench/assets/octane/ |
D | richards.js | 126 Scheduler.prototype.addIdleTask = function (id, priority, queue, count) { argument 127 this.addRunningTask(id, priority, queue, new IdleTask(this, 1, count)); 368 function IdleTask(scheduler, v1, count) { argument 371 this.count = count; 375 this.count--; 376 if (this.count == 0) return this.scheduler.holdCurrent(); 474 var count = this.v1.a1; 476 if (count < DATA_SIZE) { 480 v.a1 = this.v1.a2[count]; 481 this.v1.a1 = count + 1;
|
/cts/libs/vogar-expect/src/vogar/util/ |
D | Threads.java | 46 public static ExecutorService fixedThreadsExecutor(String name, int count) { in fixedThreadsExecutor() argument 49 return new ThreadPoolExecutor(count, count, 10, TimeUnit.SECONDS, in fixedThreadsExecutor()
|
/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 …]
|