Home
last modified time | relevance | path

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

1234567

/sdk/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/
DLogCatFilterSettingsSerializer.java97 int index = 0; in decodeFromPreferenceString() local
98 while (index < kv.size()) { in decodeFromPreferenceString()
106 assert kv.get(index).equals(KW_NAME); in decodeFromPreferenceString()
107 name = kv.get(index + 1); in decodeFromPreferenceString()
109 index += 2; in decodeFromPreferenceString()
110 while (index < kv.size() && !kv.get(index).equals(KW_NAME)) { in decodeFromPreferenceString()
111 String key = kv.get(index); in decodeFromPreferenceString()
112 String value = kv.get(index + 1); in decodeFromPreferenceString()
113 index += 2; in decodeFromPreferenceString()
136 int index = 0; in getKeyValues() local
[all …]
DLogPanel.java275 int index = line.indexOf(' '); in processNewLines() local
276 if (index == -1) { in processNewLines()
280 index++; in processNewLines()
281 while (line.charAt(index) == ' ') { in processNewLines()
282 index++; in processNewLines()
287 int index2 = line.indexOf(' ', index); in processNewLines()
290 String pidStr = line.substring(index, index2); in processNewLines()
296 index = line.lastIndexOf(' '); in processNewLines()
297 final String name = line.substring(index + 1); in processNewLines()
455 int index = 0; in createControl() local
[all …]
/sdk/ddms/libs/ddmuilib/src/com/android/ddmuilib/heap/
DNativeStackLabelProvider.java30 public String getColumnText(Object element, int index) { in getColumnText() argument
32 return getResolvedStackTraceColumnText((NativeStackCallInfo) element, index); in getColumnText()
38 return getStackAddressColumnText((Long) element, index); in getColumnText()
44 public String getResolvedStackTraceColumnText(NativeStackCallInfo info, int index) { in getResolvedStackTraceColumnText() argument
45 switch (index) { in getResolvedStackTraceColumnText()
62 private String getStackAddressColumnText(Long address, int index) { in getStackAddressColumnText() argument
63 if (index == 0) { in getStackAddressColumnText()
DNativeHeapLabelProvider.java36 public String getColumnText(Object element, int index) { in getColumnText() argument
38 return getColumnTextForNativeAllocation((NativeAllocationInfo) element, index); in getColumnText()
42 return getColumnTextForNativeLibrary((NativeLibraryAllocationInfo) element, index); in getColumnText()
48 private String getColumnTextForNativeAllocation(NativeAllocationInfo info, int index) { in getColumnTextForNativeAllocation() argument
51 switch (index) { in getColumnTextForNativeAllocation()
73 private String getColumnTextForNativeLibrary(NativeLibraryAllocationInfo info, int index) { in getColumnTextForNativeLibrary() argument
74 switch (index) { in getColumnTextForNativeLibrary()
DNativeHeapProviderByLibrary.java60 public void updateElement(Object parent, int index) { in updateElement() argument
66 item = getLibraryAllocations(snapshot).get(index); in updateElement()
69 item = ((NativeLibraryAllocationInfo) parent).getAllocations().get(index); in updateElement()
72 mViewer.replace(parent, index, item); in updateElement()
/sdk/monkeyrunner/src/com/android/monkeyrunner/
DMonkeyRunnerOptions.java95 int index = 0; in processOptions() local
105 while (index < args.length) { in processOptions()
106 String argument = args[index++]; in processOptions()
109 if (index == args.length) { in processOptions()
113 hostname = args[index++]; in processOptions()
117 if (index == args.length) { in processOptions()
121 port = Integer.parseInt(args[index++]); in processOptions()
125 if (index == args.length) { in processOptions()
130 logLevel = Level.parse(args[index++]); in processOptions()
133 if (index == args.length) { in processOptions()
[all …]
/sdk/ddms/libs/ddmuilib/src/com/android/ddmuilib/log/event/
DEventDisplay.java136 void columnResized(int index, TableColumn sourceColumn); in columnResized() argument
194 protected int loadFrom(String[] storageStrings, int index) { in loadFrom() argument
195 eventTag = Integer.parseInt(storageStrings[index++]); in loadFrom()
196 seriesValueIndex = Integer.parseInt(storageStrings[index++]); in loadFrom()
197 includePid = Boolean.parseBoolean(storageStrings[index++]); in loadFrom()
198 filterValueIndex = Integer.parseInt(storageStrings[index++]); in loadFrom()
200 filterCompareMethod = CompareMethod.valueOf(storageStrings[index++]); in loadFrom()
205 String value = storageStrings[index++]; in loadFrom()
210 return index; in loadFrom()
290 protected int loadFrom(String[] storageStrings, int index) { in loadFrom() argument
[all …]
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/util/
DSparseIntArray.java82 public void removeAt(int index) { in removeAt() argument
83 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
84 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); in removeAt()
140 public int keyAt(int index) { in keyAt() argument
141 return mKeys[index]; in keyAt()
149 public int valueAt(int index) { in valueAt() argument
150 return mValues[index]; in valueAt()
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/build/
DApkBuilderMain.java59 int index = 1; in main() local
61 String argument = args[index++]; in main()
74 if (index == args.length) { in main()
78 zipArchives.add(new File(args[index++])); in main()
85 if (index == args.length) { in main()
89 dexFile = new File(args[index++]); in main()
92 if (index == args.length) { in main()
96 sourceFolders.add(new File(args[index++])); in main()
99 if (index == args.length) { in main()
103 jarFiles.add(new File(args[index++])); in main()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/
DWidgetPullParser.java71 public String getAttributeName(int index) { in getAttributeName() argument
72 if (index < mAttributes.length) { in getAttributeName()
73 return mAttributes[index][0]; in getAttributeName()
79 public String getAttributeNamespace(int index) { in getAttributeNamespace() argument
83 public String getAttributePrefix(int index) { in getAttributePrefix() argument
88 public String getAttributeValue(int index) { in getAttributeValue() argument
89 if (index < mAttributes.length) { in getAttributeValue()
90 return mAttributes[index][1]; in getAttributeValue()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/launch/
DAndroidLaunchConfiguration.java122 int index = LaunchConfigDelegate.DEFAULT_SPEED; in set() local
124 index = config.getAttribute(LaunchConfigDelegate.ATTR_SPEED, index); in set()
128 mNetworkSpeed = EmulatorConfigTab.getSpeed(index); in set()
130 index = LaunchConfigDelegate.DEFAULT_DELAY; in set()
132 index = config.getAttribute(LaunchConfigDelegate.ATTR_DELAY, index); in set()
136 mNetworkDelay = EmulatorConfigTab.getDelay(index); in set()
/sdk/layoutlib_api/src/com/android/ide/common/rendering/api/
DAdapterBinding.java50 public ResourceReference getHeaderAt(int index) { in getHeaderAt() argument
51 return mHeaders.get(index); in getHeaderAt()
62 public DataBindingItem getItemAt(int index) { in getItemAt() argument
63 return mItems.get(index); in getItemAt()
74 public ResourceReference getFooterAt(int index) { in getFooterAt() argument
75 return mFooters.get(index); in getFooterAt()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/properties/
DLibraryProperties.java205 int index = mTable.getSelectionIndex(); in LibraryProperties()
206 ItemData data = mItemDataList.remove(index); in LibraryProperties()
207 mTable.remove(index); in LibraryProperties()
210 addItem(data.relativePath, data.project, index - 1); in LibraryProperties()
213 mTable.select(index - 1); in LibraryProperties()
225 int index = mTable.getSelectionIndex(); in LibraryProperties()
226 ItemData data = mItemDataList.remove(index); in LibraryProperties()
227 mTable.remove(index); in LibraryProperties()
230 addItem(data.relativePath, data.project, index + 1); in LibraryProperties()
233 mTable.select(index + 1); in LibraryProperties()
[all …]
/sdk/ddms/app/src/com/android/ddms/
DStaticPortConfigDialog.java191 int index = mPortTable.getSelectionIndex(); in createUI()
192 String oldDeviceName = getDeviceName(index); in createUI()
193 String oldAppName = getAppName(index); in createUI()
194 String oldPortNumber = getPortNumber(index); in createUI()
204 replaceEntry(index, deviceName, app, port); in createUI()
215 int index = mPortTable.getSelectionIndex(); in createUI()
216 removeEntry(index); in createUI()
249 int index = mPortTable.getSelectionIndex(); in createUI()
251 boolean enabled = index != -1; in createUI()
283 private void removeEntry(int index) { in removeEntry() argument
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/mock/
DMockNodeList.java50 public Node item(int index) { in item() argument
51 if (index >= 0 && index < mChildren.size()) { in item()
52 return mChildren.get(index); in item()
/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.adt/src/com/android/ide/eclipse/adt/internal/editors/formatting/
DAndroidXmlFormattingStrategy.java219 int index = regions.indexOf(subRegion); in format() local
220 if (index != -1) { in format()
223 subRegion = regions.get(index); in format()
226 index--; in format()
229 for (; index >= 0; index--) { in format()
230 subRegion = regions.get(index); in format()
241 for (index = Math.max(0, index); index < max; index++) { in format()
242 subRegion = regions.get(index); in format()
367 int index = replaceStart; in createReplaceEdit() local
369 while (index > 0) { in createReplaceEdit()
[all …]
/sdk/screenshot/src/com/android/screenshot/
DScreenshot.java50 int index = 0; in main() local
52 String argument = args[index++]; in main()
66 if (index == args.length) { in main()
74 serial = args[index++]; in main()
82 if (index < args.length) { in main()
86 } while (index < args.length); in main()
222 int index = 0; in getDeviceImage() local
226 int value = rawImage.getARGB(index); in getDeviceImage()
227 index += IndexInc; in getDeviceImage()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/
DAndroidClasspathContainerPage.java68 final int index = this.mProjectsCombo.getSelectionIndex(); in getSelection() local
69 if (index != -1) { in getSelection()
70 final String selectedProjectName = this.mProjectsCombo.getItem(index); in getSelection()
105 final int index; in createControl() local
108 index = indexOf(androidProjects, this.mLibsProjectName); in createControl()
111 index = 0; in createControl()
113 index = -1; in createControl()
117 if (index != -1) { in createControl()
118 this.mProjectsCombo.select(index); in createControl()
/sdk/ddms/libs/ddmlib/src/com/android/ddmlib/log/
DGcEventContainer.java81 public boolean testValue(int index, Object value, CompareMethod compareMethod) in testValue() argument
84 if (index == 0) { in testValue()
94 if (index == 0) { in testValue()
97 return getValueAsLong(index) == ((Long)value).longValue(); in testValue()
100 return getValueAsLong(index) <= ((Long)value).longValue(); in testValue()
102 return getValueAsLong(index) < ((Long)value).longValue(); in testValue()
104 return getValueAsLong(index) >= ((Long)value).longValue(); in testValue()
106 return getValueAsLong(index) > ((Long)value).longValue(); in testValue()
108 return (getValueAsLong(index) & ((Long)value).longValue()) != 0; in testValue()
205 private void parseDvmHeapInfo(long data, int index) { in parseDvmHeapInfo() argument
[all …]
/sdk/ddms/libs/ddmlib/src/com/android/ddmlib/
DMultiLineReceiver.java72 int index = s.indexOf("\r\n", start); //$NON-NLS-1$ in addOutput() local
76 if (index == -1) { in addOutput()
83 String line = s.substring(start, index); in addOutput()
90 start = index + 2; in addOutput()
DRawImage.java172 public int getARGB(int index) { in getARGB() argument
175 value = data[index] & 0x00FF; in getARGB()
176 value |= (data[index+1] << 8) & 0x0FF00; in getARGB()
178 value = data[index] & 0x00FF; in getARGB()
179 value |= (data[index+1] & 0x00FF) << 8; in getARGB()
180 value |= (data[index+2] & 0x00FF) << 16; in getARGB()
181 value |= (data[index+3] & 0x00FF) << 24; in getARGB()
/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.tests/unittests/com/android/ide/common/layout/
DTestNode.java89 public void removeChild(int index) { in removeChild() argument
90 TestNode removed = mChildren.remove(index); in removeChild()
154 public INode insertChildAt(String viewFqcn, int index) { in insertChildAt() argument
156 if (index == -1) { in insertChildAt()
159 mChildren.add(index, child); in insertChildAt()
166 int index = mChildren.indexOf(node); in removeChild() local
167 if (index != -1) { in removeChild()
168 removeChild(index); in removeChild()
/sdk/anttasks/src/com/android/ant/
DInputPath.java86 int index = filename.lastIndexOf('.'); in getExtension() local
87 if (index == -1) { in getExtension()
91 return filename.substring(index + 1); in getExtension()

1234567