/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | FrameManager.java | 217 //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 D | TestWebServer.java | 433 * @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 D | ScanResult.java | 304 * 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 D | jni_helper.cpp | 611 void JNIHelper::setByteArrayRegion(jbyteArray array, int from, int to, jbyte *bytes) { argument 612 mEnv->SetByteArrayRegion(array, from, to, bytes);
|
H A D | com_android_server_wifi_WifiNative.cpp | 496 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 D | VCardUtils.java | 60 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 D | NetworkStatsHistory.java | 232 * 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 D | MediaFormat.java | 173 /** 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 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/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsState.java | 301 + " 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 D | SettingsBackupAgent.java | 586 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 D | FLACExtractor.cpp | 156 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 D | MPEG4Writer.cpp | 545 // - 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 D | android_hardware_Camera.cpp | 235 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 D | AndroidRuntime.cpp | 986 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 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/native/cmds/atrace/ |
H A D | atrace.cpp | 723 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 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/opt/telephony/src/java/com/google/android/mms/pdu/ |
H A D | PduPersister.java | 1531 public static String toIsoString(byte[] bytes) { argument 1533 return new String(bytes, CharacterSets.MIMENAME_ISO_8859_1);
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | StagefrightRecorder.cpp | 337 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 D | Camera2Device.cpp | 979 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 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/rs/ |
H A D | rsContext.cpp | 917 // 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 D | com_android_server_location_GpsLocationProvider.cpp | 741 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 D | WifiNative.java | 1449 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...] |