/packages/modules/Connectivity/staticlibs/testutils/hostdevice/com/android/testutils/ |
D | PacketFilter.kt | 46 class OffsetFilter(val offset: Int, vararg val bytes: Byte) : Predicate<ByteArray> { 47 override fun test(packet: ByteArray) = in test() 55 ) : Predicate<ByteArray> { 56 override fun test(t: ByteArray): Boolean { in test() 76 ) : Predicate<ByteArray> { 80 override fun test(t: ByteArray) = impl.test(t) in test() 89 ) : Predicate<ByteArray> { in test() 93 override fun test(t: ByteArray) = impl.test(t) in test() 99 class IPv4DstFilter(dst: Inet4Address) : Predicate<ByteArray> { 101 override fun test(t: ByteArray) = impl.test(t) in test() [all …]
|
/packages/modules/Bluetooth/system/gd/common/ |
D | byte_array.h | 34 class ByteArray : public packet::CustomFieldFixedSizeInterface<ByteArray<LENGTH>>, 35 public storage::Serializable<ByteArray<LENGTH>> { 38 ByteArray() = default; 39 ByteArray(const uint8_t (&d)[kLength]) { in ByteArray() function 42 ByteArray(std::array<uint8_t, kLength> a) : bytes(std::move(a)) {} in ByteArray() function 55 bool operator<(const ByteArray& rhs) const { 58 bool operator==(const ByteArray& rhs) const { 61 bool operator>(const ByteArray& rhs) const { 64 bool operator<=(const ByteArray& rhs) const { 67 bool operator>=(const ByteArray& rhs) const { [all …]
|
D | byte_array_test.cc | 23 using bluetooth::common::ByteArray; 41 ByteArray<N> byte_array(data); in simple_constructor_test() 42 for (size_t i = 0; i < ByteArray<N>::kLength; i++) { in simple_constructor_test() 49 const ByteArray<N> byte_array(data); in simple_const_constructor_test() 50 for (size_t i = 0; i < ByteArray<N>::kLength; i++) { in simple_const_constructor_test() 60 ByteArray<N> byte_array(array_of_bytes); in simple_array_constructor_test() 61 for (size_t i = 0; i < ByteArray<N>::kLength; i++) { in simple_array_constructor_test() 68 auto byte_array = ByteArray<N>::FromString(byte_string); in simple_from_string_test() 71 for (size_t i = 0; i < ByteArray<N>::kLength; i++) { in simple_from_string_test() 78 const ByteArray<N> byte_array(data); in simple_to_string_test() [all …]
|
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/ |
D | PacketReflectorUtil.kt | 32 fun readPacket(fd: FileDescriptor, buf: ByteArray): Int { in readPacket() 49 fun getInetAddressAt(buf: ByteArray, pos: Int, len: Int): InetAddress = in getInetAddressAt() 55 fun getPortAt(buf: ByteArray, pos: Int): Int { in getInetAddressAt() 59 fun setPortAt(port: Int, buf: ByteArray, pos: Int) { in setPortAt() 74 fun fixPacketChecksum(buf: ByteArray, len: Int, version: Int, protocol: Byte) { in fixPacketChecksum() 116 fun swapBytes(buf: ByteArray, pos1: Int, pos2: Int, len: Int) { in swapBytes() 124 fun swapAddresses(buf: ByteArray, version: Int) { in swapAddresses()
|
D | PacketResponder.kt | 36 private val packetFilter: Predicate<ByteArray>, 41 protected abstract fun replyToPacket(packet: ByteArray, reader: TapPacketReader) in replyToPacket()
|
D | TestDnsServer.kt | 63 private val buffer = ByteArray(MAX_BUF_SIZE) 144 constructor(data: ByteArray) : super(data) 171 constructor(bytes: ByteArray) : super(bytes)
|
D | ArpResponder.kt | 43 override fun replyToPacket(packet: ByteArray, reader: TapPacketReader) { in replyToPacket() 63 private fun ByteArray.copyFromIndexWithLength(start: Int, len: Int) = method
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | ApfIntegrationTest.kt | 174 private var futureReply: CompletableFuture<ByteArray>? = null 185 override fun handlePacket(recvbuf: ByteArray, length: Int) { in handlePacket() 196 fun sendPing(data: ByteArray, payloadSize: Int) { in sendPing() 212 futureReply = CompletableFuture<ByteArray>() in sendPing() 216 fun expectPingReply(): ByteArray { in expectPingReply() 344 fun installProgram(bytes: ByteArray) { in installProgram() 351 fun readProgram(): ByteArray { in readProgram() 376 val program = ByteArray(caps.maximumApfProgramSize) in testReadWriteProgram() 432 val data = ByteArray(payloadSize).also { Random.nextBytes(it) } in testDropPingReply() 457 fun clearApfMemory() = installProgram(ByteArray(caps.maximumApfProgramSize)) in clearApfMemory() [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/contracts/ |
D | Checksum.kt | 4 val bytes: ByteArray 10 value class PackageChecksum(override val bytes: ByteArray) : Checksum 16 value class SignatureChecksum(override val bytes: ByteArray) : Checksum
|
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/ |
D | ApfNewTest.kt | 186 assertFailsWith<IllegalInstructionException> { gen.addData(ByteArray(3) { 0x01 }) } in testDataInstructionMustComeFirst() 193 ApfV6Generator(ByteArray(65536) { 0x01 }, defaultMaximumApfProgramSize) in testApfInstructionEncodingSizeCheck() 233 byteArrayOf(64) + ByteArray(64) { 'A'.code.toByte() } + byteArrayOf(0, 0), in testApfInstructionEncodingSizeCheck() 273 byteArrayOf(64) + ByteArray(64) { 'A'.code.toByte() } + byteArrayOf(0, 0), in testApfInstructionEncodingSizeCheck() 304 byteArrayOf(64) + ByteArray(64) { 'A'.code.toByte() } + byteArrayOf(0, 0), in testApfInstructionEncodingSizeCheck() 332 byteArrayOf(64) + ByteArray(64) { 'A'.code.toByte() } + byteArrayOf(0, 0), in testApfInstructionEncodingSizeCheck() 344 gen.addJumpIfBytesAtR0Equal(ByteArray(2048) { 1 }, DROP_LABEL) in testApfInstructionEncodingSizeCheck() 347 gen.addJumpIfBytesAtR0NotEqual(ByteArray(2048) { 1 }, DROP_LABEL) in testApfInstructionEncodingSizeCheck() 433 gen.addJumpIfBytesAtR0EqualsAnyOf(listOf(ByteArray(2048) { 1 }), PASS_LABEL ) in testApfInstructionEncodingSizeCheck() 661 val largeByteArray = ByteArray(256) { 0x01 } in testApfInstructionsEncoding() [all …]
|
D | ApfStandaloneTest.kt | 78 val dataRegion = ByteArray(Counter.totalSize()) { 0 } in runApfTest() 245 private fun generateApfV4Program(isDeviceIdle: Boolean): ByteArray { in generateApfV4Program() 381 private fun decodeCountersIntoMap(counterBytes: ByteArray): Map<Counter, Long> { in decodeCountersIntoMap() 394 private fun getCounterValue(data: ByteArray, counter: Counter): Long { in getCounterValue()
|
/packages/modules/Connectivity/nearby/tests/integration/privileged/src/android/nearby/integration/privileged/ |
D | NearbyManagerTest.kt | 81 val metadataEncryptionKey = ByteArray(14) in testNearbyManagerStartBroadcastStopBroadcast_fromPrivilegedApp_succeed() 109 val eid = ByteArray(20) in testNearbyManagerSetPoweredOffFindingEphemeralIds_fromPrivilegedApp_succeed() 126 nearbyManager.setPoweredOffFindingEphemeralIds(listOf(ByteArray(21))) in testNearbyManagerSetPoweredOffFindingEphemeralIds_wrongSize_throwsException() 129 nearbyManager.setPoweredOffFindingEphemeralIds(listOf(ByteArray(19))) in testNearbyManagerSetPoweredOffFindingEphemeralIds_wrongSize_throwsException()
|
/packages/modules/Bluetooth/system/gd/security/record/ |
D | security_record_storage.cc | 60 common::ByteArray<23> byte_array(peerid); in SetLeData() 78 common::ByteArray<28> byte_array(penc_keys); in SetLeData() 93 common::ByteArray<21> byte_array(psrk_keys); in SetLeData() 152 auto peerid = common::ByteArray<23>::FromString(*device.Le().GetPeerId()); in LoadSecurityRecords() 165 …auto peer_encryption_keys = common::ByteArray<28>::FromString(*device.Le().GetPeerEncryptionKeys()… in LoadSecurityRecords() 179 common::ByteArray<21>::FromString(*device.Le().GetPeerSignatureResolvingKeys()); in LoadSecurityRecords()
|
/packages/modules/Bluetooth/android/pandora/server/src/ |
D | GattServerManager.kt | 69 ByteArray(negociatedMtu) in onCharacteristicReadRequest() 77 ByteArray(512 - offset) in onCharacteristicReadRequest() 89 value: ByteArray in onCharacteristicWriteRequest()
|
D | GattInstance.kt | 107 value: ByteArray, in onCharacteristicRead() 127 value: ByteArray in onDescriptorRead() 165 value: ByteArray in onCharacteristicChanged() 347 value: ByteArray in writeCharacteristicBlocking() 368 value: ByteArray in writeDescriptorBlocking()
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/structs/ |
D | StructMf6cctl.java | 38 @Field(order = 3, type = Type.ByteArray, arraysize = 16) 50 @Field(order = 8, type = Type.ByteArray, arraysize = 16) 57 @Field(order = 11, type = Type.ByteArray, arraysize = 32)
|
/packages/apps/Settings/tests/shared/src/com/android/settings/testutils2/ |
D | FakeFingerprintManagerInteractor.kt | 42 var challengeToGenerate: Pair<Long, ByteArray> = Pair(-1L, byteArrayOf()) 63 override suspend fun generateChallenge(gateKeeperPasswordHandle: Long): Pair<Long, ByteArray> { in generateChallenge() 80 hardwareAuthToken: ByteArray?, in enroll()
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/ui/settings/viewmodel/ |
D | NextStepViewModel.kt | 29 val challengeToken: ByteArray?, 32 data class EnrollAdditionalFingerprint(val userId: Int, val challengeToken: ByteArray?) :
|
D | FingerprintSettingsNavigationViewModel.kt | 38 tokenInit: ByteArray?, 113 fun onEnrollFirst(theToken: ByteArray?, theChallenge: Long?) { in onEnrollFirst() 179 private val token: ByteArray?,
|
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/utils/ |
D | SerializationUtils.kt | 24 internal fun Serializable.serialize(): ByteArray = in <lambda>() 30 internal fun <T : Serializable> ByteArray.deserialize(): T = in deserialize()
|
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/integration/ |
D | DefaultDataTypeDescriptorSet.kt | 66 FieldType.ByteArray, in <lambda>() 89 FieldType.ByteArray -> ByteArray::class.java in <lambda>()
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/lib/domain/interactor/ |
D | FingerprintManagerInteractor.kt | 56 suspend fun generateChallenge(gateKeeperPasswordHandle: Long): Pair<Long, ByteArray> 63 hardwareAuthToken: ByteArray?,
|
/packages/modules/Connectivity/common/src/com/android/net/module/util/bpf/ |
D | Tether4Key.java | 42 @Field(order = 3, type = Type.ByteArray, arraysize = 4) 45 @Field(order = 4, type = Type.ByteArray, arraysize = 4)
|
/packages/modules/Connectivity/tests/common/java/android/net/util/ |
D | SocketUtilsTest.kt | 59 val pkAddress2 = SocketUtils.makePacketSocketAddress(TEST_INDEX, ByteArray(6) { FF_BYTE }) in testMakePacketSocketAddress_Q() 66 ETH_P_ALL, TEST_INDEX, ByteArray(6) { FF_BYTE }) in testMakePacketSocketAddress()
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/xfrm/ |
D | StructXfrmSelector.java | 52 @Field(order = 0, type = Type.ByteArray, arraysize = 16) 55 @Field(order = 1, type = Type.ByteArray, arraysize = 16)
|