Searched defs:bytes (Results 51 - 75 of 93) sorted by relevance

1234

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DFrameManager.java217 //Log.i("FM", "Reserving " + size + " bytes (max: " + mCacheMaxSize + " bytes).");
289 * Resizes the cache to the specified size in bytes.
291 * @param bytes the new size in bytes.
293 public void setCacheSize(int bytes) { argument
294 mCache.setSize(bytes);
300 * @return the size of the cache in bytes.
/frameworks/base/tests/CoreTests/android/core/
H A DTestWebServer.java433 * @return number of bytes read
471 * @return number of bytes read
495 * @return number of bytes read
565 * @return number of bytes read
603 * @return number of bytes read
624 * @return number of bytes read
757 // Print bytes to log and output stream
758 void psWrite(PrintStream ps, byte[] bytes, int len) throws IOException { argument
759 log(new String(bytes));
760 ps.write(bytes,
[all...]
/frameworks/base/wifi/java/android/net/wifi/
H A DScanResult.java304 * storing the raw bytes of full result IEs
306 public byte[] bytes; field in class:ScanResult
313 public byte[] bytes; field in class:ScanResult.InformationElement
320 this.bytes = rhs.bytes.clone();
506 dest.writeInt(informationElements[i].bytes.length);
507 dest.writeByteArray(informationElements[i].bytes);
555 sr.informationElements[i].bytes = new byte[len];
556 in.readByteArray(sr.informationElements[i].bytes);
/frameworks/opt/net/wifi/service/jni/
H A Djni_helper.cpp611 void JNIHelper::setByteArrayRegion(jbyteArray array, int from, int to, jbyte *bytes) { argument
612 mEnv->SetByteArrayRegion(array, from, to, bytes);
H A Dcom_android_server_wifi_WifiNative.cpp496 jbyte *bytes = (jbyte *)&(result->ie_data[0]); local
497 helper.setByteArrayRegion(elements, 0, result->ie_length, bytes);
1145 jbyte *bytes = (jbyte *)&(result->LCI->data[0]); local
1146 helper.setByteArrayRegion(elements, 0, result->LCI->len, bytes);
1161 jbyte *bytes = (jbyte *)&(result->LCR->data[0]); local
1162 helper.setByteArrayRegion(elements, 0, result->LCI->len, bytes);
1281 static const unsigned oui_len = 3; /* OUI is upper 3 bytes of mac_address */
1289 const jbyte* bytes = paramBytes.get(); local
1290 if (bytes == NULL) {
1295 return hal_fn.wifi_set_scanning_mac_oui(handle, (byte *)bytes)
1649 JNIObject<jbyteArray> bytes = helper.newByteArray(buffer_size); local
1665 jbyte *bytes = (jbyte *) buffer; local
1722 jbyte *bytes = (jbyte *) (buffer); local
1814 jbyte *bytes; local
[all...]
/frameworks/opt/vcard/java/com/android/vcard/
H A DVCardUtils.java60 public static final byte[] decodeQuotedPrintable(byte[] bytes) argument
62 if (bytes == null) {
66 for (int i = 0; i < bytes.length; i++) {
67 int b = bytes[i];
70 int u = Character.digit((char) bytes[++i], 16);
71 int l = Character.digit((char) bytes[++i], 16);
655 * Guesses the format of input image. Currently just the first few bytes are used.
841 final byte[] bytes = new byte[byteBuffer.remaining()];
842 byteBuffer.get(bytes);
844 return new String(bytes, targetCharse
[all...]
/frameworks/base/core/java/android/net/
H A DNetworkStatsHistory.java232 * Return total bytes represented by this history.
529 public void generateRandom(long start, long end, long bytes) { argument
533 final long rxBytes = (long) (bytes * fractionRx);
534 final long txBytes = (long) (bytes * (1 - fractionRx));
/frameworks/base/media/java/android/media/
H A DMediaFormat.java173 /** A key describing the maximum size in bytes of a buffer of data
237 * The associated value is an integer, representing number of bytes.
684 public final void setByteBuffer(String name, ByteBuffer bytes) { argument
685 mMap.put(name, bytes);
/frameworks/base/media/jni/audioeffect/
H A Dandroid_media_AudioEffect.cpp105 jbyte *bytes; local
158 bytes = env->GetByteArrayElements(array, NULL);
159 memcpy(bytes, p, size);
160 env->ReleaseByteArrayElements(array, bytes, 0);
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsState.java301 + " size: " + newSize + " bytes.");
646 private static String fromBytes(byte[] bytes) { argument
647 final StringBuffer sb = new StringBuffer(bytes.length / 2);
649 final int last = bytes.length - 1;
652 final char ch = (char) ((bytes[i] & 0xff) << 8 | (bytes[i + 1] & 0xff));
H A DSettingsBackupAgent.java586 if (DEBUG_BACKUP) Log.d(TAG, systemSettingsData.length + " bytes of settings data");
589 if (DEBUG_BACKUP) Log.d(TAG, secureSettingsData.length + " bytes of secure settings data");
592 if (DEBUG_BACKUP) Log.d(TAG, globalSettingsData.length + " bytes of global settings data");
595 if (DEBUG_BACKUP) Log.d(TAG, locale.length + " bytes of locale data");
598 if (DEBUG_BACKUP) Log.d(TAG, wifiSupplicantData.length + " bytes of wifi supplicant data");
601 if (DEBUG_BACKUP) Log.d(TAG, wifiConfigData.length + " bytes of wifi config data");
604 if (DEBUG_BACKUP) Log.d(TAG, lockSettingsData.length + " bytes of lock settings data");
638 if (DEBUG_BACKUP) Log.d(TAG, nBytes + " bytes of settings data");
645 if (DEBUG_BACKUP) Log.d(TAG, nBytes + " bytes of secure settings data");
653 if (DEBUG_BACKUP) Log.d(TAG, nBytes + " bytes o
824 restoreSettings(byte[] settings, int bytes, Uri contentUri, HashSet<String> movedToGlobal) argument
1044 restoreFileData(String filename, byte[] bytes, int size) argument
1091 restoreWifiSupplicant(String filename, byte[] bytes, int size) argument
[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 * , FLAC__byte buffer[], size_t *bytes, void *client_data) argument
267 readCallback( FLAC__byte buffer[], size_t *bytes) argument
H A DMPEG4Writer.cpp545 // - meta header structures, which occur only once (total 66 bytes)
546 // - size for each key, which consists of a fixed header (32 bytes),
624 ALOGI("limits: %" PRId64 "/%" PRId64 " bytes/us, bit rate: %d bps and the"
625 " estimated moov size %" PRId64 " bytes",
661 ALOGW("32-bit file size limit (%" PRId64 " bytes) too big. "
662 "It is changed to %" PRId64 " bytes",
1172 const size_t bytes = size * nmemb; local
1175 off64_t moovBoxSize = 8 + mMoovBoxBufferOffset + bytes;
1190 ::write(mFd, ptr, bytes);
1191 mOffset += (bytes
[all...]
/frameworks/base/core/jni/
H A Dandroid_hardware_Camera.cpp235 ALOGE("Callback buffer was too small! Expected %zu bytes, but got %d bytes!",
720 static void android_hardware_Camera_addCallbackBuffer(JNIEnv *env, jobject thiz, jbyteArray bytes, jint msgType) { argument
726 context->addCallbackBuffer(env, bytes, msgType);
H A DAndroidRuntime.cpp986 jstring AndroidRuntime::NewStringLatin1(JNIEnv* env, const char* bytes) { argument
987 if (!bytes) return NULL;
988 int length = strlen(bytes);
993 *chp++ = *bytes++;
/frameworks/base/drm/jni/
H A Dandroid_drm_DrmManagerClient.cpp78 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/native/cmds/atrace/
H A Datrace.cpp723 size_t bytes = bufSize - zs.avail_out; local
724 result = write(STDOUT_FILENO, out, bytes);
725 if ((size_t)result < bytes) {
/frameworks/native/opengl/tests/hwc/
H A DhwcTestLib.cpp550 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/opt/telephony/src/java/com/google/android/mms/pdu/
H A DPduPersister.java1531 public static String toIsoString(byte[] bytes) { argument
1533 return new String(bytes, CharacterSets.MIMENAME_ISO_8859_1);
/frameworks/av/media/libmediaplayerservice/
H A DStagefrightRecorder.cpp337 size_t num_bytes = s->bytes();
437 status_t StagefrightRecorder::setParamMaxFileSizeBytes(int64_t bytes) { argument
438 ALOGV("setParamMaxFileSizeBytes: %lld bytes", bytes);
441 if (bytes <= 0) {
442 ALOGW("Max file size is not positive: %lld bytes. "
443 "Disabling file size limit.", 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", byte
[all...]
/frameworks/av/services/camera/libcameraservice/device2/
H A DCamera2Device.cpp979 size_t entries, size_t bytes,
984 allocate_camera_metadata(entries, bytes);
977 producer_dequeue( const camera2_frame_queue_dst_ops_t * , size_t entries, size_t bytes, camera_metadata_t **buffer) argument
/frameworks/base/telephony/java/android/telephony/
H A DPhoneNumberUtils.java792 * @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/rs/
H A DrsContext.cpp917 // RsPlaybackRemoteHeader (cmdID and bytes)
921 uint32_t bytes; member in struct:android::renderscript::destroyCmd
927 cmd.bytes = sizeof(RsAsyncVoidPtr);
/frameworks/base/services/core/jni/
H A Dcom_android_server_location_GpsLocationProvider.cpp741 jbyte* bytes = (jbyte *)env->GetPrimitiveArrayCritical(data, 0); local
742 sGpsXtraInterface->inject_xtra_data((char *)bytes, length);
743 env->ReleasePrimitiveArrayCritical(data, bytes, JNI_ABORT);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiNative.java1449 static void populateScanResult(ScanResult result, byte bytes[], String dbg) { argument
1451 if (bytes == null) return;
1453 for (int i = 0; i < bytes.length - 1; ) {
1454 int type = bytes[i] & 0xFF;
1455 int len = bytes[i + 1] & 0xFF;
1456 if (i + len + 2 > bytes.length) {
1462 if (DBG) Log.i(TAG, dbg + "bytes[" + i + "] = [" + type + ", " + len + "]" + ", " +
1476 int type = bytes[index] & 0xFF;
1477 int len = bytes[index + 1] & 0xFF;
1481 elem.bytes
1558 onFullScanResult(int id, ScanResult result, byte bytes[]) argument
[all...]

Completed in 1334 milliseconds

1234