Searched refs:allocate (Results 1 - 25 of 162) sorted by last modified time

1234567

/frameworks/support/emoji/core/src/android/support/text/emoji/
H A DMetadataListReader.java73 // allocate a ByteBuffer and read into it since FlatBuffers can read only from a ByteBuffer
74 final ByteBuffer buffer = ByteBuffer.allocate((int) offsetInfo.getLength());
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
H A DPortableFloatMap.java57 mData = ByteBuffer.allocate(bytesPerRow * mHeight);
/frameworks/rs/tests/java_api/GenImages/src/com/android/rs/genimage/
H A DGenImage.java251 IntBuffer ib = IntBuffer.allocate(512*512);
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DByteBufferReaderTest.java161 ByteBuffer buffer = ByteBuffer.allocate(expectedValue.length() + 1);
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
H A DANQPParserTest.java182 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE)
H A DCellularNetworkTest.java49 CellularNetwork.parse(ByteBuffer.allocate(0));
H A DDomainNameElementTest.java77 assertTrue(DomainNameElement.parse(ByteBuffer.allocate(0)).getDomains().isEmpty());
H A DHSConnectionCapabilityElementTest.java61 ByteBuffer buffer = ByteBuffer.allocate(tuples.length * ProtocolPortTuple.RAW_BYTE_SIZE)
79 HSConnectionCapabilityElement.parse(ByteBuffer.allocate(0));
91 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE - 1);
106 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE + 1);
H A DHSFriendlyNameElementTest.java86 assertTrue(HSFriendlyNameElement.parse(ByteBuffer.allocate(0)).getNames().isEmpty());
99 ByteBuffer buffer = ByteBuffer.allocate(testData.length - 1);
114 ByteBuffer buffer = ByteBuffer.allocate(testData.length);
140 ByteBuffer buffer = ByteBuffer.allocate(testData.length);
164 ByteBuffer buffer = ByteBuffer.allocate(testData.length);
H A DHSWanMetricsElementTest.java49 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE)
71 HSWanMetricsElement.parse(ByteBuffer.allocate(0));
82 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE - 1);
96 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE + 1);
H A DI18NameTest.java79 ByteBuffer buffer = ByteBuffer.allocate(data.length + 1);
93 I18Name.parse(ByteBuffer.allocate(0));
H A DIPAddressTypeAvailabilityElementTest.java49 IPAddressTypeAvailabilityElement.parse(ByteBuffer.allocate(0));
60 ByteBuffer buffer = ByteBuffer.allocate(
65 IPAddressTypeAvailabilityElement.parse(ByteBuffer.allocate(0));
76 ByteBuffer buffer = ByteBuffer.allocate(
H A DNAIRealmElementTest.java47 ByteBuffer buffer = ByteBuffer.allocate(dataLength + 2).order(ByteOrder.LITTLE_ENDIAN);
H A DProtocolPortTupleTest.java47 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE)
63 ProtocolPortTuple.parse(ByteBuffer.allocate(0));
74 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE - 1);
H A DRoamingConsortiumElementTest.java112 RoamingConsortiumElement element = RoamingConsortiumElement.parse(ByteBuffer.allocate(0));
152 ByteBuffer buffer = ByteBuffer.allocate(1);
166 ByteBuffer buffer = ByteBuffer.allocate(1);
H A DThreeGPPNetworkElementTest.java87 ThreeGPPNetworkElement.parse(ByteBuffer.allocate(0));
H A DVenueNameElementTest.java86 VenueNameElement.parse(ByteBuffer.allocate(0));
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/utils/
H A DObexAppParameters.java104 byte[] bval = ByteBuffer.allocate(1).put(val).array();
109 byte[] bval = ByteBuffer.allocate(2).putShort(val).array();
114 byte[] bval = ByteBuffer.allocate(4).putInt(val).array();
119 byte[] bval = ByteBuffer.allocate(8).putLong(val).array();
/frameworks/native/include/binder/
H A DMemoryDealer.h40 virtual sp<IMemory> allocate(size_t size);
/frameworks/native/include/ui/
H A DGralloc2.h91 Error allocate(BufferDescriptor descriptor, uint32_t count,
94 Error allocate(BufferDescriptor descriptor, function in class:android::Gralloc2::Allocator
97 return allocate(descriptor, 1, outStride, outBufferHandle);
100 Error allocate(const IMapper::BufferDescriptorInfo& descriptorInfo, uint32_t count, function in class:android::Gralloc2::Allocator
106 error = allocate(descriptor, count, outStride, outBufferHandles);
111 Error allocate(const IMapper::BufferDescriptorInfo& descriptorInfo, function in class:android::Gralloc2::Allocator
114 return allocate(descriptorInfo, 1, outStride, outBufferHandle);
H A DGraphicBufferAllocator.h51 status_t allocate(uint32_t w, uint32_t h, PixelFormat format,
/frameworks/native/libs/binder/
H A DMemoryDealer.cpp132 size_t allocate(size_t size, uint32_t flags = 0);
241 sp<IMemory> MemoryDealer::allocate(size_t size) function in class:android::MemoryDealer
244 const ssize_t offset = allocator()->allocate(size);
301 size_t SimpleBestFitAllocator::allocate(size_t size, uint32_t flags) function in class:android::SimpleBestFitAllocator
/frameworks/native/libs/binder/include/binder/
H A DMemoryDealer.h40 virtual sp<IMemory> allocate(size_t size);
/frameworks/native/libs/ui/
H A DGralloc2.cpp217 Error Allocator::allocate(BufferDescriptor descriptor, uint32_t count, function in class:android::Gralloc2::Allocator
221 auto ret = mAllocator->allocate(descriptor, count,
H A DGraphicBuffer.cpp171 status_t err = allocator.allocate(inWidth, inHeight, inFormat, inLayerCount,

Completed in 780 milliseconds

1234567