Searched refs:buf (Results 51 - 75 of 101) sorted by relevance

12345

/packages/apps/Messaging/src/com/android/messaging/mmslib/util/
H A DDrmConvertSession.java91 byte[] buf = new byte[size];
92 System.arraycopy(inBuffer, 0, buf, 0, size);
93 convertedStatus = mDrmClient.convertData(mConvertSessionId, buf);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/
H A DDataExporter.java174 final byte[] buf = new byte[32 * 1024];
177 int len = is.read(buf);
181 os.write(buf, 0, len);
/packages/services/Car/tools/bootio/
H A Dbootio_collector.cpp95 char buf[MAX_LINE], *open_paren, *close_paren; local
99 fgets(buf, MAX_LINE, file);
103 open_paren = strchr(buf, '(');
104 close_paren = strrchr(buf, ')');
116 char buf[MAX_LINE], *open_paren, *close_paren; local
120 fgets(buf, MAX_LINE, file);
124 open_paren = strchr(buf, '(');
125 close_paren = strrchr(buf, ')');
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DSecureAlbum.java98 final MediaItem[] buf = new MediaItem[end - start];
102 buf[index] = item;
107 for (int i = 0; i < buf.length; i++) {
108 result.add(buf[i]);
H A DLocationClustering.java69 final SmallItem[] buf = new SmallItem[total];
81 buf[index] = s;
89 SmallItem s = buf[i];
H A DTimeClustering.java102 final SmallItem[] buf = new SmallItem[total];
115 buf[index] = s;
121 if (buf[i] != null) {
122 items.add(buf[i]);
/packages/apps/Nfc/nci/jni/extns/pn54x/inc/
H A DphNxpExtns.h41 NFCSTATUS EXTNS_MfcCallBack (uint8_t *buf, uint32_t buflen);
/packages/apps/Camera2/src/com/android/camera/exif/
H A DExifOutputStream.java484 byte buf[] = tag.getStringByte();
485 if (buf.length == tag.getComponentCount()) {
486 buf[buf.length - 1] = 0;
487 dataOutputStream.write(buf);
489 dataOutputStream.write(buf);
507 buf = new byte[tag.getComponentCount()];
508 tag.getBytes(buf);
509 dataOutputStream.write(buf);
H A DExifParser.java560 byte[] buf = new byte[(int) numOfComp];
562 buf, 0, (int) numOfComp);
563 tag.setValue(buf);
682 byte buf[] = new byte[tag.getComponentCount()];
683 read(buf);
684 tag.setValue(buf);
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
H A DExifOutputStream.java484 byte buf[] = tag.getStringByte();
485 if (buf.length == tag.getComponentCount()) {
486 buf[buf.length - 1] = 0;
487 dataOutputStream.write(buf);
489 dataOutputStream.write(buf);
507 buf = new byte[tag.getComponentCount()];
508 tag.getBytes(buf);
509 dataOutputStream.write(buf);
H A DExifParser.java560 byte[] buf = new byte[(int) numOfComp];
562 buf, 0, (int) numOfComp);
563 tag.setValue(buf);
682 byte buf[] = new byte[tag.getComponentCount()];
683 read(buf);
684 tag.setValue(buf);
/packages/apps/Messaging/src/com/android/messaging/util/exif/
H A DExifOutputStream.java488 byte buf[] = tag.getStringByte();
489 if (buf.length == tag.getComponentCount()) {
490 buf[buf.length - 1] = 0;
491 dataOutputStream.write(buf);
493 dataOutputStream.write(buf);
511 buf = new byte[tag.getComponentCount()];
512 tag.getBytes(buf);
513 dataOutputStream.write(buf);
H A DExifParser.java562 byte[] buf = new byte[(int) numOfComp];
564 buf, 0, (int) numOfComp);
565 tag.setValue(buf);
684 byte buf[] = new byte[tag.getComponentCount()];
685 read(buf);
686 tag.setValue(buf);
/packages/apps/Nfc/nci/jni/
H A DNativeNfcTag.cpp264 jbyteArray buf = NULL; local
293 buf = e->NewByteArray (sReadDataLen);
294 e->SetByteArrayRegion (buf, 0, sReadDataLen, (jbyte*) sReadData);
302 buf = e->NewByteArray (sReadDataLen);
303 e->SetByteArrayRegion (buf, 0, sReadDataLen, (jbyte*) sReadData);
314 return buf;
365 ** buf: Contains a NDEF message.
370 static jboolean nativeNfcTag_doWrite (JNIEnv* e, jobject, jbyteArray buf) argument
378 ScopedByteArrayRO bytes(e, buf);
855 ** buf
861 nativeNfcTag_doTransceiveStatus(tNFA_STATUS status, uint8_t* buf, uint32_t bufLen) argument
942 uint8_t* buf = const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(&bytes[0])); // TODO: API bug; NFA_SendRawFrame should take const*! local
[all...]
H A DNativeNfcManager.cpp52 extern void nativeNfcTag_doTransceiveStatus (tNFA_STATUS status, uint8_t * buf, uint32_t buflen);
786 uint8_t* buf = const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(&bytes[0])); local
788 tNFA_STATUS status = NFA_SendRawFrame (buf, bufLen, 0);
809 uint8_t* buf = const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(&bytes[0])); local
811 return RoutingManager::getInstance().addAidRouting(buf, bufLen, route, aidInfo);
828 uint8_t* buf = const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(&bytes[0])); local
830 bool result = RoutingManager::getInstance().removeAidRouting(buf, bufLen);
867 uint8_t* buf = const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(&bytes[0])); local
869 int handle = RoutingManager::getInstance().registerT3tIdentifier(buf, bufLen);
/packages/apps/Launcher3/src/com/android/launcher3/testing/
H A DMemoryDumpActivity.java55 final byte[] buf = new byte[BUFSIZ];
70 while ( 0 < (len = is.read(buf, 0, BUFSIZ)) ) {
71 zos.write(buf, 0, len);
/packages/apps/Music/tests/src/com/android/music/functional/
H A DTestSongs.java91 byte[] buf = new byte[1024];
93 while ((len = in.read(buf)) > 0) {
94 out.write(buf, 0, len);
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DCalendarDebugActivity.java128 byte[] buf = new byte[4096];
131 int len = is.read(buf);
135 os.write(buf, 0, len);
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/
H A DExifParser.java519 byte[] buf = new byte[(int) numOfComp];
521 mDataAboveIfd0, (int) offset - DEFAULT_IFD0_OFFSET, buf, 0, (int) numOfComp);
522 tag.setValue(buf);
645 byte[] buf = new byte[tag.getComponentCount()];
646 read(buf);
647 tag.setValue(buf);
/packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/
H A DSystemUpdaterActivity.java274 byte[] buf = new byte[0x10000]; // 64k
276 while ((len = in.read(buf)) > 0) {
277 out.write(buf, 0, len);
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
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/experimental/RpcPerformance/src/com/android/rpc_performance/
H A DProviderPerfActivity.java291 byte[] buf = new byte[512];
294 raf.write(buf);
303 raf.read(buf);
321 byte[] buf = new byte[512];
323 for (int j = 0; j < buf.length; j++) buf[j] = (byte) (i + j);
326 raf.write(buf);
392 byte[] buf = new byte[100];
398 int readBytes = is.read(buf, 0, 100);
400 //value = new String(buf,
[all...]
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
H A DCharMatcher.java949 StringBuilder buf = new StringBuilder((int) (len * 1.5) + 16);
953 buf.append(string, oldpos, pos);
954 buf.append(replacement);
959 buf.append(string, oldpos, len);
960 return buf.toString();
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DGLES11Canvas.java962 public int uploadBuffer(FloatBuffer buf) { argument
963 return uploadBuffer(buf, Float.SIZE / Byte.SIZE);
967 public int uploadBuffer(ByteBuffer buf) { argument
968 return uploadBuffer(buf, 1);
971 private int uploadBuffer(Buffer buf, int elementSize) { argument
976 mGL.glBufferData(GL11.GL_ARRAY_BUFFER, buf.capacity() * elementSize, buf,
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
H A DDocumentsProviderHelper.java153 byte[] buf = null;
155 buf = Streams.readFully(in);
157 return buf;

Completed in 3732 milliseconds

12345