/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/decoder/ |
D | ByteQueue.java | 26 private UnboundedFifoByteBuffer buf; field in ByteQueue 30 buf = new UnboundedFifoByteBuffer(); in ByteQueue() 34 buf = new UnboundedFifoByteBuffer(initialCapacity); in ByteQueue() 39 buf.add(b); in enqueue() 43 return buf.remove(); in dequeue() 47 return buf.size(); in count() 52 buf = new UnboundedFifoByteBuffer(initialCapacity); in clear() 54 buf = new UnboundedFifoByteBuffer(); in clear() 58 return buf.iterator(); in iterator()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | BlobCache.java | 194 byte[] buf = mIndexHeader; in loadIndex() 195 if (mIndexFile.read(buf) != INDEX_HEADER_SIZE) { in loadIndex() 200 if (readInt(buf, IH_MAGIC) != MAGIC_INDEX_FILE) { in loadIndex() 205 if (readInt(buf, IH_VERSION) != mVersion) { in loadIndex() 210 mMaxEntries = readInt(buf, IH_MAX_ENTRIES); in loadIndex() 211 mMaxBytes = readInt(buf, IH_MAX_BYTES); in loadIndex() 212 mActiveRegion = readInt(buf, IH_ACTIVE_REGION); in loadIndex() 213 mActiveEntries = readInt(buf, IH_ACTIVE_ENTRIES); in loadIndex() 214 mActiveBytes = readInt(buf, IH_ACTIVE_BYTES); in loadIndex() 216 int sum = readInt(buf, IH_CHECKSUM); in loadIndex() [all …]
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/common/ |
D | BlobCacheTest.java | 37 byte[] buf = new byte[9]; in testReadIntLong() 38 assertEquals(0, BlobCache.readInt(buf, 0)); in testReadIntLong() 39 assertEquals(0, BlobCache.readLong(buf, 0)); in testReadIntLong() 40 buf[0] = 1; in testReadIntLong() 41 assertEquals(1, BlobCache.readInt(buf, 0)); in testReadIntLong() 42 assertEquals(1, BlobCache.readLong(buf, 0)); in testReadIntLong() 43 buf[3] = 0x7f; in testReadIntLong() 44 assertEquals(0x7f000001, BlobCache.readInt(buf, 0)); in testReadIntLong() 45 assertEquals(0x7f000001, BlobCache.readLong(buf, 0)); in testReadIntLong() 46 assertEquals(0x007f0000, BlobCache.readInt(buf, 1)); in testReadIntLong() [all …]
|
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/address/ |
D | Group.java | 58 StringBuffer buf = new StringBuffer(); in toString() local 59 buf.append(name); in toString() 60 buf.append(":"); in toString() 62 buf.append(mailboxList.get(i).toString()); in toString() 64 buf.append(","); in toString() 66 buf.append(";"); in toString() 67 return buf.toString(); in toString()
|
/packages/apps/Camera/jni/feature_mos/src/mosaic_renderer/ |
D | Renderer.cpp | 49 char* buf = (char*) malloc(infoLen); in loadShader() local 50 if (buf) { in loadShader() 51 glGetShaderInfoLog(shader, infoLen, NULL, buf); in loadShader() 53 shaderType, buf); in loadShader() 54 free(buf); in loadShader() 98 char* buf = (char*) malloc(bufLength); in createProgram() local 99 if (buf) in createProgram() 101 glGetProgramInfoLog(program, bufLength, NULL, buf); in createProgram() 102 LOGE("Could not link program:\n%s\n", buf); in createProgram() 103 free(buf); in createProgram()
|
/packages/inputmethods/LatinIME/native/src/ |
D | debug.h | 62 unsigned char *buf = (unsigned char*)malloc((1 + codesSize) * sizeof(*buf)); in printDebug() local 64 buf[codesSize] = 0; in printDebug() 66 buf[codesSize] = (unsigned char)codes[codesSize * MAX_PROXIMITY_CHARS]; in printDebug() 67 LOGI("%s, WORD = %s", tag, buf); in printDebug() 69 free(buf); in printDebug()
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | ConversationListItem.java | 107 SpannableStringBuilder buf = new SpannableStringBuilder(from); in formatMessage() local 110 int before = buf.length(); in formatMessage() 111 buf.append(mContext.getResources().getString(R.string.message_count_format, in formatMessage() 113 buf.setSpan(new ForegroundColorSpan( in formatMessage() 115 before, buf.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE); in formatMessage() 118 buf.append(mContext.getResources().getString(R.string.draft_separator)); in formatMessage() 119 int before = buf.length(); in formatMessage() 121 buf.append(mContext.getResources().getString(R.string.has_draft)); in formatMessage() 123 buf.setSpan(new TextAppearanceSpan(mContext, size, color), before, in formatMessage() 124 buf.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE); in formatMessage() [all …]
|
/packages/apps/Phone/src/com/android/phone/ |
D | DeleteFdnContactScreen.java | 102 StringBuilder buf = new StringBuilder(); in deleteContact() local 104 buf.append("number='"); in deleteContact() 106 buf.append("tag='"); in deleteContact() 107 buf.append(mName); in deleteContact() 108 buf.append("' AND number='"); in deleteContact() 110 buf.append(mNumber); in deleteContact() 111 buf.append("' AND pin2='"); in deleteContact() 112 buf.append(mPin2); in deleteContact() 113 buf.append("'"); in deleteContact() 118 mQueryHandler.startDelete(0, null, uri, buf.toString(), null); in deleteContact()
|
/packages/experimental/procstatlog/ |
D | procstatlog.c | 73 char buf[4096]; in read_data() local 81 int len = read(fd, buf, sizeof(buf)); in read_data() 90 while (len > 0 && isspace(buf[len - 1])) --len; in read_data() 92 memcpy(data->value, buf, len); in read_data() 106 char buf[8192]; in read_lines() local 110 int len = read(fd, buf, sizeof(buf) - 1); in read_lines() 116 buf[len] = '\0'; in read_lines() 120 char *end = strstr(buf, terminator); in read_lines() 127 for (line = strtok(buf, "\n"); in read_lines() 161 char buf[8192]; in read_proc_yaffs() local [all …]
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/util/ |
D | IntArrayTest.java | 44 int[] buf = new int[2]; in testIntArray() local 45 int[] result = a.toArray(buf); in testIntArray() 46 assertSame(buf, result); in testIntArray() 54 result = b.toArray(buf); in testIntArray()
|
/packages/apps/Settings/src/com/android/settings/ |
D | DateTimeSettings.java | 381 char[] buf = new char[9]; in formatOffset() local 382 buf[0] = 'G'; in formatOffset() 383 buf[1] = 'M'; in formatOffset() 384 buf[2] = 'T'; in formatOffset() 387 buf[3] = '-'; in formatOffset() 390 buf[3] = '+'; in formatOffset() 396 buf[4] = (char) ('0' + hours / 10); in formatOffset() 397 buf[5] = (char) ('0' + hours % 10); in formatOffset() 399 buf[6] = ':'; in formatOffset() 401 buf[7] = (char) ('0' + minutes / 10); in formatOffset() [all …]
|
/packages/apps/Nfc/jni/ |
D | com_android_nfc_NativeP2pDevice.cpp | 273 uint8_t *buf; in com_android_nfc_NativeP2pDevice_doTransceive() local 292 buf = (uint8_t *)e->GetByteArrayElements(data, NULL); in com_android_nfc_NativeP2pDevice_doTransceive() 297 transceive_info.sSendData.buffer = buf; //+ offset; in com_android_nfc_NativeP2pDevice_doTransceive() 360 jbyteArray buf = NULL; in com_android_nfc_NativeP2pDevice_doReceive() local 398 buf = e->NewByteArray(data->length); in com_android_nfc_NativeP2pDevice_doReceive() 399 e->SetByteArrayRegion(buf, 0, data->length, (jbyte *)data->buffer); in com_android_nfc_NativeP2pDevice_doReceive() 404 return buf; in com_android_nfc_NativeP2pDevice_doReceive() 408 JNIEnv *e, jobject o, jbyteArray buf) in com_android_nfc_NativeP2pDevice_doSend() argument 428 data.length = (uint32_t)e->GetArrayLength(buf); in com_android_nfc_NativeP2pDevice_doSend() 429 data.buffer = (uint8_t *)e->GetByteArrayElements(buf, NULL); in com_android_nfc_NativeP2pDevice_doSend() [all …]
|
D | com_android_nfc_NativeNfcTag.cpp | 180 jbyteArray buf = NULL; in com_android_nfc_NativeNfcTag_doRead() local 222 buf = e->NewByteArray(nfc_jni_ndef_rw.length); in com_android_nfc_NativeNfcTag_doRead() 223 e->SetByteArrayRegion(buf, 0, nfc_jni_ndef_rw.length, in com_android_nfc_NativeNfcTag_doRead() 230 return buf; in com_android_nfc_NativeNfcTag_doRead() 235 jobject o, jbyteArray buf) in com_android_nfc_NativeNfcTag_doWrite() argument 251 nfc_jni_ndef_rw.length = (uint32_t)e->GetArrayLength(buf); in com_android_nfc_NativeNfcTag_doWrite() 252 nfc_jni_ndef_rw.buffer = (uint8_t *)e->GetByteArrayElements(buf, NULL); in com_android_nfc_NativeNfcTag_doWrite() 282 e->ReleaseByteArrayElements(buf, (jbyte *)nfc_jni_ndef_rw.buffer, JNI_ABORT); in com_android_nfc_NativeNfcTag_doWrite() 715 uint8_t *buf = NULL; in com_android_nfc_NativeNfcTag_doTransceive() local 753 buf = outbuf = (uint8_t *)e->GetByteArrayElements(data, NULL); in com_android_nfc_NativeNfcTag_doTransceive() [all …]
|
/packages/apps/Email/emailcommon/src/org/apache/commons/io/output/ |
D | ByteArrayOutputStream.java | 252 byte[] buf = getBuffer(i); in writeTo() 253 int c = Math.min(buf.length, remaining); in writeTo() 254 out.write(buf, 0, c); in writeTo() 277 byte[] buf = getBuffer(i); in toByteArray() 278 int c = Math.min(buf.length, remaining); in toByteArray() 279 System.arraycopy(buf, 0, newbuf, pos, c); in toByteArray()
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
D | neapi.c | 70 NJ_EXTERN NJ_INT16 njx_get_candidate(NJ_CLASS *iwnn, NJ_RESULT *result, NJ_CHAR *buf, NJ_UINT16 buf… in njx_get_candidate() argument 82 if ((buf == NULL) || (buf_size == 0)) { in njx_get_candidate() 88 ret = njd_get_candidate(iwnn, result, buf, buf_size); in njx_get_candidate() 100 NJ_EXTERN NJ_INT16 njx_get_stroke(NJ_CLASS *iwnn, NJ_RESULT *result, NJ_CHAR *buf, NJ_UINT16 buf_si… in njx_get_stroke() argument 112 if ((buf == NULL) || (buf_size == 0)) { in njx_get_stroke() 118 ret = njd_get_stroke(iwnn, result, buf, buf_size); in njx_get_stroke()
|
/packages/apps/Mms/tests/src/com/android/mms/util/ |
D | SmileyParserUnitTests.java | 50 SpannableStringBuilder buf = new SpannableStringBuilder(); in testSmileyParser() local 53 buf.append(parser.addSmileySpans(":-):-:-(")); in testSmileyParser() 55 ImageSpan[] spans = buf.getSpans(0, buf.length(), ImageSpan.class); in testSmileyParser()
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastListItem.java | 89 SpannableStringBuilder buf = new SpannableStringBuilder(body); in formatMessage() local 93 buf.setSpan(STYLE_BOLD, 0, buf.length(), in formatMessage() 96 return buf; in formatMessage()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | FilterSet.java | 102 final Path[] buf = new Path[total]; in updateData() local 109 buf[index] = path; in updateData() 115 if (buf[i] != null) { in updateData() 116 mPaths.add(buf[i]); in updateData()
|
D | ClusterAlbum.java | 71 final MediaItem[] buf = new MediaItem[end - start]; in getMediaItemFromPath() local 74 buf[index] = item; in getMediaItemFromPath() 79 for (int i = 0; i < buf.length; i++) { in getMediaItemFromPath() 80 result.add(buf[i]); in getMediaItemFromPath()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/deprecated/voice/ |
D | WaveformImage.java | 49 final ShortBuffer buf = ByteBuffer in drawWaveform() local 53 buf.position(0); in drawWaveform() 80 final short s = buf.get(index); in drawWaveform()
|
/packages/apps/Email/emailcommon/src/org/apache/commons/io/ |
D | FileSystemUtils.java | 286 StringBuffer buf = new StringBuffer(line.substring(bytesStart, bytesEnd)); in parseDir() local 287 for (int k = 0; k < buf.length(); k++) { in parseDir() 288 if (buf.charAt(k) == ',' || buf.charAt(k) == '.') { in parseDir() 289 buf.deleteCharAt(k--); in parseDir() 292 return parseBytes(buf.toString(), path); in parseDir()
|
/packages/apps/Exchange/src/com/android/exchange/adapter/ |
D | Serializer.java | 196 byte[] buf = new byte[5]; in writeInteger() 200 buf[idx++] = (byte) (i & 0x7f); in writeInteger() 205 out.write(buf[--idx] | 0x80); in writeInteger() 207 out.write(buf[0]); in writeInteger()
|
/packages/apps/Browser/src/com/android/browser/ |
D | BrowserBackupAgent.java | 190 byte[] buf = new byte[CHUNK]; in copyBackupToFile() 196 int numRead = data.readEntityData(buf, 0, CHUNK); in copyBackupToFile() 197 crc.update(buf, 0, numRead); in copyBackupToFile() 198 out.write(buf, 0, numRead); in copyBackupToFile()
|
/packages/apps/Browser/src/com/android/browser/homepages/ |
D | RequestHandler.java | 127 byte[] buf = new byte[4096]; in writeResource() 129 while ((read = in.read(buf)) > 0) { in writeResource() 130 mOutput.write(buf, 0, read); in writeResource()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DrmConvertSession.java | 88 byte[] buf = new byte[size]; in convert() 89 System.arraycopy(inBuffer, 0, buf, 0, size); in convert() 90 convertedStatus = mDrmClient.convertData(mConvertSessionId, buf); in convert()
|