/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | Assertions.java | 150 @NonNull List<ContentCaptureEvent> events, int index, @NonNull View expectedView) { in assertViewWithUnknownParentAppeared() argument 151 return assertViewWithUnknownParentAppeared(events, index, expectedView, in assertViewWithUnknownParentAppeared() 162 int index, @NonNull View expectedDecorView) { in assertDecorViewAppeared() argument 163 final ContentCaptureEvent event = assertViewAppeared(events, index); in assertDecorViewAppeared() 164 assertWithMessage("wrong autofill id on %s (%s)", event, index) in assertDecorViewAppeared() 173 @NonNull List<ContentCaptureEvent> events, int index, @NonNull View expectedView, in assertViewWithUnknownParentAppeared() argument 175 final ContentCaptureEvent event = assertViewAppeared(events, index); in assertViewWithUnknownParentAppeared() 178 assertWithMessage("wrong class on %s (%s)", event, index).that(node.getClassName()) in assertViewWithUnknownParentAppeared() 180 assertWithMessage("wrong autofill id on %s (%s)", event, index).that(node.getAutofillId()) in assertViewWithUnknownParentAppeared() 184 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/ |
D | ListsHelper.java | 26 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()
|
D | AudioStringsHelper.java | 97 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/opengl/src/android/opengl/cts/ |
D | OpenGLES20ActivityOne.java | 96 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/ |
D | AlphabetIndexerTest.java | 69 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 …]
|
D | ExpandableListTester.java | 72 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 …]
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | struct_field.rscript | 63 // 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 …]
|
D | struct_array.rscript | 11 for (uint32_t index = 0; index < 5; index++) { 12 _RS_ASSERT(s->i[index] == index);
|
/cts/tests/openglperf2/jni/graphics/ |
D | GLUtils.cpp | 98 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/camera/src/android/hardware/camera2/cts/ |
D | Camera2MultiViewCtsActivity.java | 50 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/tests/media/src/android/media/cts/ |
D | SdkMediaCodec.java | 88 public final void releaseOutputBuffer(int index, boolean render) { in releaseOutputBuffer() argument 89 mCodec.releaseOutputBuffer(index, render); in releaseOutputBuffer() 108 public ByteBuffer getOutputBuffer(int index) { in getOutputBuffer() argument 109 return mAsync? mCodec.getOutputBuffer(index) : mOutputBuffers[index]; in getOutputBuffer() 118 public ByteBuffer getInputBuffer(int index) { in getInputBuffer() argument 119 return mAsync? mCodec.getInputBuffer(index) : mInputBuffers[index]; in getInputBuffer() 124 int index, in queueInputBuffer() argument 129 mCodec.queueInputBuffer(index, offset, size, presentationTimeUs, flags); in queueInputBuffer()
|
D | EnumDevicesTest.java | 84 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()
|
D | ExifInterfaceTest.java | 152 private static String getString(TypedArray typedArray, int index) { in getString() argument 153 String stringValue = typedArray.getString(index); in getString() 161 int index = 0; in ExpectedValue() local 164 hasThumbnail = typedArray.getBoolean(index++, false); in ExpectedValue() 165 thumbnailOffset = typedArray.getInt(index++, -1); in ExpectedValue() 166 thumbnailLength = typedArray.getInt(index++, -1); in ExpectedValue() 167 thumbnailWidth = typedArray.getInt(index++, 0); in ExpectedValue() 168 thumbnailHeight = typedArray.getInt(index++, 0); in ExpectedValue() 169 isThumbnailCompressed = typedArray.getBoolean(index++, false); in ExpectedValue() 172 hasLatLong = typedArray.getBoolean(index++, false); in ExpectedValue() [all …]
|
D | NdkMediaCodec.java | 52 …private static native boolean AMediaCodecReleaseOutputBuffer(long ndkMediaCodec, int index, boolea… in AMediaCodecReleaseOutputBuffer() argument 53 private static native ByteBuffer AMediaCodecGetOutputBuffer(long ndkMediaCodec, int index); in AMediaCodecGetOutputBuffer() argument 55 private static native ByteBuffer AMediaCodecGetInputBuffer(long ndkMediaCodec, int index); in AMediaCodecGetInputBuffer() argument 76 int index, in AMediaCodecQueueInputBuffer() argument 196 public ByteBuffer getOutputBuffer(int index) { in getOutputBuffer() argument 197 return AMediaCodecGetOutputBuffer(mNdkMediaCodec, index); in getOutputBuffer() 201 public void releaseOutputBuffer(int index, boolean render) { in releaseOutputBuffer() argument 202 AMediaCodecReleaseOutputBuffer(mNdkMediaCodec, index, render); in releaseOutputBuffer() 221 public ByteBuffer getInputBuffer(int index) { in getInputBuffer() argument 222 return AMediaCodecGetInputBuffer(mNdkMediaCodec, index); in getInputBuffer() [all …]
|
D | IvfWriter.java | 161 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()
|
D | RoutingTest.java | 135 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 …]
|
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/ |
D | AbstractSensorVerification.java | 54 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/ |
D | SignalGenerator.java | 35 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/ |
D | DspBufferComplex.java | 39 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/tests/tests/nativemidi/java/android/nativemidi/cts/ |
D | NativeMidiMessage.java | 35 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()
|
D | NativeMidiEchoTest.java | 91 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() 406 for (int index = 0; index < numMessages; index++) { in test_G_NativeEchoTime() 407 buffer[1] = (byte) (60 + index); in test_G_NativeEchoTime() 470 for (int index = 0; index < numMessages; index++) { in test_I_NativeEchoTime_PureNative() 471 buffer[1] = (byte) (60 + index); in test_I_NativeEchoTime_PureNative() 513 public native NativeMidiMessage getReceivedMessageAt(long ctx, int index); in getReceivedMessageAt() argument
|
/cts/hostsidetests/securitybulletin/src/android/security/cts/ |
D | Poc17_03.java | 86 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/uirendering/src/android/uirendering/cts/bitmapcomparers/ |
D | ExactComparer.java | 35 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/openglperf/src/android/openglperf/cts/ |
D | Sphere.java | 102 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/tests/tests/carrierapi/src/android/carrierapi/cts/ |
D | FcpTemplate.java | 94 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()
|