/dalvik/libcore/support/src/test/java/tests/support/ |
D | Support_StringReader.java | 30 private int count; field in Support_StringReader 43 this.count = str.length(); in Support_StringReader() 121 if (pos != count) { in read() 148 public int read(char buf[], int offset, int count) throws IOException { in read() argument 150 if (0 <= offset && offset <= buf.length && 0 <= count in read() 151 && count <= buf.length - offset) { in read() 154 if (pos == this.count) { in read() 157 int end = pos + count > this.count ? this.count : pos in read() 158 + count; in read() 228 public long skip(long count) throws IOException { in skip() argument [all …]
|
/dalvik/libcore/luni/src/main/java/java/lang/ |
D | AbstractStringBuilder.java | 40 private int count; field in AbstractStringBuilder 72 count = len; in set() 87 count = string.length(); in AbstractStringBuilder() 89 value = new char[count + INITIAL_CAPACITY]; in AbstractStringBuilder() 91 string._getChars(0, count, value, 0); in AbstractStringBuilder() 98 System.arraycopy(value, 0, newData, 0, count); in enlargeBuffer() 104 int newSize = count + 4; in appendNull() 108 value[count++] = 'n'; in appendNull() 109 value[count++] = 'u'; in appendNull() 110 value[count++] = 'l'; in appendNull() [all …]
|
D | String.java | 147 private final int count; field in String 168 count = 0; in String() 177 value = new char[s.count + 1]; in String() 178 count = s.count + 1; in String() 179 System.arraycopy(s.value, s.offset, value, 0, s.count); in String() 180 value[s.count] = c; in String() 242 count = result; in String() 244 count = 0; in String() 279 count = length; in String() 281 for (int i = 0; i < count; i++) { in String() [all …]
|
D | Integer.java | 415 int count = 1, j = i; in toBinaryString() local 418 count = 32; in toBinaryString() 421 count++; in toBinaryString() 425 char[] buffer = new char[count]; in toBinaryString() 427 buffer[--count] = (char) ((i & 1) + '0'); in toBinaryString() 429 } while (count > 0); in toBinaryString() 443 int count = 1, j = i; in toHexString() local 446 count = 8; in toHexString() 449 count++; in toHexString() 453 char[] buffer = new char[count]; in toHexString() [all …]
|
/dalvik/libcore/luni/src/main/java/java/io/ |
D | ByteArrayOutputStream.java | 39 protected int count; field in ByteArrayOutputStream 89 if (count + i <= buf.length) { in expand() 93 byte[] newbuf = new byte[(count + i) * 2]; in expand() 94 System.arraycopy(buf, 0, newbuf, 0, count); in expand() 104 count = 0; in reset() 113 return count; in size() 124 byte[] newArray = new byte[count]; in toByteArray() 125 System.arraycopy(buf, 0, newArray, 0, count); in toByteArray() 139 return new String(buf, 0, count); in toString() 177 return new String(buf, 0, count, enc); in toString() [all …]
|
D | PushbackReader.java | 179 public int read(char[] buffer, int offset, int count) throws IOException { in read() argument 193 if ((offset | count) < 0 || offset > buffer.length - count) { in read() 203 copyLength = (buf.length - pos >= count) ? count : buf.length in read() 212 if (copyLength == count) { in read() 213 return count; in read() 215 int inCopied = in.read(buffer, newOffset, count - copiedChars); in read() 314 public void unread(char[] buffer, int offset, int count) throws IOException { in unread() argument 319 if (count > pos) { in unread() 332 if ((offset | count) < 0 || offset > buffer.length - count) { in unread() 336 for (int i = offset + count - 1; i >= offset; i--) { in unread() [all …]
|
D | BufferedOutputStream.java | 51 protected int count; field in BufferedOutputStream 164 if (length >= (buf.length - count)) { in write() 169 System.arraycopy(buffer, offset, buf, count, length); in write() 170 count += length; in write() 187 if (count == buf.length) { in write() 188 out.write(buf, 0, count); in write() 189 count = 0; in write() 191 buf[count++] = (byte) oneByte; in write() 198 if (count > 0) { in flushInternal() 199 out.write(buf, 0, count); in flushInternal() [all …]
|
D | BufferedWriter.java | 194 public void write(char[] cbuf, int offset, int count) throws IOException { in write() argument 207 if ((offset | count) < 0 || offset > cbuf.length - count) { in write() 211 if (pos == 0 && count >= this.buf.length) { in write() 212 out.write(cbuf, offset, count); in write() 216 if (count < available) { in write() 217 available = count; in write() 226 if (count > available) { in write() 228 available = count - available; in write() 286 public void write(String str, int offset, int count) throws IOException { in write() argument 291 if (count <= 0) { in write() [all …]
|
D | CharArrayWriter.java | 40 protected int count; field in CharArrayWriter 82 if (count + i <= buf.length) { in expand() 86 int newLen = Math.max(2 * buf.length, count + i); in expand() 88 System.arraycopy(buf, 0, newbuf, 0, count); in expand() 107 count = 0; in reset() 120 return count; in size() 133 char[] result = new char[count]; in toCharArray() 134 System.arraycopy(buf, 0, result, 0, count); in toCharArray() 149 return new String(buf, 0, count); in toString() 186 System.arraycopy(c, offset, this.buf, this.count, len); in write() [all …]
|
D | StringBufferInputStream.java | 38 protected int count; field in StringBufferInputStream 60 count = str.length(); in StringBufferInputStream() 71 return count - pos; in available() 84 return pos < count ? buffer.charAt(pos++) & 0xFF : -1; in read() 114 if (pos >= count) { in read() 134 int copylen = count - pos < length ? count - pos : length; in read() 167 if (this.count - pos < n) { 168 numskipped = this.count - pos; 169 pos = this.count;
|
D | ByteArrayInputStream.java | 50 protected int count; field in ByteArrayInputStream 62 this.count = buf.length; in ByteArrayInputStream() 84 count = offset + length > buf.length ? buf.length : offset + length; in ByteArrayInputStream() 96 return count - pos; in available() 148 return pos < count ? buf[pos++] & 0xFF : -1; in read() 191 if (this.pos >= this.count) { in read() 198 int copylen = this.count - pos < length ? this.count - pos : length; in read() 232 pos = this.count - pos < n ? this.count : (int) (pos + n);
|
D | BufferedReader.java | 51 private int count; field in BufferedReader 130 count = result == -1 ? 0 : result; in fillbuf() 149 count = markpos = 0; in fillbuf() 151 count = charsread == -1 ? pos : pos + charsread; in fillbuf() 227 if (pos < count || fillbuf() != -1) { in read() 283 if (pos < count) { in read() 285 int copylength = count - pos >= length ? length : count - pos; in read() 312 read = count - pos >= required ? required : count - pos; in read() 345 if ((pos >= count) && (fillbuf() == -1)) { in readLine() 348 for (int charPos = pos; charPos < count; charPos++) { in readLine() [all …]
|
D | PipedReader.java | 195 public int read(char[] buffer, int offset, int count) throws IOException { in read() argument 213 if ((offset | count) < 0 || count > buffer.length - offset) { in read() 217 if (count == 0) { in read() 248 copyLength = count > data.length - out ? data.length - out in read() 249 : count; in read() 266 if (copyLength == count || in == -1) { in read() 272 copyLength = in - out > count - copyLength ? count - copyLength in read() 385 void receive(char[] chars, int offset, int count) throws IOException { in receive() argument 399 while (count > 0) { in receive() 421 if (count < length) { in receive() [all …]
|
D | CharArrayReader.java | 46 protected int count; field in CharArrayReader 59 this.count = buf.length; in CharArrayReader() 97 this.count = this.pos + length < buf.length ? length : buf.length; in CharArrayReader() 182 if (pos == count) { 234 if (pos < this.count) { 235 int bytesRead = pos + len > this.count ? this.count - pos : len; 262 return pos != count; 306 if (n < this.count - pos) { 310 skipped = this.count - pos; 311 pos = this.count;
|
D | Reader.java | 170 public abstract int read(char[] buf, int offset, int count) in read() argument 226 public long skip(long count) throws IOException { in skip() argument 227 if (count < 0) { in skip() 232 int toRead = count < 512 ? (int) count : 512; in skip() 234 while (skipped < count) { in skip() 243 if (count - skipped < toRead) { in skip() 244 toRead = (int) (count - skipped); in skip()
|
D | BufferedInputStream.java | 51 protected int count; field in BufferedInputStream 133 return count - pos + localIn.available(); in available() 161 count = result == -1 ? 0 : result; in fillbuf() 182 count = markpos = 0; in fillbuf() 184 count = bytesread <= 0 ? pos : pos + bytesread; in fillbuf() 243 if (pos >= count && fillbuf(localIn, localBuf) == -1) { in read() 256 if (count - pos > 0) { in read() 320 if (pos < count) { in read() 322 int copylength = count - pos >= length ? length : count - pos; in read() 358 read = count - pos >= required ? required : count - pos; in read() [all …]
|
/dalvik/vm/ |
D | PointerSet.c | 26 u2 count; member 38 for (i = 0; i < pSet->count; i++) { in verifySorted() 91 pSet->count = 0; in dvmPointerSetClear() 99 return pSet->count; in dvmPointerSetGetCount() 124 if (pSet->count == pSet->alloc) { in dvmPointerSetAddEntry() 141 if (pSet->count == 0) { in dvmPointerSetAddEntry() 165 if (nearby != pSet->count) { in dvmPointerSetAddEntry() 168 (pSet->count - nearby) * sizeof(pSet->list[0])); in dvmPointerSetAddEntry() 173 pSet->count++; in dvmPointerSetAddEntry() 189 if (where != pSet->count-1) { in dvmPointerSetRemoveEntry() [all …]
|
/dalvik/dx/src/com/android/dx/util/ |
D | Leb128Utils.java | 41 int count = 0; in unsignedLeb128Size() local 45 count++; in unsignedLeb128Size() 48 return count + 1; in unsignedLeb128Size() 62 int count = 0; in signedLeb128Size() local 72 count++; in signedLeb128Size() 75 return count; in signedLeb128Size()
|
/dalvik/tools/dexdeps/src/com/android/dexdeps/ |
D | DexData.java | 130 int count = mHeaderItem.stringIdsSize; in loadStrings() local 131 int stringOffsets[] = new int[count]; in loadStrings() 136 for (int i = 0; i < count; i++) { in loadStrings() 140 mStrings = new String[count]; in loadStrings() 143 for (int i = 0; i < count; i++) { in loadStrings() 154 int count = mHeaderItem.typeIdsSize; in loadTypeIds() local 155 mTypeIds = new TypeIdItem[count]; in loadTypeIds() 159 for (int i = 0; i < count; i++) { in loadTypeIds() 172 int count = mHeaderItem.protoIdsSize; in loadProtoIds() local 173 mProtoIds = new ProtoIdItem[count]; in loadProtoIds() [all …]
|
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/paddings/ |
D | ISO7816d4Padding.java | 63 int count = in.length - 1; in padCount() local 65 while (count > 0 && in[count] == 0) in padCount() 67 count--; in padCount() 70 if (in[count] != (byte)0x80) in padCount() 75 return in.length - count; in padCount()
|
/dalvik/vm/test/ |
D | TestHash.c | 36 int* count = (int*) arg; in printFunc() local 37 (*count)++; in printFunc() 42 int count = 0; in dumpForeach() local 45 dvmHashForeach(pTab, printFunc, &count); in dumpForeach() 46 if (count != kNumTestEntries) { in dumpForeach() 57 int count = 0; in dumpIterator() local 67 count++; in dumpIterator() 69 if (count != kNumTestEntries) { in dumpIterator() 158 int count = 0; in dvmTestHash() local 163 count++; in dvmTestHash() [all …]
|
/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/ |
D | ArrayBlockingQueue.java | 64 private int count; field in ArrayBlockingQueue 94 ++count; in insert() 107 --count; in extract() 136 --count; in removeAt() 225 if (count == items.length) in offer() 250 while (count == items.length) in put() 279 if (count != items.length) { in offer() 301 if (count == 0) in poll() 315 while (count == 0) in take() 334 if (count != 0) { in poll() [all …]
|
D | LinkedBlockingQueue.java | 76 private final AtomicInteger count = new AtomicInteger(0); field in LinkedBlockingQueue 208 return count.get(); in size() 225 return capacity - count.get(); in remainingCapacity() 241 final AtomicInteger count = this.count; in put() local 254 while (count.get() == capacity) in put() 261 c = count.getAndIncrement(); in put() 287 final AtomicInteger count = this.count; in offer() local 291 if (count.get() < capacity) { in offer() 293 c = count.getAndIncrement(); in offer() 328 final AtomicInteger count = this.count; in offer() local [all …]
|
/dalvik/libdex/ |
D | DexDataMap.c | 50 map->count = 0; in dexDataMapAlloc() 76 assert(map->count < map->max); in dexDataMapAdd() 78 if ((map->count != 0) && in dexDataMapAdd() 79 (map->offsets[map->count - 1] >= offset)) { in dexDataMapAdd() 81 map->offsets[map->count - 1], offset); in dexDataMapAdd() 85 map->offsets[map->count] = offset; in dexDataMapAdd() 86 map->types[map->count] = type; in dexDataMapAdd() 87 map->count++; in dexDataMapAdd() 99 int max = map->count - 1; in dexDataMapGet()
|
/dalvik/libcore/archive/src/test/java/org/apache/harmony/archive/tests/java/util/jar/ |
D | JarInputStreamTest.java | 228 int count = 0; in test_JarInputStream_Integrate_Jar_getNextEntry() local 229 while (count == 0 || entry != null) { in test_JarInputStream_Integrate_Jar_getNextEntry() 230 count++; in test_JarInputStream_Integrate_Jar_getNextEntry() 233 assertEquals(totalEntries + 1, count); in test_JarInputStream_Integrate_Jar_getNextEntry() 250 int count = 0; in test_JarInputStream_Modified_Class_getNextEntry() local 251 while (count == 0 || zipEntry != null) { in test_JarInputStream_Modified_Class_getNextEntry() 252 count++; in test_JarInputStream_Modified_Class_getNextEntry() 255 if (count == indexofTESTCLASS + 1) { in test_JarInputStream_Modified_Class_getNextEntry() 259 if (count != indexofTESTCLASS + 1) { in test_JarInputStream_Modified_Class_getNextEntry() 265 assertEquals(totalEntries + 2, count); in test_JarInputStream_Modified_Class_getNextEntry() [all …]
|