Searched refs:read (Results 1 - 25 of 28) sorted by path

12

/dalvik/dexgen/src/com/android/dexgen/dex/file/
H A DDebugInfoDecoder.java284 int opcode = bs.read();
598 * @return read value
609 cur = bs.read();
632 * @return read value, which should be treated as an unsigned value.
642 cur = bs.read();
/dalvik/dexgen/src/com/android/dexgen/util/
H A DByteArray.java24 * Wrapper for a {@code byte[]}, which provides read-only access and
304 public int read() throws IOException { method in class:ByteArray.MyInputStream
314 public int read(byte[] arr, int offset, int length) { method in class:ByteArray.MyInputStream
H A DDexJarMaker.java90 while ((curr = in.read()) != -1) {
H A DFileUtils.java38 * @param fileName {@code non-null;} name of the file to read
50 * @param file {@code non-null;} the file to read
78 int amt = in.read(result, at, length);
/dalvik/dx/src/com/android/dx/cf/direct/
H A DClassPathOpener.java234 int amt = in.read(buf);
/dalvik/dx/src/com/android/dx/io/
H A DDexBuffer.java170 while ((count = in.read(buffer)) != -1) {
456 * We can't read the tries until we've read the catch handlers.
458 * so we need to read them out-of-order.
/dalvik/dx/src/com/android/dx/io/instructions/
H A DCodeInput.java26 * Returns whether there are any more code units to read. This
34 public int read() throws EOFException; method in interface:CodeInput
H A DDecodedInstruction.java70 int opcodeUnit = in.read();
H A DInstructionCodec.java137 int target = (short) in.read(); // sign-extend
155 int index = in.read();
173 int b = in.read();
193 int target = (short) in.read(); // sign-extend
211 int literal = (short) in.read(); // sign-extend
230 long literal = (short) in.read(); // sign-extend
260 int index = in.read();
280 int bc = in.read();
301 int bc = in.read();
325 int target = (short) in.read(); // sig
[all...]
H A DShortArrayCodeInput.java26 /** source array to read from */
46 public int read() throws EOFException { method in class:ShortArrayCodeInput
58 int short0 = read();
59 int short1 = read();
66 long short0 = read();
67 long short1 = read();
68 long short2 = read();
69 long short3 = read();
/dalvik/dx/src/com/android/dx/merge/
H A DDexMerger.java252 a = read(inA, aIndexMap, aIndex);
256 b = read(inB, bIndexMap, bIndex);
333 T value = read(in, indexMap, 0);
340 abstract T read(DexBuffer.Section in, IndexMap indexMap, int index); method in class:DexMerger.IdMerger
381 @Override String read(DexBuffer.Section in, IndexMap indexMap, int index) {
403 @Override Integer read(DexBuffer.Section in, IndexMap indexMap, int index) {
424 @Override TypeList read(DexBuffer.Section in, IndexMap indexMap, int index) {
444 @Override ProtoId read(DexBuffer.Section in, IndexMap indexMap, int index) {
464 @Override FieldId read(DexBuffer.Section in, IndexMap indexMap, int index) {
484 @Override MethodId read(DexBuffe
[all...]
/dalvik/dx/src/com/android/dx/util/
H A DByteArray.java24 * Wrapper for a {@code byte[]}, which provides read-only access and
304 public int read() throws IOException { method in class:ByteArray.MyInputStream
314 public int read(byte[] arr, int offset, int length) { method in class:ByteArray.MyInputStream
H A DFileUtils.java38 * @param fileName {@code non-null;} name of the file to read
50 * @param file {@code non-null;} the file to read
78 int amt = in.read(result, at, length);
/dalvik/dx/tests/115-merge/com/android/dx/merge/
H A DDexMergeTest.java189 while ((count = in.read(buffer)) != -1) {
/dalvik/hit/src/com/android/hit/
H A DHprofParser.java164 for (int c = in.read(); c != 0; c = in.read()) {
185 mInput.read(b);
/dalvik/libdex/
H A DSysUtil.cpp132 actual = read(fd, memPtr, length);
134 ALOGE("only read %d of %d bytes", (int) actual, (int) length);
166 if (read(fd, memPtr, length) < 0) {
167 ALOGW("read(fd=%d, start=%d, length=%d) failed: %s", (int) length,
180 * Map a file (from fd's current offset) into a shared, read-only memory
215 * Map a file (from fd's current offset) into a private, read-write memory
216 * segment that will be marked read-only (a/k/a "writable read-only"). The
249 ALOGD("mprotect(RO) failed (%d), file will remain read-write", err);
262 * Map part of a file into a shared, read
[all...]
H A DZipArchive.cpp153 ssize_t actual = TEMP_FAILURE_RETRY(read(fd, scanBuf, readAmount));
155 ALOGW("Zip: read %zd failed: %s", readAmount, strerror(errno));
162 * doing an initial minimal read; if we don't find it, retry with a
163 * second read as above.)
246 * need to read the last part of the file into a buffer, dig through
337 * Open the specified file read-only. We examine the contents and verify
519 * so we have to read the contents of the struct to figure out where
544 TEMP_FAILURE_RETRY(read(pArchive->mFd, lfhBuf, sizeof(lfhBuf)));
631 /* read as much as we can */
635 ssize_t actual = TEMP_FAILURE_RETRY(read(inF
[all...]
/dalvik/tools/
H A Ddeadcode.py106 data = pipe.read()
/dalvik/tools/dexdeps/src/com/android/dexdeps/
H A DMain.java165 actual = zis.read(copyBuf);
/dalvik/vm/
H A DMisc.cpp672 * Open and read the appropriate file. This is expected to work on
683 int cc = read(fd, lineBuf, sizeof(lineBuf)-1);
686 ALOGI("Unable to read '%s': %s", nameBuf, msg);
H A DRawDexFile.cpp76 ssize_t amt = read(fd, headerStart, sizeof(headerStart));
79 ALOGE("Unable to read header: %s", strerror(errno));
84 ALOGE("Unable to read full header (only got %d bytes)", (int) amt);
93 * We can't just cast the data to a u4 and read it, since the
H A DSignalCatcher.cpp86 actual = read(fd, tmpBuf, sizeof(tmpBuf)-1);
H A DStdioConverter.cpp144 * Allocate read buffers.
185 ALOGW("stdio converter got read error; shutting it down");
214 actual = read(fd, data->buf + data->count, want);
216 ALOGW("read %s: (%d,%d) failed (%d): %s",
220 //ALOGI("read %s: %d at %d", tag, actual, data->count);
H A DSync.cpp56 * read the paper referred to above.
294 read(fd, procName, sizeof(procName) - 1);
H A DThread.cpp3227 strcpy(schedstatBuf, "0 0 0"); /* show this if open/read fails */
3230 bytes = read(schedstatFd, schedstatBuf, sizeof(schedstatBuf) - 1);
3398 n = read(fd, name, sizeof(name) - 1);

Completed in 597 milliseconds

12