Home
last modified time | relevance | path

Searched refs:copyOf (Results 1 – 25 of 169) sorted by relevance

1234567

/frameworks/base/tests/net/java/android/net/
DIpSecAlgorithmTest.java63 algData.getKey(), Arrays.copyOf(KEY_MATERIAL, algData.getValue() / 8)); in testNoTruncLen()
70 new IpSecAlgorithm(IpSecAlgorithm.CRYPT_AES_CBC, Arrays.copyOf(KEY_MATERIAL, 256 / 8)); in testNoTruncLen()
78 Arrays.copyOf(KEY_MATERIAL, 512 / 8), in testTruncLenValidation()
86 Arrays.copyOf(KEY_MATERIAL, 512 / 8), in testTruncLenValidation()
97 new IpSecAlgorithm(IpSecAlgorithm.CRYPT_AES_CBC, Arrays.copyOf(KEY_MATERIAL, len / 8)); in testLenValidation()
100 new IpSecAlgorithm(IpSecAlgorithm.CRYPT_AES_CBC, Arrays.copyOf(KEY_MATERIAL, 384 / 8)); in testLenValidation()
109 new IpSecAlgorithm("rot13", Arrays.copyOf(KEY_MATERIAL, 128 / 8)); in testAlgoNameValidation()
119 IpSecAlgorithm.AUTH_HMAC_SHA512, Arrays.copyOf(KEY_MATERIAL, 512 / 8), 256); in testParcelUnparcel()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/chunking/
DEncryptedChunkTest.java39 Arrays.copyOf(new byte[] {1}, ChunkHash.HASH_LENGTH_BYTES);
41 Arrays.copyOf(new byte[] {2}, EncryptedChunk.NONCE_LENGTH_BYTES);
43 Arrays.copyOf(new byte[] {3}, EncryptedChunk.KEY_LENGTH_BYTES);
46 Arrays.copyOf(new byte[] {4}, ChunkHash.HASH_LENGTH_BYTES);
48 Arrays.copyOf(new byte[] {5}, EncryptedChunk.NONCE_LENGTH_BYTES);
50 Arrays.copyOf(new byte[] {6}, EncryptedChunk.KEY_LENGTH_BYTES);
55 byte[] shortNonce = Arrays.copyOf(new byte[] {2}, EncryptedChunk.NONCE_LENGTH_BYTES - 1); in testCreate_withIncorrectLength_throwsException()
DLengthlessEncryptedChunkEncoderTest.java42 Arrays.copyOf(new byte[] {1}, EncryptedChunk.NONCE_LENGTH_BYTES);
44 Arrays.copyOf(new byte[] {2}, EncryptedChunk.KEY_LENGTH_BYTES);
DInlineLengthsEncryptedChunkEncoderTest.java43 Arrays.copyOf(new byte[] {1}, EncryptedChunk.NONCE_LENGTH_BYTES);
45 Arrays.copyOf(new byte[] {2}, EncryptedChunk.KEY_LENGTH_BYTES);
/frameworks/base/core/tests/coretests/src/android/hardware/display/
DBrightnessConfigurationTest.java62 float[] lux = Arrays.copyOf(LUX_LEVELS, LUX_LEVELS.length); in testCurveMustHaveZeroLuxPoint()
80 float[] lux = Arrays.copyOf(LUX_LEVELS, LUX_LEVELS.length + 1); in testCurveMustNotHaveArraysOfDifferentLengths()
86 float[] nits = Arrays.copyOf(NITS_LEVELS, NITS_LEVELS.length + 1); in testCurveMustNotHaveArraysOfDifferentLengths()
95 float[] lux = Arrays.copyOf(LUX_LEVELS, LUX_LEVELS.length); in testCurvesMustNotContainNaN()
101 float[] nits = Arrays.copyOf(NITS_LEVELS, NITS_LEVELS.length); in testCurvesMustNotContainNaN()
133 float[] lux = Arrays.copyOf(LUX_LEVELS, LUX_LEVELS.length); in testEquals()
139 float[] nits = Arrays.copyOf(NITS_LEVELS, NITS_LEVELS.length); in testEquals()
DAmbientBrightnessDayStatsTest.java66 float[] stats = Arrays.copyOf(STATS, STATS.length + 1); in testStatsAndBoundariesMustHaveSameLength()
139 float[] differentStats = Arrays.copyOf(STATS, STATS.length); in testAmbientBrightnessDayStatsEquals()
146 float[] differentBucketBoundaries = Arrays.copyOf(BUCKET_BOUNDARIES, in testAmbientBrightnessDayStatsEquals()
/frameworks/base/core/java/android/net/metrics/
DDnsEvent.java81 eventTypes = Arrays.copyOf(eventTypes, newLength); in resize()
82 returnCodes = Arrays.copyOf(returnCodes, newLength); in resize()
83 latenciesMs = Arrays.copyOf(latenciesMs, newLength); in resize()
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
DDrawView.java105 ret = new Region(Arrays.copyOf(defaultPath, defaultPath.length), img); in getRegion()
107 ret = new Region(Arrays.copyOf(path, len), img); in getRegion()
131 path = Arrays.copyOf(path, 2 * (len + size * 2)); in movePoint()
143 path = Arrays.copyOf(path, 2 * (len + 2)); in upPoint()
/frameworks/base/core/java/android/view/textservice/
DSentenceSuggestionsInfo.java54 mSuggestionsInfos = Arrays.copyOf(suggestionsInfos, infoSize); in SentenceSuggestionsInfo()
55 mOffsets = Arrays.copyOf(offsets, infoSize); in SentenceSuggestionsInfo()
56 mLengths = Arrays.copyOf(lengths, infoSize); in SentenceSuggestionsInfo()
/frameworks/base/core/java/android/hardware/location/
DContextHubMessage.java69 return Arrays.copyOf(mData, mData.length); in getData()
96 mData = Arrays.copyOf(data, data.length); in setMsgData()
109 mData = Arrays.copyOf(data, data.length); in ContextHubMessage()
/frameworks/base/tools/powermodel/src/com/android/powermodel/
DAppList.java77 result.mAllApps = ImmutableList.copyOf(allApps); in build()
78 result.mRegularApps = ImmutableList.copyOf(regularApps); in build()
79 result.mSpecialApps = ImmutableMap.copyOf(specialApps); in build()
/frameworks/base/tests/net/common/java/android/net/
DDependenciesTest.java84 final byte[] copy = Arrays.copyOf(src, src.length); in testCopyOf()
88 assertArrayEquals(new byte[0], Arrays.copyOf(src, 0)); in testCopyOf()
91 final byte[] biggerCopy = Arrays.copyOf(src, src.length + excess); in testCopyOf()
/frameworks/base/tools/powermodel/src/com/android/powermodel/component/
DCpuProfile.java67 mCoreCount = Arrays.copyOf(value, value.length); in setCoreCount()
75 mCoreSpeeds.put(cluster, Arrays.copyOf(value, value.length)); in setCoreSpeeds()
91 mCorePower.put(cluster, Arrays.copyOf(value, value.length)); in setCorePower()
DModemProfile.java44 return Arrays.copyOf(txMa, txMa.length); in getTxMa()
74 mTxMa = Arrays.copyOf(value, value.length); in setTxMa()
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
DDrawView.java97 Region ret = new Region(Arrays.copyOf(path, len), img); in getRegion()
120 path = Arrays.copyOf(path, 2 * (len + size * 2)); in movePoint()
132 path = Arrays.copyOf(path, 2 * (len + 2)); in upPoint()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverySessionStorageTest.java164 return Arrays.copyOf(TEST_LSKF_HASH, TEST_LSKF_HASH.length); in lskfHashFixture()
168 return Arrays.copyOf(TEST_KEY_CLAIMANT, TEST_KEY_CLAIMANT.length); in keyClaimantFixture()
172 return Arrays.copyOf(TEST_VAULT_PARAMS, TEST_VAULT_PARAMS.length); in vaultParamsFixture()
/frameworks/base/core/java/android/telephony/
DSubscriptionPlan.java97 this.networkTypes = Arrays.copyOf(TelephonyManager.getAllNetworkTypes(), in SubscriptionPlan()
228 return Arrays.copyOf(networkTypes, networkTypes.length); in getNetworkTypes()
372 plan.networkTypes = Arrays.copyOf(networkTypes, networkTypes.length); in setNetworkTypes()
381 plan.networkTypes = Arrays.copyOf(TelephonyManager.getAllNetworkTypes(), in resetNetworkTypes()
/frameworks/base/services/backup/java/com/android/server/backup/encryption/chunking/cdc/
DContentDefinedChunker.java104 chunkConsumer.accept(Arrays.copyOf(mChunkBuffer, chunkLength)); in chunkify()
111 chunkConsumer.accept(Arrays.copyOf(mChunkBuffer, chunkLength)); in chunkify()
/frameworks/base/core/java/android/hardware/camera2/params/
DTonemapCurve.java123 mRed = Arrays.copyOf(red, red.length); in TonemapCurve()
124 mGreen = Arrays.copyOf(green, green.length); in TonemapCurve()
125 mBlue = Arrays.copyOf(blue, blue.length); in TonemapCurve()
/frameworks/base/wifi/java/android/net/wifi/hotspot2/pps/
DHomeSp.java247 mMatchAllOis = Arrays.copyOf(source.mMatchAllOis, source.mMatchAllOis.length); in HomeSp()
250 mMatchAnyOis = Arrays.copyOf(source.mMatchAnyOis, source.mMatchAnyOis.length); in HomeSp()
253 mOtherHomePartners = Arrays.copyOf(source.mOtherHomePartners, in HomeSp()
257 mRoamingConsortiumOis = Arrays.copyOf(source.mRoamingConsortiumOis, in HomeSp()
/frameworks/base/services/core/java/com/android/server/
DTelephonyRegistry.java24 import static java.util.Arrays.copyOf;
453 mCallState = copyOf(mCallState, mNumPhones); in onMultiSimConfigChanged()
454 mDataActivity = copyOf(mCallState, mNumPhones); in onMultiSimConfigChanged()
455 mDataConnectionState = copyOf(mCallState, mNumPhones); in onMultiSimConfigChanged()
456 mDataConnectionNetworkType = copyOf(mCallState, mNumPhones); in onMultiSimConfigChanged()
457 mCallIncomingNumber = copyOf(mCallIncomingNumber, mNumPhones); in onMultiSimConfigChanged()
458 mServiceState = copyOf(mServiceState, mNumPhones); in onMultiSimConfigChanged()
459 mVoiceActivationState = copyOf(mVoiceActivationState, mNumPhones); in onMultiSimConfigChanged()
460 mDataActivationState = copyOf(mDataActivationState, mNumPhones); in onMultiSimConfigChanged()
461 mUserMobileDataState = copyOf(mUserMobileDataState, mNumPhones); in onMultiSimConfigChanged()
[all …]
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/chunk/
DChunkHashTest.java35 private static final byte[] TEST_HASH_1 = Arrays.copyOf(new byte[] {1}, HASH_LENGTH_BYTES);
36 private static final byte[] TEST_HASH_2 = Arrays.copyOf(new byte[] {2}, HASH_LENGTH_BYTES);
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
DCube.java52 mVert = Arrays.copyOf(src.mVert, src.mVert.length); in clone()
53 mIndex = Arrays.copyOf(src.mIndex, src.mIndex.length); in clone()
DTriData.java59 mVert = Arrays.copyOf(clone.mVert, clone.mVert.length); in TriData()
60 mIndex = Arrays.copyOf(clone.mIndex, clone.mIndex.length); in TriData()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DProxyController.java19 import static java.util.Arrays.copyOf;
340 mSetRadioAccessFamilyStatus = copyOf(mSetRadioAccessFamilyStatus, mPhones.length); in onMultiSimConfigChanged()
341 mNewRadioAccessFamily = copyOf(mNewRadioAccessFamily, mPhones.length); in onMultiSimConfigChanged()
342 mOldRadioAccessFamily = copyOf(mOldRadioAccessFamily, mPhones.length); in onMultiSimConfigChanged()
343 mCurrentLogicalModemIds = copyOf(mCurrentLogicalModemIds, mPhones.length); in onMultiSimConfigChanged()
344 mNewLogicalModemIds = copyOf(mNewLogicalModemIds, mPhones.length); in onMultiSimConfigChanged()

1234567