Home
last modified time | relevance | path

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

12345678910>>...53

/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 …]
/cts/tests/tests/util/src/android/util/cts/
DLongSparseArrayTest.java47 assertEquals(0, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
53 assertEquals(i + 1, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
69 assertEquals(LENGTH, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
72 assertEquals(LENGTH, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
78 int size = sparseArray.size(); in testSparseArrayWithDefaultCapacity() local
80 assertEquals(size + 1, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
81 assertEquals(size, sparseArray.indexOfKey(NON_EXISTED_KEY)); in testSparseArrayWithDefaultCapacity()
82 assertEquals(size, sparseArray.indexOfValue(VALUE_FOR_NON_EXISTED_KEY)); in testSparseArrayWithDefaultCapacity()
83 assertEquals(NON_EXISTED_KEY, sparseArray.keyAt(size)); in testSparseArrayWithDefaultCapacity()
84 assertEquals(VALUE_FOR_NON_EXISTED_KEY, sparseArray.valueAt(size)); in testSparseArrayWithDefaultCapacity()
[all …]
DSparseLongArrayTest.java45 assertEquals(0, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
51 assertEquals(i + 1, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
67 assertEquals(LENGTH, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
70 assertEquals(LENGTH, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
76 int size = sparseArray.size(); in testSparseArrayWithDefaultCapacity() local
78 assertEquals(size + 1, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
79 assertEquals(size, sparseArray.indexOfKey(NON_EXISTED_KEY)); in testSparseArrayWithDefaultCapacity()
80 assertEquals(size, sparseArray.indexOfValue(VALUE_FOR_NON_EXISTED_KEY)); in testSparseArrayWithDefaultCapacity()
81 assertEquals(NON_EXISTED_KEY, sparseArray.keyAt(size)); in testSparseArrayWithDefaultCapacity()
82 assertEquals(VALUE_FOR_NON_EXISTED_KEY, sparseArray.valueAt(size)); in testSparseArrayWithDefaultCapacity()
[all …]
DSparseIntArrayTest.java41 assertEquals(0, sparseIntArray.size()); in testSparseIntArrayWithDefaultCapacity()
46 assertEquals(i + 1, sparseIntArray.size()); in testSparseIntArrayWithDefaultCapacity()
61 assertEquals(13, sparseIntArray.size()); in testSparseIntArrayWithDefaultCapacity()
64 assertEquals(13, sparseIntArray.size()); in testSparseIntArrayWithDefaultCapacity()
70 int size = sparseIntArray.size(); in testSparseIntArrayWithDefaultCapacity() local
72 assertEquals(size + 1, sparseIntArray.size()); in testSparseIntArrayWithDefaultCapacity()
73 assertEquals(size, sparseIntArray.indexOfKey(NON_EXISTED_KEY)); in testSparseIntArrayWithDefaultCapacity()
74 assertEquals(size, sparseIntArray.indexOfValue(VALUE_FOR_NON_EXISTED_KEY)); in testSparseIntArrayWithDefaultCapacity()
75 assertEquals(NON_EXISTED_KEY, sparseIntArray.keyAt(size)); in testSparseIntArrayWithDefaultCapacity()
76 assertEquals(VALUE_FOR_NON_EXISTED_KEY, sparseIntArray.valueAt(size)); in testSparseIntArrayWithDefaultCapacity()
[all …]
DSparseArrayTest.java51 assertEquals(0, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
57 assertEquals(i + 1, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
73 assertEquals(LENGTH, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
76 assertEquals(LENGTH, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
82 int size = sparseArray.size(); in testSparseArrayWithDefaultCapacity() local
84 assertEquals(size + 1, sparseArray.size()); in testSparseArrayWithDefaultCapacity()
85 assertEquals(size, sparseArray.indexOfKey(NON_EXISTED_KEY)); in testSparseArrayWithDefaultCapacity()
86 assertEquals(size, sparseArray.indexOfValue(VALUE_FOR_NON_EXISTED_KEY)); in testSparseArrayWithDefaultCapacity()
87 assertEquals(NON_EXISTED_KEY, sparseArray.keyAt(size)); in testSparseArrayWithDefaultCapacity()
88 assertEquals(VALUE_FOR_NON_EXISTED_KEY, sparseArray.valueAt(size)); in testSparseArrayWithDefaultCapacity()
[all …]
DSparseBooleanArrayTest.java42 assertEquals(0, sparseBooleanArray.size()); in testSparseBooleanArrayWithDefaultCapacity()
47 assertEquals(i + 1, sparseBooleanArray.size()); in testSparseBooleanArrayWithDefaultCapacity()
68 assertEquals(13, sparseBooleanArray.size()); in testSparseBooleanArrayWithDefaultCapacity()
71 assertEquals(13, sparseBooleanArray.size()); in testSparseBooleanArrayWithDefaultCapacity()
77 int size = sparseBooleanArray.size(); in testSparseBooleanArrayWithDefaultCapacity() local
79 assertEquals(size + 1, sparseBooleanArray.size()); in testSparseBooleanArrayWithDefaultCapacity()
80 assertEquals(size, sparseBooleanArray.indexOfKey(NON_EXISTED_KEY)); in testSparseBooleanArrayWithDefaultCapacity()
83 assertEquals(NON_EXISTED_KEY, sparseBooleanArray.keyAt(size)); in testSparseBooleanArrayWithDefaultCapacity()
84 assertEquals(VALUE_FOR_NON_EXISTED_KEY, sparseBooleanArray.valueAt(size)); in testSparseBooleanArrayWithDefaultCapacity()
93 assertEquals(0, sparseBooleanArray.size()); in testSparseBooleanArrayWithDefaultCapacity()
[all …]
/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/hostsidetests/securitybulletin/securityPatch/includes/
Dmemutils.c88 void *memalign(size_t alignment, size_t size) { in memalign() argument
94 return real_memalign(alignment, size); in memalign()
100 size_t aligned_size = size; in memalign()
105 return real_memalign(alignment, size); in memalign()
109 return real_memalign(alignment, size); in memalign()
112 if ((0 == page_size) || (0 == alignment) || (0 == size)) { in memalign()
113 return real_memalign(alignment, size); in memalign()
120 if (0 != (size % MINIMUM_ALIGNMENT)) { in memalign()
121 aligned_size = size + (MINIMUM_ALIGNMENT - (size % MINIMUM_ALIGNMENT)); in memalign()
144 s_mem_map[s_mem_map_index].mem_size = size; in memalign()
[all …]
Dmemutils_track.c53 void *memalign(size_t alignment, size_t size) { in memalign() argument
57 void* mem_ptr = real_memalign(alignment, size); in memalign()
61 memset(mem_ptr, INITIAL_VAL, size); in memalign()
71 if (!is_tracking_required(size)) { in memalign()
78 s_allocation_list[s_allocation_index].mem_size = size; in memalign()
83 void *malloc(size_t size) { in malloc() argument
87 void* mem_ptr = real_malloc(size); in malloc()
91 memset(mem_ptr, INITIAL_VAL, size); in malloc()
101 if (!is_tracking_required(size)) { in malloc()
108 s_allocation_list[s_allocation_index].mem_size = size; in malloc()
[all …]
/cts/tests/aslr/src/
DAslrMallocTest.cpp63 auto size = readlink("/proc/self/exe", path, sizeof(path)); in SetUp() local
64 ASSERT_TRUE(size > 0 && size < PATH_MAX); in SetUp()
65 path[size] = '\0'; in SetUp()
110 for (auto size : allocSizes) { in TestRandomization() local
112 iterations, size); in TestRandomization()
119 GetAddress(size, address); in TestRandomization()
125 log2(static_cast<double>(addresses.size()))); in TestRandomization()
128 entropy, size, minEntropyBits); in TestRandomization()
130 "insufficient entropy for malloc(%zu)", size); in TestRandomization()
143 size_t size; in main() local
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-9308/
Dpoc.cpp31 void decodeFrames(UCHAR *data, UINT size);
53 void Codec::decodeFrames(UCHAR *data, UINT size) { in decodeFrames() argument
54 while (size > 0) { in decodeFrames()
55 UINT inputSize = size; in decodeFrames()
56 UINT valid = size; in decodeFrames()
62 size -= kConfigBytes; in decodeFrames()
74 size = valid; in decodeFrames()
89 UINT size = ftell(fp); in main() local
91 UCHAR *data = new UCHAR[size]; in main()
92 fread(data, sizeof(UCHAR), size, fp); in main()
[all …]
/cts/tests/tests/media/libndkaudio/
DWaveTableGenerator.cpp29 float* WaveTableGenerator::genSinWave(int size, float maxValue) { in genSinWave() argument
30 return genSinWave(size, maxValue, new float[size]); in genSinWave()
33 float* WaveTableGenerator::genSinWave(int size, float maxValue, float* tbl) { in genSinWave() argument
34 float incr = (kPI * 2.0f) / (float) size; in genSinWave()
36 for (int index = 0; index < size; index++) { in genSinWave()
/cts/tests/tests/media/src/android/media/cts/
DTestProxyFileDescriptorCallback.java49 final int size = (int) afd.getDeclaredLength(); in fromAssetFd() local
50 byte[] data = new byte[(int) size]; in fromAssetFd()
54 numRead = in.read(data, writeIndex, size - writeIndex); in fromAssetFd()
68 public int onRead(long offset, int size, byte[] data) throws ErrnoException { in onRead() argument
80 if (offset + size > mData.length) { in onRead()
81 size -= (offset + size) - mData.length; in onRead()
83 System.arraycopy(mData, (int)offset, data, 0, size); in onRead()
84 return size; in onRead()
123 public void returnFromGetSize(long size) { in returnFromGetSize() argument
124 mReturnFromGetSize = size; in returnFromGetSize()
DTestMediaDataSource.java48 final int size = (int) afd.getDeclaredLength(); in fromAssetFd() local
49 byte[] data = new byte[(int) size]; in fromAssetFd()
53 numRead = in.read(data, writeIndex, size - writeIndex); in fromAssetFd()
67 public synchronized int readAt(long position, byte[] buffer, int offset, int size) in readAt() argument
80 if (position + size > mData.length) { in readAt()
81 size -= (position + size) - mData.length; in readAt()
83 System.arraycopy(mData, (int)position, buffer, offset, size); in readAt()
84 return size; in readAt()
124 public void returnFromGetSize(long size) { in returnFromGetSize() argument
125 mReturnFromGetSize = size; in returnFromGetSize()
/cts/suite/audio_quality/lib/include/audio/
DBuffer.h35 explicit 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()
106 element = Element.createVector(rs, dataType, size); in getElement()
112 int size, long seed, boolean includeExtremes) { in createRandomAllocation() argument
113 Element element = getElement(rs, dataType, size); in createRandomAllocation()
115 int width = (size == 3) ? 4 : size; in createRandomAllocation()
176 int size, long seed, double minValue, double maxValue) { in createRandomFloatAllocation() argument
177 Element element = getElement(rs, dataType, size); in createRandomFloatAllocation()
179 int width = (size == 3) ? 4 : size; in createRandomFloatAllocation()
201 int size, long seed, boolean signed, int numberOfBits) { in createRandomIntegerAllocation() argument
[all …]
/cts/tests/sensor/jni/
DSensorTest.cpp73 int TestSensorManager::createSharedMemoryDirectChannel(int fd, size_t size) { in createSharedMemoryDirectChannel() argument
74 int ret = ASensorManager_createSharedMemoryDirectChannel(mManager, fd, size); in createSharedMemoryDirectChannel()
82 AHardwareBuffer const *buffer, size_t size) { in createHardwareBufferDirectChannel() argument
83 int ret = ASensorManager_createHardwareBufferDirectChannel(mManager, buffer, size); in createHardwareBufferDirectChannel()
122 int32_t size = *reinterpret_cast<int32_t *>(mBuffer + offset + kOffsetSize); in parseEvents() local
123 if (size != kEventSize) { in parseEvents()
137 TestSharedMemory::TestSharedMemory(int type, size_t size) in TestSharedMemory() argument
143 mSharedMemoryFd = ASharedMemory_create("TestSharedMemory", size); in TestSharedMemory()
145 || ASharedMemory_getSize(mSharedMemoryFd) != size) { in TestSharedMemory()
149 mSize = size; in TestSharedMemory()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-1988/
Dpoc.cpp36 auto size = codec->getSampledDimensions(sampleSize); in decode() local
37 auto info = SkImageInfo::MakeN32Premul(size); in decode()
59 size_t size = inFile.tellg(); in main() local
60 if (size < 1) { in main()
65 uint8_t *data = (uint8_t *)malloc(size); in main()
69 inFile.read(reinterpret_cast<char *>(data), size); in main()
70 auto bytes = SkData::MakeWithoutCopy(data, size); in main()
71 bytes = SkData::MakeSubset(bytes.get(), 1, size - 1); in main()
/cts/apps/CameraITS/tests/scene1_2/
Dtest_yuv_jpeg_all.py38 def do_capture_and_extract_rgb_means(req, cam, size, img_type, log_path, debug): argument
52 out_surface = {'width': size[0], 'height': size[1], 'format': img_type}
60 assert cap['width'] == size[0]
61 assert cap['height'] == size[1]
65 os.path.join(log_path, NAME), img_type, size[0], size[1]))
67 assert img.shape[0] == size[1]
68 assert img.shape[1] == size[0]
106 for size in capture_request_utils.get_available_output_sizes(
109 req, cam, size, 'yuv', log_path, debug))
111 for size in capture_request_utils.get_available_output_sizes(
[all …]
/cts/apps/CameraITS/utils/
Dcapture_request_utils.py215 size = get_available_output_sizes(fmt, props)[-1]
216 out_spec = {'format': fmt, 'width': size[0], 'height': size[1]}
238 size = get_available_output_sizes(fmt, props)[-1]
239 out_spec = {'format': fmt, 'width': size[0], 'height': size[1]}
346 size = get_available_output_sizes('yuv', props, match_ar_size=match_ar)[0]
347 fmt = {'format': 'yuv', 'width': size[0], 'height': size[1]}
363 size = get_available_output_sizes('yuv', props, match_ar_size=match_ar)[-1]
364 fmt = {'format': 'yuv', 'width': size[0], 'height': size[1]}
380 size = get_available_output_sizes('jpeg', props, match_ar_size=match_ar)[0]
381 fmt = {'format': 'jpeg', 'width': size[0], 'height': size[1]}
/cts/hostsidetests/car/src/android/car/cts/powerpolicy/
DPowerPolicyTestAnalyzer.java38 int size = result1.size(); in checkIfTestResultMatch() local
39 if (size != result2.size()) { in checkIfTestResultMatch()
42 for (int i = 0; i < size; i++) { in checkIfTestResultMatch()
109 if (longResult.size() < shortResult.size()) { in getDiff()
113 int shortSize = shortResult.size(); in getDiff()
114 int longSize = longResult.size(); in getDiff()
139 if (longResult.size() < shortResult.size()) { in getTailDiff()
143 int shortSize = shortResult.size(); in getTailDiff()
144 int longSize = longResult.size(); in getTailDiff()
/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()

12345678910>>...53