Home
last modified time | relevance | path

Searched refs:allocate (Results 1 – 25 of 132) sorted by relevance

123456

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeIdPayloadTest.java211 ByteBuffer inputBuffer = ByteBuffer.allocate(payload.getPayloadLength()); in testConstructAndEncodeIpv4AddrIdPayload()
224 ByteBuffer inputBuffer = ByteBuffer.allocate(payload.getPayloadLength()); in testConstructAndEncodeIpv6AddrIdPayload()
237 ByteBuffer inputBuffer = ByteBuffer.allocate(payload.getPayloadLength()); in testConstructAndEncodeFqdnIdPayload()
250 ByteBuffer inputBuffer = ByteBuffer.allocate(payload.getPayloadLength()); in testConstructAndEncodeRfc822AddrIdPayload()
262 ByteBuffer inputBuffer = ByteBuffer.allocate(payload.getPayloadLength()); in testConstructAndEncodeKeyIdPayload()
275 ByteBuffer inputBuffer = ByteBuffer.allocate(payload.getPayloadLength()); in testConstructAndEncodeDerAsn1DnIdPayload()
DIkeSaPayloadTest.java279 ByteBuffer byteBuffer = ByteBuffer.allocate(mAttributeKeyLength128.getAttributeLength()); in testEncodeAttribute()
323 ByteBuffer byteBuffer = ByteBuffer.allocate(mEncrAesCbc128Transform.getTransformLength()); in testEncodeEncryptionTransform()
367 ByteBuffer byteBuffer = ByteBuffer.allocate(mPrfHmacSha1Transform.getTransformLength()); in testEncodePrfTransform()
418 ByteBuffer byteBuffer = ByteBuffer.allocate(mIntegHmacSha1Transform.getTransformLength()); in testEncodeIntegrityTransform()
453 ByteBuffer byteBuffer = ByteBuffer.allocate(mDhGroup1024Transform.getTransformLength()); in testEncodeDhGroupTransform()
521 ByteBuffer byteBuffer = ByteBuffer.allocate(mEsnTransform.getTransformLength()); in testEncodeEsnTransform()
675 ByteBuffer byteBuffer = ByteBuffer.allocate(proposal.getProposalLength());
757 ByteBuffer byteBuffer = ByteBuffer.allocate(saPayload.getPayloadLength());
DIkeDeletePayloadTest.java197 ByteBuffer bb = ByteBuffer.allocate(deletePayload.getPayloadLength()); in testEncodeForIke()
209 ByteBuffer bb = ByteBuffer.allocate(deletePayload.getPayloadLength()); in testEncodeWithSingleChildSa()
225 ByteBuffer bb = ByteBuffer.allocate(deletePayload.getPayloadLength()); in testEncodeWithMultipleChildSas()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
DObexAppParameters.java104 byte[] bval = ByteBuffer.allocate(1).put(val).array(); in add()
109 byte[] bval = ByteBuffer.allocate(2).putShort(val).array(); in add()
114 byte[] bval = ByteBuffer.allocate(4).putInt(val).array(); in add()
119 byte[] bval = ByteBuffer.allocate(8).putLong(val).array(); in add()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DObexAppParameters.java104 byte[] bval = ByteBuffer.allocate(1).put(val).array(); in add()
109 byte[] bval = ByteBuffer.allocate(2).putShort(val).array(); in add()
114 byte[] bval = ByteBuffer.allocate(4).putInt(val).array(); in add()
119 byte[] bval = ByteBuffer.allocate(8).putLong(val).array(); in add()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeEncryptedPayloadBody.java230 ByteBuffer authenticatedSectionBuffer = ByteBuffer.allocate(dataToAuthenticateLength); in generateOutboundChecksum()
302 ByteBuffer authenticatedSectionBuffer = ByteBuffer.allocate(dataToAuthenticateLength); in combinedModeEncrypt()
331 ByteBuffer.allocate(encryptedData.length + checksum.length); in combinedModeDecrypt()
360 ByteBuffer padBuffer = ByteBuffer.allocate(paddedDataLength); in getPaddedData()
386 ByteBuffer buffer = ByteBuffer.allocate(getLength()); in encode()
DIkeMessage.java255 ByteBuffer byteBuffer = ByteBuffer.allocate(payloadLengthSum); in encodePayloads()
272 ByteBuffer.allocate(IkeHeader.IKE_HEADER_LENGTH + encodedIkeBody.length); in attachEncodedHeader()
538 ByteBuffer.allocate(IkeHeader.IKE_HEADER_LENGTH + skPayload.getPayloadLength()); in encodeHeaderAndBody()
914 ByteBuffer buffer = ByteBuffer.allocate(len); in reassembleAllFrags()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/crypto/
DIkeMacPrf.java108 keyBuffer = ByteBuffer.allocate(PSEUDORANDOM_FUNCTION_AES128_XCBC_KEY_LEN); in generateSKeySeed()
115 keyBuffer = ByteBuffer.allocate(nonceInit.length + nonceResp.length); in generateSKeySeed()
134 ByteBuffer.allocate(sharedDhKey.length + nonceInit.length + nonceResp.length); in generateRekeyedSKeySeed()
DIkeCombinedModeCipher.java90 ByteBuffer nonceBuffer = ByteBuffer.allocate(mSaltLen + ivBytes.length); in doCipherAction()
101 ByteBuffer outputBuffer = ByteBuffer.allocate(outputLen); in doCipherAction()
DAesXCbcImpl.java135 ByteBuffer paddedData = ByteBuffer.allocate(dataLen + padLen); in padData()
149 ByteBuffer outputBuffer = ByteBuffer.allocate(dataToEncrypt.length); in encryptAesBlock()
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/util/
DByteUtils.java46 ByteBuffer buffer = ByteBuffer.allocate(Long.BYTES); in longToBytes()
57 ByteBuffer buffer = ByteBuffer.allocate(Long.SIZE / Byte.SIZE); in bytesToLong()
88 return ByteBuffer.allocate(UUID_LENGTH) in uuidToBytes()
/packages/apps/Camera2/src/com/android/camera/one/v2/core/
DRequestBuilder.java69 public void allocate() throws InterruptedException, ResourceAcquisitionFailedException { in allocate() method in RequestBuilder.UnregisteredStreamProvider
81 public void allocate() throws InterruptedException, in allocate() method
102 allocation.allocate(); in allocateCaptureRequest()
/packages/services/Car/evs/support_library/
DStreamHandler.cpp249 bool allocate(BufferDesc& buffer) { in allocate() function
253 android::status_t result = alloc.allocate( in allocate()
296 if (!allocate(output)) { in processFrame()
403 if (!allocate(mAnalyzeBuffer)) { in copyAndAnalyzeFrame()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapAkaPrimeMethodStateMachine.java260 ByteBuffer prfKey = ByteBuffer.allocate(IK_PRIME_LENGTH + CK_PRIME_LENGTH); in generateAndPersistEapAkaKeys()
265 ByteBuffer dataToSign = ByteBuffer.allocate(dataToSignLen); in generateAndPersistEapAkaKeys()
319 ByteBuffer dataToSign = ByteBuffer.allocate(sLength); in deriveCkIkPrime()
327 ByteBuffer key = ByteBuffer.allocate(keyLen); in deriveCkIkPrime()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/attributes/
DAtIdReqTest.java82 ByteBuffer result = ByteBuffer.allocate(EXPECTED_LENGTH); in testEncodeAtPermanentIdReq()
113 ByteBuffer result = ByteBuffer.allocate(EXPECTED_LENGTH); in testEncodeAtAnyIdReq()
144 ByteBuffer result = ByteBuffer.allocate(EXPECTED_LENGTH); in testEncodeAtFullauthIdReq()
DAtIdentityTest.java62 ByteBuffer result = ByteBuffer.allocate(AT_IDENTITY.length); in testEncode()
74 ByteBuffer buffer = ByteBuffer.allocate(atIdentity.lengthInBytes); in testGetAtIdentity()
DAtBiddingTest.java86 ByteBuffer result = ByteBuffer.allocate(AT_BIDDING_SUPPORTS_AKA_PRIME.length); in testEncodeServerSupportsAkaPrime()
95 ByteBuffer result = ByteBuffer.allocate(AT_BIDDING_DOES_NOT_SUPPORT_AKA_PRIME.length); in testEncodeDoesNotSupportAkaPrime()
DAtResTest.java96 ByteBuffer result = ByteBuffer.allocate(AT_RES.length); in testEncode()
105 ByteBuffer result = ByteBuffer.allocate(AT_RES.length); in testGetAtRes()
DAtCounterTest.java81 ByteBuffer result = ByteBuffer.allocate(EXPECTED_LENGTH); in testEncodeAtCounter()
118 ByteBuffer result = ByteBuffer.allocate(EXPECTED_LENGTH); in testEncodeAtCounterTooSmall()
/packages/modules/IPsec/src/java/com/android/internal/net/crypto/
DKeyGenerationUtils.java43 ByteBuffer keyMatBuffer = ByteBuffer.allocate(keyMaterialLen); in prfPlus()
51 ByteBuffer.allocate(previousMac.length + dataToSign.length + padLen); in prfPlus()
/packages/services/Car/service/src/com/android/car/
DUtils.java180 ByteBuffer buffer = ByteBuffer.allocate(Long.BYTES); in longToBytes()
191 ByteBuffer buffer = ByteBuffer.allocate(Long.SIZE / Byte.SIZE); in bytesToLong()
222 return ByteBuffer.allocate(UUID_LENGTH) in uuidToBytes()
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DMosaicTypes.h78 MosaicFrame(int _width, int _height, bool allocate=true)
82 internal_allocation = allocate;
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/
DAllocatingImageStream.java66 public void allocate() throws InterruptedException, ResourceAcquisitionFailedException { in allocate() method in AllocatingImageStream
79 allocate(); in bind()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/exceptions/
DIkeProtocolException.java164 ByteBuffer dataBuffer = ByteBuffer.allocate(INTEGER_BYTE_SIZE); in integerToByteArray()
181 ByteBuffer dataBuffer = ByteBuffer.allocate(INTEGER_BYTE_SIZE); in byteArrayToInteger()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapAppParams.java605 ByteBuffer appParamBuf = ByteBuffer.allocate(getParamMaxLength()); in encodeParams()
978 ByteBuffer ret = ByteBuffer.allocate(16); in getDatabaseIdentifier()
995 ByteBuffer ret = ByteBuffer.allocate(16); in getConvoListingVerCounter()
1012 ByteBuffer ret = ByteBuffer.allocate(16); in getFolderVerCounter()
1027 ByteBuffer ret = ByteBuffer.allocate(16); in getChatStateConvoIdByteArray()

123456