| /system/core/libdiskconfig/ |
| diskutils.c | 38 uint8_t buffer[2048]; local 63 if ((nr_bytes = read(src_fd, buffer, sizeof(buffer))) < 0) { 84 if ((tmp = write(dst_fd, buffer, nr_bytes)) < 0) {
|
| /toolchain/binutils/binutils-2.27/gold/ |
| int_encoding.h | 40 // Read a ULEB 128 encoded integer from BUFFER. Return the length of the 46 read_unsigned_LEB_128_x(const unsigned char* buffer, size_t* plen, 50 read_unsigned_LEB_128(const unsigned char* buffer, size_t* plen) 52 unsigned char byte = *buffer++; 55 return read_unsigned_LEB_128_x(buffer, plen, byte); 61 // Read an SLEB 128 encoded integer from BUFFER. Return the length of the 67 read_signed_LEB_128_x(const unsigned char* buffer, size_t* plen, 71 read_signed_LEB_128(const unsigned char* buffer, size_t* plen) 73 unsigned char byte = *buffer++; 76 return read_signed_LEB_128_x(buffer, plen, byte) 104 unsigned char buffer[valsize \/ 8]; local [all...] |
| /external/apache-http/src/org/apache/commons/codec/net/ |
| RFC1522Codec.java | 76 StringBuffer buffer = new StringBuffer(); local 77 buffer.append("=?"); 78 buffer.append(charset); 79 buffer.append('?'); 80 buffer.append(getEncoding()); 81 buffer.append('?'); 83 buffer.append(new String(rawdata, StringEncodings.US_ASCII)); 84 buffer.append("?="); 85 return buffer.toString();
|
| /external/apache-http/src/org/apache/http/impl/auth/ |
| BasicScheme.java | 178 CharArrayBuffer buffer = new CharArrayBuffer(32); local 180 buffer.append(AUTH.PROXY_AUTH_RESP); 182 buffer.append(AUTH.WWW_AUTH_RESP); 184 buffer.append(": Basic "); 185 buffer.append(base64password, 0, base64password.length); 187 return new BufferedHeader(buffer);
|
| /external/conscrypt/common/src/main/java/org/conscrypt/ |
| OpenSSLBIOSink.java | 26 private final ByteArrayOutputStream buffer; field in class:OpenSSLBIOSink 30 ByteArrayOutputStream buffer = new ByteArrayOutputStream(); local 31 return new OpenSSLBIOSink(buffer); 34 private OpenSSLBIOSink(ByteArrayOutputStream buffer) { 35 ctx = NativeCrypto.create_BIO_OutputStream(buffer); 36 this.buffer = buffer; 40 return buffer.size() - position; 44 buffer.reset(); 51 if (position == buffer.size()) [all...] |
| /external/jacoco/org.jacoco.examples.test/src/org/jacoco/examples/ |
| ConsoleOutput.java | 27 * In-Memory buffer to assert console output. 31 private final ByteArrayOutputStream buffer; field in class:ConsoleOutput 36 this.buffer = new ByteArrayOutputStream(); 38 this.stream = new PrintStream(buffer, true, "UTF-8"); 46 buffer.reset(); 59 return new String(buffer.toByteArray(), "UTF-8");
|
| /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
| IPAddressTypeAvailabilityElementTest.java | 43 * Verify that ProtocolException will be thrown when parsing an empty buffer. 53 * Verify that ProtocolException will be thrown when parsing an buffer containing excess 60 ByteBuffer buffer = ByteBuffer.allocate( local 62 buffer.put((byte) getIPAvailability()); 63 buffer.put((byte) 0); // Excess data. 64 buffer.position(0); 70 * a buffer containing the test data. 76 ByteBuffer buffer = ByteBuffer.allocate( local 78 buffer.put((byte) getIPAvailability()); 79 buffer.position(0) [all...] |
| NAIRealmDataTest.java | 35 * Verify that BufferUnderflowException will be thrown when parsing from an empty buffer. 45 * Verify that ProtocolException will be thrown when parsing a truncated buffer 52 ByteBuffer buffer = ByteBuffer.wrap(NAIRealmDataTestUtil.TEST_REAML_WITH_UTF8_DATA_BYTES); local 53 buffer.limit(buffer.remaining() - 1); 54 NAIRealmData.parse(buffer); 58 * Verify that an expected NAIRealmData will be returned when parsing a buffer contained 65 ByteBuffer buffer = ByteBuffer.wrap(NAIRealmDataTestUtil.TEST_REAML_WITH_UTF8_DATA_BYTES); local 66 assertEquals(NAIRealmDataTestUtil.TEST_REALM_DATA, NAIRealmData.parse(buffer)); 70 * Verify that the expected NAIRealmData will be returned when parsing a buffer containe 77 ByteBuffer buffer = ByteBuffer.wrap( local [all...] |
| NAIRealmElementTest.java | 41 * @param dataCount The number of NAI Realm Data to be added to the buffer 47 ByteBuffer buffer = ByteBuffer.allocate(dataLength + 2).order(ByteOrder.LITTLE_ENDIAN); local 48 buffer.putShort((short) dataCount); 50 buffer.put(NAIRealmDataTestUtil.TEST_REAML_WITH_UTF8_DATA_BYTES); 52 buffer.position(0); 53 return buffer; 58 * from an empty buffer. 69 * Verify that an expected NAIRealmElement will be returned when parsing a buffer containing 85 * Verify that an expected NAIRealmElement will be returned when parsing a buffer containing
|
| I18NameTest.java | 70 * Helper function for returning a buffer containing a I18Name test data. 79 ByteBuffer buffer = ByteBuffer.allocate(data.length + 1); local 80 buffer.put((byte) length); 81 buffer.put(data); 82 buffer.position(0); 83 return buffer; 87 * Verify that BufferUnderflowException will be thrown when parsing from an empty buffer. 98 * than the actual buffer size. 105 ByteBuffer buffer = getTestBuffer(data, data.length); local 106 buffer.limit(buffer.remaining() - 1) [all...] |
| /libcore/luni/src/main/java/javax/xml/parsers/ |
| FilePathToURI.java | 64 StringBuilder buffer = new StringBuilder(len*3); local 65 buffer.append("file://"); 70 buffer.append('/'); 82 buffer.append('%'); 83 buffer.append(gAfterEscaping1[ch]); 84 buffer.append(gAfterEscaping2[ch]); 88 buffer.append((char)ch); 111 buffer.append('%'); 112 buffer.append(gHexChs[ch >> 4]); 113 buffer.append(gHexChs[ch & 0xf]) [all...] |
| /libcore/luni/src/main/java/javax/xml/transform/stream/ |
| FilePathToURI.java | 64 StringBuilder buffer = new StringBuilder(len*3); local 65 buffer.append("file://"); 70 buffer.append('/'); 82 buffer.append('%'); 83 buffer.append(gAfterEscaping1[ch]); 84 buffer.append(gAfterEscaping2[ch]); 88 buffer.append((char)ch); 111 buffer.append('%'); 112 buffer.append(gHexChs[ch >> 4]); 113 buffer.append(gHexChs[ch & 0xf]) [all...] |
| /packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
| HexDump.java | 73 StringBuffer buffer = new StringBuffer(74); local 81 dump(buffer, display_offset).append(' '); 84 dump(buffer, data[k + j]); 86 buffer.append(" "); 88 buffer.append(' '); 92 buffer.append((char) data[k + j]); 94 buffer.append('.'); 97 buffer.append(EOL); 98 stream.write(buffer.toString().getBytes()); 100 buffer.setLength(0) [all...] |
| /packages/apps/UnifiedEmail/src/org/apache/commons/io/filefilter/ |
| AndFileFilter.java | 155 StringBuffer buffer = new StringBuffer(); local 156 buffer.append(super.toString()); 157 buffer.append("("); 161 buffer.append(","); 164 buffer.append(filter == null ? "null" : filter.toString()); 167 buffer.append(")"); 168 return buffer.toString();
|
| OrFileFilter.java | 148 StringBuffer buffer = new StringBuffer(); local 149 buffer.append(super.toString()); 150 buffer.append("("); 154 buffer.append(","); 157 buffer.append(filter == null ? "null" : filter.toString()); 160 buffer.append(")"); 161 return buffer.toString();
|
| /prebuilts/jdk/jdk8/darwin-x86/sample/nio/chatserver/ |
| NameReader.java | 51 private final StringBuilder buffer = new StringBuilder(); field in class:NameReader 84 public void onData(Client client, ByteBuffer buffer, int bytes) { 85 buffer.flip(); 87 name = this.buffer.append(new String(buffer.array(), 0, bytes)).toString(); 95 * and appends everything else to the clients message buffer. 110 * Appends the remaining parts to the clients message buffer 113 * @param strings the messages to append to the buffer
|
| /prebuilts/jdk/jdk8/linux-x86/sample/nio/chatserver/ |
| NameReader.java | 51 private final StringBuilder buffer = new StringBuilder(); field in class:NameReader 84 public void onData(Client client, ByteBuffer buffer, int bytes) { 85 buffer.flip(); 87 name = this.buffer.append(new String(buffer.array(), 0, bytes)).toString(); 95 * and appends everything else to the clients message buffer. 110 * Appends the remaining parts to the clients message buffer 113 * @param strings the messages to append to the buffer
|
| /external/apache-http/src/org/apache/http/impl/io/ |
| AbstractSessionOutputBuffer.java | 64 private ByteArrayBuffer buffer; field in class:AbstractSessionOutputBuffer 76 throw new IllegalArgumentException("Buffer size may not be negative or zero"); 82 this.buffer = new ByteArrayBuffer(buffersize); 90 int len = this.buffer.length(); 92 this.outstream.write(this.buffer.buffer(), 0, len); 93 this.buffer.clear(); 107 // Do not want to buffer largish chunks 110 if (len > MAX_CHUNK || len > this.buffer.capacity()) { 111 // flush the buffer [all...] |
| /external/okhttp/okio/okio/src/main/java/okio/ |
| RealBufferedSink.java | 24 public final Buffer buffer; field in class:RealBufferedSink 28 public RealBufferedSink(Sink sink, Buffer buffer) { 30 this.buffer = buffer; 35 this(sink, new Buffer()); 38 @Override public Buffer buffer() { method in class:RealBufferedSink 39 return buffer; [all...] |
| /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/ |
| UTF16Util.java | 111 * @param buffer StringBuffer in question 114 public static final void appendCodePoint(StringBuffer buffer, int ch) { 116 buffer.append((char)ch); 118 buffer.append((char)(0xd7c0 + (ch >> 10))); 119 buffer.append((char)(0xdc00 + (ch & 0x3ff))); 126 * @param buffer StringBuffer in question 130 public static final void insertCodePoint(StringBuffer buffer, int i, int ch) { 132 buffer.insert(i, (char)ch); 134 buffer.insert(i, (char)(0xd7c0 + (ch >> 10))).insert(i + 1, (char)(0xdc00 + (ch & 0x3ff))); 141 * @param buffer StringBuffer in questio [all...] |
| /external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/ |
| UTF16Util.java | 107 * @param buffer StringBuffer in question 110 public static final void appendCodePoint(StringBuffer buffer, int ch) { 112 buffer.append((char)ch); 114 buffer.append((char)(0xd7c0 + (ch >> 10))); 115 buffer.append((char)(0xdc00 + (ch & 0x3ff))); 122 * @param buffer StringBuffer in question 126 public static final void insertCodePoint(StringBuffer buffer, int i, int ch) { 128 buffer.insert(i, (char)ch); 130 buffer.insert(i, (char)(0xd7c0 + (ch >> 10))).insert(i + 1, (char)(0xdc00 + (ch & 0x3ff))); 137 * @param buffer StringBuffer in questio [all...] |
| /external/jacoco/org.jacoco.ant.test/src/org/jacoco/ant/ |
| AntResourcesLocatorTest.java | 136 final BufferedReader buffer = new BufferedReader(source); local 137 assertEquals(expected, buffer.readLine()); 138 assertNull(buffer.readLine()); 139 buffer.close();
|
| /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
| ShadowMemoryMappedFile.java | 89 private final ByteBuffer buffer; field in class:ShadowMemoryMappedFile.RoboBufferIterator 91 public RoboBufferIterator(byte[] buffer, ByteOrder order) { 92 this.buffer = ByteBuffer.wrap(buffer); 96 buffer.position(offset); 100 buffer.position(buffer.position() + byteCount); 109 System.arraycopy(buffer.array(), buffer.position(), dst, dstOffset, byteCount); 114 return buffer.get() [all...] |
| /frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
| MockSyntheticPasswordManager.java | 52 ByteBuffer buffer = ByteBuffer.allocate(blob.length); local 53 buffer.put(blob, 0, blob.length); 54 buffer.flip(); 56 len = buffer.getInt(); 58 buffer.get(data); 59 len = buffer.getInt(); 61 buffer.get(appId); 62 long sid = buffer.getLong(); 74 ByteBuffer buffer = ByteBuffer.allocate(Integer.BYTES + data.length + Integer.BYTES local 76 buffer.putInt(data.length) [all...] |
| /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
| AudioTrackDecoder.java | 78 ByteBuffer buffer = buffers[bufferIndex]; local 80 buffer.position(info.offset); 81 buffer.get(data, 0, info.size); 95 buffer.clear(); 103 * decoded since the last call of this method. The decoder's buffer is cleared as a result. 118 * Clears the decoder's buffer.
|