Searched defs:buffer (Results 226 - 250 of 680) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/text/method/
H A DMultiTapKeyListener.java261 public Timeout(Editable buffer) { argument
262 mBuffer = buffer;
/frameworks/base/core/java/android/util/apk/
H A DZipUtils.java61 // end of the buffer for the EOCD record signature. Whenever we find a signature, we check
63 // exactly the remaining bytes in the buffer. The search is bounded because the maximum
104 // end of the buffer for the EOCD record signature. Whenever we find a signature, we check
106 // exactly the remaining bytes in the buffer. The search is bounded because the maximum
128 // No EoCD record found in the buffer
140 * buffer or {@code -1} if the record is not present.
152 // end of the buffer for the EOCD record signature. Whenever we find a signature, we check
154 // exactly the remaining bytes in the buffer. The search is bounded because the maximum
242 private static void assertByteOrderLittleEndian(ByteBuffer buffer) { argument
243 if (buffer
248 getUnsignedInt16(ByteBuffer buffer, int offset) argument
252 getUnsignedInt32(ByteBuffer buffer, int offset) argument
256 setUnsignedInt32(ByteBuffer buffer, int offset, long value) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_hardware_UsbRequest.cpp81 jbyteArray buffer, jint length, jboolean out)
89 if (buffer && length) {
90 request->buffer = malloc(length);
91 if (!request->buffer)
93 memset(request->buffer, 0, length);
95 // copy data from Java buffer to native buffer
96 env->GetByteArrayRegion(buffer, 0, length, (jbyte *)request->buffer);
99 request->buffer
80 android_hardware_UsbRequest_queue_array(JNIEnv *env, jobject thiz, jbyteArray buffer, jint length, jboolean out) argument
119 android_hardware_UsbRequest_dequeue_array(JNIEnv *env, jobject thiz, jbyteArray buffer, jint length, jboolean out) argument
138 android_hardware_UsbRequest_queue_direct(JNIEnv *env, jobject thiz, jobject buffer, jint length, jboolean out) argument
170 android_hardware_UsbRequest_queue(JNIEnv *env, jobject thiz, jobject buffer, jint offset, jint length) argument
[all...]
H A Dandroid_os_MemoryFile.cpp74 jobject fileDescriptor, jlong address, jbyteArray buffer, jint srcOffset, jint destOffset,
84 env->SetByteArrayRegion(buffer, destOffset, count, (const jbyte *)address + srcOffset);
93 jobject fileDescriptor, jlong address, jbyteArray buffer, jint srcOffset, jint destOffset,
103 env->GetByteArrayRegion(buffer, srcOffset, count, (jbyte *)address + destOffset);
73 android_os_MemoryFile_read(JNIEnv* env, jobject clazz, jobject fileDescriptor, jlong address, jbyteArray buffer, jint srcOffset, jint destOffset, jint count, jboolean unpinned) argument
92 android_os_MemoryFile_write(JNIEnv* env, jobject clazz, jobject fileDescriptor, jlong address, jbyteArray buffer, jint srcOffset, jint destOffset, jint count, jboolean unpinned) argument
H A Dandroid_view_TextureView.cpp74 static inline SkImageInfo convertPixelFormat(const ANativeWindow_Buffer& buffer) { argument
77 switch (buffer.format) {
97 return SkImageInfo::Make(buffer.width, buffer.height, colorType, alphaType,
144 ANativeWindow_Buffer buffer; local
157 int32_t status = native_window_lock(window.get(), &buffer, &rect);
160 ssize_t bytesCount = buffer.stride * bytesPerPixel(buffer.format);
163 bitmap.setInfo(convertPixelFormat(buffer), bytesCount);
165 if (buffer
[all...]
H A Dcom_android_internal_os_FuseAppLoop.cpp64 const jbyteArray buffer = static_cast<jbyteArray>(mEnv->CallObjectMethod( variable
67 if (buffer == nullptr) {
72 new LocalBytes(mEnv, buffer))));
94 const void* buffer) override {
102 mEnv->SetByteArrayRegion(javaBuffer, 0, size, static_cast<const jbyte*>(buffer));
/frameworks/base/libs/androidfw/
H A DZipFileRO.cpp176 * Copy the entry's filename to the buffer.
178 int ZipFileRO::getEntryFileName(ZipEntryRO entry, char* buffer, size_t bufLen) argument
189 memcpy(buffer, zipEntry->name.name, requiredSize - 1);
190 buffer[requiredSize - 1] = '\0';
221 * Uncompress an entry, in its entirety, into the provided output buffer.
226 bool ZipFileRO::uncompressEntry(ZipEntryRO entry, void* buffer, size_t size) const argument
230 (uint8_t*) buffer, size);
/frameworks/base/libs/hwui/hwui/
H A DBitmap.h119 Bitmap(GraphicBuffer* buffer, const SkImageInfo& info);
145 GraphicBuffer* buffer; member in struct:android::Bitmap::__anon1236::__anon1240
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/
H A Daccessorychat.c39 char buffer[16384]; local
41 ret = usb_device_bulk_transfer(sDevice, endpoint, buffer, sizeof(buffer), 1000);
45 fwrite(buffer, 1, ret, stdout);
59 char buffer[16384]; local
60 char *line = fgets(buffer, sizeof(buffer), stdin);
/frameworks/base/libs/usb/tests/accessorytest/
H A Dhid.c51 char buffer[4096]; local
109 ret = read(fd, buffer, sizeof(buffer));
116 ACCESSORY_SEND_HID_EVENT, id, 0, buffer, ret, 1000);
H A Dusb.c49 char buffer[16384]; local
51 ret = usb_device_bulk_transfer(current_device, read_ep, buffer, sizeof(buffer), 1000);
55 fwrite(buffer, 1, ret, stdout);
68 char buffer[16384]; local
69 char *line = fgets(buffer, sizeof(buffer), stdin);
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DSimpleFrame.java110 public void setData(ByteBuffer buffer, int offset, int length) { argument
112 setGenericObjectValue(ByteBuffer.wrap(buffer.array(), offset, length));
H A DVertexFrame.java88 public void setData(ByteBuffer buffer, int offset, int length) { argument
90 byte[] bytes = buffer.array();
/frameworks/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/
H A DBluetoothMidiDevice.java203 public void writePacket(byte[] buffer, int count) { argument
209 System.arraycopy(buffer, 0, writeBuffer, 0, count);
/frameworks/base/media/tests/audiotests/
H A Dshared_mem_test.cpp88 Generate(smpBuf, BUF_SZ, amplitude, phi, dPhi); // fill buffer
130 * Generate a mono buffer
134 void AudioTrackTest::Generate(short *buffer, long bufferSz, long amplitude, unsigned long &phi, long dPhi) argument
136 // fill buffer
138 buffer[i0] = ComputeSine( amplitude, phi);
/frameworks/base/packages/PrintSpooler/jni/
H A Dcom_android_printspooler_util_BitmapSerializeUtils.cpp29 static bool writeAllBytes(const int fd, void* buffer, const size_t byteCount) { argument
30 char* writeBuffer = static_cast<char*>(buffer);
39 "Error writing to buffer: %d", errno);
48 static bool readAllBytes(const int fd, void* buffer, const size_t byteCount) { argument
49 char* readBuffer = static_cast<char*>(buffer);
62 "Error reading from buffer: %d", errno);
/frameworks/base/services/net/java/android/net/netlink/
H A DNetlinkConstants.java62 public static String hexify(ByteBuffer buffer) { argument
63 if (buffer == null) { return "(null)"; }
65 buffer.array(), buffer.position(), buffer.remaining());
/frameworks/base/services/net/java/android/net/util/
H A DConnectivityPacketSummary.java48 public static String summarize(byte[] hwaddr, byte[] buffer) { argument
49 return summarize(hwaddr, buffer, buffer.length);
54 public static String summarize(byte[] hwaddr, byte[] buffer, int length) { argument
56 if (buffer == null) return null;
57 length = Math.min(length, buffer.length);
58 return (new ConnectivityPacketSummary(hwaddr, buffer, length)).toString();
61 private ConnectivityPacketSummary(byte[] hwaddr, byte[] buffer, int length) { argument
63 mBytes = buffer;
/frameworks/base/tools/aapt2/compile/
H A DPngChunkFilter.cpp82 bool PngChunkFilter::ConsumeWindow(const void** buffer, size_t* len) { argument
86 *buffer = data_.data() + window_start_;
94 bool PngChunkFilter::Next(const void** buffer, size_t* len) { argument
100 if (ConsumeWindow(buffer, len)) {
158 if (ConsumeWindow(buffer, len)) {
/frameworks/compile/mclinker/lib/Target/AArch64/
H A DAArch64GOT.cpp119 uint64_t* buffer = reinterpret_cast<uint64_t*>(pRegion.begin()); local
123 for (iterator it = begin(), ie = end(); it != ie; ++it, ++buffer) {
125 *buffer = static_cast<uint64_t>(got->getValue());
H A DAArch64PLT.cpp151 unsigned char* buffer = pRegion.begin(); local
152 memcpy(buffer,
162 memcpy(buffer + result, plt1->getValue(), AArch64PLT1::EntrySize);
/frameworks/compile/mclinker/lib/Target/ARM/
H A DARMPLT.cpp145 unsigned char* buffer = pRegion.begin(); local
146 memcpy(buffer, llvm::cast<ARMPLT0>((*it)).getValue(), ARMPLT0::EntrySize);
154 memcpy(buffer + result, plt1->getValue(), ARMPLT1::EntrySize);
/frameworks/compile/mclinker/lib/Target/Mips/
H A DMipsPLT.cpp82 unsigned char* buffer = pRegion.begin(); local
83 memcpy(buffer, llvm::cast<MipsPLT0>((*it)).getValue(), MipsPLT0::EntrySize);
90 memcpy(buffer + result, plta->getValue(), MipsPLTA::EntrySize);
/frameworks/native/libs/gui/
H A DBufferItem.cpp117 static void writeAligned(void*& buffer, size_t& size, T value) { argument
118 size -= FlattenableUtils::align<alignof(T)>(buffer);
119 FlattenableUtils::write(buffer, size, value);
123 void*& buffer, size_t& size, int*& fds, size_t& count) const {
131 uint32_t& flags = *static_cast<uint32_t*>(buffer);
134 FlattenableUtils::advance(buffer, size, sizeof(uint32_t));
138 status_t err = mGraphicBuffer->flatten(buffer, size, fds, count);
140 size -= FlattenableUtils::align<4>(buffer);
144 status_t err = mFence->flatten(buffer, size, fds, count);
146 size -= FlattenableUtils::align<4>(buffer);
122 flatten( void*& buffer, size_t& size, int*& fds, size_t& count) const argument
180 readAligned(const void*& buffer, size_t& size, T& value) argument
185 unflatten( void const*& buffer, size_t& size, int const*& fds, size_t& count) argument
[all...]
H A DStreamSplitter.cpp111 // If there are too many outstanding buffers, we block until a buffer is
126 // Acquire and detach the buffer from the input
130 "acquiring buffer from input failed (%d)", status);
132 ALOGV("acquired buffer %#" PRIx64 " from input",
137 "detaching buffer from input failed (%d)", status);
139 // Initialize our reference count for this buffer
149 // Attach and queue the buffer to each of the outputs
157 // buffer eventually, and move on to the next output
164 "attaching buffer to output failed (%d)", status);
172 // buffer eventuall
192 sp<GraphicBuffer> buffer; local
276 BufferTracker(const sp<GraphicBuffer>& buffer) argument
[all...]

Completed in 364 milliseconds

1234567891011>>