Home
last modified time | relevance | path

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

12345

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/parser/
H A DRuleBinaryParserTest.java119 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryStream_validCompoundFormula_noIndexing()
158 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryString_validCompoundFormula_notConnector_noIndexing()
203 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryString_validCompoundFormula_andConnector_noIndexing()
251 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryString_validCompoundFormula_orConnector_noIndexing()
290 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryString_validAtomicFormula_stringValue_noIndexing()
322 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryString_validAtomicFormula_hashedValue_noIndexing()
356 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryString_validAtomicFormulaWithCertificateLineage()
388 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryString_validAtomicFormula_integerValue_noIndexing()
416 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryString_validAtomicFormula_booleanValue_noIndexing()
443 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryString_invalidAtomicFormula_noIndexing()
[all …]
H A DRuleIndexingControllerTest.java150 ByteBuffer rule = ByteBuffer.allocate(stringBytes.length); in verifyIndexRangeSearchIsCorrect_noIndexesAvailable()
181 ByteBuffer rule = ByteBuffer.allocate(stringBytes.length); in verifyIndexingFileIsCorrupt()
204 ByteBuffer rule = ByteBuffer.allocate(stringBytes.length); in obtainDefaultIndexingMapForTest()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
H A DFakeGateKeeperService.java42 ByteBuffer buffer = ByteBuffer.allocate(handle.length); in VerifyHandle()
52 ByteBuffer buffer = ByteBuffer.allocate(1 + Long.BYTES + password.length); in toBytes()
70 ByteBuffer buffer = ByteBuffer.allocate(handle.length); in AuthToken()
79 ByteBuffer buffer = ByteBuffer.allocate(1 + Long.BYTES + Long.BYTES); in toBytes()
H A DMockSyntheticPasswordManager.java55 ByteBuffer buffer = ByteBuffer.allocate(blob.length); in decryptSpBlob()
78 ByteBuffer buffer = ByteBuffer.allocate(Integer.BYTES + data.length + Integer.BYTES in createSpBlob()
/aosp14/frameworks/base/services/core/java/com/android/server/
H A DPersistentDataBlockService.java328 ByteBuffer buf = ByteBuffer.allocate(DIGEST_SIZE_BYTES); in computeAndWriteDigestLocked()
393 ByteBuffer buf = ByteBuffer.allocate(header_size); in formatPartitionLocked()
403 buf = ByteBuffer.allocate(payload_size in formatPartitionLocked()
413 buf = ByteBuffer.allocate(FRP_CREDENTIAL_RESERVED_SIZE); in formatPartitionLocked()
418 buf = ByteBuffer.allocate(FRP_CREDENTIAL_RESERVED_SIZE); in formatPartitionLocked()
439 ByteBuffer data = ByteBuffer.allocate(1); in doSetOemUnlockEnabledLocked()
510 ByteBuffer headerAndData = ByteBuffer.allocate(
739 writeDataBuffer(getTestHarnessModeDataOffset(), ByteBuffer.allocate(size));
753 ByteBuffer dataBuffer = ByteBuffer.allocate(dataLength + 4);
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DMeshActivity.java58 FloatBuffer vertexBuffer = FloatBuffer.allocate(6); in onDraw()
73 FloatBuffer iVertexBuffer = FloatBuffer.allocate(numTriangles * 2 + 4); in onDraw()
74 ShortBuffer indexBuffer = ShortBuffer.allocate(300); in onDraw()
H A DMeshLargeActivity.java60 FloatBuffer vertexBuffer = FloatBuffer.allocate((numTriangles + 2) * 30); in onDraw()
61 ShortBuffer indexBuffer = ShortBuffer.allocate(numTriangles * 3); in onDraw()
/aosp14/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
H A DBufferPool.java48 return ByteBuffer.allocate(chooseCapacity(mInitialBufferSize, needed)); in acquire()
72 buffer = ByteBuffer.allocate(capacity); in grow()
/aosp14/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DNativeBuffer.java40 allocate(count * getElementSize()); in NativeBuffer()
126 private native boolean allocate(int size); in allocate() method in NativeBuffer
H A DNativeProgram.java38 allocate(); in NativeProgram()
155 private native boolean allocate(); in allocate() method in NativeProgram
H A DShaderProgram.java53 allocate(mGLEnvironment, null, fragmentShader); in ShaderProgram()
62 allocate(mGLEnvironment, vertexShader, fragmentShader); in ShaderProgram()
254 private native boolean allocate(GLEnvironment glEnv, in allocate() method in ShaderProgram
/aosp14/frameworks/base/core/tests/privacytests/src/android/privacy/
H A DRapporEncoderTest.java189 return ByteBuffer.allocate(8).order(ByteOrder.LITTLE_ENDIAN).putLong(value).array(); in toBytes()
193 ByteBuffer buffer = ByteBuffer.allocate(8).order(ByteOrder.LITTLE_ENDIAN).put(bytes); in toLong()
204 return ByteBuffer.allocate(48).put(digest).put(digest).put(digest).array(); in makeTestingUserSecret()
/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DBackingStore.java267 backing.allocate(mType); in createBacking()
339 public abstract void allocate(FrameType frameType); in allocate() method in BackingStore.Backing
419 public void allocate(FrameType frameType) { in allocate() method in BackingStore.ObjectBacking
492 public void allocate(FrameType frameType) { in allocate() method in BackingStore.BitmapBacking
586 public void allocate(FrameType frameType) { in allocate() method in BackingStore.TextureBacking
678 mTexture.allocate(mDimensions[0], mDimensions[1]); in getTexture()
699 public void allocate(FrameType frameType) { in allocate() method in BackingStore.ByteBufferBacking
806 public void allocate(FrameType frameType) { in allocate() method in BackingStore.AllocationBacking
/aosp14/frameworks/base/core/java/android/util/
H A DEventLog.java223 return ByteBuffer.allocate(1 + 4) in encodeObject()
229 return ByteBuffer.allocate(1 + 8) in encodeObject()
235 return ByteBuffer.allocate(1 + 4) in encodeObject()
248 return ByteBuffer.allocate(1 + 4 + bytes.length) in encodeObject()
265 ByteBuffer buffer = ByteBuffer.allocate(1 + 1 + totalLength) in encodeObject()
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/
H A DVersionedPasswordMetrics.java53 final ByteBuffer buffer = ByteBuffer.allocate(Integer.BYTES * 11); in serialize()
70 final ByteBuffer buffer = ByteBuffer.allocate(data.length); in deserialize()
/aosp14/frameworks/base/services/companion/java/com/android/server/companion/securechannel/
H A DSecureChannel.java321 final byte[] header = ByteBuffer.allocate(HEADER_LENGTH) in sendMessage()
329 mOutput.write(ByteBuffer.allocate(4) in sendMessage()
525 byte[] verificationResult = ByteBuffer.allocate(4) in exchangeAttestation()
556 return ByteBuffer.allocate(1 + message.length) in constructHandshakeInitMessage()
567 return hash.digest(ByteBuffer.allocate(tokenLength) in constructToken()
/aosp14/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DEnterpriseSpecificIdCalculator.java126 final ByteBuffer fixedIdentifiers = ByteBuffer.allocate(totalIdentifiersLength); in calculateEnterpriseId()
134 final ByteBuffer info = ByteBuffer.allocate(dpcPackage.length + enterpriseId.length); in calculateEnterpriseId()
/aosp14/frameworks/base/tests/SerialChat/src/com/android/serialchat/
H A DSerialChat.java65 mInputBuffer = ByteBuffer.allocate(1024); in onCreate()
66 mOutputBuffer = ByteBuffer.allocate(1024); in onCreate()
/aosp14/frameworks/base/core/java/android/os/
H A DHwParcel.java55 private HwParcel(boolean allocate) { in HwParcel() argument
56 native_setup(allocate); in HwParcel()
690 private native final void native_setup(boolean allocate); in native_setup() argument
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DByteArrayHelpers.java167 ByteBuffer byteBuffer = ByteBuffer.allocate(numbers.length * (Double.SIZE / Byte.SIZE)) in toByteArray()
229 ByteBuffer byteBuffer = ByteBuffer.allocate(byteLength).order(ByteOrder.nativeOrder()); in toByteArray()
/aosp14/frameworks/base/core/java/android/ddm/
H A DDdmHandleHello.java142 ByteBuffer out = ByteBuffer.allocate(32 in handleHELO()
194 ByteBuffer out = ByteBuffer.allocate(size); in handleFEAT()
/aosp14/frameworks/base/core/java/android/util/apk/
H A DVerityBuilder.java247 mOutput.put(ByteBuffer.allocate(BUFFER_SIZE - lastBlockSize)); in fillUpLastOutputChunk()
284 digester.consume(ByteBuffer.allocate(CHUNK_SIZE_BYTES - lastIncompleteChunkSize)); in generateFsVerityDigestAtLeafLevel()
312 ByteBuffer alternativeCentralDirOffset = ByteBuffer.allocate( in generateApkVerityDigestAtLeafLevel()
329 digester.consume(ByteBuffer.allocate(CHUNK_SIZE_BYTES - lastIncompleteChunkSize)); in generateApkVerityDigestAtLeafLevel()
/aosp14/frameworks/base/core/java/android/nfc/tech/
H A DMifareClassic.java476 ByteBuffer cmd = ByteBuffer.allocate(6); in increment()
504 ByteBuffer cmd = ByteBuffer.allocate(6); in decrement()
/aosp14/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DOrderedDataOutputStream.java26 private final ByteBuffer mByteBuffer = ByteBuffer.allocate(4);
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
H A DMockScrypt.java34 ByteBuffer byteBuffer = ByteBuffer.allocate( in scrypt()

12345