/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | SupplicantPnoScannerTest.java | 39 import com.android.server.wifi.WifiNative; 62 @Mock WifiNative mWifiNative; 91 WifiNative.PnoEventHandler pnoEventHandler = mock(WifiNative.PnoEventHandler.class); in startHwDisconnectedPnoScan() 92 WifiNative.PnoSettings pnoSettings = createDummyPnoSettings(false); in startHwDisconnectedPnoScan() 110 WifiNative.PnoEventHandler pnoEventHandler = mock(WifiNative.PnoEventHandler.class); in pauseResumeHwDisconnectedPnoScanForSingleScan() 111 WifiNative.PnoSettings pnoSettings = createDummyPnoSettings(false); in pauseResumeHwDisconnectedPnoScanForSingleScan() 112 WifiNative.ScanEventHandler eventHandler = mock(WifiNative.ScanEventHandler.class); in pauseResumeHwDisconnectedPnoScanForSingleScan() 113 WifiNative.ScanSettings settings = createDummyScanSettings(); in pauseResumeHwDisconnectedPnoScanForSingleScan() 180 WifiNative.PnoEventHandler pnoEventHandler = mock(WifiNative.PnoEventHandler.class); in delayedHwDisconnectedPnoScanFailure() 181 WifiNative.PnoSettings pnoSettings = createDummyPnoSettings(false); in delayedHwDisconnectedPnoScanFailure() [all …]
|
D | BaseWifiScannerImplTest.java | 41 import com.android.server.wifi.WifiNative; 65 @Mock WifiNative mWifiNative; 109 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccess() 123 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithChannels() 136 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithFullResults() 157 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithHiddenNetworkIds() 180 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithTruncatedHiddenNetworkIds() 198 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in overlappingSingleScanFails() 204 WifiNative.ScanEventHandler eventHandler = mock(WifiNative.ScanEventHandler.class); in overlappingSingleScanFails() 206 WifiNative.ScanSettings settings2 = new NativeScanSettingsBuilder() in overlappingSingleScanFails() [all …]
|
D | WifiScanningServiceTest.java | 53 import com.android.server.wifi.WifiNative; 239 private WifiNative.ScanEventHandler verifyStartSingleScan(InOrder order, in verifyStartSingleScan() 240 WifiNative.ScanSettings expected) { in verifyStartSingleScan() 241 ArgumentCaptor<WifiNative.ScanSettings> scanSettingsCaptor = in verifyStartSingleScan() 242 ArgumentCaptor.forClass(WifiNative.ScanSettings.class); in verifyStartSingleScan() 243 ArgumentCaptor<WifiNative.ScanEventHandler> scanEventHandlerCaptor = in verifyStartSingleScan() 244 ArgumentCaptor.forClass(WifiNative.ScanEventHandler.class); in verifyStartSingleScan() 251 private WifiNative.ScanEventHandler verifyStartBackgroundScan(InOrder order, in verifyStartBackgroundScan() 252 WifiNative.ScanSettings expected) { in verifyStartBackgroundScan() 253 ArgumentCaptor<WifiNative.ScanSettings> scanSettingsCaptor = in verifyStartBackgroundScan() [all …]
|
D | NoBandChannelHelperTest.java | 33 import com.android.server.wifi.WifiNative; 219 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in empty() 238 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in clear() 256 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addBand() 274 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_single() 294 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_multiple() 314 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_and_addBand_sameBand() 333 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_and_addBand_withDifferentBandChannel() 352 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_and_addBand_all() 373 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_exceedMaxChannels() [all …]
|
D | KnownBandsChannelHelperTest.java | 33 import com.android.server.wifi.WifiNative; 283 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in empty() 303 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in clear() 322 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addBand() 341 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_single() 361 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_multiple() 381 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_and_addBand_sameBand() 401 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_and_addBand_withDifferentBandChannel() 421 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_and_addBand_all() 442 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in addChannel_exceedMaxChannels() [all …]
|
D | SupplicantWifiScannerTest.java | 34 import com.android.server.wifi.WifiNative; 58 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanSuccessSingleBucket() 79 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanMaxApExceeded() 107 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanSuccessWithFullScanResults() 130 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanSuccessWithMixedFullResultsAndNot() 159 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanNoBatch() 184 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanBatch() 236 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanSuccessWithMultipleBuckets() 276 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanSuccessWithMultipleBucketsWhereAPeriodDoesNotRequireAScan() 311 WifiNative.ScanEventHandler eventHandler = mock(WifiNative.ScanEventHandler.class); in backgroundScanStartFailed() [all …]
|
D | BackgroundScanSchedulerTest.java | 34 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 …]
|
D | ChannelHelperTest.java | 32 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/service/java/com/android/server/wifi/scanner/ |
D | WifiScannerImpl.java | 25 import com.android.server.wifi.WifiNative; 47 WifiNative wifiNative = WifiNative.getWlanNativeInterface(); 48 if (wifiNative.getScanCapabilities(new WifiNative.ScanCapabilities())) { 78 public abstract boolean getScanCapabilities(WifiNative.ScanCapabilities capabilities); in getScanCapabilities() 92 public abstract boolean startSingleScan(WifiNative.ScanSettings settings, in startSingleScan() 93 WifiNative.ScanEventHandler eventHandler); in startSingleScan() 107 public abstract boolean startBatchedScan(WifiNative.ScanSettings settings, in startBatchedScan() 108 WifiNative.ScanEventHandler eventHandler); in startBatchedScan() 136 public abstract boolean setHwPnoList(WifiNative.PnoSettings settings, in setHwPnoList() 137 WifiNative.PnoEventHandler eventHandler); in setHwPnoList() [all …]
|
D | HalWifiScannerImpl.java | 27 import com.android.server.wifi.WifiNative; 38 private final WifiNative mWifiNative; 43 public HalWifiScannerImpl(Context context, WifiNative wifiNative, Looper looper, Clock clock) { in HalWifiScannerImpl() 65 public boolean getScanCapabilities(WifiNative.ScanCapabilities capabilities) { in getScanCapabilities() 74 public boolean startSingleScan(WifiNative.ScanSettings settings, in startSingleScan() 75 WifiNative.ScanEventHandler eventHandler) { in startSingleScan() 85 public boolean startBatchedScan(WifiNative.ScanSettings settings, in startBatchedScan() 86 WifiNative.ScanEventHandler eventHandler) { in startBatchedScan() 116 public boolean setHwPnoList(WifiNative.PnoSettings settings, in setHwPnoList() 117 WifiNative.PnoEventHandler eventHandler) { in setHwPnoList() [all …]
|
D | SupplicantWifiScannerImpl.java | 33 import com.android.server.wifi.WifiNative; 65 private final WifiNative mWifiNative; 74 private WifiNative.ScanSettings mPendingBackgroundScanSettings = null; 75 private WifiNative.ScanEventHandler mPendingBackgroundScanEventHandler = null; 76 private WifiNative.ScanSettings mPendingSingleScanSettings = null; 77 private WifiNative.ScanEventHandler mPendingSingleScanEventHandler = null; 80 private WifiNative.ScanSettings mBackgroundScanSettings = null; 81 private WifiNative.ScanEventHandler mBackgroundScanEventHandler = null; 95 private WifiNative.HotlistEventHandler mHotlistHandler = null; 99 private WifiNative.PnoSettings mPnoSettings = null; [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 | NoBandChannelHelper.java | 22 import com.android.server.wifi.WifiNative; 146 public void fillBucketSettings(WifiNative.BucketSettings bucketSettings, int maxChannels) { in fillBucketSettings() 154 bucketSettings.channels = new WifiNative.ChannelSettings[mChannels.size()]; in fillBucketSettings() 156 WifiNative.ChannelSettings channelSettings = new WifiNative.ChannelSettings(); in fillBucketSettings()
|
D | HalChannelHelper.java | 22 import com.android.server.wifi.WifiNative; 31 private final WifiNative mWifiNative; 33 public HalChannelHelper(WifiNative wifiNative) { in HalChannelHelper()
|
D | ChannelHelper.java | 22 import com.android.server.wifi.WifiNative; 136 public void addChannels(WifiNative.BucketSettings bucketSettings) { in addChannels() 218 public abstract void fillBucketSettings(WifiNative.BucketSettings bucket, int maxChannels); in fillBucketSettings() 250 public static String toString(WifiNative.BucketSettings bucketSettings) { in toString() 275 private static String toString(WifiNative.ChannelSettings[] channels, int numChannels) { in toString()
|
D | BackgroundScanScheduler.java | 30 import com.android.server.wifi.WifiNative; 157 private WifiNative.ChannelSettings createChannelSettings(int frequency) { in createChannelSettings() 158 WifiNative.ChannelSettings channelSettings = new WifiNative.ChannelSettings(); in createChannelSettings() 197 public WifiNative.BucketSettings createBucketSettings(int bucketId, int maxChannels) { in createBucketSettings() 235 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in createBucketSettings() 365 private WifiNative.ScanSettings mSchedule; 397 public @NonNull WifiNative.ScanSettings getSchedule() { in getSchedule() 438 WifiNative.ScanSettings schedule = new WifiNative.ScanSettings(); in createSchedule() 440 schedule.buckets = new WifiNative.BucketSettings[bucketList.size()]; in createSchedule()
|
D | KnownBandsChannelHelper.java | 22 import com.android.server.wifi.WifiNative; 241 public void fillBucketSettings(WifiNative.BucketSettings bucketSettings, int maxChannels) { in fillBucketSettings() 250 bucketSettings.channels = new WifiNative.ChannelSettings[mChannels.size()]; in fillBucketSettings() 252 WifiNative.ChannelSettings channelSettings = new WifiNative.ChannelSettings(); in fillBucketSettings()
|
D | WifiScanningServiceImpl.java | 58 import com.android.server.wifi.WifiNative; 248 private WifiNative.ScanSettings mPreviousSchedule; 416 class WifiSingleScanStateMachine extends StateMachine implements WifiNative.ScanEventHandler { 449 case WifiNative.WIFI_SCAN_RESULTS_AVAILABLE: in onScanStatus() 450 case WifiNative.WIFI_SCAN_THRESHOLD_NUM_SCANS: in onScanStatus() 451 case WifiNative.WIFI_SCAN_THRESHOLD_PERCENT: in onScanStatus() 454 case WifiNative.WIFI_SCAN_FAILED: in onScanStatus() 681 WifiNative.ScanSettings settings = new WifiNative.ScanSettings(); in tryToStartNewScan() 683 WifiNative.BucketSettings bucketSettings = new WifiNative.BucketSettings(); in tryToStartNewScan() 712 settings.buckets = new WifiNative.BucketSettings[] {bucketSettings}; in tryToStartNewScan() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiNativeTest.java | 57 private static final WifiNative.TxFateReport TX_FATE_REPORT = new WifiNative.TxFateReport( 63 private static final WifiNative.RxFateReport RX_FATE_REPORT = new WifiNative.RxFateReport( 116 private WifiNative mWifiNative; 120 final Constructor<WifiNative> wifiNativeConstructor = in setUp() 121 WifiNative.class.getDeclaredConstructor(String.class, Boolean.TYPE); in setUp() 155 WifiNative.TxFateReport fateReport = new WifiNative.TxFateReport( in testTxFateReportCtorSetsFields() 172 WifiNative.RxFateReport fateReport = new WifiNative.RxFateReport( in testRxFateReportCtorSetsFields() 209 final String header = WifiNative.FateReport.getTableHeader(); in testFateReportTableHeader() 222 WifiNative.TxFateReport fateReport = TX_FATE_REPORT; in testTxFateReportToTableRowString() 236 fateReport = new WifiNative.TxFateReport( in testTxFateReportToTableRowString() [all …]
|
D | ScanTestUtil.java | 41 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() 125 WifiNative.BucketSettings bucket = new WifiNative.BucketSettings(); in addBucketWithBand() 144 WifiNative.BucketSettings bucket = new WifiNative.BucketSettings(); in addBucketWithChannels() 154 public NativeScanSettingsBuilder addBucket(WifiNative.BucketSettings bucket) { in addBucket() 161 public WifiNative.ScanSettings build() { in build() 170 public static WifiNative.ScanSettings computeSingleScanNativeSettings( in computeSingleScanNativeSettings() 190 public static WifiNative.ScanSettings createSingleScanNativeSettingsForChannels( in createSingleScanNativeSettingsForChannels() 303 public static void assertNativeScanSettingsEquals(WifiNative.ScanSettings expected, in assertNativeScanSettingsEquals() [all …]
|
D | WifiLoggerTest.java | 53 @Mock WifiNative mWifiNative; 58 private WifiNative.RingBufferStatus mFakeRbs; 75 mFakeRbs = new WifiNative.RingBufferStatus(); in setUp() 78 WifiNative.RingBufferStatus[] ringBufferStatuses = new WifiNative.RingBufferStatus[] { in setUp() 357 public boolean answer(WifiNative.TxFateReport[] fates) { in getDumpString() 358 fates[0] = new WifiNative.TxFateReport( in getDumpString() 362 fates[1] = new WifiNative.TxFateReport( in getDumpString() 370 public boolean answer(WifiNative.RxFateReport[] fates) { in getDumpString() 371 fates[0] = new WifiNative.RxFateReport( in getDumpString() 375 fates[1] = new WifiNative.RxFateReport( in getDumpString() [all …]
|
D | HalMockUtils.java | 22 import com.android.server.wifi.WifiNative; 53 Field field = WifiNative.class.getDeclaredField("sWifiHalHandle"); in initHalMockLibrary() 60 field = WifiNative.class.getDeclaredField("sWifiIfaceHandles"); in initHalMockLibrary()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/nan/ |
D | WifiNanNative.java | 27 import com.android.server.wifi.WifiNative; 55 WifiNative dummy = WifiNative.getWlanNativeInterface(); in getInstance() 106 synchronized (WifiNative.sLock) { in isNanInit() 107 boolean halStarted = WifiNative.getWlanNativeInterface().isHalStarted(); in isNanInit() 109 halStarted = WifiNative.getWlanNativeInterface().startHal(); in isNanInit() 112 int ret = initNanHandlersNative(WifiNative.class, WifiNative.sWlan0Index); in isNanInit() 119 WifiNative.class, in isNanInit() 120 WifiNative.sWlan0Index); in isNanInit() 145 synchronized (WifiNative.sLock) { in enableAndConfigure() 146 ret = enableAndConfigureNative(transactionId, WifiNative.class, in enableAndConfigure() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiLogger.java | 101 private WifiNative.RingBufferStatus[] mRingBuffers; 102 private WifiNative.RingBufferStatus mPerPacketRingBuffer; 104 private final WifiNative mWifiNative; 109 WifiStateMachine wifiStateMachine, WifiNative wifiNative, in WifiLogger() 357 private final WifiNative.WifiLoggerEventHandler mHandler = 358 new WifiNative.WifiLoggerEventHandler() { 360 public void onRingBufferData(WifiNative.RingBufferStatus status, byte[] buffer) { 370 synchronized void onRingBufferData(WifiNative.RingBufferStatus status, byte[] buffer) { in onRingBufferData() 405 for (WifiNative.RingBufferStatus buffer : mRingBuffers) { in fetchRingBuffers() 435 for (WifiNative.RingBufferStatus buffer : mRingBuffers){ in startLoggingAllExceptPerPacketBuffers() [all …]
|
D | BaseWifiLogger.java | 19 WifiNative wifiNative = WifiNative.getWlanNativeInterface(); in startLogging()
|