Home
last modified time | relevance | path

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

12345678910

/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DAssertions.java147 @NonNull List<ContentCaptureEvent> events, int index, @NonNull View expectedView) { in assertViewWithUnknownParentAppeared() argument
148 return assertViewWithUnknownParentAppeared(events, index, expectedView, in assertViewWithUnknownParentAppeared()
159 int index, @NonNull View expectedDecorView) { in assertDecorViewAppeared() argument
160 final ContentCaptureEvent event = assertViewAppeared(events, index); in assertDecorViewAppeared()
161 assertWithMessage("wrong autofill id on %s (%s)", event, index) in assertDecorViewAppeared()
170 @NonNull List<ContentCaptureEvent> events, int index, @NonNull View expectedView, in assertViewWithUnknownParentAppeared() argument
172 final ContentCaptureEvent event = assertViewAppeared(events, index); in assertViewWithUnknownParentAppeared()
175 assertWithMessage("wrong class on %s (%s)", event, index).that(node.getClassName()) in assertViewWithUnknownParentAppeared()
177 assertWithMessage("wrong autofill id on %s (%s)", event, index).that(node.getAutofillId()) in assertViewWithUnknownParentAppeared()
181 assertWithMessage("wrong text on %s (%s)", event, index).that(node.getText().toString()) in assertViewWithUnknownParentAppeared()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/peripheralprofile/
DListsHelper.java26 for (int index = 0; index < len; index++) { in isMatch()
27 if (a[index] != b[index]) { in isMatch()
67 for (int index = 0; index < list.length; index++) { in textFormatHex()
68 sb.append("0x" + Integer.toHexString(list[index])); in textFormatHex()
69 if (index < list.length-1) { in textFormatHex()
80 for (int index = 0; index < list.length; index++) { in textFormatDecimal()
81 sb.append("0x" + list[index]); in textFormatDecimal()
82 if (index < list.length-1) { in textFormatDecimal()
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()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dstruct_field.rscript63 // Arguments are named outerFieldName"_"index"_x", outerFieldName"_"index"_y",
64 // and outerFieldName"_"index"_f".
65 #define ARGS_INNERONE_ARRAY(outerFieldName, index) \
66 ARGS_INNERONE_(outerFieldName ## _ ## index)
70 // Arguments are named outerFieldName"_"index"_z", outerFieldName"_"index"_innerOne_x", etc.
71 #define ARGS_INNERTWO_ARRAY(outerFieldName, index) \
72 …int8_t outerFieldName ## _ ## index ## _z, ARGS_INNERONE_(outerFieldName ## _ ## index ## _innerOn…
112 // Compares "outer"outerFieldName"["index"].x" to outerFieldName"_"index"_x", etc.
113 #define CHECK_INNERONE_ARRAY(outerFieldName, index) \
114 CHECK_INNERONE_(outer.outerFieldName[index], outerFieldName ## _ ## index)
[all …]
Dstruct_array.rscript11 for (uint32_t index = 0; index < 5; index++) {
12 _RS_ASSERT(s->i[index] == index);
/cts/tests/tests/widget/src/android/widget/cts/
DExpandableListTester.java72 int index = 0; in testContextMenus() local
79 mListUtil.arrowScrollToSelectedPosition(index); in testContextMenus()
80 View headerChild = mExpandableListView.getChildAt(index in testContextMenus()
85 index++; in testContextMenus()
92 expandGroup(groupIndex, index); in testContextMenus()
97 mListUtil.arrowScrollToSelectedPosition(index); in testContextMenus()
98 View groupChild = mExpandableListView.getChildAt(index in testContextMenus()
103 index++; in testContextMenus()
108 mListUtil.arrowScrollToSelectedPosition(index); in testContextMenus()
110 View child = mExpandableListView.getChildAt(index in testContextMenus()
[all …]
DAlphabetIndexerTest.java69 int index = ALPHABET.indexOf('A'); in testAlphabetIndexer() local
70 assertEquals(INDEX_OF_ARGENTINA, indexer.getPositionForSection(index)); in testAlphabetIndexer()
73 index = ALPHABET.indexOf('C'); in testAlphabetIndexer()
74 assertEquals(INDEX_OF_CHINA, indexer.getPositionForSection(index)); in testAlphabetIndexer()
77 index = ALPHABET.indexOf('T'); in testAlphabetIndexer()
78 assertEquals(INDEX_OF_UNITED_STATES, indexer.getPositionForSection(index)); in testAlphabetIndexer()
81 index = ALPHABET.indexOf('X'); in testAlphabetIndexer()
82 assertEquals(COUNTRIES_LIST.length, indexer.getPositionForSection(index)); in testAlphabetIndexer()
97 index = ALPHABET.indexOf('B'); in testAlphabetIndexer()
98 assertEquals(INDEX_OF_BERGKAMP, indexer.getPositionForSection(index)); in testAlphabetIndexer()
[all …]
/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/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/
DExifInterfaceTest.java147 private static String getString(TypedArray typedArray, int index) { in getString() argument
148 String stringValue = typedArray.getString(index); in getString()
156 int index = 0; in ExpectedValue() local
159 hasThumbnail = typedArray.getBoolean(index++, false); in ExpectedValue()
160 thumbnailOffset = typedArray.getInt(index++, -1); in ExpectedValue()
161 thumbnailLength = typedArray.getInt(index++, -1); in ExpectedValue()
162 thumbnailWidth = typedArray.getInt(index++, 0); in ExpectedValue()
163 thumbnailHeight = typedArray.getInt(index++, 0); in ExpectedValue()
164 isThumbnailCompressed = typedArray.getBoolean(index++, false); in ExpectedValue()
167 hasLatLong = typedArray.getBoolean(index++, false); in ExpectedValue()
[all …]
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.java84 for(int index = 0; index < numOutputDevices; index++) { in test_getDevices()
85 assertTrue(deviceList[index].isSink()); in test_getDevices()
99 for(int index = 0; index < numInputDevices; index++) { in test_getDevices()
100 assertTrue(deviceList[index].isSource()); in test_getDevices()
116 for (int index = 0; index < deviceList.length; index++) { in test_devicesInfoFields()
117 AudioDeviceInfo deviceInfo = deviceList[index]; in test_devicesInfoFields()
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 …]
DRoutingTest.java135 for (int index = 0; index < deviceList.length; index++) { in test_audioTrack_preferredDevice()
136 assertTrue(audioTrack.setPreferredDevice(deviceList[index])); in test_audioTrack_preferredDevice()
137 assertTrue(audioTrack.getPreferredDevice() == deviceList[index]); in test_audioTrack_preferredDevice()
188 for (int index = 0; index < deviceList.length; index++) { in getTelephonyDeviceAndSetInCommunicationMode()
189 if (deviceList[index].getType() == AudioDeviceInfo.TYPE_TELEPHONY) { in getTelephonyDeviceAndSetInCommunicationMode()
190 telephonyDevice = deviceList[index]; in getTelephonyDeviceAndSetInCommunicationMode()
411 for (int index = 0; index < deviceList.length; index++) { in test_audioRecord_preferredDevice()
412 assertTrue(audioRecord.setPreferredDevice(deviceList[index])); in test_audioRecord_preferredDevice()
413 assertTrue(audioRecord.getPreferredDevice() == deviceList[index]); in test_audioRecord_preferredDevice()
438 for (int index = 0; index < mBufferSize; index++) { in AudioTrackFiller()
[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/camera/src/android/hardware/camera2/cts/
DCamera2MultiViewCtsActivity.java50 public TextureView getTextureView(int index) { in getTextureView() argument
51 if (index < 0 || index > (MAX_TEXTURE_VIEWS - 1)) { in getTextureView()
55 return mTextureView[index]; in getTextureView()
58 public SurfaceView getSurfaceView(int index) { in getSurfaceView() argument
59 if (index < 0 || index > 1) { in getSurfaceView()
62 return mSurfaceView[index]; in getSurfaceView()
/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/tests/tests/nativemidi/java/android/nativemidi/cts/
DNativeMidiEchoTest.java91 for(int index = 0; index < len; index++) { in generateRandomMessage()
92 buffer[index] = (byte)(mRandom.nextInt() & 0xFF); in generateRandomMessage()
111 for (int index = 0; index < buffer.length; index++) { in compareMessages()
112 Assert.assertEquals("message byte[" + index + "]", buffer[index] & 0x0FF, in compareMessages()
113 nativeMsg.buffer[index] & 0x0FF); in compareMessages()
399 for (int index = 0; index < numMessages; index++) { in test_G_NativeEchoTime()
400 buffer[1] = (byte) (60 + index); in test_G_NativeEchoTime()
462 for (int index = 0; index < numMessages; index++) { in test_I_NativeEchoTime_PureNative()
463 buffer[1] = (byte) (60 + index); in test_I_NativeEchoTime_PureNative()
505 public native NativeMidiMessage getReceivedMessageAt(long ctx, int index); in getReceivedMessageAt() argument
DNativeMidiMessage.java35 for(int index = 0; index < len; index++) { in toString()
36 sb.append("0x" + Integer.toHexString(buffer[index] & 0x00FF)); in toString()
37 if (index < len - 1) { in toString()
/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/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/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()
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DPoc17_03.java86 int index = 0; in testPocCVE_2017_0334()
89 for (; index < lines.length; index++) { in testPocCVE_2017_0334()
90 String line = lines[index]; in testPocCVE_2017_0334()
91 int index = line.indexOf(pattern); in testPocCVE_2017_0334()
92 if (index == -1) { in testPocCVE_2017_0334()
95 return line.substring(index + pattern.length()); in testPocCVE_2017_0334()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dlayered_filter_fast_d1new.rscript94 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 …]
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DFcpTemplate.java94 int index = 2; in parseFcpTemplate() local
95 while (index < responseLength - 2) { // don't need to process the 2 byte status-word footer in parseFcpTemplate()
98 int tag = data[index++] & 0xFF; in parseFcpTemplate()
99 int length = data[index++] & 0xFF; // assumes that length is < 128 bytes. in parseFcpTemplate()
100 String value = fcpResponse.substring(index * 2, (index + length) * 2); in parseFcpTemplate()
102 index += length; in parseFcpTemplate()

12345678910