Home
last modified time | relevance | path

Searched refs:setMacAddress (Results 1 – 25 of 32) sorted by relevance

12

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hal/
DWifiApIfaceHidlImplTest.java99 when(mIWifiApIfaceMockV14.setMacAddress(macByteArray)).thenReturn(mWifiStatusSuccess); in testSetMacAddressSuccess()
101 assertTrue(mDut.setMacAddress(TEST_MAC_ADDRESS)); in testSetMacAddressSuccess()
102 verify(mIWifiApIfaceMockV14).setMacAddress(macByteArray); in testSetMacAddressSuccess()
112 when(mIWifiApIfaceMockV14.setMacAddress(macByteArray)).thenReturn(mWifiStatusFailure); in testSetMacAddressFailDueToStatusFailure()
114 assertFalse(mDut.setMacAddress(TEST_MAC_ADDRESS)); in testSetMacAddressFailDueToStatusFailure()
115 verify(mIWifiApIfaceMockV14).setMacAddress(macByteArray); in testSetMacAddressFailDueToStatusFailure()
125 doThrow(new RemoteException()).when(mIWifiApIfaceMockV14).setMacAddress(macByteArray); in testSetMacAddressFailDueToRemoteException()
127 assertFalse(mDut.setMacAddress(TEST_MAC_ADDRESS)); in testSetMacAddressFailDueToRemoteException()
128 verify(mIWifiApIfaceMockV14).setMacAddress(macByteArray); in testSetMacAddressFailDueToRemoteException()
DWifiApIfaceTest.java145 () -> mDut.setMacAddress(mock(MacAddress.class)), in testSetMacAddress()
146 mWifiApIfaceAidlImplMock.setMacAddress(any()), in testSetMacAddress()
148 verify(mWifiApIfaceAidlImplMock).setMacAddress(any()); in testSetMacAddress()
156 when(mWifiApIfaceAidlImplMock.setMacAddress(any())).thenReturn(true); in testSetMacAddressInvalidInput()
157 assertFalse(mDut.setMacAddress(null)); in testSetMacAddressInvalidInput()
158 verify(mWifiApIfaceAidlImplMock, never()).setMacAddress(any()); in testSetMacAddressInvalidInput()
DWifiStaIfaceHidlImplTest.java934 when(mIWifiStaIfaceMockV12.setMacAddress(macByteArray)).thenReturn(mWifiStatusSuccess); in testSetMacAddressSuccess()
936 assertTrue(mDut.setMacAddress(TEST_MAC_ADDRESS)); in testSetMacAddressSuccess()
937 verify(mIWifiStaIfaceMockV12).setMacAddress(macByteArray); in testSetMacAddressSuccess()
948 when(mIWifiStaIfaceMockV12.setMacAddress(macByteArray)).thenReturn(mWifiStatusFailure); in testSetMacAddressFailDueToStatusFailure()
950 assertFalse(mDut.setMacAddress(TEST_MAC_ADDRESS)); in testSetMacAddressFailDueToStatusFailure()
951 verify(mIWifiStaIfaceMockV12).setMacAddress(macByteArray); in testSetMacAddressFailDueToStatusFailure()
962 doThrow(new RemoteException()).when(mIWifiStaIfaceMockV12).setMacAddress(macByteArray); in testSetMacAddressFailDueToRemoteException()
964 assertFalse(mDut.setMacAddress(TEST_MAC_ADDRESS)); in testSetMacAddressFailDueToRemoteException()
965 verify(mIWifiStaIfaceMockV12).setMacAddress(macByteArray); in testSetMacAddressFailDueToRemoteException()
DWifiRttControllerAidlImplTest.java393 .setMacAddress(MacAddress.fromString("08:09:08:07:06:88")) in testRangingWithInvalidParameterCombination()
400 .setMacAddress(MacAddress.fromString("08:09:08:07:06:89")) in testRangingWithInvalidParameterCombination()
DWifiRttControllerHidlImplTest.java371 .setMacAddress(MacAddress.fromString("08:09:08:07:06:88")) in testRangingWithInvalidParameterCombination()
378 .setMacAddress(MacAddress.fromString("08:09:08:07:06:89")) in testRangingWithInvalidParameterCombination()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/rtt/
DRttTestUtils.java132 .setMacAddress(peer.getMacAddress()) in getDummyRangingResults()
155 builder.setMacAddress(peer.getMacAddress()); in getDummyRangingResults()
165 .setMacAddress(MacAddress.fromString("10:01:02:03:04:05")) in getDummyRangingResults()
178 .setMacAddress(MacAddress.fromString("1A:0B:0C:0D:0E:0F")) in getDummyRangingResults()
191 .setMacAddress(MacAddress.fromString("08:09:08:07:06:05")) in getDummyRangingResults()
DRttMetricsTest.java603 .setMacAddress(MacAddress.fromBytes(placeholderMacBase)) in getDummyRangingRequest()
611 .setMacAddress(MacAddress.fromBytes(placeholderMacBase)) in getDummyRangingRequest()
629 .setMacAddress(peer.getMacAddress()) in getDummyRangingResults()
DRttServiceImplTest.java892 .setMacAddress(removed.getMacAddress()) in testMissingResults()
897 .setMacAddress(removed.getMacAddress()) in testMissingResults()
940 .setMacAddress(result.getMacAddress()) in testMissingAllResults()
/packages/modules/Wifi/service/java/com/android/server/wifi/hal/
DWifiApIfaceHidlImpl.java102 public boolean setMacAddress(MacAddress mac) { in setMacAddress() method in WifiApIfaceHidlImpl
174 return mac != null && setMacAddress(mac); in resetToFactoryMacAddressInternal()
188 WifiStatus status = ap14.setMacAddress(mac.toByteArray()); in setMacAddressInternal()
DWifiApIface.java127 public boolean setMacAddress(MacAddress mac) { in setMacAddress() method in WifiApIface
133 () -> mWifiApIface.setMacAddress(mac)); in setMacAddress()
DWifiApIfaceAidlImpl.java165 public boolean setMacAddress(MacAddress mac) { in setMacAddress() method in WifiApIfaceAidlImpl
170 mWifiApIface.setMacAddress(mac.toByteArray()); in setMacAddress()
DIWifiApIface.java76 boolean setMacAddress(MacAddress mac); in setMacAddress() method
DWifiStaIface.java334 public boolean setMacAddress(MacAddress mac) { in setMacAddress() method in WifiStaIface
336 () -> mWifiStaIface.setMacAddress(mac)); in setMacAddress()
DIWifiStaIface.java177 boolean setMacAddress(MacAddress mac); in setMacAddress() method
DWifiRttControllerHidlImpl.java401 .setMacAddress(MacAddress.fromBytes(rttResult.addr)) in convertHalResultsRangingResults()
444 .setMacAddress(MacAddress.fromBytes(rttResult.addr)) in convertHalResultsRangingResults14()
487 .setMacAddress(MacAddress.fromBytes(rttResult.addr)) in convertHalResultsRangingResults16()
DWifiRttControllerAidlImpl.java280 .setMacAddress(MacAddress.fromBytes(rttResult.addr)) in halToFrameworkRangingResults()
DWifiStaIfaceAidlImpl.java500 public boolean setMacAddress(MacAddress mac) { in setMacAddress() method in WifiStaIfaceAidlImpl
505 mWifiStaIface.setMacAddress(mac.toByteArray()); in setMacAddress()
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/oemextension/
DAdvertisePointedTarget.java106 .setMacAddress( in parseVersion1()
118 public AdvertisePointedTarget.Builder setMacAddress(byte[] macAddress) { in setMacAddress() method in AdvertisePointedTarget.Builder
/packages/modules/Wifi/framework/tests/src/android/net/wifi/rtt/
DWifiRttManagerTest.java94 .setMacAddress(MacAddress.BROADCAST_ADDRESS) in testRangeSuccess()
302 .setMacAddress(MacAddress.fromString(scanResult2.BSSID)) in testRangingRequestAtLimit()
467 .setMacAddress(mac) in testRangingResultsParcel()
541 .setMacAddress(mac) in testRangingResultsEqualityLciLcr()
554 .setMacAddress(mac) in testRangingResultsEqualityLciLcr()
573 .setMacAddress(MacAddress.fromString("00:01:02:03:04:05")) in testResponderConfigParcel()
/packages/modules/Wifi/framework/java/android/net/wifi/rtt/
DResponderConfig.java479 .setMacAddress(macAddress) in fromScanResult()
506 .setMacAddress(macAddress) in fromWifiAwarePeerMacAddressWithDefaults()
717 public Builder setMacAddress(@NonNull MacAddress macAddress) { in setMacAddress() method in ResponderConfig.Builder
985 .setMacAddress(macAddress)
DRangingResult.java169 public Builder setMacAddress(@Nullable MacAddress macAddress) { in setMacAddress() method in RangingResult.Builder
962 .setMacAddress(
/packages/modules/Wifi/service/java/com/android/server/wifi/
DExtendedWifiInfo.java50 setMacAddress(DEFAULT_MAC_ADDRESS); in reset()
DWifiVendorHal.java936 return iface.setMacAddress(mac); in setStaMacAddress()
965 return iface.setMacAddress(mac); in setApMacAddress()
/packages/modules/Uwb/service/support_lib/test/
DOemExtensionTests.java120 .setMacAddress(macAddress) in testAdvertisePointedTarget()
/packages/modules/Wifi/service/java/com/android/server/wifi/rtt/
DRttServiceImpl.java1201 .setMacAddress(MacAddress.fromBytes(mac)) in processReceivedAwarePeerMacAddresses()
1315 builder.setMacAddress(peer.getMacAddress()); in postProcessResults()
1364 builder.setMacAddress(peer.getMacAddress()); in postProcessResults()

12