/frameworks/opt/vcard/java/com/android/vcard/ |
H A D | VCardUtils.java | 63 public static final byte[] decodeQuotedPrintable(byte[] bytes) argument 65 if (bytes == null) { 69 for (int i = 0; i < bytes.length; i++) { 70 int b = bytes[i]; 73 int u = Character.digit((char) bytes[++i], 16); 74 int l = Character.digit((char) bytes[++i], 16); 658 * Guesses the format of input image. Currently just the first few bytes are used. 820 final byte[] bytes = new byte[byteBuffer.remaining()]; 821 byteBuffer.get(bytes); 823 return new String(bytes, targetCharse [all...] |
/frameworks/av/media/libmediaplayerservice/ |
H A D | StagefrightRecorder.cpp | 300 size_t num_bytes = s->bytes(); 400 status_t StagefrightRecorder::setParamMaxFileSizeBytes(int64_t bytes) { argument 401 ALOGV("setParamMaxFileSizeBytes: %lld bytes", bytes); 404 if (bytes <= 0) { 405 ALOGW("Max file size is not positive: %lld bytes. " 406 "Disabling file size limit.", bytes); 407 bytes = 0; // Disable the file size limit for zero or negative values. 408 } else if (bytes <= 1024) { // XXX: 1 kB 409 ALOGE("Max file size is too small: %lld bytes", byte [all...] |
H A D | StagefrightRecorder.h | 174 status_t setParamMaxFileSizeBytes(int64_t bytes);
|
/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 | 134 public static List<X509Certificate> convertFromPem(byte[] bytes) argument 136 ByteArrayInputStream bai = new ByteArrayInputStream(bytes);
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
H A D | Predictor.java | 186 byte[] bytes = byteStream.toByteArray(); 187 //Log.i(TAG, "getModel: " + bytes); 188 return bytes;
|
/frameworks/native/include/utils/ |
H A D | String8.h | 60 inline size_t bytes() const; 266 inline size_t String8::bytes() const function in class:android::String8
|
/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...] |
H A D | SSLSocketTest.java | 617 * port, requests client authentication (if specified), and read 256 bytes 703 * a given port and writes 256 bytes to the socket. 768 byte[] bytes = new Base64().decode(keys.getBytes()); 769 InputStream inputStream = new ByteArrayInputStream(bytes);
|
/frameworks/base/core/java/android/net/dhcp/ |
H A D | DhcpPacket.java | 37 * IP: Version 4, Header Length 20 bytes 315 (16 - mClientMac.length) // pad addr to 16 bytes 316 + 64 // empty server host name (64 bytes) 317 + 128); // empty boot file name (128 bytes) 425 * Adds an optional parameter containing an array of bytes. 500 // allows signed bytes to be converted correctly. 541 byte[] bytes = new byte[byteCount]; 542 buf.get(bytes); 543 return new String(bytes, 0, bytes [all...] |
/frameworks/av/media/libstagefright/ |
H A D | AudioSource.cpp | 185 uint8_t *data, size_t bytes) { 190 int32_t stopFrame = startFrame + bytes / sizeof(int16_t); 307 // Convert number of frames lost to number of bytes lost. 316 ALOGW("Lost audio record data: %d bytes", numLostBytes); 183 rampVolume( int32_t startFrame, int32_t rampDurationFrames, uint8_t *data, size_t bytes) argument
|
/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/native/opengl/tests/hwc/ |
H A D | hwcTestLib.cpp | 548 size_t bytes; member in struct:attrib 595 pixel >>= sizeof(pixel) * BITSPERBYTE - attrib->bytes * BITSPERBYTE; 610 size_t bytes; member in struct:attrib 650 memmove(buf + ((gBuf->getStride() * attrib->bytes) * y) 651 + (attrib->bytes * x), &pixel, attrib->bytes);
|
/frameworks/base/services/java/com/android/server/connectivity/ |
H A D | Vpn.java | 759 byte[] bytes = argument.getBytes(Charsets.UTF_8); 760 if (bytes.length >= 0xFFFF) { 763 out.write(bytes.length >> 8); 764 out.write(bytes.length); 765 out.write(bytes);
|
/frameworks/base/services/jni/ |
H A D | com_android_server_location_GpsLocationProvider.cpp | 470 jbyte* bytes = (jbyte *)env->GetPrimitiveArrayCritical(data, 0); local 471 sGpsXtraInterface->inject_xtra_data((char *)bytes, length); 472 env->ReleasePrimitiveArrayCritical(data, bytes, JNI_ABORT);
|
/frameworks/base/core/java/android/webkit/ |
H A D | JWebCoreJavaBridge.java | 156 * @param bytes The cache size in bytes. 158 public native void setCacheSize(int bytes); argument
|
/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")));
|
/frameworks/base/core/java/android/os/ |
H A D | BatteryStats.java | 1083 private final String formatBytesLocked(long bytes) { argument 1086 if (bytes < BYTES_PER_KB) { 1087 return bytes + "B"; 1088 } else if (bytes < BYTES_PER_MB) { 1089 mFormatter.format("%.2fKB", bytes / (double) BYTES_PER_KB); 1091 } else if (bytes < BYTES_PER_GB){ 1092 mFormatter.format("%.2fMB", bytes / (double) BYTES_PER_MB); 1095 mFormatter.format("%.2fGB", bytes / (double) BYTES_PER_GB);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | ImageWallpaper.java | 520 final int bytes = verticesData.length * FLOAT_SIZE_BYTES; 521 final FloatBuffer triangleVertices = ByteBuffer.allocateDirect(bytes).order(
|
/frameworks/av/services/camera/libcameraservice/ |
H A D | Camera2Device.h | 83 * equal to the size in bytes of the buffers to allocate for the stream. For 285 size_t entries, size_t bytes, 316 * be equal to the size in bytes of the buffers to allocate for the
|
/frameworks/base/core/java/android/net/ |
H A D | Uri.java | 1879 // Convert the substring to bytes and encode the bytes as 1883 byte[] bytes = toEncode.getBytes(DEFAULT_ENCODING); 1884 int bytesLength = bytes.length; 1887 encoded.append(HEX_DIGITS[(bytes[i] & 0xf0) >> 4]); 1888 encoded.append(HEX_DIGITS[bytes[i] & 0xf]);
|
H A D | NetworkStatsHistory.java | 230 * Return total bytes represented by this history. 527 public void generateRandom(long start, long end, long bytes) { argument 531 final long rxBytes = (long) (bytes * fractionRx); 532 final long txBytes = (long) (bytes * (1 - fractionRx));
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | LockPatternUtils.java | 756 final byte[] bytes = string.getBytes(); 757 for (int i = 0; i < bytes.length; i++) { 758 byte b = bytes[i];
|