Home
last modified time | relevance | path

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

12345678

/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/packages/BackupEncryption/test/robolectric/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/packages/BackupEncryption/test/robolectric/src/com/android/server/testing/
DCryptoTestUtils.java62 newChunk.hash = Arrays.copyOf(hash, hash.length); in newChunk()
88 : Arrays.copyOf(fingerprintSalt, fingerprintSalt.length); in newChunkListingWithoutDocId()
98 chunkOrdering.starts = starts == null ? null : Arrays.copyOf(starts, starts.length); in newChunkOrdering()
100 checksum == null ? checksum : Arrays.copyOf(checksum, checksum.length); in newChunkOrdering()
109 metadata.chunkOrdering = Arrays.copyOf(chunkOrdering, chunkOrdering.length); in newChunksMetadata()
156 : Arrays.copyOf(original.chunkOrdering, original.chunkOrdering.length); in clone()
165 clone.starts = Arrays.copyOf(original.starts, original.starts.length); in clone()
166 clone.checksum = Arrays.copyOf(original.checksum, original.checksum.length); in clone()
/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/base/core/tests/coretests/src/android/hardware/display/
DBrightnessConfigurationTest.java72 float[] lux = Arrays.copyOf(LUX_LEVELS, LUX_LEVELS.length); in testCurveMustHaveZeroLuxPoint()
90 float[] lux = Arrays.copyOf(LUX_LEVELS, LUX_LEVELS.length + 1); in testCurveMustNotHaveArraysOfDifferentLengths()
96 float[] nits = Arrays.copyOf(NITS_LEVELS, NITS_LEVELS.length + 1); in testCurveMustNotHaveArraysOfDifferentLengths()
105 float[] lux = Arrays.copyOf(LUX_LEVELS, LUX_LEVELS.length); in testCurvesMustNotContainNaN()
111 float[] nits = Arrays.copyOf(NITS_LEVELS, NITS_LEVELS.length); in testCurvesMustNotContainNaN()
203 float[] lux = Arrays.copyOf(LUX_LEVELS, LUX_LEVELS.length); in testEquals()
214 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/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/kv/
DDecryptedChunkKvOutputTest.java95 mOutput.processChunk(Arrays.copyOf(TEST_PAIR_1, TEST_BUFFER_SIZE), TEST_PAIR_1.length); in getDigest_returnsDigestOfSortedHashes()
96 mOutput.processChunk(Arrays.copyOf(TEST_PAIR_2, TEST_BUFFER_SIZE), TEST_PAIR_2.length); in getDigest_returnsDigestOfSortedHashes()
119 mOutput.processChunk(Arrays.copyOf(TEST_PAIR_2, TEST_BUFFER_SIZE), TEST_PAIR_2.length); in getPairs_returnsPairsSortedByKey()
120 mOutput.processChunk(Arrays.copyOf(TEST_PAIR_1, TEST_BUFFER_SIZE), TEST_PAIR_1.length); in getPairs_returnsPairsSortedByKey()
162 return new ChunkHash(Arrays.copyOf(data, ChunkHash.HASH_LENGTH_BYTES)); in fakeHash()
/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/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/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/packages/BackupEncryption/src/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/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/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/
DEncryptedFullBackupTaskTest.java59 Arrays.copyOf(new byte[] {11}, ChunkHash.HASH_LENGTH_BYTES);
61 Arrays.copyOf(new byte[] {22}, ChunkHash.HASH_LENGTH_BYTES);
63 new ChunkHash(Arrays.copyOf(new byte[] {1}, ChunkHash.HASH_LENGTH_BYTES));
65 new ChunkHash(Arrays.copyOf(new byte[] {2}, ChunkHash.HASH_LENGTH_BYTES));
DEncryptedBackupTaskTest.java86 Arrays.copyOf(new byte[] {22}, ChunkHash.HASH_LENGTH_BYTES);
89 Arrays.copyOf(new byte[] {55}, EncryptedChunk.NONCE_LENGTH_BYTES);
92 new ChunkHash(Arrays.copyOf(new byte[] {1}, ChunkHash.HASH_LENGTH_BYTES));
94 new ChunkHash(Arrays.copyOf(new byte[] {2}, ChunkHash.HASH_LENGTH_BYTES));
96 new ChunkHash(Arrays.copyOf(new byte[] {3}, ChunkHash.HASH_LENGTH_BYTES));
105 private static final byte[] TEST_CHECKSUM = Arrays.copyOf(new byte[] {10}, 258 / 8);
/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/packages/BackupEncryption/test/robolectric/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/base/packages/BackupEncryption/src/com/android/server/backup/encryption/chunking/
DBackupFileBuilder.java153 ? Arrays.copyOf(fingerprintMixerSalt, fingerprintMixerSalt.length) in getNewChunkListing()
166 mChunkOrdering.checksum = Arrays.copyOf(checksum, checksum.length); in getNewChunkOrdering()
217 chunk.hash = Arrays.copyOf(chunkHash, chunkHash.length); in addChunk()

12345678