Home
last modified time | relevance | path

Searched refs:off (Results 1 – 25 of 39) sorted by relevance

12

/libcore/dex/src/main/java/com/android/dex/
DTableOfContents.java70 readMap(dex.open(mapList.off)); in readFrom()
95 mapList.off = headerIn.readInt(); in readHeader()
96 if (mapList.off == 0) { in readHeader()
100 stringIds.off = headerIn.readInt(); in readHeader()
102 typeIds.off = headerIn.readInt(); in readHeader()
104 protoIds.off = headerIn.readInt(); in readHeader()
106 fieldIds.off = headerIn.readInt(); in readHeader()
108 methodIds.off = headerIn.readInt(); in readHeader()
110 classDefs.off = headerIn.readInt(); in readHeader()
126 || (section.off != -1 && section.off != offset)) { in readMap()
[all …]
DDex.java338 int position = tableOfContents.fieldIds.off + (SizeOf.MEMBER_ID_ITEM * fieldIndex); in nameIndexFromFieldIndex()
379 int position = tableOfContents.fieldIds.off + (SizeOf.MEMBER_ID_ITEM * fieldIndex); in typeIndexFromFieldIndex()
390 int position = tableOfContents.methodIds.off + (SizeOf.MEMBER_ID_ITEM * methodIndex); in declaringClassIndexFromMethodIndex()
400 int position = tableOfContents.methodIds.off + (SizeOf.MEMBER_ID_ITEM * methodIndex); in nameIndexFromMethodIndex()
412 int position = tableOfContents.methodIds.off + (SizeOf.MEMBER_ID_ITEM * methodIndex); in parameterTypeIndicesFromMethodIndex()
416 position = tableOfContents.protoIds.off + (SizeOf.PROTO_ID_ITEM * protoIndex); in parameterTypeIndicesFromMethodIndex()
443 int position = tableOfContents.methodIds.off + (SizeOf.MEMBER_ID_ITEM * methodIndex); in returnTypeIndexFromMethodIndex()
447 position = tableOfContents.protoIds.off + (SizeOf.PROTO_ID_ITEM * protoIndex); in returnTypeIndexFromMethodIndex()
458 int position = tableOfContents.typeIds.off + (SizeOf.TYPE_ID_ITEM * typeIndex); in descriptorIndexFromTypeIndex()
467 int position = tableOfContents.classDefs.off + (SizeOf.CLASS_DEF_ITEM * classDefIndex); in typeIndexFromClassDefIndex()
[all …]
/libcore/luni/src/main/java/java/util/zip/
DCheckedOutputStream.java87 public void write(byte[] buf, int off, int nbytes) throws IOException { in write() argument
88 out.write(buf, off, nbytes); in write()
89 check.update(buf, off, nbytes); in write()
DGZIPOutputStream.java109 public void write(byte[] buffer, int off, int nbytes) throws IOException { in write() argument
110 super.write(buffer, off, nbytes); in write()
111 crc.update(buffer, off, nbytes); in write()
DChecksum.java48 public void update(byte[] buf, int off, int nbytes); in update() argument
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DMySignature1.java80 protected void engineUpdate(byte[] b, int off, int len) in engineUpdate() argument
83 if (off < 0 || off > b.length || off > len) { in engineUpdate()
DMySignature2.java60 protected void engineUpdate(byte[] b, int off, int len) in engineUpdate() argument
/libcore/luni/src/main/native/
Djava_util_zip_Inflater.cpp51 static void Inflater_setInputImpl(JNIEnv* env, jobject, jbyteArray buf, jint off, jint len, jlong h… in Inflater_setInputImpl() argument
52 toNativeZipStream(handle)->setInput(env, buf, off, len); in Inflater_setInputImpl()
55 static jint Inflater_setFileInputImpl(JNIEnv* env, jobject, jobject javaFileDescriptor, jlong off, … in Inflater_setFileInputImpl() argument
71 int rc = TEMP_FAILURE_RETRY(lseek(fd, off, SEEK_SET)); in Inflater_setFileInputImpl()
91 static jint Inflater_inflateImpl(JNIEnv* env, jobject recv, jbyteArray buf, int off, int len, jlong… in Inflater_inflateImpl() argument
97 stream->stream.next_out = reinterpret_cast<Bytef*>(out.get() + off); in Inflater_inflateImpl()
142 static void Inflater_setDictionaryImpl(JNIEnv* env, jobject, jbyteArray dict, int off, int len, jlo… in Inflater_setDictionaryImpl() argument
143 toNativeZipStream(handle)->setDictionary(env, dict, off, len, true); in Inflater_setDictionaryImpl()
DZipUtilities.cpp44 void NativeZipStream::setDictionary(JNIEnv* env, jbyteArray javaDictionary, int off, int len, in setDictionary() argument
51 env->GetByteArrayRegion(javaDictionary, off, len, &dictionaryBytes[0]); in setDictionary()
66 void NativeZipStream::setInput(JNIEnv* env, jbyteArray buf, jint off, jint len) { in setInput() argument
75 env->GetByteArrayRegion(buf, off, len, &input[0]); in setInput()
Djava_util_zip_Deflater.cpp26 static void Deflater_setDictionaryImpl(JNIEnv* env, jobject, jbyteArray dict, int off, int len, jlo… in Deflater_setDictionaryImpl() argument
27 toNativeZipStream(handle)->setDictionary(env, dict, off, len, false); in Deflater_setDictionaryImpl()
67 static void Deflater_setInputImpl(JNIEnv* env, jobject, jbyteArray buf, jint off, jint len, jlong h… in Deflater_setInputImpl() argument
68 toNativeZipStream(handle)->setInput(env, buf, off, len); in Deflater_setInputImpl()
71 static jint Deflater_deflateImpl(JNIEnv* env, jobject recv, jbyteArray buf, int off, int len, jlong… in Deflater_deflateImpl() argument
77 stream->stream.next_out = reinterpret_cast<Bytef*>(out.get() + off); in Deflater_deflateImpl()
DZipUtilities.h33 void setDictionary(JNIEnv* env, jbyteArray javaDictionary, int off, int len, bool inflate);
34 void setInput(JNIEnv* env, jbyteArray buf, jint off, jint len);
Djava_util_zip_Adler32.cpp26 static jlong Adler32_updateImpl(JNIEnv* env, jobject, jbyteArray byteArray, int off, int len, jlong… in Adler32_updateImpl() argument
31 return adler32(crc, reinterpret_cast<const Bytef*>(bytes.get() + off), len); in Adler32_updateImpl()
Djava_util_zip_CRC32.cpp26 static jlong CRC32_updateImpl(JNIEnv* env, jobject, jbyteArray byteArray, int off, int len, jlong c… in CRC32_updateImpl() argument
31 jlong result = crc32(crc, reinterpret_cast<const Bytef*>(bytes.get() + off), len); in CRC32_updateImpl()
/libcore/luni/src/main/java/java/security/
DDigestOutputStream.java104 public void write(byte[] b, int off, int len) throws IOException { in write() argument
107 digest.update(b, off, len); in write()
110 out.write(b, off, len); in write()
DSecureClassLoader.java91 protected final Class<?> defineClass(String name, byte[] b, int off, int len, in defineClass() argument
93 return cs == null ? defineClass(name, b, off, len) : defineClass(name, in defineClass()
94 b, off, len, getPD(cs)); in defineClass()
DSignature.java512 public final void update(byte[] data, int off, int len) in update() argument
517 if (data == null || off < 0 || len < 0 || in update()
518 off + len > data.length) { in update()
521 engineUpdate(data, off, len); in update()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DCRC32Test.java149 int off = 2;// accessing the 2nd element of byteArray in test_update$BII() local
153 crc.update(byteArray, off, len); in test_update$BII()
161 crc.update(byteArray, off, lenError); in test_update$BII()
DAdler32Test.java132 int off = 2;// accessing the 2nd element of byteArray in test_update$BII() local
136 adl.update(byteArray, off, len); in test_update$BII()
144 adl.update(byteArray, off, lenError); in test_update$BII()
/libcore/luni/src/main/java/libcore/net/url/
DFtpURLInputStream.java46 public int read(byte[] buf, int off, int nbytes) throws IOException { in read() argument
47 return is.read(buf, off, nbytes); in read()
/libcore/luni/src/main/java/javax/crypto/
DCipherOutputStream.java91 @Override public void write(byte[] b, int off, int len) throws IOException { in write() argument
95 byte[] result = cipher.update(b, off, len); in write()
DCipherInputStream.java151 public int read(byte[] buf, int off, int len) throws IOException { in read() argument
163 System.arraycopy(outputBuffer, outputIndex, buf, off, len); in read()
/libcore/luni/src/test/java/tests/java/security/
DSecureClassLoaderTest.java231 public Class define(String name, byte[] b, int off, int len, in define() argument
233 return defineClass(name, b, off, len, cs); in define()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DBufferedWriterTest.java57 public void write(char[] buf, int off, int len) throws IOException { in write() argument
58 for (int i = off; i < off + len; i++) { in write()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DSignatureSpiTest.java129 protected void engineUpdate(byte[] b, int off, int len) in testEngineGetParameters()
172 public void engineUpdate(byte[] b, int off, int len) { in engineUpdate() argument
206 public void engineUpdate(byte[] b, int off, int len) { in engineUpdate() argument
260 protected void engineUpdate(byte[] b, int off, int len) in engineUpdate() argument
/libcore/luni/src/main/java/java/io/
DInputStreamReader.java230 int off = bytes.arrayOffset() + bytes.limit(); in read() local
231 int actualByteCount = in.read(bytes.array(), off, desiredByteCount); in read()

12