Searched defs:buffer (Results 151 - 175 of 680) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryableString.java48 public void marshal(String value, ByteBuffer buffer) { argument
51 buffer.put(arr);
52 buffer.put(NUL); // metadata strings are NUL-terminated
63 public String unmarshal(ByteBuffer buffer) { argument
64 buffer.mark(); // save the current position
68 while (buffer.hasRemaining()) {
69 if (buffer.get() == NUL) {
87 buffer.reset(); // go back to the previously marked position
90 buffer.get(strBytes, /*dstOffset*/0, stringLength + 1); // including null character
/frameworks/base/core/java/android/speech/tts/
H A DSynthesisCallback.java83 * @param buffer The generated audio data. This method will not hold on to {@code buffer}, so the
85 * @param offset The offset into {@code buffer} where the audio data starts.
86 * @param length The number of bytes of audio data in {@code buffer}. This must be less than or
91 int audioAvailable(byte[] buffer, int offset, int length); argument
/frameworks/base/core/java/android/text/method/
H A DScrollingMovementMethod.java26 * A movement method that interprets movement keys by scrolling the text buffer.
30 protected boolean left(TextView widget, Spannable buffer) { argument
31 return scrollLeft(widget, buffer, 1);
35 protected boolean right(TextView widget, Spannable buffer) { argument
36 return scrollRight(widget, buffer, 1);
40 protected boolean up(TextView widget, Spannable buffer) { argument
41 return scrollUp(widget, buffer, 1);
45 protected boolean down(TextView widget, Spannable buffer) { argument
46 return scrollDown(widget, buffer, 1);
50 protected boolean pageUp(TextView widget, Spannable buffer) { argument
55 pageDown(TextView widget, Spannable buffer) argument
60 top(TextView widget, Spannable buffer) argument
65 bottom(TextView widget, Spannable buffer) argument
70 lineStart(TextView widget, Spannable buffer) argument
75 lineEnd(TextView widget, Spannable buffer) argument
80 home(TextView widget, Spannable buffer) argument
85 end(TextView widget, Spannable buffer) argument
90 onTouchEvent(TextView widget, Spannable buffer, MotionEvent event) argument
[all...]
H A DTouch.java88 public static boolean onTouchEvent(TextView widget, Spannable buffer, argument
94 ds = buffer.getSpans(0, buffer.length(), DragState.class);
97 buffer.removeSpan(ds[i]);
100 buffer.setSpan(new DragState(event.getX(), event.getY(),
106 ds = buffer.getSpans(0, buffer.length(), DragState.class);
109 buffer.removeSpan(ds[i]);
119 ds = buffer.getSpans(0, buffer
184 getInitialScrollX(TextView widget, Spannable buffer) argument
193 getInitialScrollY(TextView widget, Spannable buffer) argument
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DLineBreakBufferedWriter.java33 * A buffer to collect data until the buffer size is reached.
38 private char[] buffer; field in class:LineBreakBufferedWriter
41 * The index of the first free element in the buffer.
46 * The chunk size (=maximum buffer size) to use for this writer.
52 * Index of the last newline character discovered in the buffer. The writer will try
63 * Create a new linebreak-aware buffered writer with the given output and buffer
66 * @param bufferSize The maximum buffer size.
69 this(out, bufferSize, 16); // 16 is the default size of a StringBuilder buffer.
73 * Create a new linebreak-aware buffered writer with the given output, buffer
[all...]
/frameworks/base/core/jni/android/graphics/
H A DUtils.cpp52 size_t AssetStreamAdaptor::read(void* buffer, size_t size) { argument
55 if (NULL == buffer) {
74 amount = fAsset->read(buffer, size);
/frameworks/base/core/jni/
H A Dandroid_hardware_SerialPort.cpp169 android_hardware_SerialPort_read_array(JNIEnv *env, jobject thiz, jbyteArray buffer, jint length) argument
180 // copy data from native buffer to Java buffer
181 env->SetByteArrayRegion(buffer, 0, ret, buf);
191 android_hardware_SerialPort_read_direct(JNIEnv *env, jobject thiz, jobject buffer, jint length) argument
195 jbyte* buf = (jbyte *)env->GetDirectBufferAddress(buffer);
208 android_hardware_SerialPort_write_array(JNIEnv *env, jobject thiz, jbyteArray buffer, jint length) argument
216 env->GetByteArrayRegion(buffer, 0, length, buf);
225 android_hardware_SerialPort_write_direct(JNIEnv *env, jobject thiz, jobject buffer, jint length) argument
229 jbyte* buf = (jbyte *)env->GetDirectBufferAddress(buffer);
[all...]
H A Dandroid_nio_utils.cpp31 void* android::nio_getPointer(JNIEnv *_env, jobject buffer, jarray *array) { argument
39 gNioJNI.getBasePointerID, buffer);
46 gNioJNI.getBaseArrayID, buffer);
48 gNioJNI.getBaseArrayOffsetID, buffer);
/frameworks/base/libs/hwui/
H A DDeferredLayerUpdater.cpp132 sp<GraphicBuffer> buffer = mSurfaceTexture->getCurrentBuffer(); local
133 if (buffer != nullptr) {
134 // force filtration if buffer size != layer size
135 forceFilter = mWidth != static_cast<int>(buffer->getWidth())
136 || mHeight != static_cast<int>(buffer->getHeight());
H A DRenderBufferCache.cpp79 void RenderBufferCache::deleteBuffer(RenderBuffer* buffer) { argument
80 if (buffer) {
81 RENDER_BUFFER_LOGD("Deleted %s render buffer (%dx%d)",
82 RenderBuffer::formatName(buffer->getFormat()),
83 buffer->getWidth(), buffer->getHeight());
85 mSize -= buffer->getSize();
86 delete buffer;
98 RenderBuffer* buffer = nullptr; local
107 buffer
125 put(RenderBuffer* buffer) argument
[all...]
/frameworks/base/libs/hwui/renderstate/
H A DMeshState.cpp78 void MeshState::bindMeshBuffer(GLuint buffer) { argument
79 if (mCurrentBuffer != buffer) {
80 glBindBuffer(GL_ARRAY_BUFFER, buffer);
81 mCurrentBuffer = buffer;
83 // buffer has changed, so invalidate cached vertex pos/texcoord pointers
92 void MeshState::genOrUpdateMeshBuffer(GLuint* buffer, GLsizeiptr size, argument
94 if (!*buffer) {
95 glGenBuffers(1, buffer);
97 bindMeshBuffer(*buffer);
101 void MeshState::updateMeshBufferSubData(GLuint buffer, GLintpt argument
107 deleteMeshBuffer(GLuint buffer) argument
166 bindIndicesBuffer(const GLuint buffer) argument
[all...]
/frameworks/base/media/java/android/media/midi/
H A DMidiPortImpl.java62 * dest is buffer to pack into
97 public static int getPacketType(byte[] buffer, int bufferLength) { argument
98 return buffer[0];
103 * returns the offset of the MIDI message in packed buffer
105 public static int getDataOffset(byte[] buffer, int bufferLength) { argument
112 * returns size of MIDI data in packed buffer
114 public static int getDataSize(byte[] buffer, int bufferLength) { argument
115 // message length is total buffer length minus size of the timestamp
121 * unpacks timestamp from packed buffer
123 public static long getPacketTimestamp(byte[] buffer, in argument
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DNativeBuffer.java128 private native boolean nativeCopyTo(NativeBuffer buffer); argument
/frameworks/base/media/native/midi/
H A Dmidi.h49 uint8_t buffer[AMIDI_BUFFER_SIZE]; member in struct:__anon1298
139 * buffer Points to the array of bytes containing the data to send.
144 ssize_t AMIDI_send(AMIDI_InputPort *inputPort, uint8_t *buffer, ssize_t numBytes);
150 * buffer Points to the array of bytes containing the data to send.
156 ssize_t AMIDI_sendWithTimestamp(AMIDI_InputPort *inputPort, uint8_t *buffer,
/frameworks/base/sax/java/android/sax/
H A DRootElement.java170 public void characters(char[] buffer, int start, int length) argument
173 bodyBuilder.append(buffer, start, length);
/frameworks/base/services/core/java/com/android/server/am/
H A DNativeCrashListener.java175 static int readExactly(FileDescriptor fd, byte[] buffer, int offset, int numBytes) argument
179 int n = Os.read(fd, buffer, offset + totalRead, numBytes);
/frameworks/base/services/core/jni/
H A Dcom_android_server_UsbDeviceManager.cpp46 char buffer[256]; local
48 buffer[0] = 0;
49 ioctl(fd, cmd, buffer);
50 if (buffer[0]) {
51 jstring obj = env->NewStringUTF(buffer);
/frameworks/base/services/net/java/android/net/dhcp/
H A DDhcpAckPacket.java70 void finishPacket(ByteBuffer buffer) { argument
71 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_ACK);
72 addTlv(buffer, DHCP_SERVER_IDENTIFIER, mServerIdentifier);
73 addTlv(buffer, DHCP_LEASE_TIME, mLeaseTime);
77 addTlv(buffer, DHCP_RENEWAL_TIME,
81 addTlv(buffer, DHCP_SUBNET_MASK, mSubnetMask);
82 addTlv(buffer, DHCP_ROUTER, mGateways);
83 addTlv(buffer, DHCP_DOMAIN_NAME, mDomainName);
84 addTlv(buffer, DHCP_BROADCAST_ADDRESS, mBroadcastAddress);
85 addTlv(buffer, DHCP_DNS_SERVE
[all...]
/frameworks/base/telecomm/java/android/telecom/
H A DAudioState.java105 StringBuffer buffer = new StringBuffer();
107 listAppend(buffer, "EARPIECE");
110 listAppend(buffer, "BLUETOOTH");
113 listAppend(buffer, "WIRED_HEADSET");
116 listAppend(buffer, "SPEAKER");
119 return buffer.toString();
122 private static void listAppend(StringBuffer buffer, String str) { argument
123 if (buffer.length() > 0) {
124 buffer.append(", ");
126 buffer
[all...]
H A DCallAudioState.java152 StringBuffer buffer = new StringBuffer();
154 listAppend(buffer, "EARPIECE");
157 listAppend(buffer, "BLUETOOTH");
160 listAppend(buffer, "WIRED_HEADSET");
163 listAppend(buffer, "SPEAKER");
166 return buffer.toString();
207 private static void listAppend(StringBuffer buffer, String str) { argument
208 if (buffer.length() > 0) {
209 buffer.append(", ");
211 buffer
[all...]
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
H A DUsbHid.java45 public void generateDescriptor(ByteBuffer buffer) { argument
46 buffer.put(new byte[] {
92 buffer.put(collection);
94 buffer.put(new byte[] {
100 public void generateReport(ByteBuffer buffer, Contact[] contacts, int contactCount) { argument
102 buffer.put((byte)mReportId);
104 buffer.put((byte)contactCount);
109 buffer.put((byte)((contact.id << 2) | 0x03));
111 buffer.put((byte)contact.x).put((byte)(contact.x >> 8));
113 buffer
[all...]
/frameworks/base/tools/aapt2/util/
H A DBigBuffer.h46 std::unique_ptr<uint8_t[]> buffer; member in struct:aapt::BigBuffer::Block
101 * returns, buffer is empty.
103 void AppendBuffer(BigBuffer&& buffer);
126 * Returns a pointer to a buffer of the requested size.
127 * The buffer is zero-initialized.
162 inline void BigBuffer::AppendBuffer(BigBuffer&& buffer) { argument
163 std::move(buffer.blocks_.begin(), buffer.blocks_.end(),
165 size_ += buffer.size_;
166 buffer
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/libcore/io/
H A DBridgeBufferIterator.java31 public BridgeBufferIterator(long size, ByteBuffer buffer) { argument
33 mByteBuffer = buffer;
/frameworks/base/tools/streaming_proto/
H A DErrors.cpp57 char* buffer = new char[message_size+1]; local
58 vsnprintf(buffer, message_size, format, args);
59 Error error(filename, lineno, buffer);
60 delete[] buffer;
/frameworks/compile/mclinker/lib/Target/ARM/
H A DARMGOT.cpp116 uint32_t* buffer = reinterpret_cast<uint32_t*>(pRegion.begin()); local
120 for (iterator it = begin(), ie = end(); it != ie; ++it, ++buffer) {
122 *buffer = static_cast<uint32_t>(got->getValue());

Completed in 337 milliseconds

1234567891011>>