Home
last modified time | relevance | path

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

12345678910>>...13

/frameworks/base/core/java/com/android/internal/util/
DGrowingArrayUtils.java50 System.arraycopy(array, 0, newArray, 0, currentSize); in append()
66 System.arraycopy(array, 0, newArray, 0, currentSize); in append()
81 System.arraycopy(array, 0, newArray, 0, currentSize); in append()
96 System.arraycopy(array, 0, newArray, 0, currentSize); in append()
111 System.arraycopy(array, 0, newArray, 0, currentSize); in append()
133 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()
154 System.arraycopy(array, index, array, index + 1, currentSize - index); in insert()
160 System.arraycopy(array, 0, newArray, 0, index); in insert()
[all …]
DArrayUtils.java335 if (an > 0) System.arraycopy(a, 0, res, 0, an); in concatElements()
336 if (bn > 0) System.arraycopy(b, 0, res, an, bn); in concatElements()
362 System.arraycopy(array, 0, result, 0, end); in appendElement()
386 System.arraycopy(array, 0, result, 0, i); in removeElement()
387 System.arraycopy(array, i + 1, result, i, length - i - 1); in removeElement()
412 System.arraycopy(cur, 0, ret, 0, N); in appendInt()
438 System.arraycopy(cur, 0, ret, 0, i); in removeInt()
441 System.arraycopy(cur, i + 1, ret, i, N - i - 1); in removeInt()
461 System.arraycopy(cur, 0, ret, 0, i); in removeString()
464 System.arraycopy(cur, i + 1, ret, i, N - i - 1); in removeString()
[all …]
/frameworks/base/obex/javax/obex/
DObexSession.java88 System.arraycopy(description, 1, realmString, 0, realmString.length); in handleAuthChall()
163 System.arraycopy(userName, 0, header.mAuthResp, 38, userName.length); in handleAuthChall()
170 System.arraycopy(challenge, 0, digest, 0, challenge.length); in handleAuthChall()
173 System.arraycopy(password, 0, digest, challenge.length + 1, password.length); in handleAuthChall()
179 System.arraycopy(ObexHelper.computeMd5Hash(digest), 0, header.mAuthResp, 2, 16); in handleAuthChall()
184 System.arraycopy(challenge, 0, header.mAuthResp, 20, 16); in handleAuthChall()
209 System.arraycopy(mChallengeDigest, 0, temp, 0, 16); in handleAuthResp()
210 System.arraycopy(correctPassword, 0, temp, 16, correctPassword.length); in handleAuthResp()
DClientSession.java114 System.arraycopy(header.nonce, 0, mChallengeDigest, 0, 16); in connect()
137 System.arraycopy(head, 0, requestPacket, 4, head.length); in connect()
182 System.arraycopy(head.nonce, 0, mChallengeDigest, 0, 16); in get()
188 System.arraycopy(mConnectionId, 0, head.mConnectionID, 0, 4); in get()
237 System.arraycopy(header.nonce, 0, mChallengeDigest, 0, 16); in disconnect()
242 System.arraycopy(mConnectionId, 0, header.mConnectionID, 0, 4); in disconnect()
254 System.arraycopy(mConnectionId, 0, head, 1, 4); in disconnect()
302 System.arraycopy(head.nonce, 0, mChallengeDigest, 0, 16); in put()
310 System.arraycopy(mConnectionId, 0, head.mConnectionID, 0, 4); in put()
348 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.java147 System.arraycopy(mArray, 0, array_tmp, 0, mLength); in addAPPHeader()
153 System.arraycopy(value, 0, mArray, mLength, len); in addAPPHeader()
159 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()
DHeaderSet.java363 System.arraycopy(headerValue, 0, mTarget, 0, mTarget.length); in setHeader()
375 System.arraycopy(headerValue, 0, mHttpHeader, 0, mHttpHeader.length); in setHeader()
387 System.arraycopy(headerValue, 0, mWho, 0, mWho.length); in setHeader()
399 System.arraycopy(headerValue, 0, mObjectClass, 0, mObjectClass.length); in setHeader()
412 System.arraycopy(headerValue, 0, mAppParam, 0, mAppParam.length); in setHeader()
462 System.arraycopy(headerValue, 0, mSequenceUserDefined[headerID - 0x70], in setHeader()
/frameworks/base/keystore/java/android/security/keystore/
DArrayUtils.java52 System.arraycopy(arr1, offset1, result, 0, len1); in concat()
53 System.arraycopy(arr2, offset2, result, len1, len2); in concat()
82 System.arraycopy(src, srcOffset, dst, dstOffset, length); in copy()
94 System.arraycopy(arr, offset, result, 0, len); in subarray()
105 System.arraycopy(arr1, 0, result, 0, arr1.length); in concat()
106 System.arraycopy(arr2, 0, result, arr1.length, arr2.length); in concat()
/frameworks/base/core/java/android/util/
DArraySet.java341 System.arraycopy(ohashes, 0, mHashes, 0, mSize); in ensureCapacity()
342 System.arraycopy(oarray, 0, mArray, 0, mSize); in ensureCapacity()
447 System.arraycopy(ohashes, 0, mHashes, 0, ohashes.length); in add()
448 System.arraycopy(oarray, 0, mArray, 0, oarray.length); in add()
458 System.arraycopy(mHashes, index, mHashes, index + 1, mSize - index); in add()
459 System.arraycopy(mArray, index, mArray, index + 1, mSize - index); in add()
506 System.arraycopy(array.mHashes, 0, mHashes, 0, N); in addAll()
507 System.arraycopy(array.mArray, 0, mArray, 0, N); in addAll()
584 System.arraycopy(ohashes, 0, mHashes, 0, index); in removeAt()
585 System.arraycopy(oarray, 0, mArray, 0, index); in removeAt()
[all …]
DArrayMap.java367 System.arraycopy(ohashes, 0, mHashes, 0, osize); in ensureCapacity()
368 System.arraycopy(oarray, 0, mArray, 0, osize<<1); in ensureCapacity()
566 System.arraycopy(ohashes, 0, mHashes, 0, ohashes.length); in put()
567 System.arraycopy(oarray, 0, mArray, 0, oarray.length); in put()
576 System.arraycopy(mHashes, index, mHashes, index + 1, osize - index); in put()
577 System.arraycopy(mArray, index << 1, mArray, (index + 1) << 1, (mSize - index) << 1); in put()
668 System.arraycopy(array.mHashes, 0, mHashes, 0, N); in putAll()
669 System.arraycopy(array.mArray, 0, mArray, 0, N<<1); in putAll()
745 System.arraycopy(ohashes, 0, mHashes, 0, index); in removeAt()
746 System.arraycopy(oarray, 0, mArray, 0, index << 1); in removeAt()
[all …]
DIntArray.java111 System.arraycopy(mValues, index, mValues, index + 1, rightSegment); in add()
142 System.arraycopy(values.mValues, 0, mValues, mSize, count); in addAll()
157 System.arraycopy(mValues, 0, newValues, 0, currentSize); in ensureCapacity()
211 System.arraycopy(mValues, index + 1, mValues, index, mSize - index - 1); in remove()
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()
DLongArray.java116 System.arraycopy(mValues, index, mValues, index + 1, rightSegment); in add()
129 System.arraycopy(values.mValues, 0, mValues, mSize, count); in addAll()
144 System.arraycopy(mValues, 0, newValues, 0, currentSize); in ensureCapacity()
204 System.arraycopy(mValues, index + 1, mValues, index, mSize - index - 1); in remove()
/frameworks/base/core/java/android/os/
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()
DWorkSource.java292 System.arraycopy(other.mUids, 0, mUids, 0, mNum); in set()
298 System.arraycopy(other.mNames, 0, mNames, 0, mNum); in set()
577 if (i1 < N1) System.arraycopy(uids1, i1+1, uids1, i1, N1-i1); in removeUids()
612 System.arraycopy(uids1, i1+1, uids1, i1, N1-i1); in removeUidsAndNames()
613 System.arraycopy(names1, i1+1, names1, i1, N1-i1); in removeUidsAndNames()
678 if (i1 > 0) System.arraycopy(uids1, 0, newuids, 0, i1); in updateUidsLocked()
679 if (i1 < N1) System.arraycopy(uids1, i1, newuids, i1+1, N1-i1); in updateUidsLocked()
683 if (i1 < N1) System.arraycopy(uids1, i1, uids1, i1+1, N1-i1); in updateUidsLocked()
709 System.arraycopy(uids1, i1, uids1, start, N1-i1); in updateUidsLocked()
792 System.arraycopy(mUids, i1, mUids, start, mNum-i1); in updateUidsAndNamesLocked()
[all …]
/frameworks/base/services/core/java/com/android/server/display/utils/
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()
/frameworks/base/graphics/java/android/graphics/
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()
/frameworks/libs/net/common/framework/android/net/util/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/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/core/tests/coretests/src/android/content/pm/
DLimitedLengthInputStreamTest.java87 System.arraycopy(TEST_STRING1, offset, expected, 0, length); in checkReadBytesWithOffsetAndLength_WithString1()
92 System.arraycopy(temp, 0, actual, 0, length); in checkReadBytesWithOffsetAndLength_WithString1()
128 System.arraycopy(temp, 0, actual, 0, actual.length); in testReadBytesWithOffsetAndLength_ZeroOffset_PastEnd_Success()
137 System.arraycopy(TEST_STRING1, offset, expected, 0, length); in checkReadBytes_WithString1()
142 System.arraycopy(temp, 0, actual, 0, length); in checkReadBytes_WithString1()
/frameworks/base/rs/java/android/renderscript/
DProgram.java272 System.arraycopy(str, 0, buf2, 0, str.length); in setShader()
368 System.arraycopy(mInputs, 0, p.mInputs, 0, mInputCount); in initProgram()
370 System.arraycopy(mOutputs, 0, p.mOutputs, 0, mOutputCount); in initProgram()
372 System.arraycopy(mConstants, 0, p.mConstants, 0, mConstantCount); in initProgram()
375 System.arraycopy(mTextureTypes, 0, p.mTextures, 0, mTextureCount); in initProgram()
377 System.arraycopy(mTextureNames, 0, p.mTextureNames, 0, mTextureCount); in initProgram()
/frameworks/base/telephony/common/com/google/android/mms/pdu/
DEncodedStringValue.java62 System.arraycopy(data, 0, mData, 0, data.length); in EncodedStringValue()
116 System.arraycopy(mData, 0, byteArray, 0, mData.length); in getTextString()
133 System.arraycopy(textString, 0, mData, 0, textString.length); in setTextString()
179 System.arraycopy(textString, 0, mData, 0, textString.length); in appendTextString()
204 System.arraycopy(mData, 0, dstBytes, 0, len); in clone()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DCachedPathIteratorFactory.java62 System.arraycopy(points, 0, itemPoints, 0, nPoints); in CachedPathIteratorFactory()
259 System.arraycopy(coords, 0, curve, 2, coords.length); in getPointAtLength()
358 System.arraycopy(mCoordinates[mNextIndex], 0, points, 2, in next()
367 System.arraycopy(points, 2, mCurrentCoords, 0, mCoordinates[mNextIndex].length); in next()
369 System.arraycopy(mCoordinates[mNextIndex], 0, mCurrentCoords, 0, in next()
379 System.arraycopy(mCurrentCoords, 0, coords, 0, getNumberOfPoints(mCurrentType) * 2); in currentSegment()
460 System.arraycopy(coords, 0, curve, 2, coords.length); in currentSegment()
466 System.arraycopy(curve, 2, coords, 0, coords.length); in currentSegment()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DModemPowerMetrics.java63 System.arraycopy(t, 0, m.txTimeMs, 0, t.length); in buildProto()
69 System.arraycopy(tr, 0, m.timeInRatMs, 0, tr.length); in buildProto()
72 System.arraycopy(trx, 0, m.timeInRxSignalStrengthLevelMs, 0, trx.length); in buildProto()

12345678910>>...13