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

/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/src/com/android/gallery3d/data/
H A DExif.java32 byte[] buf = new byte[8];
36 while (read(is, buf, 2) && (buf[0] & 0xFF) == 0xFF) {
37 int marker = buf[1] & 0xFF;
54 if (!read(is, buf, 2)) {
57 length = pack(buf, 0, 2, false);
66 if (!read(is, buf, 6)) return 0;
68 if (pack(buf, 0, 4, false) == 0x45786966 &&
69 pack(buf, 4, 2, false) == 0) {
154 private static boolean read(InputStream is, byte[] buf, in argument
[all...]
/packages/apps/Nfc/nci/jni/
H A DNativeP2pDevice.cpp54 static jboolean nativeP2pDeviceDoSend (JNIEnv* e, jobject o, jbyteArray buf) argument
H A DNativeSecureElement.cpp138 UINT8* buf = NULL; local
145 buf = (UINT8*) e->GetByteArrayElements (data, NULL);
148 ALOGD("%s: enter; handle=0x%X; buf len=%ld", __FUNCTION__, handle, buflen);
149 SecureElement::getInstance().transceive (buf, buflen, recvBuffer, recvBufferMaxSize, recvBufferActualSize, gGeneralTransceiveTimeout);
158 e->ReleaseByteArrayElements (data, (jbyte *) buf, JNI_ABORT);
H A DNativeLlcpConnectionlessSocket.cpp62 uint8_t* buf = NULL; local
73 buf = (uint8_t*) e->GetByteArrayElements (data, NULL);
77 status = NFA_P2pSendUI ((tNFA_HANDLE) handle, nsap, len, buf);
H A DNativeNfcTag.cpp251 jbyteArray buf = NULL; local
273 buf = e->NewByteArray (sReadDataLen);
274 e->SetByteArrayRegion (buf, 0, sReadDataLen, (jbyte*) sReadData);
283 buf = e->NewByteArray (sReadDataLen);
284 e->SetByteArrayRegion (buf, 0, sReadDataLen, (jbyte*) sReadData);
295 return buf;
346 ** buf: Contains a NDEF message.
351 static jboolean nativeNfcTag_doWrite (JNIEnv *e, jobject o, jbyteArray buf) argument
361 len = (UINT32) e->GetArrayLength (buf);
362 p_data = (UINT8*) e->GetByteArrayElements (buf, NUL
764 nativeNfcTag_doTransceiveStatus(uint8_t* buf, uint32_t bufLen) argument
810 uint8_t *buf = NULL; local
[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/tests/src/com/android/gallery3d/exif/
H A DExifTagTest.java68 private void checkTypeByte(ExifTag tag, byte[] buf) { argument
72 tag.setValue(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/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.cpp273 uint8_t *buf; local
292 buf = (uint8_t *)e->GetByteArrayElements(data, NULL);
297 transceive_info.sSendData.buffer = buf; //+ offset;
360 jbyteArray buf = NULL; local
398 buf = e->NewByteArray(data->length);
399 e->SetByteArrayRegion(buf, 0, data->length, (jbyte *)data->buffer);
404 return buf;
408 JNIEnv *e, jobject o, jbyteArray buf)
428 data.length = (uint32_t)e->GetArrayLength(buf);
429 data.buffer = (uint8_t *)e->GetByteArrayElements(buf, NUL
407 com_android_nfc_NativeP2pDevice_doSend( JNIEnv *e, jobject o, jbyteArray buf) argument
[all...]
H A Dcom_android_nfc_NativeNfcSecureElement.cpp613 uint8_t *buf; local
635 buf = (uint8_t *)e->GetByteArrayElements(data, NULL);
642 transceive_info.cmd.MfCmd = (phNfc_eMifareCmdList_t)buf[0];
643 transceive_info.addr = (uint8_t)buf[1];
651 transceive_info.sSendData.buffer = buf + offset;
H A Dcom_android_nfc_NativeNfcTag.cpp180 jbyteArray buf = NULL; local
222 buf = e->NewByteArray(nfc_jni_ndef_rw.length);
223 e->SetByteArrayRegion(buf, 0, nfc_jni_ndef_rw.length,
230 return buf;
235 jobject o, jbyteArray buf)
251 nfc_jni_ndef_rw.length = (uint32_t)e->GetArrayLength(buf);
252 nfc_jni_ndef_rw.buffer = (uint8_t *)e->GetByteArrayElements(buf, NULL);
282 e->ReleaseByteArrayElements(buf, (jbyte *)nfc_jni_ndef_rw.buffer, JNI_ABORT);
712 // buf is the pointer to the JNI array and never overwritten,
715 uint8_t *buf local
234 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.java331 private native boolean doWrite(byte[] buf); argument
333 public synchronized boolean writeNdef(byte[] buf) { argument
337 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/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
H A DExifTag.java1333 public void getBytes(byte[] buf) { argument
1334 getBytes(buf, 0, buf.length);
1340 * @param buf the byte array in which to store the bytes read.
1348 public void getBytes(byte[] buf, int offset, int length) { argument
1353 System.arraycopy(mValue, 0, buf, offset,
1365 byte buf[] = new byte[getComponentCount()];
1366 getBytes(buf);
1369 sbuilder.append(String.format("%02x", buf[i]));

Completed in 2176 milliseconds