/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
H A D | DiskBasedCache.java | 50 /** Total amount of space currently used by the cache in bytes. */ 56 /** The maximum size of the cache in bytes. */ 59 /** Default maximum disk usage in bytes. */ 71 * @param maxCacheSizeInBytes The maximum size of the cache in bytes. 253 * Prunes the cache to fit the amount of bytes specified. 254 * @param neededSpace The amount of bytes we are trying to fit into the cache. 288 VolleyLog.v("pruned %d files, %d bytes, %d ms", 323 byte[] bytes = new byte[length]; 326 while (pos < length && ((count = in.read(bytes, pos, length - pos)) != -1)) { 330 throw new IOException("Expected " + length + " bytes, rea [all...] |
/frameworks/base/services/backup/java/com/android/server/backup/ |
H A D | PackageManagerBackupAgent.java | 351 private static void writeEntity(BackupDataOutput data, String key, byte[] bytes) argument 353 data.writeEntityHeader(key, bytes.length); 354 data.writeEntityData(bytes, bytes.length); 468 // if the blocks are all 256 bits (32 bytes) then we take them to be SHA-256 hashes;
|
/frameworks/base/tools/layoutlib/create/tests/com/android/tools/layoutlib/create/ |
H A D | AsmGeneratorTest.java | 423 final byte[] bytes; 425 bytes = getByteArray(inputStream); 431 return defineClass(null, bytes, 0, bytes.length);
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | StagefrightRecorder.cpp | 336 size_t num_bytes = s->bytes(); 437 status_t StagefrightRecorder::setParamMaxFileSizeBytes(int64_t bytes) { argument 438 ALOGV("setParamMaxFileSizeBytes: %lld bytes", (long long)bytes); 441 if (bytes <= 0) { 442 ALOGW("Max file size is not positive: %lld bytes. " 443 "Disabling file size limit.", (long long)bytes); 444 bytes = 0; // Disable the file size limit for zero or negative values. 445 } else if (bytes <= 1024) { // XXX: 1 kB 446 ALOGE("Max file size is too small: %lld bytes", (lon [all...] |
H A D | StagefrightRecorder.h | 182 status_t setParamMaxFileSizeBytes(int64_t bytes);
|
/frameworks/av/media/libstagefright/ |
H A D | AudioSource.cpp | 204 uint8_t *data, size_t bytes) { 209 int32_t stopFrame = startFrame + bytes / sizeof(int16_t); 339 // Convert number of frames lost to number of bytes lost. 348 ALOGW("Lost audio record data: %zu bytes", numLostBytes); 202 rampVolume( int32_t startFrame, int32_t rampDurationFrames, uint8_t *data, size_t bytes) argument
|
H A D | MPEG4Writer.cpp | 571 // - meta header structures, which occur only once (total 66 bytes) 572 // - size for each key, which consists of a fixed header (32 bytes), 650 ALOGI("limits: %" PRId64 "/%" PRId64 " bytes/us, bit rate: %d bps and the" 651 " estimated moov size %" PRId64 " bytes", 687 ALOGW("32-bit file size limit (%" PRId64 " bytes) too big. " 688 "It is changed to %" PRId64 " bytes", 1202 const size_t bytes = size * nmemb; local 1205 off64_t moovBoxSize = 8 + mMoovBoxBufferOffset + bytes; 1220 ::write(mFd, ptr, bytes); 1221 mOffset += (bytes [all...] |
/frameworks/base/services/net/java/android/net/dhcp/ |
H A D | DhcpPacket.java | 67 * larger than 1500 bytes even if the network supports it. 78 * IP: Version 4, Header Length 20 bytes 425 (HWADDR_LEN - mClientMac.length) // pad addr to 16 bytes 426 + 64 // empty server host name (64 bytes) 427 + 128); // empty boot file name (128 bytes) 530 * Adds an optional parameter containing an array of bytes. 645 // allows signed bytes to be converted correctly. 686 byte[] bytes = new byte[byteCount]; 687 buf.get(bytes); 688 int length = bytes [all...] |
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcTestLib.cpp | 550 size_t bytes; member in struct:attrib 595 pixel >>= sizeof(pixel) * BITSPERBYTE - attrib->bytes * BITSPERBYTE; 610 size_t bytes; member in struct:attrib 648 memmove(buf + ((gBuf->getStride() * attrib->bytes) * y) 649 + (attrib->bytes * x), &pixel, attrib->bytes);
|
/frameworks/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/ |
H A D | CameraOps.java | 214 byte[] bytes = new byte[buffer.remaining()]; 215 buffer.get(bytes); 216 imageOut.write(bytes);
|
/frameworks/base/telephony/java/android/telephony/ |
H A D | PhoneNumberUtils.java | 792 * @param bytes the data buffer 794 * @param length is the number of bytes including TOA byte 803 calledPartyBCDToString (byte[] bytes, int offset, int length) { argument 812 if ((bytes[offset] & 0xf0) == (TOA_International & 0xf0)) { 817 ret, bytes, offset + 1, length - 1); 904 StringBuilder sb, byte [] bytes, int offset, int length) { 909 c = bcdToChar((byte)(bytes[i] & 0xf)); 923 b = (byte)((bytes[i] >> 4) & 0xf); 946 calledPartyBCDFragmentToString(byte [] bytes, int offset, int length) { argument 949 internalCalledPartyBCDFragmentToString(ret, bytes, offse 903 internalCalledPartyBCDFragmentToString( StringBuilder sb, byte [] bytes, int offset, int length) argument [all...] |
/frameworks/base/core/jni/ |
H A D | AndroidRuntime.cpp | 953 jstring AndroidRuntime::NewStringLatin1(JNIEnv* env, const char* bytes) { argument 954 if (!bytes) return NULL; 955 int length = strlen(bytes); 960 *chp++ = *bytes++;
|
/frameworks/base/drm/jni/ |
H A D | android_drm_DrmManagerClient.cpp | 78 char* bytes = const_cast< char* > (env->GetStringUTFChars(string, NULL)); local 80 const int length = strlen(bytes) + 1; 82 strncpy(data, bytes, length); 85 env->ReleaseStringUTFChars(string, bytes);
|
/frameworks/base/keystore/java/android/security/keystore/ |
H A D | AndroidKeyStoreSpi.java | 215 private static X509Certificate toCertificate(byte[] bytes) { argument 219 new ByteArrayInputStream(bytes)); 227 private static Collection<X509Certificate> toCertificates(byte[] bytes) { argument 231 new ByteArrayInputStream(bytes));
|
/frameworks/base/media/jni/audioeffect/ |
H A D | android_media_AudioEffect.cpp | 105 jbyte *bytes; local 158 bytes = env->GetByteArrayElements(array, NULL); 159 memcpy(bytes, p, size); 160 env->ReleaseByteArrayElements(array, bytes, 0);
|
/frameworks/opt/net/wifi/service/jni/ |
H A D | com_android_server_wifi_WifiNative.cpp | 231 jbyte * bytes = (jbyte *)&(result->ie_data[0]); local 232 helper.setByteArrayRegion(elements, 0, result->ie_length, bytes); 233 helper.setObjectField(scanResult, "bytes", "[B", elements); 1166 jbyte *bytes = (jbyte *)&(result->LCI->data[0]); local 1167 helper.setByteArrayRegion(elements, 0, result->LCI->len, bytes); 1182 jbyte *bytes = (jbyte *)&(result->LCR->data[0]); local 1183 helper.setByteArrayRegion(elements, 0, result->LCI->len, bytes); 1370 static const unsigned oui_len = 3; /* OUI is upper 3 bytes of mac_address */ 1378 jbyte* bytes = paramBytes.get(); local 1379 if (bytes 1789 JNIObject<jbyteArray> bytes = helper.newByteArray(buffer_size); local 1805 jbyte *bytes = (jbyte *) buffer; local 1862 jbyte *bytes = (jbyte *) (buffer); local [all...] |
H A D | jni_helper.h | 124 void setByteArrayRegion(jbyteArray array, int from, int to, const jbyte *bytes);
|
H A D | jni_helper.cpp | 665 void JNIHelper::setByteArrayRegion(jbyteArray array, int from, int to, const jbyte *bytes) { argument 666 mEnv->SetByteArrayRegion(array, from, to, bytes);
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
H A D | ScanResults.java | 86 ie.bytes = ssid.getBytes(Charset.forName("UTF-8"));
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | LockPatternUtils.java | 1024 final byte[] bytes = string.getBytes(); 1025 for (int i = 0; i < bytes.length; i++) { 1026 byte b = (byte) (bytes[i] - '1'); 1058 final byte[] bytes = pattern.getBytes(); 1060 res[i] = (byte) (bytes[i] - '1');
|
/frameworks/base/core/tests/coretests/src/android/database/ |
H A D | DatabaseGeneralTest.java | 754 byte[] bytes = new byte[42]; 755 Arrays.fill(bytes, (byte) 0x28); 756 values.put("byteArray", bytes); 757 assertTrue(Arrays.equals(bytes, values.getAsByteArray("byteArray"))); 766 assertTrue(Arrays.equals(bytes, values.getAsByteArray("byteArray")));
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
H A D | ExifInterfaceTest.java | 472 byte[] bytes = new byte[1024]; 474 new ExifInterface(new ByteArrayInputStream(bytes));
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
H A D | MtpDocumentsProvider.java | 356 pipe[0].close(); // 0 bytes for a new document. 638 long fileHandle, int inode, long offset, int size, byte[] bytes) 647 return writer.write(offset, size, bytes); 637 writeObjectBytes( long fileHandle, int inode, long offset, int size, byte[] bytes) argument
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | SearchBar.java | 645 public void onBufferReceived(byte[] bytes) { 646 if (DEBUG) Log.v(TAG, "onBufferReceived " + bytes.length);
|
/frameworks/base/core/java/android/net/ |
H A D | Uri.java | 1887 // Convert the substring to bytes and encode the bytes as 1891 byte[] bytes = toEncode.getBytes(DEFAULT_ENCODING); 1892 int bytesLength = bytes.length; 1895 encoded.append(HEX_DIGITS[(bytes[i] & 0xf0) >> 4]); 1896 encoded.append(HEX_DIGITS[bytes[i] & 0xf]);
|