Home
last modified time | relevance | path

Searched refs:WifiNative (Results 1 – 25 of 83) sorted by relevance

1234

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/
DWificondPnoScannerTest.java39 import com.android.server.wifi.WifiNative;
63 @Mock WifiNative mWifiNative;
98 WifiNative.PnoEventHandler pnoEventHandler = mock(WifiNative.PnoEventHandler.class); in startHwDisconnectedPnoScan()
99 WifiNative.PnoSettings pnoSettings = createDummyPnoSettings(false); in startHwDisconnectedPnoScan()
117 WifiNative.PnoEventHandler pnoEventHandler = mock(WifiNative.PnoEventHandler.class); in startHwDisconnectedPnoScanFailure()
118 WifiNative.PnoSettings pnoSettings = createDummyPnoSettings(false); in startHwDisconnectedPnoScanFailure()
123 when(mWifiNative.startPnoScan(eq(IFACE_NAME), any(WifiNative.PnoSettings.class))) in startHwDisconnectedPnoScanFailure()
126 order.verify(mWifiNative).startPnoScan(any(), any(WifiNative.PnoSettings.class)); in startHwDisconnectedPnoScanFailure()
141 WifiNative.PnoEventHandler pnoEventHandler = mock(WifiNative.PnoEventHandler.class); in ignoreHwDisconnectedPnoScanStopFailure()
142 WifiNative.PnoSettings pnoSettings = createDummyPnoSettings(false); in ignoreHwDisconnectedPnoScanStopFailure()
[all …]
DBaseWifiScannerImplTest.java44 import com.android.server.wifi.WifiNative;
70 @Mock WifiNative mWifiNative;
113 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccess()
129 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithChannels()
144 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithChannelsAndHighAccuracyType()
159 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithFullResults()
181 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithHiddenNetworkIds()
210 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithTruncatedHiddenNetworkIds()
229 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in overlappingSingleScanFails()
235 WifiNative.ScanEventHandler eventHandler = mock(WifiNative.ScanEventHandler.class); in overlappingSingleScanFails()
[all …]
DWifiScanningServiceTest.java96 import com.android.server.wifi.WifiNative;
149 @Mock WifiNative mWifiNative;
423 private WifiNative.ScanEventHandler verifyStartSingleScan(InOrder order, in verifyStartSingleScan()
424 WifiNative.ScanSettings expected) { in verifyStartSingleScan()
428 private WifiNative.ScanEventHandler verifyStartSingleScanForImpl( in verifyStartSingleScanForImpl()
429 WifiScannerImpl wifiScannerImpl, InOrder order, WifiNative.ScanSettings expected) { in verifyStartSingleScanForImpl()
430 ArgumentCaptor<WifiNative.ScanSettings> scanSettingsCaptor = in verifyStartSingleScanForImpl()
431 ArgumentCaptor.forClass(WifiNative.ScanSettings.class); in verifyStartSingleScanForImpl()
432 ArgumentCaptor<WifiNative.ScanEventHandler> scanEventHandlerCaptor = in verifyStartSingleScanForImpl()
433 ArgumentCaptor.forClass(WifiNative.ScanEventHandler.class); in verifyStartSingleScanForImpl()
[all …]
DKnownBandsChannelHelperTest.java35 import com.android.server.wifi.WifiNative;
358 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in empty()
380 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in clear()
401 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addBand()
422 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_single()
444 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_multiple()
466 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_and_addBand_sameBand()
488 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_and_addBand_withDifferentBandChannel()
510 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_and_addBand_all()
534 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_exceedMaxChannels()
[all …]
DWificondScannerTest.java34 import com.android.server.wifi.WifiNative;
91 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanNotIssuedIfNoAvailableChannels()
97 WifiNative.ScanEventHandler eventHandler = mock(WifiNative.ScanEventHandler.class); in singleScanNotIssuedIfNoAvailableChannels()
105 verify(eventHandler).onScanStatus(WifiNative.WIFI_SCAN_FAILED); in singleScanNotIssuedIfNoAvailableChannels()
114 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in cleanupReportsFailureIfScanInProgress()
120 WifiNative.ScanEventHandler eventHandler = mock(WifiNative.ScanEventHandler.class); in cleanupReportsFailureIfScanInProgress()
125 verify(eventHandler, never()).onScanStatus(WifiNative.WIFI_SCAN_FAILED); in cleanupReportsFailureIfScanInProgress()
131 verify(eventHandler).onScanStatus(WifiNative.WIFI_SCAN_FAILED); in cleanupReportsFailureIfScanInProgress()
148 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in externalScanResultsAfterOurScanDoNotCauseSpuriousTimerCancellationOrCrash()
173 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in lateScanResultsDoNotCauseSpuriousTimerCancellationOrCrash()
[all …]
DBackgroundScanSchedulerTest.java36 import com.android.server.wifi.WifiNative;
37 import com.android.server.wifi.WifiNative.BucketSettings;
89 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in noRequest()
103 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in singleRequest()
120 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in singleRequestWithoutPredefinedBucket()
138 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in fewRequests()
158 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in manyRequests()
176 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in requestsWithNoPeriodCommonDenominator()
198 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in manyRequestsDifferentReportScans()
215 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in exceedMaxBatch()
[all …]
DChannelHelperTest.java34 import com.android.server.wifi.WifiNative;
141 .addChannels(any(WifiNative.BucketSettings.class)); in setUp()
176 WifiNative.BucketSettings testBucket = new WifiNative.BucketSettings(); in addChannelsWifiNativeBucket_channels()
192 WifiNative.BucketSettings testBucket = new WifiNative.BucketSettings(); in addChannelsWifiNativeBucket_band()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DScanTestUtil.java47 public static void setupMockChannels(WifiNative wifiNative, int[] channels24, int[] channels5, in setupMockChannels()
107 private final WifiNative.ScanSettings mSettings = new WifiNative.ScanSettings();
110 mSettings.buckets = new WifiNative.BucketSettings[0]; in NativeScanSettingsBuilder()
146 mSettings.hiddenNetworks = new WifiNative.HiddenNetwork[networkSSIDs.length]; in withHiddenNetworkSSIDs()
148 mSettings.hiddenNetworks[i] = new WifiNative.HiddenNetwork(); in withHiddenNetworkSSIDs()
156 WifiNative.BucketSettings bucket = new WifiNative.BucketSettings(); in addBucketWithChannelCollection()
166 WifiNative.BucketSettings bucket = new WifiNative.BucketSettings(); in addBucketWithBand()
185 WifiNative.BucketSettings bucket = new WifiNative.BucketSettings(); in addBucketWithChannels()
195 public NativeScanSettingsBuilder addBucket(WifiNative.BucketSettings bucket) { in addBucket()
202 public WifiNative.ScanSettings build() { in build()
[all …]
DWifiNativeTest.java88 private static final WifiNative.TxFateReport TX_FATE_REPORT = new WifiNative.TxFateReport(
94 private static final WifiNative.RxFateReport RX_FATE_REPORT = new WifiNative.RxFateReport(
171 private static final WifiNative.PnoSettings TEST_PNO_SETTINGS =
172 new WifiNative.PnoSettings() {{
175 networkList = new WifiNative.PnoNetwork[2];
176 networkList[0] = new WifiNative.PnoNetwork();
177 networkList[1] = new WifiNative.PnoNetwork();
255 @Mock private WifiNative.InterfaceCallback mInterfaceCallback;
261 private WifiNative mWifiNative;
290 mWifiNative = new WifiNative( in setUp()
[all …]
DDppManagerTest.java125 WifiNative mWifiNative;
170 WifiNative.DppBootstrapQrCodeInfo mBootStrapInfo = in setUp()
171 new WifiNative.DppBootstrapQrCodeInfo(); in setUp()
506 ArgumentCaptor<WifiNative.DppEventCallback> dppEventCallbackCaptor = in testStartDppAsConfiguratorInitiatorStartOnSuccessCallback()
508 WifiNative.DppEventCallback.class); in testStartDppAsConfiguratorInitiatorStartOnSuccessCallback()
523 WifiNative.DppEventCallback dppEventCallback = dppEventCallbackCaptor.getValue(); in testStartDppAsConfiguratorInitiatorStartOnSuccessCallback()
547 ArgumentCaptor<WifiNative.DppEventCallback> dppEventCallbackCaptor = in testStartDppAsEnrolleeInitiatorStartCorrectlyOnSuccessCallback()
549 WifiNative.DppEventCallback.class); in testStartDppAsEnrolleeInitiatorStartCorrectlyOnSuccessCallback()
563 WifiNative.DppEventCallback dppEventCallback = dppEventCallbackCaptor.getValue(); in testStartDppAsEnrolleeInitiatorStartCorrectlyOnSuccessCallback()
608 ArgumentCaptor<WifiNative.DppEventCallback> dppEventCallbackCaptor = in testStartDppAsConfiguratorInitiatorStartOnFailureCallback()
[all …]
DWifiVendorHalTest.java118 import com.android.server.wifi.WifiNative.RoamingCapabilities;
119 import com.android.server.wifi.WifiNative.RxFateReport;
120 import com.android.server.wifi.WifiNative.TxFateReport;
202 private WifiNative.VendorHalDeathEventHandler mVendorHalDeathHandler;
204 private WifiNative.VendorHalRadioModeChangeEventHandler mVendorHalRadioModeChangeHandler;
767 TEST_IFACE_NAME, new WifiNative.ScanCapabilities())); in testBoolResultFalse()
794 WifiNative.ScanCapabilities result = new WifiNative.ScanCapabilities(); in testGetBgScanCapabilities()
1775 WifiNative.WifiRssiEventHandler handler; in testRssiMonitoring()
1984 WifiNative.RingBufferStatus[] actual; in testRingBufferStatus()
2332 assertEquals(WifiNative.SET_FIRMWARE_ROAMING_SUCCESS, in testEnableFirmwareRoamingSuccess()
[all …]
DWifiConnectivityHelperTest.java60 @Captor ArgumentCaptor<WifiNative.RoamingConfig> mRoamingConfigCaptor;
73 WifiNative.RoamingCapabilities roamCap = new WifiNative.RoamingCapabilities(); in setupWifiNative()
162 WifiNative.RoamingCapabilities roamCap = new WifiNative.RoamingCapabilities(); in verifyFirmwareRoamingCapabilityWithInvalidMaxBssidBlocklistSize()
182 WifiNative.RoamingCapabilities roamCap = new WifiNative.RoamingCapabilities(); in verifyFirmwareRoamingCapabilityWithInvalidMaxSsidAllowlistSize()
DWifiNativeInterfaceManagementTest.java50 import com.android.server.wifi.WifiNative.SupplicantDeathEventHandler;
51 import com.android.server.wifi.WifiNative.VendorHalDeathEventHandler;
87 @Mock private WifiNative.StatusListener mStatusListener;
88 @Mock private WifiNative.InterfaceCallback mIfaceCallback0;
89 @Mock private WifiNative.InterfaceCallback mIfaceCallback1;
96 private ArgumentCaptor<WifiNative.VendorHalRadioModeChangeEventHandler>
98 ArgumentCaptor.forClass(WifiNative.VendorHalRadioModeChangeEventHandler.class);
101 private ArgumentCaptor<WifiNative.HostapdDeathEventHandler> mHostapdDeathHandlerCaptor =
102 ArgumentCaptor.forClass(WifiNative.HostapdDeathEventHandler.class);
113 private WifiNative mWifiNative;
[all …]
DWifiDiagnosticsTest.java68 @Mock WifiNative mWifiNative;
103 private WifiNative.RingBufferStatus mFakeRbs;
121 mFakeRbs = new WifiNative.RingBufferStatus(); in setUp()
123 WifiNative.RingBufferStatus[] ringBufferStatuses = new WifiNative.RingBufferStatus[] { in setUp()
509 new WifiNative.TxFateReport( in getDumpString()
513 new WifiNative.TxFateReport( in getDumpString()
518 new WifiNative.RxFateReport( in getDumpString()
522 new WifiNative.RxFateReport( in getDumpString()
543 assertTrue(dumpString.contains(WifiNative.FateReport.getTableHeader())); in dumpShowsTxAndRxFates()
560 assertTrue(dumpString.contains(WifiNative.FateReport.getTableHeader())); in dumpShowsTxAndRxFatesVerbose()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/
DWificondScannerImpl.java32 import com.android.server.wifi.WifiNative;
65 private final WifiNative mWifiNative;
95 public WificondScannerImpl(Context context, String ifaceName, WifiNative wifiNative, in WificondScannerImpl()
133 public boolean getScanCapabilities(WifiNative.ScanCapabilities capabilities) { in getScanCapabilities()
148 public boolean startSingleScan(WifiNative.ScanSettings settings, in startSingleScan()
149 WifiNative.ScanEventHandler eventHandler) { in startSingleScan()
165 WifiNative.BucketSettings bucketSettings = settings.buckets[i]; in startSingleScan()
230 public boolean startBatchedScan(WifiNative.ScanSettings settings, in startBatchedScan()
231 WifiNative.ScanEventHandler eventHandler) { in startBatchedScan()
294 .onScanStatus(WifiNative.WIFI_SCAN_FAILED); in reportScanFailure()
[all …]
DWifiScannerImpl.java29 import com.android.server.wifi.WifiNative;
58 WifiNative wifiNative = WifiInjector.getInstance().getWifiNative();
64 ifaceName, new WifiNative.ScanCapabilities())) {
109 public abstract boolean getScanCapabilities(WifiNative.ScanCapabilities capabilities); in getScanCapabilities()
123 public abstract boolean startSingleScan(WifiNative.ScanSettings settings, in startSingleScan()
124 WifiNative.ScanEventHandler eventHandler); in startSingleScan()
138 public abstract boolean startBatchedScan(WifiNative.ScanSettings settings, in startBatchedScan()
139 WifiNative.ScanEventHandler eventHandler); in startBatchedScan()
167 public abstract boolean setHwPnoList(WifiNative.PnoSettings settings, in setHwPnoList()
168 WifiNative.PnoEventHandler eventHandler); in setHwPnoList()
DHalWifiScannerImpl.java28 import com.android.server.wifi.WifiNative;
42 private final WifiNative mWifiNative;
46 public HalWifiScannerImpl(Context context, String ifaceName, WifiNative wifiNative, in HalWifiScannerImpl()
68 public boolean getScanCapabilities(WifiNative.ScanCapabilities capabilities) { in getScanCapabilities()
78 public boolean startSingleScan(WifiNative.ScanSettings settings, in startSingleScan()
79 WifiNative.ScanEventHandler eventHandler) { in startSingleScan()
89 public boolean startBatchedScan(WifiNative.ScanSettings settings, in startBatchedScan()
90 WifiNative.ScanEventHandler eventHandler) { in startBatchedScan()
121 public boolean setHwPnoList(WifiNative.PnoSettings settings, in setHwPnoList()
122 WifiNative.PnoEventHandler eventHandler) { in setHwPnoList()
DWifiScanningServiceImpl.java65 import com.android.server.wifi.WifiNative;
403 private WifiNative.ScanSettings mPreviousSchedule;
415 private final WifiNative mWifiNative;
672 private WifiNative.ScanSettings mActiveScanSettings = null;
711 private final class ScanEventHandler implements WifiNative.ScanEventHandler {
728 case WifiNative.WIFI_SCAN_RESULTS_AVAILABLE: in onScanStatus()
729 case WifiNative.WIFI_SCAN_THRESHOLD_NUM_SCANS: in onScanStatus()
730 case WifiNative.WIFI_SCAN_THRESHOLD_PERCENT: in onScanStatus()
733 case WifiNative.WIFI_SCAN_FAILED: in onScanStatus()
775 public boolean startSingleScan(WifiNative.ScanSettings scanSettings) { in startSingleScan()
[all …]
DScanScheduleUtil.java24 import com.android.server.wifi.WifiNative;
37 public static boolean channelEquals(@Nullable WifiNative.ChannelSettings channel1, in channelEquals()
38 @Nullable WifiNative.ChannelSettings channel2) { in channelEquals()
50 public static boolean bucketEquals(@Nullable WifiNative.BucketSettings bucket1, in bucketEquals()
51 @Nullable WifiNative.BucketSettings bucket2) { in bucketEquals()
72 public static boolean scheduleEquals(@Nullable WifiNative.ScanSettings schedule1, in scheduleEquals()
73 @Nullable WifiNative.ScanSettings schedule2) { in scheduleEquals()
DBackgroundScanScheduler.java30 import com.android.server.wifi.WifiNative;
156 private WifiNative.ChannelSettings createChannelSettings(int frequency) { in createChannelSettings()
157 WifiNative.ChannelSettings channelSettings = new WifiNative.ChannelSettings(); in createChannelSettings()
196 public WifiNative.BucketSettings createBucketSettings(int bucketId, int maxChannels) { in createBucketSettings()
234 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in createBucketSettings()
364 private WifiNative.ScanSettings mSchedule;
396 public @NonNull WifiNative.ScanSettings getSchedule() { in getSchedule()
437 WifiNative.ScanSettings schedule = new WifiNative.ScanSettings(); in createSchedule()
439 schedule.buckets = new WifiNative.BucketSettings[bucketList.size()]; in createSchedule()
DChannelHelper.java23 import com.android.server.wifi.WifiNative;
171 public void addChannels(WifiNative.BucketSettings bucketSettings) { in addChannels()
253 public abstract void fillBucketSettings(WifiNative.BucketSettings bucket, int maxChannels); in fillBucketSettings()
285 public static String toString(WifiNative.BucketSettings bucketSettings) { in toString()
310 private static String toString(WifiNative.ChannelSettings[] channels, int numChannels) { in toString()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiDiagnostics.java134 private final WifiNative mWifiNative;
147 private WifiNative.RingBufferStatus[] mRingBuffers;
148 private WifiNative.RingBufferStatus mPerPacketRingBuffer;
160 WifiNative wifiNative, BuildProperties buildProperties, in WifiDiagnostics()
507 private final WifiNative.WifiLoggerEventHandler mHandler =
508 new WifiNative.WifiLoggerEventHandler() {
510 public void onRingBufferData(WifiNative.RingBufferStatus status, byte[] buffer) {
520 synchronized void onRingBufferData(WifiNative.RingBufferStatus status, byte[] buffer) { in onRingBufferData()
580 for (WifiNative.RingBufferStatus buffer : mRingBuffers) { in fetchRingBuffers()
625 for (WifiNative.RingBufferStatus buffer : mRingBuffers){ in startLoggingAllExceptPerPacketBuffers()
[all …]
DWifiVendorHal.java85 import com.android.server.wifi.WifiNative.RxFateReport;
86 import com.android.server.wifi.WifiNative.TxFateReport;
313 private WifiNative.VendorHalDeathEventHandler mDeathEventHandler;
321 public boolean initialize(WifiNative.VendorHalDeathEventHandler handler) { in initialize()
331 private WifiNative.VendorHalRadioModeChangeEventHandler mRadioModeChangeEventHandler;
339 WifiNative.VendorHalRadioModeChangeEventHandler handler) { in registerRadioModeChangeHandler()
845 @NonNull String ifaceName, WifiNative.ScanCapabilities capabilities) { in getBgScanCapabilities()
851 WifiNative.ScanCapabilities out = capabilities; in getBgScanCapabilities()
878 public WifiNative.ScanEventHandler eventHandler = null;
882 CurrentBackgroundScan(int id, WifiNative.ScanSettings settings) { in CurrentBackgroundScan()
[all …]
DClientModeDefaults.java180 default WifiNative.RoamingCapabilities getRoamingCapabilities() { in getRoamingCapabilities()
184 default boolean configureRoaming(WifiNative.RoamingConfig config) { in configureRoaming()
196 default List<WifiNative.TxFateReport> getTxPktFates() { in getTxPktFates()
200 default List<WifiNative.RxFateReport> getRxPktFates() { in getRxPktFates()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DSystemInfo.java27 import com.android.server.wifi.WifiNative;
39 private final WifiNative mWifiNative;
43 SystemInfo(Context context, WifiNative wifiNative) { in SystemInfo()
49 public static SystemInfo getInstance(@NonNull Context context, @NonNull WifiNative wifiNative) { in getInstance()

1234