Searched refs:bytes (Results 51 - 75 of 115) sorted by relevance

12345

/frameworks/support/volley/src/com/android/volley/toolbox/
H A DBasicNetwork.java202 PoolingByteArrayOutputStream bytes =
213 bytes.write(buffer, 0, count);
215 return bytes.toByteArray();
226 bytes.close();
H A DDiskBasedCache.java47 /** Total amount of space currently used by the cache in bytes. */
53 /** The maximum size of the cache in bytes. */
56 /** Default maximum disk usage in bytes. */
68 * @param maxCacheSizeInBytes The maximum size of the cache in bytes.
238 * Prunes the cache to fit the amount of bytes specified.
239 * @param neededSpace The amount of bytes we are trying to fit into the cache.
273 VolleyLog.v("pruned %d files, %d bytes, %d ms",
308 byte[] bytes = new byte[length];
311 while (pos < length && ((count = in.read(bytes, pos, length - pos)) != -1)) {
315 throw new IOException("Expected " + length + " bytes, rea
[all...]
/frameworks/av/media/libstagefright/
H A DFLACExtractor.cpp156 FLAC__byte buffer[], size_t *bytes);
172 FLAC__byte buffer[], size_t *bytes,
212 size_t *bytes, void *client_data)
214 return ((FLACParser *) client_data)->readCallback(buffer, bytes);
268 FLAC__byte buffer[], size_t *bytes)
270 size_t requested = *bytes;
273 *bytes = 0;
276 *bytes = 0;
281 *bytes = actual;
210 read_callback( const FLAC__StreamDecoder *decoder, FLAC__byte buffer[], size_t *bytes, void *client_data) argument
267 readCallback( FLAC__byte buffer[], size_t *bytes) argument
/frameworks/base/core/java/android/util/
H A DLog.java277 int bytes = println_native(LOG_ID_MAIN, ASSERT, tag, msg + '\n' + getStackTraceString(tr));
279 return bytes;
329 * @return The number of bytes written.
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DLearning_StochasticLinearRanker.java114 byte[] bytes = byteStream.toByteArray();
115 return bytes;
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DFrame.java112 public void setData(byte[] bytes, int offset, int length) { argument
113 setData(ByteBuffer.wrap(bytes, offset, length));
H A DNativeFrame.java149 byte[] bytes = buffer.array();
152 (length + offset) + " bytes given, but only " + buffer.limit() +
153 " bytes available!");
156 "Frame size is " + getFormat().getSize() + " bytes, but " +
157 length + " bytes given!");
158 } else if (!setNativeData(bytes, offset, length)) {
H A DGLFrame.java84 throw new IllegalArgumentException("GL frames must have 4 bytes per sample!");
210 byte[] bytes = buffer.array();
211 if (getFormat().getSize() != bytes.length) {
213 } else if (!setNativeData(bytes, offset, length)) {
/frameworks/av/include/media/stagefright/
H A DAudioSource.h97 uint8_t *data, size_t bytes);
/frameworks/base/keystore/java/android/security/
H A DKeyStore.java33 * assumes that private and secret key bytes are available and would
328 private static String toKeyString(byte[] bytes) { argument
330 return ModifiedUtf8.decode(bytes, new char[bytes.length], 0, bytes.length);
H A DKeyChain.java142 * encoded bytes with {@link X509Certificate#getEncoded}.
153 * install. The extra value should be a {@code byte[]}. The bytes
191 * #EXTRA_PKCS12} maybe used to specify the bytes of an X.509
354 private static X509Certificate toCertificate(byte[] bytes) { argument
355 if (bytes == null) {
356 throw new IllegalArgumentException("bytes == null");
360 Certificate cert = certFactory.generateCertificate(new ByteArrayInputStream(bytes));
H A DAndroidKeyStore.java143 private static X509Certificate toCertificate(byte[] bytes) { argument
147 .generateCertificate(new ByteArrayInputStream(bytes));
155 private static Collection<X509Certificate> toCertificates(byte[] bytes) { argument
159 .generateCertificates(new ByteArrayInputStream(bytes));
/frameworks/base/services/java/com/android/server/
H A DPackageManagerBackupAgent.java244 private static void writeEntity(BackupDataOutput data, String key, byte[] bytes) argument
246 data.writeEntityHeader(key, bytes.length);
247 data.writeEntityData(bytes, bytes.length);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
H A DModelInterpreter.java383 pdu.append ("00"); //SMSC address - 0 bytes
654 byte[] bytes = s.getBytes("US-ASCII");
658 out.write(bytes);
671 byte[] bytes = s.getBytes("US-ASCII");
675 out.write(bytes);
/frameworks/base/media/mca/filterfw/jni/
H A Djni_native_frame.cpp60 jbyte* bytes = env->GetByteArrayElements(data, NULL); local
61 if (bytes) {
62 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(bytes + offset),
65 env->ReleaseByteArrayElements(data, bytes, JNI_ABORT);
207 ALOGE("Unsupported bytes-per-pixel %d in setBitmap!", bytes_per_sample);
259 ALOGE("Unsupported bytes-per-pixel %d in getBitmap!", bytes_per_sample);
H A Djni_gl_frame.cpp119 jbyte* bytes = env->GetByteArrayElements(data, NULL); local
120 if (bytes) {
121 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(bytes + offset), length);
122 env->ReleaseByteArrayElements(data, bytes, JNI_ABORT);
/frameworks/base/core/jni/
H A Dandroid_emoji_EmojiFactory.cpp168 const char *bytes = factory->GetImageBinaryFromAndroidPua(pua, &size); local
169 if (bytes == NULL) {
174 if (!SkImageDecoder::DecodeMemory(bytes, size, bitmap)) {
H A Dandroid_util_EventLog.cpp210 jbyte *bytes = env->GetByteArrayElements(array, NULL); local
211 memcpy(bytes, buf, len);
212 env->ReleaseByteArrayElements(array, bytes, 0);
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsBackupAgent.java422 if (DEBUG_BACKUP) Log.d(TAG, systemSettingsData.length + " bytes of settings data");
425 if (DEBUG_BACKUP) Log.d(TAG, secureSettingsData.length + " bytes of secure settings data");
428 if (DEBUG_BACKUP) Log.d(TAG, globalSettingsData.length + " bytes of global settings data");
431 if (DEBUG_BACKUP) Log.d(TAG, locale.length + " bytes of locale data");
434 if (DEBUG_BACKUP) Log.d(TAG, wifiSupplicantData.length + " bytes of wifi supplicant data");
437 if (DEBUG_BACKUP) Log.d(TAG, wifiConfigData.length + " bytes of wifi config data");
471 if (DEBUG_BACKUP) Log.d(TAG, nBytes + " bytes of settings data");
478 if (DEBUG_BACKUP) Log.d(TAG, nBytes + " bytes of secure settings data");
486 if (DEBUG_BACKUP) Log.d(TAG, nBytes + " bytes of global settings data");
495 if (DEBUG_BACKUP) Log.d(TAG, nBytes + " bytes o
619 restoreSettings(byte[] settings, int bytes, Uri contentUri, HashSet<String> movedToGlobal) argument
795 restoreFileData(String filename, byte[] bytes, int size) argument
847 restoreWifiSupplicant(String filename, byte[] bytes, int size) argument
[all...]
/frameworks/base/tools/layoutlib/create/tests/com/android/tools/layoutlib/create/
H A DDelegateClassAdapterTest.java324 // Load the modified ClassWithNative from its bytes representation.
333 byte[] bytes = cw.toByteArray();
334 return defineClass(name, bytes, 0, bytes.length);
440 byte[] bytes = entry.getValue();
447 ClassReader cr2 = new ClassReader(bytes);
/frameworks/native/opengl/libs/GLES_trace/
H A Dgltrace.proto533 repeated bytes charValue = 5;
534 repeated bytes rawBytes = 6;
541 repeated bytes contents = 3;
/frameworks/native/libs/utils/
H A DBasicHashtable.cpp242 size_t bytes = count * mBucketSize; local
243 SharedBuffer* sb = SharedBuffer::alloc(bytes);
244 LOG_ALWAYS_FATAL_IF(!sb, "Could not allocate %u bytes for hashtable with %u buckets.",
245 uint32_t(bytes), uint32_t(count));
H A DUnicode.cpp58 // indexed by number of bytes in the sequence.
76 * Return number of UTF-8 bytes required for the character. If the character
81 // Figure out how many bytes the result will require.
105 static inline void utf32_codepoint_to_utf8(uint8_t* dstP, char32_t srcChar, size_t bytes) argument
107 dstP += bytes;
108 switch (bytes)
113 case 1: *--dstP = (uint8_t)(srcChar | kFirstByteMark[bytes]);
417 // surrogate pairs are always 4 bytes.
/frameworks/base/media/jni/
H A Dandroid_media_MediaScanner.cpp314 jbyte* bytes = env->GetByteArrayElements(array, NULL); local
315 memcpy(bytes, data + 4, len);
316 env->ReleaseByteArrayElements(array, bytes, 0);
H A Dandroid_media_MediaMetadataRetriever.cpp238 ALOGV("Dimension = %dx%d and bytes = %d",
328 jbyte* bytes = env->GetByteArrayElements(array, NULL); local
329 if (bytes != NULL) {
330 memcpy(bytes, data, len);
331 env->ReleaseByteArrayElements(array, bytes, 0);

Completed in 587 milliseconds

12345