Searched defs:bytes (Results 1 - 25 of 55) sorted by relevance

123

/packages/apps/Bluetooth/src/com/android/bluetooth/util/
H A DNumberUtils.java34 public static int littleEndianByteArrayToInt(byte[] bytes) { argument
35 int length = bytes.length;
41 int value = unsignedByteToInt(bytes[i]);
/packages/apps/Messaging/src/android/support/v7/mms/pdu/
H A DQuotedPrintable.java26 * Decodes an array quoted-printable characters into an array of original bytes.
35 * @param bytes array of quoted-printable characters
36 * @return array of original bytes,
39 public static final byte[] decodeQuotedPrintable(byte[] bytes) { argument
40 if (bytes == null) {
44 for (int i = 0; i < bytes.length; i++) {
45 int b = bytes[i];
48 if('\r' == (char)bytes[i + 1] &&
49 '\n' == (char)bytes[i + 2]) {
53 int u = Character.digit((char) bytes[
[all...]
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
H A DQuotedPrintable.java26 * Decodes an array quoted-printable characters into an array of original bytes.
35 * @param bytes array of quoted-printable characters
36 * @return array of original bytes,
39 public static final byte[] decodeQuotedPrintable(byte[] bytes) { argument
40 if (bytes == null) {
44 for (int i = 0; i < bytes.length; i++) {
45 int b = bytes[i];
48 if ('\r' == (char) bytes[i + 1] &&
49 '\n' == (char) bytes[i + 2]) {
53 int u = Character.digit((char) bytes[
[all...]
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
H A DByteArrays.java33 * {@code 2 * bytes.length} characters long.
35 public static String toHexString(byte[] bytes) { argument
36 StringBuilder sb = new StringBuilder(2 * bytes.length);
37 for (byte b : bytes) {
/packages/apps/Camera2/src/com/android/camera/exif/
H A DByteBufferInputStream.java39 public int read(byte[] bytes, int off, int len) { argument
45 mBuf.get(bytes, off, len);
/packages/apps/Camera2/src/com/android/camera/processing/memory/
H A DByteBufferDirectPool.java31 protected ByteBuffer create(Integer bytes) { argument
32 return ByteBuffer.allocateDirect(bytes);
/packages/apps/CertInstaller/src/com/android/certinstaller/
H A DUtil.java47 static <T> T fromBytes(byte[] bytes) { argument
48 if (bytes == null) return null;
51 new ObjectInputStream(new ByteArrayInputStream(bytes));
59 static String toMd5(byte[] bytes) { argument
63 algorithm.update(bytes);
72 private static String toHexString(byte[] bytes, String separator) { argument
74 for (byte b : bytes) {
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
H A DByteBufferInputStream.java39 public int read(byte[] bytes, int off, int len) { argument
45 mBuf.get(bytes, off, len);
/packages/apps/LegacyCamera/src/com/android/camera/
H A DExif.java121 private static int pack(byte[] bytes, int offset, int length, argument
131 value = (value << 8) | (bytes[offset] & 0xFF);
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
H A DMediaBytes.java25 public MediaBytes(final String key, final byte[] bytes) { argument
27 mBytes = bytes;
/packages/apps/Messaging/src/com/android/messaging/util/exif/
H A DByteBufferInputStream.java39 public int read(byte[] bytes, int off, int len) { argument
45 mBuf.get(bytes, off, len);
/packages/services/Telephony/src/com/android/phone/vvm/omtp/imap/
H A DVoicemailPayload.java26 public VoicemailPayload(String mimeType, byte[] bytes) { argument
28 mBytes = bytes;
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
H A DPhotosDeletionPreference.java50 public void updatePreferenceText(int items, long bytes) { argument
54 Formatter.formatFileSize(context, bytes), DAYS_TO_KEEP));
58 public void onFreeableChanged(int items, long bytes) { argument
65 PhotosDeletionPreference.super.onFreeableChanged(items, bytes);
66 updatePreferenceText(items, bytes);
H A DDownloadsDeletionPreferenceGroup.java121 private void updatePreferenceText(int itemCount, long bytes, long mostRecent) { argument
127 Formatter.formatFileSize(context, bytes)));
130 Formatter.formatFileSize(context, bytes)));
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
H A DBitmapUtil.java40 public static int getSmallerExtentFromBytes(byte[] bytes) { argument
45 BitmapFactory.decodeByteArray(bytes, 0, bytes.length, options);
81 public static Bitmap decodeBitmapFromBytes(byte[] bytes, int sampleSize) { argument
89 return BitmapFactory.decodeByteArray(bytes, 0, bytes.length, options);
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
H A DLog.java155 private static String encodeHex(byte[] bytes) { argument
156 StringBuffer hex = new StringBuffer(bytes.length * 2);
158 for (int i = 0; i < bytes.length; i++) {
159 int byteIntValue = bytes[i] & 0xff;
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
H A DImagePersistTask.java54 final byte[] bytes,
58 Assert.notNull(bytes);
64 mBytes = bytes;
50 ImagePersistTask( final int width, final int height, final float heightPercent, final byte[] bytes, final Context context, final CameraManager.MediaCallback callback) argument
/packages/apps/Tag/canon/src/com/android/apps/tagcanon/
H A DTagCanon.java110 public TagDescription(String title, byte[] bytes) { argument
113 msgs = new NdefMessage[] { new NdefMessage(bytes) };
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/
H A DContactRequest.java36 public byte[] bytes; field in class:ContactRequest
91 return new ByteArrayInputStream(bytes);
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/
H A DNullInputStream.java34 * large numbers of bytes - significantly speeding up
52 * protected void processBytes(byte[] bytes, int offset, int length) {
54 * bytes[i] = ... // set array value here
119 * Return the number of bytes that can be read.
121 * @return The number of bytes that can be read.
149 * @param readlimit The number of bytes before this marked position
192 * Read some bytes into the specified array.
194 * @param bytes The byte array to read into
195 * @return The number of bytes read or <code>-1</code>
202 public int read(byte[] bytes) throw argument
219 read(byte[] bytes, int offset, int length) argument
309 processBytes(byte[] bytes, int offset, int length) argument
[all...]
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/common/
H A DInputStreamProvider.java254 public static InputStreamProvider fromBytes(final byte[] bytes) { argument
258 return new BufferedInputStream(new ByteArrayInputStream(bytes));
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DFingerprint.java43 // 16 bytes for 128-bit fingerprint
61 // md5 digest bytes.
67 public Fingerprint(byte[] bytes) { argument
68 if ((bytes == null) || (bytes.length != FINGERPRINT_BYTE_LENGTH)) {
71 mMd5Digest = bytes;
87 byte[] bytes = new byte[8192];
90 int n = in.read(bytes);
111 // decode the hex bytes of the fingerprint portion
112 byte[] bytes
180 appendHexFingerprint(StringBuilder sb, byte[] bytes) argument
[all...]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/
H A DJPEGInputStream.java188 native private int skipDecodedBytes(int bytes); argument
/packages/apps/Gallery2/jni_jpegstream/src/
H A Djpeg_reader.cpp117 int32_t JpegReader::read(int8_t* bytes, int32_t offset, int32_t count) { argument
135 if (bytes != NULL) {
136 // Treat NULL bytes as a skip
137 memcpy((void*) (bytes + offset), (void*) mScanlineIter,
145 if (bytes != NULL) {
146 // Treat NULL bytes as a skip
147 memcpy((void*) (bytes + offset), (void*) mScanlineIter,
149 bytes += mScanlineBytesRemaining;
H A Djpeg_writer.cpp116 int32_t JpegWriter::write(int8_t* bytes, int32_t length) { argument
127 if (length < 0 || bytes == NULL) {
136 memcpy((void*) mScanlineIter, (void*) bytes,
143 memcpy((void*) mScanlineIter, (void*) bytes,
145 bytes += mScanlineBytesRemaining;

Completed in 1679 milliseconds

123