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

123

/packages/apps/OMA-DM/engine/dmlib/dmengine/dm_persist/src/
H A DSyncML_DM_WBXMLReader.cc583 SyncML_DM_WBXMLReader::operator delete (void *buf) { argument
584 DmFreeMem(buf);
/packages/apps/OMA-DM/engine/dmlib/dmengine/dm_security/src/
H A DGeneratePassword.cc403 char * buf; local
411 buf = & buffer;
412 length = DmStrlen((char *)buf);
416 tmpchar = (char)buf[i];
419 buf[j] = buf[j-1];
421 buf[j] = tmpchar;
/packages/apps/OMA-DM/engine/dmlib/dmengine/dm_transport/hdr/
H A Ddm_tpt_connection.H112 inline void operator delete(void* buf) argument
114 DmFreeMem(buf);
/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/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...]
H A DdmtData.cc130 SYNCML_DM_RET_STATUS_T DmtData::SetBinary(const UINT8 * buf, INT32 len) argument
132 if ( buf && len > 0 )
142 memcpy( m_pBinValue.get_data(), buf, len );
/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/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/OMA-DM/engine/dmlib/tool-src/bmdf_reader/
H A Dreader.cpp54 static int GetInt( const unsigned char* buf, int& nOffset ) argument
60 value |= (*(buf+nOffset)) << (i*8);
67 static int GetInt16( const unsigned char* buf, int& nOffset ) argument
73 value |= (*(buf+nOffset)) << (i*8);
81 static int GetPrintItem( const unsigned char* buf, int& nOffset, long nSize, int nLevel, const char* szParentURI ) argument
102 int nNameOffset = GetInt( buf, nOffset );
104 const unsigned char* szName = buf + nNameOffset;
113 int nType = GetInt16( buf, nOffset );
117 nIDOffset = GetInt( buf, nOffset );
119 const unsigned char* szID = nIDOffset ? buf
278 ProcessBuffer( FILE* f, unsigned char* buf, long nSize ) argument
310 unsigned char* buf = new unsigned char[nSize+1]; local
[all...]
/packages/apps/OMA-DM/engine/dmlib/tool-src/servercred/src/
H A DGeneratePassword.cc426 char * buf; local
434 buf = & buffer;
435 length = strlen((char *)buf);
439 tmpchar = (char)buf[i];
442 buf[j] = buf[j-1];
444 buf[j] = tmpchar;
/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/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/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/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/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/Launcher3/WallpaperPicker/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/Mms/src/com/android/mms/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/Mms/src/com/android/mms/util/
H A DBlobCache.java197 byte[] buf = mIndexHeader;
198 if (mIndexFile.read(buf) != INDEX_HEADER_SIZE) {
203 if (readInt(buf, IH_MAGIC) != MAGIC_INDEX_FILE) {
208 if (readInt(buf, IH_VERSION) != mVersion) {
213 mMaxEntries = readInt(buf, IH_MAX_ENTRIES);
214 mMaxBytes = readInt(buf, IH_MAX_BYTES);
215 mActiveRegion = readInt(buf, IH_ACTIVE_REGION);
216 mActiveEntries = readInt(buf, IH_ACTIVE_ENTRIES);
217 mActiveBytes = readInt(buf, IH_ACTIVE_BYTES);
219 int sum = readInt(buf, IH_CHECKSU
628 readInt(byte[] buf, int offset) argument
635 readLong(byte[] buf, int offset) argument
643 writeInt(byte[] buf, int offset, int value) argument
650 writeLong(byte[] buf, int offset, long value) argument
[all...]
/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/
H A DNativeNfcTag.java344 private native boolean doWrite(byte[] buf); argument
346 public synchronized boolean writeNdef(byte[] buf) { argument
350 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.java332 private native boolean doWrite(byte[] buf); argument
334 public synchronized boolean writeNdef(byte[] buf) { argument
338 boolean result = doWrite(buf);
/packages/apps/OMA-DM/engine/jni/
H A DDMServiceMain.cc37 static void Dump(const char* buf, int size, boolean isBinary) argument
43 memcpy(szBuf, buf, size);
59 pos += ::snprintf(s + pos, (250 - pos), " %02x", (unsigned int)((unsigned char) buf[i]) );
67 pos += ::snprintf(s + pos, (250 - pos), "%c", (buf[i] > 31 ? buf[i] : '.') );
71 buf += nLine;
/packages/apps/Bluetooth/jni/
H A Dcom_android_bluetooth_btservice_AdapterService.cpp443 static void dut_mode_recv_callback (uint16_t opcode, uint8_t *buf, uint8_t len) { argument
/packages/apps/Nfc/nci/jni/
H A DNativeNfcManager.cpp51 extern void nativeNfcTag_doTransceiveStatus (tNFA_STATUS status, uint8_t * buf, uint32_t buflen);
748 uint8_t* buf = const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(&bytes[0])); local
750 tNFA_STATUS status = NFA_SendRawFrame (buf, bufLen, 0);
769 uint8_t* buf = const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(&bytes[0])); local
771 bool result = RoutingManager::getInstance().addAidRouting(buf, bufLen, route);
789 uint8_t* buf = const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(&bytes[0])); local
791 bool result = RoutingManager::getInstance().removeAidRouting(buf, bufLen);

Completed in 562 milliseconds

123