/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/ |
D | PSNRComparer.java | 46 int index = indexFromXAndY(x, y, stride, offset); in verifySame() local 47 if (inspectRegion(ideal, index)) { in verifySame() 59 int index = indexFromXAndY(x, y, stride, offset); in verifySame() local 60 if (ideal[index] == given[index]) { in verifySame() 63 MSE += (Color.red(ideal[index]) - Color.red(given[index])) * in verifySame() 64 (Color.red(ideal[index]) - Color.red(given[index])); in verifySame() 65 MSE += (Color.blue(ideal[index]) - Color.blue(given[index])) * in verifySame() 66 (Color.blue(ideal[index]) - Color.blue(given[index])); in verifySame() 67 MSE += (Color.green(ideal[index]) - Color.green(given[index])) * in verifySame() 68 (Color.green(ideal[index]) - Color.green(given[index])); in verifySame() [all …]
|
D | ThresholdDifferenceComparer.java | 51 int index = indexFromXAndY(x, y, stride, offset); in verifySame() local 52 int error = Math.abs(Color.red(ideal[index]) - Color.red(given[index])); in verifySame() 53 error += Math.abs(Color.blue(ideal[index]) - Color.blue(given[index])); in verifySame() 54 error += Math.abs(Color.green(ideal[index]) - Color.green(given[index])); in verifySame() 57 Log.d(TAG, "Expected color " + Integer.toHexString(ideal[index]) + in verifySame() 58 " given color " + Integer.toHexString(given[index])); in verifySame()
|
D | WeightedPixelDifference.java | 45 int index = indexFromXAndY(x, y, stride, start); in inspectRegions() local 46 if (ideal[index] != regionColor) { in inspectRegions() 78 int index = indexFromXAndY(x, y,stride, offset); in verifySame() local 79 if (inspectRegions(ideal, index, stride, regionSize)) { in verifySame() 91 int index = indexFromXAndY(x, y, stride, offset); in verifySame() local 92 int idealColor = ideal[index]; in verifySame() 93 int givenColor = given[index]; in verifySame()
|
D | ExactComparer.java | 42 int index = indexFromXAndY(x, y, stride, offset); in verifySame() local 43 if (ideal[index] != given[index]) { in verifySame() 46 Log.d(TAG, "Expected color : " + Integer.toHexString(ideal[index]) + in verifySame() 47 " given color : " + Integer.toHexString(given[index])); in verifySame()
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | OpenGLES20ActivityOne.java | 89 public OpenGLES20View(Context context, int type, int index, CountDownLatch latch) { in OpenGLES20View() argument 94 if (index == 1) { in OpenGLES20View() 96 } else if(index == 2) { in OpenGLES20View() 98 } else if(index == 3) { in OpenGLES20View() 100 } else if(index == 4) { in OpenGLES20View() 102 } else if(index == 5) { in OpenGLES20View() 104 } else if(index == 6) { in OpenGLES20View() 106 } else if(index == 7) { in OpenGLES20View() 108 } else if(index == 8) { in OpenGLES20View() 110 } else if(index == 9) { in OpenGLES20View() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | AlphabetIndexerTest.java | 59 int index = ALPHABET.indexOf('A'); in testAlphabetIndexer() local 60 assertEquals(INDEX_OF_ARGENTINA, indexer.getPositionForSection(index)); in testAlphabetIndexer() 63 index = ALPHABET.indexOf('C'); in testAlphabetIndexer() 64 assertEquals(INDEX_OF_CHINA, indexer.getPositionForSection(index)); in testAlphabetIndexer() 67 index = ALPHABET.indexOf('T'); in testAlphabetIndexer() 68 assertEquals(INDEX_OF_UNITED_STATES, indexer.getPositionForSection(index)); in testAlphabetIndexer() 71 index = ALPHABET.indexOf('X'); in testAlphabetIndexer() 72 assertEquals(COUNTRIES_LIST.length, indexer.getPositionForSection(index)); in testAlphabetIndexer() 87 index = ALPHABET.indexOf('B'); in testAlphabetIndexer() 88 assertEquals(INDEX_OF_BERGKAMP, indexer.getPositionForSection(index)); in testAlphabetIndexer() [all …]
|
D | ExpandableListTester.java | 68 int index = 0; in testContextMenus() local 75 mListUtil.arrowScrollToSelectedPosition(index); in testContextMenus() 76 View headerChild = mExpandableListView.getChildAt(index in testContextMenus() 81 index++; in testContextMenus() 88 expandGroup(groupIndex, index); in testContextMenus() 93 mListUtil.arrowScrollToSelectedPosition(index); in testContextMenus() 94 View groupChild = mExpandableListView.getChildAt(index in testContextMenus() 99 index++; in testContextMenus() 104 mListUtil.arrowScrollToSelectedPosition(index); in testContextMenus() 106 View child = mExpandableListView.getChildAt(index in testContextMenus() [all …]
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/ |
D | Camera2MultiViewCtsActivity.java | 46 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/tests/tests/renderscript/src/android/renderscript/cts/ |
D | struct_array.rs | 11 for (uint32_t index = 0; index < 5; index++) { 12 _RS_ASSERT(s->i[index] == index);
|
/cts/tests/tests/hardware/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/suite/cts/deviceTests/opengl/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/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()
|
D | DspBufferDouble.java | 37 public void setValues(int index, double... values) { in setValues() argument 38 mData[index] = values[0]; in setValues() 42 public void setValue(int index, double value) { in setValue() argument 43 mData[index] = value; in setValue()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | EnumDevicesTest.java | 66 for(int index = 0; index < numOutputDevices; index++) { in test_getDevices() 67 assertTrue(deviceList[index].isSink()); in test_getDevices() 80 for(int index = 0; index < numInputDevices; index++) { in test_getDevices() 81 assertTrue(deviceList[index].isSource()); in test_getDevices() 96 for (int index = 0; index < deviceList.length; index++) { in test_devicesInfoFields() 97 AudioDeviceInfo deviceInfo = deviceList[index]; in test_devicesInfoFields()
|
D | IvfWriter.java | 154 private static void lay16Bits(byte[] array, int index, int value){ in lay16Bits() argument 155 array[index] = (byte) (value); in lay16Bits() 156 array[index + 1] = (byte) (value >> 8); in lay16Bits() 168 private static void lay32Bits(byte[] array, int index, int value){ in lay32Bits() argument 170 array[index + i] = (byte) (value >> (i * 8)); in lay32Bits() 183 private static void lay64bits(byte[] array, int index, long value){ in lay64bits() argument 185 array[index + i] = (byte) (value >> (i * 8)); in lay64bits()
|
D | EncoderTest.java | 155 MediaCodec codec, ByteBuffer[] inputBuffers, int index) { in queueInputBuffer() argument 156 ByteBuffer buffer = inputBuffers[index]; in queueInputBuffer() 164 codec.queueInputBuffer(index, 0 /* offset */, size, 0 /* timeUs */, 0); in queueInputBuffer() 171 int index, MediaCodec.BufferInfo info) { in dequeueOutputBuffer() argument 172 codec.releaseOutputBuffer(index, false /* render */); in dequeueOutputBuffer() 202 int index; in testEncoder() local 205 index = codec.dequeueInputBuffer(kTimeoutUs /* timeoutUs */); in testEncoder() 207 if (index != MediaCodec.INFO_TRY_AGAIN_LATER) { in testEncoder() 210 index, in testEncoder() 223 codec, codecInputBuffers, index); in testEncoder() [all …]
|
D | RoutingTest.java | 89 for (int index = 0; index < deviceList.length; index++) { in test_audioTrack_preferredDevice() 90 assertTrue(audioTrack.setPreferredDevice(deviceList[index])); in test_audioTrack_preferredDevice() 91 assertTrue(audioTrack.getPreferredDevice() == deviceList[index]); in test_audioTrack_preferredDevice() 214 for (int index = 0; index < deviceList.length; index++) { in test_audioRecord_preferredDevice() 215 assertTrue(audioRecord.setPreferredDevice(deviceList[index])); in test_audioRecord_preferredDevice() 216 assertTrue(audioRecord.getPreferredDevice() == deviceList[index]); in test_audioRecord_preferredDevice() 241 for (int index = 0; index < mBufferSize; index++) { in AudioTrackFiller() 242 mAudioData[index] = 0; in AudioTrackFiller()
|
/cts/suite/cts/deviceTests/browserbench/assets/octane/ |
D | gbemu.js | 233 var index = 0; 239 while (index < dataLength) { 241 …bytes = [data.charCodeAt(index++) & 0xFF, data.charCodeAt(index++) & 0xFF, data.charCodeAt(index++… 270 var index = 0; 271 while (index < dataLength) { 273 …ata.charAt(index++)), fromBase64.indexOf(data.charAt(index++)), fromBase64.indexOf(data.charAt(ind… 299 for (var index = 0; index < length; ++index) { 300 if (typeof arrayIn[index] == "number") { 301 binString += String.fromCharCode(arrayIn[index]); 310 for (var index = 0; index < length;) { [all …]
|
D | base.js | 115 var index = 0; 117 while (continuation || index < length) { 121 var suite = suites[index++]; 244 var index = 0; 253 if (index < length) { 255 suite.benchmarks[index].Setup(); 268 data = suite.RunSingleBenchmark(suite.benchmarks[index], data); 279 suite.benchmarks[index++].TearDown();
|
/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/uirendering/src/android/uirendering/cts/bitmapverifiers/ |
D | SamplePointVerifier.java | 48 int index = indexFromXAndY(x, y, stride, offset); in verify() local 49 if (!verifyPixel(bitmap[index], mExpectedColors[i])) { in verify() 52 Integer.toHexString(bitmap[index])); in verify() 53 differenceMap[index] = FAIL_COLOR; in verify() 56 differenceMap[index] = PASS_COLOR; in verify()
|
D | PerPixelBitmapVerifier.java | 61 int index = indexFromXAndY(x, y, stride, offset); in verify() local 62 if (!verifyPixel(x, y, bitmap[index])) { in verify() 65 + " received : " + Integer.toHexString(bitmap[index]) in verify() 69 differenceMap[index] = FAIL_COLOR; in verify() 71 differenceMap[index] = PASS_COLOR; in verify()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | Common.java | 85 double index = (double) i / prefixLength * (prefixArray.length - 1); in prefix() local 86 samplePrefixArray[i] = (1 - index + Math.floor(index)) * prefixArray[(int) Math.floor(index)] in prefix() 87 + (1 + index - Math.ceil(index)) * prefixArray[(int) Math.ceil(index)]; in prefix()
|
D | TrivialPlayer.java | 58 for (int index = 0; index < mBufferSize; index++) { in TrivialPlayer() 62 mAudioData[index] = in TrivialPlayer()
|
/cts/tools/dasm/src/java_cup/ |
D | lalr_state.java | 150 public int index() {return _index;} in index() method in lalr_state 171 System.out.println("lalr_state [" + st.index() + "] {"); in dump_state() 462 our_act_row = act_table.under_state[index()]; in build_table_entries() 463 our_red_row = reduce_table.under_state[index()]; in build_table_entries() 498 if (itm.the_production().index() < in build_table_entries() 499 ((reduce_action)other_act).reduce_with().index()) in build_table_entries() 520 if ( our_act_row.under_term[sym.index()].kind() == in build_table_entries() 523 our_act_row.under_term[sym.index()] = act; in build_table_entries() 531 our_act_row.under_term[sym.index()] = act; in build_table_entries() 537 our_red_row.under_non_term[sym.index()] = trans.to_state(); in build_table_entries() [all …]
|