/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/core/jni/ |
H A D | com_android_internal_os_FuseAppLoop.cpp | 111 jobject bytes) { 112 mEnv->CallVoidMethod(mSelf, gOnCommandMethod, command, unique, inode, offset, size, bytes); 110 CallOnCommand(jint command, jlong unique, jlong inode, jlong offset, jint size, jobject bytes) argument
|
/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 | 190 /** A key describing the maximum size in bytes of a buffer of data 326 * The associated value is an integer, representing number of bytes. 927 public final void setByteBuffer(String name, ByteBuffer bytes) { argument 928 mMap.put(name, bytes);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
H A D | IntentTile.java | 186 public BytesIcon(byte[] bytes) { argument 187 mBytes = bytes;
|
/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/net/java/com/android/server/connectivity/ |
H A D | NetdEventListenerServiceTest.java | 311 byte[] bytes = Base64.decode(buffer.toString(), Base64.DEFAULT); 312 IpConnectivityLog log = IpConnectivityLog.parseFrom(bytes);
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | SyntheticPasswordManager.java | 695 public static String bytesToHex(byte[] bytes) { argument 696 if (bytes == null) { 699 char[] hexChars = new char[bytes.length * 2]; 700 for ( int j = 0; j < bytes.length; j++ ) { 701 int v = bytes[j] & 0xFF;
|
/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/wifi/tests/src/android/net/wifi/aware/ |
H A D | WifiAwareManagerTest.java | 667 byte[] bytes = parcelW.marshall(); 671 parcelR.unmarshall(bytes, 0, bytes.length); 741 byte[] bytes = parcelW.marshall(); 745 parcelR.unmarshall(bytes, 0, bytes.length); 825 byte[] bytes = parcelW.marshall(); 829 parcelR.unmarshall(bytes, 0, bytes.length);
|
/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/core-utils/tests/java/android/support/v4/content/ |
H A D | FileProviderTest.java | 422 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); 426 bytes.write(buffer, 0, count); 428 return bytes.toByteArray();
|
/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); 468 // if the blocks are all 256 bits (32 bytes) then we take them to be SHA-256 hashes;
|
/frameworks/rs/rsov/compiler/spirit/ |
H A D | word_stream.h | 39 static InputWordStream *Create(const std::vector<uint8_t> &bytes);
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | StagefrightRecorder.cpp | 462 size_t num_bytes = s->bytes(); 565 status_t StagefrightRecorder::setParamMaxFileSizeBytes(int64_t bytes) { argument 566 ALOGV("setParamMaxFileSizeBytes: %lld bytes", (long long)bytes); 569 if (bytes <= 0) { 570 ALOGW("Max file size is not positive: %lld bytes. " 571 "Disabling file size limit.", (long long)bytes); 572 bytes = 0; // Disable the file size limit for zero or negative values. 573 } else if (bytes <= 1024) { // XXX: 1 kB 574 ALOGE("Max file size is too small: %lld bytes", (lon [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | TaskSnapshotPersister.java | 308 final byte[] bytes = TaskSnapshotProto.toByteArray(proto); 314 fos.write(bytes);
|
/frameworks/base/services/net/java/android/net/dhcp/ |
H A D | DhcpPacket.java | 70 * larger than 1500 bytes even if the network supports it. 81 * IP: Version 4, Header Length 20 bytes 428 (HWADDR_LEN - mClientMac.length) // pad addr to 16 bytes 429 + 64 // empty server host name (64 bytes) 430 + 128); // empty boot file name (128 bytes) 533 * Adds an optional parameter containing an array of bytes. 649 // allows signed bytes to be converted correctly. 690 byte[] bytes = new byte[byteCount]; 691 buf.get(bytes); 692 int length = bytes [all...] |
/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/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsState.java | 524 + " size: " + newSize + " bytes."); 1009 private static String fromBytes(byte[] bytes) { argument 1010 final StringBuffer sb = new StringBuffer(bytes.length / 2); 1012 final int last = bytes.length - 1; 1015 final char ch = (char) ((bytes[i] & 0xff) << 8 | (bytes[i + 1] & 0xff));
|
/frameworks/base/wifi/java/android/net/wifi/ |
H A D | WifiEnterpriseConfig.java | 543 byte[] bytes = alias.getBytes(StandardCharsets.UTF_8); 544 StringBuilder sb = new StringBuilder(bytes.length * 2); 545 for (byte o : bytes) {
|
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/ |
H A D | CameraOps.java | 214 byte[] bytes = new byte[buffer.remaining()]; 215 buffer.get(bytes); 216 imageOut.write(bytes);
|
/frameworks/av/media/libstagefright/ |
H A D | AudioSource.cpp | 205 uint8_t *data, size_t bytes) { 210 int32_t stopFrame = startFrame + bytes / sizeof(int16_t); 353 // Convert number of frames lost to number of bytes lost. 362 ALOGW("Lost audio record data: %zu bytes", numLostBytes); 203 rampVolume( int32_t startFrame, int32_t rampDurationFrames, uint8_t *data, size_t bytes) argument
|
/frameworks/base/core/java/android/os/storage/ |
H A D | IStorageManager.aidl | 297 void allocateBytes(String volumeUuid, long bytes, int flags) = 78;
|