/packages/apps/Email/src/org/apache/james/mime4j/codec/ |
D | EncoderUtil.java | 336 byte[] bytes = encode(text, charset); in encodeEncodedWord() 339 encoding = determineEncoding(bytes, usage); in encodeEncodedWord() 343 return encodeB(prefix, text, usedCharacters, charset, bytes); in encodeEncodedWord() 346 return encodeQ(prefix, text, usage, usedCharacters, charset, bytes); in encodeEncodedWord() 358 public static String encodeB(byte[] bytes) { in encodeB() argument 362 final int end = bytes.length; in encodeB() 364 int data = (bytes[idx] & 0xff) << 16 | (bytes[idx + 1] & 0xff) << 8 in encodeB() 365 | bytes[idx + 2] & 0xff; in encodeB() 373 int data = (bytes[idx] & 0xff) << 16 | (bytes[idx + 1] & 0xff) << 8; in encodeB() 380 int data = (bytes[idx] & 0xff) << 16; in encodeB() [all …]
|
/packages/apps/Browser/tests/src/com/android/browser/ |
D | WebStorageSizeManagerUnitTests.java | 77 private long bytes(double megabytes) { in bytes() method in WebStorageSizeManagerUnitTests 88 mDiskInfo.setTotalSizeBytes(bytes(75)); in testCallbacks() 89 mDiskInfo.setFreeSpaceSizeBytes(bytes(24)); in testCallbacks() 96 long origin1EstimatedSize = bytes(3.5); in testCallbacks() 104 long origin2EstimatedSize = bytes(2.5); in testCallbacks() 127 long origin3EstimatedSize = bytes(5); in testCallbacks() 145 manager.onExceededDatabaseQuota("4", "4", 0, bytes(1), totalUsedQuota, mQuotaUpdater); in testCallbacks() 149 mAppCacheInfo.setAppCacheSizeBytes(bytes(2)); in testCallbacks() 151 manager.onReachedMaxAppCacheSize(bytes(2), totalUsedQuota, mQuotaUpdater); in testCallbacks() 159 manager.onReachedMaxAppCacheSize(bytes(1.5), totalUsedQuota, mQuotaUpdater); in testCallbacks() [all …]
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | Utils.java | 74 public static String formatBytes(Context context, double bytes) { in formatBytes() argument 76 if (bytes > 1000 * 1000) { in formatBytes() 77 return String.format("%.2f MB", ((int) (bytes / 1000)) / 1000f); in formatBytes() 78 } else if (bytes > 1024) { in formatBytes() 79 return String.format("%.2f KB", ((int) (bytes / 10)) / 100f); in formatBytes() 81 return String.format("%d bytes", (int) bytes); in formatBytes()
|
/packages/apps/Email/src/org/apache/commons/io/input/ |
D | NullInputStream.java | 202 public int read(byte[] bytes) throws IOException { in read() argument 203 return read(bytes, 0, bytes.length); in read() 219 public int read(byte[] bytes, int offset, int length) throws IOException { in read() argument 232 processBytes(bytes, offset, returnLength); in read() 309 protected void processBytes(byte[] bytes, int offset, int length) { in processBytes() argument
|
/packages/apps/Email/src/com/android/email/ |
D | Utility.java | 180 byte[] bytes = s.getBytes("UTF-8"); in fastUrlDecode() 183 for (int i = 0, count = bytes.length; i < count; i++) { in fastUrlDecode() 184 ch = bytes[i]; in fastUrlDecode() 186 int h = (bytes[i + 1] - '0'); in fastUrlDecode() 187 int l = (bytes[i + 2] - '0'); in fastUrlDecode() 194 bytes[length] = (byte) ((h << 4) | l); in fastUrlDecode() 198 bytes[length] = ' '; in fastUrlDecode() 201 bytes[length] = bytes[i]; in fastUrlDecode() 205 return new String(bytes, 0, length, "UTF-8"); in fastUrlDecode()
|
/packages/apps/Email/src/com/android/email/mail/internet/ |
D | TextBody.java | 38 byte[] bytes = mBody.getBytes("UTF-8"); in writeTo() 39 out.write(Base64.encodeBase64Chunked(bytes)); in writeTo()
|
/packages/apps/Email/src/org/apache/james/mime4j/decoder/ |
D | DecoderUtil.java | 50 byte[] bytes = s.getBytes("US-ASCII"); in decodeBaseQuotedPrintable() 53 new ByteArrayInputStream(bytes)); in decodeBaseQuotedPrintable() 79 byte[] bytes = s.getBytes("US-ASCII"); in decodeBase64() 82 new ByteArrayInputStream(bytes)); in decodeBase64()
|
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
D | CertInstaller.java | 273 byte[] bytes = mKeyStore.get(PKEY_MAP_KEY); in getPkeyMap() 274 if (bytes != null) { in getPkeyMap() 277 new ObjectInputStream(new ByteArrayInputStream(bytes)); in getPkeyMap() 619 private static String toMd5(byte[] bytes) { in toMd5() argument 623 algorithm.update(bytes); in toMd5() 632 private static String toHexString(byte[] bytes, String separator) { in toHexString() argument 634 for (byte b : bytes) { in toHexString() 672 private void parseCert(byte[] bytes) { in parseCert() argument 673 if (bytes == null) return; in parseCert() 679 new ByteArrayInputStream(bytes)); in parseCert() [all …]
|
/packages/apps/IM/src/com/android/im/imps/ |
D | ImpsLog.java | 44 public static void dumpRawPacket(byte[] bytes) { in dumpRawPacket() argument 45 Log.d(PACKET_TAG, HexDump.dumpHexString(bytes)); in dumpRawPacket()
|
D | SmsCirChannel.java | 95 byte[] bytes = GsmAlphabet.stringToGsm7BitPacked(data); in sendHelo() 96 mSmsService.sendSms(mAddr, mPort, bytes, this); in sendHelo()
|
/packages/apps/Mms/src/com/android/mms/util/ |
D | AddressUtils.java | 56 byte[] bytes = PduPersister.getBytes(from); in getFrom() 58 return new EncodedStringValue(charset, bytes) in getFrom()
|
/packages/apps/Email/src/org/apache/commons/io/ |
D | EndianUtils.java | 413 byte[] bytes = new byte[8]; in readSwappedLong() 415 bytes[i] = (byte) read( input ); in readSwappedLong() 417 return readSwappedLong( bytes, 0 ); in readSwappedLong()
|
D | FileSystemUtils.java | 364 long bytes = Long.parseLong(freeSpace); in parseBytes() local 365 if (bytes < 0) { in parseBytes() 370 return bytes; in parseBytes()
|
D | IOUtils.java | 594 byte[] bytes = input.getBytes(); in toInputStream() 595 return new ByteArrayInputStream(bytes); in toInputStream() 612 byte[] bytes = encoding != null ? input.getBytes(encoding) : input.getBytes(); in toInputStream() 613 return new ByteArrayInputStream(bytes); in toInputStream()
|
/packages/apps/Mms/src/com/android/mms/model/ |
D | MediaModelFactory.java | 114 byte[] bytes = part.getContentType(); in getGenericMediaModel() 115 if (bytes == null) { in getGenericMediaModel() 120 String contentType = new String(bytes); in getGenericMediaModel()
|
/packages/apps/IM/libwbxml/src/ |
D | wbxml_jni.cpp | 279 jbyte * bytes = env->GetByteArrayElements(buf, ©); in parserParse() local 291 if (parser->parse((char*)bytes, len, isEnd) != WBXML_STATUS_OK) { in parserParse() 304 env->ReleaseByteArrayElements(buf, bytes, JNI_ABORT); in parserParse() 307 env->ReleaseByteArrayElements(buf, bytes, JNI_ABORT); in parserParse()
|
/packages/apps/Email/src/com/android/exchange/ |
D | EasSyncService.java | 333 byte[] bytes = new byte[CHUNK_SIZE]; in getAttachment() 340 int read = is.read(bytes, 0, CHUNK_SIZE); in getAttachment() 352 os.write(bytes, 0, read); in getAttachment() 430 protected HttpResponse sendHttpClientPost(String cmd, byte[] bytes) throws IOException { in sendHttpClientPost() argument 431 return sendHttpClientPost(cmd, new ByteArrayEntity(bytes), COMMAND_TIMEOUT); in sendHttpClientPost() 438 protected HttpResponse sendPing(byte[] bytes, int heartbeat) throws IOException { in sendPing() argument 443 return sendHttpClientPost(PING_COMMAND, new ByteArrayEntity(bytes), (heartbeat+5)*SECONDS); in sendPing()
|
/packages/apps/Email/src/com/android/email/mail/transport/ |
D | Rfc822Output.java | 324 byte[] bytes = text.getBytes("UTF-8"); in writeTextWithHeaders() 326 out.write(Base64.encodeBase64Chunked(bytes)); in writeTextWithHeaders()
|
/packages/apps/Browser/src/com/android/browser/ |
D | WebsiteSettingsActivity.java | 322 public String sizeValueToString(long bytes) { in sizeValueToString() argument 325 if (bytes <= 0) { in sizeValueToString() 329 float megabytes = (float) bytes / (1024.0F * 1024.0F); in sizeValueToString()
|
/packages/apps/Settings/src/com/android/settings/ |
D | RadioInfo.java | 819 String bytes = r.getString(R.string.radioInfo_display_bytes); in updateDataStats2() local 821 sent.setText(txPackets + " " + packets + ", " + txBytes + " " + bytes); in updateDataStats2() 822 received.setText(rxPackets + " " + packets + ", " + rxBytes + " " + bytes); in updateDataStats2()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | LegacyApiSupport.java | 1167 byte[] bytes = values.getAsByteArray(android.provider.Contacts.Photos.DATA); in updatePhoto() 1168 mValues.put(Photo.PHOTO, bytes); in updatePhoto() 1199 byte[] bytes = values.getAsByteArray(android.provider.Contacts.Photos.DATA); in updatePhotoByDataId() 1201 mValues.put(Photo.PHOTO, bytes); in updatePhotoByDataId()
|