Home
last modified time | relevance | path

Searched refs:WifiHal (Results 1 – 22 of 22) sorted by relevance

/packages/modules/Wifi/service/java/com/android/server/wifi/hal/
DWifiHalAidlImpl.java51 private WifiHal.Callback mFrameworkCallback;
53 private WifiHal.DeathRecipient mFrameworkDeathRecipient;
115 public boolean registerEventCallback(WifiHal.Callback callback) { in registerEventCallback()
174 public @WifiHal.WifiStatusCode int start() { in start()
178 if (!checkWifiAndLogFailure(methodStr)) return WifiHal.WIFI_STATUS_ERROR_UNKNOWN; in start()
180 return WifiHal.WIFI_STATUS_SUCCESS; in start()
183 return WifiHal.WIFI_STATUS_ERROR_REMOTE_EXCEPTION; in start()
239 public void initialize(WifiHal.DeathRecipient deathRecipient) { in initialize()
340 protected static @WifiHal.WifiStatusCode int halToFrameworkWifiStatusCode(int code) { in halToFrameworkWifiStatusCode()
343 return WifiHal.WIFI_STATUS_SUCCESS; in halToFrameworkWifiStatusCode()
[all …]
DWifiHalHidlImpl.java49 private WifiHal.Callback mFrameworkCallback;
52 private WifiHal.DeathRecipient mFrameworkDeathRecipient;
97 public boolean registerEventCallback(WifiHal.Callback callback) { in registerEventCallback()
129 public @WifiHal.WifiStatusCode int start() { in start()
132 return validateAndCall(methodStr, WifiHal.WIFI_STATUS_ERROR_UNKNOWN, in start()
166 public void initialize(WifiHal.DeathRecipient deathRecipient) { in initialize()
217 private boolean registerEventCallbackInternal(WifiHal.Callback callback) { in registerEventCallbackInternal()
254 private @WifiHal.WifiStatusCode int startInternal(String methodStr) { in startInternal()
260 return WifiHal.WIFI_STATUS_ERROR_UNKNOWN; in startInternal()
524 protected static @WifiHal.WifiStatusCode int halToFrameworkWifiStatusCode(int code) { in halToFrameworkWifiStatusCode()
[all …]
DIWifiHal.java50 boolean registerEventCallback(WifiHal.Callback callback); in registerEventCallback()
57 void initialize(WifiHal.DeathRecipient deathRecipient); in initialize()
78 @WifiHal.WifiStatusCode int start(); in start()
DWifiHal.java37 public class WifiHal { class
130 public WifiHal(@NonNull Context context, @NonNull SsidTranslator ssidTranslator) { in WifiHal() method in WifiHal
184 public void initialize(WifiHal.DeathRecipient deathRecipient) { in initialize()
DWifiChip.java129 mStatusCode = WifiHal.WIFI_STATUS_ERROR_UNKNOWN; in Response()
140 public void setStatusCode(@WifiHal.WifiStatusCode int statusCode) { in setStatusCode()
144 public @WifiHal.WifiStatusCode int getStatusCode() { in getStatusCode()
DWifiP2pIface.java27 public class WifiP2pIface implements WifiHal.WifiInterface {
DWifiApIface.java33 public class WifiApIface implements WifiHal.WifiInterface {
DWifiChipHidlImpl.java812 capsResp.setStatusCode(WifiHal.WIFI_STATUS_SUCCESS); in getCapabilitiesBeforeIfacesExistInternal()
821 capsResp.setStatusCode(WifiHal.WIFI_STATUS_ERROR_REMOTE_EXCEPTION); in getCapabilitiesBeforeIfacesExistInternal()
835 capsResp.setStatusCode(WifiHal.WIFI_STATUS_SUCCESS); in getCapabilitiesAfterIfacesExistInternal()
845 capsResp.setStatusCode(WifiHal.WIFI_STATUS_SUCCESS); in getCapabilitiesAfterIfacesExistInternal()
855 capsResp.setStatusCode(WifiHal.WIFI_STATUS_SUCCESS); in getCapabilitiesAfterIfacesExistInternal()
864 capsResp.setStatusCode(WifiHal.WIFI_STATUS_ERROR_REMOTE_EXCEPTION); in getCapabilitiesAfterIfacesExistInternal()
919 modeResp.setStatusCode(WifiHal.WIFI_STATUS_SUCCESS); in getModeInternal()
927 modeResp.setStatusCode(WifiHal.WIFI_STATUS_ERROR_REMOTE_EXCEPTION); in getModeInternal()
DWifiChipAidlImpl.java415 featuresResp.setStatusCode(WifiHal.WIFI_STATUS_SUCCESS); in getCapabilitiesInternal()
418 featuresResp.setStatusCode(WifiHal.WIFI_STATUS_ERROR_REMOTE_EXCEPTION); in getCapabilitiesInternal()
503 modeResp.setStatusCode(WifiHal.WIFI_STATUS_SUCCESS); in getMode()
506 modeResp.setStatusCode(WifiHal.WIFI_STATUS_ERROR_REMOTE_EXCEPTION); in getMode()
DWifiStaIface.java47 public class WifiStaIface implements WifiHal.WifiInterface {
DWifiNanIface.java42 public class WifiNanIface implements WifiHal.WifiInterface {
/packages/modules/Wifi/service/java/com/android/server/wifi/
DHalDeviceManager.java51 import com.android.server.wifi.hal.WifiHal;
103 private WifiHal mWifiHal;
179 protected WifiHal getWifiHalMockable(WifiContext context, WifiInjector wifiInjector) { in getWifiHalMockable()
180 return new WifiHal(context, wifiInjector.getSsidTranslator()); in getWifiHalMockable()
428 public boolean removeIface(WifiHal.WifiInterface iface) { in removeIface()
447 private InterfaceCacheEntry getInterfaceCacheEntry(WifiHal.WifiInterface iface) { in getInterfaceCacheEntry()
470 public WifiChip getChip(WifiHal.WifiInterface iface) { in getChip()
477 private WifiChipInfo getChipInfo(WifiHal.WifiInterface iface) { in getChipInfo()
497 public Set<List<Integer>> getSupportedBandCombinations(WifiHal.WifiInterface iface) { in getSupportedBandCombinations()
506 WifiHal.WifiInterface iface) { in getCachedSupportedBandCombinations()
[all …]
DWifiVendorHal.java52 import com.android.server.wifi.hal.WifiHal;
496 private boolean retrieveWifiChip(WifiHal.WifiInterface iface) { in retrieveWifiChip()
887 if (capsResp.getStatusCode() == WifiHal.WIFI_STATUS_SUCCESS) { in getSupportedFeatureSet()
889 } else if (capsResp.getStatusCode() == WifiHal.WIFI_STATUS_ERROR_REMOTE_EXCEPTION) { in getSupportedFeatureSet()
DWifiNative.java79 import com.android.server.wifi.hal.WifiHal;
397 public WifiHal.WifiInterface iface;
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hal/
DWifiHalTest.java46 private WifiHal mDut;
48 private class WifiHalAidlSpy extends WifiHal {
60 private class WifiHalHidlSpy extends WifiHal {
72 private class WifiHalNullSpy extends WifiHal {
DWifiHalAidlImplTest.java53 @Mock private WifiHal.DeathRecipient mFrameworkDeathRecipientMock;
132 final WifiHal.Callback frameworkCallback = mock(WifiHal.Callback.class); in testRegisterEventCallback()
142 assertFalse(mDut.registerEventCallback(mock(WifiHal.Callback.class))); in testRegisterEventCallback()
DWifiHalHidlImplTest.java60 @Mock WifiHal.DeathRecipient mFrameworkDeathRecipientMock;
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pNativeInterfaceManagementTest.java48 import com.android.server.wifi.hal.WifiHal;
196 verify(mHalDeviceManager, never()).removeIface(any(WifiHal.WifiInterface.class)); in testTeardownInterfaceWithNoVendorHal()
DWifiP2pNativeTest.java57 import com.android.server.wifi.hal.WifiHal;
429 when(mHalDeviceManagerMock.replaceRequestorWs(any(WifiHal.WifiInterface.class), in testReplaceRequestorWsSuccessWhenHalDeviceMgrFailInReplace()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiVendorHalTest.java74 import com.android.server.wifi.hal.WifiHal;
181 when(mHalDeviceManager.getChip(any(WifiHal.WifiInterface.class))) in setUp()
283 verify(mHalDeviceManager, never()).getChip(any(WifiHal.WifiInterface.class)); in testStartHalFailureInStaMode()
306 verify(mHalDeviceManager, never()).getChip(any(WifiHal.WifiInterface.class)); in testStartHalFailureInIfaceCreationInStaMode()
317 when(mHalDeviceManager.getChip(any(WifiHal.WifiInterface.class))).thenReturn(null); in testStartHalFailureInChipGetInStaMode()
324 verify(mHalDeviceManager).getChip(any(WifiHal.WifiInterface.class)); in testStartHalFailureInChipGetInStaMode()
349 verify(mHalDeviceManager, never()).getChip(any(WifiHal.WifiInterface.class)); in testStartHalFailureInStaIfaceCallbackRegistration()
368 verify(mHalDeviceManager).getChip(any(WifiHal.WifiInterface.class)); in testStartHalFailureInChipCallbackRegistration()
561 chipCapsResponse.setStatusCode(WifiHal.WIFI_STATUS_SUCCESS); in testGetSupportedFeatures()
1775 when(mHalDeviceManager.getChip(any(WifiHal.WifiInterface.class))).thenReturn(mWifiChip); in testGetChipCapabilities()
[all …]
DHalDeviceManagerTest.java80 import com.android.server.wifi.hal.WifiHal;
81 import com.android.server.wifi.hal.WifiHal.WifiInterface;
126 @Mock WifiHal mWifiMock;
144 private ArgumentCaptor<WifiHal.Callback> mWifiEventCallbackCaptor = ArgumentCaptor.forClass(
145 WifiHal.Callback.class);
160 protected WifiHal getWifiHalMockable(WifiContext context, WifiInjector wifiInjector) { in getWifiHalMockable()
197 when(mWifiMock.registerEventCallback(any(WifiHal.Callback.class))).thenReturn(true); in before()
198 when(mWifiMock.start()).thenReturn(WifiHal.WIFI_STATUS_SUCCESS); in before()
295 ArgumentCaptor<WifiHal.DeathRecipient> deathRecipientCaptor = in testWifiDeathAndRegistration()
296 ArgumentCaptor.forClass(WifiHal.DeathRecipient.class); in testWifiDeathAndRegistration()
[all …]
/packages/modules/Wifi/service/tests/wifitests/
DAndroid.bp812 "com.android.server.wifi.hal.WifiHal",
813 "com.android.server.wifi.hal.WifiHal$*",
814 "com.android.server.wifi.hal.WifiHal.**",