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

1234567891011

/frameworks/base/rs/java/android/renderscript/
H A DBaseObj.java99 byte[] bytes = name.getBytes("UTF-8");
100 mRS.nAssignName(mID, bytes);
/frameworks/base/tests/net/java/android/net/util/
H A DConnectivityPacketSummaryTest.java38 final byte[] bytes = HexEncoding.decode(hexBytes.toCharArray(), false);
39 return ConnectivityPacketSummary.summarize(MYHWADDR, bytes);
/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.java71 // Raw bytes of scan record.
146 * Returns raw bytes of scan record.
156 String localName, byte[] bytes) {
163 mBytes = bytes;
167 * Parse scan record bytes to {@link ScanRecord}.
248 // The first two bytes of the manufacturer specific data are
271 // and return an empty record with raw scanRecord bytes in results
297 // Helper method to extract bytes from byte array.
299 byte[] bytes = new byte[length];
300 System.arraycopy(scanRecord, start, bytes,
152 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/tests/net/java/android/net/netlink/
H A DRtNetlinkNeighborMessageTest.java253 final byte[] bytes = RtNetlinkNeighborMessage.newNewNeighborMessage(
255 if (!Arrays.equals(expectedNewNeigh, bytes)) {
256 assertEquals(expectedNewNeigh.length, bytes.length);
257 for (int i = 0; i < Math.min(expectedNewNeigh.length, bytes.length); i++) {
258 assertEquals(expectedNewNeigh[i], bytes[i]);
/frameworks/support/compat/tests/java/android/support/v4/graphics/drawable/
H A DIconCompatTest.java125 byte[] bytes = out.toByteArray();
127 byte[] resultCopy = Arrays.copyOf(bytes, bytes.length + 100);
129 for (int i = bytes.length - 1; i >= 0; i--) {
133 IconCompat compat = IconCompat.createWithData(resultCopy, 20, bytes.length);
/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/packages/MtpDocumentsProvider/perf_tests/src/com/android/mtp/
H A DAppFusePerfTest.java48 final byte[] bytes = new byte[SIZE];
59 stream.read(bytes);
71 stream.write(bytes);
/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/base/wifi/tests/src/android/net/wifi/aware/
H A DWifiAwareAgentNetworkSpecifierTest.java53 byte[] bytes = parcelW.marshall();
57 parcelR.unmarshall(bytes, 0, bytes.length);
/frameworks/native/include/binder/
H A DTextOutput.h101 inline HexDump& setSingleLineCutoff(int32_t bytes);
184 inline HexDump& HexDump::setSingleLineCutoff(int32_t bytes) { argument
185 mSingleLineCutoff = bytes; return *this;
/frameworks/native/libs/binder/include/binder/
H A DTextOutput.h101 inline HexDump& setSingleLineCutoff(int32_t bytes);
184 inline HexDump& HexDump::setSingleLineCutoff(int32_t bytes) { argument
185 mSingleLineCutoff = bytes; return *this;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DAppSmsManager.java150 byte[] bytes = new byte[8];
151 mRandom.nextBytes(bytes);
152 return Base64.encodeToString(bytes, Base64.URL_SAFE | Base64.NO_WRAP | Base64.NO_PADDING);
/frameworks/rs/
H A DrsStream.h87 void align(uint32_t bytes) { argument
88 mPos = (mPos + (bytes - 1)) & (~(bytes - 1));
/frameworks/av/media/libstagefright/flac/dec/
H A DFLACDecoder.cpp33 FLAC__byte buffer[], size_t *bytes) {
35 *bytes = 0;
39 size_t actual = *bytes;
45 *bytes = actual;
280 size_t *bytes,
282 return ((FLACDecoder *) client_data)->readCallback(buffer, bytes); };
32 readCallback( FLAC__byte buffer[], size_t *bytes) argument
H A DFLACDecoder.h97 FLAC__StreamDecoderReadStatus readCallback(FLAC__byte buffer[], size_t *bytes);
/frameworks/base/keystore/java/android/security/
H A DKeyChain.java160 * encoded bytes with {@link X509Certificate#getEncoded}.
171 * install. The extra value should be a {@code byte[]}. The bytes
254 * #EXTRA_PKCS12} maybe used to specify the bytes of an X.509
566 public static X509Certificate toCertificate(@NonNull byte[] bytes) { argument
567 if (bytes == null) {
568 throw new IllegalArgumentException("bytes == null");
572 Certificate cert = certFactory.generateCertificate(new ByteArrayInputStream(bytes));
581 public static Collection<X509Certificate> toCertificates(@NonNull byte[] bytes) { argument
582 if (bytes == null) {
583 throw new IllegalArgumentException("bytes
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DTaskSnapshotLoader.java75 final byte[] bytes = Files.readAllBytes(protoFile.toPath());
76 final TaskSnapshotProto proto = TaskSnapshotProto.parseFrom(bytes);
/frameworks/base/services/net/java/android/net/util/
H A DConnectivityPacketSummary.java356 byte[] bytes = new byte[byteLength];
357 ip.get(bytes, 0, byteLength);
359 InetAddress addr = InetAddress.getByAddress(bytes);
369 byte[] bytes = new byte[ETHER_ADDR_LEN];
370 mac.get(bytes, 0, bytes.length);
371 Object[] printableBytes = new Object[bytes.length];
373 for (byte b : bytes) printableBytes[i++] = new Byte(b);
/frameworks/base/wifi/java/android/net/wifi/
H A DScanResult.java391 * storing the raw bytes of full result IEs
393 public byte[] bytes; field in class:ScanResult
414 public byte[] bytes; field in class:ScanResult.InformationElement
421 this.bytes = rhs.bytes.clone();
660 dest.writeInt(informationElements[i].bytes.length);
661 dest.writeByteArray(informationElements[i].bytes);
734 sr.informationElements[i].bytes = new byte[len];
735 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/av/services/audioflinger/
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);

Completed in 700 milliseconds

1234567891011