Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 180) sorted by relevance

12345678

/cts/hostsidetests/security/securityPatch/CVE-2017-7369/
Dpoc.c171 int fd, ret, cmd, index,pcmfd, i; in poc() local
193 for(index=0;(unsigned int)index<lst.count;index++) in poc()
195 if(!strncmp((const char *)lst.pids[index].name,"SLIM_1_TX Channels",18)|| in poc()
196 !strncmp((const char *)lst.pids[index].name,"SLIM_0_TX Channels",18)|| in poc()
197 !strncmp((const char *)lst.pids[index].name,"SLIM_6_RX Channels",18)|| in poc()
198 !strncmp((const char *)lst.pids[index].name,"SLIM_5_RX Channels",18)|| in poc()
199 !strncmp((const char *)lst.pids[index].name,"SLIM_0_RX Channels",18)|| in poc()
200 !strncmp((const char *)lst.pids[index].name,"Playback 24 Volume",18)|| in poc()
201 !strncmp((const char *)lst.pids[index].name,"left Profile",12)|| in poc()
202 !strncmp((const char *)lst.pids[index].name,"Playback Device Channel Map",27)|| in poc()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dstruct_field.rs65 #define ARGS_INNERONE_ARRAY(outerFieldName, index) \
66 ARGS_INNERONE_(outerFieldName ## _ ## index)
71 #define ARGS_INNERTWO_ARRAY(outerFieldName, index) \
72 …int8_t outerFieldName ## _ ## index ## _z, ARGS_INNERONE_(outerFieldName ## _ ## index ## _innerOn…
113 #define CHECK_INNERONE_ARRAY(outerFieldName, index) \
114 CHECK_INNERONE_(outer.outerFieldName[index], outerFieldName ## _ ## index)
121 #define CHECK_INNERTWO_ARRAY(outerFieldName, index) …
123 TRACE(# index, outer.outerFieldName[index].z); \
124 _RS_ASSERT(outer.outerFieldName[index].z == outerFieldName ## _ ## index ## _z); \
125 …CHECK_INNERONE_(outer.outerFieldName[index].innerOne, outerFieldName ## _ ## index ## _innerOne); \
Dstruct_array.rs11 for (uint32_t index = 0; index < 5; index++) {
12 _RS_ASSERT(s->i[index] == index);
/cts/tests/tests/opengl/src/android/opengl/cts/
DOpenGLES20ActivityOne.java96 public OpenGLES20View(Context context, int type, int index, CountDownLatch latch) { in OpenGLES20View() argument
101 if (index == 1) { in OpenGLES20View()
103 } else if(index == 2) { in OpenGLES20View()
105 } else if(index == 3) { in OpenGLES20View()
107 } else if(index == 4) { in OpenGLES20View()
109 } else if(index == 5) { in OpenGLES20View()
111 } else if(index == 6) { in OpenGLES20View()
113 } else if(index == 7) { in OpenGLES20View()
115 } else if(index == 8) { in OpenGLES20View()
117 } else if(index == 9) { in OpenGLES20View()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DExpandableListTester.java61 int index = 0; in testContextMenus() local
68 mListUtil.arrowScrollToSelectedPosition(index); in testContextMenus()
69 View headerChild = mExpandableListView.getChildAt(index in testContextMenus()
74 index++; in testContextMenus()
81 expandGroup(groupIndex, index); in testContextMenus()
86 mListUtil.arrowScrollToSelectedPosition(index); in testContextMenus()
87 View groupChild = mExpandableListView.getChildAt(index in testContextMenus()
92 index++; in testContextMenus()
97 mListUtil.arrowScrollToSelectedPosition(index); in testContextMenus()
99 View child = mExpandableListView.getChildAt(index in testContextMenus()
[all …]
DAlphabetIndexerTest.java68 int index = ALPHABET.indexOf('A'); in testAlphabetIndexer() local
69 assertEquals(INDEX_OF_ARGENTINA, indexer.getPositionForSection(index)); in testAlphabetIndexer()
72 index = ALPHABET.indexOf('C'); in testAlphabetIndexer()
73 assertEquals(INDEX_OF_CHINA, indexer.getPositionForSection(index)); in testAlphabetIndexer()
76 index = ALPHABET.indexOf('T'); in testAlphabetIndexer()
77 assertEquals(INDEX_OF_UNITED_STATES, indexer.getPositionForSection(index)); in testAlphabetIndexer()
80 index = ALPHABET.indexOf('X'); in testAlphabetIndexer()
81 assertEquals(COUNTRIES_LIST.length, indexer.getPositionForSection(index)); in testAlphabetIndexer()
96 index = ALPHABET.indexOf('B'); in testAlphabetIndexer()
97 assertEquals(INDEX_OF_BERGKAMP, indexer.getPositionForSection(index)); in testAlphabetIndexer()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dlayered_filter_fast_d1new.rs94 const int index = y * g_image_size_i4.s0 + x; // width
105 rsSetElementAt_float4(g_sharp_RGBA, sharp_RGBA, index);
107 rsSetElementAt_uchar(g_sharp_actual_depth, g_kMaxDepth - (in.a >> g_kDepthScaleShift), index);
123 const int index = y * g_image_size_i4.s0 + x; // width
126 rsSetElementAt_uchar(g_sharp_active, 1, index);
127 rsSetElementAt_uchar(g_sharp_matte, g_blend_info.dilation_radius + 1, index);
129 uchar sharp_actual_depth = rsGetElementAt_uchar(g_sharp_actual_depth, index);
130 rsSetElementAt_uchar(g_sharp_dilated_depth, sharp_actual_depth, index);
136 sharp_actual_depth = rsGetElementAt_uchar(g_sharp_actual_depth, index - g_image_size_i4.s0);
140 sharp_actual_depth = rsGetElementAt_uchar(g_sharp_actual_depth, index + g_image_size_i4.s0);
[all …]
Dlayered_filter_fast_f32.rs102 const int index = y * g_image_size.width + x;
104 SharpPixelF32_t *sharp = g_sharp_image + index;
138 const int index = y * g_image_size.width + x; // index of this pixel
139 SharpPixelF32_t *sharp = g_sharp_image + index;
210 const int index = y * g_image_size.width + x;
211 SharpPixelF32_t *sharp = g_sharp_image + index;
234 const int index = y * g_image_size.width + x;
235 SharpPixelF32_t *sharp = g_sharp_image + index;
240 FuzzyPixelF32_t *fuzzy = g_fuzzy_image + index;
263 const int index = y * g_image_size.width;
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/
DCamera2MultiViewCtsActivity.java46 public TextureView getTextureView(int index) { in getTextureView() argument
47 if (index < 0 || index > 1) { in getTextureView()
50 return mTextureView[index]; in getTextureView()
53 public SurfaceView getSurfaceView(int index) { in getSurfaceView() argument
54 if (index < 0 || index > 1) { in getSurfaceView()
57 return mSurfaceView[index]; in getSurfaceView()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/peripheralprofile/
DAudioStringsHelper.java97 for (int index = 0; index < values.length; index++) { in makeIntList()
98 sb.append(values[index]); in makeIntList()
99 if (index < values.length - 1) { in makeIntList()
110 for (int index = 0; index < values.length; index++) { in makeHexList()
111 sb.append("0x" + Integer.toHexString(values[index]).toUpperCase()); in makeHexList()
112 if (index < values.length - 1) { in makeHexList()
DListsHelper.java26 for (int index = 0; index < len; index++) { in isMatch()
27 if (a[index] != b[index]) { in isMatch()
/cts/tests/openglperf2/jni/graphics/
DGLUtils.cpp98 int index = 0; in loadMesh() local
99 int numVertices = readInt(buffer + index); in loadMesh()
100 index += 4; in loadMesh()
107 vertices[vIndex + 0] = readFloat(buffer + index); in loadMesh()
108 index += 4; in loadMesh()
109 vertices[vIndex + 1] = readFloat(buffer + index); in loadMesh()
110 index += 4; in loadMesh()
111 vertices[vIndex + 2] = readFloat(buffer + index); in loadMesh()
112 index += 4; in loadMesh()
114 normals[vIndex + 0] = readFloat(buffer + index); in loadMesh()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DSdkMediaCodec.java82 public final void releaseOutputBuffer(int index, boolean render) { in releaseOutputBuffer() argument
83 mCodec.releaseOutputBuffer(index, render); in releaseOutputBuffer()
102 public ByteBuffer getOutputBuffer(int index) { in getOutputBuffer() argument
103 return mAsync? mCodec.getOutputBuffer(index) : mOutputBuffers[index]; in getOutputBuffer()
112 public ByteBuffer getInputBuffer(int index) { in getInputBuffer() argument
113 return mAsync? mCodec.getInputBuffer(index) : mInputBuffers[index]; in getInputBuffer()
118 int index, in queueInputBuffer() argument
123 mCodec.queueInputBuffer(index, offset, size, presentationTimeUs, flags); in queueInputBuffer()
DEnumDevicesTest.java83 for(int index = 0; index < numOutputDevices; index++) { in test_getDevices()
84 assertTrue(deviceList[index].isSink()); in test_getDevices()
98 for(int index = 0; index < numInputDevices; index++) { in test_getDevices()
99 assertTrue(deviceList[index].isSource()); in test_getDevices()
115 for (int index = 0; index < deviceList.length; index++) { in test_devicesInfoFields()
116 AudioDeviceInfo deviceInfo = deviceList[index]; in test_devicesInfoFields()
DExifInterfaceTest.java129 private static String getString(TypedArray typedArray, int index) { in getString() argument
130 String stringValue = typedArray.getString(index); in getString()
138 int index = 0; in ExpectedValue() local
141 hasThumbnail = typedArray.getBoolean(index++, false); in ExpectedValue()
142 thumbnailWidth = typedArray.getInt(index++, 0); in ExpectedValue()
143 thumbnailHeight = typedArray.getInt(index++, 0); in ExpectedValue()
144 isThumbnailCompressed = typedArray.getBoolean(index++, false); in ExpectedValue()
147 hasLatLong = typedArray.getBoolean(index++, false); in ExpectedValue()
148 latitude = typedArray.getFloat(index++, 0f); in ExpectedValue()
149 longitude = typedArray.getFloat(index++, 0f); in ExpectedValue()
[all …]
DNdkMediaCodec.java50 …private static native boolean AMediaCodecReleaseOutputBuffer(long ndkMediaCodec, int index, boolea… in AMediaCodecReleaseOutputBuffer() argument
51 private static native ByteBuffer AMediaCodecGetOutputBuffer(long ndkMediaCodec, int index); in AMediaCodecGetOutputBuffer() argument
53 private static native ByteBuffer AMediaCodecGetInputBuffer(long ndkMediaCodec, int index); in AMediaCodecGetInputBuffer() argument
71 int index, in AMediaCodecQueueInputBuffer() argument
169 public ByteBuffer getOutputBuffer(int index) { in getOutputBuffer() argument
170 return AMediaCodecGetOutputBuffer(mNdkMediaCodec, index); in getOutputBuffer()
174 public void releaseOutputBuffer(int index, boolean render) { in releaseOutputBuffer() argument
175 AMediaCodecReleaseOutputBuffer(mNdkMediaCodec, index, render); in releaseOutputBuffer()
194 public ByteBuffer getInputBuffer(int index) { in getInputBuffer() argument
195 return AMediaCodecGetInputBuffer(mNdkMediaCodec, index); in getInputBuffer()
[all …]
DIvfWriter.java161 private static void lay16Bits(byte[] array, int index, int value){ in lay16Bits() argument
162 array[index] = (byte) (value); in lay16Bits()
163 array[index + 1] = (byte) (value >> 8); in lay16Bits()
175 private static void lay32Bits(byte[] array, int index, int value){ in lay32Bits() argument
177 array[index + i] = (byte) (value >> (i * 8)); in lay32Bits()
190 private static void lay64bits(byte[] array, int index, long value){ in lay64bits() argument
192 array[index + i] = (byte) (value >> (i * 8)); in lay64bits()
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
DAbstractSensorVerification.java54 indices[i] = indexedEvents.get(i).index; in getIndexArray()
65 public final int index; field in AbstractSensorVerification.IndexedEvent
68 public IndexedEvent(int index, TestSensorEvent event) { in IndexedEvent() argument
69 this.index = index; in IndexedEvent()
80 public IndexedEventPair(int index, TestSensorEvent event, TestSensorEvent previousEvent) { in IndexedEventPair() argument
81 super(index, event); in IndexedEventPair()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DSignalGenerator.java35 for(int index = 0; index < size; index++) { in fillFloatSine()
36 buffer[index] = (float)Math.sin(index * incr); in fillFloatSine()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/wavelib/
DDspBufferComplex.java39 public void setValues(int index, double... values) { in setValues() argument
40 mReal[index] = values[0]; in setValues()
41 mImag[index] = values[1]; in setValues()
45 public void setValue(int index, double value) { in setValue() argument
46 mReal[index] = value; in setValue()
47 mImag[index] = 0; in setValue()
/cts/common/host-side/util/src/com/android/compatibility/common/util/
DTestFilter.java56 int index = 0; in createFrom() local
59 index++; in createFrom()
61 name = parts[index]; in createFrom()
62 index++; in createFrom()
63 parts = filter.split(" ", index + 1); in createFrom()
64 if (parts.length > index) { in createFrom()
65 test = parts[index]; in createFrom()
/cts/hostsidetests/inputmethodservice/common/src/android/inputmethodservice/cts/common/test/
DShellCommandUtils.java80 for (int index = 0; index < extras.length; index += 3) { in broadcastIntent()
81 final String optionFlag = extras[index]; in broadcastIntent()
82 final String extraKey = extras[index + 1]; in broadcastIntent()
83 final String extraValue = extras[index + 2]; in broadcastIntent()
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/
DExactComparer.java35 int index = indexFromXAndY(x, y, stride, offset); in verifySame() local
36 if (ideal[index] != given[index]) { in verifySame()
39 Log.d(TAG, "Expected color : " + Integer.toHexString(ideal[index]) + in verifySame()
40 " given color : " + Integer.toHexString(given[index])); in verifySame()
/cts/tests/tests/media/libndkaudio/
DWaveTableGenerator.cpp36 for (int index = 0; index < size; index++) { in genSinWave() local
37 tbl[index] = (float) sin(val) * maxValue; in genSinWave()
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DSphere.java102 int index = 0; in Sphere() local
108 if (index >= mNumIndices[bufferNum]) { in Sphere()
112 index = 0; in Sphere()
115 indexBuffer[index++] = (short) (i * iMax + j); in Sphere()
116 indexBuffer[index++] = (short) (i1 * iMax + j); in Sphere()
117 indexBuffer[index++] = (short) (i1 * iMax + j1); in Sphere()
118 indexBuffer[index++] = (short) (i * iMax + j); in Sphere()
119 indexBuffer[index++] = (short) (i1 * iMax + j1); in Sphere()
120 indexBuffer[index++] = (short) (i * iMax + j1); in Sphere()

12345678