Home
last modified time | relevance | path

Searched refs:qrCodeString (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/unit/src/com/android/settingslib/bluetooth/
DBluetoothLeBroadcastMetadataExtTest.kt67 val qrCodeString = metadata.toQrCodeString() in toQrCodeString_encrypted() constant
69 assertThat(qrCodeString).isEqualTo(QR_CODE_STRING) in toQrCodeString_encrypted()
98 val qrCodeString = metadata.toQrCodeString() in toQrCodeString_non_encrypted() constant
100 assertThat(qrCodeString).isEqualTo(QR_CODE_STRING_NON_ENCRYPTED) in toQrCodeString_non_encrypted()
137 val qrCodeString = metadata.toQrCodeString() in toQrCodeString_NoChannelSelected() constant
140 BluetoothLeBroadcastMetadataExt.convertToBroadcastMetadata(qrCodeString)!! in toQrCodeString_NoChannelSelected()
186 val qrCodeString = metadata.toQrCodeString() in toQrCodeString_OneChannelSelected() constant
189 BluetoothLeBroadcastMetadataExt.convertToBroadcastMetadata(qrCodeString)!! in toQrCodeString_OneChannelSelected()
206 val qrCodeString = metadata.toQrCodeString() in decodeAndEncodeAgain_sameString() constant
208 assertThat(qrCodeString).isEqualTo(QR_CODE_STRING) in decodeAndEncodeAgain_sameString()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothLeBroadcastMetadataExt.kt117 val qrCodeString = SCHEME_BT_BROADCAST_METADATA + in <lambda>() constant
119 Log.d(TAG, "Generated QR string : $qrCodeString") in <lambda>()
120 return qrCodeString in <lambda>()
128 fun convertToBroadcastMetadata(qrCodeString: String): BluetoothLeBroadcastMetadata? { in <lambda>()
129 if (!qrCodeString.startsWith(SCHEME_BT_BROADCAST_METADATA)) { in <lambda>()
130 Log.e(TAG, "String \"$qrCodeString\" does not begin with " + in <lambda>()
135 Log.d(TAG, "Parsing QR string: $qrCodeString") in <lambda>()
137 qrCodeString.removePrefix(SCHEME_BT_BROADCAST_METADATA) in <lambda>()
142 Log.w(TAG, "Cannot parse: $qrCodeString", e) in <lambda>()
DLocalBluetoothLeBroadcastMetadata.kt28 fun convertToBroadcastMetadata(qrCodeString: String) =
29 BluetoothLeBroadcastMetadataExt.convertToBroadcastMetadata(qrCodeString)