Searched refs:bytes (Results 101 - 125 of 159) sorted by relevance

1234567

/frameworks/av/media/libstagefright/
H A DAudioSource.cpp193 uint8_t *data, size_t bytes) {
198 int32_t stopFrame = startFrame + bytes / sizeof(int16_t);
324 // Convert number of frames lost to number of bytes lost.
333 ALOGW("Lost audio record data: %zu bytes", numLostBytes);
191 rampVolume( int32_t startFrame, int32_t rampDurationFrames, uint8_t *data, size_t bytes) argument
H A DMPEG4Writer.cpp545 // - meta header structures, which occur only once (total 66 bytes)
546 // - size for each key, which consists of a fixed header (32 bytes),
624 ALOGI("limits: %" PRId64 "/%" PRId64 " bytes/us, bit rate: %d bps and the"
625 " estimated moov size %" PRId64 " bytes",
661 ALOGW("32-bit file size limit (%" PRId64 " bytes) too big. "
662 "It is changed to %" PRId64 " bytes",
1172 const size_t bytes = size * nmemb; local
1175 off64_t moovBoxSize = 8 + mMoovBoxBufferOffset + bytes;
1190 ::write(mFd, ptr, bytes);
1191 mOffset += (bytes
[all...]
/frameworks/base/services/net/java/android/net/dhcp/
H A DDhcpPacket.java66 * IP: Version 4, Header Length 20 bytes
403 (HWADDR_LEN - mClientMac.length) // pad addr to 16 bytes
404 + 64 // empty server host name (64 bytes)
405 + 128); // empty boot file name (128 bytes)
508 * Adds an optional parameter containing an array of bytes.
613 // allows signed bytes to be converted correctly.
654 byte[] bytes = new byte[byteCount];
655 buf.get(bytes);
656 int length = bytes.length;
660 // null bytes
[all...]
/frameworks/native/opengl/libs/GLES_trace/proto/
H A Dgltrace.proto830 repeated bytes charValue = 5;
831 repeated bytes rawBytes = 6;
839 repeated bytes contents = 3;
/frameworks/native/opengl/tests/hwc/
H A DhwcTestLib.cpp550 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/core/java/com/android/internal/widget/
H A DLockPatternUtils.java842 final byte[] bytes = string.getBytes();
843 for (int i = 0; i < bytes.length; i++) {
844 byte b = (byte) (bytes[i] - '1');
876 final byte[] bytes = pattern.getBytes();
878 res[i] = (byte) (bytes[i] - '1');
/frameworks/native/cmds/atrace/
H A Datrace.cpp723 size_t bytes = bufSize - zs.avail_out; local
724 result = write(STDOUT_FILENO, out, bytes);
725 if ((size_t)result < bytes) {
/frameworks/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/
H A DCameraOps.java214 byte[] bytes = new byte[buffer.remaining()];
215 buffer.get(bytes);
216 imageOut.write(bytes);
/frameworks/base/telephony/java/android/telephony/
H A DPhoneNumberUtils.java792 * @param bytes the data buffer
794 * @param length is the number of bytes including TOA byte
803 calledPartyBCDToString (byte[] bytes, int offset, int length) { argument
812 if ((bytes[offset] & 0xf0) == (TOA_International & 0xf0)) {
817 ret, bytes, offset + 1, length - 1);
904 StringBuilder sb, byte [] bytes, int offset, int length) {
909 c = bcdToChar((byte)(bytes[i] & 0xf));
923 b = (byte)((bytes[i] >> 4) & 0xf);
946 calledPartyBCDFragmentToString(byte [] bytes, int offset, int length) { argument
949 internalCalledPartyBCDFragmentToString(ret, bytes, offse
903 internalCalledPartyBCDFragmentToString( StringBuilder sb, byte [] bytes, int offset, int length) argument
[all...]
/frameworks/av/media/libmediaplayerservice/
H A DStagefrightRecorder.h172 status_t setParamMaxFileSizeBytes(int64_t bytes);
/frameworks/base/core/jni/
H A DAndroidRuntime.cpp986 jstring AndroidRuntime::NewStringLatin1(JNIEnv* env, const char* bytes) { argument
987 if (!bytes) return NULL;
988 int length = strlen(bytes);
993 *chp++ = *bytes++;
H A Dandroid_media_AudioTrack.cpp646 ScopedBytesRO bytes(env, javaBytes);
647 if (bytes.get() == NULL) {
652 jint written = writeToTrack(lpTrack, javaAudioFormat, bytes.get(), byteOffset,
/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/keystore/java/android/security/keystore/
H A DAndroidKeyStoreSpi.java214 private static X509Certificate toCertificate(byte[] bytes) { argument
218 new ByteArrayInputStream(bytes));
226 private static Collection<X509Certificate> toCertificates(byte[] bytes) { argument
230 new ByteArrayInputStream(bytes));
/frameworks/base/media/jni/audioeffect/
H A Dandroid_media_AudioEffect.cpp105 jbyte *bytes; local
158 bytes = env->GetByteArrayElements(array, NULL);
159 memcpy(bytes, p, size);
160 env->ReleaseByteArrayElements(array, bytes, 0);
/frameworks/opt/net/wifi/service/jni/
H A Djni_helper.h106 void setByteArrayRegion(jbyteArray array, int from, int to, jbyte *bytes);
H A Djni_helper.cpp611 void JNIHelper::setByteArrayRegion(jbyteArray array, int from, int to, jbyte *bytes) { argument
612 mEnv->SetByteArrayRegion(array, from, to, bytes);
/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/services/core/java/com/android/server/connectivity/
H A DVpn.java1263 byte[] bytes = argument.getBytes(StandardCharsets.UTF_8);
1264 if (bytes.length >= 0xFFFF) {
1267 out.write(bytes.length >> 8);
1268 out.write(bytes.length);
1269 out.write(bytes);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DSearchBar.java592 public void onBufferReceived(byte[] bytes) {
593 if (DEBUG) Log.v(TAG, "onBufferReceived " + bytes.length);
/frameworks/av/services/camera/libcameraservice/device2/
H A DCamera2Device.h183 size_t entries, size_t bytes,
214 * be equal to the size in bytes of the buffers to allocate for the
/frameworks/base/core/java/android/net/
H A DUri.java1887 // Convert the substring to bytes and encode the bytes as
1891 byte[] bytes = toEncode.getBytes(DEFAULT_ENCODING);
1892 int bytesLength = bytes.length;
1895 encoded.append(HEX_DIGITS[(bytes[i] & 0xf0) >> 4]);
1896 encoded.append(HEX_DIGITS[bytes[i] & 0xf]);
H A DNetworkStatsHistory.java232 * Return total bytes represented by this history.
529 public void generateRandom(long start, long end, long bytes) { argument
533 final long rxBytes = (long) (bytes * fractionRx);
534 final long txBytes = (long) (bytes * (1 - fractionRx));
/frameworks/base/services/core/jni/
H A Dcom_android_server_location_GpsLocationProvider.cpp741 jbyte* bytes = (jbyte *)env->GetPrimitiveArrayCritical(data, 0); local
742 sGpsXtraInterface->inject_xtra_data((char *)bytes, length);
743 env->ReleasePrimitiveArrayCritical(data, bytes, JNI_ABORT);
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DDropBoxTest.java550 new DropBoxManager.Entry("bytes", 3000000, "Bytes Value".getBytes(),
643 assertEquals("bytes", e.getTag());
739 byte[] bytes = new byte[size];
740 new Random(System.currentTimeMillis()).nextBytes(bytes);
744 os.write(bytes);

Completed in 821 milliseconds

1234567