Home
last modified time | relevance | path

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

123

/development/tools/winscope/src/parsers/screen_recording/
Dparser_screen_recording.ts105 let pos = ArrayUtils.searchSubarray(
109 if (pos === undefined) {
112 pos += ParserScreenRecording.WINSCOPE_META_MAGIC_STRING.length;
113 return pos;
118 pos: number,
120 if (pos + 4 > videoData.length) {
126 ArrayUtils.toUintLittleEndian(videoData, pos, pos + 4),
128 pos += 4;
129 return [pos, version];
134 pos: number,
[all …]
Dparser_screen_recording_legacy.ts64 let pos = ArrayUtils.searchSubarray(
68 if (pos === undefined) {
71 pos += ParserScreenRecordingLegacy.WINSCOPE_META_MAGIC_STRING.length;
72 return pos;
77 pos: number,
79 if (pos + 4 > videoData.length) {
85 ArrayUtils.toUintLittleEndian(videoData, pos, pos + 4),
87 pos += 4;
88 return [pos, framesCount];
93 pos: number,
[all …]
/development/tools/bugreport/src/com/android/bugreport/util/
DLines.java39 public int pos; field in Lines
90 this.pos = min; in Lines()
97 return pos < mMax; in hasNext()
105 if (pos >= mMin && pos < mMax) { in next()
106 return this.mList.get(pos++); in next()
116 pos--; in rewind()
122 public void rewind(int pos) { in rewind() argument
123 this.pos = pos; in rewind()
DArgParser.java65 public int pos() { in pos() method in ArgParser
/development/tools/bugreport/src/com/android/bugreport/bugreport/
DBugreportParser.java96 int pos; in parse() local
101 pos = lines.pos; in parse()
106 mMetadataParser.parseHeader(lines.copy(pos, lines.pos)); in parse()
121 parseSection(section, lines.copy(pos, lines.pos-1), command, durationMs); in parse()
122 pos = lines.pos; // for the footer in parse()
133 mMetadataParser.parseFooter(lines.copy(pos, lines.pos-1), durationMs); in parse()
144 parseSection(section, lines.copy(pos, lines.pos-1), null, -1); in parse()
148 pos = lines.pos; in parse()
/development/tools/winscope/src/trace_processor/
Dquery_result.ts77 export function decodeInt64Varint(buf: Uint8Array, pos: number): bigint {
82 if (buf.length - pos > 4) { // fast route (lo)
85 lo = (lo | (buf[pos] & 127) << i * 7) >>> 0;
86 if (buf[pos++] < 128) {
91 lo = (lo | (buf[pos] & 127) << 28) >>> 0;
92 hi = (hi | (buf[pos] & 127) >> 4) >>> 0;
93 if (buf[pos++] < 128) {
99 if (pos >= buf.length) {
103 lo = (lo | (buf[pos] & 127) << i * 7) >>> 0;
104 if (buf[pos++] < 128) {
[all …]
Dproto_ring_buffer.ts125 let pos = dataStart; variable
126 if (pos >= dataEnd) return undefined;
127 const tag = data[pos++]; // Assume one-byte tag. constant
130 `RPC framing error, unexpected tag ${tag} @ offset ${pos - 1}`);
135 if (pos >= dataEnd) {
138 const val = data[pos++]; constant
147 const end = pos + len;
154 return data.subarray(pos, end);
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DTextAlign.java57 float[] pos = new float[n * 2]; in buildTextPositions() local
60 pos[i*2 + 0] = accumulatedX; in buildTextPositions()
61 pos[i*2 + 1] = y; in buildTextPositions()
64 return pos; in buildTextPositions()
93 float[] pos = mPos; in onDraw() local
118 for (int i = 0; i < pos.length/2; i++) { in onDraw()
119 canvas.drawLine(pos[i*2+0], pos[i*2+1]-DY, in onDraw()
120 pos[i*2+0], pos[i*2+1]+DY*2, p); in onDraw()
125 canvas.drawPosText(POSTEXT, pos, p); in onDraw()
129 canvas.drawPosText(POSTEXT, pos, p); in onDraw()
[all …]
DUnicodeChart.java63 float[] pos = mPos; in SampleView() local
68 pos[index++] = x; in SampleView()
69 pos[index++] = row * YMUL + YBASE; in SampleView()
/development/vndk/tools/header-checker/src/utils/
Dstring_utils.cpp58 std::string::size_type pos = 0; in Split() local
60 pos = s.find_first_not_of(delim_chars, pos); in Split()
61 if (pos == std::string::npos) { in Split()
65 std::string::size_type end = s.find_first_of(delim_chars, pos + 1); in Split()
67 res.push_back(s.substr(pos)); in Split()
71 res.push_back(s.substr(pos, end - pos)); in Split()
72 pos = end + 1; in Split()
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/
DMediaIDHelper.java69 int pos = mediaID.indexOf(LEAF_SEPARATOR); in extractMusicIDFromMediaID() local
70 if (pos >= 0) { in extractMusicIDFromMediaID()
71 return mediaID.substring(pos+1); in extractMusicIDFromMediaID()
85 int pos = mediaID.indexOf(LEAF_SEPARATOR); in getHierarchy() local
86 if (pos >= 0) { in getHierarchy()
87 mediaID = mediaID.substring(0, pos); in getHierarchy()
/development/vndk/tools/sourcedr/blueprint/
Dblueprint.py120 def __init__(self, buf, pos, message): argument
124 self.line, self.column = Lexer.compute_line_column(buf, pos)
182 def compute_line_column(buf, pos): argument
186 prior = buf[0:pos]
189 return (1, pos + 1)
190 return (prior.count('\n') + 1, pos - newline_pos)
249 pos = offset + 1
251 while pos < buf_len:
253 match = cls.UNICODE_CHARS_PATTERN.match(buf, pos)
256 pos = match.end()
[all …]
/development/tools/bugreport/src/com/android/bugreport/
DOptions.java86 return new Options(args, argParser.pos(), in parseArgs()
92 return new Options(args, argParser.pos(), in parseArgs()
98 return new Options(args, argParser.pos(), in parseArgs()
103 return new Options(args, argParser.pos(), in parseArgs()
108 return new Options(args, argParser.pos(), in parseArgs()
/development/samples/ApiDemos/src/com/example/android/apis/os/
DMorseCodeConverter.java118 int pos = 1; in pattern() local
124 result[pos] = WORD_GAP; in pattern()
125 pos++; in pattern()
130 result[pos] = LETTER_GAP; in pattern()
131 pos++; in pattern()
135 System.arraycopy(letter, 0, result, pos, letter.length); in pattern()
136 pos += letter.length; in pattern()
/development/samples/Spinner/src/com/android/example/spinner/
DSpinnerActivity.java190 public void onItemSelected(AdapterView<?> parent, View v, int pos, long row) { in onItemSelected() argument
192 SpinnerActivity.this.mPos = pos; in onItemSelected()
193 SpinnerActivity.this.mSelection = parent.getItemAtPosition(pos).toString(); in onItemSelected()
363 public void setSpinnerPosition(int pos) { in setSpinnerPosition() argument
364 this.mPos = pos; in setSpinnerPosition()
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/
DSessionManager.java140 public PlaylistItem seek(String iid, long pos) { in seek() argument
142 log("seek: iid=" + iid +", pos=" + pos); in seek()
149 if (pos != item.getPosition()) { in seek()
150 item.setPosition(pos); in seek()
238 public void suspend(long pos) { in suspend() argument
245 log("suspend: item=" + item + ", pos=" + pos); in suspend()
251 item.setPosition(pos); in suspend()
DPlaylistItem.java58 public void setPosition(long pos) { in setPosition() argument
59 mContentPosition = pos; in setPosition()
/development/tools/winscope/src/trace/
Dtrace.ts268 const pos = this.clampEntryToSliceBounds(
274 if (pos === undefined || pos === this.entriesRange.end) {
278 const entry = this.getEntry(pos - this.entriesRange.start);
291 const pos = this.clampEntryToSliceBounds(
294 if (pos === undefined || pos === this.entriesRange.end) {
298 const entry = this.getEntry(pos - this.entriesRange.start);
394 callback: (pos: TraceEntryLazy<T>, index: RelativeEntryIndex) => void,
/development/samples/browseable/WearDrawers/src/com.example.android.wearable.wear.weardrawers/
DMainActivity.java197 public String getItemText(int pos) { in getItemText() argument
198 return mSolarSystem.get(pos).getName(); in getItemText()
202 public Drawable getItemDrawable(int pos) { in getItemDrawable() argument
203 String navigationIcon = mSolarSystem.get(pos).getNavigationIcon(); in getItemDrawable()
/development/tools/winscope/src/parsers/
Draw_data_utils_test.ts83 const pos = TreeNodeUtils.makePositionNode(0, 0); constant
84 expect(RawDataUtils.isPosition(pos)).toBeTrue();
85 expect(RawDataUtils.isRect(pos)).toBeFalse();
/development/vndk/tools/sourcedr/ninja/
Dninja.py254 def match(self, buf, pos): argument
255 match = self._matcher.match(buf, pos)
898 pos = len(s)
900 while count > 0 and pos > 0 and s[pos - 1] == b'\0':
901 pos -= 1
903 return intern(s[0:pos])
907 pos = len(s)
909 while count > 0 and pos > 0 and s[pos - 1] == 0:
910 pos -= 1
912 return intern(s[0:pos].decode(encoding))
/development/samples/AppNavigation/src/com/example/android/appnavigation/app/
DAppNavHomeActivity.java45 protected void onListItemClick(ListView lv, View v, int pos, long id) { in onListItemClick() argument
46 SampleInfo info = (SampleInfo) getListAdapter().getItem(pos); in onListItemClick()
/development/samples/browseable/BasicAccessibility/src/com.example.android.basicaccessibility/
DDialView.java229 private float[] computeXYForPosition(final int pos, final float radius) { in computeXYForPosition() argument
232 Double angle = startAngle + (pos * (Math.PI / 4)); in computeXYForPosition()
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/
DMidiPortSelector.java70 int pos, long id) { in MidiPortSelector()
71 mCurrentWrapper = mAdapter.getItem(pos); in MidiPortSelector()
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/
DMidiPortSelector.java70 int pos, long id) { in MidiPortSelector()
71 mCurrentWrapper = mAdapter.getItem(pos); in MidiPortSelector()

123