Home
last modified time | relevance | path

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

123456789

/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.java78 eventTypes = Arrays.copyOf(eventTypes, newLength); in resize()
79 returnCodes = Arrays.copyOf(returnCodes, newLength); in resize()
80 latenciesMs = Arrays.copyOf(latenciesMs, newLength); in resize()
/frameworks/base/core/tests/coretests/src/android/hardware/display/
DBrightnessConfigurationTest.java70 float[] lux = Arrays.copyOf(LUX_LEVELS, LUX_LEVELS.length); in testCurveMustHaveZeroLuxPoint()
88 float[] lux = Arrays.copyOf(LUX_LEVELS, LUX_LEVELS.length + 1); in testCurveMustNotHaveArraysOfDifferentLengths()
94 float[] nits = Arrays.copyOf(NITS_LEVELS, NITS_LEVELS.length + 1); in testCurveMustNotHaveArraysOfDifferentLengths()
103 float[] lux = Arrays.copyOf(LUX_LEVELS, LUX_LEVELS.length); in testCurvesMustNotContainNaN()
109 float[] nits = Arrays.copyOf(NITS_LEVELS, NITS_LEVELS.length); in testCurvesMustNotContainNaN()
201 float[] lux = Arrays.copyOf(LUX_LEVELS, LUX_LEVELS.length); in testEquals()
212 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/tools/powermodel/src/com/android/powermodel/component/
DModemProfile.java44 return Arrays.copyOf(txMa, txMa.length); in getTxMa()
74 mTxMa = Arrays.copyOf(value, value.length); in setTxMa()
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()
/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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DPersistAtomsStorageTest.java853 CellularServiceState newServiceState1Proto = copyOf(mServiceState1Proto); in addCellularServiceStateAndCellularDataServiceSwitch_updateExistingEntries()
854 CellularDataServiceSwitch newServiceSwitch1Proto = copyOf(mServiceSwitch1Proto); in addCellularServiceStateAndCellularDataServiceSwitch_updateExistingEntries()
858 copyOf(mServiceState1Proto), copyOf(mServiceSwitch1Proto)); in addCellularServiceStateAndCellularDataServiceSwitch_updateExistingEntries()
901 copyOf(state), copyOf(serviceSwitch)); in addCellularServiceStateAndCellularDataServiceSwitch_tooManyServiceStates()
1049 ImsRegistrationStats newImsRegistrationStatsLte0 = copyOf(mImsRegistrationStatsLte0); in addImsRegistrationStats_updateExistingEntries()
1052 mPersistAtomsStorage.addImsRegistrationStats(copyOf(mImsRegistrationStatsLte0)); in addImsRegistrationStats_updateExistingEntries()
1085 ImsRegistrationStats stats = copyOf(mImsRegistrationStatsLte0); in addImsRegistrationStats_tooManyRegistrationStats()
1142 ImsRegistrationTermination newTermination = copyOf(mImsRegistrationTerminationWifi); in addImsRegistrationTermination_updateExistingEntries()
1145 mPersistAtomsStorage.addImsRegistrationTermination(copyOf(mImsRegistrationTerminationWifi)); in addImsRegistrationTermination_updateExistingEntries()
1167 ImsRegistrationTermination termination = copyOf(mImsRegistrationTerminationLte); in addImsRegistrationTermination_tooManyTerminations()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DLockscreenCredential.java120 Arrays.copyOf(password, password.length)); in createManagedPassword()
232 mCredential != null ? Arrays.copyOf(mCredential, mCredential.length) : null); in duplicate()
302 byte[] saltedPassword = Arrays.copyOf(passwordToHash, passwordToHash.length in passwordToHistoryHash()
342 byte[] saltedPassword = Arrays.copyOf(password, password.length + salt.length); in legacyPasswordToHash()
/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/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/core/java/android/hardware/camera2/params/
DTonemapCurve.java124 mRed = Arrays.copyOf(red, red.length); in TonemapCurve()
125 mGreen = Arrays.copyOf(green, green.length); in TonemapCurve()
126 mBlue = Arrays.copyOf(blue, blue.length); in TonemapCurve()
/frameworks/base/services/core/java/com/android/server/pm/
DSnapshotStatistics.java156 mUserKey = Arrays.copyOf(userKey, userKey.length); in BinMap()
320 mTimes = Arrays.copyOf(orig.mTimes, orig.mTimes.length); in Stats()
321 mUsed = Arrays.copyOf(orig.mUsed, orig.mUsed.length); in Stats()
633 l = Arrays.copyOf(mLong, mLong.length); in dump()
635 s = Arrays.copyOf(mShort, mShort.length); in dump()
/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);

123456789