/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 | 26 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/media/audio/src/android/media/audio/cts/ |
D | MidiSoloTest.java | 56 public void onSend(byte[] msg, int offset, int count, long timestamp) in onSend() argument 58 assertTrue("Message too large.", (count <= getMaxMessageSize())); in onSend() 60 System.arraycopy(msg, offset, data, byteCount, count); in onSend() 64 byteCount += count; in onSend() 147 public void onSend(byte[] msg, int offset, int count, in testMidiReceiver() 166 int count = 3; in testMidiReceiver() local 167 checkReceivedData(myReceiver, bar, offset, count); in testMidiReceiver() 171 count = 3; in testMidiReceiver() 172 checkReceivedData(myReceiver, bar, offset, count); in testMidiReceiver() 176 count = bar.length; in testMidiReceiver() [all …]
|
/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/hostsidetests/securitybulletin/securityPatch/CVE-2016-8332/ |
D | poc.c | 87 ssize_t count = 0; in ReadHandler() local 94 count = length; in ReadHandler() 96 count = rem; in ReadHandler() 98 memcpy(buffer, &appContext->blob[appContext->readPos], count); in ReadHandler() 99 appContext->readPos += count; in ReadHandler() 105 unsigned int count = 0; in main() local 126 for (count = 0; count < REPEATVALUES; ++count) { in main()
|
/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()
|
/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/location/location_gnss/src/android/location/cts/gnss/asn1/base/ |
D | Asn1GeneralString.java | 112 BitStream count = null; in encodePerImpl() local 114 count = PerAlignedUtils.encodeSmallConstrainedWholeNumber( in encodePerImpl() 117 count = PerUnalignedUtils.encodeConstrainedWholeNumber( in encodePerImpl() 120 return ImmutableList.of(count, result); in encodePerImpl() 154 int count = 0; in decodePerImpl() local 156 count = PerAlignedUtils.decodeSmallConstrainedWholeNumber( in decodePerImpl() 159 count = PerUnalignedUtils.decodeConstrainedWholeNumber( in decodePerImpl() 167 value = new byte[count]; in decodePerImpl() 168 for (int i = 0; i < count; i++) { in decodePerImpl()
|
D | Asn1BMPString.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, encodedCharacters); in encodePerImpl() 166 int count = 0; in decodePerImpl() local 168 count = PerAlignedUtils.decodeSmallConstrainedWholeNumber( in decodePerImpl() 171 count = PerUnalignedUtils.decodeConstrainedWholeNumber( in decodePerImpl() 179 value = decodeCharactersPer(reader, count); in decodePerImpl()
|
/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/graphics/jni/ |
D | android_graphics_cts_VulkanFeaturesTest.cpp | 45 uint32_t count; in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport() local 97 count = 0; in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport() 98 result = vkEnumeratePhysicalDevices(instance, &count, nullptr); in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport() 106 std::vector<VkPhysicalDevice> devices(count, VK_NULL_HANDLE); in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport() 107 result = vkEnumeratePhysicalDevices(instance, &count, devices.data()); in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport() 116 for (size_t i = 0; i < count; i++) { in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport() 142 uint32_t count; in android_graphics_cts_VulkanFeaturesTest_nativeGetABPCpuOnlySupport() local 194 count = 0; in android_graphics_cts_VulkanFeaturesTest_nativeGetABPCpuOnlySupport() 195 result = vkEnumeratePhysicalDevices(instance, &count, nullptr); in android_graphics_cts_VulkanFeaturesTest_nativeGetABPCpuOnlySupport() 203 std::vector<VkPhysicalDevice> devices(count, VK_NULL_HANDLE); in android_graphics_cts_VulkanFeaturesTest_nativeGetABPCpuOnlySupport() [all …]
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | WindowInsetsBehaviorTests.java | 437 int count = 0; in clickAllOfHorizontalSamplePoints() local 443 count++; in clickAllOfHorizontalSamplePoints() 450 count++; in clickAllOfHorizontalSamplePoints() 452 return count; in clickAllOfHorizontalSamplePoints() 464 int count = 0; in clickAllOfSamplePoints() local 466 count += clickAllOfHorizontalSamplePoints(viewBoundary, i, interval, callback); in clickAllOfSamplePoints() 468 count += clickAllOfHorizontalSamplePoints( in clickAllOfSamplePoints() 471 return count; in clickAllOfSamplePoints() 480 int count = 0; in swipeAllOfHorizontalLinesFromLeftToRight() local 488 count++; in swipeAllOfHorizontalLinesFromLeftToRight() [all …]
|
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/util/ |
D | Utils.java | 71 int count = 0; in readFully() local 74 count = in.read(buffer); in readFully() 75 if (count > 0) { in readFully() 76 bytes.write(buffer, 0, count); in readFully() 79 } while (count > 0); in readFully()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-13273/ |
D | poc.c | 102 int count = 0; in main() local 106 count = count + 1; in main() 122 count = count + 1; in main()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/midilib/ |
D | JavaMidiTestModule.java | 219 private boolean matchStream(byte[] bytes, int offset, int count) { in matchStream() argument 221 Log.i(TAG, "---- matchStream() offset:" + offset + " count:" + count); in matchStream() 224 if (count < 0) { in matchStream() 229 if (count > MESSAGE_MAX_BYTES) { in matchStream() 230 Log.e(TAG, "Too Large Byte Count (" + count + ") in MidiActivity::matchStream()"); in matchStream() 236 for (int index = 0; index < count; index++) { in matchStream() 352 public boolean matches(byte[] msg, int offset, int count) { in matches() argument 355 Log.i(TAG, " count [" + count + " : " + mMsgBytes.length + "]"); in matches() 357 if (count != mMsgBytes.length) { in matches() 362 for (int index = 0; index < count; index++) { in matches() [all …]
|
/cts/tests/tests/media/misc/src/android/media/misc/cts/ |
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()
|