Searched refs:bytes (Results 51 - 75 of 191) sorted by relevance

12345678

/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);
H A DAudioStreamOut.h64 * Write audio buffer to driver. Returns number of bytes written, or a
71 * bytes that currently fit in the driver/hardware buffer and then return
76 virtual ssize_t write(const void *buffer, size_t bytes);
/frameworks/base/core/tests/coretests/src/android/text/format/
H A DFormatterTest.java99 private void checkFormatBytes(long bytes, boolean useShort, argument
101 BytesResult r = Formatter.formatBytes(getContext().getResources(), bytes,
/frameworks/base/rs/java/android/renderscript/
H A DBaseObj.java99 byte[] bytes = name.getBytes("UTF-8");
100 mRS.nAssignName(mID, bytes);
/frameworks/minikin/libs/minikin/
H A DHyphenator.cpp89 const uint8_t* bytes() const { return reinterpret_cast<const uint8_t*>(this); } function in struct:android::Header
91 return *reinterpret_cast<const uint32_t*>(bytes() + alphabet_offset);
94 return reinterpret_cast<const AlphabetTable0*>(bytes() + alphabet_offset);
97 return reinterpret_cast<const AlphabetTable1*>(bytes() + alphabet_offset);
100 return reinterpret_cast<const Trie*>(bytes() + trie_offset);
103 return reinterpret_cast<const Pattern*>(bytes() + pattern_offset);
/frameworks/base/core/java/android/net/http/
H A DSslCertificate.java126 byte[] bytes = bundle.getByteArray(X509_CERTIFICATE);
127 if (bytes == null) {
132 Certificate cert = certFactory.generateCertificate(new ByteArrayInputStream(bytes));
272 byte[] bytes = x509Certificate.getEncoded();
274 byte[] digest = md.digest(bytes);
283 private static final String fingerprint(byte[] bytes) { argument
284 if (bytes == null) {
288 for (int i = 0; i < bytes.length; i++) {
289 byte b = bytes[i];
291 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
H A DScanDetailUtilTest.java88 private static InformationElement createIE(int id, byte[] bytes) { argument
91 ie.bytes = bytes;
/frameworks/rs/
H A DrsStream.h87 void align(uint32_t bytes) { argument
88 mPos = (mPos + (bytes - 1)) & (~(bytes - 1));
/frameworks/volley/src/test/java/com/android/volley/toolbox/
H A DImageRequestTest.java154 ByteArrayOutputStream bytes = new ByteArrayOutputStream();
158 bytes.write(buffer, 0, count);
161 return bytes.toByteArray();
/frameworks/base/keystore/java/android/security/
H A DKeyChain.java155 * encoded bytes with {@link X509Certificate#getEncoded}.
166 * install. The extra value should be a {@code byte[]}. The bytes
204 * #EXTRA_PKCS12} maybe used to specify the bytes of an X.509
503 public static X509Certificate toCertificate(@NonNull byte[] bytes) { argument
504 if (bytes == null) {
505 throw new IllegalArgumentException("bytes == null");
509 Certificate cert = certFactory.generateCertificate(new ByteArrayInputStream(bytes));
518 public static Collection<X509Certificate> toCertificates(@NonNull byte[] bytes) { argument
519 if (bytes == null) {
520 throw new IllegalArgumentException("bytes
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DIccUtils.java168 * shall be left justified. Unused bytes shall be set to 'FF'; or
326 * @param bytes an array of bytes
328 * @return hex string representation of bytes array
331 bytesToHexString(byte[] bytes) { argument
332 if (bytes == null) return null;
334 StringBuilder ret = new StringBuilder(2*bytes.length);
336 for (int i = 0 ; i < bytes.length ; i++) {
339 b = 0x0f & (bytes[i] >> 4);
343 b = 0x0f & bytes[
[all...]
/frameworks/base/core/java/android/speech/tts/
H A DSynthesisPlaybackQueueItem.java242 ListEntry(byte[] bytes) { argument
243 mBytes = bytes;
H A DBlockingAudioTrack.java56 * A "short utterance" is one that uses less bytes than the audio
191 private static int writeToAudioTrack(AudioTrack audioTrack, byte[] bytes) { argument
198 while (count < bytes.length) {
201 int written = audioTrack.write(bytes, count, bytes.length);
/frameworks/base/wifi/java/android/net/wifi/
H A DScanResult.java308 * storing the raw bytes of full result IEs
310 public byte[] bytes; field in class:ScanResult
331 public byte[] bytes; field in class:ScanResult.InformationElement
338 this.bytes = rhs.bytes.clone();
542 dest.writeInt(informationElements[i].bytes.length);
543 dest.writeByteArray(informationElements[i].bytes);
614 sr.informationElements[i].bytes = new byte[len];
615 in.readByteArray(sr.informationElements[i].bytes);
/frameworks/opt/bitmap/src/com/android/bitmap/util/
H A DExif.java45 Looking at this algorithm, we never look ahead more than 8 bytes. As long as we call
48 Also, the most we ever read backwards is 4 bytes. pack() reads backwards if the encoding
49 is in little endian format. These following two lines potentially reads 4 bytes backwards:
187 private static int pack(final InputStreamBuffer bytes, int offset, int length, argument
197 value = (value << 8) | (bytes.get(offset) & 0xFF);
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
H A DExif.java40 Looking at this algorithm, we never look ahead more than 8 bytes. As long as we call
43 Also, the most we ever read backwards is 4 bytes. pack() reads backwards if the encoding
44 is in little endian format. These following two lines potentially reads 4 bytes backwards:
182 private static int pack(final InputStreamBuffer bytes, int offset, int length, argument
192 value = (value << 8) | (bytes.get(offset) & 0xFF);
/frameworks/base/media/java/android/media/
H A DExifInterface.java443 public final byte[] bytes; field in class:ExifInterface.ExifAttribute
445 private ExifAttribute(int format, int numberOfComponents, byte[] bytes) { argument
448 this.bytes = bytes;
496 final byte[] bytes = new byte[] { (byte) (value.charAt(0) - '0') };
497 return new ExifAttribute(IFD_FORMAT_BYTE, bytes.length, bytes);
554 return "(" + IFD_FORMAT_NAMES[format] + ", data length:" + bytes.length + ")";
560 new ByteOrderAwarenessDataInputStream(bytes);
566 if (bytes
2569 ByteOrderAwarenessDataInputStream(byte[] bytes) argument
2733 write(byte[] bytes) argument
2737 write(byte[] bytes, int offset, int length) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_hardware_UsbDeviceConnection.cpp98 jbyte* bytes = (jbyte*)env->GetPrimitiveArrayCritical(ret, 0); local
99 if (bytes) {
100 memcpy(bytes, buffer, length);
101 env->ReleasePrimitiveArrayCritical(ret, bytes, 0);

Completed in 1568 milliseconds

12345678