/frameworks/support/emoji/core/src/android/support/text/emoji/ |
H A D | MetadataListReader.java | 73 // 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 D | PortableFloatMap.java | 57 mData = ByteBuffer.allocate(bytesPerRow * mHeight);
|
/frameworks/rs/tests/java_api/GenImages/src/com/android/rs/genimage/ |
H A D | GenImage.java | 251 IntBuffer ib = IntBuffer.allocate(512*512);
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
H A D | ByteBufferReaderTest.java | 161 ByteBuffer buffer = ByteBuffer.allocate(expectedValue.length() + 1);
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
H A D | ANQPParserTest.java | 182 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE)
|
H A D | CellularNetworkTest.java | 49 CellularNetwork.parse(ByteBuffer.allocate(0));
|
H A D | DomainNameElementTest.java | 77 assertTrue(DomainNameElement.parse(ByteBuffer.allocate(0)).getDomains().isEmpty());
|
H A D | HSConnectionCapabilityElementTest.java | 61 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 D | HSFriendlyNameElementTest.java | 86 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 D | HSWanMetricsElementTest.java | 49 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 D | I18NameTest.java | 79 ByteBuffer buffer = ByteBuffer.allocate(data.length + 1); 93 I18Name.parse(ByteBuffer.allocate(0));
|
H A D | IPAddressTypeAvailabilityElementTest.java | 49 IPAddressTypeAvailabilityElement.parse(ByteBuffer.allocate(0)); 60 ByteBuffer buffer = ByteBuffer.allocate( 65 IPAddressTypeAvailabilityElement.parse(ByteBuffer.allocate(0)); 76 ByteBuffer buffer = ByteBuffer.allocate(
|
H A D | NAIRealmElementTest.java | 47 ByteBuffer buffer = ByteBuffer.allocate(dataLength + 2).order(ByteOrder.LITTLE_ENDIAN);
|
H A D | ProtocolPortTupleTest.java | 47 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 D | RoamingConsortiumElementTest.java | 112 RoamingConsortiumElement element = RoamingConsortiumElement.parse(ByteBuffer.allocate(0)); 152 ByteBuffer buffer = ByteBuffer.allocate(1); 166 ByteBuffer buffer = ByteBuffer.allocate(1);
|
H A D | ThreeGPPNetworkElementTest.java | 87 ThreeGPPNetworkElement.parse(ByteBuffer.allocate(0));
|
H A D | VenueNameElementTest.java | 86 VenueNameElement.parse(ByteBuffer.allocate(0));
|
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/utils/ |
H A D | ObexAppParameters.java | 104 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 D | MemoryDealer.h | 40 virtual sp<IMemory> allocate(size_t size);
|
/frameworks/native/include/ui/ |
H A D | Gralloc2.h | 91 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 D | GraphicBufferAllocator.h | 51 status_t allocate(uint32_t w, uint32_t h, PixelFormat format,
|
/frameworks/native/libs/binder/ |
H A D | MemoryDealer.cpp | 132 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 D | MemoryDealer.h | 40 virtual sp<IMemory> allocate(size_t size);
|
/frameworks/native/libs/ui/ |
H A D | Gralloc2.cpp | 217 Error Allocator::allocate(BufferDescriptor descriptor, uint32_t count, function in class:android::Gralloc2::Allocator 221 auto ret = mAllocator->allocate(descriptor, count,
|
H A D | GraphicBuffer.cpp | 171 status_t err = allocator.allocate(inWidth, inHeight, inFormat, inLayerCount,
|