Home
last modified time | relevance | path

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

12

/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/tools/dasm/src/java_cup/
Dproduction.java358 int pos; in action_translate() local
382 for (pos = id_start = 0; pos <= len; pos++) in action_translate()
388 if (!is_id_char(buffer[pos])) in action_translate()
391 id_str = new String(buffer, id_start, pos - id_start); in action_translate()
396 if (buffer[pos] != '\0') in action_translate()
397 result.append(buffer, pos, 1); in action_translate()
410 if (is_id_start(buffer[pos])) in action_translate()
414 id_start = pos; in action_translate()
419 if (buffer[pos] != '\0') in action_translate()
420 result.append(buffer, pos, 1); in action_translate()
[all …]
Dlalr_item.java42 public lalr_item(production prod, int pos, terminal_set look) in lalr_item() argument
45 super(prod, pos); in lalr_item()
176 int pos; in calc_lookahead() local
189 for (pos = dot_pos()+1; pos < the_production().rhs_length(); pos++) in calc_lookahead()
191 part = the_production().rhs(pos); in calc_lookahead()
241 for (int pos = dot_pos() + 1; pos < the_production().rhs_length(); pos++) in lookahead_visible()
243 part = the_production().rhs(pos); in lookahead_visible()
Dlr_item_core.java33 public lr_item_core(production prod, int pos) throws internal_error in lr_item_core() argument
44 if (pos < 0 || pos > _the_production.rhs_length()) in lr_item_core()
48 _dot_pos = pos; in lr_item_core()
51 _core_hash_cache = 13*_the_production.hashCode() + pos; in lr_item_core()
/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/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 …]
/cts/tools/dasm/src/dasm/
DUtils.java125 int pos = name.lastIndexOf('/'); in getClassFieldFromString() local
127 if (pos == -1) { in getClassFieldFromString()
131 result[0] = name.substring(0, pos); in getClassFieldFromString()
132 result[1] = name.substring(pos + 1); in getClassFieldFromString()
/cts/tests/tests/widget/src/android/widget/cts/util/
DListUtil.java44 public final void setSelectedPosition(final int pos) { in setSelectedPosition() argument
47 mListView.setSelection(pos); in setSelectedPosition()
/cts/tools/signature-tools/src/signature/converter/dex/
DGenericSignatureParser.java110 private int pos; field in GenericSignatureParser
587 if (pos < buffer.length) { in scanSymbol()
588 symbol = buffer[pos]; in scanSymbol()
589 pos++; in scanSymbol()
627 char ch = buffer[pos]; in scanIdentifier()
630 identBuf.append(buffer[pos]); in scanIdentifier()
631 pos++; in scanIdentifier()
637 } while (pos != buffer.length); in scanIdentifier()
/cts/tests/tests/net/src/android/net/wifi/cts/
DWifiManagerTest.java333 int pos = findConfiguredNetworks(SSID1, wifiConfiguredNetworks); in testWifiManagerNetWork() local
334 if (notExist != pos) { in testWifiManagerNetWork()
335 wifiConfiguration = wifiConfiguredNetworks.get(pos); in testWifiManagerNetWork()
338 pos = findConfiguredNetworks(SSID1, wifiConfiguredNetworks); in testWifiManagerNetWork()
339 assertEquals(notExist, pos); in testWifiManagerNetWork()
349 pos = findConfiguredNetworks(SSID1, wifiConfiguredNetworks); in testWifiManagerNetWork()
350 assertTrue(notExist != pos); in testWifiManagerNetWork()
355 wifiConfiguration = mWifiManager.getConfiguredNetworks().get(pos); in testWifiManagerNetWork()
360 wifiConfiguration = mWifiManager.getConfiguredNetworks().get(pos); in testWifiManagerNetWork()
364 wifiConfiguration = wifiConfiguredNetworks.get(pos); in testWifiManagerNetWork()
/cts/tools/signature-tools/test/signature/converter/doclet/
DDocletTestConverter.java81 int pos = filename.indexOf("."); in putSource() local
82 while(pos > 0) { in putSource()
83 directory = directory + filename.substring(0, pos) + separator; in putSource()
84 filename = filename.substring(pos+1); in putSource()
85 pos = filename.indexOf("."); in putSource()
/cts/suite/cts/deviceTests/browserbench/assets/octane/
Draytrace.js202 initialize : function(pos, color, intensity) { argument
203 this.position = pos;
285 initialize : function(pos, dir) { argument
286 this.position = pos;
420 initialize : function(pos, radius, material) { argument
422 this.position = pos;
472 initialize : function(pos, d, material) { argument
473 this.position = pos;
552 initialize : function(pos, lookAt, up) { argument
553 this.position = pos;
[all …]
Dnavier-stokes.js229 var pos = j * rowSize;
231 var x = i - Wdt0 * u[++pos];
232 var y = j - Hdt0 * v[pos];
251 …d[pos] = s0 * (t0 * d0[i0 + row1] + t1 * d0[i0 + row2]) + s1 * (t0 * d0[i1 + row1] + t1 * d0[i1 + …
/cts/suite/audio_quality/lib/include/
DStringUtil.h34 static android::String8 substr(const android::String8& str, size_t pos, size_t n);
/cts/suite/cts/deviceTests/opengl/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/graphics/src/android/graphics/cts/
DPathMeasureTest.java51 float[] pos = { 1f }; in testGetPosTan() local
54 mPathMeasure.getPosTan(distance, pos, tan); in testGetPosTan()
/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()
495 int64_t pos; in Java_android_media_cts_AudioTrackNative_nativeGetPositionInMsec() local
496 status_t res = track->getPositionInMsec(&pos); in Java_android_media_cts_AudioTrackNative_nativeGetPositionInMsec()
505 nPostition[0] = (jlong)pos; in Java_android_media_cts_AudioTrackNative_nativeGetPositionInMsec()
Daudio-record-native.cpp253 SLuint32 pos; in getPositionInMsec() local
254 SLresult res = (*mRecord)->GetPosition(mRecord, &pos); in getPositionInMsec()
260 *position = pos; in getPositionInMsec()
552 int64_t pos; in Java_android_media_cts_AudioRecordNative_nativeGetPositionInMsec() local
553 status_t res = record->getPositionInMsec(&pos); in Java_android_media_cts_AudioRecordNative_nativeGetPositionInMsec()
562 nPostition[0] = (jlong)pos; in Java_android_media_cts_AudioRecordNative_nativeGetPositionInMsec()
/cts/tests/uiautomator/test-apps/CtsUiAutomatorApp/src/com/android/cts/uiautomator/
DTestItems.java108 public static TestItem getTest(int pos) { in getTest() argument
109 return ITEMS.get(pos); in getTest()
/cts/tests/tests/media/src/android/media/cts/
DMediaPlayerTest.java166 int pos = mp.getCurrentPosition(); in testPlayAudioFromDataURI() local
167 assertTrue(pos >= 0); in testPlayAudioFromDataURI()
168 assertTrue(pos < mp3Duration - seekDuration); in testPlayAudioFromDataURI()
170 mp.seekTo(pos + seekDuration); in testPlayAudioFromDataURI()
171 assertEquals(pos + seekDuration, mp.getCurrentPosition(), tolerance); in testPlayAudioFromDataURI()
218 int pos = mp.getCurrentPosition();
219 assertTrue(pos >= 0);
220 assertTrue(pos < mp3Duration - seekDuration);
222 mp.seekTo(pos + seekDuration);
223 assertEquals(pos + seekDuration, mp.getCurrentPosition(), tolerance);
[all …]
DAudioTrackTest.java480 int pos; in testPlaybackHeadPositionAfterStop() local
483 pos = track.getPlaybackHeadPosition(); in testPlaybackHeadPositionAfterStop()
485 } while((pos != 0) && (count < TEST_LOOP_CNT)); in testPlaybackHeadPositionAfterStop()
486 log(TEST_NAME, "position =" + pos + ", read count ="+count); in testPlaybackHeadPositionAfterStop()
487 assertTrue(TEST_NAME, pos == 0); in testPlaybackHeadPositionAfterStop()
514 int pos = track.getPlaybackHeadPosition(); in testPlaybackHeadPositionAfterPause() local
515 log(TEST_NAME, "position =" + pos); in testPlaybackHeadPositionAfterPause()
516 assertTrue(TEST_NAME, pos > 0); in testPlaybackHeadPositionAfterPause()
544 int pos = track.getPlaybackHeadPosition(); in testPlaybackHeadPositionAfterFlushAndPlay() local
545 log(TEST_NAME, "position after pause =" + pos); in testPlaybackHeadPositionAfterFlushAndPlay()
[all …]
/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/tests/tests/widget/src/android/widget/cts/
DMediaControllerTest.java291 public void seekTo(int pos) { in seekTo() argument
292 mPosition = pos; in seekTo()
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/helpers/
DCamera2Focuser.java33 import com.android.ex.camera2.pos.AutoFocusStateMachine;
34 import com.android.ex.camera2.pos.AutoFocusStateMachine.AutoFocusStateListener;

12