Home
last modified time | relevance | path

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

12

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DWificondPnoScannerTest.java38 import com.android.server.wifi.WifiNative;
60 @Mock WifiNative mWifiNative;
89 WifiNative.PnoEventHandler pnoEventHandler = mock(WifiNative.PnoEventHandler.class); in startHwDisconnectedPnoScan()
90 WifiNative.PnoSettings pnoSettings = createDummyPnoSettings(false); in startHwDisconnectedPnoScan()
108 WifiNative.PnoEventHandler pnoEventHandler = mock(WifiNative.PnoEventHandler.class); in pauseResumeHwDisconnectedPnoScanForSingleScan()
109 WifiNative.PnoSettings pnoSettings = createDummyPnoSettings(false); in pauseResumeHwDisconnectedPnoScanForSingleScan()
110 WifiNative.ScanEventHandler eventHandler = mock(WifiNative.ScanEventHandler.class); in pauseResumeHwDisconnectedPnoScanForSingleScan()
111 WifiNative.ScanSettings settings = createDummyScanSettings(); in pauseResumeHwDisconnectedPnoScanForSingleScan()
177 WifiNative.PnoEventHandler pnoEventHandler = mock(WifiNative.PnoEventHandler.class); in delayedHwDisconnectedPnoScanFailure()
178 WifiNative.PnoSettings pnoSettings = createDummyPnoSettings(false); in delayedHwDisconnectedPnoScanFailure()
[all …]
DBaseWifiScannerImplTest.java41 import com.android.server.wifi.WifiNative;
65 @Mock WifiNative mWifiNative;
115 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccess()
130 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithChannels()
143 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithFullResults()
165 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithHiddenNetworkIds()
193 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithTruncatedHiddenNetworkIds()
211 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in overlappingSingleScanFails()
217 WifiNative.ScanEventHandler eventHandler = mock(WifiNative.ScanEventHandler.class); in overlappingSingleScanFails()
219 WifiNative.ScanSettings settings2 = new NativeScanSettingsBuilder() in overlappingSingleScanFails()
[all …]
DWifiScanningServiceTest.java57 import com.android.server.wifi.WifiNative;
323 private WifiNative.ScanEventHandler verifyStartSingleScan(InOrder order, in verifyStartSingleScan()
324 WifiNative.ScanSettings expected) { in verifyStartSingleScan()
325 ArgumentCaptor<WifiNative.ScanSettings> scanSettingsCaptor = in verifyStartSingleScan()
326 ArgumentCaptor.forClass(WifiNative.ScanSettings.class); in verifyStartSingleScan()
327 ArgumentCaptor<WifiNative.ScanEventHandler> scanEventHandlerCaptor = in verifyStartSingleScan()
328 ArgumentCaptor.forClass(WifiNative.ScanEventHandler.class); in verifyStartSingleScan()
335 private WifiNative.ScanEventHandler verifyStartBackgroundScan(InOrder order, in verifyStartBackgroundScan()
336 WifiNative.ScanSettings expected) { in verifyStartBackgroundScan()
337 ArgumentCaptor<WifiNative.ScanSettings> scanSettingsCaptor = in verifyStartBackgroundScan()
[all …]
DNoBandChannelHelperTest.java33 import com.android.server.wifi.WifiNative;
219 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in empty()
239 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in clear()
258 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addBand()
277 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_single()
298 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_multiple()
319 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_and_addBand_sameBand()
339 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_and_addBand_withDifferentBandChannel()
359 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_and_addBand_all()
381 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_exceedMaxChannels()
[all …]
DKnownBandsChannelHelperTest.java33 import com.android.server.wifi.WifiNative;
283 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in empty()
304 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in clear()
324 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addBand()
344 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_single()
365 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_multiple()
386 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_and_addBand_sameBand()
407 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_and_addBand_withDifferentBandChannel()
428 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_and_addBand_all()
450 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_exceedMaxChannels()
[all …]
DWificondScannerTest.java34 import com.android.server.wifi.WifiNative;
76 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanNotIssuedIfNoAvailableChannels()
82 WifiNative.ScanEventHandler eventHandler = mock(WifiNative.ScanEventHandler.class); in singleScanNotIssuedIfNoAvailableChannels()
90 verify(eventHandler).onScanStatus(WifiNative.WIFI_SCAN_FAILED); in singleScanNotIssuedIfNoAvailableChannels()
95 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanSuccessSingleBucket()
116 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanMaxApExceeded()
144 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanSuccessWithFullScanResults()
167 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanSuccessWithMixedFullResultsAndNot()
196 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanNoBatch()
221 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanBatch()
[all …]
DBackgroundScanSchedulerTest.java34 import com.android.server.wifi.WifiNative;
35 import com.android.server.wifi.WifiNative.BucketSettings;
85 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in noRequest()
99 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in singleRequest()
116 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in singleRequestWithoutPredefinedBucket()
134 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in fewRequests()
154 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in manyRequests()
172 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in requestsWithNoPeriodCommonDenominator()
194 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in manyRequestsDifferentReportScans()
211 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in exceedMaxBatch()
[all …]
DChannelHelperTest.java32 import com.android.server.wifi.WifiNative;
112 .addChannels(any(WifiNative.BucketSettings.class)); in setUp()
147 WifiNative.BucketSettings testBucket = new WifiNative.BucketSettings(); in addChannelsWifiNativeBucket_channels()
163 WifiNative.BucketSettings testBucket = new WifiNative.BucketSettings(); in addChannelsWifiNativeBucket_band()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiNativeTest.java53 private static final WifiNative.TxFateReport TX_FATE_REPORT = new WifiNative.TxFateReport(
59 private static final WifiNative.RxFateReport RX_FATE_REPORT = new WifiNative.RxFateReport(
111 private static final WifiNative.SignalPollResult SIGNAL_POLL_RESULT =
112 new WifiNative.SignalPollResult() {{
117 private static final WifiNative.TxPacketCounters PACKET_COUNTERS_RESULT =
118 new WifiNative.TxPacketCounters() {{
138 private static final WifiNative.PnoSettings TEST_PNO_SETTINGS =
139 new WifiNative.PnoSettings() {{
142 networkList = new WifiNative.PnoNetwork[2];
143 networkList[0] = new WifiNative.PnoNetwork();
[all …]
DScanTestUtil.java41 public static void setupMockChannels(WifiNative wifiNative, int[] channels24, int[] channels5, in setupMockChannels()
89 private final WifiNative.ScanSettings mSettings = new WifiNative.ScanSettings();
91 mSettings.buckets = new WifiNative.BucketSettings[0]; in NativeScanSettingsBuilder()
119 mSettings.hiddenNetworks = new WifiNative.HiddenNetwork[networkSSIDs.length]; in withHiddenNetworkSSIDs()
121 mSettings.hiddenNetworks[i] = new WifiNative.HiddenNetwork(); in withHiddenNetworkSSIDs()
129 WifiNative.BucketSettings bucket = new WifiNative.BucketSettings(); in addBucketWithBand()
148 WifiNative.BucketSettings bucket = new WifiNative.BucketSettings(); in addBucketWithChannels()
158 public NativeScanSettingsBuilder addBucket(WifiNative.BucketSettings bucket) { in addBucket()
165 public WifiNative.ScanSettings build() { in build()
174 public static WifiNative.ScanSettings computeSingleScanNativeSettings( in computeSingleScanNativeSettings()
[all …]
DWifiVendorHalTest.java113 private WifiNative.VendorHalDeathEventHandler mVendorHalDeathHandler;
477 assertFalse(mWifiVendorHal.getBgScanCapabilities(new WifiNative.ScanCapabilities())); in testBoolResultFalse()
504 WifiNative.ScanCapabilities result = new WifiNative.ScanCapabilities(); in testGetBgScanCapabilities()
1005 WifiNative.WifiRssiEventHandler handler; in testRssiMonitoring()
1180 WifiNative.RingBufferStatus[] actual; in testRingBufferStatus()
1261 WifiNative.TxFateReport[] retrievedFates = new WifiNative.TxFateReport[1]; in testGetTxPktFates()
1304 WifiNative.TxFateReport[] retrievedFates = new WifiNative.TxFateReport[1]; in testGetTxPktFatesExceedsInputArrayLength()
1345 WifiNative.RxFateReport[] retrievedFates = new WifiNative.RxFateReport[1]; in testGetRxPktFates()
1388 WifiNative.RxFateReport[] retrievedFates = new WifiNative.RxFateReport[1]; in testGetRxPktFatesExceedsInputArrayLength()
1411 assertFalse(mWifiVendorHal.getTxPktFates(new WifiNative.TxFateReport[0])); in testGetTxPktFatesEmptyInputArray()
[all …]
DWifiDiagnosticsTest.java57 @Mock WifiNative mWifiNative;
73 private WifiNative.RingBufferStatus mFakeRbs;
90 mFakeRbs = new WifiNative.RingBufferStatus(); in setUp()
92 WifiNative.RingBufferStatus[] ringBufferStatuses = new WifiNative.RingBufferStatus[] { in setUp()
439 public boolean answer(WifiNative.TxFateReport[] fates) { in getDumpString()
440 fates[0] = new WifiNative.TxFateReport( in getDumpString()
444 fates[1] = new WifiNative.TxFateReport( in getDumpString()
452 public boolean answer(WifiNative.RxFateReport[] fates) { in getDumpString()
453 fates[0] = new WifiNative.RxFateReport( in getDumpString()
457 fates[1] = new WifiNative.RxFateReport( in getDumpString()
[all …]
DWifiConnectivityHelperTest.java58 @Mock private WifiNative mWifiNative;
59 @Captor ArgumentCaptor<WifiNative.RoamingConfig> mRoamingConfigCaptor;
70 public boolean answer(WifiNative.RoamingCapabilities roamCap) throws Exception { in setupWifiNative()
145 public boolean answer(WifiNative.RoamingCapabilities roamCap) throws Exception { in verifyFirmwareRoamingCapabilityWithFailureNativeCall()
164 public boolean answer(WifiNative.RoamingCapabilities roamCap) throws Exception { in verifyFirmwareRoamingCapabilityWithInvalidMaxBssidBlacklistSize()
185 public boolean answer(WifiNative.RoamingCapabilities roamCap) throws Exception { in verifyFirmwareRoamingCapabilityWithInvalidMaxSsidWhitelistSize()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DWifiScannerImpl.java27 import com.android.server.wifi.WifiNative;
51 WifiNative wifiNative = WifiInjector.getInstance().getWifiNative();
53 if (wifiNative.getBgScanCapabilities(new WifiNative.ScanCapabilities())) {
84 public abstract boolean getScanCapabilities(WifiNative.ScanCapabilities capabilities); in getScanCapabilities()
98 public abstract boolean startSingleScan(WifiNative.ScanSettings settings, in startSingleScan()
99 WifiNative.ScanEventHandler eventHandler); in startSingleScan()
113 public abstract boolean startBatchedScan(WifiNative.ScanSettings settings, in startBatchedScan()
114 WifiNative.ScanEventHandler eventHandler); in startBatchedScan()
142 public abstract boolean setHwPnoList(WifiNative.PnoSettings settings, in setHwPnoList()
143 WifiNative.PnoEventHandler eventHandler); in setHwPnoList()
DHalWifiScannerImpl.java28 import com.android.server.wifi.WifiNative;
42 private final WifiNative mWifiNative;
46 public HalWifiScannerImpl(Context context, WifiNative wifiNative, WifiMonitor wifiMonitor, in HalWifiScannerImpl()
67 public boolean getScanCapabilities(WifiNative.ScanCapabilities capabilities) { in getScanCapabilities()
76 public boolean startSingleScan(WifiNative.ScanSettings settings, in startSingleScan()
77 WifiNative.ScanEventHandler eventHandler) { in startSingleScan()
87 public boolean startBatchedScan(WifiNative.ScanSettings settings, in startBatchedScan()
88 WifiNative.ScanEventHandler eventHandler) { in startBatchedScan()
118 public boolean setHwPnoList(WifiNative.PnoSettings settings, in setHwPnoList()
119 WifiNative.PnoEventHandler eventHandler) { in setHwPnoList()
DWificondScannerImpl.java32 import com.android.server.wifi.WifiNative;
63 private final WifiNative mWifiNative;
72 private WifiNative.ScanSettings mPendingBackgroundScanSettings = null;
73 private WifiNative.ScanEventHandler mPendingBackgroundScanEventHandler = null;
74 private WifiNative.ScanSettings mPendingSingleScanSettings = null;
75 private WifiNative.ScanEventHandler mPendingSingleScanEventHandler = null;
78 private WifiNative.ScanSettings mBackgroundScanSettings = null;
79 private WifiNative.ScanEventHandler mBackgroundScanEventHandler = null;
94 private WifiNative.PnoSettings mPnoSettings = null;
95 private WifiNative.PnoEventHandler mPnoEventHandler;
[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()
DNoBandChannelHelper.java22 import com.android.server.wifi.WifiNative;
151 public void fillBucketSettings(WifiNative.BucketSettings bucketSettings, int maxChannels) { in fillBucketSettings()
159 bucketSettings.channels = new WifiNative.ChannelSettings[mChannels.size()]; in fillBucketSettings()
161 WifiNative.ChannelSettings channelSettings = new WifiNative.ChannelSettings(); in fillBucketSettings()
DHalChannelHelper.java22 import com.android.server.wifi.WifiNative;
31 private final WifiNative mWifiNative;
33 public HalChannelHelper(WifiNative wifiNative) { in HalChannelHelper()
DWifiScanningServiceImpl.java59 import com.android.server.wifi.WifiNative;
264 private WifiNative.ScanSettings mPreviousSchedule;
440 class WifiSingleScanStateMachine extends StateMachine implements WifiNative.ScanEventHandler {
455 private WifiNative.ScanSettings mActiveScanSettings = null;
486 case WifiNative.WIFI_SCAN_RESULTS_AVAILABLE: in onScanStatus()
487 case WifiNative.WIFI_SCAN_THRESHOLD_NUM_SCANS: in onScanStatus()
488 case WifiNative.WIFI_SCAN_THRESHOLD_PERCENT: in onScanStatus()
491 case WifiNative.WIFI_SCAN_FAILED: in onScanStatus()
738 WifiNative.BucketSettings activeBucket = mActiveScanSettings.buckets[0]; in activeScanSatisfies()
758 List<WifiNative.HiddenNetwork> activeHiddenNetworks = new ArrayList<>(); in activeScanSatisfies()
[all …]
DChannelHelper.java22 import com.android.server.wifi.WifiNative;
140 public void addChannels(WifiNative.BucketSettings bucketSettings) { in addChannels()
222 public abstract void fillBucketSettings(WifiNative.BucketSettings bucket, int maxChannels); in fillBucketSettings()
254 public static String toString(WifiNative.BucketSettings bucketSettings) { in toString()
279 private static String toString(WifiNative.ChannelSettings[] channels, int numChannels) { in toString()
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()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiDiagnostics.java103 private WifiNative.RingBufferStatus[] mRingBuffers;
104 private WifiNative.RingBufferStatus mPerPacketRingBuffer;
113 WifiStateMachine wifiStateMachine, WifiNative wifiNative, in WifiDiagnostics()
374 private final WifiNative.WifiLoggerEventHandler mHandler =
375 new WifiNative.WifiLoggerEventHandler() {
377 public void onRingBufferData(WifiNative.RingBufferStatus status, byte[] buffer) {
387 synchronized void onRingBufferData(WifiNative.RingBufferStatus status, byte[] buffer) { in onRingBufferData()
427 for (WifiNative.RingBufferStatus buffer : mRingBuffers) { in fetchRingBuffers()
457 for (WifiNative.RingBufferStatus buffer : mRingBuffers){ in startLoggingAllExceptPerPacketBuffers()
471 private boolean startLoggingRingBuffer(WifiNative.RingBufferStatus buffer) { in startLoggingRingBuffer()
[all …]
DWifiConnectivityHelper.java38 private final WifiNative mWifiNative;
43 WifiConnectivityHelper(WifiNative wifiNative) { in WifiConnectivityHelper()
70 WifiNative.RoamingCapabilities roamingCap = new WifiNative.RoamingCapabilities(); in getFirmwareRoamingInfo()
158 WifiNative.RoamingConfig roamConfig = new WifiNative.RoamingConfig(); in setFirmwareRoamingConfiguration()
DWifiVendorHal.java240 private WifiNative.VendorHalDeathEventHandler mDeathEventHandler;
248 public boolean initialize(WifiNative.VendorHalDeathEventHandler handler) { in initialize()
443 public boolean getBgScanCapabilities(WifiNative.ScanCapabilities capabilities) { in getBgScanCapabilities()
448 WifiNative.ScanCapabilities out = capabilities; in getBgScanCapabilities()
475 public WifiNative.ScanEventHandler eventHandler = null;
479 CurrentBackgroundScan(int id, WifiNative.ScanSettings settings) { in CurrentBackgroundScan()
487 for (WifiNative.BucketSettings bs : settings.buckets) { in CurrentBackgroundScan()
502 makeStaBackgroundScanBucketParametersFromBucketSettings(WifiNative.BucketSettings bs) { in makeStaBackgroundScanBucketParametersFromBucketSettings()
507 for (WifiNative.ChannelSettings cs : bs.channels) { in makeStaBackgroundScanBucketParametersFromBucketSettings()
588 public boolean startBgScan(WifiNative.ScanSettings settings, in startBgScan()
[all …]

12