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

12

/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/
H A DNativeNfcTag.java330 private native boolean doWrite(byte[] buf); argument
332 public synchronized boolean writeNdef(byte[] buf) { argument
336 boolean result = doWrite(buf);
/packages/apps/Nfc/nxp/jni/
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/apps/Nfc/nxp/src/com/android/nfc/dhimpl/
H A DNativeNfcTag.java320 private native boolean doWrite(byte[] buf); argument
322 public synchronized boolean writeNdef(byte[] buf) { argument
326 boolean result = doWrite(buf);
/packages/inputmethods/PinyinIME/jni/share/
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/Bluetooth/jni/
H A Dcom_android_bluetooth_btservice_AdapterService.cpp435 static void dut_mode_recv_callback (uint16_t opcode, uint8_t *buf, uint8_t len) { argument
/packages/apps/Nfc/nci/jni/
H A DNativeNfcManager.cpp53 extern void nativeNfcTag_doTransceiveStatus (uint8_t * buf, uint32_t buflen);
767 uint8_t* buf = const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(&bytes[0])); local
769 tNFA_STATUS status = NFA_SendRawFrame (buf, bufLen, 0);
788 uint8_t* buf = const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(&bytes[0])); local
790 bool result = RoutingManager::getInstance().addAidRouting(buf, bufLen, route);
808 uint8_t* buf = const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(&bytes[0])); local
810 bool result = RoutingManager::getInstance().removeAidRouting(buf, bufLen);
H A DNativeNfcTag.cpp257 jbyteArray buf = NULL; local
279 buf = e->NewByteArray (sReadDataLen);
280 e->SetByteArrayRegion (buf, 0, sReadDataLen, (jbyte*) sReadData);
288 buf = e->NewByteArray (sReadDataLen);
289 e->SetByteArrayRegion (buf, 0, sReadDataLen, (jbyte*) sReadData);
300 return buf;
351 ** buf: Contains a NDEF message.
356 static jboolean nativeNfcTag_doWrite (JNIEnv* e, jobject, jbyteArray buf) argument
364 ScopedByteArrayRO bytes(e, buf);
781 ** buf
787 nativeNfcTag_doTransceiveStatus(uint8_t* buf, uint32_t bufLen) argument
861 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);
/packages/apps/Launcher3/src/com/android/gallery3d/glrenderer/
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);
/packages/apps/Camera2/src/com/android/camera/exif/
H A DExifInterface.java1040 ByteBuffer buf = file.getChannel().map(MapMode.READ_WRITE, 0, exifSize);
1044 ret = rewriteExif(buf, tags);
1060 * @param buf a ByteBuffer containing a jpeg file with existing exif tags to
1068 public boolean rewriteExif(ByteBuffer buf, Collection<ExifTag> tags) throws IOException { argument
1071 mod = new ExifModifier(buf, this);
2044 byte[] buf = new byte[1024];
2045 int ret = is.read(buf, 0, 1024);
2047 os.write(buf, 0, ret);
2048 ret = is.read(buf, 0, 1024);
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
H A DExifInterface.java1040 ByteBuffer buf = file.getChannel().map(MapMode.READ_WRITE, 0, exifSize);
1044 ret = rewriteExif(buf, tags);
1060 * @param buf a ByteBuffer containing a jpeg file with existing exif tags to
1068 public boolean rewriteExif(ByteBuffer buf, Collection<ExifTag> tags) throws IOException { argument
1071 mod = new ExifModifier(buf, this);
2044 byte[] buf = new byte[1024];
2045 int ret = is.read(buf, 0, 1024);
2047 os.write(buf, 0, ret);
2048 ret = is.read(buf, 0, 1024);
/packages/apps/Launcher3/src/com/android/gallery3d/exif/
H A DExifInterface.java1040 ByteBuffer buf = file.getChannel().map(MapMode.READ_WRITE, 0, exifSize);
1044 ret = rewriteExif(buf, tags);
1060 * @param buf a ByteBuffer containing a jpeg file with existing exif tags to
1068 public boolean rewriteExif(ByteBuffer buf, Collection<ExifTag> tags) throws IOException { argument
1071 mod = new ExifModifier(buf, this);
2044 byte[] buf = new byte[1024];
2045 int ret = is.read(buf, 0, 1024);
2047 os.write(buf, 0, ret);
2048 ret = is.read(buf, 0, 1024);
/packages/apps/Mms/src/com/android/mms/exif/
H A DExifInterface.java1040 ByteBuffer buf = file.getChannel().map(MapMode.READ_WRITE, 0, exifSize);
1044 ret = rewriteExif(buf, tags);
1060 * @param buf a ByteBuffer containing a jpeg file with existing exif tags to
1068 public boolean rewriteExif(ByteBuffer buf, Collection<ExifTag> tags) throws IOException { argument
1071 mod = new ExifModifier(buf, this);
2044 byte[] buf = new byte[1024];
2045 int ret = is.read(buf, 0, 1024);
2047 os.write(buf, 0, ret);
2048 ret = is.read(buf, 0, 1024);

Completed in 193 milliseconds

12