/packages/modules/Connectivity/tests/common/java/android/net/ |
D | NattKeepalivePacketDataTest.kt | 50 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/ |
D | ApfNewTest.kt | 133 .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/ |
D | NetworkStackUtilsIntegrationTest.kt | 187 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/ |
D | MdnsPacketWriterTest.kt | 44 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/ |
D | PacketFilter.kt | 58 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/ |
D | PacketReflectorUtil.kt | 60 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/ |
D | HexDump.java | 200 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/ |
D | NsdServiceInfoTest.kt | 37 this.setAttribute("abc", byteArrayOf(0xff.toByte(), 0xfe.toByte())) in testToString_txtRecord()
|
/packages/modules/Uwb/generic_ranging/src/com/android/ranging/generic/ |
D | RangingTechnology.java | 39 public byte toByte() { in toByte() method in RangingTechnology
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/ |
D | WallpaperAction.kt | 34 parcel.readByte() != 0.toByte()
|
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/presence/ |
D | EncryptionInfo.java | 79 public static byte[] toByte(@EncodingScheme int encodingScheme, byte[] salt) { in toByte() method in EncryptionInfo
|
D | ExtendedAdvertisement.java | 313 EncryptionInfo.toByte(EncryptionInfo.EncodingScheme.MIC, mSalt)); in toBytesInternal()
|
/packages/modules/Bluetooth/android/pandora/server/src/ |
D | Hid.kt | 56 request.reportType.number.toByte(), in sendHostReport()
|
D | HfpHandsfree.kt | 208 request.code.toByte() in sendDtmfFromHandsfree()
|
D | Host.kt | 731 .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/ |
D | EncryptionInfoTest.java | 67 byte[] data = EncryptionInfo.toByte(EncodingScheme.MIC, SALT); in test_toBytes()
|
/packages/modules/Connectivity/tests/common/java/android/net/util/ |
D | SocketUtilsTest.kt | 38 private const val FF_BYTE = 0xff.toByte()
|
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/msrp/ |
D | MsrpSerializer.java | 78 outputStream.write(chunk.continuation().toByte()); in writeEndLine()
|
D | MsrpChunk.java | 102 public byte toByte() { in toByte() method in MsrpChunk.Continuation
|
/packages/modules/Connectivity/staticlibs/testutils/devicetests/ |
D | NSResponder.kt | 67 val tlla = LlaOption.build(ICMPV6_ND_OPTION_TLLA.toByte(), replyMacAddr) in replyToPacket()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/deletion/ |
D | DeletionParameters.kt | 48 parcel.readByte() != 0.toByte())
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | ApfIntegrationTest.kt | 187 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/ |
D | DownloadServiceTest.kt | 217 b[off + i] = (position % 256).toByte() in read()
|