Home
last modified time | relevance | path

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

123

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DWificondPnoScannerTest.java39 import com.android.server.wifi.WifiNative;
62 @Mock WifiNative mWifiNative;
96 WifiNative.PnoEventHandler pnoEventHandler = mock(WifiNative.PnoEventHandler.class); in startHwDisconnectedPnoScan()
97 WifiNative.PnoSettings pnoSettings = createDummyPnoSettings(false); in startHwDisconnectedPnoScan()
117 WifiNative.PnoEventHandler pnoEventHandler = mock(WifiNative.PnoEventHandler.class); in ignoreHwDisconnectedPnoScanStopFailure()
118 WifiNative.PnoSettings pnoSettings = createDummyPnoSettings(false); in ignoreHwDisconnectedPnoScanStopFailure()
144 private WifiNative.PnoNetwork createDummyPnoNetwork(String ssid) { in createDummyPnoNetwork()
145 WifiNative.PnoNetwork pnoNetwork = new WifiNative.PnoNetwork(); in createDummyPnoNetwork()
150 private WifiNative.PnoSettings createDummyPnoSettings(boolean isConnected) { in createDummyPnoSettings()
151 WifiNative.PnoSettings pnoSettings = new WifiNative.PnoSettings(); in createDummyPnoSettings()
[all …]
DBaseWifiScannerImplTest.java43 import com.android.server.wifi.WifiNative;
69 @Mock WifiNative mWifiNative;
113 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccess()
129 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithChannels()
143 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithChannelsAndHighAccuracyType()
144 .withType(WifiNative.SCAN_TYPE_HIGH_ACCURACY) in singleScanSuccessWithChannelsAndHighAccuracyType()
158 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithFullResults()
180 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithHiddenNetworkIds()
209 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithTruncatedHiddenNetworkIds()
228 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in overlappingSingleScanFails()
[all …]
DKnownBandsChannelHelperTest.java34 import com.android.server.wifi.WifiNative;
284 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in empty()
305 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in clear()
325 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addBand()
345 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_single()
366 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_multiple()
387 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_and_addBand_sameBand()
408 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_and_addBand_withDifferentBandChannel()
429 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_and_addBand_all()
451 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_exceedMaxChannels()
[all …]
DWifiScanningServiceTest.java84 import com.android.server.wifi.WifiNative;
382 private WifiNative.ScanEventHandler verifyStartSingleScan(InOrder order, in verifyStartSingleScan()
383 WifiNative.ScanSettings expected) { in verifyStartSingleScan()
384 ArgumentCaptor<WifiNative.ScanSettings> scanSettingsCaptor = in verifyStartSingleScan()
385 ArgumentCaptor.forClass(WifiNative.ScanSettings.class); in verifyStartSingleScan()
386 ArgumentCaptor<WifiNative.ScanEventHandler> scanEventHandlerCaptor = in verifyStartSingleScan()
387 ArgumentCaptor.forClass(WifiNative.ScanEventHandler.class); in verifyStartSingleScan()
394 private WifiNative.ScanEventHandler verifyStartBackgroundScan(InOrder order, in verifyStartBackgroundScan()
395 WifiNative.ScanSettings expected) { in verifyStartBackgroundScan()
396 ArgumentCaptor<WifiNative.ScanSettings> scanSettingsCaptor = in verifyStartBackgroundScan()
[all …]
DBackgroundScanSchedulerTest.java35 import com.android.server.wifi.WifiNative;
36 import com.android.server.wifi.WifiNative.BucketSettings;
86 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in noRequest()
100 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in singleRequest()
117 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in singleRequestWithoutPredefinedBucket()
135 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in fewRequests()
155 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in manyRequests()
173 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in requestsWithNoPeriodCommonDenominator()
195 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in manyRequestsDifferentReportScans()
212 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in exceedMaxBatch()
[all …]
DWificondScannerTest.java33 import com.android.server.wifi.WifiNative;
80 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanNotIssuedIfNoAvailableChannels()
86 WifiNative.ScanEventHandler eventHandler = mock(WifiNative.ScanEventHandler.class); in singleScanNotIssuedIfNoAvailableChannels()
94 verify(eventHandler).onScanStatus(WifiNative.WIFI_SCAN_FAILED); in singleScanNotIssuedIfNoAvailableChannels()
111 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in externalScanResultsAfterOurScanDoNotCauseSpuriousTimerCancellationOrCrash()
136 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in lateScanResultsDoNotCauseSpuriousTimerCancellationOrCrash()
145 WifiNative.ScanEventHandler eventHandler = mock(WifiNative.ScanEventHandler.class); in lateScanResultsDoNotCauseSpuriousTimerCancellationOrCrash()
DChannelHelperTest.java33 import com.android.server.wifi.WifiNative;
134 .addChannels(any(WifiNative.BucketSettings.class)); in setUp()
169 WifiNative.BucketSettings testBucket = new WifiNative.BucketSettings(); in addChannelsWifiNativeBucket_channels()
185 WifiNative.BucketSettings testBucket = new WifiNative.BucketSettings(); in addChannelsWifiNativeBucket_band()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiNativeTest.java34 import com.android.server.wifi.WifiNative.SendMgmtFrameCallback;
58 private static final WifiNative.TxFateReport TX_FATE_REPORT = new WifiNative.TxFateReport(
64 private static final WifiNative.RxFateReport RX_FATE_REPORT = new WifiNative.RxFateReport(
116 private static final WifiNative.SignalPollResult SIGNAL_POLL_RESULT =
117 new WifiNative.SignalPollResult() {{
123 private static final WifiNative.TxPacketCounters PACKET_COUNTERS_RESULT =
124 new WifiNative.TxPacketCounters() {{
146 private static final WifiNative.PnoSettings TEST_PNO_SETTINGS =
147 new WifiNative.PnoSettings() {{
150 networkList = new WifiNative.PnoNetwork[2];
[all …]
DScanTestUtil.java41 public static void setupMockChannels(WifiNative wifiNative, int[] channels24, int[] channels5, in setupMockChannels()
97 private final WifiNative.ScanSettings mSettings = new WifiNative.ScanSettings();
99 mSettings.scanType = WifiNative.SCAN_TYPE_LOW_LATENCY; in NativeScanSettingsBuilder()
100 mSettings.buckets = new WifiNative.BucketSettings[0]; in NativeScanSettingsBuilder()
132 mSettings.hiddenNetworks = new WifiNative.HiddenNetwork[networkSSIDs.length]; in withHiddenNetworkSSIDs()
134 mSettings.hiddenNetworks[i] = new WifiNative.HiddenNetwork(); in withHiddenNetworkSSIDs()
142 WifiNative.BucketSettings bucket = new WifiNative.BucketSettings(); in addBucketWithBand()
161 WifiNative.BucketSettings bucket = new WifiNative.BucketSettings(); in addBucketWithChannels()
171 public NativeScanSettingsBuilder addBucket(WifiNative.BucketSettings bucket) { in addBucket()
178 public WifiNative.ScanSettings build() { in build()
[all …]
DWifiVendorHalTest.java162 private WifiNative.VendorHalDeathEventHandler mVendorHalDeathHandler;
164 private WifiNative.VendorHalRadioModeChangeEventHandler mVendorHalRadioModeChangeHandler;
679 TEST_IFACE_NAME, new WifiNative.ScanCapabilities())); in testBoolResultFalse()
706 WifiNative.ScanCapabilities result = new WifiNative.ScanCapabilities(); in testGetBgScanCapabilities()
1222 WifiNative.WifiRssiEventHandler handler; in testRssiMonitoring()
1430 WifiNative.RingBufferStatus[] actual; in testRingBufferStatus()
1527 WifiNative.TxFateReport[] retrievedFates = new WifiNative.TxFateReport[1]; in testGetTxPktFates()
1570 WifiNative.TxFateReport[] retrievedFates = new WifiNative.TxFateReport[1]; in testGetTxPktFatesExceedsInputArrayLength()
1611 WifiNative.RxFateReport[] retrievedFates = new WifiNative.RxFateReport[1]; in testGetRxPktFates()
1654 WifiNative.RxFateReport[] retrievedFates = new WifiNative.RxFateReport[1]; in testGetRxPktFatesExceedsInputArrayLength()
[all …]
DWifiConnectivityHelperTest.java59 @Mock private WifiNative mWifiNative;
60 @Captor ArgumentCaptor<WifiNative.RoamingConfig> mRoamingConfigCaptor;
72 public boolean answer(String ifaceName, WifiNative.RoamingCapabilities roamCap) in setupWifiNative()
149 public boolean answer(String ifaceName, WifiNative.RoamingCapabilities roamCap) in verifyFirmwareRoamingCapabilityWithFailureNativeCall()
169 public boolean answer(String ifaceName, WifiNative.RoamingCapabilities roamCap) in verifyFirmwareRoamingCapabilityWithInvalidMaxBssidBlacklistSize()
191 public boolean answer(String ifaceName, WifiNative.RoamingCapabilities roamCap) in verifyFirmwareRoamingCapabilityWithInvalidMaxSsidWhitelistSize()
DDppManagerTest.java92 WifiNative mWifiNative;
427 ArgumentCaptor<WifiNative.DppEventCallback> dppEventCallbackCaptor = in testStartDppAsConfiguratorInitiatorStartOnSuccessCallback()
429 WifiNative.DppEventCallback.class); in testStartDppAsConfiguratorInitiatorStartOnSuccessCallback()
442 WifiNative.DppEventCallback dppEventCallback = dppEventCallbackCaptor.getValue(); in testStartDppAsConfiguratorInitiatorStartOnSuccessCallback()
464 ArgumentCaptor<WifiNative.DppEventCallback> dppEventCallbackCaptor = in testStartDppAsEnrolleeInitiatorStartCorrectlyOnSuccessCallback()
466 WifiNative.DppEventCallback.class); in testStartDppAsEnrolleeInitiatorStartCorrectlyOnSuccessCallback()
477 WifiNative.DppEventCallback dppEventCallback = dppEventCallbackCaptor.getValue(); in testStartDppAsEnrolleeInitiatorStartCorrectlyOnSuccessCallback()
519 ArgumentCaptor<WifiNative.DppEventCallback> dppEventCallbackCaptor = in testStartDppAsConfiguratorInitiatorStartOnFailureCallback()
521 WifiNative.DppEventCallback.class); in testStartDppAsConfiguratorInitiatorStartOnFailureCallback()
535 WifiNative.DppEventCallback dppEventCallback = dppEventCallbackCaptor.getValue(); in testStartDppAsConfiguratorInitiatorStartOnFailureCallback()
[all …]
DWifiDiagnosticsTest.java63 @Mock WifiNative mWifiNative;
87 private WifiNative.RingBufferStatus mFakeRbs;
104 mFakeRbs = new WifiNative.RingBufferStatus(); in setUp()
106 WifiNative.RingBufferStatus[] ringBufferStatuses = new WifiNative.RingBufferStatus[] { in setUp()
458 public boolean answer(String ifaceName, WifiNative.TxFateReport[] fates) { in getDumpString()
459 fates[0] = new WifiNative.TxFateReport( in getDumpString()
463 fates[1] = new WifiNative.TxFateReport( in getDumpString()
471 public boolean answer(String ifaceName, WifiNative.RxFateReport[] fates) { in getDumpString()
472 fates[0] = new WifiNative.RxFateReport( in getDumpString()
476 fates[1] = new WifiNative.RxFateReport( in getDumpString()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DWifiScannerImpl.java28 import com.android.server.wifi.WifiNative;
52 WifiNative wifiNative = WifiInjector.getInstance().getWifiNative();
59 ifaceName, new WifiNative.ScanCapabilities())) {
91 public abstract boolean getScanCapabilities(WifiNative.ScanCapabilities capabilities); in getScanCapabilities()
105 public abstract boolean startSingleScan(WifiNative.ScanSettings settings, in startSingleScan()
106 WifiNative.ScanEventHandler eventHandler); in startSingleScan()
120 public abstract boolean startBatchedScan(WifiNative.ScanSettings settings, in startBatchedScan()
121 WifiNative.ScanEventHandler eventHandler); in startBatchedScan()
149 public abstract boolean setHwPnoList(WifiNative.PnoSettings settings, in setHwPnoList()
150 WifiNative.PnoEventHandler eventHandler); in setHwPnoList()
DHalWifiScannerImpl.java28 import com.android.server.wifi.WifiNative;
43 private final WifiNative mWifiNative;
47 public HalWifiScannerImpl(Context context, String ifaceName, WifiNative wifiNative, in HalWifiScannerImpl()
69 public boolean getScanCapabilities(WifiNative.ScanCapabilities capabilities) { in getScanCapabilities()
79 public boolean startSingleScan(WifiNative.ScanSettings settings, in startSingleScan()
80 WifiNative.ScanEventHandler eventHandler) { in startSingleScan()
90 public boolean startBatchedScan(WifiNative.ScanSettings settings, in startBatchedScan()
91 WifiNative.ScanEventHandler eventHandler) { in startBatchedScan()
122 public boolean setHwPnoList(WifiNative.PnoSettings settings, in setHwPnoList()
123 WifiNative.PnoEventHandler eventHandler) { in setHwPnoList()
DWificondScannerImpl.java32 import com.android.server.wifi.WifiNative;
64 private final WifiNative mWifiNative;
96 public WificondScannerImpl(Context context, String ifaceName, WifiNative wifiNative, in WificondScannerImpl()
136 public boolean getScanCapabilities(WifiNative.ScanCapabilities capabilities) { in getScanCapabilities()
151 public boolean startSingleScan(WifiNative.ScanSettings settings, in startSingleScan()
152 WifiNative.ScanEventHandler eventHandler) { in startSingleScan()
168 WifiNative.BucketSettings bucketSettings = settings.buckets[i]; in startSingleScan()
235 public boolean startBatchedScan(WifiNative.ScanSettings settings, in startBatchedScan()
236 WifiNative.ScanEventHandler eventHandler) { in startBatchedScan()
299 .onScanStatus(WifiNative.WIFI_SCAN_FAILED); in reportScanFailure()
[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()
DWifiScanningServiceImpl.java58 import com.android.server.wifi.WifiNative;
337 private WifiNative.ScanSettings mPreviousSchedule;
494 class WifiSingleScanStateMachine extends StateMachine implements WifiNative.ScanEventHandler {
509 private WifiNative.ScanSettings mActiveScanSettings = null;
540 case WifiNative.WIFI_SCAN_RESULTS_AVAILABLE: in onScanStatus()
541 case WifiNative.WIFI_SCAN_THRESHOLD_NUM_SCANS: in onScanStatus()
542 case WifiNative.WIFI_SCAN_THRESHOLD_PERCENT: in onScanStatus()
545 case WifiNative.WIFI_SCAN_FAILED: in onScanStatus()
827 return WifiNative.SCAN_TYPE_LOW_LATENCY; in getNativeScanType()
829 return WifiNative.SCAN_TYPE_LOW_POWER; in getNativeScanType()
[all …]
DWificondChannelHelper.java22 import com.android.server.wifi.WifiNative;
31 private final WifiNative mWifiNative;
33 public WificondChannelHelper(WifiNative wifiNative) { in WificondChannelHelper()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiDiagnostics.java115 private WifiNative.RingBufferStatus[] mRingBuffers;
116 private WifiNative.RingBufferStatus mPerPacketRingBuffer;
128 WifiNative wifiNative, BuildProperties buildProperties, in WifiDiagnostics()
420 private final WifiNative.WifiLoggerEventHandler mHandler =
421 new WifiNative.WifiLoggerEventHandler() {
423 public void onRingBufferData(WifiNative.RingBufferStatus status, byte[] buffer) {
433 synchronized void onRingBufferData(WifiNative.RingBufferStatus status, byte[] buffer) { in onRingBufferData()
466 for (WifiNative.RingBufferStatus buffer : mRingBuffers) { in fetchRingBuffers()
496 for (WifiNative.RingBufferStatus buffer : mRingBuffers){ in startLoggingAllExceptPerPacketBuffers()
510 private boolean startLoggingRingBuffer(WifiNative.RingBufferStatus buffer) { in startLoggingRingBuffer()
[all …]
DWifiConnectivityHelper.java38 private final WifiNative mWifiNative;
43 WifiConnectivityHelper(WifiNative wifiNative) { in WifiConnectivityHelper()
71 WifiNative.RoamingCapabilities roamingCap = new WifiNative.RoamingCapabilities(); in getFirmwareRoamingInfo()
159 WifiNative.RoamingConfig roamConfig = new WifiNative.RoamingConfig(); in setFirmwareRoamingConfiguration()
DWificondControl.java41 import com.android.server.wifi.WifiNative.SendMgmtFrameCallback;
42 import com.android.server.wifi.WifiNative.SoftApListener;
93 private WifiNative mWifiNative = null;
103 private WifiNative.WificondDeathEventHandler mDeathEventHandler;
222 mCallback.onFailure(WifiNative.SEND_MGMT_FRAME_ERROR_TIMEOUT); in SendMgmtFrameEvent()
283 public boolean initialize(@NonNull WifiNative.WificondDeathEventHandler handler) { in initialize()
501 public WifiNative.SignalPollResult signalPoll(@NonNull String ifaceName) { in signalPoll()
519 WifiNative.SignalPollResult pollResult = new WifiNative.SignalPollResult(); in signalPoll()
533 public WifiNative.TxPacketCounters getTxPacketCounters(@NonNull String ifaceName) { in getTxPacketCounters()
551 WifiNative.TxPacketCounters counters = new WifiNative.TxPacketCounters(); in getTxPacketCounters()
[all …]
DWifiVendorHal.java273 private WifiNative.VendorHalDeathEventHandler mDeathEventHandler;
281 public boolean initialize(WifiNative.VendorHalDeathEventHandler handler) { in initialize()
291 private WifiNative.VendorHalRadioModeChangeEventHandler mRadioModeChangeEventHandler;
299 WifiNative.VendorHalRadioModeChangeEventHandler handler) { in registerRadioModeChangeHandler()
622 @NonNull String ifaceName, WifiNative.ScanCapabilities capabilities) { in getBgScanCapabilities()
628 WifiNative.ScanCapabilities out = capabilities; in getBgScanCapabilities()
655 public WifiNative.ScanEventHandler eventHandler = null;
659 CurrentBackgroundScan(int id, WifiNative.ScanSettings settings) { in CurrentBackgroundScan()
667 for (WifiNative.BucketSettings bs : settings.buckets) { in CurrentBackgroundScan()
682 makeStaBackgroundScanBucketParametersFromBucketSettings(WifiNative.BucketSettings bs) { in makeStaBackgroundScanBucketParametersFromBucketSettings()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DSystemInfo.java29 import com.android.server.wifi.WifiNative;
41 private final WifiNative mWifiNative;
45 SystemInfo(Context context, WifiNative wifiNative) { in SystemInfo()
51 public static SystemInfo getInstance(@NonNull Context context, @NonNull WifiNative wifiNative) { in getInstance()
DPasspointObjectFactory.java27 import com.android.server.wifi.WifiNative;
46 public PasspointEventHandler makePasspointEventHandler(WifiNative wifiNative, in makePasspointEventHandler()
128 public PasspointProvisioner makePasspointProvisioner(Context context, WifiNative wifiNative, in makePasspointProvisioner()
195 public SystemInfo getSystemInfo(Context context, WifiNative wifiNative) { in getSystemInfo()

123