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

1234

/packages/apps/Email/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/Email/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/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);
H A DExifData.java229 byte[] buf = new byte[tag.getComponentCount()];
230 tag.getBytes(buf);
233 System.arraycopy(buf, 0, code, 0, 8);
237 return new String(buf, 8, buf.length - 8, "US-ASCII");
239 return new String(buf, 8, buf.length - 8, "EUC-JP");
241 return new String(buf, 8, buf.length - 8, "UTF-16");
H A DExifModifier.java156 byte buf[] = tag.getStringByte();
157 if (buf.length == tag.getComponentCount()) {
158 buf[buf.length - 1] = 0;
159 mByteBuffer.put(buf);
161 mByteBuffer.put(buf);
181 buf = new byte[tag.getComponentCount()];
182 tag.getBytes(buf);
183 mByteBuffer.put(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...]
H A DCellBroadcastListItem.java80 SpannableStringBuilder buf = new SpannableStringBuilder(body);
84 buf.setSpan(new StyleSpan(Typeface.BOLD), 0, buf.length(),
87 return 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/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/Gallery2/tests/src/com/android/gallery3d/exif/
H A DUtil.java43 byte[] buf = new byte[1024];
44 while ((len = is.read(buf)) > -1) {
45 bos.write(buf, 0, len);
62 byte[] buf = new byte[tag.getComponentCount()];
63 tag.getBytes(buf);
70 sbuilder.append(buf[i]);
73 if (buf.length == 1) {
74 sbuilder.append(buf[0]);
76 for (int i = 0, n = buf.length; i < n; i++) {
77 byte code = buf[
[all...]
/packages/apps/Gallery2/tests/src/com/android/gallery3d/util/
H A DIntArrayTest.java44 int[] buf = new int[2];
45 int[] result = a.toArray(buf);
46 assertSame(buf, result);
54 result = b.toArray(buf);
/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/Gallery2/jni_mosaic/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/apps/Phone/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.java109 SpannableStringBuilder buf = new SpannableStringBuilder(from);
112 int before = buf.length();
113 buf.append(mContext.getResources().getString(R.string.message_count_format,
115 buf.setSpan(new ForegroundColorSpan(
117 before, buf.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE);
120 buf.append(mContext.getResources().getString(R.string.draft_separator));
121 int before = buf.length();
123 buf.append(mContext.getResources().getString(R.string.has_draft));
125 buf.setSpan(new TextAppearanceSpan(mContext, size, color), before,
126 buf
[all...]
/packages/apps/Gallery2/tests/src/com/android/gallery3d/common/
H A DBlobCacheTest.java37 byte[] buf = new byte[9];
38 assertEquals(0, BlobCache.readInt(buf, 0));
39 assertEquals(0, BlobCache.readLong(buf, 0));
40 buf[0] = 1;
41 assertEquals(1, BlobCache.readInt(buf, 0));
42 assertEquals(1, BlobCache.readLong(buf, 0));
43 buf[3] = 0x7f;
44 assertEquals(0x7f000001, BlobCache.readInt(buf, 0));
45 assertEquals(0x7f000001, BlobCache.readLong(buf, 0));
46 assertEquals(0x007f0000, BlobCache.readInt(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/Mms/tests/src/com/android/mms/util/
H A DSmileyParserUnitTests.java50 SpannableStringBuilder buf = new SpannableStringBuilder();
53 buf.append(parser.addSmileySpans(":-):-:-("));
55 ImageSpan[] spans = buf.getSpans(0, buf.length(), ImageSpan.class);
/packages/apps/Email/src/org/apache/commons/io/output/
H A DByteArrayOutputStream.java252 byte[] buf = getBuffer(i);
253 int c = Math.min(buf.length, remaining);
254 out.write(buf, 0, c);
277 byte[] buf = getBuffer(i);
278 int c = Math.min(buf.length, remaining);
279 System.arraycopy(buf, 0, newbuf, pos, c);
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
H A Dneapi.c70 NJ_EXTERN NJ_INT16 njx_get_candidate(NJ_CLASS *iwnn, NJ_RESULT *result, NJ_CHAR *buf, NJ_UINT16 buf_size) { argument
82 if ((buf == NULL) || (buf_size == 0)) {
88 ret = njd_get_candidate(iwnn, result, buf, buf_size);
100 NJ_EXTERN NJ_INT16 njx_get_stroke(NJ_CLASS *iwnn, NJ_RESULT *result, NJ_CHAR *buf, NJ_UINT16 buf_size) { argument
112 if ((buf == NULL) || (buf_size == 0)) {
118 ret = njd_get_stroke(iwnn, result, buf, buf_size);
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DClusterAlbum.java82 final MediaItem[] buf = new MediaItem[end - start];
86 buf[index] = item;
91 for (int i = 0; i < buf.length; i++) {
92 result.add(buf[i]);
H A DFilterTypeSet.java100 final Path[] buf = new Path[total];
108 buf[index] = path;
114 if (buf[i] != null) {
115 mPaths.add(buf[i]);

Completed in 1369 milliseconds

1234