Home
last modified time | relevance | path

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

12345678910>>...39

/frameworks/base/core/java/android/text/method/
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()
70 protected boolean lineStart(TextView widget, Spannable buffer) { in lineStart()
75 protected boolean lineEnd(TextView widget, Spannable buffer) { in lineEnd()
[all …]
DArrowKeyMovementMethod.java33 private static boolean isSelecting(Spannable buffer) { in isSelecting()
38 private static int getCurrentLineTop(Spannable buffer, Layout layout) { in getCurrentLineTop()
51 protected boolean handleMovementKey(TextView widget, Spannable buffer, int keyCode, in handleMovementKey()
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()
133 protected boolean pageDown(TextView widget, Spannable buffer) { in pageDown()
157 protected boolean top(TextView widget, Spannable buffer) { in top()
[all …]
DBaseMovementMethod.java136 protected int getMovementMetaState(Spannable buffer, KeyEvent event) { in getMovementMetaState()
160 protected boolean handleMovementKey(TextView widget, Spannable buffer, in handleMovementKey()
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()
[all …]
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryablePrimitive.java64 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/base/tests/net/java/com/android/internal/util/
DRingBufferTest.java35 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DHSConnectionCapabilityElementTest.java48 private void appendProtocolPortTuple(ByteBuffer buffer, ProtocolPortTuple tuple) { in appendProtocolPortTuple()
61 ByteBuffer buffer = ByteBuffer.allocate(tuples.length * ProtocolPortTuple.RAW_BYTE_SIZE) in getTestBuffer() local
91 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE - 1); in parseBufferWithLessThanMinimumSize() local
106 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE + 1); in parseBufferWithIncompleteTupleBytes() local
121 ByteBuffer buffer = getTestBuffer(new ProtocolPortTuple[] {TEST_TUPLE1, TEST_TUPLE2}); in parseBufferWithTestData() local
DNAIRealmDataTest.java52 ByteBuffer buffer = ByteBuffer.wrap(NAIRealmDataTestUtil.TEST_REAML_WITH_UTF8_DATA_BYTES); in parseTruncatedBuffer() local
65 ByteBuffer buffer = ByteBuffer.wrap(NAIRealmDataTestUtil.TEST_REAML_WITH_UTF8_DATA_BYTES); in parseBufferWithUTF8EncodedNAIRealmData() local
77 ByteBuffer buffer = ByteBuffer.wrap( in parseBufferWithNonUTF8EncodedNAIRealmData() local
DVenueNameElementTest.java97 ByteBuffer buffer = ByteBuffer.wrap(getTestData(new String[] {TEST_VENUE_NAME1})); in parseTruncatedBuffer() local
111 ByteBuffer buffer = ByteBuffer.wrap(getTestData(new String[0])); in parseBufferWithEmptyVenueName() local
128 ByteBuffer buffer = ByteBuffer.wrap( in parseBufferWithValidVenueNames() local
145 ByteBuffer buffer = ByteBuffer.wrap(getTestData(new String[] {text})); in parseBufferWithMaxLengthVenueName() local
166 ByteBuffer buffer = ByteBuffer.wrap(getTestData(new String[] {text})); in parseBufferWithVenueNameLengthExceedMax() local
DANQPParserTest.java184 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE) in getHSWanMetricsPayload() local
279 ByteBuffer buffer = ByteBuffer.wrap(getVenueNamePayload(language, text)); in parseVenueNameElement() local
301 ByteBuffer buffer = ByteBuffer.wrap(new byte[] {(byte) ipAddressAvailability}); in parseIPAddressTypeAvailabilityElement() local
317 ByteBuffer buffer = ByteBuffer.wrap(getDomainNamePayload(testNames)); in parseDomainNameElement() local
334 ByteBuffer buffer = ByteBuffer.wrap(getRoamingConsortiumPayload(ois, oisLength)); in parseRoamingConsortium() local
351 ByteBuffer buffer = ByteBuffer.wrap(getNAIRealmPayload(testBytes)); in parseNAIRealmElement() local
371 ByteBuffer buffer = ByteBuffer.wrap(getThreeGPPNetworkPayload( in parseThreeGPPNetworkElement() local
385 ByteBuffer buffer = ByteBuffer.wrap( in parseNonHS20VendorSpecificElement() local
432 ByteBuffer buffer = ByteBuffer.wrap(getHSFriendlyNamePayload(language, text)); in parseHSFrendlyNameElement() local
459 ByteBuffer buffer = ByteBuffer.wrap(data); in parseHSWANMetricsElement() local
[all …]
DHSFriendlyNameElementTest.java99 ByteBuffer buffer = ByteBuffer.allocate(testData.length - 1); in parseBufferWithTruncatedByte() local
114 ByteBuffer buffer = ByteBuffer.allocate(testData.length); in parseBufferWithDefaultTestData() local
140 ByteBuffer buffer = ByteBuffer.allocate(testData.length); in parseBufferWithMaxLengthOperatoreName() local
164 ByteBuffer buffer = ByteBuffer.allocate(testData.length); in parseBufferWithOperatorNameLengthExceedMax() local
DHSOsuProvidersElementTest.java86 ByteBuffer buffer = ByteBuffer.wrap(getTestData(TEST_OSU_SSID_BYTES)); in parseTruncatedBuffer() local
100 ByteBuffer buffer = ByteBuffer.wrap(getTestData(invalidSsidBytes)); in parseBufferWithInvalidLength() local
112 ByteBuffer buffer = ByteBuffer.wrap(getTestData(TEST_OSU_SSID_BYTES)); in parseBufferWithTestData() local
DProtocolPortTupleTest.java47 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE) in getTestBuffer() local
74 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE - 1); in parseBufferWithIncompleteData() local
88 ByteBuffer buffer = getTestBuffer(TEST_PROTOCOL, TEST_PORT, TEST_STATUS); in parseBufferWithTestData() local
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
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()
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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
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
/frameworks/native/services/surfaceflinger/tests/unittests/mock/system/window/
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()
/frameworks/base/libs/hwui/renderthread/
DReliableSurface.cpp113 ANativeWindowBuffer* buffer = nullptr; in reserveNext() local
127 ANativeWindowBuffer* buffer = nullptr; in clearReservedBuffer() local
145 int ReliableSurface::cancelBuffer(ANativeWindowBuffer* buffer, int fenceFd) { in cancelBuffer()
157 int ReliableSurface::dequeueBuffer(ANativeWindowBuffer** buffer, int* fenceFd) { in dequeueBuffer()
181 int ReliableSurface::queueBuffer(ANativeWindowBuffer* buffer, int fenceFd) { in queueBuffer()
239 int ReliableSurface::hook_dequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer, in hook_dequeueBuffer()
244 int ReliableSurface::hook_cancelBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, in hook_cancelBuffer()
249 int ReliableSurface::hook_queueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, in hook_queueBuffer()
255 ANativeWindowBuffer** buffer) { in hook_dequeueBuffer_DEPRECATED()
274 ANativeWindowBuffer* buffer) { in hook_cancelBuffer_DEPRECATED()
[all …]
/frameworks/base/native/webview/plat_support/
Dgraphic_buffer_impl.cpp38 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/base/tools/aapt2/util/
DBigBuffer_test.cpp26 BigBuffer buffer(4); in TEST() local
33 BigBuffer buffer(16); in TEST() local
45 BigBuffer buffer(16); in TEST() local
52 BigBuffer buffer(16); in TEST() local
86 BigBuffer buffer(16); in TEST() local
/frameworks/base/core/jni/
Dandroid_hardware_HardwareBuffer.cpp63 explicit GraphicBufferWrapper(const sp<GraphicBuffer>& buffer) in GraphicBufferWrapper()
66 sp<GraphicBuffer> buffer; member in GraphicBufferWrapper
86 sp<GraphicBuffer> buffer = new GraphicBuffer(width, height, pixelFormat, layers, in android_hardware_HardwareBuffer_create() local
101 sp<GraphicBuffer> buffer(graphicBufferForJavaObject(env, graphicBuffer)); 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
175 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer(nativeObject); in android_hardware_HardwareBuffer_write() local
[all …]
/frameworks/compile/mclinker/unittests/
DLEB128Test.cpp42 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/
DNativeWindow.cpp27 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/
DSerialPort.java89 public int read(ByteBuffer buffer) throws IOException { in read()
108 public void write(ByteBuffer buffer, int length) throws IOException { in write()
127 private native int native_read_array(byte[] buffer, int length) throws IOException; in native_read_array()
128 private native int native_read_direct(ByteBuffer buffer, int length) throws IOException; in native_read_direct()
129 private native void native_write_array(byte[] buffer, int length) throws IOException; in native_write_array()
130 private native void native_write_direct(ByteBuffer buffer, int length) throws IOException; in native_write_direct()
/frameworks/base/core/tests/coretests/src/android/util/
DStatsEventTest.java53 final ByteBuffer buffer = in testNoFields() local
108 final ByteBuffer buffer = in testIntBooleanIntInt() local
177 final ByteBuffer buffer = in testStringFloatByteArray() local
241 final ByteBuffer buffer = in testAttributionChainLong() local
311 final ByteBuffer buffer = in testKeyValuePairs() local
405 final ByteBuffer buffer = in testSingleAnnotations() local
463 private static byte[] getByteArrayFromByteBuffer(final ByteBuffer buffer) { in getByteArrayFromByteBuffer()
470 private static String getStringFromByteBuffer(final ByteBuffer buffer) { in getStringFromByteBuffer()
/frameworks/native/libs/nativewindow/
DAHardwareBuffer.cpp70 void AHardwareBuffer_acquire(AHardwareBuffer* buffer) { in AHardwareBuffer_acquire()
75 void AHardwareBuffer_release(AHardwareBuffer* buffer) { in AHardwareBuffer_release()
80 void AHardwareBuffer_describe(const AHardwareBuffer* buffer, in AHardwareBuffer_describe()
96 int AHardwareBuffer_lockAndGetInfo(AHardwareBuffer* buffer, uint64_t usage, in AHardwareBuffer_lockAndGetInfo()
151 int AHardwareBuffer_lock(AHardwareBuffer* buffer, uint64_t usage, in AHardwareBuffer_lock()
183 int AHardwareBuffer_lockPlanes(AHardwareBuffer* buffer, uint64_t usage, in AHardwareBuffer_lockPlanes()
231 int AHardwareBuffer_unlock(AHardwareBuffer* buffer, int32_t* fence) { in AHardwareBuffer_unlock()
241 int AHardwareBuffer_sendHandleToUnixSocket(const AHardwareBuffer* buffer, int socketFd) { in AHardwareBuffer_sendHandleToUnixSocket()
406 const AHardwareBuffer* buffer) { in AHardwareBuffer_getNativeHandle()
696 const GraphicBuffer* AHardwareBuffer_to_GraphicBuffer(const AHardwareBuffer* buffer) { in AHardwareBuffer_to_GraphicBuffer()
[all …]
/frameworks/base/libs/protoutil/tests/
DEncodedBuffer_test.cpp32 sp<EncodedBuffer> buffer = new EncodedBuffer(TEST_CHUNK_SIZE); in TEST() local
65 sp<EncodedBuffer> buffer = new EncodedBuffer(TEST_CHUNK_SIZE); in TEST() local
105 sp<EncodedBuffer> buffer = new EncodedBuffer(TEST_CHUNK_SIZE); in TEST() local
122 sp<EncodedBuffer> buffer = new EncodedBuffer(TEST_CHUNK_SIZE); in TEST() local
146 sp<EncodedBuffer> buffer = new EncodedBuffer(); in TEST() local

12345678910>>...39