Searched defs:buffer (Results 251 - 275 of 765) sorted by relevance

<<11121314151617181920>>

/frameworks/base/core/java/android/app/backup/
H A DBlobBackupHelper.java199 byte[] buffer = new byte[4096];
201 while ((nRead = in.read(buffer)) > 0) {
202 inflated.write(buffer, 0, nRead);
218 private long checksum(byte[] buffer) { argument
219 if (buffer != null) {
222 ByteArrayInputStream bis = new ByteArrayInputStream(buffer);
/frameworks/base/core/java/android/database/
H A DAbstractWindowedCursor.java55 public void copyStringToBuffer(int columnIndex, CharArrayBuffer buffer) { argument
57 mWindow.copyStringToBuffer(mPos, columnIndex, buffer);
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryableArray.java61 public void marshal(T value, ByteBuffer buffer) { argument
64 marshalArrayElement(mComponentMarshaler, buffer, value, i);
69 public T unmarshal(ByteBuffer buffer) { argument
75 int remaining = buffer.remaining();
93 Object elem = mComponentMarshaler.unmarshal(buffer);
101 while (buffer.hasRemaining()) {
102 Object elem = mComponentMarshaler.unmarshal(buffer);
110 if (buffer.remaining() != 0) {
111 Log.e(TAG, "Trailing bytes (" + buffer.remaining() + ") left over after unpacking "
148 ByteBuffer buffer, Objec
147 marshalArrayElement(Marshaler<TElem> marshaler, ByteBuffer buffer, Object array, int index) argument
[all...]
H A DMarshalQueryableEnum.java59 public void marshal(T value, ByteBuffer buffer) { argument
63 buffer.putInt(enumValue);
69 buffer.put((byte)enumValue);
76 public T unmarshal(ByteBuffer buffer) { argument
81 enumValue = buffer.getInt();
85 enumValue = buffer.get() & UINT8_MASK;
/frameworks/base/core/java/android/os/
H A DFileBridge.java180 public void write(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
181 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
185 IoBridge.write(mClient, buffer, byteOffset, byteCount);
/frameworks/base/core/java/android/speech/tts/
H A DPlaybackSynthesisCallback.java88 // point it will write an additional buffer to the item - but we
105 // The AudioTrack buffer will be at least MIN_AUDIO_BUFFER_SIZE, so that should always be
106 // a safe buffer size to pass in.
168 public int audioAvailable(byte[] buffer, int offset, int length) { argument
169 if (DBG) Log.d(TAG, "audioAvailable(byte[" + buffer.length + "]," + offset + "," + length
173 throw new IllegalArgumentException("buffer is too large or of zero length (" +
195 System.arraycopy(buffer, offset, bufferCopy, 0, length);
/frameworks/base/core/java/android/text/method/
H A DArrowKeyMovementMethod.java33 private static boolean isSelecting(Spannable buffer) { argument
34 return ((MetaKeyKeyListener.getMetaState(buffer, MetaKeyKeyListener.META_SHIFT_ON) == 1) ||
35 (MetaKeyKeyListener.getMetaState(buffer, MetaKeyKeyListener.META_SELECTING) != 0));
38 private static int getCurrentLineTop(Spannable buffer, Layout layout) { argument
39 return layout.getLineTop(layout.getLineForOffset(Selection.getSelectionEnd(buffer)));
51 protected boolean handleMovementKey(TextView widget, Spannable buffer, int keyCode, argument
58 && MetaKeyKeyListener.getMetaState(buffer,
65 return super.handleMovementKey(widget, buffer, keyCode, movementMetaState, event);
69 protected boolean left(TextView widget, Spannable buffer) { argument
71 if (isSelecting(buffer)) {
79 right(TextView widget, Spannable buffer) argument
89 up(TextView widget, Spannable buffer) argument
99 down(TextView widget, Spannable buffer) argument
109 pageUp(TextView widget, Spannable buffer) argument
133 pageDown(TextView widget, Spannable buffer) argument
157 top(TextView widget, Spannable buffer) argument
167 bottom(TextView widget, Spannable buffer) argument
177 lineStart(TextView widget, Spannable buffer) argument
187 lineEnd(TextView widget, Spannable buffer) argument
198 leftWord(TextView widget, Spannable buffer) argument
207 rightWord(TextView widget, Spannable buffer) argument
215 home(TextView widget, Spannable buffer) argument
220 end(TextView widget, Spannable buffer) argument
225 onTouchEvent(TextView widget, Spannable buffer, MotionEvent event) argument
[all...]
H A DLinkMovementMethod.java32 * A movement method that traverses links in the text buffer and scrolls if necessary.
48 protected boolean handleMovementKey(TextView widget, Spannable buffer, int keyCode, argument
55 event.getRepeatCount() == 0 && action(CLICK, widget, buffer)) {
61 return super.handleMovementKey(widget, buffer, keyCode, movementMetaState, event);
65 protected boolean up(TextView widget, Spannable buffer) { argument
66 if (action(UP, widget, buffer)) {
70 return super.up(widget, buffer);
74 protected boolean down(TextView widget, Spannable buffer) { argument
75 if (action(DOWN, widget, buffer)) {
79 return super.down(widget, buffer);
83 left(TextView widget, Spannable buffer) argument
92 right(TextView widget, Spannable buffer) argument
100 action(int what, TextView widget, Spannable buffer) argument
204 onTouchEvent(TextView widget, Spannable buffer, MotionEvent event) argument
[all...]
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/java/com/android/internal/os/
H A DKernelUidCpuClusterTimeReader.java134 private boolean sumClusterTime(IntBuffer buffer, double[] clusterTime) { argument
139 int time = buffer.get();
152 * seen results while processing the buffer, while readAbsolute returns the absolute value read
153 * from the buffer without storing. So readImpl contains the common logic of the two, leaving
156 * @param processUid the callback function to process the uid entry in the buffer.
180 Slog.wtf(TAG, "Too few data left in the buffer: " + buf.remaining());
/frameworks/base/core/java/com/android/internal/util/
H A DBitUtils.java114 public static int getUint8(ByteBuffer buffer, int position) { argument
115 return uint8(buffer.get(position));
118 public static int getUint16(ByteBuffer buffer, int position) { argument
119 return uint16(buffer.getShort(position));
122 public static long getUint32(ByteBuffer buffer, int position) { argument
123 return uint32(buffer.getInt(position));
126 public static void put(ByteBuffer buffer, int position, byte[] bytes) { argument
127 final int original = buffer.position();
128 buffer.position(position);
129 buffer
[all...]
/frameworks/base/core/jni/android/graphics/
H A DUtils.cpp84 size_t AssetStreamAdaptor::read(void* buffer, size_t size) { argument
87 if (NULL == buffer) {
106 amount = fAsset->read(buffer, size);
/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_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/hwui/hwui/
H A DBitmap.h66 Bitmap(GraphicBuffer* buffer, const SkImageInfo& info);
104 * buffer that has no colorspace defined).
134 GraphicBuffer* buffer; member in struct:android::Bitmap::__anon1016::__anon1020
/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);

Completed in 349 milliseconds

<<11121314151617181920>>