Home
last modified time | relevance | path

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

12345678910>>...12

/packages/modules/Connectivity/tests/unit/java/android/net/
DIpSecAlgorithmTest.java63 return Arrays.copyOf(KEY_MATERIAL, keyLenInBits / 8); in generateKey()
82 algData.getKey(), Arrays.copyOf(KEY_MATERIAL, algData.getValue() / 8)); in testNoTruncLen()
89 new IpSecAlgorithm(IpSecAlgorithm.CRYPT_AES_CBC, Arrays.copyOf(KEY_MATERIAL, 256 / 8)); in testNoTruncLen()
142 Arrays.copyOf(KEY_MATERIAL, 512 / 8), in testTruncLenValidation()
150 Arrays.copyOf(KEY_MATERIAL, 512 / 8), in testTruncLenValidation()
161 new IpSecAlgorithm(IpSecAlgorithm.CRYPT_AES_CBC, Arrays.copyOf(KEY_MATERIAL, len / 8)); in testLenValidation()
164 new IpSecAlgorithm(IpSecAlgorithm.CRYPT_AES_CBC, Arrays.copyOf(KEY_MATERIAL, 384 / 8)); in testLenValidation()
173 new IpSecAlgorithm("rot13", Arrays.copyOf(KEY_MATERIAL, 128 / 8)); in testAlgoNameValidation()
183 IpSecAlgorithm.AUTH_HMAC_SHA512, Arrays.copyOf(KEY_MATERIAL, 512 / 8), 256); in testParcelUnparcel()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/
DAuctionServerDataCompressor.java52 return Arrays.copyOf(mData, mData.length); in getData()
57 return new UncompressedData(Arrays.copyOf(data, data.length)); in create()
76 return Arrays.copyOf(mData, mData.length); in getData()
81 return new CompressedData(Arrays.copyOf(data, data.length)); in create()
DAuctionServerPayloadUnformattedData.java36 return Arrays.copyOf(mData, mData.length); in getData()
41 return new AuctionServerPayloadUnformattedData(Arrays.copyOf(data, data.length)); in create()
DAuctionServerPayloadFormattedData.java36 return Arrays.copyOf(mData, mData.length); in getData()
41 return new AuctionServerPayloadFormattedData(Arrays.copyOf(data, data.length)); in create()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/info/
DFiraConnectorCapabilitiesTest.java79 byte[] bytes = Arrays.copyOf(TEST_BYTES, TEST_BYTES.length); in fromBytes_invalidProtocolVersion()
87 byte[] bytes = Arrays.copyOf(TEST_BYTES, TEST_BYTES.length); in fromBytes_invalidOptimizedDataPacketSize()
96 byte[] bytes = Arrays.copyOf(TEST_BYTES, TEST_BYTES.length); in fromBytes_invalidMaxMessageBufferSize()
105 byte[] bytes = Arrays.copyOf(TEST_BYTES, TEST_BYTES.length); in fromBytes_invalidMaxConcurrentFragmentedMessageSessionSupported()
113 byte[] bytes = Arrays.copyOf(TEST_BYTES, TEST_BYTES.length); in fromBytes_invalidSecureComponent()
DRegulatoryInfoTest.java63 byte[] bytes = Arrays.copyOf(TEST_BYTES, TEST_BYTES.length); in fromBytes_invalidSourceOfInfo()
70 byte[] bytes = Arrays.copyOf(TEST_BYTES, TEST_BYTES.length); in fromBytes_invalidReservedField()
77 byte[] bytes = Arrays.copyOf(TEST_BYTES, TEST_BYTES.length); in fromBytes_invalidCountryCode()
143 byte[] bytes = Arrays.copyOf(TEST_BYTES, TEST_BYTES.length); in testSourceOfInfo()
DFiraConnectorMessageTest.java63 byte[] bytes = Arrays.copyOf(TEST_BYTES, TEST_BYTES.length); in fromBytes_failedInvalidMessageType()
71 byte[] bytes = Arrays.copyOf(TEST_BYTES, TEST_BYTES.length); in fromBytes_failedInvalidInstructionCode()
79 byte[] bytes = Arrays.copyOf(TEST_BYTES, TEST_BYTES.length); in testHeaderFromBytes()
/packages/modules/ImsMedia/framework/src/android/telephony/imsmedia/
DMediaQualityThreshold.java69 mRtpInactivityTimerMillis = Arrays.copyOf(builder.mRtpInactivityTimerMillis, in MediaQualityThreshold()
74 mRtpPacketLossRate = Arrays.copyOf(builder.mRtpPacketLossRate, in MediaQualityThreshold()
76 mRtpJitterMillis = Arrays.copyOf(builder.mRtpJitterMillis, in MediaQualityThreshold()
234 this.mRtpInactivityTimerMillis = Arrays.copyOf(timer, timer.length); in setRtpInactivityTimerMillis()
286 this.mRtpPacketLossRate = Arrays.copyOf(packetLossRate, packetLossRate.length); in setRtpPacketLossRate()
298 this.mRtpJitterMillis = Arrays.copyOf(jitter, jitter.length); in setRtpJitterMillis()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/
DAbstractKeyboardBuilder.java58 mRows[rowIndex] = Arrays.copyOf(row, row.length); in AbstractKeyboardBuilder()
104 : Arrays.copyOf(mRows, rowIndex + 1); in setRowAt()
128 final E[] newElements = Arrays.copyOf(elements, elements.length + 1); in setElementAt()
139 : Arrays.copyOf(elements, columnIndex + 1); in setElementAt()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DResourceOveruseConfigurationSubject.java70 && ImmutableSet.copyOf(actual.getSafeToKillPackages()).equals( in isEquals()
71 ImmutableSet.copyOf(expected.getSafeToKillPackages())) in isEquals()
72 && ImmutableSet.copyOf(actual.getVendorPackagePrefixes()).equals( in isEquals()
73 ImmutableSet.copyOf(expected.getVendorPackagePrefixes())) in isEquals()
DInternalResourceOveruseConfigurationSubject.java119 && ImmutableSet.copyOf(actual.safeToKillPackages).equals( in isEquals()
120 ImmutableSet.copyOf(expected.safeToKillPackages)) in isEquals()
121 && ImmutableSet.copyOf(actual.vendorPackagePrefixes).equals( in isEquals()
122 ImmutableSet.copyOf(expected.vendorPackagePrefixes)) in isEquals()
/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/external/safeparcel/
DGenericDocumentParcelTest.java52 .isEqualTo(Arrays.copyOf(stringValues, stringValues.length)); in testPropertyParcel_onePropertySet_success()
58 .isEqualTo(Arrays.copyOf(longValues, longValues.length)); in testPropertyParcel_onePropertySet_success()
64 .isEqualTo(Arrays.copyOf(doubleValues, doubleValues.length)); in testPropertyParcel_onePropertySet_success()
70 .isEqualTo(Arrays.copyOf(booleanValues, booleanValues.length)); in testPropertyParcel_onePropertySet_success()
76 .isEqualTo(Arrays.copyOf(bytesValues, bytesValues.length)); in testPropertyParcel_onePropertySet_success()
82 .isEqualTo(Arrays.copyOf(embeddingValues, embeddingValues.length)); in testPropertyParcel_onePropertySet_success()
88 .isEqualTo(Arrays.copyOf(docValues, docValues.length)); in testPropertyParcel_onePropertySet_success()
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/managers/
DMergedDiscoveryRequest.java75 return ImmutableSet.copyOf(mScanTypes); in getScanTypes()
80 return ImmutableSet.copyOf(mActions); in getActions()
85 return ImmutableSet.copyOf(mScanFilters); in getScanFilters()
90 return ImmutableSet.copyOf(mMediums); in getMediums()
/packages/modules/Connectivity/tests/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()
/packages/modules/Uwb/androidx_backend/src/androidx/core/uwb/backend/impl/internal/
DUwbServiceImpl.java250 ImmutableList.copyOf(supportedChannels), in getRangingCapabilities()
251 ImmutableList.copyOf(supportedNtfConfigs), in getRangingCapabilities()
252 ImmutableList.copyOf(supportedConfigIds), in getRangingCapabilities()
253 ImmutableList.copyOf(supportedSlotDurations), in getRangingCapabilities()
254 ImmutableList.copyOf(supportedRangingUpdateRates), in getRangingCapabilities()
/packages/modules/AdServices/adservices/libraries/cobalt/java/com/android/cobalt/data/
DEventVector.java36 return new AutoValue_EventVector(ImmutableList.copyOf(eventCodes)); in create()
45 return new AutoValue_EventVector(ImmutableList.copyOf(eventCodes)); in create()
/packages/modules/AdServices/adservices/service-core/jni/java/com/android/adservices/ohttp/
DEncapsulatedSharedSecret.java39 : Arrays.copyOf(originalBytes, originalBytes.length); in serializeToBytes()
46 : new AutoValue_EncapsulatedSharedSecret(Arrays.copyOf(bytes, bytes.length)); in create()
DObliviousHttpRequest.java46 return Arrays.copyOf(plainText(), plainText().length); in getPlainText()
51 return Arrays.copyOf(cipherText(), cipherText().length); in getCipherText()
/packages/services/Car/service/src/com/android/car/audio/
DAudioFocusStack.java35 mActiveFocusList = List.copyOf(activeFocusList); in AudioFocusStack()
36 mInactiveFocusList = List.copyOf(inactiveFocusList); in AudioFocusStack()
/packages/modules/Connectivity/service-t/src/com/android/server/net/
DInterfaceMapValue.java33 interfaceName = Arrays.copyOf(iface.getBytes(), IF_NAME_SIZE); in InterfaceMapValue()
44 interfaceName = Arrays.copyOf(ifName, IF_NAME_SIZE); in InterfaceMapValue()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpLease.java59 mClientId = (clientId == null ? null : Arrays.copyOf(clientId, clientId.length)); in DhcpLease()
77 return Arrays.copyOf(mClientId, mClientId.length); in getClientId()
173 p.clientId = mClientId == null ? null : Arrays.copyOf(mClientId, mClientId.length); in toParcelable()
/packages/modules/AdServices/adservices/tests/unittest/framework/src/com/android/adservices/
DAdServicesParcelableUtilTest.java176 ImmutableMap.copyOf( in testWriteMapToParcelThenRead_success()
222 ImmutableSet.copyOf( in testWriteSetToParcelThenRead_success()
259 ImmutableSet.copyOf(AdServicesParcelableUtil.readStringSetFromParcel(targetParcel)); in testWriteStringSetToParcelThenRead_success()
294 ImmutableSet.copyOf( in testWriteIntegerSetToParcelThenRead_success()
347 ImmutableList.copyOf( in testWriteInstantListToParcelThenRead_success()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/users/
DCarDisplayTrackerImpl.java77 callbacks = List.copyOf(mDisplayCallbacks);
86 callbacks = List.copyOf(mDisplayCallbacks);
95 callbacks = List.copyOf(mDisplayCallbacks);
115 callbacks = List.copyOf(mBrightnessCallbacks);
/packages/apps/Camera2/src/com/android/camera/one/v2/core/
DResponseListenerBroadcaster.java35 mListeners = ImmutableList.copyOf(listeners); in ResponseListenerBroadcaster()
39 mListeners = ImmutableList.copyOf(listeners); in ResponseListenerBroadcaster()
/packages/services/Mms/tests/unittests/src/com/android/mms/service/metrics/
DPersistMmsAtomsStorageTest.java255 mTestablePersistMmsAtomsStorage.addIncomingMms(copyOf(mIncomingMms1Proto)); in addIncomingMms_updateExistingEntries()
261 IncomingMms newIncomingMm1Proto = copyOf(mIncomingMms1Proto); in addIncomingMms_updateExistingEntries()
298 IncomingMms lastMms = copyOf(mms); in addIncomingMms_tooManyEntries()
395 mTestablePersistMmsAtomsStorage.addOutgoingMms(copyOf(mOutgoingMms1Proto)); in addOutgoingMms_updateExistingEntries()
401 OutgoingMms newOutgoingMm1Proto = copyOf(mOutgoingMms1Proto); in addOutgoingMms_updateExistingEntries()
439 OutgoingMms lastMms = copyOf(mms); in addOutgoingMms_tooManyEntries()
611 private static IncomingMms copyOf(IncomingMms source) { in copyOf() method in PersistMmsAtomsStorageTest
615 private static OutgoingMms copyOf(OutgoingMms source) { in copyOf() method in PersistMmsAtomsStorageTest

12345678910>>...12