/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/Messaging/src/com/android/messaging/util/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/services/Telephony/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/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
H A D | CellBroadcastResources.java | 45 SpannableStringBuilder buf = new SpannableStringBuilder(); 48 int start = buf.length(); 49 buf.append(context.getString(R.string.delivery_time_heading)); 50 int end = buf.length(); 51 buf.setSpan(new StyleSpan(Typeface.BOLD), start, end, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); 52 buf.append(" "); 53 buf.append(cbm.getDateString(context)); 57 appendCmasAlertDetails(context, buf, cbm.getCmasWarningInfo()); 60 return buf; 63 private static void appendCmasAlertDetails(Context context, SpannableStringBuilder buf, argument 96 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/Test/connectivity/sl4n/facades/wifi/ |
H A D | wifi_facade.cpp | 105 char buf[128]; local 107 int result = hal_fn.wifi_get_iface_name(wifi_iface_handles[i], buf, 108 sizeof(buf)); 114 if (!strcmp(buf, kWlanInterface)) { 116 } else if (!strcmp(buf, kP2pInterface)) {
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
H A D | ByteArrayPool.java | 62 public void releaseChunk(byte[] buf) { argument 63 if (buf == null || buf.length != mChunkSize) { 68 mCachedBuf.add(buf); 79 byte[] buf = bufs.get(i); 80 if (buf != null && buf.length == mChunkSize) {
|
/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 | 275 uint8_t *buf; local 294 buf = (uint8_t *)e->GetByteArrayElements(data, NULL); 299 transceive_info.sSendData.buffer = buf; //+ offset; 362 jbyteArray buf = NULL; local 400 buf = e->NewByteArray(data->length); 401 e->SetByteArrayRegion(buf, 0, data->length, (jbyte *)data->buffer); 406 return buf; 410 JNIEnv *e, jobject o, jbyteArray buf) 430 data.length = (uint32_t)e->GetArrayLength(buf); 431 data.buffer = (uint8_t *)e->GetByteArrayElements(buf, NUL 409 com_android_nfc_NativeP2pDevice_doSend( JNIEnv *e, jobject o, jbyteArray buf) argument [all...] |
/packages/apps/Nfc/nci/jni/extns/pn54x/src/ |
H A D | phNxpExtns.c | 121 NFCSTATUS EXTNS_MfcCallBack (uint8_t *buf, uint32_t buflen) argument 128 msg.pMsgData = buf;
|
/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/apps/Nfc/nci/jni/extns/pn54x/src/utils/ |
H A D | phNxpConfig.cpp | 178 struct stat buf; local 199 stat (name, &buf); 200 m_timeStamp = (unsigned long) buf.st_mtime;
|
/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/Messaging/src/com/android/messaging/mmslib/pdu/ |
H A D | PduComposer.java | 192 * Copy buf to mMessage. 194 protected void arraycopy(final byte[] buf, final int pos, final int length) { argument 195 mMessage.write(buf, pos, length);
|
/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/ |
H A D | NativeNfcTag.java | 349 private native boolean doWrite(byte[] buf); argument 351 public synchronized boolean writeNdef(byte[] buf) { argument 355 boolean result = doWrite(buf);
|