Searched refs:mac (Results 1 – 10 of 10) sorted by relevance
/cts/tests/tests/net/src/android/net/cts/ |
D | MacAddressTest.java | 86 MacAddress mac = MacAddress.fromString(tc.macAddress); in testMacAddress() local 88 if (!tc.ouiString.equals(mac.toOuiString())) { in testMacAddress() 90 tc.ouiString, mac.toOuiString())); in testMacAddress() 93 if (tc.isLocallyAssigned != mac.isLocallyAssigned()) { in testMacAddress() 94 fail(String.format("expected %s to be %s, got %s", mac, in testMacAddress() 96 localAssignedToString(mac.isLocallyAssigned()))); in testMacAddress() 99 if (tc.addressType != mac.getAddressType()) { in testMacAddress() 100 fail(String.format("expected %s address type to be %s, got %s", mac, in testMacAddress() 101 typeToString(tc.addressType), typeToString(mac.getAddressType()))); in testMacAddress() 104 if (!tc.macAddress.equals(mac.toString())) { in testMacAddress() [all …]
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | MacTest.java | 217 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 …]
|
D | AndroidKeyStoreTest.java | 2357 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/ |
D | AbstractCursor_SelfContentObserverTest.java | 24 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/net/src/android/net/wifi/aware/cts/ |
D | TestUtils.java | 46 MacWrapper(byte[] mac) { in MacWrapper() argument 47 mMac = mac; in MacWrapper()
|
D | SingleDeviceTest.java | 154 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()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | BleScannerService.java | 167 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/testcase/ |
D | DiscoveryBaseTestCase.java | 123 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/wifiaware/ |
D | CallbackUtils.java | 98 public void onIdentityChanged(byte[] mac) { in onIdentityChanged() argument 103 mMac = mac; in onIdentityChanged()
|
/cts/tests/tests/accounts/src/android/accounts/cts/ |
D | AccountManagerTest.java | 3435 byte[] mac = new byte[] { 3442 sessionBundle.putByteArray(KEY_MAC, mac); 3465 byte[] mac = new byte[] {}; 3467 sessionBundle.putByteArray(KEY_MAC, mac);
|