/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
H A D | InformationElementUtil.java | 35 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 D | NativeUtil.java | 125 * 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 D | BitUtils.java | 100 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 D | BitwiseInputStream.java | 96 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 D | IpPrefix.cpp | 56 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 D | InformationElementUtilTest.java | 117 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 D | WifiCertManager.java | 65 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 D | PackageUtils.java | 59 * 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 D | NetlinkConstants.java | 57 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 D | ByteStream.java | 48 * 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 D | UidRangeTest.cpp | 46 * 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 D | LowpanBeaconInfoTest.cpp | 26 * 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 D | LowpanChannelInfoTest.cpp | 26 * 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 D | LowpanCredentialTest.cpp | 26 * 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 D | LowpanIdentityTest.cpp | 26 * 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 D | LowpanProvisionTest.cpp | 26 * 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 D | WifiConfigurationTest.java | 44 * 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 D | rsThreadIO.cpp | 52 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 D | SdpOppOpsRecord.java | 77 byte[] bytes = new byte[arrayLength]; 78 in.readByteArray(bytes); 79 this.mFormatsList = bytes;
|
/frameworks/base/libs/hwui/renderstate/ |
H A D | TextureState.cpp | 76 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 D | VertexFrame.java | 90 byte[] bytes = buffer.array(); 91 if (getFormat().getSize() != bytes.length) { 93 } else if (!setNativeData(bytes, offset, length)) {
|
/frameworks/av/drm/common/ |
H A D | ReadWriteUtils.cpp | 46 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 D | android_ddm_DdmHandleNativeHeap.cpp | 59 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 D | jni_vertex_frame.cpp | 77 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 D | NativeCrashListener.java | 236 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);
|