Searched refs:offset (Results 251 - 275 of 387) sorted by relevance

<<111213141516

/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DPRF.java138 int offset = secret.length & 1; // remainder
139 keyMd5 = new SecretKeySpec(secret, 0, length + offset,
142 + offset, "HmacSHA1");
/dalvik/libcore/luni-kernel/src/main/java/java/lang/
H A DClassLoader.java252 * @param offset
253 * the offset into {@code classRep}.
261 * if {@code offset < 0}, {@code length < 0} or if
262 * {@code offset + length} is greater than the length of
268 protected final Class<?> defineClass(byte[] classRep, int offset, int length) argument
271 return VMClassLoader.defineClass(this, classRep, offset, length, null);
283 * @param offset
284 * the offset into {@code classRep}.
292 * if {@code offset < 0}, {@code length < 0} or if
293 * {@code offset
297 defineClass(String className, byte[] classRep, int offset, int length) argument
335 defineClass(String className, byte[] classRep, int offset, int length, ProtectionDomain protectionDomain) argument
[all...]
/dalvik/vm/
H A DMisc.c35 * If "mode" is kHexDumpLocal, we start at offset zero, and show a full
50 unsigned int offset; /* offset to show while printing */ local
57 offset = 0;
59 offset = (int) addr;
66 gap = (int) offset & 0x0f;
68 unsigned int lineOffset = offset & ~0x0f;
126 offset += count;
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DKeyAgreementSpiTest.java71 protected int engineGenerateSecret(byte[] sharedSecret, int offset) argument
73 return super.engineGenerateSecret(sharedSecret, offset);
/dalvik/libcore/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
H A DErrorManagerTest.java116 public synchronized void write(byte[] buffer, int offset, int len) { argument
117 linesWritten.append(new String(buffer, offset, len));
/dalvik/libcore/luni/src/test/java/tests/api/java/io/
H A DFilterWriterTest.java57 public void write(char[] buffer, int offset, int count) throws IOException { argument
65 public void write(String str, int offset, int count) throws IOException { argument
/dalvik/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DMySSLContextSpi.java139 int offset, int length) throws SSLException {
142 public SSLEngineResult wrap(ByteBuffer[] srcs, int offset, argument
138 unwrap(ByteBuffer src, ByteBuffer[] dsts, int offset, int length) argument
/dalvik/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
H A DMySSLContextSpi.java137 int offset, int length) throws SSLException {
140 public SSLEngineResult wrap(ByteBuffer[] srcs, int offset, argument
136 unwrap(ByteBuffer src, ByteBuffer[] dsts, int offset, int length) argument
/dalvik/libcore/x-net/src/main/native/
H A Dorg_apache_harmony_xnet_provider_jsse_NativeCrypto.cpp253 static jint NativeCrypto_EVP_DigestFinal(JNIEnv* env, jclass clazz, EVP_MD_CTX* ctx, jbyteArray hash, jint offset) { argument
254 // LOGI("NativeCrypto_EVP_DigestFinal%x, %x, %d, %d", ctx, hash, offset);
264 EVP_DigestFinal(ctx, (unsigned char*) (hashBytes + offset), (unsigned int*)&result);
337 static void NativeCrypto_EVP_DigestUpdate(JNIEnv* env, jclass clazz, EVP_MD_CTX* ctx, jbyteArray buffer, jint offset, jint length) { argument
338 // LOGI("NativeCrypto_EVP_DigestUpdate %x, %x, %d, %d", ctx, buffer, offset, length);
346 EVP_DigestUpdate(ctx, (unsigned char*) (bufferBytes + offset), length);
381 static void NativeCrypto_EVP_VerifyUpdate(JNIEnv* env, jclass clazz, EVP_MD_CTX* ctx, jbyteArray buffer, jint offset, jint length) { argument
382 // LOGI("NativeCrypto_EVP_VerifyUpdate %x, %x, %d, %d", ctx, buffer, offset, length);
390 EVP_VerifyUpdate(ctx, (unsigned char*) (bufferBytes + offset), length);
399 static int NativeCrypto_EVP_VerifyFinal(JNIEnv* env, jclass clazz, EVP_MD_CTX* ctx, jbyteArray buffer, jint offset, jin argument
[all...]
/dalvik/vm/mterp/armv5te/
H A DOP_IPUT_WIDE_QUICK.S3 /* iput-wide-quick vA, vB, offset@CCCC */
12 FETCH(r3, 1) @ r3<- field byte offset
H A Dbincmp.S19 FETCH_S(r9, 1) @ r9<- branch offset, in code units
/dalvik/libdex/
H A DDexSwapVerify.c81 * Return the file offset of the given pointer.
88 * Return a pointer for the given file offset.
90 static inline void* filePointer(const CheckState* state, u4 offset) { argument
91 return (void*) (state->fileStart + offset);
108 LOGW("Bad offset range for %s: 0x%x..0x%x\n", label,
165 * Swap a field that is known to hold an absolute DEX file offset. Note:
166 * This does not check to see that the swapped offset points within the
378 SWAP_OFFSET4(item->offset);
382 } else if (lastOffset >= item->offset) {
384 lastOffset, item->offset);
889 verifyClassDataIsForDef(const CheckState* state, u4 offset, u4 definerIdx) argument
918 verifyAnnotationsDirectoryIsForDef(const CheckState* state, u4 offset, u4 definerIdx) argument
1610 u4 offset = firstOffset; local
2325 iterateSectionWithOptionalUpdate(CheckState* state, u4 offset, u4 count, ItemVisitorFunction* func, u4 alignment, u4* nextOffset, int mapType) argument
2385 iterateSection(CheckState* state, u4 offset, u4 count, ItemVisitorFunction* func, u4 alignment, u4* nextOffset) argument
2395 checkBoundsAndIterateSection(CheckState* state, u4 offset, u4 count, u4 expectedOffset, u4 expectedCount, ItemVisitorFunction* func, u4 alignment, u4* nextOffset) argument
2417 iterateDataSection(CheckState* state, u4 offset, u4 count, ItemVisitorFunction* func, u4 alignment, u4* nextOffset, int mapType) argument
[all...]
/dalvik/libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/
H A DDoubleBufferTest.java158 int offset = buf.arrayOffset();
159 assertContentEquals(buf, array, offset, buf.capacity());
164 assertContentEquals(buf, array, offset, buf.capacity());
167 assertContentEquals(buf, array, offset, buf.capacity());
869 * test for method static DoubleBuffer wrap(double[] array, int offset, int
883 int offset = 5;
884 int length = BUFFER_LENGTH - offset;
886 DoubleBuffer buf2 = DoubleBuffer.wrap(array, offset, length);
891 assertEquals(buf2.position(), offset);
892 assertEquals(buf2.limit(), offset
912 loadTestData1(double array[], int offset, int length) argument
918 loadTestData2(double array[], int offset, int length) argument
938 assertContentEquals(DoubleBuffer buf, double array[], int offset, int length) argument
[all...]
H A DFloatBufferTest.java154 int offset = buf.arrayOffset();
155 assertContentEquals(buf, array, offset, buf.capacity());
160 assertContentEquals(buf, array, offset, buf.capacity());
163 assertContentEquals(buf, array, offset, buf.capacity());
890 * test for method static FloatBuffer wrap(float[] array, int offset, int
904 int offset = 5;
905 int length = BUFFER_LENGTH - offset;
907 FloatBuffer buf2 = FloatBuffer.wrap(array, offset, length);
912 assertEquals(buf2.position(), offset);
913 assertEquals(buf2.limit(), offset
933 loadTestData1(float array[], int offset, int length) argument
939 loadTestData2(float array[], int offset, int length) argument
959 assertContentEquals(FloatBuffer buf, float array[], int offset, int length) argument
[all...]
H A DIntBufferTest.java129 int offset = buf.arrayOffset();
130 assertContentEquals(buf, array, offset, buf.capacity());
135 assertContentEquals(buf, array, offset, buf.capacity());
138 assertContentEquals(buf, array, offset, buf.capacity());
863 * test for method static IntBuffer wrap(int[] array, int offset, int
877 int offset = 5;
878 int length = BUFFER_LENGTH - offset;
880 IntBuffer buf2 = IntBuffer.wrap(array, offset, length);
885 assertEquals(buf2.position(), offset);
886 assertEquals(buf2.limit(), offset
906 loadTestData1(int array[], int offset, int length) argument
912 loadTestData2(int array[], int offset, int length) argument
932 assertContentEquals(IntBuffer buf, int array[], int offset, int length) argument
[all...]
H A DLongBufferTest.java128 int offset = buf.arrayOffset();
129 assertContentEquals(buf, array, offset, buf.capacity());
134 assertContentEquals(buf, array, offset, buf.capacity());
137 assertContentEquals(buf, array, offset, buf.capacity());
845 * test for method public static LongBuffer wrap(long[] array, int offset,
859 int offset = 5;
860 int length = BUFFER_LENGTH - offset;
862 LongBuffer buf2 = LongBuffer.wrap(array, offset, length);
867 assertEquals(buf2.position(), offset);
868 assertEquals(buf2.limit(), offset
888 loadTestData1(long array[], int offset, int length) argument
894 loadTestData2(long array[], int offset, int length) argument
914 assertContentEquals(LongBuffer buf, long array[], int offset, int length) argument
[all...]
H A DShortBufferTest.java128 int offset = buf.arrayOffset();
129 assertContentEquals(buf, array, offset, buf.capacity());
134 assertContentEquals(buf, array, offset, buf.capacity());
137 assertContentEquals(buf, array, offset, buf.capacity());
856 * test for method static ShortBuffer wrap(short[] array, int offset, int
870 int offset = 5;
871 int length = BUFFER_LENGTH - offset;
873 ShortBuffer buf2 = ShortBuffer.wrap(array, offset, length);
878 assertEquals(buf2.position(), offset);
879 assertEquals(buf2.limit(), offset
899 loadTestData1(short array[], int offset, int length) argument
905 loadTestData2(short array[], int offset, int length) argument
925 assertContentEquals(ShortBuffer buf, short array[], int offset, int length) argument
[all...]
/dalvik/vm/analysis/
H A DRegisterMap.c393 int offset;
416 for (offset = 0; offset < insnsSize; offset++) {
419 u1 opcode = insns[offset] & 0xff;
423 if (!dvmCheckBranchTarget(meth, insnFlags, offset, true))
427 if (!dvmCheckSwitchTargets(meth, insnFlags, offset))
432 dvmInsnSetGcPoint(pState->insnFlags, offset, true);
490 int offset;
491 for (offset
[all...]
/dalvik/dexopt/
H A DOptMain.c115 * Extract the DEX data into the cache file at the current offset.
293 * 4. DEX offset within file
320 long offset, length; local
345 GET_ARG(offset, strtol, "bad offset");
354 fd, offset, length, debugFileName, modWhen, crc, flags, argc);
425 if (!dvmContinueOptimization(fd, offset, length, debugFileName,
/dalvik/dx/src/com/android/dx/cf/code/
H A DMachine.java203 * @param offset &gt;= 0; byte offset in the method to the opcode being
207 public void run(Frame frame, int offset, int opcode); argument
/dalvik/libcore/crypto/src/main/java/javax/crypto/
H A DMac.java260 * {@code input} from the specified {@code offset} and length {@code len}.
264 * @param offset
265 * the offset in the buffer.
271 * if {@code offset} and {@code len} do not specified a valid
275 public final void update(byte[] input, int offset, int len) argument
283 if ((offset < 0) || (len < 0) || ((offset + len) > input.length)) {
286 spiImpl.engineUpdate(input, offset, len);
353 * output} buffer at offset {@code outOffset}.
363 * the offset i
[all...]
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/support/
H A DMyKeyAgreementSpi.java59 protected int engineGenerateSecret(byte[] sharedSecret, int offset) argument
/dalvik/libcore/icu/src/main/java/com/ibm/icu4jni/text/
H A DNativeCollation.java230 * Get the offset of the current source character.
231 * This is an offset into the text of the character containing the current
234 * @return offset of the current source character.
240 * Set the offset of the current source character.
241 * This is an offset into the text of the character to be processed.
243 * @param offset The desired character offset.
246 static native void setOffset(int address, int offset); argument
/dalvik/libcore/luni/src/main/java/java/io/
H A DPrintStream.java682 * Writes {@code count} bytes from {@code buffer} starting at {@code offset}
692 * @param offset
697 * if {@code offset < 0} or {@code count < 0}, or if {@code
698 * offset + count} is bigger than the length of {@code buffer}.
703 public void write(byte[] buffer, int offset, int count) { argument
711 // removed redundant check, used (offset | count) < 0
712 // instead of (offset < 0) || (count < 0) to safe one operation
713 if ((offset | count) < 0 || count > buffer.length - offset) {
723 out.write(buffer, offset, coun
[all...]
H A DReader.java147 * {@code buf} starting at offset 0. Returns the number of characters
167 * at {@code offset} in the character array {@code buf}. Returns the number
173 * @param offset
184 public abstract int read(char[] buf, int offset, int count) argument

Completed in 1373 milliseconds

<<111213141516