Searched refs:buf (Results 1 - 25 of 101) sorted by relevance

12345

/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/
H A DByteQueue.java26 private UnboundedFifoByteBuffer buf; field in class:ByteQueue
30 buf = new UnboundedFifoByteBuffer();
34 buf = new UnboundedFifoByteBuffer(initialCapacity);
39 buf.add(b);
43 return buf.remove();
47 return buf.size();
52 buf = new UnboundedFifoByteBuffer(initialCapacity);
54 buf = new UnboundedFifoByteBuffer();
58 return buf.iterator();
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/
H A DGroup.java58 StringBuffer buf = new StringBuffer();
59 buf.append(name);
60 buf.append(":");
62 buf.append(mailboxList.get(i).toString());
64 buf.append(",");
66 buf.append(";");
67 return buf.toString();
/packages/apps/Gallery2/jni_jpegstream/src/
H A Djerr_hook.cpp37 char buf[JMSG_LENGTH_MAX]; local
38 (*cinfo->err->format_message) (cinfo, buf);
39 buf[JMSG_LENGTH_MAX - 1] = '\0'; // Force null terminator
41 LOGE("%s\n", buf);
H A Djpeg_writer.cpp166 void JpegWriter::formatPixels(uint8_t* buf, int32_t len) { argument
169 uint8_t* d = buf;
173 for (int i = 0; i < len / 4; ++i, buf += 4) {
174 *d++ = buf[0];
175 *d++ = buf[1];
176 *d++ = buf[2];
183 *d++ = buf[3];
185 *d++ = buf[2];
188 for (int i = 1; i < len / 4; ++i, buf += 4) {
189 *d++ = buf[
[all...]
H A Djpeg_reader.cpp179 void JpegReader::formatPixels(uint8_t* buf, int32_t len) { argument
180 uint8_t *iter = buf;
188 c = buf[i + 0];
189 m = buf[i + 1];
190 y = buf[i + 2];
191 k = buf[i + 3];
219 buf[i] = 255;
220 buf[i - 1] = *--iter;
221 buf[i - 2] = *--iter;
222 buf[
[all...]
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
H A DByteArrayPool.java64 public void releaseChunk(byte[] buf) { argument
65 if (buf == null || buf.length != mChunkSize) {
70 mCachedBuf.add(buf);
81 byte[] buf = bufs.get(i);
82 if (buf != null && buf.length == mChunkSize) {
/packages/apps/Camera2/src/com/android/camera/exif/
H A DExifReader.java72 byte buf[] = new byte[parser.getCompressedImageSize()];
73 if (buf.length == parser.read(buf)) {
74 exifData.setCompressedThumbnail(buf);
80 buf = new byte[parser.getStripSize()];
81 if (buf.length == parser.read(buf)) {
82 exifData.setStripBytes(parser.getStripIndex(), buf);
H A DByteBufferInputStream.java26 public ByteBufferInputStream(ByteBuffer buf) { argument
27 mBuf = buf;
H A DCountedDataInputStream.java126 byte buf[] = new byte[n];
127 readOrThrow(buf);
128 return new String(buf, "UTF8");
132 byte buf[] = new byte[n];
133 readOrThrow(buf);
134 return new String(buf, charset);
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
H A DExifReader.java72 byte buf[] = new byte[parser.getCompressedImageSize()];
73 if (buf.length == parser.read(buf)) {
74 exifData.setCompressedThumbnail(buf);
80 buf = new byte[parser.getStripSize()];
81 if (buf.length == parser.read(buf)) {
82 exifData.setStripBytes(parser.getStripIndex(), buf);
H A DByteBufferInputStream.java26 public ByteBufferInputStream(ByteBuffer buf) { argument
27 mBuf = buf;
H A DCountedDataInputStream.java126 byte buf[] = new byte[n];
127 readOrThrow(buf);
128 return new String(buf, "UTF8");
132 byte buf[] = new byte[n];
133 readOrThrow(buf);
134 return new String(buf, charset);
/packages/apps/Messaging/src/com/android/messaging/util/exif/
H A DExifReader.java73 byte buf[] = new byte[parser.getCompressedImageSize()];
74 if (buf.length == parser.read(buf)) {
75 exifData.setCompressedThumbnail(buf);
81 buf = new byte[parser.getStripSize()];
82 if (buf.length == parser.read(buf)) {
83 exifData.setStripBytes(parser.getStripIndex(), buf);
H A DByteBufferInputStream.java26 public ByteBufferInputStream(ByteBuffer buf) { argument
27 mBuf = buf;
H A DCountedDataInputStream.java130 byte buf[] = new byte[n];
131 readOrThrow(buf);
132 return new String(buf, "UTF8");
136 byte buf[] = new byte[n];
137 readOrThrow(buf);
138 return new String(buf, charset);
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
H A DCellBroadcastResources.java46 SpannableStringBuilder buf = new SpannableStringBuilder();
49 int start = buf.length();
50 buf.append(context.getString(R.string.delivery_time_heading));
51 int end = buf.length();
52 buf.setSpan(new StyleSpan(Typeface.BOLD), start, end, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
53 buf.append(" ");
54 buf.append(cbm.getDateString(context));
58 appendCmasAlertDetails(context, buf, cbm.getCmasWarningInfo());
61 return buf;
64 private static void appendCmasAlertDetails(Context context, SpannableStringBuilder buf, argument
97 appendMessageDetail(Context context, SpannableStringBuilder buf, int typeId, int valueId) argument
[all...]
H A DCellBroadcastListItem.java82 SpannableStringBuilder buf = new SpannableStringBuilder(body);
86 buf.setSpan(new StyleSpan(Typeface.BOLD), 0, buf.length(),
89 return buf;
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/
H A DExifReader.java65 byte[] buf = new byte[parser.getCompressedImageSize()];
66 if (buf.length != parser.read(buf)) {
71 buf = new byte[parser.getStripSize()];
72 if (buf.length != parser.read(buf)) {
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DBlobCache.java196 byte[] buf = mIndexHeader;
197 if (mIndexFile.read(buf) != INDEX_HEADER_SIZE) {
202 if (readInt(buf, IH_MAGIC) != MAGIC_INDEX_FILE) {
207 if (readInt(buf, IH_VERSION) != mVersion) {
212 mMaxEntries = readInt(buf, IH_MAX_ENTRIES);
213 mMaxBytes = readInt(buf, IH_MAX_BYTES);
214 mActiveRegion = readInt(buf, IH_ACTIVE_REGION);
215 mActiveEntries = readInt(buf, IH_ACTIVE_ENTRIES);
216 mActiveBytes = readInt(buf, IH_ACTIVE_BYTES);
218 int sum = readInt(buf, IH_CHECKSU
640 readInt(byte[] buf, int offset) argument
647 readLong(byte[] buf, int offset) argument
655 writeInt(byte[] buf, int offset, int value) argument
662 writeLong(byte[] buf, int offset, long value) argument
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/util/
H A DIOUtils.java46 byte[] buf = new byte[BUF_SIZE];
49 while ((r = from.read(buf)) != -1) {
50 to.write(buf, 0, r);
/packages/apps/Dialer/java/com/android/voicemail/impl/utils/
H A DIndentingPrintWriter.java95 final char[] buf = new char[len];
96 s.getChars(off, len - off, buf, 0);
97 write(buf, 0, len);
101 public void write(char[] buf, int offset, int count) { argument
109 char ch = buf[lineEnd++];
113 super.write(buf, lineStart, lineEnd - lineStart);
129 super.write(buf, lineStart, lineEnd - lineStart);
140 super.write(buf, lineStart, lineEnd - lineStart);
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic_renderer/
H A DRenderer.cpp49 char* buf = (char*) malloc(infoLen); local
50 if (buf) {
51 glGetShaderInfoLog(shader, infoLen, NULL, buf);
53 shaderType, buf);
54 free(buf);
98 char* buf = (char*) malloc(bufLength); local
99 if (buf)
101 glGetProgramInfoLog(program, bufLength, NULL, buf);
102 LOGE("Could not link program:\n%s\n", buf);
103 free(buf);
[all...]
/packages/services/Telephony/src/com/android/phone/settings/fdn/
H A DDeleteFdnContactScreen.java109 StringBuilder buf = new StringBuilder();
111 buf.append("number='");
113 buf.append("tag='");
114 buf.append(mName);
115 buf.append("' AND number='");
117 buf.append(mNumber);
118 buf.append("' AND pin2='");
119 buf.append(mPin2);
120 buf.append("'");
125 mQueryHandler.startDelete(0, null, uri, buf
[all...]
/packages/apps/Gallery2/jni/filters/
H A Dedge.c43 char buf[buf_len]; local
47 memset(buf, 0, buf_len * sizeof(char));
49 *(buf + j) = 255; // set initial alphas
100 *(buf + buf_row_ring + off) = ret;
101 *(buf + buf_row_ring + off + 1) = ret;
102 *(buf + buf_row_ring + off + 2) = ret;
103 *(buf + buf_row_ring + off + 3) = *(ptr + loc + 3);
110 memcpy((dst + row_stride * (j - 1)), (buf + buf_row_ring), row_stride * sizeof(char));
117 memcpy((dst + second_last_row), (buf + buf_row_ring), row_stride * sizeof(char));
/packages/apps/Bluetooth/jni/
H A Dcom_android_bluetooth_hidd.cpp242 uint32_t* buf = (uint32_t*)calloc(len, sizeof(uint32_t));
244 if (buf == NULL) return;
246 env->GetIntArrayRegion(in, 0, len, (jint*)buf);
248 out->service_type = (uint8_t)buf[0];
249 out->token_rate = buf[1];
250 out->token_bucket_size = buf[2];
251 out->peak_bandwidth = buf[3];
252 out->access_latency = buf[4];
253 out->delay_variation = buf[5];
255 free(buf);
329 uint8_t* buf; local
356 uint8_t* buf; local
[all...]

Completed in 3389 milliseconds

12345