Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 207) sorted by relevance

123456789

/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/wavelib/
DPipeShort.java44 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/
Drs_jni_allocation.cpp145 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/media/src/android/media/cts/
DMidiSoloTest.java58 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 …]
DScannerNotificationReceiver.java59 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/bitmapverifiers/
DColorCountVerifier.java26 public ColorCountVerifier(int color, int count, int threshold) { in ColorCountVerifier() argument
28 mCount = count; in ColorCountVerifier()
32 public ColorCountVerifier(int color, int count) { in ColorCountVerifier() argument
33 this(color, count, 0); in ColorCountVerifier()
38 int count = 0; in verify() local
43 count++; in verify()
47 if (count != mCount) { in verify()
48 Log.d("ColorCountVerifier", ("Color count mismatch " + count) + " != " + mCount); in verify()
50 return count == mCount; in verify()
/cts/tests/tests/systemui/src/android/systemui/cts/
DWindowInsetsBehaviorTests.java367 int count = 0; in clickAllOfHorizontalSamplePoints() local
373 count++; in clickAllOfHorizontalSamplePoints()
380 count++; in clickAllOfHorizontalSamplePoints()
382 return count; in clickAllOfHorizontalSamplePoints()
389 int count = 0; in clickAllOfSamplePoints() local
391 count += clickAllOfHorizontalSamplePoints(viewBoundary, i, callback); in clickAllOfSamplePoints()
393 count += clickAllOfHorizontalSamplePoints(viewBoundary, theBottomestLine, callback); in clickAllOfSamplePoints()
395 return count; in clickAllOfSamplePoints()
404 int count = 0; in dragAllOfHorizontalLinesFromLeftToRight() local
412 count++; in dragAllOfHorizontalLinesFromLeftToRight()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DAllocationCopyToTest.java48 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 …]
DAllocationCopyPaddedTest.java618 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 …]
DAllocationTest.java297 void helperFloatCopy(int nElems, int offset, int count, int copyMode) { in helperFloatCopy() argument
303 for (int i = 0; i < count; i++) { in helperFloatCopy()
311 case 2: A.copy1DRangeFrom(offset, count, src); break; in helperFloatCopy()
312 case 3: A.copy1DRangeFromUnchecked(offset, count, src); break; in helperFloatCopy()
316 for (int i = 0; i < count; i++) { in helperFloatCopy()
323 void helperByteCopy(int nElems, int offset, int count, int copyMode) { in helperByteCopy() argument
329 for (int i = 0; i < count; i++) { in helperByteCopy()
337 case 2: A.copy1DRangeFrom(offset, count, src); break; in helperByteCopy()
338 case 3: A.copy1DRangeFromUnchecked(offset, count, src); break; in helperByteCopy()
342 for (int i = 0; i < count; i++) { in helperByteCopy()
[all …]
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
DEventOrderingVerification.java73 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()
DBatchArrivalVerification.java90 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()
DEventGapVerification.java75 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()
DOffsetVerification.java86 final int count = mOffsetMagnitudes.size(); in verify() local
94 sb.append(count).append(" offsets: "); in verify()
95 for (int i = 0; i < Math.min(count, TRUNCATE_MESSAGE_LENGTH); i++) { in verify()
99 if (count > TRUNCATE_MESSAGE_LENGTH) { in verify()
100 sb.append(count - TRUNCATE_MESSAGE_LENGTH).append(" more; "); in verify()
/cts/tests/tests/location/src/android/location/cts/asn1/base/
DAsn1GeneralString.java111 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()
DAsn1BMPString.java110 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()
DAsn1IA5String.java145 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/uirendering/src/android/uirendering/cts/bitmapcomparers/
DExactComparer.java31 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/
Dattach_shader_four.cpp28 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()
Dattach_shader_eleven.cpp33 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()
Dattach_shader_two.cpp34 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()
Dattach_shader_ten.cpp32 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()
Dattach_shader_five.cpp32 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()
Dattach_shader_one.cpp49 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/hostsidetests/securitybulletin/securityPatch/CVE-2017-13273/
Dpoc.c102 int count = 0; in main() local
106 count = count + 1; in main()
122 count = count + 1; in main()
/cts/tests/sensor/jni/
Dandroid_hardware_cts_SensorDirectReportTest.cpp26 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()

123456789