Home
last modified time | relevance | path

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

12

/sdk/emulator/opengl/host/tools/emugen/
DEntryPoint.cpp43 size_t pos = 0, last; in parseTypeField() local
54 std::string str = getNextToken(f, pos, &last, WHITESPACE); in parseTypeField()
60 pos = last; in parseTypeField()
66 pos = last; in parseTypeField()
74 pos = last; in parseTypeField()
97 size_t pos, last; in parse() local
108 pos = last + 1; in parse()
110 field = getNextToken(linestr, pos, &last, ",)"); in parse()
116 pos = last + 1; in parse()
125 m_name = getNextToken(linestr, pos, &last, ",)"); in parse()
[all …]
DstrUtils.cpp21 std::string getNextToken(const std::string & str, size_t pos, size_t * last, const std::string & de… in getNextToken() argument
23 if (str.size() == 0 || pos >= str.size()) return ""; in getNextToken()
25 pos = str.find_first_not_of(WHITESPACE, pos); in getNextToken()
26 if (pos == std::string::npos) return ""; in getNextToken()
28 *last = str.find_first_of(delim, pos); in getNextToken()
30 std::string retval = str.substr(pos, *last - pos); in getNextToken()
DTypeFactory.cpp84 size_t pos = 0, last; in initFromFile() local
86 name = getNextToken(str, pos, &last, WHITESPACE); in initFromFile()
91 pos = last + 1; in initFromFile()
93 size = getNextToken(str, pos, &last, WHITESPACE); in initFromFile()
98 pos = last + 1; in initFromFile()
100 printString = getNextToken(str, pos, &last, WHITESPACE); in initFromFile()
106 pos = last + 1; in initFromFile()
108 pointerDef = getNextToken(str, pos, &last, WHITESPACE); in initFromFile()
DApiGen.cpp1031 size_t pos = 0; in setGlobalAttribute() local
1033 std::string token = getNextToken(line, pos, &last, WHITESPACE); in setGlobalAttribute()
1034 pos = last; in setGlobalAttribute()
1037 std::string str = getNextToken(line, pos, &last, WHITESPACE); in setGlobalAttribute()
1044 std::string str = getNextToken(line, pos, &last, WHITESPACE); in setGlobalAttribute()
1045 pos = last; in setGlobalAttribute()
1048 str = getNextToken(line, pos, &last, WHITESPACE); in setGlobalAttribute()
1049 pos = last; in setGlobalAttribute()
1052 std::string str = getNextToken(line, pos, &last, WHITESPACE); in setGlobalAttribute()
1053 pos = last; in setGlobalAttribute()
[all …]
/sdk/avdlauncher/
Davdlauncher.c76 int ret, pos; in avd_launcher() local
92 pos = ret - 1; in avd_launcher()
93 while (pos > 0 && program_dir[pos] != '\\') { in avd_launcher()
94 --pos; in avd_launcher()
96 program_dir[pos] = 0; in avd_launcher()
/sdk/emulator/opengl/tests/ut_renderer/
DRendererSurface.cpp31 int pos =0; in getEglConfig() local
33 attrib[pos++] = EGL_SURFACE_TYPE; attrib[pos++] = EGL_WINDOW_BIT; in getEglConfig()
34 if (config & CONFIG_DEPTH) {attrib[pos++] = EGL_DEPTH_SIZE; attrib[pos++] = 1;} in getEglConfig()
35 attrib[pos++] = EGL_NONE; in getEglConfig()
/sdk/sdklauncher/
Dsdklauncher.c76 int ret, pos; in sdk_launcher() local
92 pos = ret - 1; in sdk_launcher()
93 while (pos > 0 && program_dir[pos] != '\\') { in sdk_launcher()
94 --pos; in sdk_launcher()
96 program_dir[pos] = 0; in sdk_launcher()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DGesture.java98 public void begin(ControlPoint pos, int startMask) { in begin() argument
99 mStart = pos; in begin()
109 public void update(ControlPoint pos) { in update() argument
121 public void end(ControlPoint pos, boolean canceled) { in end() argument
DResizeGesture.java74 public void begin(ControlPoint pos, int startMask) { in begin() argument
75 super.begin(pos, startMask); in begin()
80 Rect newBounds = getNewBounds(pos); in begin()
88 update(pos); in begin()
107 public void update(ControlPoint pos) { in update() argument
108 super.update(pos); in update()
110 Rect newBounds = getNewBounds(pos); in update()
118 public void end(ControlPoint pos, boolean canceled) { in end() argument
119 super.end(pos, canceled); in end()
123 Rect newBounds = getNewBounds(pos); in end()
[all …]
DMarqueeGesture.java67 public void update(ControlPoint pos) { in update() argument
72 int x = Math.min(pos.x, mStart.x); in update()
73 int y = Math.min(pos.y, mStart.y); in update()
74 int w = Math.abs(pos.x - mStart.x); in update()
75 int h = Math.abs(pos.y - mStart.y); in update()
DClipboardSupport.java187 int pos = title.lastIndexOf('.'); in deleteSelection() local
188 if (pos > 0 && pos < title.length() - 1) { in deleteSelection()
189 title = title.substring(pos + 1); in deleteSelection()
331 int pos = title.lastIndexOf('.'); in pasteInEmptyDocument() local
332 if (pos > 0 && pos < title.length() - 1) { in pasteInEmptyDocument()
333 title = title.substring(pos + 1); in pasteInEmptyDocument()
DSimpleElement.java244 int pos = s2.indexOf('='); in parseLines() local
245 if (pos <= 0 || pos == s2.length() - 1) { in parseLines()
248 String key = s2.substring(0, pos).trim(); in parseLines()
249 String value = s2.substring(pos + 1).trim(); in parseLines()
DLintTooltipManager.java129 Point pos = mCanvas.toDisplay(rect.x, rect.y + rect.height); in show() local
133 mTip.setBounds(pos.x, pos.y, size.x, size.y); in show()
/sdk/emulator/qtools/
Dhash_table.h100 int pos = HashFunction(key) & mask_; in Update() local
103 for (entry_type *ptr = table_[pos]; ptr; ptr = ptr->next) { in Update()
119 ptr->next = table_[pos]; in Update()
120 table_[pos] = ptr; in Update()
129 int pos = HashFunction(key) & mask_; in Remove() local
134 for (entry_type *ptr = table_[pos]; ptr; prev = ptr, ptr = ptr->next) { in Remove()
137 table_[pos] = ptr->next; in Remove()
153 int pos = HashFunction(key) & mask_; in Find() local
156 for (entry_type *ptr = table_[pos]; ptr; ptr = ptr->next) { in Find()
Dgtrace.cpp25 long pos = ftell(ftrace_); in ~Gtrace() local
26 long pos_end = (pos + 0x1fff) & ~0x1fff; in ~Gtrace()
27 if (pos_end > pos) { in ~Gtrace()
/sdk/eclipse/plugins/com.android.ide.eclipse.ndk/src/com/android/ide/eclipse/ndk/internal/discovery/
DNdkDiscoveryUpdater.java151 private int pos; field in NdkDiscoveryUpdater.Line
157 public Line(String line, int pos) { in Line() argument
159 this.pos = pos; in Line()
164 if (pos == line.length()) in getToken()
167 int start = pos; in getToken()
171 char c = line.charAt(pos); in getToken()
174 return line.substring(start, pos); in getToken()
179 if (++pos == line.length()) in getToken()
186 if (pos == line.length()) in getRemaining()
190 String rc = line.substring(pos); in getRemaining()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/export/
DAbstractPropertiesFieldsPart.java169 int pos = line.indexOf('='); in saveFieldsToModel() local
170 if (pos > 0 && pos < line.length() - 1) { in saveFieldsToModel()
171 String key = line.substring(0, pos).trim(); in saveFieldsToModel()
284 int pos = line.indexOf('='); in onModelInit() local
285 if (pos > 0 && pos < line.length() - 1) { in onModelInit()
286 String key = line.substring(0, pos).trim(); in onModelInit()
290 String value = line.substring(pos + 1).trim(); in onModelInit()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gre/
DMockNodeProxy.java58 int pos = xmlName.lastIndexOf('.'); in makeUiViewNode() local
59 if (pos > 0) { in makeUiViewNode()
60 xmlName = xmlName.substring(pos + 1); in makeUiViewNode()
/sdk/find_java/
Dutils.cpp140 int pos = ret - 1; in getModuleDir() local
141 while (pos > 0 && programDir[pos] != '\\') { in getModuleDir()
142 --pos; in getModuleDir()
144 outDir->set(programDir, pos); in getModuleDir()
Dutils.h288 char *pos = strrchr(mStr, '\\'); in dirName() local
289 if (pos != NULL) { in dirName()
290 result.set(mStr, pos - mStr); in dirName()
300 char *pos = strrchr(mStr, '\\'); in baseName() local
301 if (pos != NULL) { in baseName()
302 return pos + 1; in baseName()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/descriptors/
DElementDescriptor.java182 int pos = mXmlName.indexOf(':'); in getXmlLocalName() local
183 if (pos != -1) { in getXmlLocalName()
184 return mXmlName.substring(pos+1); in getXmlLocalName()
260 int pos = name.lastIndexOf('.'); in getCustomizedIcon() local
261 if (pos != -1) { in getCustomizedIcon()
265 name = name.substring(pos + 1); in getCustomizedIcon()
DDescriptorsUtils.java520 int pos = url.lastIndexOf('#');
521 if (pos < 0) {
523 } else if (pos < url.length() - 1) {
524 url = url.substring(0, pos + 1);
644 int pos = s.indexOf(' ', JAVADOC_BREAK_LENGTH - currentLength);
645 if (pos <= 0) {
648 spans.add(s.substring(0, pos + 1));
651 s = s.substring(pos + 1);
863 int pos = prefix.indexOf('.');
864 if (pos >= 0) {
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ui/
DEditableDialogCellEditor.java427 int pos = text.getCaretPosition(); in performDelete() local
428 if (pos < text.getCharCount()) { in performDelete()
429 text.setSelection(pos, pos + 1); in performDelete()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/tests/
DAdtTestData.java69 int pos = mOsRootDataPath.indexOf(':'); in AdtTestData() local
70 if (pos > 0 && mOsRootDataPath.charAt(0) == '/') { in AdtTestData()
/sdk/eclipse/plugins/com.android.ide.eclipse.pdt/src/com/android/ide/eclipse/pdt/internal/
DSourceRevealer.java67 int pos = className.indexOf('$'); in reveal() local
68 if (pos != -1) { in reveal()
69 className = className.substring(0, pos); in reveal()

12