Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 54) sorted by relevance

123

/cts/libs/json/src/com/android/json/stream/
DJsonReader.java188 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/
DField.java36 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/
DPathMotionTest.java38 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()
DPropagationTest.java58 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/
Dcamera_response.rsh95 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 …]
Dcamera_response_fast.rsh53 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/
DFileUtil.java31 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/
DInMemoryDexClassLoaderFactory.java48 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/
DRsAllocationCopyTest.java297 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 …]
DDebugContext.java254 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/
DStringUtil.cpp42 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/
DTestPagingContentProvider.java148 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/
DComponentNameUtils.java49 final int pos = className.lastIndexOf('.'); in getLogTag() local
50 return pos >= 0 ? className.substring(pos + 1) : className; in getLogTag()
/cts/tests/tests/graphics/assets/
Dpassthrough_vsh.glsl4 layout (location = 0) in vec4 pos;
9 gl_Position = pos;
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DWidgetTransitionTest.java295 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/
Dtri.vert21 layout (location = 0) in vec4 pos;
23 gl_Position = pos;
/cts/tests/openglperf2/jni/reference/scene/flocking/
DFlockingScene.cpp156 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/
DBleScannerHardwareScanFilterActivity.java159 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/
Daudio-track-native.cpp241 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()
Daudio-record-native.cpp275 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/
DMediaPlayerTest.java232 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 …]
DAudioTrackTest.java557 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/
DPathMeasureTest.java62 float[] pos = { 1f }; in testGetPosTanArraysTooSmall() local
65 mPathMeasure.getPosTan(distance, pos, tan); in testGetPosTanArraysTooSmall()
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DDatabaseAsserts.java203 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/
Dshadertoy_shader.cpp86 attribute vec2 pos; in CreateShader() local
88 gl_Position = vec4(pos.xy, 0.0, 1.0); in CreateShader()

123