/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/support/documents-archive/src/android/support/provider/ |
H A D | DocumentArchive.java | 220 int bytes; 221 while ((bytes = inputStream.read(buffer)) != -1) { 222 outputStream.write(buffer, 0, bytes); 398 int bytes; 399 while ((bytes = finalInputStream.read(buffer)) != -1) { 406 outputStream.write(buffer, 0, bytes);
|
/frameworks/base/core/jni/ |
H A D | android_app_admin_SecurityLog.cpp | 177 jbyte *bytes = env->GetByteArrayElements(array, NULL); local 178 memcpy(bytes, log_msg.buf, len); 179 env->ReleaseByteArrayElements(array, bytes, 0);
|
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/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsBackupAgent.java | 660 if (DEBUG_BACKUP) Log.d(TAG, systemSettingsData.length + " bytes of settings data"); 664 Log.d(TAG, secureSettingsData.length + " bytes of secure settings data"); 669 Log.d(TAG, globalSettingsData.length + " bytes of global settings data"); 673 if (DEBUG_BACKUP) Log.d(TAG, locale.length + " bytes of locale data"); 677 Log.d(TAG, wifiSupplicantData.length + " bytes of wifi supplicant data"); 681 if (DEBUG_BACKUP) Log.d(TAG, wifiConfigData.length + " bytes of wifi config data"); 684 if (DEBUG_BACKUP) Log.d(TAG, lockSettingsData.length + " bytes of lock settings data"); 687 if (DEBUG_BACKUP) Log.d(TAG, softApConfigData.length + " bytes of softap config data"); 690 if (DEBUG_BACKUP) Log.d(TAG, netPoliciesData.length + " bytes of net policies data"); 724 if (DEBUG_BACKUP) Log.d(TAG, nBytes + " bytes o 934 restoreSettings(byte[] settings, int bytes, Uri contentUri, HashSet<String> movedToGlobal) argument 1153 restoreFileData(String filename, byte[] bytes, int size) argument 1200 restoreWifiSupplicant(String filename, byte[] bytes, int size) argument [all...] |
H A D | SettingsState.java | 319 + " size: " + newSize + " bytes."); 676 private static String fromBytes(byte[] bytes) { argument 677 final StringBuffer sb = new StringBuffer(bytes.length / 2); 679 final int last = bytes.length - 1; 682 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/support/documents-archive/tests/src/android/support/provider/ |
H A D | DocumentArchiveTest.java | 57 int bytes; 58 while ((bytes = inputStream.read(buffer)) != -1) { 59 outputStream.write(buffer, 0, 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/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
H A D | MtpDocumentsProviderTest.java | 483 final byte[] bytes = "Hello world".getBytes(); 488 .setCompressedSize(bytes.length) 492 mMtpManager.setImportFileBytes(0, 1, bytes); 521 final byte[] bytes = "Hello world".getBytes(); 526 .setCompressedSize(bytes.length) 530 mMtpManager.setImportFileBytes(0, 1, bytes); 554 final byte[] bytes = new byte[5]; 555 stream.read(bytes); 556 assertTrue(Arrays.equals("Hello".getBytes(), bytes));
|
/frameworks/base/services/net/java/android/net/ip/ |
H A D | IpReachabilityMonitor.java | 184 final ByteBuffer bytes = nlSocket.recvMessage(IO_TIMEOUT); 186 final NetlinkMessage response = NetlinkMessage.parse(bytes); 199 bytes.position(0); 200 errmsg = "raw bytes: " + NetlinkConstants.hexify(bytes);
|
/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 | 299 int bytes = printlns(logId, ERROR, tag, msg, localStack ? what : tr); 301 return bytes; 357 * @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/keystore/java/android/security/ |
H A D | Credentials.java | 146 public static List<X509Certificate> convertFromPem(byte[] bytes) argument 148 ByteArrayInputStream bai = new ByteArrayInputStream(bytes);
|
/frameworks/base/media/java/android/media/ |
H A D | MediaFormat.java | 181 /** A key describing the maximum size in bytes of a buffer of data 300 * The associated value is an integer, representing number of bytes. 866 public final void setByteBuffer(String name, ByteBuffer bytes) { argument 867 mMap.put(name, bytes);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
H A D | IntentTile.java | 182 public BytesIcon(byte[] bytes) { argument 183 mBytes = bytes;
|
/frameworks/base/services/net/java/android/net/apf/ |
H A D | ApfGenerator.java | 42 LDH(2), // Load 2 bytes from immediate offset, e.g. "ldh R0, [5]" 43 LDW(3), // Load 4 bytes from immediate offset, e.g. "ldw R0, [5]" 109 // Offset in bytes from the begining of this program. Set by {@link ApfGenerator#generate}. 152 void setCompareBytes(byte[] bytes) { argument 154 throw new IllegalStateException("adding compare bytes to non-JNEBS instruction"); 156 mCompareBytes = bytes; 160 * @return size of instruction in bytes. 216 * {@link generatedImmSize} bytes are written. {@code value} is truncated to 217 * {@code generatedImmSize} bytes. {@code value} is treated simply as a 332 * Memory slot number that is prefilled with the size of the packet being filtered in bytes 737 addJumpIfBytesNotEqual(Register register, byte[] bytes, String target) argument [all...] |
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/ |
H A D | SurfaceCompositionMeasuringActivity.java | 495 private static String getReadableMemory(long bytes) { argument 497 if (bytes < unit) { 498 return bytes + " B"; 500 int exp = (int) (Math.log(bytes) / Math.log(unit)); 501 return String.format("%.1f %sB", bytes / Math.pow(unit, exp),
|
/frameworks/base/tools/layoutlib/create/tests/com/android/tools/layoutlib/create/ |
H A D | DelegateClassAdapterTest.java | 397 // Load the modified ClassWithNative from its bytes representation. 406 byte[] bytes = cw.toByteArray(); 407 return defineClass(name, bytes, 0, bytes.length); 513 byte[] bytes = entry.getValue(); 520 ClassReader cr2 = new ClassReader(bytes);
|
/frameworks/base/core/java/android/os/ |
H A D | Process.java | 543 // The response is a length prefixed stream of ASCII bytes. 545 byte[] bytes = new byte[numBytes]; 546 inputStream.readFully(bytes); 548 return new String(bytes, StandardCharsets.US_ASCII); 1207 * Gets the total Pss value for a given process, in bytes. 1210 * @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/support/tests/java/android/support/v4/content/ |
H A D | FileProviderTest.java | 382 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); 386 bytes.write(buffer, 0, count); 388 return bytes.toByteArray();
|