Searched refs:bytes (Results 26 - 50 of 159) sorted by relevance

1234567

/frameworks/base/media/mca/filterfw/jni/
H A Djni_vertex_frame.cpp76 jbyte* bytes = env->GetByteArrayElements(data, NULL); local
77 if (bytes) {
78 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(bytes + offset),
80 env->ReleaseByteArrayElements(data, bytes, JNI_ABORT);
/frameworks/base/services/core/java/com/android/server/am/
H A DNativeCrashListener.java237 int bytes;
240 bytes = Os.read(fd, buf, 0, buf.length);
241 if (bytes > 0) {
243 String s = new String(buf, 0, bytes, "UTF-8");
244 Slog.v(TAG, "READ=" + bytes + "> " + s);
247 if (buf[bytes-1] == 0) {
248 os.write(buf, 0, bytes-1); // exclude the EOD token
252 os.write(buf, 0, bytes);
254 } while (bytes > 0);
/frameworks/av/include/media/stagefright/
H A DMediaWriter.h41 virtual void setMaxFileSize(int64_t bytes) { mMaxFileSizeLimitBytes = bytes; } argument
/frameworks/av/media/libstagefright/codecs/flac/enc/
H A DSoftFlacEncoder.h81 size_t bytes, unsigned samples, unsigned current_frame, void *client_data);
85 size_t bytes, unsigned samples, unsigned current_frame);
H A DSoftFlacEncoder.cpp250 ALOGE("Input buffer size must be at most %d bytes",
354 size_t bytes, unsigned samples,
357 ALOGV("SoftFlacEncoder::onEncodedFlacAvailable(bytes=%zu, samples=%u, curr_frame=%u)",
358 bytes, samples, current_frame);
362 ALOGI(" saving %zu bytes of header", bytes);
363 memcpy(mHeader + mHeaderOffset, buffer, bytes);
364 mHeaderOffset += bytes;// will contain header size when finished receiving header
373 ALOGV("ignoring %zu bytes of header data (samples=%d)", bytes, sample
352 onEncodedFlacAvailable( const FLAC__byte buffer[], size_t bytes, unsigned samples, unsigned current_frame) argument
452 flacEncoderWriteCallback( const FLAC__StreamEncoder * , const FLAC__byte buffer[], size_t bytes, unsigned samples, unsigned current_frame, void *client_data) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DDataUsageDetailView.java66 final long bytes;
73 bytes = info.usageLevel;
79 bytes = info.limitLevel - info.usageLevel;
87 bytes = info.usageLevel - info.limitLevel;
98 usage.setText(formatBytes(bytes));
114 private String formatBytes(long bytes) { argument
115 final long b = Math.abs(bytes);
128 return FORMAT.format(val * (bytes < 0 ? -1 : 1)) + " " + suffix;
/frameworks/rs/
H A DrsThreadIO.h73 uint32_t bytes; member in struct:android::renderscript::ThreadIO::CoreCmdHeaderRec
77 uint32_t bytes; member in struct:android::renderscript::ThreadIO::ClientCmdHeaderRec
H A DrsStream.h87 void align(uint32_t bytes) { argument
88 mPos = (mPos + (bytes - 1)) & (~(bytes - 1));
/frameworks/base/core/tests/coretests/src/android/net/netlink/
H A DRtNetlinkNeighborMessageTest.java248 final byte[] bytes = RtNetlinkNeighborMessage.newNewNeighborMessage(
250 if (!Arrays.equals(expectedNewNeigh, bytes)) {
251 assertEquals(expectedNewNeigh.length, bytes.length);
252 for (int i = 0; i < Math.min(expectedNewNeigh.length, bytes.length); i++) {
253 assertEquals(expectedNewNeigh[i], bytes[i]);
/frameworks/base/core/java/android/net/netlink/
H A DRtNetlinkNeighborMessage.java124 final byte[] bytes = new byte[length];
125 final ByteBuffer byteBuffer = ByteBuffer.wrap(bytes);
138 return bytes;
161 final byte[] bytes = new byte[msg.getRequiredSpace()];
162 nlmsghdr.nlmsg_len = bytes.length;
163 final ByteBuffer byteBuffer = ByteBuffer.wrap(bytes);
166 return bytes;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DByteArrayHelpers.java205 byte[] bytes = new byte[byteBuffer.limit()];
206 byteBuffer.get(bytes);
208 if (VERBOSE) Log.v(TAG, "toByteArray - output: " + Arrays.toString(bytes));
210 return bytes;
/frameworks/ex/framesequence/jni/
H A DFrameSequenceJNI.cpp50 jbyte* bytes = reinterpret_cast<jbyte*>(env->GetPrimitiveArrayCritical(byteArray, NULL)); local
51 if (bytes == NULL) {
53 "couldn't read array bytes");
56 MemoryStream stream(bytes + offset, length, NULL);
58 env->ReleasePrimitiveArrayCritical(byteArray, bytes, 0);
/frameworks/av/services/audioflinger/
H A DSpdifStreamOut.cpp117 ssize_t SpdifStreamOut::writeDataBurst(const void* buffer, size_t bytes) argument
119 return AudioStreamOut::write(buffer, bytes);
/frameworks/base/core/tests/coretests/src/android/text/format/
H A DFormatterTest.java97 private void checkFormatBytes(long bytes, boolean useShort, argument
99 BytesResult r = Formatter.formatBytes(getContext().getResources(), bytes,
/frameworks/base/rs/java/android/renderscript/
H A DBaseObj.java97 byte[] bytes = name.getBytes("UTF-8");
98 mRS.nAssignName(mID, bytes);
/frameworks/base/core/java/android/net/http/
H A DSslCertificate.java124 byte[] bytes = bundle.getByteArray(X509_CERTIFICATE);
125 if (bytes == null) {
130 Certificate cert = certFactory.generateCertificate(new ByteArrayInputStream(bytes));
270 byte[] bytes = x509Certificate.getEncoded();
272 byte[] digest = md.digest(bytes);
281 private static final String fingerprint(byte[] bytes) { argument
282 if (bytes == null) {
286 for (int i = 0; i < bytes.length; i++) {
287 byte b = bytes[i];
289 if (i+1 != bytes
[all...]
/frameworks/base/core/java/android/bluetooth/le/
H A DScanRecord.java69 // Raw bytes of scan record.
144 * Returns raw bytes of scan record.
154 String localName, byte[] bytes) {
161 mBytes = bytes;
165 * Parse scan record bytes to {@link ScanRecord}.
228 // The first two bytes of the service data are service data UUID in little
229 // endian. The rest bytes are service data.
240 // The first two bytes of the manufacturer specific data are
263 // and return an empty record with raw scanRecord bytes in results
289 // Helper method to extract bytes fro
150 ScanRecord(List<ParcelUuid> serviceUuids, SparseArray<byte[]> manufacturerData, Map<ParcelUuid, byte[]> serviceData, int advertiseFlags, int txPowerLevel, String localName, byte[] bytes) argument
[all...]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A DLoggingPrintStreamTest.java129 // assume 3*1000 bytes won't fit in LoggingPrintStream's internal buffer
132 builder.append("\u20AC"); // a Euro character; 3 bytes in UTF-8
159 byte[] bytes = expected.getBytes();
161 while (i < bytes.length - 5) {
162 out.write(bytes, i, 5);
165 out.write(bytes, i, bytes.length - i);
/frameworks/base/core/java/android/view/
H A DViewHierarchyEncoder.java191 byte[] bytes = s.getBytes(mCharset);
193 short len = (short)Math.min(bytes.length, Short.MAX_VALUE);
196 mStream.write(bytes, 0, len);
/frameworks/base/tests/BandwidthTests/src/com/android/tests/bandwidthenforcement/
H A DBandwidthEnforcementTestService.java199 final byte[] bytes = phrase.getBytes("US-ASCII");
200 out.write(bytes.length);
201 out.write(bytes);
/frameworks/base/tests/SerialChat/src/com/android/serialchat/
H A DSerialChat.java110 byte[] bytes = text.getBytes();
112 mOutputBuffer.put(bytes);
113 mSerialPort.write(mOutputBuffer, bytes.length);
/frameworks/native/include/binder/
H A DTextOutput.h106 inline HexDump& setSingleLineCutoff(int32_t bytes);
175 inline HexDump& HexDump::setSingleLineCutoff(int32_t bytes) { argument
176 mSingleLineCutoff = bytes; return *this;
/frameworks/volley/src/test/java/com/android/volley/toolbox/
H A DImageRequestTest.java153 ByteArrayOutputStream bytes = new ByteArrayOutputStream();
157 bytes.write(buffer, 0, count);
160 return bytes.toByteArray();
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DIccUtils.java149 * shall be left justified. Unused bytes shall be set to 'FF'; or
307 * @param bytes an array of bytes
309 * @return hex string representation of bytes array
312 bytesToHexString(byte[] bytes) { argument
313 if (bytes == null) return null;
315 StringBuilder ret = new StringBuilder(2*bytes.length);
317 for (int i = 0 ; i < bytes.length ; i++) {
320 b = 0x0f & (bytes[i] >> 4);
324 b = 0x0f & bytes[
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DIccUtils.java149 * shall be left justified. Unused bytes shall be set to 'FF'; or
307 * @param bytes an array of bytes
309 * @return hex string representation of bytes array
312 bytesToHexString(byte[] bytes) { argument
313 if (bytes == null) return null;
315 StringBuilder ret = new StringBuilder(2*bytes.length);
317 for (int i = 0 ; i < bytes.length ; i++) {
320 b = 0x0f & (bytes[i] >> 4);
324 b = 0x0f & bytes[
[all...]

Completed in 716 milliseconds

1234567