/development/tools/bugreport/src/com/android/bugreport/util/ |
D | Lines.java | 39 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()
|
D | ArgParser.java | 65 public int pos() { in pos() method in ArgParser
|
/development/vndk/tools/header-checker/src/utils/ |
D | string_utils.cpp | 57 std::string::size_type pos = 0; in Split() local 59 pos = s.find_first_not_of(delim_chars, pos); in Split() 60 if (pos == std::string::npos) { in Split() 64 std::string::size_type end = s.find_first_of(delim_chars, pos + 1); in Split() 66 res.push_back(s.substr(pos)); in Split() 70 res.push_back(s.substr(pos, end - pos)); in Split() 71 pos = end + 1; in Split()
|
D | config_file.cpp | 58 std::string::size_type pos = line.rfind(']'); in ParseLine() local 59 if (pos == std::string::npos) { in ParseLine() 63 std::string_view section_name = line.substr(1, pos - 1); in ParseLine() 69 std::string::size_type pos = line.find('='); in ParseLine() local 70 if (pos == std::string::npos) { in ParseLine() 76 std::string_view key = Trim(line.substr(0, pos)); in ParseLine() 77 std::string_view value = Trim(line.substr(pos + 1)); in ParseLine()
|
/development/tools/bugreport/src/com/android/bugreport/bugreport/ |
D | BugreportParser.java | 96 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/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | TextAlign.java | 57 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 …]
|
D | UnicodeChart.java | 63 float[] pos = mPos; in SampleView() local 68 pos[index++] = x; in SampleView() 69 pos[index++] = row * YMUL + YBASE; in SampleView()
|
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/ |
D | MediaIDHelper.java | 69 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/tools/bugreport/src/com/android/bugreport/ |
D | Options.java | 86 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/vndk/tools/sourcedr/blueprint/ |
D | blueprint.py | 120 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/samples/ApiDemos/src/com/example/android/apis/os/ |
D | MorseCodeConverter.java | 118 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/ |
D | SpinnerActivity.java | 190 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/ |
D | SessionManager.java | 140 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()
|
D | PlaylistItem.java | 58 public void setPosition(long pos) { in setPosition() argument 59 mContentPosition = pos; in setPosition()
|
/development/samples/browseable/WearDrawers/src/com.example.android.wearable.wear.weardrawers/ |
D | MainActivity.java | 197 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/vndk/tools/header-checker/src/repr/symbol/ |
D | version_script_parser.cpp | 167 std::string::size_type pos = line.find(";"); in ParseSymbolLine() local 168 if (pos == std::string::npos) { in ParseSymbolLine() 173 std::string symbol(utils::Trim(line.substr(0, pos))); in ParseSymbolLine()
|
/development/samples/AppNavigation/src/com/example/android/appnavigation/app/ |
D | AppNavHomeActivity.java | 45 protected void onListItemClick(ListView lv, View v, int pos, long id) { in onListItemClick() argument 46 SampleInfo info = (SampleInfo) getListAdapter().getItem(pos); in onListItemClick()
|
/development/vndk/tools/sourcedr/ninja/ |
D | ninja.py | 254 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/browseable/BasicAccessibility/src/com.example.android.basicaccessibility/ |
D | DialView.java | 229 private float[] computeXYForPosition(final int pos, final float radius) { in computeXYForPosition() argument 232 Double angle = startAngle + (pos * (Math.PI / 4)); in computeXYForPosition()
|
/development/testrunner/test_defs/ |
D | native_test.py | 95 pos = output.rfind("exit code") 96 output = output[0:pos]
|
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/ |
D | MidiPortSelector.java | 70 int pos, long id) { in MidiPortSelector() 71 mCurrentWrapper = mAdapter.getItem(pos); in MidiPortSelector()
|
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/ |
D | MidiPortSelector.java | 70 int pos, long id) { in MidiPortSelector() 71 mCurrentWrapper = mAdapter.getItem(pos); in MidiPortSelector()
|
/development/apps/CustomLocale/src/com/android/customlocale2/ |
D | CustomLocaleActivity.java | 301 int pos = mListView.getCheckedItemPosition(); in getCheckedLocale() local 304 if (pos >= 0 && pos < n) { in getCheckedLocale() 305 Object o = a.getItem(pos); in getCheckedLocale()
|
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
D | TitlesFragment.java | 115 public boolean onItemLongClick(AdapterView<?> av, View v, int pos, long id) { in onActivityCreated() 119 final String textData = String.format("%d||%d", mCategory, pos); in onActivityCreated()
|
/development/samples/ApiDemos/src/com/example/android/apis/media/projection/ |
D | MediaProjectionDemo.java | 174 public void onItemSelected(AdapterView<?> parent, View v, int pos, long id) { in onItemSelected() argument 175 Resolution r = (Resolution) parent.getItemAtPosition(pos); in onItemSelected()
|