Home
last modified time | relevance | path

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

123456789

/frameworks/base/core/java/com/android/internal/util/
DGrowingArrayUtils.java47 System.arraycopy(array, 0, newArray, 0, currentSize); in append()
62 System.arraycopy(array, 0, newArray, 0, currentSize); in append()
77 System.arraycopy(array, 0, newArray, 0, currentSize); in append()
92 System.arraycopy(array, 0, newArray, 0, currentSize); in append()
114 System.arraycopy(array, index, array, index + 1, currentSize - index); in insert()
122 System.arraycopy(array, 0, newArray, 0, index); in insert()
124 System.arraycopy(array, index, newArray, index + 1, array.length - index); in insert()
135 System.arraycopy(array, index, array, index + 1, currentSize - index); in insert()
141 System.arraycopy(array, 0, newArray, 0, index); in insert()
143 System.arraycopy(array, index, newArray, index + 1, array.length - index); in insert()
[all …]
DArrayUtils.java210 System.arraycopy(array, 0, result, 0, end); in appendElement()
239 System.arraycopy(array, 0, result, 0, i); in removeElement()
240 System.arraycopy(array, i + 1, result, i, length - i - 1); in removeElement()
267 System.arraycopy(cur, 0, ret, 0, N); in appendInt()
281 System.arraycopy(cur, 0, ret, 0, i); in removeInt()
284 System.arraycopy(cur, i + 1, ret, i, N - i - 1); in removeInt()
311 System.arraycopy(cur, 0, ret, 0, N); in appendLong()
325 System.arraycopy(cur, 0, ret, 0, i); in removeLong()
328 System.arraycopy(cur, i + 1, ret, i, N - i - 1); in removeLong()
/frameworks/base/obex/javax/obex/
DObexSession.java83 System.arraycopy(description, 1, realmString, 0, realmString.length); in handleAuthChall()
157 System.arraycopy(userName, 0, header.mAuthResp, 38, userName.length); in handleAuthChall()
164 System.arraycopy(challenge, 0, digest, 0, challenge.length); in handleAuthChall()
167 System.arraycopy(password, 0, digest, challenge.length + 1, password.length); in handleAuthChall()
173 System.arraycopy(ObexHelper.computeMd5Hash(digest), 0, header.mAuthResp, 2, 16); in handleAuthChall()
178 System.arraycopy(challenge, 0, header.mAuthResp, 20, 16); in handleAuthChall()
203 System.arraycopy(mChallengeDigest, 0, temp, 0, 16); in handleAuthResp()
204 System.arraycopy(correctPassword, 0, temp, 16, correctPassword.length); in handleAuthResp()
DClientSession.java86 System.arraycopy(header.nonce, 0, mChallengeDigest, 0, 16); in connect()
108 System.arraycopy(head, 0, requestPacket, 4, head.length); in connect()
152 System.arraycopy(head.nonce, 0, mChallengeDigest, 0, 16); in get()
158 System.arraycopy(mConnectionId, 0, head.mConnectionID, 0, 4); in get()
196 System.arraycopy(header.nonce, 0, mChallengeDigest, 0, 16); in disconnect()
201 System.arraycopy(mConnectionId, 0, header.mConnectionID, 0, 4); in disconnect()
213 System.arraycopy(mConnectionId, 0, head, 1, 4); in disconnect()
261 System.arraycopy(head.nonce, 0, mChallengeDigest, 0, 16); in put()
269 System.arraycopy(mConnectionId, 0, head.mConnectionID, 0, 4); in put()
298 System.arraycopy(headset.nonce, 0, mChallengeDigest, 0, 16); in setPath()
[all …]
DPrivateInputStream.java122 System.arraycopy(mData, mIndex, b, offset1, currentDataLength); in read()
134 System.arraycopy(mData, mIndex, b, offset1, remainReadLength); in read()
152 System.arraycopy(mData, mIndex, temp, 0, mData.length - mIndex); in writeBytes()
153 System.arraycopy(body, start, temp, mData.length - mIndex, body.length - start); in writeBytes()
DApplicationParameter.java119 System.arraycopy(mArray, 0, array_tmp, 0, mLength); in addAPPHeader()
125 System.arraycopy(value, 0, mArray, mLength, len); in addAPPHeader()
131 System.arraycopy(mArray, 0, para, 0, mLength); in getAPPparam()
DPasswordAuthentication.java56 System.arraycopy(userName, 0, mUserName, 0, userName.length); in PasswordAuthentication()
60 System.arraycopy(password, 0, mPassword, 0, password.length); in PasswordAuthentication()
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/
DUnsafeByteSequence.java53 System.arraycopy(bytes, 0, newBytes, 0, count); in write()
56 System.arraycopy(buffer, offset, bytes, count, length); in write()
63 System.arraycopy(bytes, 0, newBytes, 0, count); in write()
74 System.arraycopy(bytes, 0, result, 0, count); in toByteArray()
/frameworks/base/core/java/android/util/
DArraySet.java279 System.arraycopy(ohashes, 0, mHashes, 0, mSize); in ensureCapacity()
280 System.arraycopy(oarray, 0, mArray, 0, mSize); in ensureCapacity()
361 System.arraycopy(ohashes, 0, mHashes, 0, ohashes.length); in add()
362 System.arraycopy(oarray, 0, mArray, 0, oarray.length); in add()
371 System.arraycopy(mHashes, index, mHashes, index + 1, mSize - index); in add()
372 System.arraycopy(mArray, index, mArray, index + 1, mSize - index); in add()
390 System.arraycopy(array.mHashes, 0, mHashes, 0, N); in addAll()
391 System.arraycopy(array.mArray, 0, mArray, 0, N); in addAll()
447 System.arraycopy(ohashes, 0, mHashes, 0, index); in removeAt()
448 System.arraycopy(oarray, 0, mArray, 0, index); in removeAt()
[all …]
DLongArray.java72 System.arraycopy(mValues, index, mValues, index + 1, mSize - index); in add()
86 System.arraycopy(values.mValues, 0, mValues, mSize, count); in addAll()
101 System.arraycopy(mValues, 0, newValues, 0, currentSize); in ensureCapacity()
156 System.arraycopy(mValues, index + 1, mValues, index, mSize - index - 1); in remove()
DArrayMap.java311 System.arraycopy(ohashes, 0, mHashes, 0, mSize); in ensureCapacity()
312 System.arraycopy(oarray, 0, mArray, 0, mSize<<1); in ensureCapacity()
460 System.arraycopy(ohashes, 0, mHashes, 0, ohashes.length); in put()
461 System.arraycopy(oarray, 0, mArray, 0, oarray.length); in put()
470 System.arraycopy(mHashes, index, mHashes, index + 1, mSize - index); in put()
471 System.arraycopy(mArray, index << 1, mArray, (index + 1) << 1, (mSize - index) << 1); in put()
555 System.arraycopy(array.mHashes, 0, mHashes, 0, N); in putAll()
556 System.arraycopy(array.mArray, 0, mArray, 0, N<<1); in putAll()
612 System.arraycopy(ohashes, 0, mHashes, 0, index); in removeAt()
613 System.arraycopy(oarray, 0, mArray, 0, index << 1); in removeAt()
[all …]
DSparseBooleanArray.java114 System.arraycopy(mKeys, i + 1, mKeys, i, mSize - (i + 1)); in delete()
115 System.arraycopy(mValues, i + 1, mValues, i, mSize - (i + 1)); in delete()
122 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
123 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); in removeAt()
/frameworks/base/core/java/android/os/
DWorkSource.java187 System.arraycopy(other.mUids, 0, mUids, 0, mNum); in set()
193 System.arraycopy(other.mNames, 0, mNames, 0, mNum); in set()
373 if (i1 < N1) System.arraycopy(uids1, i1+1, uids1, i1, N1-i1); in removeUids()
408 System.arraycopy(uids1, i1+1, uids1, i1, N1-i1); in removeUidsAndNames()
409 System.arraycopy(names1, i1+1, names1, i1, N1-i1); in removeUidsAndNames()
473 if (i1 > 0) System.arraycopy(uids1, 0, newuids, 0, i1); in updateUidsLocked()
474 if (i1 < N1) System.arraycopy(uids1, i1, newuids, i1+1, N1-i1); in updateUidsLocked()
478 if (i1 < N1) System.arraycopy(uids1, i1, uids1, i1+1, N1-i1); in updateUidsLocked()
504 System.arraycopy(uids1, i1, uids1, start, N1-i1); in updateUidsLocked()
587 System.arraycopy(mUids, i1, mUids, start, mNum-i1); in updateUidsAndNamesLocked()
[all …]
DBroadcaster.java86 System.arraycopy(oldTargets, 0, r.targets, 0, n); in request()
88 System.arraycopy(oldWhats, 0, r.targetWhats, 0, n); in request()
125 System.arraycopy(targets, 0, r.targets, 0, i); in cancelRequest()
126 System.arraycopy(whats, 0, r.targetWhats, 0, i); in cancelRequest()
131 System.arraycopy(targets, i+1, r.targets, i, in cancelRequest()
133 System.arraycopy(whats, i+1, r.targetWhats, i, in cancelRequest()
/frameworks/support/v4/java/android/support/v4/util/
DSimpleArrayMap.java259 System.arraycopy(ohashes, 0, mHashes, 0, mSize); in ensureCapacity()
260 System.arraycopy(oarray, 0, mArray, 0, mSize<<1); in ensureCapacity()
403 System.arraycopy(ohashes, 0, mHashes, 0, ohashes.length); in put()
404 System.arraycopy(oarray, 0, mArray, 0, oarray.length); in put()
413 System.arraycopy(mHashes, index, mHashes, index + 1, mSize - index); in put()
414 System.arraycopy(mArray, index << 1, mArray, (index + 1) << 1, (mSize - index) << 1); in put()
433 System.arraycopy(array.mHashes, 0, mHashes, 0, N); in putAll()
434 System.arraycopy(array.mArray, 0, mArray, 0, N<<1); in putAll()
489 System.arraycopy(ohashes, 0, mHashes, 0, index); in removeAt()
490 System.arraycopy(oarray, 0, mArray, 0, index << 1); in removeAt()
[all …]
DLongSparseArray.java206 System.arraycopy(mKeys, 0, nkeys, 0, mKeys.length); in put()
207 System.arraycopy(mValues, 0, nvalues, 0, mValues.length); in put()
215 System.arraycopy(mKeys, i, mKeys, i + 1, mSize - i); in put()
216 System.arraycopy(mValues, i, mValues, i + 1, mSize - i); in put()
347 System.arraycopy(mKeys, 0, nkeys, 0, mKeys.length); in append()
348 System.arraycopy(mValues, 0, nvalues, 0, mValues.length); in append()
DSparseArrayCompat.java199 System.arraycopy(mKeys, 0, nkeys, 0, mKeys.length); in put()
200 System.arraycopy(mValues, 0, nvalues, 0, mValues.length); in put()
208 System.arraycopy(mKeys, i, mKeys, i + 1, mSize - i); in put()
209 System.arraycopy(mValues, i, mValues, i + 1, mSize - i); in put()
342 System.arraycopy(mKeys, 0, nkeys, 0, mKeys.length); in append()
343 System.arraycopy(mValues, 0, nvalues, 0, mValues.length); in append()
/frameworks/base/graphics/java/android/graphics/
DColorMatrix.java58 System.arraycopy(src, 0, mArray, 0, 20); in ColorMatrix()
65 System.arraycopy(src.mArray, 0, mArray, 0, 20); in ColorMatrix()
92 System.arraycopy(src.mArray, 0, mArray, 0, 20); in set()
99 System.arraycopy(src, 0, mArray, 0, 20); in set()
181 System.arraycopy(tmp, 0, mArray, 0, 20); in setConcat()
/frameworks/base/core/java/android/net/nsd/
DDnsSdTxtRecord.java129 System.arraycopy(oldBytes, 0, mData, 0, avStart); in remove()
130 System.arraycopy(oldBytes, avStart + avLen + 1, mData, avStart, in remove()
182 System.arraycopy(oldBytes, 0, mData, 0, insertion); in insert()
184 System.arraycopy(oldBytes, insertion, mData, newLen - secondHalfLen, secondHalfLen); in insert()
186 System.arraycopy(keyBytes, 0, mData, insertion + 1, keyBytes.length); in insert()
189 System.arraycopy(value, 0, mData, insertion + keyBytes.length + 2, valLen); in insert()
233 System.arraycopy(mData, avStart + aLen + 2, value, 0, avLen - aLen - 1); in getValue()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DLimitedLengthInputStreamTest.java86 System.arraycopy(TEST_STRING1, offset, expected, 0, length); in checkReadBytesWithOffsetAndLength_WithString1()
91 System.arraycopy(temp, 0, actual, 0, length); in checkReadBytesWithOffsetAndLength_WithString1()
127 System.arraycopy(temp, 0, actual, 0, actual.length); in testReadBytesWithOffsetAndLength_ZeroOffset_PastEnd_Success()
136 System.arraycopy(TEST_STRING1, offset, expected, 0, length); in checkReadBytes_WithString1()
141 System.arraycopy(temp, 0, actual, 0, length); in checkReadBytes_WithString1()
/frameworks/base/core/java/android/view/inputmethod/
DSparseRectFArray.java173 System.arraycopy(mKeys, 0, newArray, 0, mCount); in ensureBufferSize()
179 System.arraycopy(mCoordinates, 0, newArray, 0, mCount * 4); in ensureBufferSize()
185 System.arraycopy(mFlagsArray, 0, newArray, 0, mCount); in ensureBufferSize()
254 System.arraycopy(builder.mKeys, 0, mKeys, 0, builder.mCount); in SparseRectFArray()
255 System.arraycopy(builder.mCoordinates, 0, mCoordinates, 0, builder.mCount * 4); in SparseRectFArray()
256 System.arraycopy(builder.mFlagsArray, 0, mFlagsArray, 0, builder.mCount); in SparseRectFArray()
/frameworks/base/rs/java/android/renderscript/
DProgram.java259 System.arraycopy(str, 0, buf2, 0, str.length); in setShader()
355 System.arraycopy(mInputs, 0, p.mInputs, 0, mInputCount); in initProgram()
357 System.arraycopy(mOutputs, 0, p.mOutputs, 0, mOutputCount); in initProgram()
359 System.arraycopy(mConstants, 0, p.mConstants, 0, mConstantCount); in initProgram()
362 System.arraycopy(mTextureTypes, 0, p.mTextures, 0, mTextureCount); in initProgram()
364 System.arraycopy(mTextureNames, 0, p.mTextureNames, 0, mTextureCount); in initProgram()
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
DEncodedStringValue.java60 System.arraycopy(data, 0, mData, 0, data.length); in EncodedStringValue()
109 System.arraycopy(mData, 0, byteArray, 0, mData.length); in getTextString()
125 System.arraycopy(textString, 0, mData, 0, textString.length); in setTextString()
169 System.arraycopy(textString, 0, mData, 0, textString.length); in appendTextString()
194 System.arraycopy(mData, 0, dstBytes, 0, len); in clone()
/frameworks/base/services/core/java/com/android/server/display/
DAutomaticBrightnessController.java586 System.arraycopy(mRingLux, mStart, newRingLux, 0, length); in push()
587 System.arraycopy(mRingTime, mStart, newRingTime, 0, length); in push()
589 System.arraycopy(mRingLux, 0, newRingLux, length, mStart); in push()
590 System.arraycopy(mRingTime, 0, newRingTime, length, mStart); in push()
658 System.arraycopy(mRingLux, mStart, lux, 0, mCount); in toString()
659 System.arraycopy(mRingTime, mStart, time, 0, mCount); in toString()
661 System.arraycopy(mRingLux, mStart, lux, 0, length); in toString()
662 System.arraycopy(mRingLux, 0, lux, length, mCount - length); in toString()
664 System.arraycopy(mRingTime, mStart, time, 0, length); in toString()
665 System.arraycopy(mRingTime, 0, time, length, mCount - length); in toString()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DPositionMap.java209 System.arraycopy(mKeys, 0, nkeys, 0, mKeys.length); in put()
210 System.arraycopy(mValues, 0, nvalues, 0, mValues.length); in put()
218 System.arraycopy(mKeys, i, mKeys, i + 1, mSize - i); in put()
219 System.arraycopy(mValues, i, mValues, i + 1, mSize - i); in put()
352 System.arraycopy(mKeys, 0, nkeys, 0, mKeys.length); in append()
353 System.arraycopy(mValues, 0, nvalues, 0, mValues.length); in append()

123456789