/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | HalDeviceManagerUtil.java | 21 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 …]
|
D | AfcServerResponse.java | 22 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 …]
|
D | HalDeviceManager.java | 50 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 …]
|
D | WifiVendorHal.java | 51 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 …]
|
D | WifiVoipDetector.java | 37 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()
|
D | AfcManager.java | 32 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()
|
D | WifiShellCommand.java | 110 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()
|
D | WifiNative.java | 78 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/ |
D | HalDeviceManagerTest.java | 79 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 …]
|
D | WifiVendorHalTest.java | 73 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 …]
|
D | WifiVoipDetectorTest.java | 39 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()
|
D | WifiNativeTest.java | 72 import com.android.server.wifi.hal.WifiChip; 285 @Mock WifiChip.AfcChannelAllowance mAfcChannelAllowance;
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hal/ |
D | WifiChipAidlImpl.java | 90 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 …]
|
D | IWifiChip.java | 146 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()
|
D | WifiChipHidlImpl.java | 79 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 …]
|
D | WifiChip.java | 47 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()
|
D | WifiHalHidlImpl.java | 72 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()
|
D | IWifiHal.java | 32 WifiChip getChip(int chipId); in getChip()
|
D | WifiHalAidlImpl.java | 70 public WifiChip getChip(int chipId) { in getChip() 76 return new WifiChip(chip, mContext, mSsidTranslator); in getChip()
|
D | WifiHal.java | 159 public WifiChip getChip(int chipId) { in getChip()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hal/ |
D | WifiChipTest.java | 51 private WifiChip mDut; 53 private class WifiChipSpy extends WifiChip { 77 private class NullWifiChipSpy extends WifiChip {
|
D | WifiChipAidlImplTest.java | 382 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()
|
D | WifiHalTest.java | 118 mock(WifiChip.class)); in testGetChip()
|
/packages/modules/Wifi/service/tests/wifitests/ |
D | Android.bp | 803 "com.android.server.wifi.hal.WifiChip", 804 "com.android.server.wifi.hal.WifiChip$*", 805 "com.android.server.wifi.hal.WifiChip.**",
|