/aosp12/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/ |
H A D | format_utils_test.cpp | 34 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 D | ScrollingMovementMethod.java | 30 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 D | ArrowKeyMovementMethod.java | 33 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 D | BaseMovementMethod.java | 252 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 …]
|
/aosp14/frameworks/base/core/java/android/text/method/ |
H A D | ScrollingMovementMethod.java | 30 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 D | ArrowKeyMovementMethod.java | 34 private static boolean isSelecting(Spannable buffer) { in isSelecting() 70 protected boolean left(TextView widget, Spannable buffer) { in left() 83 protected boolean right(TextView widget, Spannable buffer) { in right() 96 protected boolean up(TextView widget, Spannable buffer) { in up() 109 protected boolean down(TextView widget, Spannable buffer) { in down() 122 protected boolean pageUp(TextView widget, Spannable buffer) { in pageUp() 176 protected boolean top(TextView widget, Spannable buffer) { in top() 186 protected boolean bottom(TextView widget, Spannable buffer) { in bottom() 209 protected boolean lineEnd(TextView widget, Spannable buffer) { in lineEnd() 240 protected boolean home(TextView widget, Spannable buffer) { in home() [all …]
|
H A D | BaseMovementMethod.java | 259 protected boolean left(TextView widget, Spannable buffer) { in left() 271 protected boolean right(TextView widget, Spannable buffer) { in right() 283 protected boolean up(TextView widget, Spannable buffer) { in up() 295 protected boolean down(TextView widget, Spannable buffer) { in down() 307 protected boolean pageUp(TextView widget, Spannable buffer) { in pageUp() 319 protected boolean pageDown(TextView widget, Spannable buffer) { in pageDown() 331 protected boolean top(TextView widget, Spannable buffer) { in top() 343 protected boolean bottom(TextView widget, Spannable buffer) { in bottom() 367 protected boolean lineEnd(TextView widget, Spannable buffer) { in lineEnd() 391 protected boolean home(TextView widget, Spannable buffer) { in home() [all …]
|
/aosp12/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
H A D | byte_array_utils.h | 36 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 D | Flattenable.h | 44 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 …]
|
/aosp14/system/core/libutils/include/utils/ |
H A D | Flattenable.h | 44 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 D | MemoryCacheTest.cpp | 47 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 D | MemoryThreadCacheTest.cpp | 48 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 D | GrallocMapper.cpp | 68 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 D | VenueUrlElementTest.java | 108 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 …]
|
/aosp12/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
H A D | MarshalQueryablePrimitive.java | 64 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()
|
/aosp14/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
H A D | MarshalQueryablePrimitive.java | 64 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 D | buffer_test.cc | 24 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 D | android_cbor_test.cpp | 81 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 D | IGraphicBufferProducerFlattenables.cpp | 46 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/frameworks/base/libs/hwui/tests/unit/ |
H A D | CanvasOpTests.cpp | 65 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 …]
|
/aosp14/frameworks/base/libs/hwui/tests/unit/ |
H A D | CanvasOpTests.cpp | 74 CanvasOpBuffer buffer; in TEST() local 88 CanvasOpBuffer buffer; in TEST() local 128 CanvasOpBuffer buffer; in TEST() local 143 CanvasOpBuffer buffer; in TEST() local 159 CanvasOpBuffer buffer; in TEST() local 184 CanvasOpBuffer buffer; in TEST() local 202 CanvasOpBuffer buffer; in TEST() local 226 CanvasOpBuffer buffer; in TEST() local 241 CanvasOpBuffer buffer; in TEST() local 259 CanvasOpBuffer buffer; in TEST() local [all …]
|
/aosp12/packages/modules/Connectivity/tests/unit/java/com/android/internal/util/ |
H A D | RingBufferTest.java | 40 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
|
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
H A D | RingBufferTest.java | 35 RingBuffer<String> buffer = new RingBuffer<>(String.class, 100); in testEmptyRingBuffer() local 43 RingBuffer<String> buffer = new RingBuffer<>(String.class, -10); in testIncorrectConstructorArguments() local 49 RingBuffer<String> buffer = new RingBuffer<>(String.class, 0); in testIncorrectConstructorArguments() local 57 RingBuffer<String> buffer = new RingBuffer<>(String.class, 100); in testRingBufferWithNoWrapping() local 71 RingBuffer<String> buffer = new RingBuffer<>(String.class, 1); in testRingBufferWithCapacity1() local 92 RingBuffer<String> buffer = new RingBuffer<>(String.class, capacity); in testRingBufferWithWrapping() local 133 RingBuffer<DummyClass1> buffer = new RingBuffer<>(DummyClass1.class, capacity); in testGetNextSlot() local
|
/aosp12/frameworks/native/libs/vr/libpdx/private/pdx/rpc/ |
H A D | buffer_wrapper.h | 32 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 D | flatbuffers_serialization.cc | 23 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()
|