/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpPacket.java | 432 Inet4Address srcIp, short destUdp, short srcUdp, ByteBuffer buf, in fillInPacket() argument 444 buf.clear(); in fillInPacket() 445 buf.order(ByteOrder.BIG_ENDIAN); in fillInPacket() 448 buf.put(ETHER_BROADCAST); in fillInPacket() 449 buf.put(mClientMac); in fillInPacket() 450 buf.putShort((short) OsConstants.ETH_P_IP); in fillInPacket() 457 ipHeaderOffset = buf.position(); in fillInPacket() 458 buf.put(IP_VERSION_HEADER_LEN); in fillInPacket() 459 buf.put(IP_TOS_LOWDELAY); // tos: IPTOS_LOWDELAY in fillInPacket() 460 ipLengthOffset = buf.position(); in fillInPacket() [all …]
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | BlobCache.java | 196 byte[] buf = mIndexHeader; in loadIndex() 197 if (mIndexFile.read(buf) != INDEX_HEADER_SIZE) { in loadIndex() 202 if (readInt(buf, IH_MAGIC) != MAGIC_INDEX_FILE) { in loadIndex() 207 if (readInt(buf, IH_VERSION) != mVersion) { in loadIndex() 212 mMaxEntries = readInt(buf, IH_MAX_ENTRIES); in loadIndex() 213 mMaxBytes = readInt(buf, IH_MAX_BYTES); in loadIndex() 214 mActiveRegion = readInt(buf, IH_ACTIVE_REGION); in loadIndex() 215 mActiveEntries = readInt(buf, IH_ACTIVE_ENTRIES); in loadIndex() 216 mActiveBytes = readInt(buf, IH_ACTIVE_BYTES); in loadIndex() 218 int sum = readInt(buf, IH_CHECKSUM); in loadIndex() [all …]
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastResources.java | 46 SpannableStringBuilder buf = new SpannableStringBuilder(); in getMessageDetails() local 49 int start = buf.length(); in getMessageDetails() 50 buf.append(context.getString(R.string.delivery_time_heading)); in getMessageDetails() 51 int end = buf.length(); in getMessageDetails() 52 buf.setSpan(new StyleSpan(Typeface.BOLD), start, end, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in getMessageDetails() 53 buf.append(" "); in getMessageDetails() 54 buf.append(cbm.getDateString(context)); in getMessageDetails() 58 appendCmasAlertDetails(context, buf, cbm.getCmasWarningInfo()); in getMessageDetails() 61 return buf; in getMessageDetails() 64 private static void appendCmasAlertDetails(Context context, SpannableStringBuilder buf, in appendCmasAlertDetails() argument [all …]
|
/packages/apps/Bluetooth/jni/ |
D | com_android_bluetooth_hid_device.cpp | 242 uint32_t* buf = (uint32_t*)calloc(len, sizeof(uint32_t)); in fill_qos() local 244 if (buf == NULL) return; in fill_qos() 246 env->GetIntArrayRegion(in, 0, len, (jint*)buf); in fill_qos() 248 out->service_type = (uint8_t)buf[0]; in fill_qos() 249 out->token_rate = buf[1]; in fill_qos() 250 out->token_bucket_size = buf[2]; in fill_qos() 251 out->peak_bandwidth = buf[3]; in fill_qos() 252 out->access_latency = buf[4]; in fill_qos() 253 out->delay_variation = buf[5]; in fill_qos() 255 free(buf); in fill_qos() [all …]
|
/packages/apps/Gallery2/jni_jpegstream/src/ |
D | jpeg_reader.cpp | 179 void JpegReader::formatPixels(uint8_t* buf, int32_t len) { in formatPixels() argument 180 uint8_t *iter = buf; in formatPixels() 188 c = buf[i + 0]; in formatPixels() 189 m = buf[i + 1]; in formatPixels() 190 y = buf[i + 2]; in formatPixels() 191 k = buf[i + 3]; in formatPixels() 219 buf[i] = 255; in formatPixels() 220 buf[i - 1] = *--iter; in formatPixels() 221 buf[i - 2] = *--iter; in formatPixels() 222 buf[i - 3] = *--iter; in formatPixels() [all …]
|
D | jpeg_writer.cpp | 166 void JpegWriter::formatPixels(uint8_t* buf, int32_t len) { in formatPixels() argument 169 uint8_t* d = buf; in formatPixels() 173 for (int i = 0; i < len / 4; ++i, buf += 4) { in formatPixels() 174 *d++ = buf[0]; in formatPixels() 175 *d++ = buf[1]; in formatPixels() 176 *d++ = buf[2]; in formatPixels() 183 *d++ = buf[3]; in formatPixels() 185 *d++ = buf[2]; in formatPixels() 188 for (int i = 1; i < len / 4; ++i, buf += 4) { in formatPixels() 189 *d++ = buf[3]; in formatPixels() [all …]
|
/packages/apps/UnifiedEmail/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/LegacyCamera/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/services/Telephony/src/com/android/phone/settings/fdn/ |
D | DeleteFdnContactScreen.java | 109 StringBuilder buf = new StringBuilder(); in deleteContact() local 111 buf.append("number='"); in deleteContact() 113 buf.append("tag='"); in deleteContact() 114 buf.append(mName); in deleteContact() 115 buf.append("' AND number='"); in deleteContact() 117 buf.append(mNumber); in deleteContact() 118 buf.append("' AND pin2='"); in deleteContact() 119 buf.append(mPin2); in deleteContact() 120 buf.append("'"); in deleteContact() 125 mQueryHandler.startDelete(0, null, uri, buf.toString(), null); in deleteContact()
|
/packages/apps/Gallery2/jni/filters/ |
D | edge.c | 43 char buf[buf_len]; in JNIFUNCF() local 47 memset(buf, 0, buf_len * sizeof(char)); in JNIFUNCF() 49 *(buf + j) = 255; // set initial alphas in JNIFUNCF() 100 *(buf + buf_row_ring + off) = ret; in JNIFUNCF() 101 *(buf + buf_row_ring + off + 1) = ret; in JNIFUNCF() 102 *(buf + buf_row_ring + off + 2) = ret; in JNIFUNCF() 103 *(buf + buf_row_ring + off + 3) = *(ptr + loc + 3); in JNIFUNCF() 110 memcpy((dst + row_stride * (j - 1)), (buf + buf_row_ring), row_stride * sizeof(char)); in JNIFUNCF() 117 memcpy((dst + second_last_row), (buf + buf_row_ring), row_stride * sizeof(char)); in JNIFUNCF()
|
/packages/apps/Camera2/src/com/android/camera/exif/ |
D | ExifReader.java | 72 byte buf[] = new byte[parser.getCompressedImageSize()]; in read() 73 if (buf.length == parser.read(buf)) { in read() 74 exifData.setCompressedThumbnail(buf); in read() 80 buf = new byte[parser.getStripSize()]; in read() 81 if (buf.length == parser.read(buf)) { in read() 82 exifData.setStripBytes(parser.getStripIndex(), buf); in read() local
|
D | ExifModifier.java | 155 byte buf[] = tag.getStringByte(); in writeTagValue() 156 if (buf.length == tag.getComponentCount()) { in writeTagValue() 157 buf[buf.length - 1] = 0; in writeTagValue() 158 mByteBuffer.put(buf); in writeTagValue() 160 mByteBuffer.put(buf); in writeTagValue() 180 buf = new byte[tag.getComponentCount()]; in writeTagValue() 181 tag.getBytes(buf); in writeTagValue() 182 mByteBuffer.put(buf); in writeTagValue()
|
D | ExifTag.java | 332 byte[] buf = value.getBytes(US_ASCII); in setValue() 333 byte[] finalBuf = buf; in setValue() 334 if (buf.length > 0) { in setValue() 335 finalBuf = (buf[buf.length - 1] == 0 || mDataType == TYPE_UNDEFINED) ? buf : Arrays in setValue() 336 .copyOf(buf, buf.length + 1); in setValue() 836 protected void getBytes(byte[] buf) { in getBytes() argument 837 getBytes(buf, 0, buf.length); in getBytes() 850 protected void getBytes(byte[] buf, int offset, int length) { in getBytes() argument 855 System.arraycopy(mValue, 0, buf, offset, in getBytes()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
D | ExifReader.java | 72 byte buf[] = new byte[parser.getCompressedImageSize()]; in read() 73 if (buf.length == parser.read(buf)) { in read() 74 exifData.setCompressedThumbnail(buf); in read() 80 buf = new byte[parser.getStripSize()]; in read() 81 if (buf.length == parser.read(buf)) { in read() 82 exifData.setStripBytes(parser.getStripIndex(), buf); in read() local
|
D | ExifModifier.java | 156 byte buf[] = tag.getStringByte(); in writeTagValue() 157 if (buf.length == tag.getComponentCount()) { in writeTagValue() 158 buf[buf.length - 1] = 0; in writeTagValue() 159 mByteBuffer.put(buf); in writeTagValue() 161 mByteBuffer.put(buf); in writeTagValue() 181 buf = new byte[tag.getComponentCount()]; in writeTagValue() 182 tag.getBytes(buf); in writeTagValue() 183 mByteBuffer.put(buf); in writeTagValue()
|
D | ExifTag.java | 332 byte[] buf = value.getBytes(US_ASCII); in setValue() 333 byte[] finalBuf = buf; in setValue() 334 if (buf.length > 0) { in setValue() 335 finalBuf = (buf[buf.length - 1] == 0 || mDataType == TYPE_UNDEFINED) ? buf : Arrays in setValue() 336 .copyOf(buf, buf.length + 1); in setValue() 836 protected void getBytes(byte[] buf) { in getBytes() argument 837 getBytes(buf, 0, buf.length); in getBytes() 850 protected void getBytes(byte[] buf, int offset, int length) { in getBytes() argument 855 System.arraycopy(mValue, 0, buf, offset, in getBytes()
|
D | ExifData.java | 229 byte[] buf = new byte[tag.getComponentCount()]; in getUserComment() 230 tag.getBytes(buf); in getUserComment() 233 System.arraycopy(buf, 0, code, 0, 8); in getUserComment() 237 return new String(buf, 8, buf.length - 8, "US-ASCII"); in getUserComment() 239 return new String(buf, 8, buf.length - 8, "EUC-JP"); in getUserComment() 241 return new String(buf, 8, buf.length - 8, "UTF-16"); in getUserComment()
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | XmpInterface.java | 157 final byte[] buf; in fromContainer() 160 buf = exif.getAttributeBytes(ExifInterface.TAG_XMP); in fromContainer() 163 buf = EmptyArray.BYTE; in fromContainer() 166 return new XmpInterface(new ByteArrayInputStream(buf), redactedExifTags, xmpOffsets); in fromContainer() 176 byte[] buf = null; in fromContainer() 178 if (buf == null) { in fromContainer() 180 buf = iso.getBoxBytes(uuid); in fromContainer() 183 if (buf == null) { in fromContainer() 184 buf = iso.getBoxBytes(IsoInterface.BOX_XMP); in fromContainer() 187 if (buf == null) { in fromContainer() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/util/exif/ |
D | ExifReader.java | 73 byte buf[] = new byte[parser.getCompressedImageSize()]; in read() 74 if (buf.length == parser.read(buf)) { in read() 75 exifData.setCompressedThumbnail(buf); in read() 81 buf = new byte[parser.getStripSize()]; in read() 82 if (buf.length == parser.read(buf)) { in read() 83 exifData.setStripBytes(parser.getStripIndex(), buf); in read() local
|
D | ExifModifier.java | 156 byte buf[] = tag.getStringByte(); in writeTagValue() 157 if (buf.length == tag.getComponentCount()) { in writeTagValue() 158 buf[buf.length - 1] = 0; in writeTagValue() 159 mByteBuffer.put(buf); in writeTagValue() 161 mByteBuffer.put(buf); in writeTagValue() 181 buf = new byte[tag.getComponentCount()]; in writeTagValue() 182 tag.getBytes(buf); in writeTagValue() 183 mByteBuffer.put(buf); in writeTagValue()
|
D | ExifTag.java | 332 byte[] buf = value.getBytes(US_ASCII); in setValue() 333 byte[] finalBuf = buf; in setValue() 334 if (buf.length > 0) { in setValue() 335 finalBuf = (buf[buf.length - 1] == 0 || mDataType == TYPE_UNDEFINED) ? buf : Arrays in setValue() 336 .copyOf(buf, buf.length + 1); in setValue() 836 protected void getBytes(byte[] buf) { in getBytes() argument 837 getBytes(buf, 0, buf.length); in getBytes() 850 protected void getBytes(byte[] buf, int offset, int length) { in getBytes() argument 855 System.arraycopy(mValue, 0, buf, offset, in getBytes()
|
/packages/modules/NetworkStack/tests/unit/jni/ |
D | apf_jni.cpp | 40 std::vector<uint8_t> buf(program_len + data_len, 0); in com_android_server_ApfTest_apfSimulate() local 42 env->GetByteArrayRegion(jprogram, 0, program_len, reinterpret_cast<jbyte*>(buf.data())); in com_android_server_ApfTest_apfSimulate() 46 reinterpret_cast<jbyte*>(buf.data() + program_len)); in com_android_server_ApfTest_apfSimulate() 50 accept_packet(buf.data(), program_len, program_len + data_len, in com_android_server_ApfTest_apfSimulate() 55 reinterpret_cast<jbyte*>(buf.data() + program_len)); in com_android_server_ApfTest_apfSimulate() 193 std::vector<uint8_t> buf(apf_program_len + data_len, 0); in com_android_server_ApfTest_dropsAllPackets() local 196 env->GetByteArrayRegion(jprogram, 0, apf_program_len, reinterpret_cast<jbyte*>(buf.data())); in com_android_server_ApfTest_dropsAllPackets() 198 reinterpret_cast<jbyte*>(buf.data() + apf_program_len)); in com_android_server_ApfTest_dropsAllPackets() 210 int result = accept_packet(buf.data(), apf_program_len, in com_android_server_ApfTest_dropsAllPackets() 216 reinterpret_cast<jbyte*>(buf.data() + apf_program_len)); in com_android_server_ApfTest_dropsAllPackets() [all …]
|
/packages/apps/UnifiedEmail/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/Dialer/java/com/android/voicemail/impl/utils/ |
D | IndentingPrintWriter.java | 95 final char[] buf = new char[len]; in write() local 96 s.getChars(off, len - off, buf, 0); in write() 97 write(buf, 0, len); in write() 101 public void write(char[] buf, int offset, int count) { in write() argument 109 char ch = buf[lineEnd++]; in write() 113 super.write(buf, lineStart, lineEnd - lineStart); in write() 129 super.write(buf, lineStart, lineEnd - lineStart); in write() 140 super.write(buf, lineStart, lineEnd - lineStart); in write()
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
D | ByteArrayPool.java | 64 public void releaseChunk(byte[] buf) { in releaseChunk() argument 65 if (buf == null || buf.length != mChunkSize) { in releaseChunk() 70 mCachedBuf.add(buf); in releaseChunk() 81 byte[] buf = bufs.get(i); in releaseChunks() 82 if (buf != null && buf.length == mChunkSize) { in releaseChunks()
|