/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | WificondPnoScannerTest.java | 40 import com.android.server.wifi.WifiNative; 63 @Mock WifiNative mWifiNative; 99 WifiNative.PnoEventHandler pnoEventHandler = mock(WifiNative.PnoEventHandler.class); in startHwDisconnectedPnoScan() 100 WifiNative.PnoSettings pnoSettings = createDummyPnoSettings(false); in startHwDisconnectedPnoScan() 118 WifiNative.PnoEventHandler pnoEventHandler = mock(WifiNative.PnoEventHandler.class); in startHwDisconnectedPnoScanFailure() 119 WifiNative.PnoSettings pnoSettings = createDummyPnoSettings(false); in startHwDisconnectedPnoScanFailure() 124 when(mWifiNative.startPnoScan(eq(IFACE_NAME), any(WifiNative.PnoSettings.class))) in startHwDisconnectedPnoScanFailure() 127 order.verify(mWifiNative).startPnoScan(any(), any(WifiNative.PnoSettings.class)); in startHwDisconnectedPnoScanFailure() 142 WifiNative.PnoEventHandler pnoEventHandler = mock(WifiNative.PnoEventHandler.class); in ignoreHwDisconnectedPnoScanStopFailure() 143 WifiNative.PnoSettings pnoSettings = createDummyPnoSettings(false); in ignoreHwDisconnectedPnoScanStopFailure() [all …]
|
D | WifiScanningServiceTest.java | 104 import com.android.server.wifi.WifiNative; 161 @Mock WifiNative mWifiNative; 390 private WifiNative.ScanEventHandler verifyStartSingleScan(InOrder order, in verifyStartSingleScan() 391 WifiNative.ScanSettings expected) { in verifyStartSingleScan() 395 private WifiNative.ScanEventHandler verifyStartSingleScanForImpl( in verifyStartSingleScanForImpl() 396 WifiScannerImpl wifiScannerImpl, InOrder order, WifiNative.ScanSettings expected) { in verifyStartSingleScanForImpl() 397 ArgumentCaptor<WifiNative.ScanSettings> scanSettingsCaptor = in verifyStartSingleScanForImpl() 398 ArgumentCaptor.forClass(WifiNative.ScanSettings.class); in verifyStartSingleScanForImpl() 399 ArgumentCaptor<WifiNative.ScanEventHandler> scanEventHandlerCaptor = in verifyStartSingleScanForImpl() 400 ArgumentCaptor.forClass(WifiNative.ScanEventHandler.class); in verifyStartSingleScanForImpl() [all …]
|
D | BaseWifiScannerImplTest.java | 45 import com.android.server.wifi.WifiNative; 71 @Mock WifiNative mWifiNative; 117 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccess() 135 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithChannels() 150 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithChannelsAndHighAccuracyType() 165 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithFullResults() 187 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithHiddenNetworkIds() 216 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithTruncatedHiddenNetworkIds() 235 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in overlappingSingleScanFails() 241 WifiNative.ScanEventHandler eventHandler = mock(WifiNative.ScanEventHandler.class); in overlappingSingleScanFails() [all …]
|
D | KnownBandsChannelHelperTest.java | 35 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 …]
|
D | WificondScannerTest.java | 37 import com.android.server.wifi.WifiNative; 96 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanNotIssuedIfNoAvailableChannels() 102 WifiNative.ScanEventHandler eventHandler = mock(WifiNative.ScanEventHandler.class); in singleScanNotIssuedIfNoAvailableChannels() 120 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in cleanupReportsFailureIfScanInProgress() 126 WifiNative.ScanEventHandler eventHandler = mock(WifiNative.ScanEventHandler.class); in cleanupReportsFailureIfScanInProgress() 154 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in externalScanResultsAfterOurScanDoNotCauseSpuriousTimerCancellationOrCrash() 179 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in lateScanResultsDoNotCauseSpuriousTimerCancellationOrCrash() 189 WifiNative.ScanEventHandler eventHandler = mock(WifiNative.ScanEventHandler.class); in lateScanResultsDoNotCauseSpuriousTimerCancellationOrCrash() 243 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in testDumpWithCorrectFormatWithScanResult() 254 WifiNative.ScanEventHandler eventHandler = mock(WifiNative.ScanEventHandler.class); in testDumpWithCorrectFormatWithScanResult() [all …]
|
D | BackgroundScanSchedulerTest.java | 36 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 …]
|
D | ChannelHelperTest.java | 34 import com.android.server.wifi.WifiNative; 137 .addChannels(any(WifiNative.BucketSettings.class)); in setUp() 172 WifiNative.BucketSettings testBucket = new WifiNative.BucketSettings(); in addChannelsWifiNativeBucket_channels() 188 WifiNative.BucketSettings testBucket = new WifiNative.BucketSettings(); in addChannelsWifiNativeBucket_band()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ScanTestUtil.java | 50 public static void setupMockChannels(WifiNative wifiNative, int[] channels24, int[] channels5, in setupMockChannels() 110 private final WifiNative.ScanSettings mSettings = new WifiNative.ScanSettings(); 113 mSettings.buckets = new WifiNative.BucketSettings[0]; in NativeScanSettingsBuilder() 157 mSettings.hiddenNetworks = new WifiNative.HiddenNetwork[networkSSIDs.length]; in withHiddenNetworkSSIDs() 159 mSettings.hiddenNetworks[i] = new WifiNative.HiddenNetwork(); in withHiddenNetworkSSIDs() 167 WifiNative.BucketSettings bucket = new WifiNative.BucketSettings(); in addBucketWithChannelCollection() 177 WifiNative.BucketSettings bucket = new WifiNative.BucketSettings(); in addBucketWithBand() 196 WifiNative.BucketSettings bucket = new WifiNative.BucketSettings(); in addBucketWithChannels() 206 public NativeScanSettingsBuilder addBucket(WifiNative.BucketSettings bucket) { in addBucket() 213 public WifiNative.ScanSettings build() { in build() [all …]
|
D | WifiVendorHalTest.java | 128 private WifiNative.VendorHalDeathEventHandler mVendorHalDeathHandler; 130 private WifiNative.VendorHalRadioModeChangeEventHandler mVendorHalRadioModeChangeHandler; 528 WifiNative.ScanCapabilities capabilities = new WifiNative.ScanCapabilities(); in testGetBgScanCapabilities() 535 WifiNative.ScanCapabilities result = new WifiNative.ScanCapabilities(); in testGetBgScanCapabilities() 717 WifiNative.WifiRssiEventHandler handler; in testRssiMonitoring() 900 WifiNative.TxFateReport fateReport = new WifiNative.TxFateReport( in testGetTxPktFates() 909 List<WifiNative.TxFateReport> retrievedFates = in testGetTxPktFates() 912 WifiNative.TxFateReport retrievedFate = retrievedFates.get(0); in testGetTxPktFates() 932 WifiNative.RxFateReport fateReport = new WifiNative.RxFateReport( in testGetRxPktFates() 941 List<WifiNative.RxFateReport> retrievedFates = in testGetRxPktFates() [all …]
|
D | DppManagerTest.java | 129 WifiNative mWifiNative; 176 WifiNative.DppBootstrapQrCodeInfo mBootStrapInfo = in setUp() 177 new WifiNative.DppBootstrapQrCodeInfo(); in setUp() 541 ArgumentCaptor<WifiNative.DppEventCallback> dppEventCallbackCaptor = in testStartDppAsConfiguratorInitiatorStartOnSuccessCallback() 543 WifiNative.DppEventCallback.class); in testStartDppAsConfiguratorInitiatorStartOnSuccessCallback() 558 WifiNative.DppEventCallback dppEventCallback = dppEventCallbackCaptor.getValue(); in testStartDppAsConfiguratorInitiatorStartOnSuccessCallback() 582 ArgumentCaptor<WifiNative.DppEventCallback> dppEventCallbackCaptor = in testStartDppAsEnrolleeInitiatorStartCorrectlyOnSuccessCallback() 584 WifiNative.DppEventCallback.class); in testStartDppAsEnrolleeInitiatorStartCorrectlyOnSuccessCallback() 598 WifiNative.DppEventCallback dppEventCallback = dppEventCallbackCaptor.getValue(); in testStartDppAsEnrolleeInitiatorStartCorrectlyOnSuccessCallback() 641 ArgumentCaptor<WifiNative.DppEventCallback> dppEventCallbackCaptor = in testStartDppAsConfiguratorInitiatorStartOnFailureCallback() [all …]
|
D | WifiNativeTest.java | 107 private static final WifiNative.TxFateReport TX_FATE_REPORT = new WifiNative.TxFateReport( 113 private static final WifiNative.RxFateReport RX_FATE_REPORT = new WifiNative.RxFateReport( 186 private static final WifiNative.PnoSettings TEST_PNO_SETTINGS = 187 new WifiNative.PnoSettings() {{ 192 networkList = new WifiNative.PnoNetwork[2]; 193 networkList[0] = new WifiNative.PnoNetwork(); 194 networkList[1] = new WifiNative.PnoNetwork(); 277 @Mock private WifiNative.InterfaceCallback mInterfaceCallback; 291 private WifiNative mWifiNative; 349 mWifiNative = new WifiNative( in setUp() [all …]
|
D | WifiNativeInterfaceManagementTest.java | 58 import com.android.server.wifi.WifiNative.SupplicantDeathEventHandler; 59 import com.android.server.wifi.WifiNative.VendorHalDeathEventHandler; 116 @Mock private WifiNative.StatusListener mStatusListener; 117 @Mock private WifiNative.InterfaceCallback mIfaceCallback0; 118 @Mock private WifiNative.InterfaceCallback mIfaceCallback1; 119 @Mock private WifiNative.InterfaceEventCallback mIfaceEventCallback0; 131 private WifiNative.Iface mActiveP2pIface; 132 private WifiNative.Iface mActiveNanIface; 138 private ArgumentCaptor<WifiNative.VendorHalRadioModeChangeEventHandler> 140 ArgumentCaptor.forClass(WifiNative.VendorHalRadioModeChangeEventHandler.class); [all …]
|
D | WifiConnectivityHelperTest.java | 60 @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()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/ |
D | WifiScannerImpl.java | 30 import com.android.server.wifi.WifiNative; 59 WifiNative wifiNative = WifiInjector.getInstance().getWifiNative(); 66 ifaceName, new WifiNative.ScanCapabilities())) { 111 public abstract boolean getScanCapabilities(WifiNative.ScanCapabilities capabilities); in getScanCapabilities() 125 public abstract boolean startSingleScan(WifiNative.ScanSettings settings, in startSingleScan() 126 WifiNative.ScanEventHandler eventHandler); in startSingleScan() 140 public abstract boolean startBatchedScan(WifiNative.ScanSettings settings, in startBatchedScan() 141 WifiNative.ScanEventHandler eventHandler); in startBatchedScan() 169 public abstract boolean setHwPnoList(WifiNative.PnoSettings settings, in setHwPnoList() 170 WifiNative.PnoEventHandler eventHandler); in setHwPnoList()
|
D | HalWifiScannerImpl.java | 29 import com.android.server.wifi.WifiNative; 43 private final WifiNative mWifiNative; 48 WifiNative wifiNative, WifiMonitor wifiMonitor, in HalWifiScannerImpl() 70 public boolean getScanCapabilities(WifiNative.ScanCapabilities capabilities) { in getScanCapabilities() 80 public boolean startSingleScan(WifiNative.ScanSettings settings, in startSingleScan() 81 WifiNative.ScanEventHandler eventHandler) { in startSingleScan() 91 public boolean startBatchedScan(WifiNative.ScanSettings settings, in startBatchedScan() 92 WifiNative.ScanEventHandler eventHandler) { in startBatchedScan() 123 public boolean setHwPnoList(WifiNative.PnoSettings settings, in setHwPnoList() 124 WifiNative.PnoEventHandler eventHandler) { in setHwPnoList()
|
D | WificondScannerImpl.java | 34 import com.android.server.wifi.WifiNative; 66 private final WifiNative mWifiNative; 99 WifiNative wifiNative, WifiMonitor wifiMonitor, in WificondScannerImpl() 139 public boolean getScanCapabilities(WifiNative.ScanCapabilities capabilities) { in getScanCapabilities() 154 public boolean startSingleScan(WifiNative.ScanSettings settings, in startSingleScan() 155 WifiNative.ScanEventHandler eventHandler) { in startSingleScan() 171 WifiNative.BucketSettings bucketSettings = settings.buckets[i]; in startSingleScan() 265 public boolean startBatchedScan(WifiNative.ScanSettings settings, in startBatchedScan() 266 WifiNative.ScanEventHandler eventHandler) { in startBatchedScan() 436 .onScanStatus(WifiNative.WIFI_SCAN_RESULTS_AVAILABLE); in pollLatestScanData() [all …]
|
D | ScanScheduleUtil.java | 24 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()
|
D | BackgroundScanScheduler.java | 30 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()
|
D | WifiScanningServiceImpl.java | 73 import com.android.server.wifi.WifiNative; 677 private WifiNative.ScanSettings mPreviousSchedule; 688 private final WifiNative mWifiNative; 932 private WifiNative.ScanSettings mActiveScanSettings = null; 971 private final class ScanEventHandler implements WifiNative.ScanEventHandler { 988 case WifiNative.WIFI_SCAN_RESULTS_AVAILABLE: in onScanStatus() 989 case WifiNative.WIFI_SCAN_THRESHOLD_NUM_SCANS: in onScanStatus() 990 case WifiNative.WIFI_SCAN_THRESHOLD_PERCENT: in onScanStatus() 994 case WifiNative.WIFI_SCAN_FAILED: in onScanStatus() 1045 public boolean startSingleScan(WifiNative.ScanSettings scanSettings) { in startSingleScan() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hal/ |
D | IWifiStaIface.java | 30 import com.android.server.wifi.WifiNative; 95 WifiNative.ScanCapabilities getBackgroundScanCapabilities(); in getBackgroundScanCapabilities() 111 List<WifiNative.RxFateReport> getDebugRxPacketFates(); in getDebugRxPacketFates() 120 List<WifiNative.TxFateReport> getDebugTxPacketFates(); in getDebugTxPacketFates() 153 WifiNative.RoamingCapabilities getRoamingCapabilities(); in getRoamingCapabilities() 186 @WifiNative.RoamingEnableStatus int setRoamingState(@WifiNative.RoamingEnableState int state); in setRoamingState()
|
D | WifiStaIface.java | 37 import com.android.server.wifi.WifiNative; 52 WifiNative.SET_FIRMWARE_ROAMING_FAILURE; 62 public List<WifiNative.BucketSettings> buckets; 66 List<WifiNative.BucketSettings> inBuckets) { in StaBackgroundScanParameters() 248 public WifiNative.ScanCapabilities getBackgroundScanCapabilities() { in getBackgroundScanCapabilities() 264 public List<WifiNative.RxFateReport> getDebugRxPacketFates() { in getDebugRxPacketFates() 272 public List<WifiNative.TxFateReport> getDebugTxPacketFates() { in getDebugTxPacketFates() 309 public WifiNative.RoamingCapabilities getRoamingCapabilities() { in getRoamingCapabilities() 342 public @WifiNative.RoamingEnableStatus int setRoamingState( in setRoamingState() 343 @WifiNative.RoamingEnableState int state) { in setRoamingState()
|
D | WifiStaIfaceHidlImpl.java | 57 import com.android.server.wifi.WifiNative; 153 public WifiNative.ScanCapabilities getBackgroundScanCapabilities() { in getBackgroundScanCapabilities() 171 public List<WifiNative.RxFateReport> getDebugRxPacketFates() { in getDebugRxPacketFates() 180 public List<WifiNative.TxFateReport> getDebugTxPacketFates() { in getDebugTxPacketFates() 219 public WifiNative.RoamingCapabilities getRoamingCapabilities() { in getRoamingCapabilities() 256 public @WifiNative.RoamingEnableStatus int setRoamingState( in setRoamingState() 257 @WifiNative.RoamingEnableState int state) { in setRoamingState() 259 return validateAndCall(methodStr, WifiNative.SET_FIRMWARE_ROAMING_FAILURE, in setRoamingState() 450 private WifiNative.ScanCapabilities getBackgroundScanCapabilitiesInternal(String methodStr) { in getBackgroundScanCapabilitiesInternal() 451 GeneralUtil.Mutable<WifiNative.ScanCapabilities> scanResp = new GeneralUtil.Mutable<>(); in getBackgroundScanCapabilitiesInternal() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiVendorHal.java | 48 import com.android.server.wifi.WifiNative.RxFateReport; 49 import com.android.server.wifi.WifiNative.TxFateReport; 122 private WifiNative.WifiTwtEvents mWifiTwtEvents; 159 private WifiNative.VendorHalDeathEventHandler mDeathEventHandler; 167 public boolean initialize(WifiNative.VendorHalDeathEventHandler handler) { in initialize() 177 private WifiNative.VendorHalRadioModeChangeEventHandler mRadioModeChangeEventHandler; 185 WifiNative.VendorHalRadioModeChangeEventHandler handler) { in registerRadioModeChangeHandler() 580 @NonNull String ifaceName, WifiNative.ScanCapabilities capabilities) { in getBgScanCapabilities() 585 WifiNative.ScanCapabilities result = iface.getBackgroundScanCapabilities(); in getBgScanCapabilities() 604 public WifiNative.ScanEventHandler eventHandler = null; [all …]
|
D | WifiDiagnostics.java | 137 private final WifiNative mWifiNative; 150 private WifiNative.RingBufferStatus[] mRingBuffers; 151 private WifiNative.RingBufferStatus mPerPacketRingBuffer; 163 WifiNative wifiNative, BuildProperties buildProperties, in WifiDiagnostics() 494 private final WifiNative.WifiLoggerEventHandler mHandler = 495 new WifiNative.WifiLoggerEventHandler() { 497 public void onRingBufferData(WifiNative.RingBufferStatus status, byte[] buffer) { 507 synchronized void onRingBufferData(WifiNative.RingBufferStatus status, byte[] buffer) { in onRingBufferData() 568 for (WifiNative.RingBufferStatus buffer : mRingBuffers) { in fetchRingBuffers() 613 for (WifiNative.RingBufferStatus buffer : mRingBuffers){ in startLoggingAllExceptPerPacketBuffers() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/ |
D | SystemInfo.java | 27 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()
|