/packages/apps/Gallery2/jni_jpegstream/src/ |
H A D | jerr_hook.cpp | 38 char buf[JMSG_LENGTH_MAX]; local 39 (*cinfo->err->format_message) (cinfo, buf); 40 buf[JMSG_LENGTH_MAX - 1] = '\0'; // Force null terminator 42 LOGE("%s\n", buf);
|
H A D | jpeg_reader.cpp | 179 void JpegReader::formatPixels(uint8_t* buf, int32_t len) { argument 180 uint8_t *iter = buf; 188 c = buf[i + 0]; 189 m = buf[i + 1]; 190 y = buf[i + 2]; 191 k = buf[i + 3]; 218 uint8_t* end = buf + len - 1; 220 buf[i] = 255; 221 buf[i - 1] = *--iter; 222 buf[ [all...] |
H A D | jpeg_writer.cpp | 166 void JpegWriter::formatPixels(uint8_t* buf, int32_t len) { argument 169 uint8_t* d = buf; 173 for (int i = 0; i < len / 4; ++i, buf += 4) { 174 *d++ = buf[0]; 175 *d++ = buf[1]; 176 *d++ = buf[2]; 183 *d++ = buf[3]; 185 *d++ = buf[2]; 188 for (int i = 1; i < len / 4; ++i, buf += 4) { 189 *d++ = buf[ [all...] |
/packages/apps/Camera2/src/com/android/camera/exif/ |
H A D | ByteBufferInputStream.java | 26 public ByteBufferInputStream(ByteBuffer buf) { argument 27 mBuf = buf;
|
H A D | ExifTag.java | 332 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 D | ByteBufferInputStream.java | 26 public ByteBufferInputStream(ByteBuffer buf) { argument 27 mBuf = buf;
|
H A D | ExifTag.java | 332 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/src/com/android/gallery3d/exif/ |
H A D | ByteBufferInputStream.java | 26 public ByteBufferInputStream(ByteBuffer buf) { argument 27 mBuf = buf;
|
H A D | ExifTag.java | 332 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 D | ByteBufferInputStream.java | 26 public ByteBufferInputStream(ByteBuffer buf) { argument 27 mBuf = buf;
|
H A D | ExifTag.java | 332 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/UnifiedEmail/src/org/apache/james/mime4j/decoder/ |
H A D | ByteQueue.java | 26 private UnboundedFifoByteBuffer buf;
field in class:ByteQueue 30 buf = new UnboundedFifoByteBuffer();
34 buf = new UnboundedFifoByteBuffer(initialCapacity);
39 buf.add(b);
43 return buf.remove();
47 return buf.size();
52 buf = new UnboundedFifoByteBuffer(initialCapacity);
54 buf = new UnboundedFifoByteBuffer();
58 return buf.iterator();
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
H A D | neapi.c | 70 NJ_EXTERN NJ_INT16 njx_get_candidate(NJ_CLASS *iwnn, NJ_RESULT *result, NJ_CHAR *buf, NJ_UINT16 buf_size) { argument 82 if ((buf == NULL) || (buf_size == 0)) { 88 ret = njd_get_candidate(iwnn, result, buf, buf_size); 100 NJ_EXTERN NJ_INT16 njx_get_stroke(NJ_CLASS *iwnn, NJ_RESULT *result, NJ_CHAR *buf, NJ_UINT16 buf_size) { argument 112 if ((buf == NULL) || (buf_size == 0)) { 118 ret = njd_get_stroke(iwnn, result, buf, buf_size);
|
H A D | ndfdic.c | 205 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/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
H A D | CellBroadcastResources.java | 42 SpannableStringBuilder buf = new SpannableStringBuilder(); 45 int start = buf.length(); 46 buf.append(context.getString(R.string.delivery_time_heading)); 47 int end = buf.length(); 48 buf.setSpan(new StyleSpan(Typeface.BOLD), start, end, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); 49 buf.append(" "); 50 buf.append(cbm.getDateString(context)); 54 appendCmasAlertDetails(context, buf, cbm.getCmasWarningInfo()); 57 return buf; 60 private static void appendCmasAlertDetails(Context context, SpannableStringBuilder buf, argument 93 appendMessageDetail(Context context, SpannableStringBuilder buf, int typeId, int valueId) argument [all...] |
/packages/apps/Gallery2/jni/filters/ |
H A D | edge.c | 43 char buf[buf_len]; local 47 memset(buf, 0, buf_len * sizeof(char)); 49 *(buf + j) = 255; // set initial alphas 100 *(buf + buf_row_ring + off) = ret; 101 *(buf + buf_row_ring + off + 1) = ret; 102 *(buf + buf_row_ring + off + 2) = ret; 103 *(buf + buf_row_ring + off + 3) = *(ptr + loc + 3); 110 memcpy((dst + row_stride * (j - 1)), (buf + buf_row_ring), row_stride * sizeof(char)); 117 memcpy((dst + second_last_row), (buf + buf_row_ring), row_stride * sizeof(char));
|
/packages/apps/Camera/jni/feature_mos/src/mosaic_renderer/ |
H A D | Renderer.cpp | 49 char* buf = (char*) malloc(infoLen); local 50 if (buf) { 51 glGetShaderInfoLog(shader, infoLen, NULL, buf); 53 shaderType, buf); 54 free(buf); 98 char* buf = (char*) malloc(bufLength); local 99 if (buf) 101 glGetProgramInfoLog(program, bufLength, NULL, buf); 102 LOGE("Could not link program:\n%s\n", buf); 103 free(buf); [all...] |
/packages/apps/Camera2/jni/feature_mos/src/mosaic_renderer/ |
H A D | Renderer.cpp | 49 char* buf = (char*) malloc(infoLen); local 50 if (buf) { 51 glGetShaderInfoLog(shader, infoLen, NULL, buf); 53 shaderType, buf); 54 free(buf); 98 char* buf = (char*) malloc(bufLength); local 99 if (buf) 101 glGetProgramInfoLog(program, bufLength, NULL, buf); 102 LOGE("Could not link program:\n%s\n", buf); 103 free(buf); [all...] |
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic_renderer/ |
H A D | Renderer.cpp | 49 char* buf = (char*) malloc(infoLen); local 50 if (buf) { 51 glGetShaderInfoLog(shader, infoLen, NULL, buf); 53 shaderType, buf); 54 free(buf); 98 char* buf = (char*) malloc(bufLength); local 99 if (buf) 101 glGetProgramInfoLog(program, bufLength, NULL, buf); 102 LOGE("Could not link program:\n%s\n", buf); 103 free(buf); [all...] |
/packages/apps/Nfc/nxp/jni/ |
H A D | com_android_nfc_NativeP2pDevice.cpp | 274 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...] |
H A D | com_android_nfc_NativeNfcSecureElement.cpp | 612 uint8_t *buf; local 634 buf = (uint8_t *)e->GetByteArrayElements(data, NULL); 641 transceive_info.cmd.MfCmd = (phNfc_eMifareCmdList_t)buf[0]; 642 transceive_info.addr = (uint8_t)buf[1]; 650 transceive_info.sSendData.buffer = buf + offset;
|
/packages/experimental/procstatlog/ |
H A D | procstatlog.c | 73 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/PinyinIME/jni/share/ |
H A D | dictlist.cpp | 299 uint16 *buf = buf_ + start_pos_[i] + id_span * (i + 1); local 301 str_buf[len] = buf[len];
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
H A D | BlobCache.java | 196 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/Mms/src/com/android/mms/util/ |
H A D | BlobCache.java | 195 byte[] buf = mIndexHeader; 196 if (mIndexFile.read(buf) != INDEX_HEADER_SIZE) { 201 if (readInt(buf, IH_MAGIC) != MAGIC_INDEX_FILE) { 206 if (readInt(buf, IH_VERSION) != mVersion) { 211 mMaxEntries = readInt(buf, IH_MAX_ENTRIES); 212 mMaxBytes = readInt(buf, IH_MAX_BYTES); 213 mActiveRegion = readInt(buf, IH_ACTIVE_REGION); 214 mActiveEntries = readInt(buf, IH_ACTIVE_ENTRIES); 215 mActiveBytes = readInt(buf, IH_ACTIVE_BYTES); 217 int sum = readInt(buf, IH_CHECKSU 626 readInt(byte[] buf, int offset) argument 633 readLong(byte[] buf, int offset) argument 641 writeInt(byte[] buf, int offset, int value) argument 648 writeLong(byte[] buf, int offset, long value) argument [all...] |