Home
last modified time | relevance | path

Searched refs:WifiChip (Results 1 – 24 of 24) sorted by relevance

/packages/modules/Wifi/service/java/com/android/server/wifi/
DHalDeviceManagerUtil.java21 import com.android.server.wifi.hal.WifiChip;
37 private @NonNull ArrayList<WifiChip.ChipMode> mAvailableModes = new ArrayList<>();
42 @NonNull ArrayList<WifiChip.ChipMode> availableModes) { in StaticChipInfo()
58 ArrayList<WifiChip.ChipMode> getAvailableModes() { in getAvailableModes()
73 for (WifiChip.ChipMode mode : staticChipInfo.getAvailableModes()) { in staticChipInfoToJson()
81 ArrayList<WifiChip.ChipMode> availableModes = new ArrayList<>(); in jsonToStaticChipInfo()
94 private static JSONObject chipModeToJson(WifiChip.ChipMode chipMode) in chipModeToJson()
99 for (WifiChip.ChipConcurrencyCombination combo : chipMode.availableCombinations) { in chipModeToJson()
106 private static WifiChip.ChipMode jsonToChipMode(JSONObject jsonObject) throws JSONException { in jsonToChipMode()
107 List<WifiChip.ChipConcurrencyCombination> availableCombinations = new ArrayList<>(); in jsonToChipMode()
[all …]
DAfcServerResponse.java22 import com.android.server.wifi.hal.WifiChip;
52 private WifiChip.AfcChannelAllowance mAfcChannelAllowance;
85 WifiChip.AfcChannelAllowance afcChannelAllowance = new WifiChip.AfcChannelAllowance(); in fromSpectrumInquiryResponse()
108 private static List<WifiChip.AvailableAfcFrequencyInfo> parseAvailableFrequencyInfo( in parseAvailableFrequencyInfo()
111 List<WifiChip.AvailableAfcFrequencyInfo> availableFrequencyInfo = new ArrayList<>(); in parseAvailableFrequencyInfo()
118 WifiChip.AvailableAfcFrequencyInfo availableFrequency = new WifiChip in parseAvailableFrequencyInfo()
140 private static List<WifiChip.AvailableAfcChannelInfo> parseAvailableChannelInfo( in parseAvailableChannelInfo()
143 List<WifiChip.AvailableAfcChannelInfo> availableChannelInfo = new ArrayList<>(); in parseAvailableChannelInfo()
152 WifiChip.AvailableAfcChannelInfo availableChannel = new WifiChip in parseAvailableChannelInfo()
242 public void setAfcChannelAllowance(WifiChip.AfcChannelAllowance afcChannelAllowance) { in setAfcChannelAllowance()
[all …]
DHalDeviceManager.java50 import com.android.server.wifi.hal.WifiChip;
135 put(HDM_CREATE_IFACE_STA, WifiChip.IFACE_TYPE_STA);
136 put(HDM_CREATE_IFACE_AP, WifiChip.IFACE_TYPE_AP);
137 put(HDM_CREATE_IFACE_AP_BRIDGE, WifiChip.IFACE_TYPE_AP);
138 put(HDM_CREATE_IFACE_P2P, WifiChip.IFACE_TYPE_P2P);
139 put(HDM_CREATE_IFACE_NAN, WifiChip.IFACE_TYPE_NAN);
143 put(WifiChip.IFACE_CONCURRENCY_TYPE_STA, HDM_CREATE_IFACE_STA);
144 put(WifiChip.IFACE_CONCURRENCY_TYPE_AP, HDM_CREATE_IFACE_AP);
145 put(WifiChip.IFACE_CONCURRENCY_TYPE_AP_BRIDGED, HDM_CREATE_IFACE_AP_BRIDGE);
146 put(WifiChip.IFACE_CONCURRENCY_TYPE_P2P, HDM_CREATE_IFACE_P2P);
[all …]
DWifiVendorHal.java51 import com.android.server.wifi.hal.WifiChip;
112 private WifiChip mWifiChip;
135 public WifiChip.WifiChipCapabilities capabilities = null;
852 WifiChip chip = mHalDeviceManager.getChip(iface); in getCachedWifiChipInfo()
863 private void cacheWifiChipInfo(@NonNull WifiChip chip) { in cacheWifiChipInfo()
886 WifiChip.Response<Long> capsResp = mWifiChip.getCapabilitiesAfterIfacesExist(); in getSupportedFeatureSet()
909 if (supportedIfaceTypes.contains(WifiChip.IFACE_TYPE_STA)) { in getSupportedFeatureSet()
912 if (supportedIfaceTypes.contains(WifiChip.IFACE_TYPE_AP)) { in getSupportedFeatureSet()
915 if (supportedIfaceTypes.contains(WifiChip.IFACE_TYPE_P2P)) { in getSupportedFeatureSet()
918 if (supportedIfaceTypes.contains(WifiChip.IFACE_TYPE_NAN)) { in getSupportedFeatureSet()
[all …]
DWifiVoipDetector.java37 import com.android.server.wifi.hal.WifiChip;
65 private int mCurrentMode = WifiChip.WIFI_VOIP_MODE_OFF;
177 int newMode = wifiVipOn ? WifiChip.WIFI_VOIP_MODE_VOICE : WifiChip.WIFI_VOIP_MODE_OFF; in executeWifiVoIPOptimization()
DAfcManager.java32 import com.android.server.wifi.hal.WifiChip;
228 private boolean setAfcChannelAllowance(WifiChip.AfcChannelAllowance afcChannelAllowance) { in setAfcChannelAllowance()
297 WifiChip.AfcChannelAllowance afcChannelAllowance = new WifiChip.AfcChannelAllowance(); in onCountryCodeChange()
DWifiShellCommand.java110 import com.android.server.wifi.hal.WifiChip;
1944 WifiChip.AfcChannelAllowance afcChannelAllowance = in onCommand()
1945 new WifiChip.AfcChannelAllowance(); in onCommand()
1985 WifiChip.AvailableAfcFrequencyInfo frequencyInfo = new in onCommand()
1986 WifiChip.AvailableAfcFrequencyInfo(); in onCommand()
2022 WifiChip.AvailableAfcChannelInfo channelInfo = new in onCommand()
2023 WifiChip.AvailableAfcChannelInfo(); in onCommand()
DWifiNative.java78 import com.android.server.wifi.hal.WifiChip;
5400 public boolean setAfcChannelAllowance(WifiChip.AfcChannelAllowance afcChannelAllowance) {
5541 public boolean setVoipMode(@WifiChip.WifiVoipMode int mode) {
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DHalDeviceManagerTest.java79 import com.android.server.wifi.hal.WifiChip;
392 chipMock.interfaceNames.get(WifiChip.IFACE_TYPE_STA).remove("wlan0"); in testCacheMismatchError()
1298 Pair.create(WifiChip.IFACE_TYPE_STA, TEST_WORKSOURCE_0), apDetails.get(0)); in testCreateApWithStaIfaceUpTestChipV1UsingHandlerListeners()
1302 Pair.create(WifiChip.IFACE_TYPE_STA, TEST_WORKSOURCE_0), apDetails.get(0)); in testCreateApWithStaIfaceUpTestChipV1UsingHandlerListeners()
1368 Pair.create(WifiChip.IFACE_TYPE_STA, TEST_WORKSOURCE_0), apDetails.get(0)); in testCreateLowerPriorityApWithStaIfaceUpTestChipV1UsingHandlerListeners()
1372 Pair.create(WifiChip.IFACE_TYPE_STA, TEST_WORKSOURCE_0), apDetails.get(0)); in testCreateLowerPriorityApWithStaIfaceUpTestChipV1UsingHandlerListeners()
1566 correctResults.add(WifiChip.IFACE_TYPE_AP); in testGetSupportedIfaceTypesAllTestChipV1()
1567 correctResults.add(WifiChip.IFACE_TYPE_STA); in testGetSupportedIfaceTypesAllTestChipV1()
1568 correctResults.add(WifiChip.IFACE_TYPE_P2P); in testGetSupportedIfaceTypesAllTestChipV1()
1569 correctResults.add(WifiChip.IFACE_TYPE_NAN); in testGetSupportedIfaceTypesAllTestChipV1()
[all …]
DWifiVendorHalTest.java73 import com.android.server.wifi.hal.WifiChip;
122 private WifiChip mWifiChip;
126 private WifiChip.Callback mWifiChipEventCallback;
140 WifiChip.AfcChannelAllowance mAfcChannelAllowance;
184 when(mWifiChip.registerCallback(any(WifiChip.Callback.class))) in setUp()
195 public boolean answer(WifiChip.Callback callback) { in setUp()
199 }).when(mWifiChip).registerCallback(any(WifiChip.Callback.class)); in setUp()
255 verify(mWifiChip).registerCallback(any(WifiChip.Callback.class)); in testStartHalSuccessInStaMode()
360 when(mWifiChip.registerCallback(any(WifiChip.Callback.class))) in testStartHalFailureInChipCallbackRegistration()
371 verify(mWifiChip).registerCallback(any(WifiChip.Callback.class)); in testStartHalFailureInChipCallbackRegistration()
[all …]
DWifiVoipDetectorTest.java39 import com.android.server.wifi.hal.WifiChip;
113 verify(mWifiNative).setVoipMode(WifiChip.WIFI_VOIP_MODE_VOICE); in testNotifyWifiConnectedDisconnectedInPrimaryClientMode()
116 verify(mWifiNative).setVoipMode(WifiChip.WIFI_VOIP_MODE_OFF); in testNotifyWifiConnectedDisconnectedInPrimaryClientMode()
120 verify(mWifiNative).setVoipMode(WifiChip.WIFI_VOIP_MODE_VOICE); in testNotifyWifiConnectedDisconnectedInPrimaryClientMode()
124 verify(mWifiNative).setVoipMode(WifiChip.WIFI_VOIP_MODE_OFF); in testNotifyWifiConnectedDisconnectedInPrimaryClientMode()
128 verify(mWifiNative).setVoipMode(WifiChip.WIFI_VOIP_MODE_VOICE); in testNotifyWifiConnectedDisconnectedInPrimaryClientMode()
132 verify(mWifiNative).setVoipMode(WifiChip.WIFI_VOIP_MODE_OFF); in testNotifyWifiConnectedDisconnectedInPrimaryClientMode()
137 verify(mWifiNative).setVoipMode(WifiChip.WIFI_VOIP_MODE_VOICE); in testNotifyWifiConnectedDisconnectedInPrimaryClientMode()
143 verify(mWifiNative).setVoipMode(WifiChip.WIFI_VOIP_MODE_OFF); in testNotifyWifiConnectedDisconnectedInPrimaryClientMode()
152 verify(mWifiNative).setVoipMode(WifiChip.WIFI_VOIP_MODE_VOICE); in testNotifyWifiConnectedDisconnectedInPrimaryClientMode()
DWifiNativeTest.java72 import com.android.server.wifi.hal.WifiChip;
285 @Mock WifiChip.AfcChannelAllowance mAfcChannelAllowance;
/packages/modules/Wifi/service/java/com/android/server/wifi/hal/
DWifiChipAidlImpl.java90 private WifiChip.Callback mFrameworkCallback;
372 public List<WifiChip.ChipMode> getAvailableModes() { in getAvailableModes()
392 public WifiChip.Response<Long> getCapabilitiesBeforeIfacesExist() { in getCapabilitiesBeforeIfacesExist()
401 public WifiChip.Response<Long> getCapabilitiesAfterIfacesExist() { in getCapabilitiesAfterIfacesExist()
406 private WifiChip.Response<Long> getCapabilitiesInternal(String methodStr) { in getCapabilitiesInternal()
409 WifiChip.Response<Long> featuresResp = new WifiChip.Response<>(0L); in getCapabilitiesInternal()
495 public WifiChip.Response<Integer> getMode() { in getMode()
497 WifiChip.Response<Integer> modeResp = new WifiChip.Response<>(0); in getMode()
647 public List<WifiChip.WifiRadioCombination> getSupportedRadioCombinations() { in getSupportedRadioCombinations()
666 public WifiChip.WifiChipCapabilities getWifiChipCapabilities() { in getWifiChipCapabilities()
[all …]
DIWifiChip.java146 List<WifiChip.ChipMode> getAvailableModes(); in getAvailableModes()
159 WifiChip.Response<Long> getCapabilitiesBeforeIfacesExist(); in getCapabilitiesBeforeIfacesExist()
168 WifiChip.Response<Long> getCapabilitiesAfterIfacesExist(); in getCapabilitiesAfterIfacesExist()
200 WifiChip.Response<Integer> getMode(); in getMode()
265 List<WifiChip.WifiRadioCombination> getSupportedRadioCombinations(); in getSupportedRadioCombinations()
273 WifiChip.WifiChipCapabilities getWifiChipCapabilities(); in getWifiChipCapabilities()
297 boolean registerCallback(WifiChip.Callback callback); in registerCallback()
349 WifiChip.ChipDebugInfo requestChipDebugInfo(); in requestChipDebugInfo()
472 boolean setAfcChannelAllowance(WifiChip.AfcChannelAllowance afcChannelAllowance); in setAfcChannelAllowance()
480 default boolean setVoipMode(@WifiChip.WifiVoipMode int mode) { in setVoipMode()
DWifiChipHidlImpl.java79 private WifiChip.Callback mFrameworkCallback;
229 public List<WifiChip.ChipMode> getAvailableModes() { in getAvailableModes()
239 public WifiChip.Response<Long> getCapabilitiesBeforeIfacesExist() { in getCapabilitiesBeforeIfacesExist()
241 return validateAndCall(methodStr, new WifiChip.Response<>(0L), in getCapabilitiesBeforeIfacesExist()
249 public WifiChip.Response<Long> getCapabilitiesAfterIfacesExist() { in getCapabilitiesAfterIfacesExist()
251 return validateAndCall(methodStr, new WifiChip.Response<>(0L), in getCapabilitiesAfterIfacesExist()
290 public WifiChip.Response<Integer> getMode() { in getMode()
292 return validateAndCall(methodStr, new WifiChip.Response<>(0), in getMode()
367 public List<WifiChip.WifiRadioCombination> getSupportedRadioCombinations() { in getSupportedRadioCombinations()
376 public WifiChip.WifiChipCapabilities getWifiChipCapabilities() { in getWifiChipCapabilities()
[all …]
DWifiChip.java47 public class WifiChip { class
506 public WifiChip(@NonNull android.hardware.wifi.V1_0.IWifiChip chip, in WifiChip() method in WifiChip
511 public WifiChip(@NonNull android.hardware.wifi.IWifiChip chip, in WifiChip() method in WifiChip
652 public List<WifiChip.ChipMode> getAvailableModes() { in getAvailableModes()
763 public List<WifiChip.WifiRadioCombination> getSupportedRadioCombinations() { in getSupportedRadioCombinations()
790 public boolean registerCallback(WifiChip.Callback callback) { in registerCallback()
839 public WifiChip.ChipDebugInfo requestChipDebugInfo() { in requestChipDebugInfo()
DWifiHalHidlImpl.java72 public WifiChip getChip(int chipId) { in getChip()
189 private WifiChip getChipInternal(String methodStr, int chipId) { in getChipInternal()
190 Mutable<WifiChip> chipResp = new Mutable<>(); in getChipInternal()
194 chipResp.value = new WifiChip(chip, mContext, mSsidTranslator); in getChipInternal()
DIWifiHal.java32 WifiChip getChip(int chipId); in getChip()
DWifiHalAidlImpl.java70 public WifiChip getChip(int chipId) { in getChip()
76 return new WifiChip(chip, mContext, mSsidTranslator); in getChip()
DWifiHal.java159 public WifiChip getChip(int chipId) { in getChip()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hal/
DWifiChipTest.java51 private WifiChip mDut;
53 private class WifiChipSpy extends WifiChip {
77 private class NullWifiChipSpy extends WifiChip {
DWifiChipAidlImplTest.java382 WifiChip.AfcChannelAllowance afcChannelAllowance = makeAfcChannelAllowance(); in testSetAfcChannelAllowance()
421 WifiChip.AfcChannelAllowance makeAfcChannelAllowance() { in makeAfcChannelAllowance()
422 WifiChip.AfcChannelAllowance afcChannelAllowance = new WifiChip.AfcChannelAllowance(); in makeAfcChannelAllowance()
434 new WifiChip.AvailableAfcFrequencyInfo()); in makeAfcChannelAllowance()
448 new WifiChip.AvailableAfcChannelInfo()); in makeAfcChannelAllowance()
476 assertTrue(mDut.setVoipMode(WifiChip.WIFI_VOIP_MODE_VOICE)); in testVoipMode()
DWifiHalTest.java118 mock(WifiChip.class)); in testGetChip()
/packages/modules/Wifi/service/tests/wifitests/
DAndroid.bp803 "com.android.server.wifi.hal.WifiChip",
804 "com.android.server.wifi.hal.WifiChip$*",
805 "com.android.server.wifi.hal.WifiChip.**",