Home
last modified time | relevance | path

Searched defs:buffer (Results 1 – 25 of 2177) sorted by relevance

12345678910>>...88

/aosp12/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/
H A Dformat_utils_test.cpp34 std::vector<uint8_t> buffer; in getBuffer() local
58 const std::vector<uint8_t> buffer = in TEST() local
64 const std::vector<uint8_t> buffer = in TEST() local
70 const std::vector<uint8_t> buffer = in TEST() local
76 const std::vector<uint8_t> buffer = in TEST() local
83 const std::vector<uint8_t> buffer = in TEST() local
89 const std::vector<uint8_t> buffer = in TEST() local
95 const std::vector<uint8_t> buffer = in TEST() local
/aosp12/frameworks/base/core/java/android/text/method/
H A DScrollingMovementMethod.java30 protected boolean left(TextView widget, Spannable buffer) { in left()
35 protected boolean right(TextView widget, Spannable buffer) { in right()
40 protected boolean up(TextView widget, Spannable buffer) { in up()
45 protected boolean down(TextView widget, Spannable buffer) { in down()
50 protected boolean pageUp(TextView widget, Spannable buffer) { in pageUp()
55 protected boolean pageDown(TextView widget, Spannable buffer) { in pageDown()
60 protected boolean top(TextView widget, Spannable buffer) { in top()
65 protected boolean bottom(TextView widget, Spannable buffer) { in bottom()
75 protected boolean lineEnd(TextView widget, Spannable buffer) { in lineEnd()
80 protected boolean home(TextView widget, Spannable buffer) { in home()
[all …]
H A DArrowKeyMovementMethod.java33 private static boolean isSelecting(Spannable buffer) { in isSelecting()
69 protected boolean left(TextView widget, Spannable buffer) { in left()
79 protected boolean right(TextView widget, Spannable buffer) { in right()
89 protected boolean up(TextView widget, Spannable buffer) { in up()
99 protected boolean down(TextView widget, Spannable buffer) { in down()
109 protected boolean pageUp(TextView widget, Spannable buffer) { in pageUp()
157 protected boolean top(TextView widget, Spannable buffer) { in top()
167 protected boolean bottom(TextView widget, Spannable buffer) { in bottom()
187 protected boolean lineEnd(TextView widget, Spannable buffer) { in lineEnd()
215 protected boolean home(TextView widget, Spannable buffer) { in home()
[all …]
H A DBaseMovementMethod.java252 protected boolean left(TextView widget, Spannable buffer) { in left()
264 protected boolean right(TextView widget, Spannable buffer) { in right()
276 protected boolean up(TextView widget, Spannable buffer) { in up()
288 protected boolean down(TextView widget, Spannable buffer) { in down()
300 protected boolean pageUp(TextView widget, Spannable buffer) { in pageUp()
312 protected boolean pageDown(TextView widget, Spannable buffer) { in pageDown()
324 protected boolean top(TextView widget, Spannable buffer) { in top()
336 protected boolean bottom(TextView widget, Spannable buffer) { in bottom()
360 protected boolean lineEnd(TextView widget, Spannable buffer) { in lineEnd()
384 protected boolean home(TextView widget, Spannable buffer) { in home()
[all …]
/aosp12/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
H A Dbyte_array_utils.h36 static AK_FORCE_INLINE void writeUintAndAdvancePosition(uint8_t *const buffer, in writeUintAndAdvancePosition()
81 const uint8_t *const buffer, int *const pos) { in readUint32AndAdvancePosition()
88 const uint8_t *const buffer, int *const pos) { in readSint24AndAdvancePosition()
99 const uint8_t *const buffer, int *const pos) { in readUint24AndAdvancePosition()
106 const uint8_t *const buffer, int *const pos) { in readUint16AndAdvancePosition()
113 const uint8_t *const buffer, int *const pos) { in readUint8AndAdvancePosition()
117 static AK_FORCE_INLINE uint32_t readUint(const uint8_t *const buffer, in readUint()
185 static int readStringAndAdvancePosition(const uint8_t *const buffer, in readStringAndAdvancePosition()
199 const uint8_t *const buffer, const int maxLength, int *const pos) { in advancePositionToBehindString()
212 static void writeCodePointsAndAdvancePosition(uint8_t *const buffer, in writeCodePointsAndAdvancePosition()
[all …]
/aosp12/system/core/libutils/include/utils/
H A DFlattenable.h44 static size_t align(void const*& buffer) { in align()
52 static size_t align(void*& buffer) { in align()
61 static void advance(void*& buffer, size_t& size, size_t offset) { in advance()
66 static void advance(void const*& buffer, size_t& size, size_t offset) { in advance()
73 static void write(void*& buffer, size_t& size, const T& value) { in write()
82 static void read(void const*& buffer, size_t& size, T& value) { in read()
135 void*& buffer, size_t& size, int*& fds, size_t& count) const { in flatten()
140 void const*& buffer, size_t& size, int const*& fds, size_t& count) { in unflatten()
179 inline status_t LightFlattenable<T>::flatten(void* buffer, size_t size) const { in flatten()
206 inline status_t flatten(void* buffer, size_t size) const { in flatten()
[all …]
/aosp12/system/unwinding/libunwindstack/tests/
H A DMemoryCacheTest.cpp47 std::vector<uint8_t> buffer(i); in TEST_F() local
56 std::vector<uint8_t> buffer(i); in TEST_F() local
65 std::vector<uint8_t> buffer(i); in TEST_F() local
75 std::vector<uint8_t> buffer(i); in TEST_F() local
86 std::vector<uint8_t> buffer(32); in TEST_F() local
99 std::vector<uint8_t> buffer(i); in TEST_F() local
108 std::vector<uint8_t> buffer(i); in TEST_F() local
116 std::vector<uint8_t> buffer(kMaxCachedSize); in TEST_F() local
130 std::vector<uint8_t> buffer(32); in TEST_F() local
H A DMemoryThreadCacheTest.cpp48 std::vector<uint8_t> buffer(i); in TEST_F() local
57 std::vector<uint8_t> buffer(i); in TEST_F() local
66 std::vector<uint8_t> buffer(i); in TEST_F() local
76 std::vector<uint8_t> buffer(i); in TEST_F() local
87 std::vector<uint8_t> buffer(32); in TEST_F() local
100 std::vector<uint8_t> buffer(i); in TEST_F() local
109 std::vector<uint8_t> buffer(i); in TEST_F() local
117 std::vector<uint8_t> buffer(kMaxCachedSize); in TEST_F() local
131 std::vector<uint8_t> buffer(32); in TEST_F() local
147 std::vector<uint8_t> buffer(i); in TEST_F() local
[all …]
/aosp12/hardware/google/gchips/gralloc4/src/4.x/
H A DGrallocMapper.cpp68 Return<Error> GrallocMapper::freeBuffer(void *buffer) in freeBuffer()
73 Return<Error> GrallocMapper::validateBufferSize(void *buffer, const BufferDescriptorInfo &descripto… in validateBufferSize()
85 Return<void> GrallocMapper::lock(void *buffer, uint64_t cpuUsage, const IMapper::Rect &accessRegion, in lock()
92 Return<void> GrallocMapper::unlock(void *buffer, unlock_cb hidl_cb) in unlock()
98 Return<void> GrallocMapper::flushLockedBuffer(void *buffer, flushLockedBuffer_cb hidl_cb) in flushLockedBuffer()
104 Return<Error> GrallocMapper::rereadLockedBuffer(void *buffer) in rereadLockedBuffer()
109 Return<void> GrallocMapper::get(void *buffer, const MetadataType &metadataType, IMapper::get_cb hid… in get()
115 Return<Error> GrallocMapper::set(void *buffer, const MetadataType &metadataType, const hidl_vec<uin… in set()
128 Return<void> GrallocMapper::getTransportSize(void *buffer, getTransportSize_cb hidl_cb) in getTransportSize()
151 Return<void> GrallocMapper::dumpBuffer(void *buffer, dumpBuffer_cb hidl_cb) in dumpBuffer()
[all …]
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
H A DVenueUrlElementTest.java108 ByteBuffer buffer = ByteBuffer.wrap(getTestData(urlList)); in parseTruncatedBuffer() local
119 ByteBuffer buffer = ByteBuffer.wrap(getTestData(1, new String())); in parseBufferWithEmptyVenueUrl() local
128 ByteBuffer buffer = ByteBuffer.wrap(getTestData(1, TEST_VENUE_URL_INVALID)); in parseBufferWithInvalidVenueUrl() local
154 ByteBuffer buffer = ByteBuffer.wrap(getTestData(0, new String())); in parseBufferWithZeroVenueNumber() local
164 ByteBuffer buffer = ByteBuffer.wrap(getTestData(0, TEST_VENUE_URL1)); in parseBufferWithZeroVenueNumberAndUrlData() local
180 ByteBuffer buffer = ByteBuffer.wrap(getTestData(-7, TEST_VENUE_URL1)); in parseBufferWithNegativeVenueNumberAndUrlData() local
207 ByteBuffer buffer = ByteBuffer.wrap(getTestData(urlList)); in parseBufferWithValidVenueUrls() local
225 ByteBuffer buffer = ByteBuffer.wrap(getTestData(urlList)); in parseBufferWithValidVenueUrlsAndCapsUrls() local
235 ByteBuffer buffer = ByteBuffer.wrap(getTestData(1, TEST_VENUE_URL_INSECURE)); in parseBufferWithInsecureUrlData() local
245 ByteBuffer buffer = ByteBuffer.wrap(getTestData(1, TEST_VENUE_URL_INSECURE_CAPS)); in parseBufferWithInsecureCapsUrlData() local
[all …]
H A DHSConnectionCapabilityElementTest.java50 private void appendProtocolPortTuple(ByteBuffer buffer, ProtocolPortTuple tuple) { in appendProtocolPortTuple()
63 ByteBuffer buffer = ByteBuffer.allocate(tuples.length * ProtocolPortTuple.RAW_BYTE_SIZE) in getTestBuffer() local
93 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE - 1); in parseBufferWithLessThanMinimumSize() local
108 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE + 1); in parseBufferWithIncompleteTupleBytes() local
123 ByteBuffer buffer = getTestBuffer(new ProtocolPortTuple[] {TEST_TUPLE1, TEST_TUPLE2}); in parseBufferWithTestData() local
/aosp12/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryablePrimitive.java64 public T unmarshal(ByteBuffer buffer) { in unmarshal()
74 public void marshal(T value, ByteBuffer buffer) { in marshal()
104 private void marshalPrimitive(int value, ByteBuffer buffer) { in marshalPrimitive()
108 private void marshalPrimitive(float value, ByteBuffer buffer) { in marshalPrimitive()
112 private void marshalPrimitive(double value, ByteBuffer buffer) { in marshalPrimitive()
116 private void marshalPrimitive(long value, ByteBuffer buffer) { in marshalPrimitive()
120 private void marshalPrimitive(Rational value, ByteBuffer buffer) { in marshalPrimitive()
125 private void marshalPrimitive(byte value, ByteBuffer buffer) { in marshalPrimitive()
129 private Object unmarshalObject(ByteBuffer buffer) { in unmarshalObject()
/aosp12/system/chre/util/tests/
H A Dbuffer_test.cc24 void fillBufferWithSequentialValues(float *buffer, size_t size) { in fillBufferWithSequentialValues()
31 Buffer<float> buffer; in TEST() local
40 Buffer<float> buffer; in TEST() local
50 Buffer<float> buffer; in TEST() local
60 Buffer<float> buffer; in TEST() local
70 Buffer<float> buffer; in TEST() local
81 Buffer<float> buffer; in TEST() local
/aosp12/hardware/interfaces/confirmationui/support/test/
H A Dandroid_cbor_test.cpp81 uint8_t buffer[0x1000]; in TEST() local
92 uint8_t buffer[0x1000]; in TEST() local
105 uint8_t buffer[20]; in TEST() local
113 uint8_t buffer[20]; in TEST() local
121 uint8_t buffer[20]; in TEST() local
129 uint8_t buffer[20]; in TEST() local
137 uint8_t buffer[20]; in TEST() local
145 uint8_t buffer[20]; in TEST() local
153 uint8_t buffer[20]; in TEST() local
161 uint8_t buffer[20]; in TEST() local
/aosp12/frameworks/native/libs/gui/
H A DIGraphicBufferProducerFlattenables.cpp46 void*& buffer, size_t& size, int*& fds, size_t& count) const in flatten()
80 void const*& buffer, size_t& size, int const*& fds, size_t& count) in unflatten()
129 void*& buffer, size_t& size, int*& fds, size_t& count) const in flatten()
152 void const*& buffer, size_t& size, int const*& fds, size_t& count) in unflatten()
233 status_t IGraphicBufferProducer::DequeueBufferInput::flatten(void* buffer, size_t size) const { in flatten()
281 void*& buffer, size_t& size, int*& fds, size_t& count) const { in flatten()
302 void const*& buffer, size_t& size, int const*& fds, size_t& count) { in unflatten()
366 void*& buffer, size_t& size, int*& fds, size_t& count) const { in flatten()
376 void const*& buffer, size_t& size, int const*& fds, size_t& count) { in unflatten()
393 status_t IGraphicBufferProducer::QueryOutput::flatten(void* buffer, size_t size) const { in flatten()
[all …]
/aosp12/packages/modules/Connectivity/tests/unit/java/com/android/internal/util/
H A DRingBufferTest.java40 RingBuffer<String> buffer = new RingBuffer<>(String.class, 100); in testEmptyRingBuffer() local
48 RingBuffer<String> buffer = new RingBuffer<>(String.class, -10); in testIncorrectConstructorArguments() local
54 RingBuffer<String> buffer = new RingBuffer<>(String.class, 0); in testIncorrectConstructorArguments() local
62 RingBuffer<String> buffer = new RingBuffer<>(String.class, 100); in testRingBufferWithNoWrapping() local
76 RingBuffer<String> buffer = new RingBuffer<>(String.class, 1); in testRingBufferWithCapacity1() local
97 RingBuffer<String> buffer = new RingBuffer<>(String.class, capacity); in testRingBufferWithWrapping() local
138 RingBuffer<DummyClass1> buffer = new RingBuffer<>(DummyClass1.class, capacity); in testGetNextSlot() local
/aosp12/frameworks/base/libs/hwui/tests/unit/
H A DCanvasOpTests.cpp65 CanvasOpBuffer buffer; in TEST() local
79 CanvasOpBuffer buffer; in TEST() local
119 CanvasOpBuffer buffer; in TEST() local
134 CanvasOpBuffer buffer; in TEST() local
150 CanvasOpBuffer buffer; in TEST() local
175 CanvasOpBuffer buffer; in TEST() local
193 CanvasOpBuffer buffer; in TEST() local
217 CanvasOpBuffer buffer; in TEST() local
232 CanvasOpBuffer buffer; in TEST() local
250 CanvasOpBuffer buffer; in TEST() local
[all …]
/aosp12/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
H A Dbuffer_wrapper.h32 BufferWrapper(pointer buffer, size_type capacity, size_type size) in BufferWrapper()
37 BufferWrapper(pointer buffer, size_type size) in BufferWrapper()
113 explicit BufferWrapper(const BufferType& buffer) : buffer_(buffer) {} in BufferWrapper()
114 BufferWrapper(const BufferType& buffer, const Allocator& allocator) in BufferWrapper()
117 BufferWrapper(BufferType&& buffer, const Allocator& allocator) in BufferWrapper()
142 BufferType& buffer() { return buffer_; } in buffer() function
143 const BufferType& buffer() const { return buffer_; } in buffer() function
150 BufferWrapper<T*> WrapBuffer(T* buffer, SizeType size) { in WrapBuffer()
155 BufferWrapper<std::uint8_t*> WrapBuffer(void* buffer, SizeType size) { in WrapBuffer()
160 BufferWrapper<const std::uint8_t*> WrapBuffer(const void* buffer, in WrapBuffer()
[all …]
/aosp12/system/chre/apps/wifi_offload/
H A Dflatbuffers_serialization.cc23 size_t Serialize(const wifi_offload::ScanStats &stats, uint8_t *buffer, in Serialize()
28 bool Deserialize(const uint8_t *buffer, size_t buffer_len, in Deserialize()
34 size_t Serialize(const wifi_offload::ScanConfig &config, uint8_t *buffer, in Serialize()
39 bool Deserialize(const uint8_t *buffer, size_t buffer_len, in Deserialize()
46 uint8_t *buffer, size_t buffer_len) { in Serialize()
52 bool Deserialize(const uint8_t *buffer, size_t buffer_len, in Deserialize()
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
H A DByteBufferReaderTest.java45 ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN); in readIntegerWithBufferUnderflow() local
59 ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN); in readIntegerExceedingMaximumLength() local
73 ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN); in readIntegerLessThanMinimumLength() local
86 ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN); in readIntegerWithMinimumSize() local
146 ByteBuffer buffer = ByteBuffer.wrap(expectedValue.getBytes(StandardCharsets.US_ASCII)); in readString() local
161 ByteBuffer buffer = ByteBuffer.allocate(expectedValue.length() + 1); in readStringWithByteLength() local
/aosp12/frameworks/native/services/surfaceflinger/tests/unittests/mock/system/window/
H A DMockNativeWindow.cpp28 struct ANativeWindowBuffer** buffer) { in dispatch_dequeueBuffer_DEPRECATED()
33 struct ANativeWindowBuffer* buffer) { in dispatch_lockBuffer_DEPRECATED()
38 struct ANativeWindowBuffer* buffer) { in dispatch_queueBuffer_DEPRECATED()
52 struct ANativeWindowBuffer* buffer) { in dispatch_cancelBuffer_DEPRECATED()
56 int dispatch_dequeueBuffer(struct ANativeWindow* window, struct ANativeWindowBuffer** buffer, in dispatch_dequeueBuffer()
61 int dispatch_queueBuffer(struct ANativeWindow* window, struct ANativeWindowBuffer* buffer, in dispatch_queueBuffer()
66 int dispatch_cancelBuffer(struct ANativeWindow* window, struct ANativeWindowBuffer* buffer, in dispatch_cancelBuffer()
/aosp12/system/core/debuggerd/libdebuggerd/test/
H A Ddump_memory_test.cpp181 uint8_t buffer[256]; in TEST_F() local
200 uint8_t buffer[256]; in TEST_F() local
220 uint8_t buffer[256]; in TEST_F() local
252 uint8_t buffer[104]; in TEST_F() local
271 uint8_t buffer[104]; in TEST_F() local
296 uint8_t buffer[106]; in TEST_F() local
325 uint8_t buffer[256]; in TEST_F() local
379 uint8_t buffer[256]; in TEST_F() local
402 uint8_t buffer[256]; in TEST_F() local
479 uint8_t buffer[256]; in TEST_F() local
[all …]
/aosp12/hardware/qcom/sm7250/display/gralloc/
H A DQtiMapperExtensions.cpp50 Return<void> QtiMapperExtensions::getMapSecureBufferFlag(void *buffer, in getMapSecureBufferFlag()
81 Return<void> QtiMapperExtensions::getCustomDimensions(void *buffer, in getCustomDimensions()
133 Return<void> QtiMapperExtensions::getColorSpace(void *buffer, getColorSpace_cb hidl_cb) { in getColorSpace()
168 Return<Error> QtiMapperExtensions::setSingleBufferMode(void *buffer, bool enable) { in setSingleBufferMode()
181 Return<void> QtiMapperExtensions::getFd(void *buffer, getFd_cb hidl_cb) { in getFd()
193 Return<void> QtiMapperExtensions::getWidth(void *buffer, getWidth_cb hidl_cb) { in getWidth()
205 Return<void> QtiMapperExtensions::getHeight(void *buffer, getHeight_cb hidl_cb) { in getHeight()
217 Return<void> QtiMapperExtensions::getFormat(void *buffer, getFormat_cb hidl_cb) { in getFormat()
277 Return<void> QtiMapperExtensions::getId(void *buffer, getId_cb hidl_cb) { in getId()
301 Return<void> QtiMapperExtensions::getSize(void *buffer, getSize_cb hidl_cb) { in getSize()
[all …]
/aosp12/hardware/qcom/sm8150/display/gralloc/
H A DQtiMapperExtensions.cpp50 Return<void> QtiMapperExtensions::getMapSecureBufferFlag(void *buffer, in getMapSecureBufferFlag()
81 Return<void> QtiMapperExtensions::getCustomDimensions(void *buffer, in getCustomDimensions()
133 Return<void> QtiMapperExtensions::getColorSpace(void *buffer, getColorSpace_cb hidl_cb) { in getColorSpace()
168 Return<Error> QtiMapperExtensions::setSingleBufferMode(void *buffer, bool enable) { in setSingleBufferMode()
181 Return<void> QtiMapperExtensions::getFd(void *buffer, getFd_cb hidl_cb) { in getFd()
193 Return<void> QtiMapperExtensions::getWidth(void *buffer, getWidth_cb hidl_cb) { in getWidth()
205 Return<void> QtiMapperExtensions::getHeight(void *buffer, getHeight_cb hidl_cb) { in getHeight()
217 Return<void> QtiMapperExtensions::getFormat(void *buffer, getFormat_cb hidl_cb) { in getFormat()
277 Return<void> QtiMapperExtensions::getId(void *buffer, getId_cb hidl_cb) { in getId()
301 Return<void> QtiMapperExtensions::getSize(void *buffer, getSize_cb hidl_cb) { in getSize()
[all …]
/aosp12/packages/modules/StatsD/framework/test/src/android/util/
H A DStatsEventTest.java54 final ByteBuffer buffer = in testNoFields() local
101 final ByteBuffer buffer = in testOnlyAtomId() local
148 final ByteBuffer buffer = in testIntBooleanIntInt() local
217 final ByteBuffer buffer = in testStringFloatByteArray() local
281 final ByteBuffer buffer = in testAttributionChainLong() local
351 final ByteBuffer buffer = in testKeyValuePairs() local
445 final ByteBuffer buffer = in testSingleAnnotations() local
529 final ByteBuffer buffer = in testAtomIdAnnotations() local
614 final ByteBuffer buffer = in testSetAtomIdNotCalledImmediately() local
661 final ByteBuffer buffer = in testLargePulledEvent() local
[all …]

12345678910>>...88