Searched refs:buf (Results 1 - 25 of 108) 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.cpp38 char buf[JMSG_LENGTH_MAX]; local
39 (*cinfo->err->format_message) (cinfo, buf);
40 buf[JMSG_LENGTH_MAX - 1] = '\0'; // Force null terminator
42 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];
218 uint8_t* end = buf + len - 1;
220 buf[i] = 255;
221 buf[i - 1] = *--iter;
222 buf[
[all...]
/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/Launcher3/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;
/packages/apps/Mms/src/com/android/mms/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;
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
H A DCellBroadcastResources.java42 SpannableStringBuilder buf = new SpannableStringBuilder();
45 int start = buf.length();
46 buf.append(context.getString(R.string.delivery_time_heading));
47 int end = buf.length();
48 buf.setSpan(new StyleSpan(Typeface.BOLD), start, end, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
49 buf.append(" ");
50 buf.append(cbm.getDateString(context));
54 appendCmasAlertDetails(context, buf, cbm.getCmasWarningInfo());
57 return buf;
60 private static void appendCmasAlertDetails(Context context, SpannableStringBuilder buf, argument
93 appendMessageDetail(Context context, SpannableStringBuilder buf, int typeId, int valueId) argument
[all...]
/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/Mms/src/com/android/mms/util/
H A DBlobCache.java195 byte[] buf = mIndexHeader;
196 if (mIndexFile.read(buf) != INDEX_HEADER_SIZE) {
201 if (readInt(buf, IH_MAGIC) != MAGIC_INDEX_FILE) {
206 if (readInt(buf, IH_VERSION) != mVersion) {
211 mMaxEntries = readInt(buf, IH_MAX_ENTRIES);
212 mMaxBytes = readInt(buf, IH_MAX_BYTES);
213 mActiveRegion = readInt(buf, IH_ACTIVE_REGION);
214 mActiveEntries = readInt(buf, IH_ACTIVE_ENTRIES);
215 mActiveBytes = readInt(buf, IH_ACTIVE_BYTES);
217 int sum = readInt(buf, IH_CHECKSU
626 readInt(byte[] buf, int offset) argument
633 readLong(byte[] buf, int offset) argument
641 writeInt(byte[] buf, int offset, int value) argument
648 writeLong(byte[] buf, int offset, long value) argument
[all...]
/packages/apps/InCallUI/src/com/android/incallui/
H A DPostCharDialogFragment.java45 final StringBuilder buf = new StringBuilder();
46 buf.append(getResources().getText(R.string.wait_prompt_str));
47 buf.append(mPostDialStr);
50 builder.setMessage(buf.toString());
/packages/apps/Camera/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/apps/Camera2/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/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/
H A DDeleteFdnContactScreen.java101 StringBuilder buf = new StringBuilder();
103 buf.append("number='");
105 buf.append("tag='");
106 buf.append(mName);
107 buf.append("' AND number='");
109 buf.append(mNumber);
110 buf.append("' AND pin2='");
111 buf.append(mPin2);
112 buf.append("'");
117 mQueryHandler.startDelete(0, null, uri, buf
[all...]
/packages/apps/Mms/src/com/android/mms/ui/
H A DConversationListItem.java108 SpannableStringBuilder buf = new SpannableStringBuilder(from);
111 int before = buf.length();
112 buf.append(mContext.getResources().getString(R.string.message_count_format,
114 buf.setSpan(new ForegroundColorSpan(
116 before, buf.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE);
119 buf.append(mContext.getResources().getString(R.string.draft_separator));
120 int before = buf.length();
122 buf.append(mContext.getResources().getString(R.string.has_draft));
124 buf.setSpan(new TextAppearanceSpan(mContext, size, color), before,
125 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));

Completed in 610 milliseconds

12345