Home
last modified time | relevance | path

Searched refs:toByte (Results 1 – 23 of 23) sorted by relevance

/packages/modules/Connectivity/tests/common/java/android/net/
DNattKeepalivePacketDataTest.kt50 0x00.toByte(),
51 0x00.toByte(),
52 0x00.toByte(),
53 0x00.toByte(),
54 0x00.toByte(),
55 0x00.toByte(),
56 0x00.toByte(),
57 0x00.toByte(),
58 0x00.toByte(),
59 0x00.toByte(),
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DApfNewTest.kt133 .map { it.toByte() }.toByteArray() in <lambda>()
135 .map { it.toByte() }.toByteArray() in <lambda>()
139 .map{ it.toByte() }.toByteArray(), in <lambda>()
142 .map{ it.toByte() }.toByteArray() in <lambda>()
147 .map{ it.toByte() }.toByteArray(), in <lambda>()
150 .map{ it.toByte() }.toByteArray() in <lambda>()
155 .map{ it.toByte() }.toByteArray() in <lambda>()
159 intArrayOf(0x33, 0x33, 0, 0, 0, 1).map { it.toByte() }.toByteArray(), in <lambda>()
161 intArrayOf(0x33, 0x33, 0xff, 0x44, 0x11, 0x22).map { it.toByte() }.toByteArray(), in <lambda>()
163 intArrayOf(0x33, 0x33, 0xff, 0x55, 0x66, 0x77).map { it.toByte() }.toByteArray(), in <lambda>()
[all …]
/packages/modules/NetworkStack/tests/integration/signature/android/net/util/
DNetworkStackUtilsIntegrationTest.kt187 0.toByte() /* flags */, 3600 /* validLifetime */, 1800 /* preferredLifetime */) in doTestAttachRaFilter()
190 0.toByte() /* flags */, 1800 /* lifetime */, 0 /* reachableTime */, in doTestAttachRaFilter()
246 0xB8.toByte(), 0x98.toByte(), 0x76.toByte(), 0xFF.toByte(), in testConvertMacAddressToEui64()
247 0xFE.toByte(), 0x54.toByte(), 0x32.toByte(), 0x10.toByte()) in testConvertMacAddressToEui64()
253 0x03.toByte(), 0x23.toByte(), 0x45.toByte(), 0xFF.toByte(), in testConvertMacAddressToEui64()
254 0xFE.toByte(), 0x67.toByte(), 0x89.toByte(), 0x0A.toByte()) in testConvertMacAddressToEui64()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsPacketWriterTest.kt44 val expected = "my".label() + "FIRST".label() + "name".label() + 0x00.toByte() + in testNameCompression()
46 "my".label() + "second".label() + byteArrayOf(0xC0.toByte(), 9) + in testNameCompression()
47 "other".label() + byteArrayOf(0xC0.toByte(), 3) + in testNameCompression()
48 byteArrayOf(0xC0.toByte(), 15) + in testNameCompression()
49 "unrelated".label() + 0x00.toByte() in testNameCompression()
55 private fun String.label() = byteArrayOf(length.toByte()) + encodeToByteArray()
/packages/modules/Connectivity/staticlibs/testutils/hostdevice/com/android/testutils/
DPacketFilter.kt58 src.toInt().ushr(8).toByte(), src.toByte()).test(t)) { in test()
63 dst.toInt().ushr(8).toByte(), dst.toByte()).test(t)) { in test()
90 private val impl = OffsetFilter(ETHER_TYPE_OFFSET, 0x86.toByte(), 0xdd.toByte() /* IPv6 */).and( in test()
114 private val impl = OffsetFilter(ETHER_TYPE_OFFSET, 0x86.toByte(), 0xdd.toByte() /* IPv6 */).and(
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DPacketReflectorUtil.kt60 buf[pos] = (port ushr 8).toByte() in setPortAt()
61 buf[pos + 1] = (port and 0xff).toByte() in setPortAt()
79 buf[IPV4_CHKSUM_OFFSET] = (checksum.toInt() ushr 8).toByte() in fixPacketChecksum()
80 buf[IPV4_CHKSUM_OFFSET + 1] = (checksum.toInt() and 0xff).toByte() in fixPacketChecksum()
95 buf[checksumPos] = (checksum.toInt() ushr 8).toByte() in fixPacketChecksum()
96 buf[checksumPos + 1] = (checksum.toInt() and 0xff).toByte() in fixPacketChecksum()
108 buf[checksumPos] = (checksum.toInt() ushr 8).toByte() in fixPacketChecksum()
109 buf[checksumPos + 1] = (checksum.toInt() and 0xff).toByte() in fixPacketChecksum()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DHexDump.java200 private static int toByte(char c) { in toByte() method in HexDump
219 (byte) ((toByte(hexString.charAt(i)) << 4) | toByte(hexString.charAt(i + 1))); in hexStringToByteArray()
/packages/modules/Connectivity/tests/unit/java/android/net/nsd/
DNsdServiceInfoTest.kt37 this.setAttribute("abc", byteArrayOf(0xff.toByte(), 0xfe.toByte())) in testToString_txtRecord()
/packages/modules/Uwb/generic_ranging/src/com/android/ranging/generic/
DRangingTechnology.java39 public byte toByte() { in toByte() method in RangingTechnology
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DWallpaperAction.kt34 parcel.readByte() != 0.toByte()
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/presence/
DEncryptionInfo.java79 public static byte[] toByte(@EncodingScheme int encodingScheme, byte[] salt) { in toByte() method in EncryptionInfo
DExtendedAdvertisement.java313 EncryptionInfo.toByte(EncryptionInfo.EncodingScheme.MIC, mSalt)); in toBytesInternal()
/packages/modules/Bluetooth/android/pandora/server/src/
DHid.kt56 request.reportType.number.toByte(), in sendHostReport()
DHfpHandsfree.kt208 request.code.toByte() in sendDtmfFromHandsfree()
DHost.kt731 .put(id.toByte()) in scan()
732 .put(id.shr(8).toByte()) in scan()
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/presence/
DEncryptionInfoTest.java67 byte[] data = EncryptionInfo.toByte(EncodingScheme.MIC, SALT); in test_toBytes()
/packages/modules/Connectivity/tests/common/java/android/net/util/
DSocketUtilsTest.kt38 private const val FF_BYTE = 0xff.toByte()
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/msrp/
DMsrpSerializer.java78 outputStream.write(chunk.continuation().toByte()); in writeEndLine()
DMsrpChunk.java102 public byte toByte() { in toByte() method in MsrpChunk.Continuation
/packages/modules/Connectivity/staticlibs/testutils/devicetests/
DNSResponder.kt67 val tlla = LlaOption.build(ICMPV6_ND_OPTION_TLLA.toByte(), replyMacAddr) in replyToPacket()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/deletion/
DDeletionParameters.kt48 parcel.readByte() != 0.toByte())
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DApfIntegrationTest.kt187 if (length == 0 || recvbuf[0] != 0x81.toByte()) { in handlePacket()
209 val icmp6Header = byteArrayOf(0x80.toByte(), 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00) in sendPing()
/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/
DDownloadServiceTest.kt217 b[off + i] = (position % 256).toByte() in read()