Home
last modified time | relevance | path

Searched refs:mac (Results 1 – 13 of 13) sorted by relevance

/cts/tests/tests/net/src/android/net/cts/
DMacAddressTest.java92 MacAddress mac = MacAddress.fromString(tc.macAddress); in testMacAddress() local
94 if (!tc.ouiString.equals(mac.toOuiString())) { in testMacAddress()
96 tc.ouiString, mac.toOuiString())); in testMacAddress()
99 if (tc.isLocallyAssigned != mac.isLocallyAssigned()) { in testMacAddress()
100 fail(String.format("expected %s to be %s, got %s", mac, in testMacAddress()
102 localAssignedToString(mac.isLocallyAssigned()))); in testMacAddress()
105 if (tc.addressType != mac.getAddressType()) { in testMacAddress()
106 fail(String.format("expected %s address type to be %s, got %s", mac, in testMacAddress()
107 typeToString(tc.addressType), typeToString(mac.getAddressType()))); in testMacAddress()
110 if (!tc.macAddress.equals(mac.toString())) { in testMacAddress()
[all …]
/cts/tests/tests/keystore/src/android/keystore/cts/
DMacTest.java217 Mac mac = Mac.getInstance(algorithm); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProvider() local
218 mac.init(key); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProvider()
219 assertSame(provider, mac.getProvider()); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProvider()
234 Mac mac = Mac.getInstance(algorithm, provider); in testMacGeneratedForEmptyMessage() local
235 mac.init(key); in testMacGeneratedForEmptyMessage()
236 byte[] macBytes = mac.doFinal(); in testMacGeneratedForEmptyMessage()
255 Mac mac = Mac.getInstance(algorithm, provider); in testMacGeneratedByAndroidKeyStoreVerifiesByAndroidKeyStore() local
256 mac.init(key); in testMacGeneratedByAndroidKeyStoreVerifiesByAndroidKeyStore()
258 byte[] macBytes = mac.doFinal(message); in testMacGeneratedByAndroidKeyStoreVerifiesByAndroidKeyStore()
277 Mac mac = Mac.getInstance(algorithm, provider); in testMacGeneratedByAndroidKeyStoreVerifiesByHighestPriorityProvider() local
[all …]
DAndroidKeyStoreTest.java2357 Mac mac = Mac.getInstance(key1.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_HMAC() local
2358 mac.init(keystoreKey1); in testKeyStore_LargeNumberOfKeysSupported_HMAC()
2362 mac.doFinal(message)); in testKeyStore_LargeNumberOfKeysSupported_HMAC()
2364 mac = Mac.getInstance(key2.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_HMAC()
2365 mac.init(keystoreKey2); in testKeyStore_LargeNumberOfKeysSupported_HMAC()
2369 mac.doFinal(message)); in testKeyStore_LargeNumberOfKeysSupported_HMAC()
/cts/tests/tests/database/src/android/database/cts/
DAbstractCursor_SelfContentObserverTest.java24 MockAbstractCursor mac = new MockAbstractCursor(); in testConstructor() local
25 mac.getMockSelfContentObserver(); in testConstructor()
29 MockAbstractCursor mac = new MockAbstractCursor(); in testDeliverSelfNotifications() local
30 MockAbstractCursor.MockSelfContentObserver msc = mac.getMockSelfContentObserver(); in testDeliverSelfNotifications()
/cts/tests/tests/wifi/src/android/net/wifi/aware/cts/
DSingleDeviceTest.java154 public void onIdentityChanged(byte[] mac) { in onIdentityChanged() argument
155 mMac = mac; in onIdentityChanged()
496 byte[] mac = identityL.getMac(); in testAttachDiscoveryAddressChanges()
497 assertNotNull("Wi-Fi Aware discovery MAC: iteration " + i, mac); in testAttachDiscoveryAddressChanges()
501 macs.add(new TestUtils.MacWrapper(mac)); in testAttachDiscoveryAddressChanges()
716 MacAddress mac = MacAddress.fromString("00:01:02:03:04:05"); in testDataPathOpenOutOfBandFail() local
734 mac.toByteArray())).build(); in testDataPathOpenOutOfBandFail()
749 MacAddress mac = MacAddress.fromString("00:01:02:03:04:05"); in testDataPathPassphraseOutOfBandFail() local
766 WifiAwareManager.WIFI_AWARE_DATA_PATH_ROLE_INITIATOR, mac.toByteArray(), in testDataPathPassphraseOutOfBandFail()
DTestUtils.java46 MacWrapper(byte[] mac) { in MacWrapper() argument
47 mMac = mac; in MacWrapper()
/cts/tests/tests/identity/src/android/security/identity/cts/
DUtil.java681 byte[] mac = null; in coseMac0()
685 mac = m.doFinal(); in coseMac0()
696 array.add(mac); in coseMac0()
1044 Mac mac = null; in computeHkdf() local
1046 mac = Mac.getInstance(macAlgorithm); in computeHkdf()
1050 if (size > 255 * mac.getMacLength()) { in computeHkdf()
1058 mac.init(new SecretKeySpec(new byte[mac.getMacLength()], macAlgorithm)); in computeHkdf()
1060 mac.init(new SecretKeySpec(salt, macAlgorithm)); in computeHkdf()
1062 byte[] prk = mac.doFinal(ikm); in computeHkdf()
1066 mac.init(new SecretKeySpec(prk, macAlgorithm)); in computeHkdf()
[all …]
DUtilUnitTests.java324 byte[] mac = Util.coseMac0(secretKey, data, detachedContent); in coseMac0()
332 + "]", Util.cborPrettyPrint(mac)); in coseMac0()
340 byte[] mac = Util.coseMac0(secretKey, data, detachedContent); in coseMac0DetachedContent()
349 + "]", Util.cborPrettyPrint(mac)); in coseMac0DetachedContent()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/testcase/
DDiscoveryBaseTestCase.java123 byte[] mac = identityL.waitForMac(); in executeAttach()
124 if (mac == null) { in executeAttach()
129 mMyMacAddress = MacAddress.fromBytes(mac); in executeAttach()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBleScannerService.java167 String mac = result.getDevice().getAddress(); in onScanResult() local
186 } else if (!mOldMac.equals(mac)) { in onScanResult()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/
DCallbackUtils.java98 public void onIdentityChanged(byte[] mac) { in onIdentityChanged() argument
103 mMac = mac; in onIdentityChanged()
/cts/hostsidetests/hdmicec/
Dcec_adapter.md24 * mac (using [MacPorts](https://guide.macports.org/#installing))
/cts/tests/tests/accounts/src/android/accounts/cts/
DAccountManagerTest.java3435 byte[] mac = new byte[] {
3442 sessionBundle.putByteArray(KEY_MAC, mac);
3465 byte[] mac = new byte[] {};
3467 sessionBundle.putByteArray(KEY_MAC, mac);