Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 138) sorted by relevance

123456

/sdk/emulator/opengl/shared/OpenglCodecCommon/
DGLSharedGroup.cpp57 void ProgramData::setIndexInfo(GLuint index, GLint base, GLint size, GLenum type) in setIndexInfo() argument
59 if (index>=m_numIndexes) in setIndexInfo()
61 m_Indexes[index].base = base; in setIndexInfo()
62 m_Indexes[index].size = size; in setIndexInfo()
63 m_Indexes[index].type = type; in setIndexInfo()
64 if (index > 0) { in setIndexInfo()
65 m_Indexes[index].appBase = m_Indexes[index-1].appBase + in setIndexInfo()
66 m_Indexes[index-1].size; in setIndexInfo()
69 m_Indexes[index].appBase = 0; in setIndexInfo()
71 m_Indexes[index].hostLocsPerElement = 1; in setIndexInfo()
[all …]
/sdk/emulator/opengl/host/libs/Translator/GLcommon/
DPaletteTexture.cpp78 Color paletteColor(const unsigned char* pallete,unsigned int index,GLenum format) in paletteColor() argument
85 return Color(pallete[index],pallete[index+1],pallete[index+2],0); in paletteColor()
88 s = *((short *)(pallete+index)); in paletteColor()
94 return Color(pallete[index],pallete[index+1],pallete[index+2],pallete[index+3]); in paletteColor()
97 s = *((short *)(pallete+index)); in paletteColor()
101 s = *((short *)(pallete+index)); in paletteColor()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/
DWidgetPullParser.java77 public String getAttributeName(int index) { in getAttributeName() argument
78 if (index < mAttributes.length) { in getAttributeName()
79 return mAttributes[index][0]; in getAttributeName()
86 public String getAttributeNamespace(int index) { in getAttributeNamespace() argument
91 public String getAttributePrefix(int index) { in getAttributePrefix() argument
97 public String getAttributeValue(int index) { in getAttributeValue() argument
98 if (index < mAttributes.length) { in getAttributeValue()
99 return mAttributes[index][1]; in getAttributeValue()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/properties/
DLibraryProperties.java208 int index = mTable.getSelectionIndex(); in LibraryProperties()
209 ItemData data = mItemDataList.remove(index); in LibraryProperties()
210 mTable.remove(index); in LibraryProperties()
213 addItem(data.relativePath, data.project, index - 1); in LibraryProperties()
216 mTable.select(index - 1); in LibraryProperties()
228 int index = mTable.getSelectionIndex(); in LibraryProperties()
229 ItemData data = mItemDataList.remove(index); in LibraryProperties()
230 mTable.remove(index); in LibraryProperties()
233 addItem(data.relativePath, data.project, index + 1); in LibraryProperties()
236 mTable.select(index + 1); in LibraryProperties()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.monitor/src/com/android/ide/eclipse/monitor/ddms/
DStaticPortConfigDialog.java193 int index = mPortTable.getSelectionIndex(); in createUI()
194 String oldDeviceName = getDeviceName(index); in createUI()
195 String oldAppName = getAppName(index); in createUI()
196 String oldPortNumber = getPortNumber(index); in createUI()
206 replaceEntry(index, deviceName, app, port); in createUI()
217 int index = mPortTable.getSelectionIndex(); in createUI()
218 removeEntry(index); in createUI()
251 int index = mPortTable.getSelectionIndex(); in createUI()
253 boolean enabled = index != -1; in createUI()
285 private void removeEntry(int index) { in removeEntry() argument
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/launch/
DAndroidLaunchConfiguration.java117 int index = LaunchConfigDelegate.DEFAULT_SPEED; in set() local
119 index = config.getAttribute(LaunchConfigDelegate.ATTR_SPEED, index); in set()
123 mNetworkSpeed = EmulatorConfigTab.getSpeed(index); in set()
125 index = LaunchConfigDelegate.DEFAULT_DELAY; in set()
127 index = config.getAttribute(LaunchConfigDelegate.ATTR_DELAY, index); in set()
131 mNetworkDelay = EmulatorConfigTab.getDelay(index); in set()
/sdk/eventanalyzer/src/com/android/eventanalyzer/
DEventAnalyzer.java76 int index = 0; in run() local
78 String argument = args[index++]; in run()
83 if (index == args.length) { in run()
87 mInputDevice = args[index++]; in run()
91 if (index == args.length) { in run()
95 mInputBinaryFile = args[index++]; in run()
99 if (index == args.length) { in run()
103 mInputTextFile = args[index++]; in run()
107 if (index == args.length) { in run()
111 mInputFolder = args[index++]; in run()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/mock/
DMockNodeList.java52 public Node item(int index) { in item() argument
53 if (index >= 0 && index < mChildren.size()) { in item()
54 return mChildren.get(index); in item()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/formatting/
DAndroidXmlFormattingStrategy.java233 int index = regions.indexOf(subRegion); in format() local
234 if (index != -1) { in format()
237 subRegion = regions.get(index); in format()
240 index--; in format()
243 for (; index >= 0; index--) { in format()
244 subRegion = regions.get(index); in format()
255 for (index = Math.max(0, index); index < max; index++) { in format()
256 subRegion = regions.get(index); in format()
389 int index = replaceStart; in createReplaceEdit() local
391 while (index > 0) { in createReplaceEdit()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/editors/
DStateLabelProvider.java63 int index = ((GLListProperty) parent).indexOf(element); in getName() local
65 return String.format("Context %d (ES1)", index); in getName()
67 return String.format("Context %d (ES2)", index); in getName()
69 return Integer.toString(index); in getName()
74 int index = ((GLSparseArrayProperty) parent).keyFor(element); in getName() local
75 return Integer.toString(index); in getName()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/
DAndroidClasspathContainerPage.java69 final int index = this.mProjectsCombo.getSelectionIndex(); in getSelection() local
70 if (index != -1) { in getSelection()
71 final String selectedProjectName = this.mProjectsCombo.getItem(index); in getSelection()
108 final int index; in createControl() local
111 index = indexOf(androidProjects, this.mLibsProjectName); in createControl()
114 index = 0; in createControl()
116 index = -1; in createControl()
120 if (index != -1) { in createControl()
121 this.mProjectsCombo.select(index); in createControl()
DAndroidNature.java225 int index = -1; in configurePreBuilder() local
228 index = i; in configurePreBuilder()
234 index++; in configurePreBuilder()
240 System.arraycopy(commands, 0, newCommands, 0, index); in configurePreBuilder()
245 newCommands[index] = command; in configurePreBuilder()
248 System.arraycopy(commands, index, newCommands, index + 1, commands.length-index); in configurePreBuilder()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/
DAndroidXmlCharacterMatcherTest.java124 int index = text.indexOf(after); in checkGotoMatching() local
125 int caretPosAfter = match.getOffset() - index; in checkGotoMatching()
133 int index = s.indexOf('^'); in stripCaret() local
134 assertTrue(index != -1); in stripCaret()
135 return s.substring(0, index) + s.substring(index + 1); in stripCaret()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DFragmentMenu.java126 int index = 0; in addMenuItems() local
128 index = source.indexOf(R_LAYOUT_RESOURCE_PREFIX, index); in addMenuItems()
129 if (index == -1) { in addMenuItems()
132 index += R_LAYOUT_RESOURCE_PREFIX.length(); in addMenuItems()
133 int end = index; in addMenuItems()
141 if (end > index) { in addMenuItems()
142 String title = source.substring(index, end); in addMenuItems()
146 if (index > len && source.startsWith(ANDROID_R_PREFIX, index - len)) { in addMenuItems()
157 index++; in addMenuItems()
DSimpleElement.java215 int[] index = new int[] { 0 }; in parseString() local
217 while ((element = parseLines(lines, index)) != null) { in parseString()
229 int index = inOutIndex[0]; in parseLines() local
230 while (index < lines.length) { in parseLines()
231 String line = lines[index++]; in parseLines()
256 inOutIndex[0] = index; in parseLines()
295 inOutIndex[0] = index - 1; in parseLines()
300 index = inOutIndex[0]; in parseLines()
311 inOutIndex[0] = index; in parseLines()
315 inOutIndex[0] = index; in parseLines()
DBinPacker.java88 int index = findBest(width, height); in occupy() local
89 if (index == -1) { in occupy()
93 return split(index, width, height); in occupy()
178 private void removeRect(int index) { in removeRect() argument
181 if (index != lastIndex) { in removeRect()
184 Rect temp = mSpace.get(index); in removeRect()
185 mSpace.set(index, mSpace.get(lastIndex)); in removeRect()
195 private Rect split(int index, int width, int height) { in split() argument
196 Rect rect = mSpace.get(index); in split()
/sdk/emulator/opengl/host/libs/Translator/GLES_V2/
DGLESv2Validate.cpp140 bool GLESv2Validate::arrayIndex(GLEScontext * ctx,GLuint index) { in arrayIndex() argument
141 return index < (GLuint)ctx->getCaps()->maxVertexAttribs; in arrayIndex()
164 bool GLESv2Validate::attribIndex(int index){ in attribIndex() argument
165 return index >=0 && index < GL_MAX_VERTEX_ATTRIBS; in attribIndex()
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/
DViewHierarchyLoader.java87 int index = line.indexOf(' '); in loadScene() local
90 lastNode.name = line.substring(0, index); in loadScene()
92 line = line.substring(index + 1); in loadScene()
159 int index = data.indexOf('=', start); in loadProperties() local
161 property.name = data.substring(start, index); in loadProperties()
168 int index2 = data.indexOf(',', index + 1); in loadProperties()
169 int length = Integer.parseInt(data.substring(index + 1, index2)); in loadProperties()
DWindowsLoader.java59 int index = line.indexOf(' '); in loadWindows() local
60 if (index != -1) { in loadWindows()
61 String windowId = line.substring(0, index); in loadWindows()
70 Window w = new Window(line.substring(index + 1), id); in loadWindows()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/
DRenderScriptProcessor.java187 int index = 0;
188 command[index++] = buildToolInfo.getPath(BuildToolInfo.PathId.LLVM_RS_CC);
189 command[index++] = "-I"; //$NON-NLS-1$
190 command[index++] = buildToolInfo.getPath(BuildToolInfo.PathId.ANDROID_RS_CLANG);
191 command[index++] = "-I"; //$NON-NLS-1$
192 command[index++] = buildToolInfo.getPath(BuildToolInfo.PathId.ANDROID_RS);
193 command[index++] = "-p"; //$NON-NLS-1$
194 command[index++] = genFolder.getLocation().toOSString();
195 command[index++] = "-o"; //$NON-NLS-1$
196 command[index++] = rawFolder.getLocation().toOSString();
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/
DTestNode.java113 public void removeChild(int index) { in removeChild() argument
114 TestNode removed = mChildren.remove(index); in removeChild()
190 public @NonNull INode insertChildAt(@NonNull String viewFqcn, int index) { in insertChildAt() argument
192 if (index == -1) { in insertChildAt()
195 mChildren.add(index, child); in insertChildAt()
203 int index = mChildren.indexOf(node); in removeChild() local
204 if (index != -1) { in removeChild()
205 removeChild(index); in removeChild()
369 public INode insertChildAt(String viewFqcn, int index) { in insertChildAt() argument
370 if (index == -1) { in insertChildAt()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/state/
DGLListProperty.java63 public IGLProperty get(int index) { in get() argument
64 return mList.get(index); in get()
76 public void set(int index, IGLProperty property) { in set() argument
77 ensureCapacity(index + 1); in set()
78 mList.set(index, property); in set()
/sdk/find_java/
Dfind_java_lib.cpp240 DWORD index = 0; in exploreJavaRegistry() local
242 for (LONG result = ERROR_SUCCESS; result == ERROR_SUCCESS; index++) { in exploreJavaRegistry()
247 index, // dwIndex in exploreJavaRegistry()
482 int index = 0; in getJavaVersion() local
501 if (index < 32) { in getJavaVersion()
502 DWORD n = 32 - index; in getJavaVersion()
505 for (char *b = buffer; n > 0; n--, b++, index++) { in getJavaVersion()
508 first32[index] = c; in getJavaVersion()
510 first32[index] = 0; in getJavaVersion()
527 if (result && index > 0) { in getJavaVersion()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/core/
DRefactoringUtil.java140 int index = text.indexOf(value, potentialStart); in getAttributeValueRangeStart() local
141 if (index != -1) { in getAttributeValueRangeStart()
142 return region.getStartOffset() + index; in getAttributeValueRangeStart()
167 int index = text.indexOf(element.getTagName(), potentialStart); in getTagNameRangeStart() local
168 if (index != -1) { in getTagNameRangeStart()
169 return region.getStartOffset() + index; in getTagNameRangeStart()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/tests/
DEclipseTestCollector.java114 int index = dotPath.indexOf(expectedPackage); in getClass() local
115 if (index == -1) { in getClass()
118 String packagePath = dotPath.substring(index); in getClass()

123456