/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/av/media/libmediaplayerservice/ |
H A D | StagefrightRecorder.cpp | 310 size_t num_bytes = s->bytes(); 410 status_t StagefrightRecorder::setParamMaxFileSizeBytes(int64_t bytes) { argument 411 ALOGV("setParamMaxFileSizeBytes: %lld bytes", bytes); 414 if (bytes <= 0) { 415 ALOGW("Max file size is not positive: %lld bytes. " 416 "Disabling file size limit.", bytes); 417 bytes = 0; // Disable the file size limit for zero or negative values. 418 } else if (bytes <= 1024) { // XXX: 1 kB 419 ALOGE("Max file size is too small: %lld bytes", byte [all...] |
H A D | StagefrightRecorder.h | 169 status_t setParamMaxFileSizeBytes(int64_t bytes);
|
/frameworks/base/core/java/android/util/ |
H A D | Log.java | 292 int bytes = println_native(logId, ASSERT, tag, msg + '\n' 295 return bytes; 351 * @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 | 141 public static List<X509Certificate> convertFromPem(byte[] bytes) argument 143 ByteArrayInputStream bai = new ByteArrayInputStream(bytes);
|
/frameworks/base/media/java/android/media/ |
H A D | MediaFormat.java | 176 /** A key describing the maximum size in bytes of a buffer of data 617 public final void setByteBuffer(String name, ByteBuffer bytes) { argument 618 mMap.put(name, bytes);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
H A D | IntentTile.java | 148 public BytesIcon(byte[] bytes) { argument 149 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/core/java/android/os/ |
H A D | Process.java | 521 // The response is a length prefixed stream of ASCII bytes. 523 byte[] bytes = new byte[numBytes]; 524 inputStream.readFully(bytes); 526 return new String(bytes, StandardCharsets.US_ASCII); 1105 * Gets the total Pss value for a given process, in bytes. 1108 * @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/com/android/volley/toolbox/ |
H A D | DiskBasedCache.java | 48 /** Total amount of space currently used by the cache in bytes. */ 54 /** The maximum size of the cache in bytes. */ 57 /** Default maximum disk usage in bytes. */ 69 * @param maxCacheSizeInBytes The maximum size of the cache in bytes. 251 * Prunes the cache to fit the amount of bytes specified. 252 * @param neededSpace The amount of bytes we are trying to fit into the cache. 286 VolleyLog.v("pruned %d files, %d bytes, %d ms", 321 byte[] bytes = new byte[length]; 324 while (pos < length && ((count = in.read(bytes, pos, length - pos)) != -1)) { 328 throw new IOException("Expected " + length + " bytes, rea [all...] |
/frameworks/base/core/java/android/net/dhcp/ |
H A D | DhcpPacket.java | 34 * IP: Version 4, Header Length 20 bytes 312 (16 - mClientMac.length) // pad addr to 16 bytes 313 + 64 // empty server host name (64 bytes) 314 + 128); // empty boot file name (128 bytes) 422 * Adds an optional parameter containing an array of bytes. 497 // allows signed bytes to be converted correctly. 538 byte[] bytes = new byte[byteCount]; 539 buf.get(bytes); 540 return new String(bytes, 0, bytes [all...] |
/frameworks/base/services/backup/java/com/android/server/backup/ |
H A D | PackageManagerBackupAgent.java | 347 private static void writeEntity(BackupDataOutput data, String key, byte[] bytes) argument 349 data.writeEntityHeader(key, bytes.length); 350 data.writeEntityData(bytes, bytes.length); 476 // if the blocks are all 256 bits (32 bytes) then we take them to be SHA-256 hashes;
|
/frameworks/av/media/libstagefright/ |
H A D | AudioSource.cpp | 184 uint8_t *data, size_t bytes) { 189 int32_t stopFrame = startFrame + bytes / sizeof(int16_t); 306 // Convert number of frames lost to number of bytes lost. 315 ALOGW("Lost audio record data: %zu bytes", numLostBytes); 182 rampVolume( int32_t startFrame, int32_t rampDurationFrames, uint8_t *data, size_t bytes) argument
|
/frameworks/native/opengl/libs/GLES_trace/ |
H A D | gltrace.proto | 828 repeated bytes charValue = 5; 829 repeated bytes rawBytes = 6; 837 repeated bytes contents = 3;
|
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcTestLib.cpp | 552 size_t bytes; member in struct:attrib 597 pixel >>= sizeof(pixel) * BITSPERBYTE - attrib->bytes * BITSPERBYTE; 612 size_t bytes; member in struct:attrib 650 memmove(buf + ((gBuf->getStride() * attrib->bytes) * y) 651 + (attrib->bytes * x), &pixel, attrib->bytes);
|
/frameworks/native/cmds/atrace/ |
H A D | atrace.cpp | 706 size_t bytes = bufSize - zs.avail_out; local 707 result = write(STDOUT_FILENO, out, bytes); 708 if ((size_t)result < bytes) {
|
/frameworks/base/telephony/java/android/telephony/ |
H A D | PhoneNumberUtils.java | 790 * @param bytes the data buffer 792 * @param length is the number of bytes including TOA byte 801 calledPartyBCDToString (byte[] bytes, int offset, int length) { argument 810 if ((bytes[offset] & 0xf0) == (TOA_International & 0xf0)) { 815 ret, bytes, offset + 1, length - 1); 902 StringBuilder sb, byte [] bytes, int offset, int length) { 907 c = bcdToChar((byte)(bytes[i] & 0xf)); 921 b = (byte)((bytes[i] >> 4) & 0xf); 944 calledPartyBCDFragmentToString(byte [] bytes, int offset, int length) { argument 947 internalCalledPartyBCDFragmentToString(ret, bytes, offse 901 internalCalledPartyBCDFragmentToString( StringBuilder sb, byte [] bytes, int offset, int length) argument [all...] |
/frameworks/base/core/jni/ |
H A D | AndroidRuntime.cpp | 930 jstring AndroidRuntime::NewStringLatin1(JNIEnv* env, const char* bytes) { argument 931 if (!bytes) return NULL; 932 int length = strlen(bytes); 937 *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/base/media/jni/audioeffect/ |
H A D | android_media_AudioEffect.cpp | 102 jbyte *bytes; local 155 bytes = env->GetByteArrayElements(array, NULL); 156 memcpy(bytes, p, size); 157 env->ReleaseByteArrayElements(array, bytes, 0);
|
/frameworks/base/core/tests/coretests/src/android/database/ |
H A D | DatabaseGeneralTest.java | 754 byte[] bytes = new byte[42]; 755 Arrays.fill(bytes, (byte) 0x28); 756 values.put("byteArray", bytes); 757 assertTrue(Arrays.equals(bytes, values.getAsByteArray("byteArray"))); 766 assertTrue(Arrays.equals(bytes, values.getAsByteArray("byteArray")));
|