/cts/libs/json/src/com/android/json/stream/ |
D | JsonReader.java | 188 private int pos = 0; field in JsonReader 582 pos--; in nextInArray() 586 pos--; in nextInArray() 604 pos--; in nextInObject() 629 pos--; in nextInObject() 650 if ((pos < limit || fillBuffer(1)) && buffer[pos] == '>') { in objectValue() 651 pos++; in objectValue() 680 pos--; in nextValue() 691 if (limit != pos) { in fillBuffer() 692 limit -= pos; in fillBuffer() [all …]
|
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/db/ |
D | Field.java | 36 static Field newInstance(int pos, String name, int fieldType) { in newInstance() argument 39 return new IntegerField(pos, name); in newInstance() 41 return new StringField(pos, name); in newInstance() 47 private Field(int pos, String name, int fieldType) { in Field() argument 48 this.mPos = pos; in Field() 120 IntegerField(int pos, String name) { in IntegerField() argument 121 super(pos, name, Cursor.FIELD_TYPE_INTEGER); in IntegerField() 140 StringField(int pos, String name) { in StringField() argument 141 super(pos, name, Cursor.FIELD_TYPE_STRING); in StringField()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | PathMotionTest.java | 38 float[] pos = new float[2]; in assertPathMatches() local 42 expectedMeasure.getPosTan(along, pos, null); in assertPathMatches() 43 float expectedX = pos[0]; in assertPathMatches() 44 float expectedY = pos[1]; in assertPathMatches() 46 pathMeasure.getPosTan(along, pos, null); in assertPathMatches() 48 expectedX, pos[0], 0.01f); in assertPathMatches() 50 expectedY, pos[1], 0.01f); in assertPathMatches()
|
D | PropagationTest.java | 58 int[] pos = new int[2]; in testCircularPropagation() local 59 redValues.view.getLocationOnScreen(pos); in testCircularPropagation() 60 pos[0] += redValues.view.getWidth() / 2; in testCircularPropagation() 61 pos[1] += redValues.view.getHeight() / 2; in testCircularPropagation() 62 assertEquals(pos[0], propagation.getViewX(redValues)); in testCircularPropagation() 63 assertEquals(pos[1], propagation.getViewY(redValues)); in testCircularPropagation()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
D | camera_response.rsh | 95 const int pos = (int)(scaled_value); 96 const float delta = scaled_value - pos; 97 return lut[pos] + delta * (lut[pos + 1] - lut[pos]); 102 const int pos = (int)(scaled_value); 103 const float delta = scaled_value - pos; 104 float valPos = rsGetElementAt_float(g_lut_apply_crf_float, pos); 105 float valPosPlus = rsGetElementAt_float(g_lut_apply_crf_float, pos+1); 111 const int pos = (int)(scaled_value); 112 const float delta = scaled_value - pos; 113 float valPos = rsGetElementAt_float(g_lut_remove_crf_float, pos); [all …]
|
D | camera_response_fast.rsh | 53 const int pos = (int)(scaled_value); 54 const float delta = scaled_value - pos; 55 float valPos = rsGetElementAt_float(g_lut_apply_crf_float, pos); 56 float valPosPlus = rsGetElementAt_float(g_lut_apply_crf_float, pos+1); 62 const int pos = (int)(scaled_value); 63 const float delta = scaled_value - pos; 64 float valPos = rsGetElementAt_float(g_lut_remove_crf_float, pos); 65 float valPosPlus = rsGetElementAt_float(g_lut_remove_crf_float, pos+1);
|
/cts/tools/vm-tests-tf/build/src/util/build/ |
D | FileUtil.java | 31 int pos = 0; in readFile() local 32 while (pos != tmp.length) { in readFile() 33 int read = fis.read(tmp, pos, tmp.length - pos); in readFile() 37 pos += read; in readFile()
|
/cts/tests/tests/classloaderfactory/src/android/app/classloaderfactory/cts/ |
D | InMemoryDexClassLoaderFactory.java | 48 for (int pos = 0; pos < zipEntrySize;) { in instantiateClassLoader() 49 int res = zipIS.read(buf.array(), pos, zipEntrySize); in instantiateClassLoader() 53 pos += res; in instantiateClassLoader() 54 if (pos > zipEntrySize) { in instantiateClassLoader()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | RsAllocationCopyTest.java | 297 int pos = i * width + j; in test_RsAllocationCopy2D_Byte() local 300 if (inArray[pos] != outArray[pos]) { in test_RsAllocationCopy2D_Byte() 305 if (outArray[pos] != 0) { in test_RsAllocationCopy2D_Byte() 353 int pos = i * width + j; in test_RsAllocationCopy2D_Short() local 356 if (inArray[pos] != outArray[pos]) { in test_RsAllocationCopy2D_Short() 361 if (outArray[pos] != 0) { in test_RsAllocationCopy2D_Short() 409 int pos = i * width + j; in test_RsAllocationCopy2D_Int() local 412 if (inArray[pos] != outArray[pos]) { in test_RsAllocationCopy2D_Int() 417 if (outArray[pos] != 0) { in test_RsAllocationCopy2D_Int() 465 int pos = i * width + j; in test_RsAllocationCopy2D_Float() local [all …]
|
D | DebugContext.java | 254 int pos = i * AC.Width + j; in testDebugContextRsAllocationCopy2D_Short_Normal() local 257 if (inArray[pos] != outArray[pos]) { in testDebugContextRsAllocationCopy2D_Short_Normal() 262 if (outArray[pos] != 0) { in testDebugContextRsAllocationCopy2D_Short_Normal()
|
/cts/suite/audio_quality/lib/src/ |
D | StringUtil.cpp | 42 android::String8 StringUtil::substr(const android::String8& str, size_t pos, size_t n) in substr() argument 46 if (pos >= l) { in substr() 50 if ((pos + n) > l) { in substr() 51 n = l - pos; in substr() 53 android::String8 result(str.string() + pos, n); in substr()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | TestPagingContentProvider.java | 148 private void fillRow(RowBuilder row, int pos) { in fillRow() argument 149 row.add(COLUMN_POS, pos); in fillRow() 150 row.add(COLUMN_A, "--aaa--" + pos); in fillRow() 151 row.add(COLUMN_B, "**bbb**" + pos); in fillRow() 152 row.add(COLUMN_C, "^^ccc^^" + pos); in fillRow() 153 row.add(COLUMN_D, "##ddd##" + pos); in fillRow()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | ComponentNameUtils.java | 49 final int pos = className.lastIndexOf('.'); in getLogTag() local 50 return pos >= 0 ? className.substring(pos + 1) : className; in getLogTag()
|
/cts/tests/tests/graphics/assets/ |
D | passthrough_vsh.glsl | 4 layout (location = 0) in vec4 pos; 9 gl_Position = pos;
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | WidgetTransitionTest.java | 295 final int[] pos = new int[2]; in getSourceBounds() local 296 v.getLocationOnScreen(pos); in getSourceBounds() 297 return new Rect(pos[0], pos[1], pos[0] + v.getWidth(), pos[1] + v.getHeight()); in getSourceBounds()
|
/cts/tests/tests/graphics/assets/shaders/ |
D | tri.vert | 21 layout (location = 0) in vec4 pos; 23 gl_Position = pos;
|
/cts/tests/openglperf2/jni/reference/scene/flocking/ |
D | FlockingScene.cpp | 156 Vector2D* pos = &(b->mPosition); in updateSceneGraphs() local 160 float x = pos->mX / (LIMIT_X * BOID_SCALE) * mDisplayRatio; in updateSceneGraphs() 161 float y = pos->mY / (LIMIT_Y * BOID_SCALE); in updateSceneGraphs()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | BleScannerHardwareScanFilterActivity.java | 159 public View getView(int pos, View view, ViewGroup parent) { in getView() argument 164 String key = mKeys.get(pos); in getView() 165 String value = getItem(pos).toString(); in getView()
|
/cts/tests/tests/media/libaudiojni/ |
D | audio-track-native.cpp | 241 SLuint32 pos; in getPositionInMsec() local 242 SLresult res = (*mPlay)->GetPosition(mPlay, &pos); in getPositionInMsec() 248 *position = pos; in getPositionInMsec() 498 int64_t pos; in Java_android_media_cts_AudioTrackNative_nativeGetPositionInMsec() local 499 status_t res = track->getPositionInMsec(&pos); in Java_android_media_cts_AudioTrackNative_nativeGetPositionInMsec() 508 nPostition[0] = (jlong)pos; in Java_android_media_cts_AudioTrackNative_nativeGetPositionInMsec()
|
D | audio-record-native.cpp | 275 SLuint32 pos; in getPositionInMsec() local 276 SLresult res = (*mRecord)->GetPosition(mRecord, &pos); in getPositionInMsec() 282 *position = pos; in getPositionInMsec() 581 int64_t pos; in Java_android_media_cts_AudioRecordNative_nativeGetPositionInMsec() local 582 status_t res = record->getPositionInMsec(&pos); in Java_android_media_cts_AudioRecordNative_nativeGetPositionInMsec() 591 nPostition[0] = (jlong)pos; in Java_android_media_cts_AudioRecordNative_nativeGetPositionInMsec()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaPlayerTest.java | 232 int pos = mp.getCurrentPosition(); in testPlayAudioFromDataURI() local 233 assertTrue(pos >= 0); in testPlayAudioFromDataURI() 234 assertTrue(pos < mp3Duration - seekDuration); in testPlayAudioFromDataURI() 236 mp.seekTo(pos + seekDuration); in testPlayAudioFromDataURI() 237 assertEquals(pos + seekDuration, mp.getCurrentPosition(), tolerance); in testPlayAudioFromDataURI() 296 int pos = mp.getCurrentPosition(); 297 assertTrue(pos >= 0); 298 assertTrue(pos < mp3Duration - seekDuration); 300 mp.seekTo(pos + seekDuration); 301 assertEquals(pos + seekDuration, mp.getCurrentPosition(), tolerance); [all …]
|
D | AudioTrackTest.java | 557 int pos; in testPlaybackHeadPositionAfterStop() local 560 pos = track.getPlaybackHeadPosition(); in testPlaybackHeadPositionAfterStop() 562 } while((pos != 0) && (count < TEST_LOOP_CNT)); in testPlaybackHeadPositionAfterStop() 563 log(TEST_NAME, "position =" + pos + ", read count ="+count); in testPlaybackHeadPositionAfterStop() 564 assertTrue(TEST_NAME, pos == 0); in testPlaybackHeadPositionAfterStop() 592 int pos = track.getPlaybackHeadPosition(); in testPlaybackHeadPositionAfterPause() local 593 log(TEST_NAME, "position =" + pos); in testPlaybackHeadPositionAfterPause() 594 assertTrue(TEST_NAME, pos > 0); in testPlaybackHeadPositionAfterPause() 623 int pos = track.getPlaybackHeadPosition(); in testPlaybackHeadPositionAfterFlushAndPlay() local 624 log(TEST_NAME, "position after pause =" + pos); in testPlaybackHeadPositionAfterFlushAndPlay() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | PathMeasureTest.java | 62 float[] pos = { 1f }; in testGetPosTanArraysTooSmall() local 65 mPathMeasure.getPosTan(distance, pos, tan); in testGetPosTanArraysTooSmall()
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | DatabaseAsserts.java | 203 final int pos = cursor.getPosition(); in assertCursorValuesMatchExactly() local 204 if (used.get(pos)) continue; in assertCursorValuesMatchExactly() 207 used.set(pos); in assertCursorValuesMatchExactly()
|
/cts/hostsidetests/sustainedperf/shadertoy_android/jni/ |
D | shadertoy_shader.cpp | 86 attribute vec2 pos; in CreateShader() local 88 gl_Position = vec4(pos.xy, 0.0, 1.0); in CreateShader()
|