Searched defs:buf (Results 1 - 25 of 26) sorted by relevance

12

/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/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
H A DByteBufferInputStream.java26 public ByteBufferInputStream(ByteBuffer buf) { argument
27 mBuf = buf;
H A DExifTag.java332 byte[] buf = value.getBytes(US_ASCII);
333 byte[] finalBuf = buf;
334 if (buf.length > 0) {
335 finalBuf = (buf[buf.length - 1] == 0 || mDataType == TYPE_UNDEFINED) ? buf : Arrays
336 .copyOf(buf, buf.length + 1);
836 protected void getBytes(byte[] buf) { argument
837 getBytes(buf,
850 getBytes(byte[] buf, int offset, int length) argument
[all...]
/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);
H A Dndfdic.c205 NJ_CHAR buf[NJ_MAX_LEN + NJ_TERM_LEN]; local
210 size = sizeof(buf);
211 stroke = buf;
250 if (nj_strncmp(yomi, buf, ylen) == 0) {
/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/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/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/Gallery2/tests/src/com/android/gallery3d/exif/
H A DExifTagTest.java128 private void checkTypeByte(ExifTag tag, byte[] buf) { argument
130 assertFalse("\nTag: " + tag.toString(), tag.setValue(buf)
/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/Nfc/nxp/jni/
H A Dcom_android_nfc_NativeP2pDevice.cpp274 uint8_t *buf; local
293 buf = (uint8_t *)e->GetByteArrayElements(data, NULL);
298 transceive_info.sSendData.buffer = buf; //+ offset;
361 jbyteArray buf = NULL; local
399 buf = e->NewByteArray(data->length);
400 e->SetByteArrayRegion(buf, 0, data->length, (jbyte *)data->buffer);
405 return buf;
409 JNIEnv *e, jobject o, jbyteArray buf)
429 data.length = (uint32_t)e->GetArrayLength(buf);
430 data.buffer = (uint8_t *)e->GetByteArrayElements(buf, NUL
408 com_android_nfc_NativeP2pDevice_doSend( JNIEnv *e, jobject o, jbyteArray buf) argument
[all...]
H A Dcom_android_nfc_NativeNfcSecureElement.cpp612 uint8_t *buf; local
634 buf = (uint8_t *)e->GetByteArrayElements(data, NULL);
641 transceive_info.cmd.MfCmd = (phNfc_eMifareCmdList_t)buf[0];
642 transceive_info.addr = (uint8_t)buf[1];
650 transceive_info.sSendData.buffer = buf + offset;
H A Dcom_android_nfc_NativeNfcTag.cpp182 jbyteArray buf = NULL; local
224 buf = e->NewByteArray(nfc_jni_ndef_rw.length);
225 e->SetByteArrayRegion(buf, 0, nfc_jni_ndef_rw.length,
232 return buf;
237 jobject o, jbyteArray buf)
253 nfc_jni_ndef_rw.length = (uint32_t)e->GetArrayLength(buf);
254 nfc_jni_ndef_rw.buffer = (uint8_t *)e->GetByteArrayElements(buf, NULL);
284 e->ReleaseByteArrayElements(buf, (jbyte *)nfc_jni_ndef_rw.buffer, JNI_ABORT);
699 // buf is the pointer to the JNI array and never overwritten,
702 uint8_t *buf local
236 com_android_nfc_NativeNfcTag_doWrite(JNIEnv *e, jobject o, jbyteArray buf) argument
[all...]
/packages/experimental/procstatlog/
H A Dprocstatlog.c73 char buf[4096]; local
81 int len = read(fd, buf, sizeof(buf));
90 while (len > 0 && isspace(buf[len - 1])) --len;
92 memcpy(data->value, buf, len);
106 char buf[8192]; local
110 int len = read(fd, buf, sizeof(buf) - 1);
116 buf[len] = '\0';
120 char *end = strstr(buf, terminato
161 char buf[8192]; local
[all...]
/packages/inputmethods/PinyinIME/jni/share/
H A Ddictlist.cpp299 uint16 *buf = buf_ + start_pos_[i] + id_span * (i + 1); local
301 str_buf[len] = buf[len];
H A Ddictbuilder.cpp640 void DictBuilder::id_to_charbuf(unsigned char *buf, LemmaIdType id) { argument
641 if (NULL == buf) return;
643 (buf)[pos] = (unsigned char)(id >> (pos * 8));
1062 printf(".. son buf allocation number with only 1 son: %d\n", sonbufs_num1_);
1063 printf(".. son buf allocation number with more than 1 son: %d\n",
/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/Nfc/nci/src/com/android/nfc/dhimpl/
H A DNativeNfcTag.java332 private native boolean doWrite(byte[] buf); argument
334 public synchronized boolean writeNdef(byte[] buf) { argument
338 boolean result = doWrite(buf);
/packages/apps/Nfc/nxp/src/com/android/nfc/dhimpl/
H A DNativeNfcTag.java319 private native boolean doWrite(byte[] buf); argument
321 public synchronized boolean writeNdef(byte[] buf) { argument
325 boolean result = doWrite(buf);
/packages/apps/Bluetooth/jni/
H A Dcom_android_bluetooth_btservice_AdapterService.cpp434 static void dut_mode_recv_callback (uint16_t opcode, uint8_t *buf, uint8_t len) { argument
/packages/apps/Nfc/nci/jni/
H A DNativeNfcTag.cpp253 jbyteArray buf = NULL; local
275 buf = e->NewByteArray (sReadDataLen);
276 e->SetByteArrayRegion (buf, 0, sReadDataLen, (jbyte*) sReadData);
284 buf = e->NewByteArray (sReadDataLen);
285 e->SetByteArrayRegion (buf, 0, sReadDataLen, (jbyte*) sReadData);
296 return buf;
347 ** buf: Contains a NDEF message.
352 static jboolean nativeNfcTag_doWrite (JNIEnv* e, jobject, jbyteArray buf) argument
360 ScopedByteArrayRO bytes(e, buf);
764 ** buf
770 nativeNfcTag_doTransceiveStatus(uint8_t* buf, uint32_t bufLen) argument
835 uint8_t* buf = const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(&bytes[0])); // TODO: API bug; NFA_SendRawFrame should take const*! local
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DGLES11Canvas.java964 public int uploadBuffer(FloatBuffer buf) { argument
965 return uploadBuffer(buf, Float.SIZE / Byte.SIZE);
969 public int uploadBuffer(ByteBuffer buf) { argument
970 return uploadBuffer(buf, 1);
973 private int uploadBuffer(Buffer buf, int elementSize) { argument
978 mGL.glBufferData(GL11.GL_ARRAY_BUFFER, buf.capacity() * elementSize, buf,
H A DGLES20Canvas.java942 public int uploadBuffer(FloatBuffer buf) { argument
943 return uploadBuffer(buf, FLOAT_SIZE);
947 public int uploadBuffer(ByteBuffer buf) { argument
948 return uploadBuffer(buf, 1);

Completed in 2607 milliseconds

12