/frameworks/base/core/java/android/text/method/ |
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() 70 protected boolean lineStart(TextView widget, Spannable buffer) { in lineStart() 75 protected boolean lineEnd(TextView widget, Spannable buffer) { in lineEnd() [all …]
|
D | ArrowKeyMovementMethod.java | 34 private static boolean isSelecting(Spannable buffer) { in isSelecting() 39 private static int getCurrentLineTop(Spannable buffer, Layout layout) { in getCurrentLineTop() 52 protected boolean handleMovementKey(TextView widget, Spannable buffer, int keyCode, in handleMovementKey() 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() 149 protected boolean pageDown(TextView widget, Spannable buffer) { in pageDown() 176 protected boolean top(TextView widget, Spannable buffer) { in top() [all …]
|
D | BaseMovementMethod.java | 137 protected int getMovementMetaState(Spannable buffer, KeyEvent event) { in getMovementMetaState() 161 protected boolean handleMovementKey(TextView widget, Spannable buffer, in handleMovementKey() 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() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
D | MarshalQueryablePrimitive.java | 64 public T unmarshal(ByteBuffer buffer) { in unmarshal() 74 public void marshal(T value, ByteBuffer buffer) { in marshal() 89 marshalPrimitive((Rational) value, buffer); in marshal() local 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()
|
/frameworks/native/libs/input/tests/ |
D | RingBuffer_test.cpp | 36 RingBuffer<int> buffer(/*capacity=*/3); in TEST() local 75 RingBuffer<std::unique_ptr<int>> buffer(/*capacity=*/2); in TEST() local 85 RingBuffer<int> buffer(/*count=*/3, /*value=*/10); in TEST() local 122 RingBuffer<int> buffer(/*capacity=*/2); in TEST() local 137 RingBuffer<int> buffer(/*capacity=*/2); in TEST() local 151 RingBuffer<int> buffer(/*capacity=*/3); in TEST() local 181 RingBuffer<int> buffer(/*capacity=*/2); in TEST() local 197 RingBuffer<int> buffer(/*capacity=*/2); in TEST() local
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
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
|
/frameworks/native/libs/gui/ |
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() 247 status_t IGraphicBufferProducer::DequeueBufferInput::unflatten(void const* buffer, size_t size) { in unflatten() 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() 331 status_t IGraphicBufferProducer::AttachBufferOutput::flatten(void* buffer, size_t size) const { in flatten() 341 status_t IGraphicBufferProducer::AttachBufferOutput::unflatten(void const* buffer, size_t size) { in unflatten() [all …]
|
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/ |
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() 116 explicit BufferWrapper(BufferType&& buffer) : buffer_(std::move(buffer)) {} 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() [all …]
|
/frameworks/base/libs/hwui/tests/unit/ |
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 …]
|
/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/async/ |
D | CircularByteBufferTest.java | 37 CircularByteBuffer buffer = new CircularByteBuffer(capacity); in writeBytes() local 79 CircularByteBuffer buffer = doTestReadWrite(accessor, 20, 5, 4); in doTestReadWriteWithFullBuffer() local 88 CircularByteBuffer buffer = doTestReadWrite(accessor, 31, 13, 7); in doTestReadWriteWithRollover() local 95 CircularByteBuffer buffer = new CircularByteBuffer(capacity); in doTestReadWrite() local 164 CircularByteBuffer buffer = new CircularByteBuffer(23); in readBytes_overflow() local 182 CircularByteBuffer buffer = new CircularByteBuffer(23); in writeBytes_overflow() local 198 private static int fillTestBytes(byte[] buffer, int pos, int len, int startValue) { in fillTestBytes() 207 byte[] buffer, int pos, int len, int startValue, int totalRead) { in checkTestBytes() 229 void writeBytes(CircularByteBuffer buffer, byte[] src, int pos, int len) { in writeBytes() 248 void readBytes(CircularByteBuffer buffer, byte[] dst, int pos, int len) { in readBytes()
|
/frameworks/native/services/surfaceflinger/tests/unittests/mock/system/window/ |
D | MockNativeWindow.cpp | 28 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()
|
/frameworks/base/core/jni/ |
D | android_hardware_HardwareBuffer.cpp | 62 explicit GraphicBufferWrapper(const sp<GraphicBuffer>& buffer) in GraphicBufferWrapper() 65 sp<GraphicBuffer> buffer; member in GraphicBufferWrapper 85 sp<GraphicBuffer> buffer = new GraphicBuffer(width, height, pixelFormat, layers, in android_hardware_HardwareBuffer_create() local 100 sp<GraphicBuffer> buffer(android_graphics_GraphicBuffer_getNativeGraphicsBuffer(env, in android_hardware_HardwareBuffer_createFromGraphicBuffer() local 140 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer(nativeObject); in android_hardware_HardwareBuffer_getWidth() local 146 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer(nativeObject); in android_hardware_HardwareBuffer_getHeight() local 152 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer(nativeObject); in android_hardware_HardwareBuffer_getFormat() local 159 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer(nativeObject); in android_hardware_HardwareBuffer_getLayers() local 165 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer(nativeObject); in android_hardware_HardwareBuffer_getUsage() local 170 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer(nativeObject); in android_hardware_HardwareBuffer_estimateSize() local [all …]
|
/frameworks/base/graphics/java/android/graphics/fonts/ |
D | FontFileUtil.java | 71 public static final int analyzeStyle(@NonNull ByteBuffer buffer, in analyzeStyle() 150 public static long getRevision(@NonNull ByteBuffer buffer, @IntRange(from = 0) int index) { in getRevision() 164 public static String getPostScriptName(@NonNull ByteBuffer buffer, in getPostScriptName() 181 public static int isPostScriptType1Font(@NonNull ByteBuffer buffer, in isPostScriptType1Font() 190 public static int isCollectionFont(@NonNull ByteBuffer buffer) { in isCollectionFont() 204 private static native long nGetFontRevision(@NonNull ByteBuffer buffer, in nGetFontRevision() 208 private static native String nGetFontPostScriptName(@NonNull ByteBuffer buffer, in nGetFontPostScriptName() 212 private static native int nIsPostScriptType1Font(@NonNull ByteBuffer buffer, in nIsPostScriptType1Font()
|
/frameworks/base/native/webview/plat_support/ |
D | graphic_buffer_impl.cpp | 38 GraphicBufferImpl* buffer = new GraphicBufferImpl( in Create() local 49 GraphicBufferImpl* buffer = reinterpret_cast<GraphicBufferImpl*>(buffer_id); in Release() local 55 GraphicBufferImpl* buffer = reinterpret_cast<GraphicBufferImpl*>(buffer_id); in MapStatic() local 61 GraphicBufferImpl* buffer = reinterpret_cast<GraphicBufferImpl*>(buffer_id); in UnmapStatic() local 67 GraphicBufferImpl* buffer = reinterpret_cast<GraphicBufferImpl*>(buffer_id); in GetNativeBufferStatic() local 73 GraphicBufferImpl* buffer = reinterpret_cast<GraphicBufferImpl*>(buffer_id); in GetStrideStatic() local
|
/frameworks/native/libs/nativewindow/ |
D | AHardwareBuffer.cpp | 73 void AHardwareBuffer_acquire(AHardwareBuffer* buffer) { in AHardwareBuffer_acquire() 78 void AHardwareBuffer_release(AHardwareBuffer* buffer) { in AHardwareBuffer_release() 83 void AHardwareBuffer_describe(const AHardwareBuffer* buffer, in AHardwareBuffer_describe() 99 int AHardwareBuffer_lockAndGetInfo(AHardwareBuffer* buffer, uint64_t usage, in AHardwareBuffer_lockAndGetInfo() 154 int AHardwareBuffer_lock(AHardwareBuffer* buffer, uint64_t usage, in AHardwareBuffer_lock() 186 int AHardwareBuffer_lockPlanes(AHardwareBuffer* buffer, uint64_t usage, in AHardwareBuffer_lockPlanes() 238 int AHardwareBuffer_unlock(AHardwareBuffer* buffer, int32_t* fence) { in AHardwareBuffer_unlock() 248 int AHardwareBuffer_sendHandleToUnixSocket(const AHardwareBuffer* buffer, int socketFd) { in AHardwareBuffer_sendHandleToUnixSocket() 407 int AHardwareBuffer_getId(const AHardwareBuffer* buffer, uint64_t* outId) { in AHardwareBuffer_getId() 421 auto buffer = sp<GraphicBuffer>::make(); in AHardwareBuffer_readFromParcel() local [all …]
|
/frameworks/native/libs/renderengine/ |
D | RenderEngine.cpp | 68 void RenderEngine::validateInputBufferUsage(const sp<GraphicBuffer>& buffer) { in validateInputBufferUsage() 73 void RenderEngine::validateOutputBufferUsage(const sp<GraphicBuffer>& buffer) { in validateOutputBufferUsage() 80 const std::shared_ptr<ExternalTexture>& buffer, in drawLayers() 92 const std::shared_ptr<ExternalTexture>& buffer) { in updateProtectedContext() 96 const std::shared_ptr<ExternalTexture>& buffer = layer.source.buffer.buffer; in updateProtectedContext() local
|
/frameworks/base/libs/androidfw/tests/ |
D | BigBuffer_test.cpp | 27 BigBuffer buffer(4); in TEST() local 34 BigBuffer buffer(16); in TEST() local 46 BigBuffer buffer(16); in TEST() local 53 BigBuffer buffer(16); in TEST() local 87 BigBuffer buffer(16); in TEST() local
|
/frameworks/compile/mclinker/unittests/ |
D | LEB128Test.cpp | 42 leb128::ByteType buffer[2]; in TEST_F() local 88 leb128::ByteType buffer[2]; in TEST_F() local 134 leb128::ByteType buffer[2]; in TEST_F() local 194 leb128::ByteType buffer[2]; in TEST_F() local 229 leb128::ByteType buffer[2]; in TEST_F() local 295 leb128::ByteType buffer[5]; in TEST_F() local 412 leb128::ByteType buffer[5]; in TEST_F() local 454 leb128::ByteType buffer[9]; in TEST_F() local 494 leb128::ByteType buffer[5]; in TEST_F() local 510 char buffer[5]; in TEST_F() local
|
/frameworks/native/services/surfaceflinger/CompositionEngine/mock/ |
D | NativeWindow.cpp | 27 static int forwardDequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer, int* fenceFd) { in forwardDequeueBuffer() 31 static int forwardCancelBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd) { in forwardCancelBuffer() 35 static int forwardQueueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd) { in forwardQueueBuffer() 89 static int forwardDequeueBufferDeprecated(ANativeWindow* window, ANativeWindowBuffer** buffer) { in forwardDequeueBufferDeprecated() 94 static int forwardCancelBufferDeprecated(ANativeWindow* window, ANativeWindowBuffer* buffer) { in forwardCancelBufferDeprecated() 98 static int forwardLockBufferDeprecated(ANativeWindow* window, ANativeWindowBuffer* buffer) { in forwardLockBufferDeprecated() 102 static int forwardQueueBufferDeprecated(ANativeWindow* window, ANativeWindowBuffer* buffer) { in forwardQueueBufferDeprecated()
|
/frameworks/base/core/java/android/hardware/ |
D | SerialPort.java | 90 public int read(ByteBuffer buffer) throws IOException { in read() 109 public void write(ByteBuffer buffer, int length) throws IOException { in write() 128 private native int native_read_array(byte[] buffer, int length) throws IOException; in native_read_array() 129 private native int native_read_direct(ByteBuffer buffer, int length) throws IOException; in native_read_direct() 130 private native void native_write_array(byte[] buffer, int length) throws IOException; in native_write_array() 131 private native void native_write_direct(ByteBuffer buffer, int length) throws IOException; in native_write_direct()
|
/frameworks/native/libs/ftl/ |
D | string_test.cpp | 31 ftl::to_chars_buffer_t<> buffer; in TEST() local 51 ftl::to_chars_buffer_t<T> buffer; in ToCharsTest() local 148 ftl::to_chars_buffer_t<decltype(x)> buffer; in TEST() local 153 ftl::to_chars_buffer_t<decltype(x)> buffer; in TEST() local 163 ftl::to_chars_buffer_t<decltype(x)> buffer; in TEST() local 168 ftl::to_chars_buffer_t<decltype(x)> buffer; in TEST() local 178 ftl::to_chars_buffer_t<decltype(x)> buffer; in TEST() local 182 ftl::to_chars_buffer_t<> buffer; in TEST() local
|
/frameworks/native/libs/vr/libpdx/fuzz/ |
D | serialization_fuzzer.cpp | 113 Payload buffer = {ENCODING_TYPE_UINT8, fdp.ConsumeIntegral<uint8_t>()}; in FuzzDeserializeUint8() local 120 Payload buffer = {ENCODING_TYPE_UINT16, fdp.ConsumeIntegral<uint8_t>(), in FuzzDeserializeUint16() local 128 Payload buffer = {ENCODING_TYPE_UINT32, fdp.ConsumeIntegral<uint8_t>(), in FuzzDeserializeUint32() local 138 Payload buffer = { in FuzzDeserializeUint64() local 150 Payload buffer = {ENCODING_TYPE_INT8, fdp.ConsumeIntegral<uint8_t>()}; in FuzzDeserializeInt8() local 157 Payload buffer = {ENCODING_TYPE_INT16, fdp.ConsumeIntegral<uint8_t>(), in FuzzDeserializeInt16() local 165 Payload buffer = {ENCODING_TYPE_INT32, fdp.ConsumeIntegral<uint8_t>(), in FuzzDeserializeInt32() local 175 Payload buffer = {ENCODING_TYPE_INT64, in FuzzDeserializeInt64() local 190 Payload buffer = {ENCODING_TYPE_FLOAT32, fdp.ConsumeIntegral<uint8_t>(), in FuzzDeserializeFloat32() local 204 Payload buffer = { in FuzzDeserializeFloat64() local [all …]
|
/frameworks/base/services/core/java/com/android/server/graphics/fonts/ |
D | OtfFontFileParser.java | 41 ByteBuffer buffer = mmap(file); in getPostScriptName() local 51 ByteBuffer buffer = mmap(file); in buildFontFileName() local 76 ByteBuffer buffer = mmap(file); in getRevision() local 86 ByteBuffer buffer = mmap(file); in tryToCreateTypeface() local 125 private static void unmap(ByteBuffer buffer) { in unmap()
|
/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/netlink/ |
D | StructInetDiagSockIdTest.java | 143 final ByteBuffer buffer = ByteBuffer.allocate(StructInetDiagSockId.STRUCT_SIZE); in testPackStructInetDiagSockIdWithIpv4() local 153 final ByteBuffer buffer = ByteBuffer.allocate(StructInetDiagSockId.STRUCT_SIZE); in testPackStructInetDiagSockIdWithIpv6() local 164 final ByteBuffer buffer = ByteBuffer.allocate(StructInetDiagSockId.STRUCT_SIZE); in testPackStructInetDiagSockIdWithIpv4IfIndexCookie() local 175 final ByteBuffer buffer = ByteBuffer.allocate(StructInetDiagSockId.STRUCT_SIZE); in testPackStructInetDiagSockIdWithIpv6IfIndexCookie() local 182 final ByteBuffer buffer = ByteBuffer.wrap(INET_DIAG_SOCKET_ID_IPV4_IF_COOKIE); in testParseStructInetDiagSockIdWithIpv4() local 195 final ByteBuffer buffer = ByteBuffer.wrap(INET_DIAG_SOCKET_ID_IPV6_IF_COOKIE); in testParseStructInetDiagSockIdWithIpv6() local
|
/frameworks/base/core/java/android/hardware/usb/ |
D | UsbRequest.java | 195 public boolean queue(ByteBuffer buffer, int length) { in queue() 211 /* package */ boolean queueIfConnectionOpen(ByteBuffer buffer, int length) { in queueIfConnectionOpen() 269 public boolean queue(@Nullable ByteBuffer buffer) { in queue() 285 /* package */ boolean queueIfConnectionOpen(@Nullable ByteBuffer buffer) { in queueIfConnectionOpen() 444 private native boolean native_queue(ByteBuffer buffer, int offset, int length); in native_queue() 445 private native boolean native_queue_array(byte[] buffer, int length, boolean out); in native_queue_array() 446 private native int native_dequeue_array(byte[] buffer, int length, boolean out); in native_dequeue_array() 447 private native boolean native_queue_direct(ByteBuffer buffer, int length, boolean out); in native_queue_direct()
|