/packages/apps/UnifiedEmail/src/com/android/mail/lib/base/ |
H A D | ByteArrays.java | 32 * {@code 2 * bytes.length} characters long. 34 public static String toHexString(byte[] bytes) { argument 35 StringBuilder sb = new StringBuilder(2 * bytes.length); 36 for (byte b : bytes) {
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
H A D | ByteArrays.java | 33 * {@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/ContactsCommon/src/com/android/contacts/common/util/ |
H A D | BitmapUtil.java | 32 public static int getSmallerExtentFromBytes(byte[] bytes) { argument 37 BitmapFactory.decodeByteArray(bytes, 0, bytes.length, options); 73 public static Bitmap decodeBitmapFromBytes(byte[] bytes, int sampleSize) { argument 81 return BitmapFactory.decodeByteArray(bytes, 0, bytes.length, options);
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
H A D | Fingerprint.java | 43 // 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/Browser/tests/src/com/android/browser/ |
H A D | WebStorageSizeManagerUnitTests.java | 77 private long bytes(double megabytes) { method in class:WebStorageSizeManagerUnitTests 88 mDiskInfo.setTotalSizeBytes(bytes(75)); 89 mDiskInfo.setFreeSpaceSizeBytes(bytes(24)); 97 long origin1EstimatedSize = bytes(3.5); 105 long origin2EstimatedSize = bytes(2.5); 128 long origin3EstimatedSize = bytes(5); 146 manager.onExceededDatabaseQuota("4", "4", 0, bytes(1), totalUsedQuota, mQuotaUpdater); 150 mAppCacheInfo.setAppCacheSizeBytes(bytes(2)); 152 manager.onReachedMaxAppCacheSize(bytes(2), totalUsedQuota, mQuotaUpdater); 160 manager.onReachedMaxAppCacheSize(bytes(1. [all...] |
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
H A D | Util.java | 45 static <T> T fromBytes(byte[] bytes) { argument 46 if (bytes == null) return null; 49 new ObjectInputStream(new ByteArrayInputStream(bytes)); 57 static String toMd5(byte[] bytes) { argument 61 algorithm.update(bytes); 70 private static String toHexString(byte[] bytes, String separator) { argument 72 for (byte b : bytes) {
|
H A D | CredentialHelper.java | 92 byte[] bytes = bundle.getByteArray(key); 93 Log.d(TAG, " " + key + ": " + ((bytes == null) ? -1 : bytes.length)); 94 mBundle.put(key, bytes); 123 byte[] bytes = savedStates.getByteArray(Credentials.USER_PRIVATE_KEY); 124 if (bytes != null) { 125 setPrivateKey(bytes); 138 private void parseCert(byte[] bytes) { argument 139 if (bytes == null) { 147 new ByteArrayInputStream(bytes)); 199 setPrivateKey(byte[] bytes) argument [all...] |
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/codec/ |
H A D | EncoderUtil.java | 336 byte[] bytes = encode(text, charset); 339 encoding = determineEncoding(bytes, usage); 343 return encodeB(prefix, text, usedCharacters, charset, bytes); 346 return encodeQ(prefix, text, usage, usedCharacters, charset, bytes); 354 * @param bytes 358 public static String encodeB(byte[] bytes) { argument 362 final int end = bytes.length; 364 int data = (bytes[idx] & 0xff) << 16 | (bytes[idx + 1] & 0xff) << 8 365 | bytes[id 401 encodeQ(byte[] bytes, Usage usage) argument 512 encodeB(String prefix, String text, int usedCharacters, Charset charset, byte[] bytes) argument 536 bEncodedLength(byte[] bytes) argument 540 encodeQ(String prefix, String text, Usage usage, int usedCharacters, Charset charset, byte[] bytes) argument 564 qEncodedLength(byte[] bytes, Usage usage) argument 608 determineEncoding(byte[] bytes, Usage usage) argument [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
H A D | MD5Calculator.java | 34 final byte[] bytes = new byte[8192]; 36 while ((byteCount = in.read(bytes)) > 0) { 37 digester.update(bytes, 0, byteCount);
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/ |
H A D | NullInputStream.java | 34 * 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/Camera2/src/com/android/camera/exif/ |
H A D | ByteBufferInputStream.java | 39 public int read(byte[] bytes, int off, int len) { argument 45 mBuf.get(bytes, off, len);
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
H A D | ByteBufferInputStream.java | 39 public int read(byte[] bytes, int off, int len) { argument 45 mBuf.get(bytes, off, len);
|
/packages/apps/Launcher3/src/com/android/gallery3d/exif/ |
H A D | ByteBufferInputStream.java | 39 public int read(byte[] bytes, int off, int len) { argument 45 mBuf.get(bytes, off, len);
|
/packages/apps/Mms/src/com/android/mms/exif/ |
H A D | ByteBufferInputStream.java | 39 public int read(byte[] bytes, int off, int len) { argument 45 mBuf.get(bytes, off, len);
|
/packages/apps/Nfc/src/com/android/nfc/snep/ |
H A D | SnepMessage.java | 97 byte[] bytes = new byte[ndefLength]; 98 System.arraycopy(data, ndefOffset, bytes, 0, ndefLength); 99 mNdefMessage = new NdefMessage(bytes); 115 byte[] bytes; 117 bytes = mNdefMessage.toByteArray(); 119 bytes = new byte[0]; 125 buffer = new ByteArrayOutputStream(bytes.length + HEADER_LENGTH + 4); 127 buffer = new ByteArrayOutputStream(bytes.length + HEADER_LENGTH); 134 output.writeInt(bytes.length + 4); 137 output.writeInt(bytes [all...] |
/packages/apps/Launcher3/protos/ |
H A D | backup.proto | 36 required bytes payload = 1; 43 optional int64 bytes = 3; 66 optional bytes icon = 18; 76 required bytes data = 2;
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/ |
H A D | TextBody.java | 39 byte[] bytes = mBody.getBytes("UTF-8"); 40 out.write(Base64.encode(bytes, Base64.CRLF));
|
/packages/apps/Nfc/nci/jni/ |
H A D | NativeLlcpSocket.cpp | 120 ScopedByteArrayRO bytes(e, data); 123 UINT8* raw_ptr = const_cast<UINT8*>(reinterpret_cast<const UINT8*>(&bytes[0])); // TODO: API bug: send should take const*! 124 bool stat = PeerToPeer::getInstance().send(jniHandle, raw_ptr, bytes.size()); 140 ** Returns: Number of bytes received. 147 ScopedByteArrayRW bytes(e, origBuffer); 151 bool stat = PeerToPeer::getInstance().receive(jniHandle, reinterpret_cast<UINT8*>(&bytes[0]), bytes.size(), actualLen);
|
H A D | NativeSecureElement.cpp | 155 ScopedByteArrayRW bytes(e, data); 157 ALOGD("%s: enter; handle=0x%X; buf len=%zu", __FUNCTION__, handle, bytes.size()); 158 SecureElement::getInstance().transceive(reinterpret_cast<UINT8*>(&bytes[0]), bytes.size(), recvBuffer, recvBufferMaxSize, recvBufferActualSize, timeout);
|
/packages/apps/Nfc/src/com/android/nfc/ndefpush/ |
H A D | NdefPushProtocol.java | 115 byte[] bytes = new byte[length]; 119 lengthRead = input.read(bytes); 121 Log.w(TAG, "Unable to read bytes for message " + i); 125 Log.w(TAG, "Read " + lengthRead + " bytes but expected " + 131 mMessages[i] = new NdefMessage(bytes); 157 byte[] bytes = mMessages[i].toByteArray(); 158 output.writeInt(bytes.length); 159 output.write(bytes);
|
/packages/apps/Email/src/com/android/email/mail/store/imap/ |
H A D | ImapTempFileLiteral.java | 90 byte[] bytes = IOUtils.toByteArray(getAsStream()); 92 if (bytes.length > ImapResponseParser.LITERAL_KEEP_IN_MEMORY_THRESHOLD) { 95 return Utility.fromAscii(bytes);
|
/packages/apps/Exchange/src/com/android/exchange/adapter/ |
H A D | ItemOperationsParser.java | 103 * @param length the number of expected bytes we're going to read 109 final byte[] bytes = new byte[CHUNK_SIZE]; 116 final int read = inputStream.read(bytes, 0, CHUNK_SIZE); 124 // Write these bytes out 125 outputStream.write(bytes, 0, read);
|
/packages/apps/Exchange/tests/src/com/android/exchange/utility/ |
H A D | SimpleIcsWriterTests.java | 70 * @return a String of {@code length} bytes in UTF-8. 83 final byte[] bytes = ics.getBytes(); 85 // Verify that no lines are longer than 75 bytes. 87 for (byte b : bytes) { 102 final String actual = Utility.fromUtf8(bytes);
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | SizeClustering.java | 115 long bytes = SIZE_LEVELS[index]; 116 if (bytes >= GIGA_BYTES) { 117 return (bytes / GIGA_BYTES) + "GB"; 119 return (bytes / MEGA_BYTES) + "MB";
|
/packages/apps/Gallery2/jni_jpegstream/src/ |
H A D | jpeg_writer.cpp | 116 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;
|