Home
last modified time | relevance | path

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

/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiAvailableChannel.java38 public final class WifiAvailableChannel implements Parcelable { class
135 public WifiAvailableChannel(int freq, @OpMode int opModes) { in WifiAvailableChannel() method in WifiAvailableChannel
142 public WifiAvailableChannel(int freq, @OpMode int opModes, in WifiAvailableChannel() method in WifiAvailableChannel
149 private WifiAvailableChannel(@NonNull Parcel in) { in WifiAvailableChannel() method in WifiAvailableChannel
208 WifiAvailableChannel that = (WifiAvailableChannel) o; in equals()
238 public static final @android.annotation.NonNull Creator<WifiAvailableChannel> CREATOR =
239 new Creator<WifiAvailableChannel>() {
241 public WifiAvailableChannel createFromParcel(@NonNull Parcel in) {
242 return new WifiAvailableChannel(in);
246 public WifiAvailableChannel[] newArray(int size) {
[all …]
DIWifiManager.aidl66 import android.net.wifi.WifiAvailableChannel;
434 …List<WifiAvailableChannel> getUsableChannels(int band, int mode, int filter, String packageName, i… in getUsableChannels()
DBaseWifiService.java979 public List<WifiAvailableChannel> getUsableChannels( in getUsableChannels()
985 public List<WifiAvailableChannel> getUsableChannels( in getUsableChannels()
DWifiManager.java11149 public List<WifiAvailableChannel> getAllowedChannels( in getAllowedChannels()
11151 @WifiAvailableChannel.OpMode int mode) { in getAllowedChannels()
11162 WifiAvailableChannel.FILTER_REGULATORY, mContext.getOpPackageName(), extras); in getAllowedChannels()
11203 public List<WifiAvailableChannel> getUsableChannels( in getUsableChannels()
11205 @WifiAvailableChannel.OpMode int mode) { in getUsableChannels()
11216 WifiAvailableChannel.getUsableFilter(), mContext.getOpPackageName(), extras); in getUsableChannels()
/packages/modules/Wifi/service/java/com/android/server/wifi/hal/
DWifiChipAidlImpl.java63 import android.net.wifi.WifiAvailableChannel;
687 public List<WifiAvailableChannel> getUsableChannels(@WifiScanner.WifiBand int band, in getUsableChannels()
688 @WifiAvailableChannel.OpMode int mode, @WifiAvailableChannel.Filter int filter) { in getUsableChannels()
697 List<WifiAvailableChannel> frameworkChannels = new ArrayList<>(); in getUsableChannels()
699 frameworkChannels.add(new WifiAvailableChannel( in getUsableChannels()
1515 private static int frameworkToHalIfaceMode(@WifiAvailableChannel.OpMode int mode) { in frameworkToHalIfaceMode()
1517 if ((mode & WifiAvailableChannel.OP_MODE_STA) != 0) { in frameworkToHalIfaceMode()
1520 if ((mode & WifiAvailableChannel.OP_MODE_SAP) != 0) { in frameworkToHalIfaceMode()
1523 if ((mode & WifiAvailableChannel.OP_MODE_WIFI_DIRECT_CLI) != 0) { in frameworkToHalIfaceMode()
1526 if ((mode & WifiAvailableChannel.OP_MODE_WIFI_DIRECT_GO) != 0) { in frameworkToHalIfaceMode()
[all …]
DIWifiChip.java24 import android.net.wifi.WifiAvailableChannel;
288 List<WifiAvailableChannel> getUsableChannels(@WifiScanner.WifiBand int band, in getUsableChannels()
289 @WifiAvailableChannel.OpMode int mode, @WifiAvailableChannel.Filter int filter); in getUsableChannels()
DWifiChipHidlImpl.java47 import android.net.wifi.WifiAvailableChannel;
385 public List<WifiAvailableChannel> getUsableChannels(@WifiScanner.WifiBand int band, in getUsableChannels()
386 @WifiAvailableChannel.OpMode int mode, @WifiAvailableChannel.Filter int filter) { in getUsableChannels()
1034 private List<WifiAvailableChannel> getUsableChannelsInternal(String methodStr, in getUsableChannelsInternal()
1035 @WifiScanner.WifiBand int band, @WifiAvailableChannel.OpMode int mode, in getUsableChannelsInternal()
1036 @WifiAvailableChannel.Filter int filter) { in getUsableChannelsInternal()
1037 Mutable<List<WifiAvailableChannel>> channelResp = new Mutable<>(); in getUsableChannelsInternal()
1051 channelResp.value.add(new WifiAvailableChannel(ch.channel, in getUsableChannelsInternal()
1066 channelResp.value.add(new WifiAvailableChannel(ch.channel, in getUsableChannelsInternal()
2037 private int frameworkToHalIfaceMode(@WifiAvailableChannel.OpMode int mode) { in frameworkToHalIfaceMode()
[all …]
DWifiChip.java26 import android.net.wifi.WifiAvailableChannel;
781 public List<WifiAvailableChannel> getUsableChannels(@WifiScanner.WifiBand int band, in getUsableChannels()
782 @WifiAvailableChannel.OpMode int mode, @WifiAvailableChannel.Filter int filter) { in getUsableChannels()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiShellCommand.java66 import android.net.wifi.WifiAvailableChannel;
222 WifiAvailableChannel.OP_MODE_STA,
223 WifiAvailableChannel.OP_MODE_SAP,
224 WifiAvailableChannel.OP_MODE_WIFI_DIRECT_CLI,
225 WifiAvailableChannel.OP_MODE_WIFI_DIRECT_GO,
226 WifiAvailableChannel.OP_MODE_WIFI_AWARE,
227 WifiAvailableChannel.OP_MODE_TDLS,
473 private String getOpModeName(@WifiAvailableChannel.OpMode int mode) { in getOpModeName()
475 case WifiAvailableChannel.OP_MODE_STA: in getOpModeName()
477 case WifiAvailableChannel.OP_MODE_SAP: in getOpModeName()
[all …]
DWifiVendorHal.java32 import android.net.wifi.WifiAvailableChannel;
2015 public List<WifiAvailableChannel> getUsableChannels(
2017 @WifiAvailableChannel.OpMode int mode,
2018 @WifiAvailableChannel.Filter int filter) {
DWifiNative.java46 import android.net.wifi.WifiAvailableChannel;
3766 public List<WifiAvailableChannel> getUsableChannels(
3768 @WifiAvailableChannel.OpMode int mode,
3769 @WifiAvailableChannel.Filter int filter) {
3993 List<WifiAvailableChannel> usableChannelList =
3995 WifiAvailableChannel.OP_MODE_STA,
3996 WifiAvailableChannel.FILTER_REGULATORY);
DWifiServiceImpl.java146 import android.net.wifi.WifiAvailableChannel;
7499 private List<WifiAvailableChannel> getStoredSoftApAvailableChannels(
7513 List<WifiAvailableChannel> channels = new ArrayList<>();
7520 channels.add(new WifiAvailableChannel(freq, WifiAvailableChannel.OP_MODE_SAP,
7534 public List<WifiAvailableChannel> getUsableChannels(@WifiScanner.WifiBand int band,
7535 @WifiAvailableChannel.OpMode int mode, @WifiAvailableChannel.Filter int filter,
7566 && mode == WifiAvailableChannel.OP_MODE_SAP
7567 && filter == WifiAvailableChannel.FILTER_REGULATORY
7571 List<WifiAvailableChannel> storedChannels = getStoredSoftApAvailableChannels(band);
7576 List<WifiAvailableChannel> channels = mWifiThreadRunner.call(
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiShellCommandTest.java53 import android.net.wifi.WifiAvailableChannel;
1018 eq(WifiScanner.WIFI_BAND_24_5_WITH_DFS_6_GHZ), eq(WifiAvailableChannel.OP_MODE_STA), in testGetAllowedChannel()
1019 eq(WifiAvailableChannel.FILTER_REGULATORY), eq(SHELL_PACKAGE_NAME), any()); in testGetAllowedChannel()
1026 eq(WifiAvailableChannel.OP_MODE_STA), eq(WifiAvailableChannel.FILTER_REGULATORY), in testGetAllowedChannel()
1030 eq(WifiAvailableChannel.FILTER_REGULATORY), eq(SHELL_PACKAGE_NAME), any()); in testGetAllowedChannel()
1035 eq(WifiAvailableChannel.OP_MODE_SAP), eq(WifiAvailableChannel.FILTER_REGULATORY), in testGetAllowedChannel()
1042 anyInt(), eq(WifiAvailableChannel.FILTER_REGULATORY), eq(SHELL_PACKAGE_NAME), in testGetAllowedChannel()
DWifiNativeTest.java51 import android.net.wifi.WifiAvailableChannel;
1603 List<WifiAvailableChannel> usableChannelList = new ArrayList<>(); in testGetSupportedBandsFromHal()
1604 usableChannelList.add(new WifiAvailableChannel(2412, WifiAvailableChannel.OP_MODE_STA, in testGetSupportedBandsFromHal()
1606 usableChannelList.add(new WifiAvailableChannel(5160, WifiAvailableChannel.OP_MODE_STA, in testGetSupportedBandsFromHal()
1609 WifiAvailableChannel.OP_MODE_STA, in testGetSupportedBandsFromHal()
1610 WifiAvailableChannel.FILTER_REGULATORY)).thenReturn(usableChannelList); in testGetSupportedBandsFromHal()
1631 WifiAvailableChannel.OP_MODE_STA, in testGetSupportedBands()
1632 WifiAvailableChannel.FILTER_REGULATORY)).thenReturn(null); in testGetSupportedBands()
DWifiServiceImplTest.java26 import static android.net.wifi.WifiAvailableChannel.FILTER_REGULATORY;
27 import static android.net.wifi.WifiAvailableChannel.OP_MODE_SAP;
28 import static android.net.wifi.WifiAvailableChannel.OP_MODE_STA;
195 import android.net.wifi.WifiAvailableChannel;
10081 new WifiAvailableChannel(2452, WifiAvailableChannel.OP_MODE_SAP, in testGetUsableChannelsUsesStoredSoftApChannelsWhenDriverIsntUp()
10083 new WifiAvailableChannel(5180, WifiAvailableChannel.OP_MODE_SAP, in testGetUsableChannelsUsesStoredSoftApChannelsWhenDriverIsntUp()
10085 new WifiAvailableChannel(5955, WifiAvailableChannel.OP_MODE_SAP, in testGetUsableChannelsUsesStoredSoftApChannelsWhenDriverIsntUp()
10087 new WifiAvailableChannel(58320, WifiAvailableChannel.OP_MODE_SAP, in testGetUsableChannelsUsesStoredSoftApChannelsWhenDriverIsntUp()
10110 new WifiAvailableChannel(2452, WifiAvailableChannel.OP_MODE_SAP, in testDriverCountryCodeChangedStoresAvailableSoftApChannels()
10114 new WifiAvailableChannel(5180, WifiAvailableChannel.OP_MODE_SAP, in testDriverCountryCodeChangedStoresAvailableSoftApChannels()
[all …]
/packages/modules/Wifi/framework/aidl-export/android/net/wifi/
DWifiAvailableChannel.aidl19 parcelable WifiAvailableChannel;
/packages/apps/Settings/src/com/android/settings/wifi/repository/
DWifiHotspotRepository.java26 import static android.net.wifi.WifiAvailableChannel.OP_MODE_SAP;
34 import android.net.wifi.WifiAvailableChannel;
475 List<WifiAvailableChannel> channels = in isChannelAvailable()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/repository/
DWifiHotspotRepositoryTest.java25 import static android.net.wifi.WifiAvailableChannel.OP_MODE_SAP;
51 import android.net.wifi.WifiAvailableChannel;
111 doReturn(Arrays.asList(new WifiAvailableChannel(FREQ_5GHZ, OP_MODE_SAP))).when(mWifiManager) in setUp()
114 doReturn(Arrays.asList(new WifiAvailableChannel(FREQ_6GHZ, OP_MODE_SAP))).when(mWifiManager) in setUp()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hal/
DWifiChipHidlImplTest.java46 import android.net.wifi.WifiAvailableChannel;
689 WifiAvailableChannel.OP_MODE_WIFI_DIRECT_CLI, in testGetUsableChannels()
690 WifiAvailableChannel.FILTER_CELLULAR_COEXISTENCE); in testGetUsableChannels()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DApConfigUtil.java45 import android.net.wifi.WifiAvailableChannel;
437 List<WifiAvailableChannel> usableChannelList = wifiNative.getUsableChannels( in getHalAvailableChannelsForBand()
439 WifiAvailableChannel.OP_MODE_SAP, in getHalAvailableChannelsForBand()
440 WifiAvailableChannel.FILTER_REGULATORY); in getHalAvailableChannelsForBand()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiManagerTest.java3668 int mode = WifiAvailableChannel.OP_MODE_WIFI_AWARE in testGetAllowedChannels()
3669 | WifiAvailableChannel.OP_MODE_WIFI_DIRECT_GO in testGetAllowedChannels()
3670 | WifiAvailableChannel.OP_MODE_WIFI_DIRECT_CLI; in testGetAllowedChannels()
3673 eq(WifiAvailableChannel.FILTER_REGULATORY), eq(TEST_PACKAGE_NAME), any()); in testGetAllowedChannels()
3683 int mode = WifiAvailableChannel.OP_MODE_WIFI_AWARE in testGetUsableChannels()
3684 | WifiAvailableChannel.OP_MODE_WIFI_DIRECT_CLI; in testGetUsableChannels()
3687 eq(WifiAvailableChannel.FILTER_CONCURRENCY in testGetUsableChannels()
3688 | WifiAvailableChannel.FILTER_CELLULAR_COEXISTENCE), in testGetUsableChannels()
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareStateManager.java20 import static android.net.wifi.WifiAvailableChannel.OP_MODE_WIFI_AWARE;
73 import android.net.wifi.WifiAvailableChannel;
585 List<WifiAvailableChannel> channels = mWifiInjector.getWifiThreadRunner().call( in onCommand()
588 WifiAvailableChannel.FILTER_NAN_INSTANT_MODE), null, in onCommand()
591 for (WifiAvailableChannel channel : channels) { in onCommand()
5736 List<WifiAvailableChannel> channels = mWifiInjector.getWifiThreadRunner().call( in getAwareInstantCommunicationChannel()
5738 OP_MODE_WIFI_AWARE, WifiAvailableChannel.FILTER_NAN_INSTANT_MODE), null, in getAwareInstantCommunicationChannel()
5754 for (WifiAvailableChannel channel : channels) { in getAwareInstantCommunicationChannel()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareStateManagerTest.java21 import static android.net.wifi.WifiAvailableChannel.OP_MODE_WIFI_AWARE;
72 import android.net.wifi.WifiAvailableChannel;
1135 WifiAvailableChannel.FILTER_NAN_INSTANT_MODE)) in testPublishSuccessInstantCommunicationMode()
1136 .thenReturn(List.of(new WifiAvailableChannel(5220, in testPublishSuccessInstantCommunicationMode()
1137 WifiAvailableChannel.OP_MODE_WIFI_AWARE, in testPublishSuccessInstantCommunicationMode()
1139 new WifiAvailableChannel(5745, WifiAvailableChannel.OP_MODE_WIFI_AWARE, in testPublishSuccessInstantCommunicationMode()
1224 WifiAvailableChannel.FILTER_NAN_INSTANT_MODE)) in testSubscribeSuccessInstantCommunicationMode()
1225 .thenReturn(List.of(new WifiAvailableChannel(5220, in testSubscribeSuccessInstantCommunicationMode()
1226 WifiAvailableChannel.OP_MODE_WIFI_AWARE, ScanResult.CHANNEL_WIDTH_80MHZ))); in testSubscribeSuccessInstantCommunicationMode()
/packages/modules/Wifi/framework/api/
Dcurrent.txt145 public final class WifiAvailableChannel implements android.os.Parcelable {
146 ctor public WifiAvailableChannel(int, int);
152 …l public static final android.os.Parcelable.Creator<android.net.wifi.WifiAvailableChannel> CREATOR;
457 …ssion.NEARBY_WIFI_DEVICES) public java.util.List<android.net.wifi.WifiAvailableChannel> getAllowed…
473 …ssion.NEARBY_WIFI_DEVICES) public java.util.List<android.net.wifi.WifiAvailableChannel> getUsableC…