Searched refs:pos (Results 1 - 25 of 80) sorted by relevance

1234

/sdk/emulator/opengl/host/tools/emugen/
H A DstrUtils.cpp21 std::string getNextToken(const std::string & str, size_t pos, size_t * last, const std::string & delim) argument
23 if (str.size() == 0 || pos >= str.size()) return "";
25 pos = str.find_first_not_of(WHITESPACE, pos);
26 if (pos == std::string::npos) return "";
28 *last = str.find_first_of(delim, pos);
30 std::string retval = str.substr(pos, *last - pos);
H A DEntryPoint.cpp43 size_t pos = 0, last; local
54 std::string str = getNextToken(f, pos, &last, WHITESPACE);
60 pos = last;
66 pos = last;
74 pos = last;
97 size_t pos, last; local
108 pos = last + 1;
110 field = getNextToken(linestr, pos, &last, ",)");
116 pos = last + 1;
125 m_name = getNextToken(linestr, pos,
207 size_t pos = 0; local
[all...]
H A DTypeFactory.cpp84 size_t pos = 0, last; local
86 name = getNextToken(str, pos, &last, WHITESPACE);
91 pos = last + 1;
93 size = getNextToken(str, pos, &last, WHITESPACE);
98 pos = last + 1;
100 printString = getNextToken(str, pos, &last, WHITESPACE);
106 pos = last + 1;
108 pointerDef = getNextToken(str, pos, &last, WHITESPACE);
H A DstrUtils.h25 std::string getNextToken(const std::string & str, size_t pos, size_t * last, const std::string & delim);
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
H A DGesture.java93 * @param pos The most recent mouse coordinate applicable to this
98 public void begin(ControlPoint pos, int startMask) { argument
99 mStart = pos;
106 * @param pos The most recent mouse coordinate applicable to this
109 public void update(ControlPoint pos) { argument
117 * @param pos The most recent mouse coordinate applicable to this
121 public void end(ControlPoint pos, boolean canceled) { argument
H A DResizeGesture.java74 public void begin(ControlPoint pos, int startMask) { argument
75 super.begin(pos, startMask);
80 Rect newBounds = getNewBounds(pos);
88 update(pos);
107 public void update(ControlPoint pos) { argument
108 super.update(pos);
110 Rect newBounds = getNewBounds(pos);
118 public void end(ControlPoint pos, boolean canceled) { argument
119 super.end(pos, canceled);
123 Rect newBounds = getNewBounds(pos);
141 getNewBounds(ControlPoint pos) argument
[all...]
H A DMarqueeGesture.java67 public void update(ControlPoint pos) { argument
72 int x = Math.min(pos.x, mStart.x);
73 int y = Math.min(pos.y, mStart.y);
74 int w = Math.abs(pos.x - mStart.x);
75 int h = Math.abs(pos.y - mStart.y);
H A DClipboardSupport.java187 int pos = title.lastIndexOf('.');
188 if (pos > 0 && pos < title.length() - 1) {
189 title = title.substring(pos + 1);
331 int pos = title.lastIndexOf('.');
332 if (pos > 0 && pos < title.length() - 1) {
333 title = title.substring(pos + 1);
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gre/
H A DMockNodeProxy.java58 int pos = xmlName.lastIndexOf('.');
59 if (pos > 0) {
60 xmlName = xmlName.substring(pos + 1);
/sdk/avdlauncher/
H A Davdlauncher.c76 int ret, pos; local
92 pos = ret - 1;
93 while (pos > 0 && program_dir[pos] != '\\') {
94 --pos;
96 program_dir[pos] = 0;
/sdk/emulator/opengl/tests/ut_renderer/
H A DRendererSurface.cpp31 int pos =0; local
33 attrib[pos++] = EGL_SURFACE_TYPE; attrib[pos++] = EGL_WINDOW_BIT;
34 if (config & CONFIG_DEPTH) {attrib[pos++] = EGL_DEPTH_SIZE; attrib[pos++] = 1;}
35 attrib[pos++] = EGL_NONE;
/sdk/sdklauncher/
H A Dsdklauncher.c76 int ret, pos; local
92 pos = ret - 1;
93 while (pos > 0 && program_dir[pos] != '\\') {
94 --pos;
96 program_dir[pos] = 0;
/sdk/emulator/qtools/
H A Dhash_table.h100 int pos = HashFunction(key) & mask_; local
103 for (entry_type *ptr = table_[pos]; ptr; ptr = ptr->next) {
119 ptr->next = table_[pos];
120 table_[pos] = ptr;
129 int pos = HashFunction(key) & mask_; local
134 for (entry_type *ptr = table_[pos]; ptr; prev = ptr, ptr = ptr->next) {
137 table_[pos] = ptr->next;
153 int pos = HashFunction(key) & mask_; local
156 for (entry_type *ptr = table_[pos]; ptr; ptr = ptr->next) {
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/internal/build/
H A DSymbolLoader.java72 int pos = line.indexOf(' ');
73 String type = line.substring(0, pos);
74 int pos2 = line.indexOf(' ', pos + 1);
75 String className = line.substring(pos + 1, pos2);
/sdk/lint/cli/src/com/android/tools/lint/
H A DLintCliXmlParser.java75 OffsetPosition pos = (OffsetPosition) getPosition(node, -1, -1);
76 if (pos != null) {
77 return Location.create(context.file, pos, (OffsetPosition) pos.getEnd());
86 OffsetPosition pos = (OffsetPosition) getPosition(node, start, end);
87 if (pos != null) {
88 return Location.create(context.file, pos, (OffsetPosition) pos.getEnd());
186 OffsetPosition pos = (OffsetPosition) getPosition(mNode);
187 if (pos !
[all...]
H A DLombokParser.java131 Position pos = mNode.getPosition();
132 return Location.create(mFile, null /*contents*/, pos.getStart(), pos.getEnd());
/sdk/eclipse/plugins/com.android.ide.eclipse.ndk/src/com/android/ide/eclipse/ndk/internal/discovery/
H A DNdkDiscoveryUpdater.java151 private int pos; field in class:NdkDiscoveryUpdater.Line
157 public Line(String line, int pos) { argument
159 this.pos = pos;
164 if (pos == line.length())
167 int start = pos;
171 char c = line.charAt(pos);
174 return line.substring(start, pos);
179 if (++pos == line.length())
186 if (pos
[all...]
/sdk/common/src/com/android/utils/
H A DPositionXmlParser.java319 Position pos = (Position) attr.getOwnerElement().getUserData(POS_KEY);
320 if (pos != null) {
321 int startOffset = pos.getOffset();
322 int endOffset = pos.getEnd().getOffset();
345 int line = pos.getLine();
346 int column = pos.getColumn();
347 for (int offset = pos.getOffset(); offset < index; offset++) {
364 return pos;
369 Position pos = null;
371 pos
[all...]
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/internal/repository/sources/
H A DSdkRepoSource.java237 int pos = name.indexOf(':');
238 if (pos > 0 && pos < name.length() - 1) {
239 prefix = name.substring(0, pos);
240 name = name.substring(pos + 1);
287 int pos = name.indexOf(':');
288 if (pos > 0 && pos < name.length() - 1) {
289 name = name.substring(pos + 1);
475 int pos
[all...]
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/util/
H A DSparseIntArray.java195 int pos = mSize;
196 if (pos >= mKeys.length) {
197 int n = ArrayUtils.idealIntArraySize(pos + 1);
210 mKeys[pos] = key;
211 mValues[pos] = value;
212 mSize = pos + 1;
H A DSparseArray.java286 int pos = mSize;
287 if (pos >= mKeys.length) {
288 int n = ArrayUtils.idealIntArraySize(pos + 1);
301 mKeys[pos] = key;
302 mValues[pos] = value;
303 mSize = pos + 1;
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/export/
H A DAbstractPropertiesFieldsPart.java169 int pos = line.indexOf('=');
170 if (pos > 0 && pos < line.length() - 1) {
171 String key = line.substring(0, pos).trim();
284 int pos = line.indexOf('=');
285 if (pos > 0 && pos < line.length() - 1) {
286 String key = line.substring(0, pos).trim();
290 String value = line.substring(pos + 1).trim();
/sdk/find_java/
H A Dutils.cpp140 int pos = ret - 1; local
141 while (pos > 0 && programDir[pos] != '\\') {
142 --pos;
144 outDir->set(programDir, pos);
/sdk/sdk_common/src/com/android/ide/common/resources/
H A DSingleResourceFile.java139 int pos = name.indexOf('.');
140 if (pos != -1) {
141 name = name.substring(0, pos);
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/descriptors/
H A DElementDescriptor.java182 int pos = mXmlName.indexOf(':');
183 if (pos != -1) {
184 return mXmlName.substring(pos+1);
260 int pos = name.lastIndexOf('.');
261 if (pos != -1) {
265 name = name.substring(pos + 1);

Completed in 368 milliseconds

1234