Home
last modified time | relevance | path

Searched refs:arraycopy (Results 1 – 25 of 253) sorted by relevance

1234567891011

/aosp14/frameworks/base/core/java/com/android/internal/util/
H A DGrowingArrayUtils.java51 System.arraycopy(array, 0, newArray, 0, currentSize); in append()
67 System.arraycopy(array, 0, newArray, 0, currentSize); in append()
82 System.arraycopy(array, 0, newArray, 0, currentSize); in append()
97 System.arraycopy(array, 0, newArray, 0, currentSize); in append()
112 System.arraycopy(array, 0, newArray, 0, currentSize); in append()
134 System.arraycopy(array, index, array, index + 1, currentSize - index); in insert()
142 System.arraycopy(array, 0, newArray, 0, index); in insert()
144 System.arraycopy(array, index, newArray, index + 1, array.length - index); in insert()
161 System.arraycopy(array, 0, newArray, 0, index); in insert()
180 System.arraycopy(array, 0, newArray, 0, index); in insert()
[all …]
H A DArrayUtils.java387 System.arraycopy(item, 0, all, pos, item.length); in concat()
420 System.arraycopy(a, 0, result, pos, a.length); in concat()
449 System.arraycopy(array, 0, result, 0, end); in appendElement()
473 System.arraycopy(array, 0, result, 0, i); in removeElement()
499 System.arraycopy(cur, 0, ret, 0, N); in appendInt()
525 System.arraycopy(cur, 0, ret, 0, i); in removeInt()
528 System.arraycopy(cur, i + 1, ret, i, N - i - 1); in removeInt()
548 System.arraycopy(cur, 0, ret, 0, i); in removeString()
551 System.arraycopy(cur, i + 1, ret, i, N - i - 1); in removeString()
577 System.arraycopy(cur, 0, ret, 0, N); in appendLong()
[all …]
H A DBitwiseOutputStream.java70 System.arraycopy(mBuf, 0, newBuf, 0, len); in toByteArray()
82 System.arraycopy(mBuf, 0, newBuf, 0, mEnd >>> 3); in possExpand()
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/libcore/
H A DSystemArrayCopyPerfTest.java55 System.arraycopy(src, 0, dst, 0, len); in timeSystemCharArrayCopy()
67 System.arraycopy(src, 0, dst, 0, len); in timeSystemByteArrayCopy()
79 System.arraycopy(src, 0, dst, 0, len); in timeSystemShortArrayCopy()
91 System.arraycopy(src, 0, dst, 0, len); in timeSystemIntArrayCopy()
103 System.arraycopy(src, 0, dst, 0, len); in timeSystemLongArrayCopy()
115 System.arraycopy(src, 0, dst, 0, len); in timeSystemFloatArrayCopy()
127 System.arraycopy(src, 0, dst, 0, len); in timeSystemDoubleArrayCopy()
139 System.arraycopy(src, 0, dst, 0, len); in timeSystemBooleanArrayCopy()
/aosp14/frameworks/base/keystore/java/android/security/keystore/
H A DArrayUtils.java62 System.arraycopy(arr1, offset1, result, 0, len1); in concat()
63 System.arraycopy(arr2, offset2, result, len1, len2); in concat()
92 System.arraycopy(src, srcOffset, dst, dstOffset, length); in copy()
104 System.arraycopy(arr, offset, result, 0, len); in subarray()
115 System.arraycopy(arr1, 0, result, 0, arr1.length); in concat()
116 System.arraycopy(arr2, 0, result, arr1.length, arr2.length); in concat()
/aosp14/frameworks/base/core/java/android/util/
H A DArraySet.java376 System.arraycopy(ohashes, 0, mHashes, 0, mSize); in ensureCapacity()
377 System.arraycopy(oarray, 0, mArray, 0, mSize); in ensureCapacity()
489 System.arraycopy(oarray, 0, mArray, 0, oarray.length); in add()
557 System.arraycopy(array.mHashes, 0, mHashes, 0, N); in addAll()
558 System.arraycopy(array.mArray, 0, mArray, 0, N); in addAll()
639 System.arraycopy(ohashes, 0, mHashes, 0, index); in removeAt()
640 System.arraycopy(oarray, 0, mArray, 0, index); in removeAt()
731 System.arraycopy(ohashes, 0, mHashes, 0, mSize); in removeIf()
732 System.arraycopy(oarray, 0, mArray, 0, mSize); in removeIf()
772 System.arraycopy(mArray, 0, result, 0, mSize); in toArray()
[all …]
H A DIntArray.java111 System.arraycopy(mValues, index, mValues, index + 1, rightSegment); in add()
142 System.arraycopy(values.mValues, 0, mValues, mSize, count); in addAll()
153 System.arraycopy(values, 0, mValues, mSize, count); in addAll()
168 System.arraycopy(mValues, 0, newValues, 0, currentSize); in ensureCapacity()
220 System.arraycopy(mValues, index + 1, mValues, index, mSize - index - 1); in remove()
H A DArrayMap.java413 System.arraycopy(ohashes, 0, mHashes, 0, osize); in ensureCapacity()
414 System.arraycopy(oarray, 0, mArray, 0, osize<<1); in ensureCapacity()
612 System.arraycopy(ohashes, 0, mHashes, 0, ohashes.length); in put()
613 System.arraycopy(oarray, 0, mArray, 0, oarray.length); in put()
622 System.arraycopy(mHashes, index, mHashes, index + 1, osize - index); in put()
714 System.arraycopy(array.mHashes, 0, mHashes, 0, N); in putAll()
715 System.arraycopy(array.mArray, 0, mArray, 0, N<<1); in putAll()
791 System.arraycopy(ohashes, 0, mHashes, 0, index); in removeAt()
792 System.arraycopy(oarray, 0, mArray, 0, index << 1); in removeAt()
798 System.arraycopy(oarray, (index + 1) << 1, mArray, index << 1, in removeAt()
[all …]
H A DLongArray.java117 System.arraycopy(mValues, index, mValues, index + 1, rightSegment); in add()
130 System.arraycopy(values.mValues, 0, mValues, mSize, count); in addAll()
145 System.arraycopy(mValues, 0, newValues, 0, currentSize); in ensureCapacity()
205 System.arraycopy(mValues, index + 1, mValues, index, mSize - index - 1); in remove()
H A DSparseLongArray.java133 System.arraycopy(mKeys, index + size, mKeys, index, mSize - (index + size)); in removeAtRange()
134 System.arraycopy(mValues, index + size, mValues, index, mSize - (index + size)); in removeAtRange()
142 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
143 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); in removeAt()
H A DSparseBooleanArray.java117 System.arraycopy(mKeys, i + 1, mKeys, i, mSize - (i + 1)); in delete()
118 System.arraycopy(mValues, i + 1, mValues, i, mSize - (i + 1)); in delete()
129 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
130 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); in removeAt()
/aosp14/frameworks/base/services/core/java/com/android/server/display/utils/
H A DRollingBuffer.java164 System.arraycopy(mTimes, mStart, times, 0, mCount - mStart); in expandBuffer()
165 System.arraycopy(mTimes, 0, times, mCount - mStart, mStart); in expandBuffer()
166 System.arraycopy(mValues, mStart, values, 0, mCount - mStart); in expandBuffer()
167 System.arraycopy(mValues, 0, values, mCount - mStart, mStart); in expandBuffer()
/aosp14/frameworks/base/core/java/android/os/
H A DWorkSource.java325 System.arraycopy(other.mUids, 0, mUids, 0, mNum); in set()
331 System.arraycopy(other.mNames, 0, mNames, 0, mNum); in set()
660 System.arraycopy(uids1, i1+1, uids1, i1, N1-i1); in removeUidsAndNames()
661 System.arraycopy(names1, i1+1, names1, i1, N1-i1); in removeUidsAndNames()
867 System.arraycopy(mUids, 0, newuids, 0, index);
895 System.arraycopy(mUids, 0, newuids, 0, index);
896 System.arraycopy(mNames, 0, newnames, 0, index);
1016 System.arraycopy(mUids, 0, uids, 0, mSize);
1024 System.arraycopy(mTags, 0, tags, 0, mSize);
1039 System.arraycopy(mUids, 0, uids, 0, mSize);
[all …]
H A DBroadcaster.java90 System.arraycopy(oldTargets, 0, r.targets, 0, n); in request()
92 System.arraycopy(oldWhats, 0, r.targetWhats, 0, n); in request()
130 System.arraycopy(targets, 0, r.targets, 0, i); in cancelRequest()
131 System.arraycopy(whats, 0, r.targetWhats, 0, i); in cancelRequest()
136 System.arraycopy(targets, i+1, r.targets, i, in cancelRequest()
138 System.arraycopy(whats, i+1, r.targetWhats, i, in cancelRequest()
/aosp14/frameworks/base/libs/hwui/apex/java/android/graphics/
H A DColorMatrix.java76 System.arraycopy(src, 0, mArray, 0, 20); in ColorMatrix()
83 System.arraycopy(src.mArray, 0, mArray, 0, 20); in ColorMatrix()
110 System.arraycopy(src.mArray, 0, mArray, 0, 20); in set()
117 System.arraycopy(src, 0, mArray, 0, 20); in set()
203 System.arraycopy(tmp, 0, mArray, 0, 20); in setConcat()
/aosp14/frameworks/base/services/core/java/com/android/server/utils/
H A DWatchedSparseBooleanMatrix.java265 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
267 System.arraycopy(mMap, index + 1, mMap, index, mSize - (index + 1)); in removeAt()
290 System.arraycopy(mKeys, toIndex, mKeys, fromIndex, mSize - toIndex); in removeRange()
291 System.arraycopy(mMap, toIndex, mMap, fromIndex, mSize - toIndex); in removeRange()
464 System.arraycopy(mInUse, 0, newInUse, 0, minOrder); in resizeMatrix()
466 System.arraycopy(mMap, 0, newMap, 0, minOrder); in resizeMatrix()
468 System.arraycopy(mKeys, 0, newKeys, 0, minOrder); in resizeMatrix()
474 System.arraycopy(mValues, row, newValues, newRow, minOrder / PACKING); in resizeMatrix()
532 System.arraycopy(mValues, src * mOrder / PACKING, in pack()
723 System.arraycopy(meta, 0, result, 0, meta.length); in matrixToString()
[all …]
/aosp14/frameworks/base/core/java/android/view/inputmethod/
H A DSparseRectFArray.java174 System.arraycopy(mKeys, 0, newArray, 0, mCount); in ensureBufferSize()
180 System.arraycopy(mCoordinates, 0, newArray, 0, mCount * 4); in ensureBufferSize()
186 System.arraycopy(mFlagsArray, 0, newArray, 0, mCount); in ensureBufferSize()
255 System.arraycopy(builder.mKeys, 0, mKeys, 0, builder.mCount); in SparseRectFArray()
256 System.arraycopy(builder.mCoordinates, 0, mCoordinates, 0, builder.mCount * 4); in SparseRectFArray()
257 System.arraycopy(builder.mFlagsArray, 0, mFlagsArray, 0, builder.mCount); in SparseRectFArray()
/aosp14/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DLimitedLengthInputStreamTest.java89 System.arraycopy(TEST_STRING1, offset, expected, 0, length); in checkReadBytesWithOffsetAndLength_WithString1()
94 System.arraycopy(temp, 0, actual, 0, length); in checkReadBytesWithOffsetAndLength_WithString1()
130 System.arraycopy(temp, 0, actual, 0, actual.length); in testReadBytesWithOffsetAndLength_ZeroOffset_PastEnd_Success()
139 System.arraycopy(TEST_STRING1, offset, expected, 0, length); in checkReadBytes_WithString1()
144 System.arraycopy(temp, 0, actual, 0, length); in checkReadBytes_WithString1()
/aosp14/frameworks/base/rs/java/android/renderscript/
H A DProgram.java276 System.arraycopy(str, 0, buf2, 0, str.length); in setShader()
372 System.arraycopy(mInputs, 0, p.mInputs, 0, mInputCount); in initProgram()
374 System.arraycopy(mOutputs, 0, p.mOutputs, 0, mOutputCount); in initProgram()
376 System.arraycopy(mConstants, 0, p.mConstants, 0, mConstantCount); in initProgram()
379 System.arraycopy(mTextureTypes, 0, p.mTextures, 0, mTextureCount); in initProgram()
381 System.arraycopy(mTextureNames, 0, p.mTextureNames, 0, mTextureCount); in initProgram()
/aosp14/frameworks/base/telephony/common/com/google/android/mms/pdu/
H A DEncodedStringValue.java63 System.arraycopy(data, 0, mData, 0, data.length); in EncodedStringValue()
117 System.arraycopy(mData, 0, byteArray, 0, mData.length); in getTextString()
134 System.arraycopy(textString, 0, mData, 0, textString.length); in setTextString()
180 System.arraycopy(textString, 0, mData, 0, textString.length); in appendTextString()
204 System.arraycopy(mData, 0, dstBytes, 0, len); in clone()
/aosp14/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/util/
H A DIntArray.java28 System.arraycopy(mData, 0, temp, 0, mSize); in add()
48 System.arraycopy(mData, 0, result, 0, mSize); in toArray()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/qrcode/
H A DQrYuvLuminanceSource.java50 System.arraycopy(mYuvData, inputOffset, newImage, y * crop_width, crop_width); in crop()
64 System.arraycopy(mYuvData, y * mWidth, row, 0, mWidth); in getRow()
/aosp14/frameworks/base/core/java/android/text/
H A DSpannableStringInternal.java127 System.arraycopy(src.mSpans, 0, mSpans, 0, src.mSpans.length); in copySpansFromInternal()
128 System.arraycopy(src.mSpanData, 0, mSpanData, 0, mSpanData.length); in copySpansFromInternal()
244 System.arraycopy(mSpans, 0, newtags, 0, mSpanCount); in setSpan()
245 System.arraycopy(mSpanData, 0, newdata, 0, mSpanCount * 3); in setSpan()
281 System.arraycopy(spans, i + 1, spans, i, c); in removeSpan()
282 System.arraycopy(data, (i + 1) * COLUMNS, in removeSpan()
396 System.arraycopy(ret, j, ret, j + 1, count - j); in getSpans()
418 System.arraycopy(ret, 0, nret, 0, count); in getSpans()
/aosp14/frameworks/base/core/java/android/util/proto/
H A DEncodedBuffer.java410 System.arraycopy(val, offset, mWriteBuffer, mWriteIndex, amt); in writeRawBuffer()
419 System.arraycopy(val, offset, mWriteBuffer, mWriteIndex, amt); in writeRawBuffer()
484 System.arraycopy(readBuffer, readIndex, mWriteBuffer, mWriteIndex, amt);
582 System.arraycopy(mBuffers.get(bufIndex), 0, result, writeIndex, mChunkSize);
588 System.arraycopy(mBuffers.get(bufIndex), 0, result, writeIndex, lastSize);
/aosp14/frameworks/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/
H A DBluetoothPacketEncoder.java133 System.arraycopy(msg, offset, mAccumulationBuffer, mAccumulatedBytes, copy);
164 System.arraycopy(msg, offset + 1, mAccumulationBuffer, mAccumulatedBytes,
242 System.arraycopy(mAccumulationBuffer, 0, failedBuffer, 0, mAccumulatedBytes); in flushLocked()

1234567891011