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

123456

/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/exif/
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.java155 byte buf[] = tag.getStringByte();
156 if (buf.length == tag.getComponentCount()) {
157 buf[buf.length - 1] = 0;
158 mByteBuffer.put(buf);
160 mByteBuffer.put(buf);
180 buf = new byte[tag.getComponentCount()];
181 tag.getBytes(buf);
182 mByteBuffer.put(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/apps/Mms/src/com/android/mms/exif/
H A DExifData.java231 byte[] buf = new byte[tag.getComponentCount()];
232 tag.getBytes(buf);
235 System.arraycopy(buf, 0, code, 0, 8);
239 return new String(buf, 8, buf.length - 8, "US-ASCII");
241 return new String(buf, 8, buf.length - 8, "EUC-JP");
243 return new String(buf, 8, buf.length - 8, "UTF-16");
H A DExifModifier.java157 byte buf[] = tag.getStringByte();
158 if (buf.length == tag.getComponentCount()) {
159 buf[buf.length - 1] = 0;
160 mByteBuffer.put(buf);
162 mByteBuffer.put(buf);
182 buf = new byte[tag.getComponentCount()];
183 tag.getBytes(buf);
184 mByteBuffer.put(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/apps/OMA-DM/engine/dmlib/api/native/
H A DdmtDataChunk.hpp129 SYNCML_DM_RET_STATUS_T SetChunkData(const UINT8 *buf, UINT32 dataSize);
/packages/apps/OMA-DM/engine/dmlib/dmengine/dm_persist/hdr/
H A DSyncML_DM_WBXMLWriter.H54 void operator delete(void* buf);
H A DSyncML_DM_Archive.H82 inline void operator delete(void* buf) argument
84 DmFreeMem(buf);
H A DSyncML_DM_FileHandle.H109 inline void operator delete(void* buf) argument
111 DmFreeMem(buf);
126 UINT16 m_nBufPos; // reading operations required 2 int: buf size and pos
/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/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...]
/packages/apps/OMA-DM/engine/dmlib/dmtapi/native/src/
H A Ddmt.cc128 const UINT8 * buf,
137 if ( !buf || len <= 0 )
169 ret_status = DmProcessScriptData( buf ,(UINT32)len, isWBXML, oResultDoc);
184 const UINT8 * buf,
193 if ( !buf || len <= 0 )
222 ret_status = DmProcessScriptData( buf ,(UINT32)len, isWBXML, oResultDoc);
255 const UINT8 * buf,
265 if ( !buf || len <= 0 )
286 ret_status = DmBootstrap( buf ,(UINT32)len, isWBXML, isProcess, serverID);
355 const UINT8 *buf,
127 ProcessScript(const DmtPrincipal& principal, const UINT8 * buf, INT32 len, BOOLEAN isWBXML, DMString& oResult) argument
183 ProcessScript(const DmtPrincipal& principal, const UINT8 * buf, INT32 len, BOOLEAN isWBXML, DMVector<UINT8> & oResult) argument
254 Bootstrap(const DmtPrincipal& principal, const UINT8 * buf, INT32 len, BOOLEAN isWBXML, BOOLEAN isProcess, DMString & serverID) argument
353 ProcessNotification( const DmtPrincipal& principal, const UINT8 *buf, INT32 len, DmtNotification & notification) argument
[all...]
/packages/apps/OMA-DM/engine/dmlib/dmengine/dm_ua/hdr/
H A DdmConstraints.h111 * \param buf [in] - pointer on buffer to be freed
113 inline void operator delete(void* buf) argument
115 DmFreeMem(buf);
H A DdmMetaDataNode.h48 * \param buf [in] - pointer on buffer to be freed
50 inline void operator delete(void* buf) argument
52 DmFreeMem(buf);
/packages/apps/OMA-DM/engine/dmlib/dmtapi/native_async/hdr/
H A DdmtAsyncData.h59 inline void operator delete(void* buf) argument
61 DmFreeMem(buf);
116 DMBuffer buf; member in class:DMScriptMessage
121 const UINT8 * buf,
137 const UINT8 * buf,
153 const UINT8 * buf,
181 DMBuffer buf; member in class:DMProcessNotificationMessage
185 const UINT8 * buf,
/packages/apps/OMA-DM/engine/dmlib/tool-src/dmt_validate/com/mot/treetest/
H A DUtil.java176 StringBuffer buf = new StringBuffer(line2.length);
177 buf.append(line2, 0, i).append(newStr);
183 buf.append(line2, j, i - j).append(newStr);
187 buf.append(line2, j, line2.length - j);
188 return buf.toString();
/packages/apps/Camera2/src/com/android/camera/exif/
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/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
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/apps/TvSettings/Settings/src/com/android/tv/settings/util/
H A DCachedInputStream.java154 byte[] buf = mBufs.get(currentBuf);
158 int reads = in.read(buf, indexInBuf, toRead);
160 System.arraycopy(buf, indexInBuf, buffer, offset, reads);
188 byte[] buf = mBufs.get(currentBuf);
195 System.arraycopy(buf, indexInBuf, buffer, offset, toRead);
233 byte[] buf = mBufs.get(currentBuf);
237 int reads = in.read(buf, indexInBuf, toRead);
/packages/apps/OMA-DM/engine/dmlib/dmtapi/native_async/src/
H A DdmtAsyncData.cc166 const UINT8 * buf,
176 this->buf.assign(buf,len);
177 if ( this->buf.getBuffer() == NULL )
188 const UINT8 * buf,
196 return DMScriptMessage::set(szPrincipal,buf,len,isWBXML,messageID,pUserData);
201 const UINT8 * buf,
211 return DMScriptMessage::set(szPrincipal,buf,len,isWBXML,messageID,pUserData);
276 const UINT8 * buf,
286 this->buf
165 set(CPCHAR szPrincipal, const UINT8 * buf, INT32 len, BOOLEAN isWBXML, UINT32 messageID, UINT32 pUserData) argument
187 set(CPCHAR szPrincipal, const UINT8 * buf, INT32 len, BOOLEAN isWBXML, DMT_CallbackProcessScript callback, UINT32 messageID, UINT32 pUserData) argument
200 set(CPCHAR szPrincipal, const UINT8 * buf, INT32 len, BOOLEAN isWBXML, BOOLEAN isProcess, DMT_CallbackBootstrap callback, UINT32 messageID, UINT32 pUserData) argument
275 set(CPCHAR szPrincipal, const UINT8 * buf, INT32 len, DMT_CallbackProcessNotification callback, UINT32 messageID, UINT32 pUserData) argument
[all...]
/packages/apps/Gallery2/jni_jpegstream/src/
H A Djpeg_reader.h73 void formatPixels(uint8_t* buf, int32_t len);
H A Djpeg_writer.h69 void formatPixels(uint8_t* buf, int32_t len);
/packages/apps/OMA-DM/engine/dmlib/dmengine/dm_transport/hdr/
H A Ddm_tpt_connection.H.contrib112 inline void operator delete(void* buf)
114 DmFreeMem(buf);
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/
H A DPairingUtils.java195 final byte[] buf = msg.array();
198 return new String(buf, pos, len);

Completed in 5338 milliseconds

123456