Searched refs:buf (Results 76 - 100 of 337) sorted by relevance

1234567891011>>

/dalvik/libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/
H A DWrappedIntBufferTest.java28 buf = IntBuffer.wrap(new int[BUFFER_LENGTH]);
29 loadTestData1(buf);
30 baseBuf = buf;
35 buf = null;
92 IntBuffer buf = IntBuffer.wrap(array, 2, 16);
93 assertEquals(buf.position(), 2);
94 assertEquals(buf.limit(), 18);
95 assertEquals(buf.capacity(), 20);
H A DWrappedLongBufferTest.java28 buf = LongBuffer.wrap(new long[BUFFER_LENGTH]);
29 loadTestData1(buf);
30 baseBuf = buf;
35 buf = null;
92 LongBuffer buf = LongBuffer.wrap(array, 2, 16);
93 assertEquals(buf.position(), 2);
94 assertEquals(buf.limit(), 18);
95 assertEquals(buf.capacity(), 20);
H A DWrappedShortBufferTest.java28 buf = ShortBuffer.wrap(new short[BUFFER_LENGTH]);
29 loadTestData1(buf);
30 baseBuf = buf;
35 buf = null;
92 ShortBuffer buf = ShortBuffer.wrap(array, 2, 16);
93 assertEquals(buf.position(), 2);
94 assertEquals(buf.limit(), 18);
95 assertEquals(buf.capacity(), 20);
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/macs/
H A DCBCBlockCipherMac.java18 private byte[] buf; field in class:CBCBlockCipherMac
101 buf = new byte[cipher.getBlockSize()];
128 if (bufOff == buf.length)
130 resultLen = cipher.processBlock(buf, 0, mac, 0);
134 buf[bufOff++] = in;
153 System.arraycopy(in, inOff, buf, bufOff, gapLen);
155 resultLen += cipher.processBlock(buf, 0, mac, 0);
170 System.arraycopy(in, inOff, buf, bufOff, len);
188 buf[bufOff] = 0;
196 cipher.processBlock(buf,
[all...]
H A DBlockCipherMac.java13 private byte[] buf; field in class:BlockCipherMac
58 buf = new byte[cipher.getBlockSize()];
85 if (bufOff == buf.length)
87 resultLen = cipher.processBlock(buf, 0, mac, 0);
91 buf[bufOff++] = in;
110 System.arraycopy(in, inOff, buf, bufOff, gapLen);
112 resultLen += cipher.processBlock(buf, 0, mac, 0);
127 System.arraycopy(in, inOff, buf, bufOff, len);
143 buf[bufOff] = 0;
147 cipher.processBlock(buf,
[all...]
/dalvik/libnativehelper/
H A DJNIHelp.c55 static void getExceptionSummary(JNIEnv* env, jthrowable excep, char* buf, argument
71 snprintf(buf, bufLen, "%s", "out of memory generating summary");
83 snprintf(buf, bufLen, "%s: %s", nameStr, messageStr);
89 strncpy(buf, nameStr, bufLen);
90 buf[bufLen-1] = '\0';
111 char buf[256]; local
115 getExceptionSummary(env, excep, buf, sizeof(buf));
117 buf, className);
161 const char* jniStrError(int errnum, char* buf, size_ argument
[all...]
/dalvik/libcore/support/src/test/java/tests/support/
H A DSupport_ASimpleOutputStream.java16 public byte[] buf; field in class:Support_ASimpleOutputStream
35 buf = new byte[bufferSize];
83 buf[pos] = (byte)(oneByte & 255);
92 System.arraycopy(buf, 0, toReturn, 0, pos);
97 return new String(buf, 0, pos);
H A DSupport_ASimpleReader.java16 public char[] buf; field in class:Support_ASimpleReader
35 buf = input.toCharArray();
37 len = buf.length;
63 System.arraycopy(buf, pos, dest, offset, readable);
/dalvik/libcore/luni/src/main/java/java/io/
H A DBufferedReader.java37 * BufferedReader buf = new BufferedReader(new FileReader("file.java"));
67 private char[] buf; field in class:BufferedReader
87 buf = new char[8192];
122 buf = new char[size];
138 buf = null;
155 int result = in.read(buf, 0, buf.length);
164 if (mark == 0 && markLimit > buf.length) {
166 int newLength = buf.length * 2;
171 System.arraycopy(buf,
[all...]
H A DPushbackReader.java33 char[] buf; field in class:PushbackReader
36 * The current position within the char array {@code buf}. A value
37 * equal to buf.length indicates no chars available. A value of 0 indicates
52 buf = new char[1];
72 buf = new char[size];
86 buf = null;
138 if (buf == null) {
142 if (pos < buf.length) {
143 return buf[pos++];
181 if (null == buf) {
[all...]
H A DReader.java135 * {@code buf} starting at offset 0. Returns the number of characters
138 * @param buf
145 public int read(char[] buf) throws IOException { argument
149 return read(buf, 0, buf.length);
154 * at {@code offset} in the character array {@code buf}. Returns the number
158 * @param buf
170 public abstract int read(char[] buf, int offset, int count) argument
270 char[] buf = new char[length];
271 length = Math.min(length, read(buf));
[all...]
H A DBufferedOutputStream.java37 * BufferedOutputStream buf = new BufferedOutputStream(new FileOutputStream(&quot;file.java&quot;));
46 protected byte[] buf; field in class:BufferedOutputStream
49 * The total number of bytes inside the byte array {@code buf}.
63 buf = new byte[8192];
97 buf = new byte[size];
109 if (buf == null) {
145 byte[] internalBuffer = buf;
182 if (buf == null) {
189 buf = null;
207 byte[] internalBuffer = buf;
[all...]
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/
H A DBufferedReaderTest.java91 BufferedReader buf = new BufferedReader(new StringReader("01234"), 2);
94 buf.mark(-1);
100 buf.mark(3);
102 int result = buf.read(chars);
107 assertEquals("Assert 3:", '3', buf.read());
109 buf = new BufferedReader(new StringReader("01234"), 2);
110 buf.mark(3);
112 result = buf.read(chars);
118 assertEquals("Assert 9:", '4', buf.read());
119 assertEquals("Assert 10:", -1, buf
[all...]
/dalvik/libcore/nio/src/main/java/java/nio/
H A DReadOnlyDirectByteBuffer.java37 ReadOnlyDirectByteBuffer buf = new ReadOnlyDirectByteBuffer(
39 buf.limit = other.limit();
40 buf.position = other.position();
41 buf.mark = markOfOther;
42 buf.order(other.order());
43 return buf;
142 public ByteBuffer put(ByteBuffer buf) { argument
148 ReadOnlyDirectByteBuffer buf = new ReadOnlyDirectByteBuffer(
150 buf.order = order;
151 return buf;
[all...]
H A DDirectByteBuffers.java49 DirectByteBuffer buf = (DirectByteBuffer) directBuffer;
50 buf.free();
H A DReadOnlyDoubleArrayBuffer.java36 ReadOnlyDoubleArrayBuffer buf = new ReadOnlyDoubleArrayBuffer(other
38 buf.limit = other.limit();
39 buf.position = other.position();
40 buf.mark = markOfOther;
41 return buf;
100 public final DoubleBuffer put(DoubleBuffer buf) { argument
H A DReadOnlyFloatArrayBuffer.java35 ReadOnlyFloatArrayBuffer buf = new ReadOnlyFloatArrayBuffer(other
37 buf.limit = other.limit();
38 buf.position = other.position();
39 buf.mark = markOfOther;
40 return buf;
93 public FloatBuffer put(FloatBuffer buf) { argument
/dalvik/libcore/luni/src/test/java/tests/api/java/io/
H A DStringReaderTest.java67 char[] buf = new char[10];
68 sr.read(buf, 0, 2);
91 char[] buf = new char[10];
92 sr.read(buf, 0, 2);
93 assertTrue("Failed to return to mark", new String(buf, 0, 2)
154 char[] buf = new char[testString.length()];
155 int r = sr.read(buf, 0, testString.length());
157 assertTrue("Read chars incorrectly", new String(buf, 0, r)
163 char[] buf = new char[testString.length()];
166 sr.read(buf,
[all...]
H A DPushbackInputStreamTest.java191 byte[] buf = ("01234567890123456789").getBytes();
194 tobj.read(buf, 6, 5);
195 assertEquals("Wrong value read!", "BEGIN", new String(buf, 6, 5));
196 assertEquals("Too much read!", "012345BEGIN123456789", new String(buf));
199 tobj.read(buf, 6, 5);
217 byte[] buf = new byte[10];
221 tobj.read(buf, -1, 1);
227 tobj.read(buf, 0, -1);
233 tobj.read(buf, 10, 1);
251 byte[] buf
[all...]
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/generators/
H A DOpenSSLPBEParametersGenerator.java48 byte[] buf = new byte[digest.getDigestSize()];
57 digest.doFinal(buf, 0);
59 int len = (bytesNeeded > buf.length) ? buf.length : bytesNeeded;
60 System.arraycopy(buf, 0, key, offset, len);
72 digest.update(buf, 0, buf.length);
/dalvik/libcore/archive/src/main/java/java/util/zip/
H A DCheckedOutputStream.java73 * Writes n bytes of data from {@code buf} starting at offset {@code off} to
76 * @param buf
79 * the offset to start reading the data from {@code buf} written
87 public void write(byte[] buf, int off, int nbytes) throws IOException { argument
88 out.write(buf, off, nbytes);
89 check.update(buf, off, nbytes);
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/util/
H A DInputStreamHelper.java50 f[0] = ByteArrayInputStream.class.getDeclaredField("buf"); //$NON-NLS-1$
73 public ExposedByteArrayInputStream(byte buf[]) { argument
74 super(buf);
80 public ExposedByteArrayInputStream(byte buf[], int offset, int length) { argument
81 super(buf, offset, length);
88 if (pos == 0 && count == buf.length) {
90 return buf;
95 System.arraycopy(buf, pos, buffer, 0, available);
110 byte[] buffer, buf;
115 buf
[all...]
/dalvik/vm/compiler/codegen/arm/
H A DArchUtility.c22 static char * decodeRegList(int vector, char *buf) argument
26 buf[0] = 0;
30 sprintf(buf + strlen(buf), ", r%d", i);
33 sprintf(buf, "r%d", i);
37 return buf;
64 static void buildInsnString(char *fmt, ArmLIR *lir, char* buf, argument
68 char *bufEnd = &buf[size-1];
177 if (buf+strlen(tbuf) <= bufEnd) {
178 strcpy(buf, tbu
195 char buf[256]; local
238 char buf[256]; local
[all...]
/dalvik/vm/jdwp/
H A DJdwpHandler.c120 const u1* buf, int dataLen, ExpandBuf* pReply,
132 numArgs = read4BE(&buf);
149 typeTag = read1(&buf);
151 value = jdwpReadValue(&buf, width);
157 options = read4BE(&buf);
211 static JdwpError handleVM_Version(JdwpState* state, const u1* buf, argument
237 const u1* buf, int dataLen, ExpandBuf* pReply)
245 classDescriptor = readNewUtf8String(&buf, &strLen);
289 const u1* buf, int dataLen, ExpandBuf* pReply)
314 const u1* buf, in
119 finishInvoke(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply, ObjectId threadId, ObjectId objectId, RefTypeId classId, MethodId methodId, bool isConstructor) argument
236 handleVM_ClassesBySignature(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
288 handleVM_AllThreads(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
313 handleVM_TopLevelThreadGroups(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
340 handleVM_IDSizes(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
357 handleVM_Dispose(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
369 handleVM_Suspend(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
379 handleVM_Resume(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
389 handleVM_Exit(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
408 handleVM_CreateString(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
430 handleVM_Capabilities(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
448 handleVM_ClassPaths(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
482 HandleVM_DisposeObjects(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
491 handleVM_CapabilitiesNew(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
527 handleVM_AllClassesWithGeneric(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
564 handleRT_Signature(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
583 handleRT_Modifiers(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
600 handleRT_GetValues(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
632 handleRT_SourceFile(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
652 handleRT_Status(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
670 handleRT_Interfaces(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
688 handleRT_ClassObject(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
709 handleRT_SourceDebugExtension(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
719 handleRT_SignatureWithGeneric(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
744 handleRT_ClassLoader(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
761 handleRT_FieldsWithGeneric(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
784 handleRT_MethodsWithGeneric(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
807 handleCT_Superclass(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
825 handleCT_SetValues(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
861 handleCT_InvokeMethod(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
883 handleCT_NewInstance(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
908 handleM_LineTable(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
929 handleM_VariableTableWithGeneric(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
960 handleOR_ReferenceType(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
981 handleOR_GetValues(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1021 handleOR_SetValues(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1065 handleOR_InvokeMethod(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1085 handleOR_DisableCollection(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1095 handleOR_EnableCollection(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1105 handleOR_IsCollected(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1123 handleSR_Value(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1143 handleTR_Name(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1168 handleTR_Suspend(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1189 handleTR_Resume(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1210 handleTR_Status(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1236 handleTR_ThreadGroup(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1257 handleTR_Frames(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1309 handleTR_FrameCount(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1336 handleTR_CurrentContendedMonitor(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1355 handleTR_SuspendCount(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1374 handleTGR_Name(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1400 handleTGR_Parent(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1418 handleTGR_Children(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1458 handleAR_Length(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1479 handleAR_GetValues(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1507 handleAR_SetValues(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1533 handleCLR_VisibleClasses(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1563 handleER_Set(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1760 handleER_Clear(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1779 handleSF_GetValues(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1817 handleSF_SetValues(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1853 handleSF_ThisObject(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1892 handleCOR_ReflectedType(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
1915 handleDDM_Chunk(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument
2114 dvmJdwpProcessRequest(JdwpState* state, const JdwpReqHeader* pHeader, const u1* buf, int dataLen, ExpandBuf* pReply) argument
[all...]
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/engines/
H A DAESWrapEngine.java72 byte[] buf = new byte[8 + iv.length];
83 System.arraycopy(block, 0, buf, 0, iv.length);
84 System.arraycopy(block, 8 * i, buf, iv.length, 8);
85 engine.processBlock(buf, 0, buf, 0);
92 buf[iv.length - k] ^= v;
97 System.arraycopy(buf, 0, block, 0, 8);
98 System.arraycopy(buf, 8, block, 8 * i, 8);
125 byte[] buf = new byte[8 + iv.length];
138 System.arraycopy(a, 0, buf,
[all...]

Completed in 241 milliseconds

1234567891011>>