Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 546) sorted by relevance

12345678910>>...22

/cts/tests/tests/util/src/android/util/cts/
DLongSparseArrayTest.java35 assertEquals(0, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
41 assertEquals(i + 1, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
57 assertEquals(LENGTH, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
60 assertEquals(LENGTH, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
66 int size = sparseArray.size(); in testSparseArrayWithDefaultCapacity() local
68 assertEquals(size + 1, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
69 assertEquals(size, sparseArray.indexOfKey(NON_EXISTED_KEY)); in testSparseArrayWithDefaultCapacity()
70 assertEquals(size, sparseArray.indexOfValue(VALUE_FOR_NON_EXISTED_KEY)); in testSparseArrayWithDefaultCapacity()
71 assertEquals(NON_EXISTED_KEY, sparseArray.keyAt(size)); in testSparseArrayWithDefaultCapacity()
72 assertEquals(VALUE_FOR_NON_EXISTED_KEY, sparseArray.valueAt(size)); in testSparseArrayWithDefaultCapacity()
[all …]
DSparseArrayTest.java31 assertEquals(0, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
37 assertEquals(i + 1, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
53 assertEquals(LENGTH, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
56 assertEquals(LENGTH, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
62 int size = sparseArray.size(); in testSparseArrayWithDefaultCapacity() local
64 assertEquals(size + 1, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
65 assertEquals(size, sparseArray.indexOfKey(NON_EXISTED_KEY)); in testSparseArrayWithDefaultCapacity()
66 assertEquals(size, sparseArray.indexOfValue(VALUE_FOR_NON_EXISTED_KEY)); in testSparseArrayWithDefaultCapacity()
67 assertEquals(NON_EXISTED_KEY, sparseArray.keyAt(size)); in testSparseArrayWithDefaultCapacity()
68 assertEquals(VALUE_FOR_NON_EXISTED_KEY, sparseArray.valueAt(size)); in testSparseArrayWithDefaultCapacity()
[all …]
DSparseLongArrayTest.java35 assertEquals(0, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
41 assertEquals(i + 1, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
57 assertEquals(LENGTH, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
60 assertEquals(LENGTH, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
66 int size = sparseArray.size(); in testSparseArrayWithDefaultCapacity() local
68 assertEquals(size + 1, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
69 assertEquals(size, sparseArray.indexOfKey(NON_EXISTED_KEY)); in testSparseArrayWithDefaultCapacity()
70 assertEquals(size, sparseArray.indexOfValue(VALUE_FOR_NON_EXISTED_KEY)); in testSparseArrayWithDefaultCapacity()
71 assertEquals(NON_EXISTED_KEY, sparseArray.keyAt(size)); in testSparseArrayWithDefaultCapacity()
72 assertEquals(VALUE_FOR_NON_EXISTED_KEY, sparseArray.valueAt(size)); in testSparseArrayWithDefaultCapacity()
[all …]
DSparseIntArrayTest.java38 assertEquals(0, sparseIntArray.size()); in testSparseIntArrayWithDefaultCapacity()
43 assertEquals(i + 1, sparseIntArray.size()); in testSparseIntArrayWithDefaultCapacity()
58 assertEquals(13, sparseIntArray.size()); in testSparseIntArrayWithDefaultCapacity()
61 assertEquals(13, sparseIntArray.size()); in testSparseIntArrayWithDefaultCapacity()
67 int size = sparseIntArray.size(); in testSparseIntArrayWithDefaultCapacity() local
69 assertEquals(size + 1, sparseIntArray.size()); in testSparseIntArrayWithDefaultCapacity()
70 assertEquals(size, sparseIntArray.indexOfKey(NON_EXISTED_KEY)); in testSparseIntArrayWithDefaultCapacity()
71 assertEquals(size, sparseIntArray.indexOfValue(VALUE_FOR_NON_EXISTED_KEY)); in testSparseIntArrayWithDefaultCapacity()
72 assertEquals(NON_EXISTED_KEY, sparseIntArray.keyAt(size)); in testSparseIntArrayWithDefaultCapacity()
73 assertEquals(VALUE_FOR_NON_EXISTED_KEY, sparseIntArray.valueAt(size)); in testSparseIntArrayWithDefaultCapacity()
[all …]
DSparseBooleanArrayTest.java36 assertEquals(0, sparseBooleanArray.size()); in testSparseBooleanArrayWithDefaultCapacity()
41 assertEquals(i + 1, sparseBooleanArray.size()); in testSparseBooleanArrayWithDefaultCapacity()
62 assertEquals(13, sparseBooleanArray.size()); in testSparseBooleanArrayWithDefaultCapacity()
65 assertEquals(13, sparseBooleanArray.size()); in testSparseBooleanArrayWithDefaultCapacity()
71 int size = sparseBooleanArray.size(); in testSparseBooleanArrayWithDefaultCapacity() local
73 assertEquals(size + 1, sparseBooleanArray.size()); in testSparseBooleanArrayWithDefaultCapacity()
74 assertEquals(size, sparseBooleanArray.indexOfKey(NON_EXISTED_KEY)); in testSparseBooleanArrayWithDefaultCapacity()
77 assertEquals(NON_EXISTED_KEY, sparseBooleanArray.keyAt(size)); in testSparseBooleanArrayWithDefaultCapacity()
78 assertEquals(VALUE_FOR_NON_EXISTED_KEY, sparseBooleanArray.valueAt(size)); in testSparseBooleanArrayWithDefaultCapacity()
87 assertEquals(0, sparseBooleanArray.size()); in testSparseBooleanArrayWithDefaultCapacity()
[all …]
DArraySetTest.java127 assertEquals("Bad size", set.size(), array.size()); in compareSets()
141 for (int i = 0; i < array.size(); ++i) { in compareSets()
159 assertEquals("Bad size", arraySet.size(), rawArray.length); in compareArraySetAndRawArray()
179 assertEquals("Length of iteration was unequal to size()", array.size(), index); in validateArraySet()
183 Log.e(TAG, "HashSet of " + set.size() + " entries:"); in dump()
187 Log.e(TAG, "ArraySet of " + array.size() + " entries:"); in dump()
188 for (int i = 0; i < array.size(); i++) { in dump()
194 Log.e(TAG, "ArraySet of " + set1.size() + " entries:"); in dump()
195 for (int i = 0; i < set1.size(); i++) { in dump()
198 Log.e(TAG, "ArraySet of " + set2.size() + " entries:"); in dump()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/wavelib/
DDspWindow.java35 public DspWindow(int windowType, int size, int overlap) { in DspWindow() argument
36 init(windowType, size, overlap); in DspWindow()
39 public DspWindow(int windowType, int size) { in DspWindow() argument
40 init(windowType, size, size / 2); in DspWindow()
43 public void init(int windowType, int size, int overlap) { in init() argument
44 if (size > 0 && overlap > 0) { in init()
45 mSize = size; in init()
64 int size = r.getSize(); in fillWindow() local
65 if (overlap > size / 2) { in fillWindow()
66 overlap = size / 2; in fillWindow()
[all …]
DDspBufferDouble.java22 public DspBufferDouble(int size) { in DspBufferDouble() argument
23 super(size); in DspBufferDouble()
27 public void setSize(int size) { in setSize() argument
28 if (size == getSize()) { in setSize()
31 mData = new double[size]; in setSize()
32 super.setSize(size); in setSize()
49 int size = getSize(); in toString() local
50 sb.append(String.format("Size: %d { ", size)); in toString()
52 for (; i < size - 1; i++) { in toString()
55 for(; i < size; i++) { in toString()
DDspBufferComplex.java23 public DspBufferComplex(int size) { in DspBufferComplex() argument
24 super(size); in DspBufferComplex()
28 public void setSize(int size) { in setSize() argument
29 if (size == getSize()) { in setSize()
32 mReal = new double[size]; in setSize()
33 mImag = new double[size]; in setSize()
34 super.setSize(size); in setSize()
53 int size = getSize(); in toString() local
54 sb.append(String.format("Size: %d { ", size)); in toString()
55 for (int i = 0; i < size; i++) { in toString()
DDspBufferMath.java55 int size = Math.min(a.getSize(), b.getSize()); in add() local
56 r.setSize(size); in add()
76 for (int i = 0; i < size; i++) { in add()
83 for (int i = 0; i < size; i++) { in add()
91 for (int i = 0; i < size; i++) { in add()
101 for (int i = 0; i < size; i++) { in add()
107 for (int i = 0; i < size; i++) { in add()
113 for (int i = 0; i < size; i++) { in add()
127 int size = Math.min(a.getSize(), b.getSize()); in mult() local
128 r.setSize(size); in mult()
[all …]
DDspBufferBase.java26 public DspBufferBase(int size) { in DspBufferBase() argument
27 setSize(size); in DspBufferBase()
34 public void setSize(int size) { in setSize() argument
35 mSize = size; in setSize()
/cts/apps/CameraITS/tests/scene1/
Dtest_yuv_jpeg_all.py42 for size in its.objects.get_available_output_sizes("yuv", props):
43 out_surface = {"width":size[0], "height":size[1], "format":"yuv"}
46 assert(cap["width"] == size[0])
47 assert(cap["height"] == size[1])
51 NAME,size[0],size[1]))
56 for size in its.objects.get_available_output_sizes("jpg", props):
57 out_surface = {"width":size[0], "height":size[1], "format":"jpg"}
60 assert(cap["width"] == size[0])
61 assert(cap["height"] == size[1])
64 NAME,size[0], size[1]))
[all …]
Dtest_jpeg.py39 size = its.objects.get_available_output_sizes("yuv", props)[0]
40 out_surface = {"width":size[0], "height":size[1], "format":"yuv"}
48 size = its.objects.get_available_output_sizes("jpg", props)[0]
49 out_surface = {"width":size[0], "height":size[1], "format":"jpg"}
/cts/tests/tests/media/libaudiojni/
DBlob.h30 BlobReadOnly(const void *data, size_t size, bool byReference) : in BlobReadOnly() argument
31 mMem(byReference ? NULL : malloc(size)), in BlobReadOnly()
33 mSize(size) { in BlobReadOnly()
35 memcpy(mMem, data, size); in BlobReadOnly()
54 Blob(size_t size) : in Blob() argument
55 mData(malloc(size)), in Blob()
57 mSize(size), in Blob()
61 Blob(void *data, size_t size) : in Blob() argument
64 mSize(size), in Blob()
/cts/tests/tests/media/src/android/media/cts/
DTestMediaDataSource.java46 final int size = (int) afd.getDeclaredLength(); in fromAssetFd() local
47 byte[] data = new byte[(int) size]; in fromAssetFd()
51 numRead = in.read(data, writeIndex, size - writeIndex); in fromAssetFd()
65 public synchronized int readAt(long position, byte[] buffer, int offset, int size) in readAt() argument
78 if (position + size > mData.length) { in readAt()
79 size -= (position + size) - mData.length; in readAt()
81 System.arraycopy(mData, (int)position, buffer, offset, size); in readAt()
82 return size; in readAt()
122 public void returnFromGetSize(long size) { in returnFromGetSize() argument
123 mReturnFromGetSize = size; in returnFromGetSize()
DNonBlockingAudioTrack.java38 int size; field in NonBlockingAudioTrack.QueueElement
143 int written = mAudioTrack.write(element.data, element.size, in process()
150 element.size -= written; in process()
151 if (element.size != 0) { in process()
162 public void write(ByteBuffer data, int size, long pts) { in write() argument
165 element.size = size; in write()
169 mNumBytesQueued += size; in write()
/cts/suite/audio_quality/lib/include/audio/
DBuffer.h35 Buffer(size_t capacity, size_t size = 0, bool stereo = true);
51 inline void setSize(size_t size) { in setSize() argument
52 mSize = size; in setSize()
55 inline void increaseSize(size_t size) { in increaseSize() argument
56 mSize += size; in increaseSize()
80 inline void increaseHandled(size_t size) { in increaseHandled() argument
81 mHandled += size; in increaseHandled()
84 inline void setHandled(size_t size) { in setHandled() argument
85 mHandled = size; in setHandled()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DRSBaseCompute.java76 protected Element getElement(RenderScript rs, Element.DataType dataType, int size) { in getElement() argument
78 if (size == 1) { in getElement()
104 element = Element.createVector(rs, dataType, size); in getElement()
110 int size, long seed, boolean includeExtremes) { in createRandomAllocation() argument
111 Element element = getElement(rs, dataType, size); in createRandomAllocation()
113 int width = (size == 3) ? 4 : size; in createRandomAllocation()
168 int size, long seed, double minValue, double maxValue) { in createRandomFloatAllocation() argument
169 Element element = getElement(rs, dataType, size); in createRandomFloatAllocation()
171 int width = (size == 3) ? 4 : size; in createRandomFloatAllocation()
189 int size, long seed, boolean signed, int numberOfBits) { in createRandomIntegerAllocation() argument
[all …]
/cts/tests/tests/transition/src/android/transition/cts/
DTransitionTest.java88 assertEquals(2, mTransition.getTargetIds().size()); in testAddTargetId()
90 assertEquals(1, mTargets.size()); in testAddTargetId()
100 assertEquals(3, mTransition.getTargetIds().size()); in testRemoveTargetId()
103 assertEquals(2, mTransition.getTargetIds().size()); in testRemoveTargetId()
106 assertEquals(1, mTargets.size()); in testRemoveTargetId()
115 assertEquals(2, mTransition.getTargetTypes().size()); in testAddTargetClass()
117 assertEquals(1, mTargets.size()); in testAddTargetClass()
127 assertEquals(3, mTransition.getTargetTypes().size()); in testRemoveTargetClass()
130 assertEquals(2, mTransition.getTargetTypes().size()); in testRemoveTargetClass()
132 assertEquals(1, mTargets.size()); in testRemoveTargetClass()
[all …]
/cts/suite/audio_quality/lib/src/
DFileUtil.cpp121 int size; in doVprintf() local
122 size = vsnprintf(mBuffer + start, mBufferSize - start - 2, fmt, ap); // 2 for \n\0 in doVprintf()
123 if (size < 0) { in doVprintf()
127 if ((size + start + 2) > mBufferSize) { in doVprintf()
130 mBuffer = new char[2 * size]; in doVprintf()
135 mBufferSize = 2 * size; in doVprintf()
139 size += start; in doVprintf()
140 mBuffer[size] = '\n'; in doVprintf()
141 size++; in doVprintf()
142 mBuffer[size] = 0; in doVprintf()
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/rs/
DAllocationInfo.java89 public static AllocationInfo newInstance(Size size, int format, int usage) { in newInstance() argument
105 return new AllocationInfo(element, size, usage); in newInstance()
127 public static AllocationInfo newInstance(Size size, int format) { in newInstance() argument
128 return newInstance(size, format, Allocation.USAGE_SCRIPT); in newInstance()
145 public static AllocationInfo newInstance(Element element, Size size) { in newInstance() argument
146 return new AllocationInfo(element, size, Allocation.USAGE_SCRIPT); in newInstance()
164 public static AllocationInfo newInstance(Element element, Size size, int usage) { in newInstance() argument
165 return new AllocationInfo(element, size, usage); in newInstance()
226 private AllocationInfo(Element element, Size size, int usage) { in AllocationInfo() argument
228 checkNotNull("size", size); in AllocationInfo()
[all …]
/cts/tools/dex-tools/test/dex/reader/
DDexFileReaderTests.java56 assertEquals(1, dexFile.getDefinedClasses().size()); in testA()
84 assertEquals(1, dexFile.getDefinedClasses().size()); in testT0()
89 assertEquals(4, clazz.getFields().size()); in testT0()
136 assertEquals(1, dexFile.getDefinedClasses().size()); in testT1()
151 assertEquals(2, dexFile.getDefinedClasses().size()); in testT0_T1()
175 assertEquals(1, dexFile.getDefinedClasses().size()); in testA0()
179 assertEquals(2, A0.getAnnotations().size()); in testA0()
196 assertEquals(2, dexFile.getDefinedClasses().size()); in testA0_T3()
200 assertEquals(1, T3.getAnnotations().size()); in testA0_T3()
218 assertEquals(1, dexFile.getDefinedClasses().size()); in testG0()
[all …]
/cts/suite/cts/deviceTests/dram/src/com/android/cts/dram/
DBandwidthTest.java179 Point size = new Point(); in doRunMemcpy() local
180 wm.getDefaultDisplay().getSize(size); in doRunMemcpy()
181 Log.i(TAG, " x " + size.x + " y " + size.y); in doRunMemcpy()
182 double pixels = size.x * size.y; in doRunMemcpy()
212 Point size = new Point(); in doRunMemset() local
213 wm.getDefaultDisplay().getSize(size); in doRunMemset()
214 Log.i(TAG, " x " + size.x + " y " + size.y); in doRunMemset()
215 double pixels = size.x * size.y; in doRunMemset()
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/
DFlashlightTest.java63 if (mFlashCameraIdList.size() == 0) in testSetTorchModeOnOff()
84 times(mFlashCameraIdList.size() + 1)). in testSetTorchModeOnOff()
97 if (mFlashCameraIdList.size() >= 2) { in testSetTorchModeOnOff()
114 verify(torchListener, timeout(TORCH_TIMEOUT_MS).times(mFlashCameraIdList.size())). in testSetTorchModeOnOff()
118 times(mFlashCameraIdList.size() * 2)). in testSetTorchModeOnOff()
126 if (mFlashCameraIdList.size() == 0) in testTorchCallback()
143 times(NUM_REGISTERS * mFlashCameraIdList.size())). in testTorchCallback()
161 if (mFlashCameraIdList.size() == 0) in testCameraDeviceOpenAfterTorchOn()
199 atLeast(mFlashCameraIdList.size())). in testCameraDeviceOpenAfterTorchOn()
201 verify(torchListener, atMost(mFlashCameraIdList.size() * 2 + 1)). in testCameraDeviceOpenAfterTorchOn()
[all …]
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/testtype/
DTestFilterTest.java52 assertEquals(mTestList.size(), mFilter.filter(mTestList).size()); in testFilter_empty()
61 assertEquals(2, filteredList.size()); in testFilter_excludeTest()
73 assertEquals(1, filteredList.size()); in testFilter_excludeClass()
83 assertEquals(2, filteredList.size()); in testFilter_includeClass()
95 assertEquals(1, filteredList.size()); in testFilter_includeTest()
106 assertEquals(1, filteredList.size()); in testFilter_includeClasses()
117 assertEquals(2, filteredList.size()); in testFilter_includeTests()
162 assertEquals(1, filteredList.size()); in testFilter_includeClassAndExcludeTest()

12345678910>>...22