Home
last modified time | relevance | path

Searched refs:start (Results 1 – 25 of 301) sorted by relevance

12345678910>>...13

/dalvik/libcore/text/src/main/java/java/text/
DStringCharacterIterator.java29 int start, end, offset; field in StringCharacterIterator
42 start = offset = 0; in StringCharacterIterator()
63 start = 0; in StringCharacterIterator()
89 public StringCharacterIterator(String value, int start, int end, in StringCharacterIterator() argument
92 if (start < 0 || end > string.length() || start > end in StringCharacterIterator()
93 || location < start || location > end) { in StringCharacterIterator()
96 this.start = start; in StringCharacterIterator()
151 return string.equals(it.string) && start == it.start && end == it.end in equals()
164 if (start == end) { in first()
167 offset = start; in first()
[all …]
DAttributedString.java46 int start; field in AttributedString.Range
53 start = s; in Range()
162 return range.start >= begin && range.start < end in inRange()
170 if (range.start >= begin && range.start < end) { in inRange()
175 || (range.start >= begin && range.start < end); in inRange()
214 if (offset >= range.start && offset < range.end) { in currentValue()
265 if (offset >= range.start && offset < range.end) { in runLimit()
270 result = range.start; in runLimit()
310 if (range.start >= end) { in runStart()
313 if (offset >= range.start && offset < range.end) { in runStart()
[all …]
/dalvik/libcore/luni/src/main/java/java/lang/
DAbstractStringBuilder.java131 final void append0(char chars[], int start, int length) { in append0() argument
136 if (start >= 0 && 0 <= length && length <= chars.length - start) { in append0()
144 System.arraycopy(chars, start, value, count, length); in append0()
181 final void append0(CharSequence s, int start, int end) { in append0() argument
185 if (start < 0 || end < 0 || start > end || end > s.length()) { in append0()
190 int adding = end - start; in append0()
201 ((String) s)._getChars(start, end, value, count); in append0()
205 for (int i = start; i < end; i++) { in append0()
242 final void delete0(int start, int end) { in delete0() argument
243 if (start >= 0) { in delete0()
[all …]
DStringBuffer.java281 public synchronized StringBuffer append(char chars[], int start, int length) { in append() argument
282 append0(chars, start, length); in append()
328 public synchronized StringBuffer append(CharSequence s, int start, int end) { in append() argument
329 append0(s, start, end); in append()
384 public synchronized StringBuffer delete(int start, int end) { in delete() argument
385 delete0(start, end); in delete()
427 public synchronized void getChars(int start, int end, char[] buffer, int idx) { in getChars() argument
428 super.getChars(start, end, buffer, idx); in getChars()
432 public synchronized int indexOf(String subString, int start) { in indexOf() argument
433 return super.indexOf(subString, start); in indexOf()
[all …]
DString.java235 public String(byte[] data, int start, int length) { in String() argument
237 if (start >= 0 && 0 <= length && length <= data.length - start) { in String()
242 .decode(ByteBuffer.wrap(data, start, length)); in String()
276 public String(byte[] data, int high, int start, int length) { in String() argument
279 if (start >= 0 && 0 <= length && length <= data.length - start) { in String()
285 value[i] = (char) (high + (data[start++] & 0xff)); in String()
313 public String(byte[] data, int start, int length, final String encoding) in String() argument
319 if (start >= 0 && 0 <= length && length <= data.length - start) { in String()
328 value[i] = (char) (data[start++] & 0xff); in String()
341 int idx = start, last = start + length, s = 0; in String()
[all …]
/dalvik/libcore/text/src/main/java/org/apache/harmony/text/
DBidiRun.java24 private final int start; field in BidiRun
30 public BidiRun(int start, int limit, int level) { in BidiRun() argument
31 this.start = start; in BidiRun()
45 return start; in getStart()
51 : this.start == ((BidiRun) o).start in equals()
/dalvik/dx/src/com/android/dx/dex/code/
DCatchTable.java97 private final int start; field in CatchTable.Entry
112 public Entry(int start, int end, CatchHandlerList handlers) { in Entry() argument
113 if (start < 0) { in Entry()
117 if (end <= start) { in Entry()
125 this.start = start; in Entry()
133 int hash = (start * 31) + end; in hashCode()
150 if (start < other.start) { in compareTo()
152 } else if (start > other.start) { in compareTo()
171 return start; in getStart()
/dalvik/libdex/
DSysUtil.c69 off_t start, end; in getFileStartAndLength() local
75 start = lseek(fd, 0L, SEEK_CUR); in getFileStartAndLength()
77 (void) lseek(fd, start, SEEK_SET); in getFileStartAndLength()
79 if (start == (off_t) -1 || end == (off_t) -1) { in getFileStartAndLength()
84 length = end - start; in getFileStartAndLength()
90 *start_ = start; in getFileStartAndLength()
106 off_t start; in sysLoadFileInShmem() local
112 if (getFileStartAndLength(fd, &start, &length) < 0) in sysLoadFileInShmem()
146 off_t start; in sysMapFileInShmem() local
152 if (getFileStartAndLength(fd, &start, &length) < 0) in sysMapFileInShmem()
[all …]
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/net/
DNetUtil.java96 static void intToBytes(int value, byte bytes[], int start) { in intToBytes() argument
101 bytes[start] = (byte) ((value >> 24) & 255); in intToBytes()
102 bytes[start + 1] = (byte) ((value >> 16) & 255); in intToBytes()
103 bytes[start + 2] = (byte) ((value >> 8) & 255); in intToBytes()
104 bytes[start + 3] = (byte) (value & 255); in intToBytes()
107 static int bytesToInt(byte bytes[], int start) { in bytesToInt() argument
114 int value = ((bytes[start + 3] & 255)) | ((bytes[start + 2] & 255) << 8) in bytesToInt()
115 | ((bytes[start + 1] & 255) << 16) | ((bytes[start] & 255) << 24); in bytesToInt()
/dalvik/tools/
Ddeadcode.py19 start = 0
25 result = headerPattern.search(buffer, start)
36 sections[sectionName] = buffer[anchor:result.start()]
39 start = result.end()
40 anchor = start
53 start = 0
58 result = methodPattern.search(section, start)
65 start = result.end()
72 start = 0
76 match = codes.find(method, start)
[all …]
/dalvik/tests/028-array-write/src/
DMain.java13 static public void report(long start, long end) { in report() argument
18 System.out.println("Finished in " + ((end - start) / 1000000.0) in report()
28 long start, end; in writeTest() local
33 start = System.nanoTime(); in writeTest()
38 report(start, end); in writeTest()
42 long start, end; in copyTest() local
49 start = System.nanoTime(); in copyTest()
56 report(start, end); in copyTest()
/dalvik/dx/src/com/android/dx/util/
DByteArray.java34 private final int start; field in ByteArray
48 public ByteArray(byte[] bytes, int start, int end) { in ByteArray() argument
53 if (start < 0) { in ByteArray()
57 if (end < start) { in ByteArray()
66 this.start = start; in ByteArray()
67 this.size = end - start; in ByteArray()
96 public ByteArray slice(int start, int end) { in slice() argument
97 checkOffsets(start, end); in slice()
98 return new ByteArray(bytes, start + this.start, end + this.start); in slice()
116 return start + offset; in underlyingOffset()
[all …]
/dalvik/dx/src/com/android/dx/cf/code/
DByteBlock.java31 private final int start; field in ByteBlock
55 public ByteBlock(int label, int start, int end, IntList successors, in ByteBlock() argument
61 if (start < 0) { in ByteBlock()
65 if (end <= start) { in ByteBlock()
87 this.start = start; in ByteBlock()
96 return '{' + Hex.u2(label) + ": " + Hex.u2(start) + ".." + in toString()
115 return start; in getStart()
/dalvik/libcore/security/src/main/java/org/bouncycastle/asn1/
DBERConstructedOctetString.java91 int start = 0; in generateOcts() local
99 byte[] nStr = new byte[end - start + 1]; in generateOcts()
101 System.arraycopy(string, start, nStr, 0, nStr.length); in generateOcts()
104 start = end + 1; in generateOcts()
109 byte[] nStr = new byte[string.length - start]; in generateOcts()
111 System.arraycopy(string, start, nStr, 0, nStr.length); in generateOcts()
140 int start = 0; in encode() local
147 byte[] nStr = new byte[end - start + 1]; in encode()
149 System.arraycopy(string, start, nStr, 0, nStr.length); in encode()
152 start = end + 1; in encode()
[all …]
/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/
DCopyOnWriteArrayList.java506 final int removeAll(Collection c, int start, int size) { in removeAll() argument
518 for (int i = start; i < (start + size); i++) { in removeAll()
525 System.arraycopy(old, 0, result, 0, start); in removeAll()
526 System.arraycopy(data, 0, result, start, j); in removeAll()
527 System.arraycopy(old, start + size, result, start + j, arrsize in removeAll()
528 - (start + size)); in removeAll()
542 int retainAll(Collection c, int start, int size) { in retainAll() argument
553 System.arraycopy(old, 0, data, 0, start); in retainAll()
554 System.arraycopy(old, start + size, data, start, old.length in retainAll()
555 - start - size); in retainAll()
[all …]
/dalvik/libcore/luni/src/main/java/java/util/
DAbstractList.java91 FullListIterator(int start) { in FullListIterator() argument
93 if (0 <= start && start <= size()) { in FullListIterator()
94 pos = start - 1; in FullListIterator()
158 SubAbstractListRandomAccess(AbstractList<E> list, int start, int end) { in SubAbstractListRandomAccess() argument
159 super(list, start, end); in SubAbstractListRandomAccess()
176 private int start; field in AbstractList.SubAbstractList.SubAbstractListIterator
185 start = offset; in SubAbstractListIterator()
186 end = start + length; in SubAbstractListIterator()
200 return iterator.previousIndex() >= start; in hasPrevious()
211 return iterator.nextIndex() - start; in nextIndex()
[all …]
DArrays.java501 public static void fill(byte[] array, int start, int end, byte value) { in fill() argument
504 if (start > end) { in fill()
507 if (start < 0 || end > length) { in fill()
510 for (int i = start; i < end; i++) { in fill()
547 public static void fill(short[] array, int start, int end, short value) { in fill() argument
550 if (start > end) { in fill()
553 if (start < 0 || end > length) { in fill()
556 for (int i = start; i < end; i++) { in fill()
593 public static void fill(char[] array, int start, int end, char value) { in fill() argument
596 if (start > end) { in fill()
[all …]
/dalvik/libcore/support/src/test/java/tests/support/
DSupport_Format.java87 int start = iterator.getRunStart(); in findFields() local
94 result.add(new FieldContainer(start, end, attribute, value)); in findFields()
106 int start, end; field in Support_Format.FieldContainer
113 public FieldContainer(int start, int end, in FieldContainer() argument
115 this(start, end, attribute, attribute); in FieldContainer()
119 public FieldContainer(int start, int end, Attribute attribute, int value) { in FieldContainer() argument
120 this(start, end, attribute, new Integer(value)); in FieldContainer()
124 public FieldContainer(int start, int end, Attribute attribute, in FieldContainer() argument
126 this.start = start; in FieldContainer()
139 return (start == fc.start && end == fc.end in equals()
/dalvik/libcore/nio/src/main/java/java/nio/
DCharBuffer.java96 public static CharBuffer wrap(char[] array, int start, int len) { in wrap() argument
98 if ((start < 0) || (len < 0) in wrap()
99 || (long) start + (long) len > length) { in wrap()
104 buf.position = start; in wrap()
105 buf.limit = start + len; in wrap()
147 public static CharBuffer wrap(CharSequence chseq, int start, int end) { in wrap() argument
151 if (start < 0 || end < start || end > chseq.length()) { in wrap()
156 result.position = start; in wrap()
689 public CharBuffer put(String str, int start, int end) { in put() argument
691 if (start < 0 || end < start || end > length) { in put()
[all …]
/dalvik/libcore/luni/src/main/java/java/net/
DURLEncoder.java104 int start = -1; in encode() local
109 if (start >= 0) { in encode()
110 convert(s.substring(start, i), buf, enc); in encode()
111 start = -1; in encode()
119 if (start < 0) { in encode()
120 start = i; in encode()
124 if (start >= 0) { in encode()
125 convert(s.substring(start, s.length()), buf, enc); in encode()
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/encodings/
DPKCS1Encoding.java194 int start; in decodeBlock() local
196 for (start = 1; start != block.length; start++) in decodeBlock()
198 byte pad = block[start]; in decodeBlock()
210 start++; // data should start at the next byte in decodeBlock()
212 if (start >= block.length || start < HEADER_LENGTH) in decodeBlock()
217 byte[] result = new byte[block.length - start]; in decodeBlock()
219 System.arraycopy(block, start, result, 0, result.length); in decodeBlock()
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/util/
DFloatingPointParser.java99 int start, end, decimal; in initialParse() local
102 start = 0; in initialParse()
141 c = s.charAt(start); in initialParse()
143 ++start; in initialParse()
147 ++start; in initialParse()
156 s = s.substring(start, decimal) + s.substring(decimal + 1, end); in initialParse()
158 s = s.substring(start, end); in initialParse()
168 start = 0; in initialParse()
169 while (start < end - 1 && s.charAt(start) == '0') in initialParse()
170 start++; in initialParse()
[all …]
/dalvik/libcore/luni-kernel/src/test/java/tests/api/org/apache/harmony/kernel/dalvik/
DThreadsTest.java70 parkerThread.start(); in test_parkFor_1()
71 waiterThread.start(); in test_parkFor_1()
89 parkerThread.start(); in test_parkFor_2()
90 waiterThread.start(); in test_parkFor_2()
107 parkerThread.start(); in test_parkFor_3()
125 parkerThread.start(); in test_parkUntil_1()
126 waiterThread.start(); in test_parkUntil_1()
144 parkerThread.start(); in test_parkUntil_2()
145 waiterThread.start(); in test_parkUntil_2()
162 parkerThread.start(); in test_parkUntil_3()
[all …]
/dalvik/libcore/regex/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
DMatcher2Test.java97 m.start(); in testErrorConditions()
115 m.start(1); in testErrorConditions()
179 assertEquals(0, m.start()); in testErrorConditions2()
181 assertEquals(0, m.start(1)); in testErrorConditions2()
183 assertEquals(4, m.start(2)); in testErrorConditions2()
187 m.start(3); in testErrorConditions2()
205 m.start(-1); in testErrorConditions2()
223 assertEquals(8, m.start()); in testErrorConditions2()
225 assertEquals(8, m.start(1)); in testErrorConditions2()
227 assertEquals(12, m.start(2)); in testErrorConditions2()
[all …]
/dalvik/libcore/regex/src/main/java/java/util/regex/
DMatchResultImpl.java54 return text.substring(start(), end()); in group()
71 public int start() { in start() method in MatchResultImpl
72 return start(0); in start()
75 public int start(int group) { in start() method in MatchResultImpl

12345678910>>...13