Home
last modified time | relevance | path

Searched refs:toByteArray (Results 1 – 25 of 168) sorted by relevance

1234567

/cts/tests/tests/ndef/src/android/ndef/cts/
DNdefTest.java303 new NdefMessage(NdefRecord.createUri("http://www.google.com")).toByteArray())), in testValidParsing()
315 NdefRecord.createUri(Uri.parse("http://www.nfc.com"))).toByteArray()); in testCreateUri()
319 new NdefMessage(NdefRecord.createUri("tel:+35891234567")).toByteArray()); in testCreateUri()
323 new NdefMessage(NdefRecord.createUri("foo")).toByteArray()); in testCreateUri()
328 new NdefMessage(NdefRecord.createUri("\u00A2")).toByteArray()); in testCreateUri()
414 r.toByteArray()); in testCreateApplicationRecord()
460 new NdefRecord(NdefRecord.TNF_EMPTY, null, null, null)).toByteArray()); in testToByteArray()
465 NdefRecord.TNF_UNKNOWN, null, new byte[] {9}, null)).toByteArray()); in testToByteArray()
470 NdefRecord.TNF_EXTERNAL_TYPE, new byte[] {9}, null, null)).toByteArray()); in testToByteArray()
475 NdefRecord.TNF_UNKNOWN, null, null, new byte[] {9})).toByteArray()); in testToByteArray()
[all …]
/cts/tests/tests/nfc/src/android/nfc/tech/cts/interactive/
DNfcUtils.java54 return Arrays.equals(record.toByteArray(), otherRecord.toByteArray()); in areRecordsEqual()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/tech/
DNfcUtils.java46 return Arrays.equals(record.toByteArray(), otherRecord.toByteArray()); in areRecordsEqual()
/cts/tests/tests/time/shell_utils/host/android/app/time/cts/shell/host/
DHostShellCommandExecutor.java53 + parseBytesAsString(stdErrBytesReceiver.toByteArray()).trim()); in executeToBytesInternal()
55 return stdOutBytesReceiver.toByteArray(); in executeToBytesInternal()
/cts/tests/tests/car/src/android/car/cts/
DCarTelemetryManagerTest.java148 mCarTelemetryManager.addMetricsConfig(TEST_CONFIG_NAME, TEST_CONFIG.toByteArray(), in testAddRemoveMetricsConfig()
155 mCarTelemetryManager.addMetricsConfig(TEST_CONFIG_NAME, TEST_CONFIG.toByteArray(), in testAddRemoveMetricsConfig()
163 mCarTelemetryManager.addMetricsConfig(TEST_CONFIG_NAME, TEST_CONFIG.toByteArray(), in testAddRemoveMetricsConfig()
193 PARKING_BRAKE_CONFIG.toByteArray(), Runnable::run, callback); in testEndToEndScriptExecution_getFinishedReport()
235 PARKING_BRAKE_CONFIG.toByteArray(), Runnable::run, callback); in testEndToEndScriptExecution_getAllFinishedReports()
236 mCarTelemetryManager.addMetricsConfig(ERROR_CONFIG_NAME, ERROR_CONFIG.toByteArray(), in testEndToEndScriptExecution_getAllFinishedReports()
/cts/tests/sensor/src/android/hardware/cts/accessories/
DHidCommand.kt62 writeCommands(parser.readRegisterCommand(registerCommand).toByteArray()) in registerDevice()
94 writeCommands(json.toString().toByteArray()) in setGetReportResponse()
132 writeCommands(json.toString().toByteArray()) in sendSetReportReply()
169 writeCommands(json.toString().toByteArray()) in sendHidReport()
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DTransportDiscoveryDataTest.java122 public void toByteArray() { in toByteArray() method in TransportDiscoveryDataTest
130 TestUtils.assertArrayEquals(data.toByteArray(), dataFromParcel.toByteArray()); in toByteArray()
DTransportBlockTest.java121 public void toByteArray() { in toByteArray() method in TransportBlockTest
129 TestUtils.assertArrayEquals(data.toByteArray(), dataFromParcel.toByteArray()); in toByteArray()
/cts/tests/tests/wifi/src/android/net/wifi/nl80211/cts/
DNativeWifiClientTest.java54 assertThat(client.getMacAddress().toByteArray()).isEqualTo(TEST_MAC); in testGetters()
67 assertThat(clientDeserialized.getMacAddress().toByteArray()).isEqualTo(TEST_MAC); in canSerializeAndDeserialize()
/cts/hostsidetests/art/host/src/android/art/cts/host/
DThreadLocalRandomTest.java99 + parseBytesAsString(stdErrBytesReceiver.toByteArray()).trim()); in execute()
101 return stdOutBytesReceiver.toByteArray(); in execute()
/cts/tests/inputmethod/mockspellchecker/src/com/android/cts/mockspellchecker/
DMockSpellCheckerClient.kt30 context.contentResolver, KEY_CONFIGURATION, configuration.toByteArray()) in updateConfiguration()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/base/
DAsn1Integer.java105 buf.put(value.toByteArray()); in encodeBerValue()
132 ? PerAlignedUtils.encodeUnconstrainedLengthOfBytes(value.toByteArray()) in encodePerImpl()
133 : PerUnalignedUtils.encodeSemiConstrainedLengthOfBytes(value.toByteArray()); in encodePerImpl()
/cts/tests/appsearch/testutils/src/android/app/appsearch/testutil/
DPackageUtil.java45 md.update(signingInfo.getSigningCertificateHistory()[0].toByteArray()); in getSelfPackageSha256Cert()
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/
DBroadcastRpc.java29 return testServiceRequest.toByteArray(); in requestToBytes()
/cts/tests/tests/car/src/android/car/cts/utils/
DProtoDumpUtils.java53 return stdout.toByteArray(); in executeProtoDumpShellCommand()
/cts/tests/tests/proto/src/android/util/proto/cts/
DProtoOutputStreamBoolTest.java85 final byte[] expected = MessageNano.toByteArray(all); in testWriteCompat()
162 final byte[] expected = MessageNano.toByteArray(all); in testRepeatedCompat()
246 final byte[] expected = MessageNano.toByteArray(all); in testPackedCompat()
DProtoOutputStreamSInt32Test.java100 final byte[] expected = MessageNano.toByteArray(all); in testWriteCompat()
201 final byte[] expected = MessageNano.toByteArray(all); in testRepeatedCompat()
302 final byte[] expected = MessageNano.toByteArray(all); in testPackedCompat()
DProtoOutputStreamEnumTest.java105 final byte[] expected = MessageNano.toByteArray(all); in testWriteCompat()
213 final byte[] expected = MessageNano.toByteArray(all); in testRepeatedCompat()
331 final byte[] expected = MessageNano.toByteArray(all); in testPackedCompat()
DProtoOutputStreamInt32Test.java102 final byte[] expected = MessageNano.toByteArray(all); in testWriteCompat()
207 final byte[] expected = MessageNano.toByteArray(all); in testRepeatedCompat()
318 final byte[] expected = MessageNano.toByteArray(all); in testPackedCompat()
DProtoOutputStreamSFixed32Test.java100 final byte[] expected = MessageNano.toByteArray(all); in testWriteCompat()
201 final byte[] expected = MessageNano.toByteArray(all); in testRepeatedCompat()
303 final byte[] expected = MessageNano.toByteArray(all); in testPackedCompat()
DProtoOutputStreamUInt32Test.java100 final byte[] expected = MessageNano.toByteArray(all); in testWriteCompat()
201 final byte[] expected = MessageNano.toByteArray(all); in testRepeatedCompat()
302 final byte[] expected = MessageNano.toByteArray(all); in testPackedCompat()
DProtoOutputStreamFixed32Test.java100 final byte[] expected = MessageNano.toByteArray(all); in testWriteCompat()
201 final byte[] expected = MessageNano.toByteArray(all); in testRepeatedCompat()
302 final byte[] expected = MessageNano.toByteArray(all); in testPackedCompat()
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/
DEvent.java60 return bos.toByteArray(); in toBytes()
/cts/tests/tests/security/src/android/security/cts/
DCVE_2023_40099.java45 String stdErrorOutput = new String(ByteStreams.toByteArray(process.getErrorStream())); in testPocCVE_2023_40099()
/cts/tests/tests/telephony/current/src/android/telephony/gba/cts/
DUaSecurityProtocolIdentifierTest.java102 assertArrayEquals(sp.toByteArray(), PROTO_DEFAULT); in testDefaultId()
118 assertArrayEquals(sp.toByteArray(), PROTO_3GPP_PLAIN[i]); in testValid3gppId()
140 assertArrayEquals(targetData, sp.toByteArray()); in testValid3gppIdWithTls()

1234567