Home
last modified time | relevance | path

Searched refs:ByteArray (Results 1 – 25 of 50) sorted by relevance

12

/packages/modules/Bluetooth/system/gd/common/
Dbyte_array.h34 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 …]
Dbyte_array_test.cc23 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/Bluetooth/system/gd/security/record/
Dsecurity_record_storage.cc56 common::ByteArray<23> byte_array(peerid); in SetLeData()
74 common::ByteArray<28> byte_array(penc_keys); in SetLeData()
89 common::ByteArray<21> byte_array(psrk_keys); in SetLeData()
145 auto peerid = common::ByteArray<23>::FromString(*device.Le().GetPeerId()); in LoadSecurityRecords()
158 …auto peer_encryption_keys = common::ByteArray<28>::FromString(*device.Le().GetPeerEncryptionKeys()… in LoadSecurityRecords()
172 common::ByteArray<21>::FromString(*device.Le().GetPeerSignatureResolvingKeys()); in LoadSecurityRecords()
/packages/modules/Bluetooth/android/pandora/server/src/com/android/pandora/
DGattServerManager.kt68 ByteArray(negociatedMtu) in onCharacteristicReadRequest()
76 ByteArray(512 - offset) in onCharacteristicReadRequest()
88 value: ByteArray in onCharacteristicWriteRequest()
DGattInstance.kt105 value: ByteArray, in onCharacteristicRead()
125 value: ByteArray in onDescriptorRead()
163 value: ByteArray in onCharacteristicChanged()
336 value: ByteArray in writeCharacteristicBlocking()
357 value: ByteArray in writeDescriptorBlocking()
DHost.kt70 public fun getUShortAt(input: ByteArray, index: Int): UShort { in getUShortAt()
75 public fun getShortAt(input: ByteArray, index: Int): Short { in getShortAt()
79 public fun getUIntAt(input: ByteArray, index: Int): UInt { in getUIntAt()
86 public fun getIntAt(input: ByteArray, index: Int): Int { in getIntAt()
90 public fun getUInt24At(input: ByteArray, index: Int): UInt { in getUInt24At()
96 public fun getInt24At(input: ByteArray, index: Int): Int { in getInt24At()
DL2cap.kt54 suspend fun receive(inStream: InputStream): ByteArray { in receive()
56 val buf = ByteArray(BUFFER_SIZE) in receive()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/ui/viewmodel/
DFingerprintSettingsNavigationViewModel.kt37 tokenInit: ByteArray?,
105 fun onEnrollFirst(theToken: ByteArray?, theChallenge: Long?) { in onEnrollFirst()
170 private val token: ByteArray?,
DNextStepViewModel.kt29 val challengeToken: ByteArray?,
34 val challengeToken: ByteArray?,
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/integration/
DDefaultDataTypeDescriptorSet.kt66 FieldType.ByteArray, in <lambda>()
89 FieldType.ByteArray -> ByteArray::class.java in <lambda>()
/packages/apps/Settings/tests/unit/src/com/android/settings/fingerprint2/domain/interactor/
DFakeFingerprintManagerInteractor.kt33 var challengeToGenerate: Pair<Long, ByteArray> = Pair(-1L, byteArrayOf())
53 override suspend fun generateChallenge(gateKeeperPasswordHandle: Long): Pair<Long, ByteArray> { in generateChallenge()
/packages/modules/Connectivity/common/src/com/android/net/module/util/bpf/
DTether4Key.java42 @Field(order = 3, type = Type.ByteArray, arraysize = 4)
45 @Field(order = 4, type = Type.ByteArray, arraysize = 4)
DTether4Value.java47 @Field(order = 5, type = Type.ByteArray, arraysize = 16)
50 @Field(order = 6, type = Type.ByteArray, arraysize = 16)
/packages/modules/Connectivity/tests/common/java/android/net/util/
DSocketUtilsTest.kt66 val pkAddress2 = SocketUtils.makePacketSocketAddress(TEST_INDEX, ByteArray(6) { FF_BYTE }) in testMakePacketSocketAddress_Q()
73 ETH_P_ALL, TEST_INDEX, ByteArray(6) { FF_BYTE }) in testMakePacketSocketAddress()
/packages/services/Car/tools/emulator/
Ddiagnostic_builder.py26 class ByteArray(object): class in DiagnosticEventBuilder
62 self.bitmask = DiagnosticEventBuilder.ByteArray(
/packages/modules/NetworkStack/tests/integration/signature/android/net/util/
DNetworkStackUtilsIntegrationTest.kt195 private fun assertNextPacketEquals(socket: FileDescriptor, expected: ByteArray, descr: String) { in assertNextPacketEquals()
196 val buffer = ByteArray(TEST_MTU) in assertNextPacketEquals()
324 private fun ByteBuffer.readAsArray(): ByteArray { in readAsArray()
325 val out = ByteArray(remaining()) in readAsArray()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/metrics/
DDataStallStatsUtilsTest.kt102 private fun makeTestDnsTimeoutNano(timeoutCount: Int): ByteArray? { in makeTestDnsTimeoutNano()
112 private fun makeTestCellDataNano(): ByteArray? { in makeTestCellDataNano()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DDscpPolicyValue.java34 @Field(order = 0, type = Type.ByteArray, arraysize = 16)
37 @Field(order = 1, type = Type.ByteArray, arraysize = 16)
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/ui/binder/
DFingerprintSettingsViewBinder.kt56 challengeToken: ByteArray? in <lambda>()
60 fun launchAddFingerprint(userId: Int, challengeToken: ByteArray?) in <lambda>()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/domain/interactor/
DFingerprintManagerInteractor.kt61 suspend fun generateChallenge(gateKeeperPasswordHandle: Long): Pair<Long, ByteArray> in <lambda>()
99 override suspend fun generateChallenge(gateKeeperPasswordHandle: Long): Pair<Long, ByteArray> = in generateChallenge()
/packages/modules/Bluetooth/system/gd/hci/
Dlink_key.h24 using LinkKey = common::ByteArray<16>;
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DDscpPolicyTest.kt294 fun ByteArray.toHex(): String = joinToString(separator = "") { in <lambda>() method
359 val ipAddr = if (sendV6) ByteArray(16) else ByteArray(4) in <lambda>()
746 private fun ByteBuffer.readAsArray(): ByteArray { in readAsArray()
747 val out = ByteArray(remaining()) in readAsArray()
/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/
DDownloadServiceTest.kt193 override fun read(b: ByteArray, off: Int, len: Int): Int { in read()
496 val buffer1 = ByteArray(1000) in assertSameContents()
497 val buffer2 = ByteArray(1000) in assertSameContents()
/packages/apps/Settings/tests/unit/src/com/android/settings/fingerprint2/viewmodel/
DFingerprintSettingsNavigationViewModelTest.kt193 val byteArray = ByteArray(1) { 3 } in firstEnrollmentSucceeds_noKeyChallenge()
211 val byteArray = ByteArray(1) { 3 } in firstEnrollment_succeeds()
/packages/modules/Connectivity/service-t/src/com/android/server/net/
DInterfaceMapValue.java28 @Field(order = 0, type = Type.ByteArray, arraysize = 16)

12