Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 361) sorted by relevance

12345678910>>...15

/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/util/
DPsdFile.java103 final int length = width * height; in writeImage() local
104 int[] pixels = new int[length]; in writeImage()
108 byte[] a = new byte[length]; in writeImage()
109 byte[] r = new byte[length]; in writeImage()
110 byte[] g = new byte[length]; in writeImage()
111 byte[] b = new byte[length]; in writeImage()
113 for (int i = 0; i < length; i++) { in writeImage()
202 mLength = mSignature.length; in ImageResources()
252 int length = 2; in getLength() local
254 length += layer.getLength(); in getLength()
[all …]
/sdk/find_java/src/source/
Dutils.h76 CString(const char *start, size_t length) { mStr = NULL; set(start, length); } in CString() argument
92 CString& set(const char *start, size_t length) { in set() argument
95 mStr = (char *)malloc(length + 1); in set()
96 strncpy(mStr, start, length); in set()
97 mStr[length] = 0; in set()
148 size_t length() const { in length() function
162 CString& add(const char *str, int length) { in add() argument
164 set(str, length); in add()
167 mStr = (char *)realloc((void *)mStr, l1 + length + 1); in add()
168 strncpy(mStr + l1, str, length); in add()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/
DAndroidNature.java159 String[] newNatures = new String[natures.length + 1]; in addNatureToProjectDescription()
163 System.arraycopy(natures, 0, newNatures, 1, natures.length); in addNatureToProjectDescription()
166 System.arraycopy(natures, 0, newNatures, 0, natures.length); in addNatureToProjectDescription()
167 newNatures[natures.length] = natureId; in addNatureToProjectDescription()
188 for (int i = 0; i < commands.length; ++i) { in configureResourceManagerBuilder()
195 ICommand[] newCommands = new ICommand[commands.length + 1]; in configureResourceManagerBuilder()
196 System.arraycopy(commands, 0, newCommands, 1, commands.length); in configureResourceManagerBuilder()
217 for (int i = 0; i < commands.length; ++i) { in configurePreBuilder()
226 for (int i = 0; i < commands.length; ++i) { in configurePreBuilder()
239 ICommand[] newCommands = new ICommand[commands.length + 1]; in configurePreBuilder()
[all …]
DAndroidClasspathContainerInitializer.java135 int projectCount = androidProjects.length; in updateProjects()
211 if (hashString == null || hashString.length() == 0) { in allocateAndroidContainer()
343 cache = cache.substring(CACHE_VERSION_SEP.length());
351 if (paths.length < 3 || paths.length == 4) {
367 if (paths.length > CACHE_INDEX_ADD_ON_START) {
375 for (int i = CACHE_INDEX_ADD_ON_START + 1; i < paths.length; i++) {
377 if (path.length() > 0) {
416 if (androidSrcOsPath != null && androidSrcOsPath.trim().length() > 0) {
488 if (paths.length >= 5) {
491 while (i < paths.length) {
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/
DOutlineLabelProvider.java68 if (id == null || id.length() == 0) { in getText()
70 if (id == null || id.length() == 0) { in getText()
72 if (id == null || id.length() == 0) { in getText()
74 if (id != null && id.length() > 15) { in getText()
77 if (id == null || id.length() == 0) { in getText()
79 if (id != null && id.length() > 0) { in getText()
81 id = id.substring(DRAWABLE_PREFIX.length()); in getText()
85 if (id != null && id.length() > 0) { in getText()
87 id = id.substring(LAYOUT_RESOURCE_PREFIX.length()); in getText()
95 if (id != null && id.length() > 0) { in getText()
DAndroidContentAssist.java175 AttribInfo info = parseAttributeInfo(viewer, offset, offset - wordPrefix.length()); in computeCompletionProposals()
200 if (choices == null || choices.length == 0) { in computeNonAttributeProposals()
204 int replaceLength = parent.length() - wordPrefix.length(); in computeNonAttributeProposals()
209 if (wordPrefix.length() == 0 && nextChar == '<') { in computeNonAttributeProposals()
242 if (choices == null || choices.length == 0) { in computeAttributeProposals()
262 int offset2 = offset - wordPrefix.length() - 1; in computeElementNeedTag()
281 lineEnd = nodeValue.length(); in computeTextReplaceLength()
318 if (elements != null && elements.length > 1) { in sort()
320 ElementDescriptor[] copy = new ElementDescriptor[elements.length]; in sort()
321 System.arraycopy(elements, 0, copy, 0, elements.length); in sort()
[all …]
/sdk/find_java2/src/
DJavaPath.cpp62 DWORD length = GetShortPathName(longPath, shortPath, lenShort); in toShortPath() local
63 if (length > lenShort) { in toShortPath()
66 lenShort = length; in toShortPath()
67 shortPath = (TCHAR *)malloc(length); in toShortPath()
68 length = GetShortPathName(longPath, shortPath, lenShort); in toShortPath()
71 if (length != 0) { in toShortPath()
76 return length != 0; in toShortPath()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/properties/
DResourceValueCompleter.java71 if (matches != null && matches.length > 0) { in getProposals()
72 proposals = new ArrayList<IContentProposal>(matches.length); in getProposals()
97 Math.min(prefix.length() - 1, ANDROID_PREFIX.length()))) { in computeResourceStringMatches()
105 Math.min(prefix.length() - 1, ANDROID_THEME_PREFIX.length()))) { in computeResourceStringMatches()
144 ? ANDROID_PREFIX.length() : PREFIX_RESOURCE_REF.length(); in addMatches()
148 Math.min(type.getName().length(), prefix.length() - typeStart))) { in addMatches()
150 if (prefix.length() == 0 || prefix.startsWith(PREFIX_RESOURCE_REF)) { in addMatches()
170 int nameStart = typeStart + type.getName().length() + 1; // +1: add "/" divider in addMatches()
172 prefix.length() <= nameStart ? "" : prefix.substring(nameStart); in addMatches()
/sdk/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/systrace/
DSystraceTask.java69 public void addOutput(byte[] data, int offset, int length) { in addOutput() argument
71 if (mDataLength + length > mBuffer.length) { in addOutput()
72 mBuffer = Bytes.ensureCapacity(mBuffer, mDataLength + length + 1, 1024); in addOutput()
75 for (int i = 0; i < length; i++) { in addOutput()
78 mDataLength += length; in addOutput()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/resources/platform/
DDeclareStyleableInfo.java60 mParents = new String[parents.length]; in DeclareStyleableInfo()
61 System.arraycopy(parents, 0, mParents, 0, parents.length); in DeclareStyleableInfo()
65 if (attrs == null || attrs.length == 0) { in DeclareStyleableInfo()
68 mAttributes = new AttributeInfo[attrs.length]; in DeclareStyleableInfo()
69 System.arraycopy(attrs, 0, mAttributes, 0, attrs.length); in DeclareStyleableInfo()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/
DLintDeltaProcessor.java129 if (name.regionMatches(0, className, 0, className.length() - DOT_JAVA.length())) { in gatherFiles()
130 if (name.length() == className.length() - DOT_JAVA.length() + DOT_CLASS.length() in gatherFiles()
131 || name.charAt(className.length() - DOT_JAVA.length()) == '$') { in gatherFiles()
137 if (children != null && children.length > 0) { in gatherFiles()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/
DRelativeLayoutRuleTest.java52 String[] combined = new String[extraFragments.length + graphicsFragments.length]; in dragInto()
53 System.arraycopy(graphicsFragments, 0, combined, 0, graphicsFragments.length); in dragInto()
54 System.arraycopy(extraFragments, 0, combined, graphicsFragments.length, in dragInto()
55 extraFragments.length); in dragInto()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/launch/
DJUnitLaunchConfigDelegate.java81 for (int i = 0; i < bootpath.length; i++) { in fixBootpathExt()
82 if (bootpath[i] != null && bootpath[i].length > 0) { in fixBootpathExt()
105 for (int i = 0; i < classpath.length; i++) { in fixClasspath()
122 String[] newClasspath = new String[classpath.length + 1]; in fixClasspath()
123 System.arraycopy(classpath, 0, newClasspath, 0, classpath.length); in fixClasspath()
124 newClasspath[newClasspath.length - 1] = jarLocation; in fixClasspath()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/formatting/
DXmlFormatProcessor.java43 public void formatModel(IStructuredModel structuredModel, int start, int length) { in formatModel() argument
45 super.formatModel(structuredModel, start, length); in formatModel()
53 context.setProperty(CONTEXT_PARTITION, new TypedPosition(start, length, in formatModel()
55 context.setProperty(CONTEXT_REGION, new org.eclipse.jface.text.Region(start, length)); in formatModel()
56 formatter.formatMaster(context, document, start, length); in formatModel()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/binaryxml/
DBinaryXMLDescriber.java55 int length = 8; in describe() local
56 byte[] bytes = new byte[length]; in describe()
57 if (contents.read(bytes, 0, length) == length) { in describe()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/descriptors/
DDescriptorsUtils.java159 if (elements.length < 1) { in appendAttribute()
161 } else if (elements.length == 1) { in appendAttribute()
165 overrideAttrLocalName = elements[elements.length - 1]; in appendAttribute()
174 boolean ok_element = elements != null && elements.length < 1; in appendAttribute()
265 if (name.length() < 1) {
268 StringBuilder buf = new StringBuilder(2 * name.length());
273 int len = name.length();
319 StringBuilder buf = new StringBuilder(2 * name.length());
324 int len = name.length();
405 if (text == null || text.length() == 0) {
[all …]
DElementDescriptor.java89 mTooltip = (tooltip != null && tooltip.length() > 0) ? tooltip : null; in ElementDescriptor()
90 mSdkUrl = (sdk_url != null && sdk_url.length() > 0) ? sdk_url : null; in ElementDescriptor()
117 mTooltip = (tooltip != null && tooltip.length() > 0) ? tooltip : null; in ElementDescriptor()
118 mSdkUrl = (sdk_url != null && sdk_url.length() > 0) ? sdk_url : null; in ElementDescriptor()
172 mAttributes != null ? mAttributes.length : 0, in toString()
173 mChildren != null ? mChildren.length : 0, in toString()
314 return mChildren.length > 0; in hasChildren()
325 if (target != null && mChildren.length > 0) { in acceptChild()
443 if (c.length > 0) { in prettyName()
/sdk/templates/docs/
Dprettify.js2 …=="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-…
3length;c<i;++c){var j=f[c];if(/\\[bdsw]/i.test(j))a.push(j);else{var j=m(j),d;c+2<i&&"-"===f[c+1]?…
4length;++c)i=f[c],b.push(e(i[0])),i[1]>i[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]"…
5length>=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);r…
6length;p<d;++p){g=a[p];if(g.global||g.multiline)throw Error(""+g);n.push("(?:"+y(g)+")")}return Re…
7 …ction e(a){for(var l=a.d,p=[l,"pln"],d=0,g=a.a.match(y)||[],r={},n=0,z=g.length;n<z;++n){var f=g[n…
8length>=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;…
9length;d<g;++d){var r=e[d],n=r[3];if(n)for(var k=n.length;--k>=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p…
12 "");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/…
/sdk/eclipse/plugins/com.android.ide.eclipse.pdt/src/com/android/ide/eclipse/pdt/
DPdtPlugin.java74 if (devTree.length() == 0) { in getDevTree()
87 if (devTreeBin != null && devTreeBin.length() > 0) { in getAdbLocation()
100 if (devTreeBin != null && devTreeBin.length() > 0) { in getHprofConvLocation()
113 if (devTreeBin != null && devTreeBin.length() > 0) { in getTraceViewLocation()
123 if (devTree != null && devTree.length() > 0) { in getDevTreeOutBin()
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/state/transforms/
DTexImageTransform.java237 byte[] unsignedData = new byte[data.length]; in convertFloatToUnsigned()
239 for (int i = 0; i < data.length / 4; i++) { in convertFloatToUnsigned()
254 byte[] unsignedData = new byte[(shortData.length/2) * numChannels]; in convertShortToUnsigned()
256 for (int i = 0; i < (shortData.length / 2); i++) { in convertShortToUnsigned()
280 assert sourceData.length == 3 * width * height; // should have R, G & B channels in addAlphaChannel()
284 for (int src = 0, dst = 0; src < sourceData.length; src += 3, dst += 4) { in addAlphaChannel()
295 assert sourceData.length == width * height; // should have a single alpha channel in addRGBChannels()
299 for (int src = 0, dst = 0; src < sourceData.length; src++, dst += 4) { in addRGBChannels()
308 assert sourceData.length == width * height; // should have a single luminance channel in createRGBAFromLuminance()
312 for (int src = 0, dst = 0; src < sourceData.length; src++, dst += 4) { in createRGBAFromLuminance()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/uimodel/
DUiViewElementNode.java113 if (layout_attrs == null || layout_attrs.length == 0) { in getAttributeDescriptors()
118 new AttributeDescriptor[direct_attrs.length + in getAttributeDescriptors()
119 layout_attrs.length + in getAttributeDescriptors()
123 direct_attrs.length); in getAttributeDescriptors()
125 mCachedAttributeDescriptors, direct_attrs.length, in getAttributeDescriptors()
126 layout_attrs.length); in getAttributeDescriptors()
129 mCachedAttributeDescriptors[direct_attrs.length + layout_attrs.length] = desc; in getAttributeDescriptors()
153 if (className != null && className.length() > 0) { in getIcon()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newproject/
DNewProjectWizardState.java222 if (activities != null && activities.length > 0) { in extractFromAndroidManifest()
230 if (newPackageName != null && newPackageName.length() > 0) { in extractFromAndroidManifest()
239 if (newActivityName != null && newActivityName.length() > 0) { in extractFromAndroidManifest()
249 newActivityName = ids[ids.length - 1]; in extractFromAndroidManifest()
251 if (projectName == null || projectName.length() == 0 || in extractFromAndroidManifest()
256 if (applicationName == null || applicationName.length() == 0 || in extractFromAndroidManifest()
266 if (newPackageName != null && newPackageName.length() > 0) { in extractFromAndroidManifest()
270 if (applicationName == null || applicationName.length() == 0 || in extractFromAndroidManifest()
277 if (projectName == null || projectName.length() == 0 || in extractFromAndroidManifest()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/extractstring/
DExtractStringProposal.java59 int length = coveringNode.getLength(); in apply() local
60 ITextSelection selection = new TextSelection(start, length); in apply()
84 int length = coveringNode.getLength(); in getAdditionalProposalInfo() local
87 String string = buffer.getText(start, length); in getAdditionalProposalInfo()
108 i = start + length; in getAdditionalProposalInfo()
116 String lineSuffix = buffer.getText(start + length, i - (start + length)); in getAdditionalProposalInfo()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/graphics/
DNinePatchedImage.java153 int yLen = patchChunks.length; in recycleChunks()
154 int xLen = patchChunks[0].length; in recycleChunks()
175 int yLen = projections.length; in recycleProjections()
178 xLen = projections[0].length; in recycleProjections()
192 int len = array.length; in initArray()
224 if (index == 0 || index == pixels.length - 1) { in ensurePixel()
381 len = pixels.length - 1; in findPatches()
498 len = pixels.length - 1; in findContentArea()
541 len = mHorizontalPatchPixels.length; in getRawImageData()
550 len = mVerticalPatchPixels.length; in getRawImageData()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/
DWidgetPullParser.java48 mAttributes[0][1] = segments[segments.length-1]; in WidgetPullParser()
73 return mAttributes.length; // text attribute in getAttributeCount()
78 if (index < mAttributes.length) { in getAttributeName()
98 if (index < mAttributes.length) { in getAttributeValue()

12345678910>>...15