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

1234567891011

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
H A DInformationElementUtil.java35 public static InformationElement[] parseInformationElements(byte[] bytes) { argument
36 if (bytes == null) {
39 ByteBuffer data = ByteBuffer.wrap(bytes).order(ByteOrder.LITTLE_ENDIAN);
49 // APs often pad the data with bytes that happen to match that of the EID_SSID
60 ie.bytes = new byte[elementLength];
61 data.get(ie.bytes);
142 if (ie.bytes.length != 5) {
144 + ie.bytes.length);
146 ByteBuffer data = ByteBuffer.wrap(ie.bytes).order(ByteOrder.LITTLE_ENDIAN);
184 secondChannelOffset = ie.bytes[
[all...]
H A DNativeUtil.java125 * Converts an array of 6 bytes to a HexEncoded String with format: "XX:XX:XX:XX:XX:XX", where X
133 throw new IllegalArgumentException("null mac bytes");
164 * Converts an array of 6 bytes to a long representing the MAC address.
172 throw new IllegalArgumentException("null mac bytes");
235 * a) UTF-8 String encapsulated in quotes (if all the bytes are UTF-8 encodeable and non null),
239 * @param bytes List of bytes for ssid.
240 * @throws IllegalArgumentException for null bytes.
242 public static String bytesToHexOrQuotedString(ArrayList<Byte> bytes) { argument
243 if (bytes
289 byteArrayToArrayList(byte[] bytes) argument
300 byteArrayFromArrayList(ArrayList<Byte> bytes) argument
328 hexStringFromByteArray(byte[] bytes) argument
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DBitUtils.java100 public static int bytesToBEInt(byte[] bytes) { argument
101 return (uint8(bytes[0]) << 24)
102 + (uint8(bytes[1]) << 16)
103 + (uint8(bytes[2]) << 8)
104 + (uint8(bytes[3]));
107 public static int bytesToLEInt(byte[] bytes) { argument
108 return Integer.reverseBytes(bytesToBEInt(bytes));
123 public static void put(ByteBuffer buffer, int position, byte[] bytes) { argument
126 buffer.put(bytes);
H A DBitwiseInputStream.java96 int bytes = (bits >>> 3) + ((bits & 0x07) > 0 ? 1 : 0); // &7==%8
97 byte[] arr = new byte[bytes];
98 for (int i = 0; i < bytes; i++) {
/frameworks/native/libs/binder/
H A DIpPrefix.cpp56 const uint8_t* bytes = reinterpret_cast<const uint8_t*>(&mUnion.mIn6Addr); local
57 byte_vector.insert(byte_vector.end(), bytes, bytes+sizeof(mUnion.mIn6Addr));
59 const uint8_t* bytes = reinterpret_cast<const uint8_t*>(&mUnion.mInAddr); local
60 byte_vector.insert(byte_vector.end(), bytes, bytes+sizeof(mUnion.mIn6Addr));
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
H A DInformationElementUtilTest.java117 TEST_SSID_BYTES, results[0].bytes);
140 TEST_SSID_BYTES, results[0].bytes);
163 TEST_SSID_BYTES, results[0].bytes);
184 TEST_SSID_BYTES, results[0].bytes);
187 assertEquals("second element should have data of length 1", 1, results[1].bytes.length);
189 (byte) 0x08, results[1].bytes[0]);
210 assertEquals("First element should be length 0", 0, results[0].bytes.length);
214 TEST_SSID_BYTES, results[1].bytes);
240 assertEquals("First result should have data of 1 byte", 1, results[0].bytes.length);
242 invalidLengthTagWithSSIDBytes[2], results[0].bytes[
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiCertManager.java65 final byte[] bytes = readConfigFile();
66 if (bytes == null) {
71 String[] keys = new String(bytes, StandardCharsets.UTF_8).split(SEP);
114 byte[] bytes = null;
120 return bytes;
123 bytes = new byte[(int) file.length()];
125 stream.readFully(bytes);
129 return bytes;
/frameworks/base/core/java/android/util/
H A DPackageUtils.java59 * finally a hash is derived from these strings' bytes.
78 * derived from these strings' bytes.
92 final ByteArrayOutputStream bytes = new ByteArrayOutputStream();
95 bytes.write(sha256Digest.getBytes());
100 return computeSha256Digest(bytes.toByteArray());
/frameworks/base/services/net/java/android/net/netlink/
H A DNetlinkConstants.java57 public static String hexify(byte[] bytes) { argument
58 if (bytes == null) { return "(null)"; }
59 return HexDump.toHexString(bytes);
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
H A DByteStream.java48 * bytes a UsbDescriptor subclass ACTUALLY reads (as opposed to what its length field says).
57 * @param bytes The byte array containing the raw descriptor information retrieved from
61 public ByteStream(@NonNull byte[] bytes) { argument
62 if (bytes == null) {
65 mBytes = bytes;
69 * Resets the running count of bytes read so that later we can see how much more has been read.
76 * Retrieves the running count of bytes read from the stream.
125 * Reads 2 bytes in *little endian format* from the stream and composes a 16-bit integer.
126 * As we are storing the 2-byte value in a 4-byte integer, the upper 2 bytes are always
128 * @return The 16-bit integer (packed into the lower 2 bytes o
[all...]
/frameworks/base/tests/net/jni/
H A DUidRangeTest.cpp46 * Reads exactly one UidRange from 'parcelData' assuming that it is a Parcel. Any bytes afterward
52 std::unique_ptr<uint8_t> bytes(new uint8_t[length]);
53 env->GetByteArrayRegion(parcelData, 0, length, reinterpret_cast<jbyte*>(bytes.get()));
56 p.setData(bytes.get(), length);
/frameworks/opt/net/lowpan/libandroid_net_lowpan/tests/jni/
H A DLowpanBeaconInfoTest.cpp26 * Reads exactly one LowpanBeaconInfo from 'parcelData' assuming that it is a Parcel. Any bytes afterward
32 std::unique_ptr<uint8_t> bytes(new uint8_t[length]);
33 env->GetByteArrayRegion(parcelData, 0, length, reinterpret_cast<jbyte*>(bytes.get()));
36 p.setData(bytes.get(), length);
H A DLowpanChannelInfoTest.cpp26 * Reads exactly one LowpanChannelInfo from 'parcelData' assuming that it is a Parcel. Any bytes afterward
32 std::unique_ptr<uint8_t> bytes(new uint8_t[length]);
33 env->GetByteArrayRegion(parcelData, 0, length, reinterpret_cast<jbyte*>(bytes.get()));
36 p.setData(bytes.get(), length);
H A DLowpanCredentialTest.cpp26 * Reads exactly one LowpanCredential from 'parcelData' assuming that it is a Parcel. Any bytes afterward
32 std::unique_ptr<uint8_t> bytes(new uint8_t[length]);
33 env->GetByteArrayRegion(parcelData, 0, length, reinterpret_cast<jbyte*>(bytes.get()));
36 p.setData(bytes.get(), length);
H A DLowpanIdentityTest.cpp26 * Reads exactly one LowpanIdentity from 'parcelData' assuming that it is a Parcel. Any bytes afterward
32 std::unique_ptr<uint8_t> bytes(new uint8_t[length]);
33 env->GetByteArrayRegion(parcelData, 0, length, reinterpret_cast<jbyte*>(bytes.get()));
36 p.setData(bytes.get(), length);
H A DLowpanProvisionTest.cpp26 * Reads exactly one LowpanProvision from 'parcelData' assuming that it is a Parcel. Any bytes afterward
32 std::unique_ptr<uint8_t> bytes(new uint8_t[length]);
33 env->GetByteArrayRegion(parcelData, 0, length, reinterpret_cast<jbyte*>(bytes.get()));
36 p.setData(bytes.get(), length);
/frameworks/base/wifi/tests/src/android/net/wifi/
H A DWifiConfigurationTest.java44 * Marshall the resulting object, and expect the bytes to match the
54 byte[] bytes = parcelW.marshall();
58 parcelR.unmarshall(bytes, 0, bytes.length);
70 assertArrayEquals(bytes, rebytes);
91 byte[] bytes = parcelW.marshall();
95 parcelR.unmarshall(bytes, 0, bytes.length);
/frameworks/rs/
H A DrsThreadIO.cpp52 hdr->bytes = dataLen;
135 mToCore.read(&buf[sizeof(CoreCmdHeader)], cmd->bytes);
145 //ALOGV("playCoreCommands 3 %i %i", cmd->cmdID, cmd->bytes);
152 gPlaybackFuncs[cmd->cmdID](con, data, cmd->bytes);
178 receiveLen[0] = mLastClientHeader.bytes;
187 receiveLen[0] = mLastClientHeader.bytes;
189 if (bufferLen < mLastClientHeader.bytes) {
204 hdr.bytes = (uint32_t)dataLen;
/frameworks/base/core/java/android/bluetooth/
H A DSdpOppOpsRecord.java77 byte[] bytes = new byte[arrayLength];
78 in.readByteArray(bytes);
79 this.mFormatsList = bytes;
/frameworks/base/libs/hwui/renderstate/
H A DTextureState.cpp76 unsigned char bytes[SHADOW_LUT_SIZE]; local
79 bytes[i] = computeShadowOpacity(inputRatio) * 255;
81 mShadowLutTexture->upload(GL_ALPHA, SHADOW_LUT_SIZE, 1, GL_ALPHA, GL_UNSIGNED_BYTE, &bytes);
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DVertexFrame.java90 byte[] bytes = buffer.array();
91 if (getFormat().getSize() != bytes.length) {
93 } else if (!setNativeData(bytes, offset, length)) {
/frameworks/av/drm/common/
H A DReadWriteUtils.cpp46 char* bytes = new char[length]; local
47 if (length == read(fd, (void*) bytes, length)) {
48 string.append(bytes, length);
50 delete[] bytes;
/frameworks/base/core/jni/
H A Dandroid_ddm_DdmHandleNativeHeap.cpp59 char bytes[1024]; local
61 while ((byteCount = TEMP_FAILURE_RETRY(read(fd, bytes, sizeof(bytes)))) > 0) {
62 s.append(bytes, byteCount);
/frameworks/base/media/mca/filterfw/jni/
H A Djni_vertex_frame.cpp77 jbyte* bytes = env->GetByteArrayElements(data, NULL); local
78 if (bytes) {
79 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(bytes + offset),
81 env->ReleaseByteArrayElements(data, bytes, JNI_ABORT);
/frameworks/base/services/core/java/com/android/server/am/
H A DNativeCrashListener.java236 int bytes;
239 bytes = Os.read(fd, buf, 0, buf.length);
240 if (bytes > 0) {
242 String s = new String(buf, 0, bytes, "UTF-8");
243 Slog.v(TAG, "READ=" + bytes + "> " + s);
246 if (buf[bytes-1] == 0) {
247 os.write(buf, 0, bytes-1); // exclude the EOD token
251 os.write(buf, 0, bytes);
253 } while (bytes > 0);

Completed in 710 milliseconds

1234567891011