/frameworks/base/core/java/android/net/ |
H A D | IpReachabilityMonitor.java | 111 final ByteBuffer bytes = nlSocket.recvMessage(IO_TIMEOUT); 112 final NetlinkMessage response = NetlinkMessage.parse(bytes); 119 if (bytes == null) { 122 bytes.position(0); 123 errmsg = "raw bytes: " + NetlinkConstants.hexify(bytes);
|
/frameworks/base/tools/layoutlib/create/tests/com/android/tools/layoutlib/create/ |
H A D | DelegateClassAdapterTest.java | 341 // Load the modified ClassWithNative from its bytes representation. 350 byte[] bytes = cw.toByteArray(); 351 return defineClass(name, bytes, 0, bytes.length); 457 byte[] bytes = entry.getValue(); 464 ClassReader cr2 = new ClassReader(bytes);
|
H A D | AsmGeneratorTest.java | 426 final byte[] bytes; 429 bytes = getByteArray(inputStream); 437 return defineClass(null, bytes, 0, bytes.length);
|
/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...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | BackingStore.java | 750 byte[] bytes = mBuffer.array(); 751 allocation.copyTo(bytes); 858 byte[] bytes; 860 bytes = buffer.array(); 862 bytes = new byte[getSize()]; 863 buffer.get(bytes); 866 mAllocation.copyFromUnchecked(bytes);
|
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/core/jni/ |
H A D | android_util_EventLog.cpp | 229 jbyte *bytes = env->GetByteArrayElements(array, NULL); local 230 memcpy(bytes, log_msg.buf, len); 231 env->ReleaseByteArrayElements(array, bytes, 0);
|
/frameworks/base/keystore/java/android/security/ |
H A D | KeyChain.java | 153 * encoded bytes with {@link X509Certificate#getEncoded}. 164 * install. The extra value should be a {@code byte[]}. The bytes 202 * #EXTRA_PKCS12} maybe used to specify the bytes of an X.509 476 public static X509Certificate toCertificate(@NonNull byte[] bytes) { argument 477 if (bytes == null) { 478 throw new IllegalArgumentException("bytes == null"); 482 Certificate cert = certFactory.generateCertificate(new ByteArrayInputStream(bytes));
|
H A D | Credentials.java | 144 public static List<X509Certificate> convertFromPem(byte[] bytes) argument 146 ByteArrayInputStream bai = new ByteArrayInputStream(bytes);
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
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...] |
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));
|
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/ |
H A D | IntegralToString.java | 465 public static String bytesToHexString(byte[] bytes, boolean upperCase) { argument 467 char[] buf = new char[bytes.length * 2]; 469 for (byte b : bytes) {
|
/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_gl_frame.cpp | 119 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/ml/bordeaux/learning/predictor_histogram/java/android/bordeaux/learning/ |
H A D | HistogramPredictor.java | 153 byte[] bytes = byteStream.toByteArray(); 154 return bytes; 316 byte[] bytes = byteStream.toByteArray(); 317 return bytes;
|
/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/util/ |
H A D | Log.java | 295 int bytes = println_native(logId, ERROR, tag, msg + '\n' 298 return bytes; 354 * @return The number of bytes written.
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | LoggingPrintStream.java | 41 * A buffer that is initialized when raw bytes are first written to this 42 * stream. It may contain the leading bytes of multi-byte characters. 49 * A buffer that is initialized when raw bytes are first written to this 56 * Decodes bytes to characters using the system default charset. Initialized 57 * when raw bytes are first written to this stream. 120 public synchronized void write(byte bytes[], int start, int count) { argument 131 // copy some bytes from the array to the long-lived buffer. This 134 encodedBytes.put(bytes, start, numBytes); 140 // decode bytes from the byte buffer into the char buffer
|
/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/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
H A D | IntentTile.java | 172 public BytesIcon(byte[] bytes) { argument 173 mBytes = bytes;
|
/frameworks/base/core/java/android/os/ |
H A D | Process.java | 522 // The response is a length prefixed stream of ASCII bytes. 524 byte[] bytes = new byte[numBytes]; 525 inputStream.readFully(bytes); 527 return new String(bytes, StandardCharsets.US_ASCII); 1126 * Gets the total Pss value for a given process, in bytes. 1129 * @return the total Pss value for the given process 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/volley/src/main/java/com/android/volley/toolbox/ |
H A D | DiskBasedCache.java | 49 /** Total amount of space currently used by the cache in bytes. */ 55 /** The maximum size of the cache in bytes. */ 58 /** Default maximum disk usage in bytes. */ 70 * @param maxCacheSizeInBytes The maximum size of the cache in bytes. 252 * Prunes the cache to fit the amount of bytes specified. 253 * @param neededSpace The amount of bytes we are trying to fit into the cache. 287 VolleyLog.v("pruned %d files, %d bytes, %d ms", 322 byte[] bytes = new byte[length]; 325 while (pos < length && ((count = in.read(bytes, pos, length - pos)) != -1)) { 329 throw new IOException("Expected " + length + " bytes, rea [all...] |
/frameworks/opt/net/wifi/service/jni/ |
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/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); 480 // if the blocks are all 256 bits (32 bytes) then we take them to be SHA-256 hashes;
|
/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...] |