Searched refs:bytes (Results 76 - 100 of 115) sorted by relevance

12345

/frameworks/opt/vcard/java/com/android/vcard/
H A DVCardUtils.java63 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 DStagefrightRecorder.cpp300 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 DStagefrightRecorder.h174 status_t setParamMaxFileSizeBytes(int64_t bytes);
/frameworks/base/core/java/com/android/internal/os/
H A DLoggingPrintStream.java41 * 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 DCredentials.java134 public static List<X509Certificate> convertFromPem(byte[] bytes) argument
136 ByteArrayInputStream bai = new ByteArrayInputStream(bytes);
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DPredictor.java186 byte[] bytes = byteStream.toByteArray();
187 //Log.i(TAG, "getModel: " + bytes);
188 return bytes;
/frameworks/native/include/utils/
H A DString8.h60 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 DTestWebServer.java433 * @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 DSSLSocketTest.java617 * 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 DDhcpPacket.java37 * 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 DAudioSource.cpp185 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 DPhoneNumberUtils.java790 * @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 DhwcTestLib.cpp548 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 DVpn.java759 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 Dcom_android_server_location_GpsLocationProvider.cpp470 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 DJWebCoreJavaBridge.java156 * @param bytes The cache size in bytes.
158 public native void setCacheSize(int bytes); argument
/frameworks/base/drm/jni/
H A Dandroid_drm_DrmManagerClient.cpp78 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 Dandroid_media_AudioEffect.cpp102 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 DDatabaseGeneralTest.java754 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 DBatteryStats.java1083 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 DImageWallpaper.java520 final int bytes = verticesData.length * FLOAT_SIZE_BYTES;
521 final FloatBuffer triangleVertices = ByteBuffer.allocateDirect(bytes).order(
/frameworks/av/services/camera/libcameraservice/
H A DCamera2Device.h83 * 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 DUri.java1879 // 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 DNetworkStatsHistory.java230 * 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 DLockPatternUtils.java756 final byte[] bytes = string.getBytes();
757 for (int i = 0; i < bytes.length; i++) {
758 byte b = bytes[i];

Completed in 3663 milliseconds

12345