/dalvik/libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/ |
D | ByteBufferTest.java | 48 protected ByteBuffer buf; field in ByteBufferTest 52 buf = ByteBuffer.allocate(BUFFER_LENGTH); in setUp() 53 loadTestData1(buf); in setUp() 54 baseBuf = buf; in setUp() 59 buf = null; in tearDown() 153 byte array[] = buf.array(); in testArray() 154 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 156 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArray() 157 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 159 loadTestData2(array, buf.arrayOffset(), buf.capacity()); in testArray() [all …]
|
D | FloatBufferTest.java | 43 protected FloatBuffer buf; field in FloatBufferTest 47 buf = FloatBuffer.allocate(BUFFER_LENGTH); in setUp() 48 loadTestData1(buf); in setUp() 49 baseBuf = buf; in setUp() 53 buf = null; in tearDown() 127 float array[] = buf.array(); in testArray() 128 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 130 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArray() 131 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 133 loadTestData2(array, buf.arrayOffset(), buf.capacity()); in testArray() [all …]
|
D | IntBufferTest.java | 44 protected IntBuffer buf; field in IntBufferTest 48 buf = IntBuffer.allocate(BUFFER_LENGTH); in setUp() 49 loadTestData1(buf); in setUp() 50 baseBuf = buf; in setUp() 54 buf = null; in tearDown() 102 int array[] = buf.array(); in testArray() 103 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 105 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArray() 106 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 108 loadTestData2(array, buf.arrayOffset(), buf.capacity()); in testArray() [all …]
|
D | ShortBufferTest.java | 43 protected ShortBuffer buf; field in ShortBufferTest 47 buf = ShortBuffer.allocate(BUFFER_LENGTH); in setUp() 48 loadTestData1(buf); in setUp() 49 baseBuf = buf; in setUp() 53 buf = null; in tearDown() 101 short array[] = buf.array(); in testArray() 102 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 104 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArray() 105 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 107 loadTestData2(array, buf.arrayOffset(), buf.capacity()); in testArray() [all …]
|
D | LongBufferTest.java | 43 protected LongBuffer buf; field in LongBufferTest 47 buf = LongBuffer.allocate(BUFFER_LENGTH); in setUp() 48 loadTestData1(buf); in setUp() 49 baseBuf = buf; in setUp() 53 buf = null; in tearDown() 101 long array[] = buf.array(); in testArray() 102 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 104 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArray() 105 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 107 loadTestData2(array, buf.arrayOffset(), buf.capacity()); in testArray() [all …]
|
D | DoubleBufferTest.java | 42 protected DoubleBuffer buf; field in DoubleBufferTest 46 buf = DoubleBuffer.allocate(BUFFER_LENGTH); in setUp() 47 loadTestData1(buf); in setUp() 48 baseBuf = buf; in setUp() 52 buf = null; in tearDown() 131 double array[] = buf.array(); in testArray() 132 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 134 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArray() 135 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 137 loadTestData2(array, buf.arrayOffset(), buf.capacity()); in testArray() [all …]
|
D | CharBufferTest.java | 44 protected CharBuffer buf; field in CharBufferTest 52 buf = CharBuffer.wrap(charscopy); in setUp() 53 baseBuf = buf; in setUp() 57 buf = null; in tearDown() 106 char array[] = buf.array(); in testArray() 107 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 109 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArray() 110 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 112 loadTestData2(array, buf.arrayOffset(), buf.capacity()); in testArray() 113 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() [all …]
|
D | ReadOnlyCharBufferTest.java | 30 buf = buf.asReadOnlyBuffer(); in setUp() 31 baseBuf = buf; in setUp() 45 assertTrue(buf.isReadOnly()); in testIsReadOnly() 55 assertFalse(buf.hasArray()); in testHasArray() 66 buf.array(); in testArray() 79 CharBuffer duplicate = buf.duplicate(); in testHashCode() 80 assertEquals(buf.hashCode(), duplicate.hashCode()); in testHashCode() 91 buf.arrayOffset(); in testArrayOffset() 105 buf.compact(); in testCompact() 120 buf.put((char) 0); in testPutchar() [all …]
|
D | ReadOnlyLongBufferTest.java | 29 buf = buf.asReadOnlyBuffer(); in setUp() 30 baseBuf = buf; in setUp() 44 assertTrue(buf.isReadOnly()); in testIsReadOnly() 54 assertFalse(buf.hasArray()); in testHasArray() 65 buf.array(); in testArray() 79 LongBuffer duplicate = buf.duplicate(); in testHashCode() 80 assertEquals(buf.hashCode(), duplicate.hashCode()); in testHashCode() 91 buf.arrayOffset(); in testArrayOffset() 106 buf.compact(); in testCompact() 121 buf.put(0); in testPutlong() [all …]
|
D | ReadOnlyDoubleBufferTest.java | 30 buf = buf.asReadOnlyBuffer(); in setUp() 31 baseBuf = buf; in setUp() 45 assertTrue(buf.isReadOnly()); in testIsReadOnly() 55 assertFalse(buf.hasArray()); in testHasArray() 66 buf.array(); in testArray() 79 DoubleBuffer duplicate = buf.duplicate(); in testHashCode() 80 assertEquals(buf.hashCode(), duplicate.hashCode()); in testHashCode() 91 buf.arrayOffset(); in testArrayOffset() 105 buf.compact(); in testCompact() 120 buf.put(0); in testPutdouble() [all …]
|
D | ReadOnlyFloatBufferTest.java | 29 buf = buf.asReadOnlyBuffer(); in setUp() 30 baseBuf = buf; in setUp() 44 assertTrue(buf.isReadOnly()); in testIsReadOnly() 54 assertFalse(buf.hasArray()); in testHasArray() 65 buf.array(); in testArray() 79 FloatBuffer duplicate = buf.duplicate(); in testHashCode() 80 assertEquals(buf.hashCode(), duplicate.hashCode()); in testHashCode() 91 buf.arrayOffset(); in testArrayOffset() 106 buf.compact(); in testCompact() 121 buf.put(0); in testPutfloat() [all …]
|
D | ReadOnlyIntBufferTest.java | 29 buf = buf.asReadOnlyBuffer(); in setUp() 30 baseBuf = buf; in setUp() 44 assertTrue(buf.isReadOnly()); in testIsReadOnly() 54 assertFalse(buf.hasArray()); in testHasArray() 65 buf.array(); in testArray() 79 IntBuffer duplicate = buf.duplicate(); in testHashCode() 80 assertEquals(buf.hashCode(), duplicate.hashCode()); in testHashCode() 91 buf.arrayOffset(); in testArrayOffset() 106 buf.compact(); in testCompact() 121 buf.put(0); in testPutint() [all …]
|
D | ReadOnlyShortBufferTest.java | 29 buf = buf.asReadOnlyBuffer(); in setUp() 30 baseBuf = buf; in setUp() 44 assertTrue(buf.isReadOnly()); in testIsReadOnly() 54 assertFalse(buf.hasArray()); in testHasArray() 65 buf.array(); in testArray() 79 ShortBuffer duplicate = buf.duplicate(); in testHashCode() 80 assertEquals(buf.hashCode(), duplicate.hashCode()); in testHashCode() 91 buf.arrayOffset(); in testArrayOffset() 106 buf.compact(); in testCompact() 121 buf.put((short)0); in testPutshort() [all …]
|
/dalvik/libcore/security/src/main/java/org/bouncycastle/i18n/filter/ |
D | HTMLFilter.java | 12 StringBuffer buf = new StringBuffer(input); in doFilter() local 14 while (i < buf.length()) in doFilter() 16 char ch = buf.charAt(i); in doFilter() 20 buf.replace(i,i+1,"<"); in doFilter() 23 buf.replace(i,i+1,">"); in doFilter() 26 buf.replace(i,i+1,"("); in doFilter() 29 buf.replace(i,i+1,")"); in doFilter() 32 buf.replace(i,i+1,"#"); in doFilter() 35 buf.replace(i,i+1,"&"); in doFilter() 38 buf.replace(i,i+1,"""); in doFilter() [all …]
|
D | SQLFilter.java | 14 StringBuffer buf = new StringBuffer(input); in doFilter() local 16 while (i < buf.length()) in doFilter() 18 char ch = buf.charAt(i); in doFilter() 22 buf.replace(i,i+1,"\\\'"); in doFilter() 26 buf.replace(i,i+1,"\\\""); in doFilter() 30 buf.replace(i,i+1,"\\="); in doFilter() 34 buf.replace(i,i+1,"\\-"); in doFilter() 38 buf.replace(i,i+1,"\\/"); in doFilter() 42 buf.replace(i,i+1,"\\\\"); in doFilter() 46 buf.replace(i,i+1,"\\;"); in doFilter() [all …]
|
/dalvik/libcore/security/src/main/java/org/bouncycastle/asn1/util/ |
D | ASN1Dump.java | 23 StringBuffer buf = new StringBuffer(); in _dumpAsString() local 27 buf.append(indent); in _dumpAsString() 30 buf.append("BER ConstructedSequence"); in _dumpAsString() 34 buf.append("DER ConstructedSequence"); in _dumpAsString() 38 buf.append("BER Sequence"); in _dumpAsString() 42 buf.append("DER Sequence"); in _dumpAsString() 46 buf.append("Sequence"); in _dumpAsString() 49 buf.append(System.getProperty("line.separator")); in _dumpAsString() 58 buf.append(tab); in _dumpAsString() 59 buf.append("NULL"); in _dumpAsString() [all …]
|
/dalvik/vm/ |
D | Bits.h | 234 INLINE int readUtf8String(unsigned char const** ppSrc, char* buf, size_t bufLen) in readUtf8String() argument 239 memcpy(buf, *ppSrc, copyLen); in readUtf8String() 240 buf[copyLen] = '\0'; in readUtf8String() 255 char* buf; in readNewUtf8String() local 257 buf = (char*) malloc(length+1); in readNewUtf8String() 259 memcpy(buf, *ppSrc, length); in readNewUtf8String() 260 buf[length] = '\0'; in readNewUtf8String() 265 return buf; in readNewUtf8String() 272 INLINE void set1(u1* buf, u1 val) in set1() argument 274 *buf = (u1)(val); in set1() [all …]
|
/dalvik/libcore/support/src/test/java/tests/support/ |
D | Support_StringWriter.java | 24 private StringBuffer buf; field in Support_StringWriter 33 buf = new StringBuffer(16); in Support_StringWriter() 34 lock = buf; in Support_StringWriter() 44 buf = new StringBuffer(initialSize); in Support_StringWriter() 45 lock = buf; in Support_StringWriter() 80 return buf; in getBuffer() 94 return buf.toString(); in toString() 113 public void write(char[] buf, int offset, int count) { in write() argument 115 if (0 <= offset && offset <= buf.length && 0 <= count in write() 116 && count <= buf.length - offset) { in write() [all …]
|
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/x501/ |
D | AttributeValue.java | 129 StringBuffer buf = new StringBuffer(encoded.length * 2 + 1); in getHexString() local 130 buf.append('#'); in getHexString() 135 buf.append((char) (c + 48)); in getHexString() 137 buf.append((char) (c + 87)); in getHexString() 142 buf.append((char) (c + 48)); in getHexString() 144 buf.append((char) (c + 87)); in getHexString() 147 hexString = buf.toString(); in getHexString() 152 public void appendQEString(StringBuffer buf) { in appendQEString() argument 153 buf.append('"'); in appendQEString() 159 buf.append('\\'); in appendQEString() [all …]
|
/dalvik/libcore/luni/src/main/java/java/lang/reflect/ |
D | Modifier.java | 282 StringBuilder buf = new StringBuilder(); in toString() local 285 buf.append("public "); in toString() 288 buf.append("protected "); in toString() 291 buf.append("private "); in toString() 294 buf.append("abstract "); in toString() 297 buf.append("static "); in toString() 300 buf.append("final "); in toString() 303 buf.append("transient "); in toString() 306 buf.append("volatile "); in toString() 309 buf.append("synchronized "); in toString() [all …]
|
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/modes/ |
D | CTSBlockCipher.java | 34 buf = new byte[blockSize * 2]; in CTSBlockCipher() 50 int leftOver = total % buf.length; in getUpdateOutputSize() 54 return total - buf.length; in getUpdateOutputSize() 92 if (bufOff == buf.length) in processByte() 94 resultLen = cipher.processBlock(buf, 0, out, outOff); in processByte() 95 System.arraycopy(buf, blockSize, buf, 0, blockSize); in processByte() 100 buf[bufOff++] = in; in processByte() 142 int gapLen = buf.length - bufOff; in processBytes() 146 System.arraycopy(in, inOff, buf, bufOff, gapLen); in processBytes() 148 resultLen += cipher.processBlock(buf, 0, out, outOff); in processBytes() [all …]
|
/dalvik/libcore/archive/src/main/java/java/util/zip/ |
D | Inflater.java | 229 public int inflate(byte[] buf) throws DataFormatException { in inflate() argument 230 return inflate(buf, 0, buf.length); in inflate() 248 public synchronized int inflate(byte[] buf, int off, int nbytes) in inflate() argument 251 if (off <= buf.length && nbytes >= 0 && off >= 0 in inflate() 252 && buf.length - off >= nbytes) { in inflate() 272 int result = inflateImpl(buf, off, nbytes, streamHandle); in inflate() 281 private native synchronized int inflateImpl(byte[] buf, int off, in inflateImpl() argument 335 public synchronized void setDictionary(byte[] buf) { in setDictionary() argument 336 setDictionary(buf, 0, buf.length); in setDictionary() 355 public synchronized void setDictionary(byte[] buf, int off, int nbytes) { in setDictionary() argument [all …]
|
/dalvik/libcore/dom/src/test/java/org/w3c/domts/ |
D | DOMTestIncompatibleException.java | 52 StringBuffer buf = new StringBuffer( in incompatibleFeature() local 54 buf.append(feature); in incompatibleFeature() 55 buf.append("\" version=\""); in incompatibleFeature() 56 buf.append(version); in incompatibleFeature() 57 buf.append("\"."); in incompatibleFeature() 58 return new DOMTestIncompatibleException(buf.toString()); in incompatibleFeature() 63 StringBuffer buf = new StringBuffer( in incompatibleLoad() local 65 buf.append(href); in incompatibleLoad() 66 buf.append("\" not available for =\""); in incompatibleLoad() 67 buf.append(contentType); in incompatibleLoad() [all …]
|
/dalvik/libcore/luni/src/main/java/java/io/ |
D | CharArrayReader.java | 31 protected char buf[]; field in CharArrayReader 56 public CharArrayReader(char[] buf) { in CharArrayReader() argument 57 super(buf); in CharArrayReader() 58 this.buf = buf; in CharArrayReader() 59 this.count = buf.length; in CharArrayReader() 77 public CharArrayReader(char[] buf, int offset, int length) { in CharArrayReader() argument 78 super(buf); in CharArrayReader() 85 if (buf == null) { in CharArrayReader() 88 if ((offset | length) < 0 || offset > buf.length) { in CharArrayReader() 92 this.buf = buf; in CharArrayReader() [all …]
|
/dalvik/libcore/luni/src/main/java/java/net/ |
D | URLEncoder.java | 52 StringBuilder buf = new StringBuilder(); in encode() local 57 buf.append(ch); in encode() 59 buf.append('+'); in encode() 63 buf.append('%'); in encode() 64 buf.append(digits.charAt((bytes[j] & 0xf0) >> 4)); in encode() 65 buf.append(digits.charAt(bytes[j] & 0xf)); in encode() 69 return buf.toString(); in encode() 98 StringBuffer buf = new StringBuffer(); in encode() local 105 convert(s.substring(start, i), buf, enc); in encode() local 109 buf.append(ch); in encode() [all …]
|