Home
last modified time | relevance | path

Searched refs:dstOffset (Results 1 – 23 of 23) sorted by relevance

/libcore/luni/src/main/java/libcore/io/
DNioBufferIterator.java66 public void readByteArray(byte[] dst, int dstOffset, int byteCount) { in readByteArray() argument
67 checkDstBounds(dstOffset, dst.length, byteCount); in readByteArray()
70 Memory.peekByteArray(address + position, dst, dstOffset, byteCount); in readByteArray()
90 public void readIntArray(int[] dst, int dstOffset, int intCount) { in readIntArray() argument
91 checkDstBounds(dstOffset, dst.length, intCount); in readIntArray()
95 Memory.peekIntArray(address + position, dst, dstOffset, intCount, swap); in readIntArray()
121 private static void checkDstBounds(int dstOffset, int dstLength, int count) { in checkDstBounds() argument
122 if (dstOffset < 0 || count < 0) { in checkDstBounds()
128 final int targetPos = dstOffset + count; in checkDstBounds()
132 + dstOffset + ", count=" + count); in checkDstBounds()
DMemory.java40 public static native void unsafeBulkGet(Object dst, int dstOffset, int byteCount, in unsafeBulkGet() argument
47 public static native void unsafeBulkPut(byte[] dst, int dstOffset, int byteCount, in unsafeBulkPut() argument
162 …public static native void memmove(Object dstObject, int dstOffset, Object srcObject, int srcOffset… in memmove() argument
201 public static native void peekByteArray(long address, byte[] dst, int dstOffset, int byteCount); in peekByteArray() argument
202 …public static native void peekCharArray(long address, char[] dst, int dstOffset, int charCount, bo… in peekCharArray() argument
203 …public static native void peekDoubleArray(long address, double[] dst, int dstOffset, int doubleCou… in peekDoubleArray() argument
204 …public static native void peekFloatArray(long address, float[] dst, int dstOffset, int floatCount,… in peekFloatArray() argument
205 …public static native void peekIntArray(long address, int[] dst, int dstOffset, int intCount, boole… in peekIntArray() argument
206 …public static native void peekLongArray(long address, long[] dst, int dstOffset, int longCount, bo… in peekLongArray() argument
207 …public static native void peekShortArray(long address, short[] dst, int dstOffset, int shortCount,… in peekShortArray() argument
DBufferIterator.java53 public abstract void readByteArray(byte[] dst, int dstOffset, int byteCount); in readByteArray() argument
78 public abstract void readIntArray(int[] dst, int dstOffset, int intCount); in readIntArray() argument
/libcore/luni/src/main/native/
Dlibcore_io_Memory.cpp95 static void Memory_memmove(JNIEnv* env, jclass, jobject dstObject, jint dstOffset, jobject srcObjec… in Memory_memmove() argument
104 memmove(dstBytes.get() + dstOffset, srcBytes.get() + srcOffset, length); in Memory_memmove()
111 …ekByteArray(JNIEnv* env, jclass, jlong srcAddress, jbyteArray dst, jint dstOffset, jint byteCount)… in Memory_peekByteArray() argument
112 env->SetByteArrayRegion(dst, dstOffset, byteCount, cast<const jbyte*>(srcAddress)); in Memory_peekByteArray()
129 SWAP_FN(reinterpret_cast<SWAP_TYPE*>(elements.get()) + dstOffset, src, count); /*NOLINT*/ \
132 env->Set ## JNI_NAME ## ArrayRegion(dst, dstOffset, count, src); \
136 …ekCharArray(JNIEnv* env, jclass, jlong srcAddress, jcharArray dst, jint dstOffset, jint count, jbo… in Memory_peekCharArray() argument
140 …ubleArray(JNIEnv* env, jclass, jlong srcAddress, jdoubleArray dst, jint dstOffset, jint count, jbo… in Memory_peekDoubleArray() argument
144 …FloatArray(JNIEnv* env, jclass, jlong srcAddress, jfloatArray dst, jint dstOffset, jint count, jbo… in Memory_peekFloatArray() argument
148 …peekIntArray(JNIEnv* env, jclass, jlong srcAddress, jintArray dst, jint dstOffset, jint count, jbo… in Memory_peekIntArray() argument
[all …]
/libcore/ojluni/src/main/java/java/nio/
DHeapByteBuffer.java211 void getUnchecked(int pos, char[] dst, int dstOffset, int length) { in getUnchecked() argument
212 Memory.unsafeBulkGet(dst, dstOffset, length * 2, hb, ix(pos), 2, !nativeByteOrder); in getUnchecked()
272 void getUnchecked(int pos, short[] dst, int dstOffset, int length) { in getUnchecked() argument
273 Memory.unsafeBulkGet(dst, dstOffset, length * 2, hb, ix(pos), 2, !nativeByteOrder); in getUnchecked()
333 void getUnchecked(int pos, int[] dst, int dstOffset, int length) { in getUnchecked() argument
334 Memory.unsafeBulkGet(dst, dstOffset, length * 4, hb, ix(pos), 4, !nativeByteOrder); in getUnchecked()
395 void getUnchecked(int pos, long[] dst, int dstOffset, int length) { in getUnchecked() argument
396 Memory.unsafeBulkGet(dst, dstOffset, length * 8, hb, ix(pos), 8, !nativeByteOrder); in getUnchecked()
456 void getUnchecked(int pos, float[] dst, int dstOffset, int length) { in getUnchecked() argument
457 Memory.unsafeBulkGet(dst, dstOffset, length * 4, hb, ix(pos), 4, !nativeByteOrder); in getUnchecked()
[all …]
DByteBuffer.java637 int dstOffset = dst.position(); in put() local
639 dstOffset += dst.offset; in put()
641 Memory.memmove(dstObject, dstOffset, srcObject, srcOffset, n); in put()
1135 abstract void getUnchecked(int pos, char[] dst, int dstOffset, int length); in getUnchecked() argument
1244 abstract void getUnchecked(int pos, short[] dst, int dstOffset, int length); in getUnchecked() argument
1353 abstract void getUnchecked(int pos, int[] dst, int dstOffset, int length); in getUnchecked() argument
1462 abstract void getUnchecked(int pos, long[] dst, int dstOffset, int length); in getUnchecked() argument
1571 abstract void getUnchecked(int pos, float[] dst, int dstOffset, int length); in getUnchecked() argument
1680 abstract void getUnchecked(int pos, double[] dst, int dstOffset, int length); in getUnchecked() argument
DDirectByteBuffer.java229 public ByteBuffer get(byte[] dst, int dstOffset, int length) { in get() argument
233 checkBounds(dstOffset, length, dst.length); in get()
241 dst, dstOffset, length); in get() local
378 void getUnchecked(int pos, char[] dst, int dstOffset, int length) { in getUnchecked() argument
383 dst, dstOffset, length, !nativeByteOrder); in getUnchecked() local
480 void getUnchecked(int pos, short[] dst, int dstOffset, int length) { in getUnchecked() argument
485 dst, dstOffset, length, !nativeByteOrder); in getUnchecked() local
582 final void getUnchecked(int pos, int[] dst, int dstOffset, int length) { in getUnchecked() argument
587 dst, dstOffset, length, !nativeByteOrder); in getUnchecked() local
684 final void getUnchecked(int pos, long[] dst, int dstOffset, int length) { in getUnchecked() argument
[all …]
/libcore/ojluni/annotations/hiddenapi/java/nio/
DByteBuffer.java157 abstract void getUnchecked(int pos, char[] dst, int dstOffset, int length); in getUnchecked() argument
175 abstract void getUnchecked(int pos, short[] dst, int dstOffset, int length); in getUnchecked() argument
193 abstract void getUnchecked(int pos, int[] dst, int dstOffset, int length); in getUnchecked() argument
211 abstract void getUnchecked(int pos, long[] dst, int dstOffset, int length); in getUnchecked() argument
229 abstract void getUnchecked(int pos, float[] dst, int dstOffset, int length); in getUnchecked() argument
247 abstract void getUnchecked(int pos, double[] dst, int dstOffset, int length); in getUnchecked() argument
DDirectByteBuffer.java119 public java.nio.ByteBuffer get(byte[] dst, int dstOffset, int length) { in get() argument
175 void getUnchecked(int pos, char[] dst, int dstOffset, int length) { in getUnchecked() argument
219 void getUnchecked(int pos, short[] dst, int dstOffset, int length) { in getUnchecked() argument
263 final void getUnchecked(int pos, int[] dst, int dstOffset, int length) { in getUnchecked() argument
307 final void getUnchecked(int pos, long[] dst, int dstOffset, int length) { in getUnchecked() argument
351 final void getUnchecked(int pos, float[] dst, int dstOffset, int length) { in getUnchecked() argument
395 final void getUnchecked(int pos, double[] dst, int dstOffset, int length) { in getUnchecked() argument
/libcore/ojluni/src/main/java/java/lang/
DAbstractStringBuilder.java1099 public AbstractStringBuilder insert(int dstOffset, CharSequence s) { in insert() argument
1103 return this.insert(dstOffset, (String)s); in insert()
1104 return this.insert(dstOffset, s, 0, s.length()); in insert()
1151 public AbstractStringBuilder insert(int dstOffset, CharSequence s, in insert() argument
1155 if ((dstOffset < 0) || (dstOffset > this.length())) in insert()
1156 throw new IndexOutOfBoundsException("dstOffset "+dstOffset); in insert()
1163 System.arraycopy(value, dstOffset, value, dstOffset + len, in insert()
1164 count - dstOffset); in insert()
1166 value[dstOffset++] = s.charAt(i); in insert()
DStringBuilder.java309 public StringBuilder insert(int dstOffset, CharSequence s) { in insert() argument
310 super.insert(dstOffset, s); in insert()
318 public StringBuilder insert(int dstOffset, CharSequence s, in insert() argument
321 super.insert(dstOffset, s, start, end); in insert()
DStringBuffer.java531 public StringBuffer insert(int dstOffset, CharSequence s) { in insert() argument
535 super.insert(dstOffset, s); in insert()
544 public synchronized StringBuffer insert(int dstOffset, CharSequence s, in insert() argument
548 super.insert(dstOffset, s, start, end); in insert()
/libcore/luni/src/test/java/libcore/libcore/timezone/
DCountryTimeZonesTest.java276 final int dstOffset = LONDON_DST_OFFSET_MILLIS; in lookupByOffsetWithBiasDeprecated_multipleOverlappingCandidates() local
284 countryTimeZones.lookupByOffsetWithBias(dstOffset, true /* isDst */, WHEN_DST, in lookupByOffsetWithBiasDeprecated_multipleOverlappingCandidates()
290 countryTimeZones.lookupByOffsetWithBias(dstOffset, true /* isDst */, WHEN_DST, in lookupByOffsetWithBiasDeprecated_multipleOverlappingCandidates()
301 OffsetResult noDstMatch1 = countryTimeZones.lookupByOffsetWithBias(dstOffset, in lookupByOffsetWithBiasDeprecated_multipleOverlappingCandidates()
313 OffsetResult noDstMatch4 = countryTimeZones.lookupByOffsetWithBias(dstOffset, in lookupByOffsetWithBiasDeprecated_multipleOverlappingCandidates()
504 final int dstOffset = LONDON_DST_OFFSET_MILLIS; in lookupByOffsetWithBias_multipleOverlappingCandidates() local
512 countryTimeZones.lookupByOffsetWithBias(dstOffset, NORMAL_DST_ADJUSTMENT, WHEN_DST, in lookupByOffsetWithBias_multipleOverlappingCandidates()
518 countryTimeZones.lookupByOffsetWithBias(dstOffset, NORMAL_DST_ADJUSTMENT, WHEN_DST, in lookupByOffsetWithBias_multipleOverlappingCandidates()
534 assertNull(countryTimeZones.lookupByOffsetWithBias(dstOffset, null, WHEN_NO_DST, in lookupByOffsetWithBias_multipleOverlappingCandidates()
537 countryTimeZones.lookupByOffsetWithBias(dstOffset, null, WHEN_DST, in lookupByOffsetWithBias_multipleOverlappingCandidates()
[all …]
DTimeZoneFinderTest.java852 final int dstOffset = LONDON_DST_OFFSET_MILLIS; in lookupTimeZoneByCountryAndOffset_multipleOverlappingCandidates() local
855 assertZoneEquals(LONDON_TZ, finder.lookupTimeZoneByCountryAndOffset("xx", dstOffset, in lookupTimeZoneByCountryAndOffset_multipleOverlappingCandidates()
859 assertZoneEquals(LONDON_TZ, finder.lookupTimeZoneByCountryAndOffset("xx", dstOffset, in lookupTimeZoneByCountryAndOffset_multipleOverlappingCandidates()
868 TimeZone noDstMatch1 = finder.lookupTimeZoneByCountryAndOffset("xx", dstOffset, in lookupTimeZoneByCountryAndOffset_multipleOverlappingCandidates()
880 TimeZone noDstMatch4 = finder.lookupTimeZoneByCountryAndOffset("xx", dstOffset, in lookupTimeZoneByCountryAndOffset_multipleOverlappingCandidates()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DAbstractStringBuilder.java205 public java.lang.AbstractStringBuilder insert(int dstOffset, java.lang.CharSequence s) { in insert() argument
210 int dstOffset, java.lang.CharSequence s, int start, int end) { in insert() argument
/libcore/luni/src/main/java/libcore/util/
DZoneInfo.java562 int dstOffset; in getOffsetsByUtcTime() local
567 dstOffset = 0; in getOffsetsByUtcTime()
577 dstOffset = 0; in getOffsetsByUtcTime()
595 dstOffset = totalOffset - rawOffset; in getOffsetsByUtcTime()
600 offsets[1] = dstOffset; in getOffsetsByUtcTime()
/libcore/luni/src/test/java/libcore/libcore/util/
DZoneInfoTest.java785 public void readByteArray(byte[] dst, int dstOffset, int byteCount) { in readByteArray() argument
786 buffer.get(dst, dstOffset, byteCount); in readByteArray()
804 public void readIntArray(int[] dst, int dstOffset, int intCount) { in readIntArray() argument
805 buffer.asIntBuffer().get(dst, dstOffset, intCount); in readIntArray()
/libcore/ojluni/src/main/java/java/util/
DGregorianCalendar.java2891 int dstOffset = 0; in adjustForZoneAndDaylightSavingsTime() local
2919 dstOffset = zoneOffsets[1]; in adjustForZoneAndDaylightSavingsTime()
2922 dstOffset = adjustDstOffsetForInvalidWallClock(standardTimeInZone, zone, dstOffset); in adjustForZoneAndDaylightSavingsTime()
2932 dstOffset = internalGet(DST_OFFSET); in adjustForZoneAndDaylightSavingsTime()
2938 return standardTimeInZone - dstOffset; in adjustForZoneAndDaylightSavingsTime()
2990 long standardTimeInZone, TimeZone zone, int dstOffset) { in adjustDstOffsetForInvalidWallClock() argument
2992 if (dstOffset != 0) { in adjustDstOffsetForInvalidWallClock()
2995 if (!zone.inDaylightTime(new Date(standardTimeInZone - dstOffset))) { in adjustDstOffsetForInvalidWallClock()
2996 dstOffset = 0; in adjustDstOffsetForInvalidWallClock()
2999 return dstOffset; in adjustDstOffsetForInvalidWallClock()
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DStringBuffer.annotated.java113 @libcore.util.NonNull public java.lang.StringBuffer insert(int dstOffset, @libcore.util.Nullable ja… in insert() argument
115 @libcore.util.NonNull public synchronized java.lang.StringBuffer insert(int dstOffset, @libcore.uti… in insert() argument
DStringBuilder.annotated.java84 @libcore.util.NonNull public java.lang.StringBuilder insert(int dstOffset, @libcore.util.Nullable j… in insert() argument
86 @libcore.util.NonNull public java.lang.StringBuilder insert(int dstOffset, @libcore.util.Nullable j… in insert() argument
/libcore/ojluni/annotations/mmodule/java/nio/
DDirectByteBuffer.annotated.java55 public java.nio.ByteBuffer get(byte[] dst, int dstOffset, int length) { throw new RuntimeException(… in get() argument
/libcore/ojluni/src/main/java/sun/misc/
DUnsafe.java432 Object dst, long dstOffset, long bytes); in copyMemoryToPrimitiveArray() argument
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DUnsafe.java234 long srcAddr, java.lang.Object dst, long dstOffset, long bytes); in copyMemoryToPrimitiveArray() argument