/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(const 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(const 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/uirendering/src/android/uirendering/cts/bitmapverifiers/ |
D | ColorCountVerifier.java | 24 public ColorCountVerifier(int color, int count) { in ColorCountVerifier() argument 26 mCount = count; in ColorCountVerifier() 31 int count = 0; in verify() local 35 count++; in verify() 39 if (count != mCount) { in verify() 40 Log.d("ColorCountVerifier", ("Color count mismatch " + count) + " != " + mCount); in verify() 42 return count == mCount; in verify()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MidiSoloTest.java | 58 public void onSend(byte[] msg, int offset, int count, long timestamp) in onSend() argument 60 assertTrue("Message too large.", (count <= getMaxMessageSize())); in onSend() 62 System.arraycopy(msg, offset, data, byteCount, count); in onSend() 66 byteCount += count; in onSend() 121 public void onSend(byte[] msg, int offset, int count, in testMidiReceiver() 140 int count = 3; in testMidiReceiver() local 141 checkReceivedData(myReceiver, bar, offset, count); in testMidiReceiver() 145 count = 3; in testMidiReceiver() 146 checkReceivedData(myReceiver, bar, offset, count); in testMidiReceiver() 150 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/uirendering/src/android/uirendering/cts/bitmapcomparers/ |
D | ExactComparer.java | 31 int count = 0; in verifySame() local 37 if (count < 50) { in verifySame() 42 count++; in verifySame() 46 Log.d(TAG, "Number of different pixels : " + count); in verifySame() 48 return (count == 0); in verifySame()
|
/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/sensor/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()
|
D | ContinuousEventSanitizedVerification.java | 75 final int count = mNonSanitizedEvents.size(); in verify() local 76 if (count > 0) { 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()
|
/cts/tests/tests/location/src/android/location/cts/asn1/base/ |
D | Asn1GeneralString.java | 111 BitStream count = null; in encodePerImpl() local 113 count = PerAlignedUtils.encodeSmallConstrainedWholeNumber( in encodePerImpl() 116 count = PerUnalignedUtils.encodeConstrainedWholeNumber( in encodePerImpl() 119 return ImmutableList.of(count, result); in encodePerImpl() 153 int count = 0; in decodePerImpl() local 155 count = PerAlignedUtils.decodeSmallConstrainedWholeNumber( in decodePerImpl() 158 count = PerUnalignedUtils.decodeConstrainedWholeNumber( in decodePerImpl() 166 value = new byte[count]; in decodePerImpl() 167 for (int i = 0; i < count; i++) { in decodePerImpl()
|
D | Asn1BMPString.java | 110 BitStream count = null; in encodePerImpl() local 112 count = PerAlignedUtils.encodeSmallConstrainedWholeNumber( in encodePerImpl() 115 count = PerUnalignedUtils.encodeConstrainedWholeNumber( in encodePerImpl() 118 return ImmutableList.of(count, encodedCharacters); in encodePerImpl() 165 int count = 0; in decodePerImpl() local 167 count = PerAlignedUtils.decodeSmallConstrainedWholeNumber( in decodePerImpl() 170 count = PerUnalignedUtils.decodeConstrainedWholeNumber( in decodePerImpl() 178 value = decodeCharactersPer(reader, count); in decodePerImpl()
|
D | Asn1IA5String.java | 145 BitStream count = null; in encodePerImpl() local 147 count = aligned in encodePerImpl() 152 count = PerAlignedUtils.encodeSmallConstrainedWholeNumber( in encodePerImpl() 155 count = PerUnalignedUtils.encodeConstrainedWholeNumber( in encodePerImpl() 159 return ImmutableList.of(count, result); in encodePerImpl() 224 int count = 0; in decodePerImpl() local 226 count = aligned in decodePerImpl() 231 count = PerAlignedUtils.decodeSmallConstrainedWholeNumber( in decodePerImpl() 234 count = PerUnalignedUtils.decodeConstrainedWholeNumber( in decodePerImpl() 242 decodeValueCharacters(reader, count, in decodePerImpl() [all …]
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | AllocationCopyToTest.java | 48 int count = arr_len - offset; in test_Allocationcopy1DRangeTo_Byte() local 49 alloc.copy1DRangeFrom(offset, count, inArray); in test_Allocationcopy1DRangeTo_Byte() 50 alloc.copy1DRangeTo(offset, count, outArray); in test_Allocationcopy1DRangeTo_Byte() 53 for (int i = 0; i < count; i++) { in test_Allocationcopy1DRangeTo_Byte() 59 for (int i = count; i < arr_len; i++) { in test_Allocationcopy1DRangeTo_Byte() 85 int count = arr_len - offset; in test_Allocationcopy1DRangeTo_Short_Helper() local 87 alloc.copy1DRangeFrom(offset, count, inArray); in test_Allocationcopy1DRangeTo_Short_Helper() 88 alloc.copy1DRangeTo(offset, count, outArray); in test_Allocationcopy1DRangeTo_Short_Helper() 90 alloc.copy1DRangeFrom(offset, count, (Object) inArray); in test_Allocationcopy1DRangeTo_Short_Helper() 91 alloc.copy1DRangeTo(offset, count, (Object) outArray); in test_Allocationcopy1DRangeTo_Short_Helper() [all …]
|
D | AllocationCopyPaddedTest.java | 618 int count = width - offset; in test_AllocationPadded_copy1DRangeTo_Byte3() local 619 alloc.copy1DRangeFrom(offset, count, inArray); in test_AllocationPadded_copy1DRangeTo_Byte3() 620 alloc.copy1DRangeTo(offset, count, outArray); in test_AllocationPadded_copy1DRangeTo_Byte3() 623 for (int i = 0; i < count * 3; i++) { in test_AllocationPadded_copy1DRangeTo_Byte3() 629 for (int i = count * 3; i < arr_len; i++) { in test_AllocationPadded_copy1DRangeTo_Byte3() 657 int count = width - offset; in test_AllocationPadded_copy1DRangeTo_Short3_Helper() local 658 alloc.copy1DRangeFrom(offset, count, inArray); in test_AllocationPadded_copy1DRangeTo_Short3_Helper() 659 alloc.copy1DRangeTo(offset, count, outArray); in test_AllocationPadded_copy1DRangeTo_Short3_Helper() 662 for (int i = 0; i < count * 3; i++) { in test_AllocationPadded_copy1DRangeTo_Short3_Helper() 668 for (int i = count * 3; i < arr_len; i++) { in test_AllocationPadded_copy1DRangeTo_Short3_Helper() [all …]
|
/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/sensor/jni/ |
D | android_hardware_cts_SensorDirectReportTest.cpp | 26 jobject hardwareBufferObj, jbyteArray buffer, jint srcOffset, jint destOffset, jint count) { in readHardwareBuffer() argument 28 srcOffset < 0 || destOffset < 0 || count <= 0) { in readHardwareBuffer() 32 if (env->GetArrayLength(buffer) < destOffset + count) { in readHardwareBuffer() 49 env->SetByteArrayRegion(buffer, destOffset, count, in readHardwareBuffer()
|
/cts/tests/AlarmManager/app/src/android/alarmmanager/alarmtestapp/cts/ |
D | TestAlarmReceiver.java | 32 final int count = intent.getIntExtra(Intent.EXTRA_ALARM_COUNT, 1); in onReceive() local 33 Log.d(TAG, "Alarm expired " + count + " times"); in onReceive() 35 reportAlarmIntent.putExtra(EXTRA_ALARM_COUNT, count); in onReceive()
|
/cts/tests/tests/location/src/android/location/cts/ |
D | GpsStatusTest.java | 47 int count = 0; in testGetSatellites() local 51 count++; in testGetSatellites() 52 if (count > maxSatellites) { in testGetSatellites()
|