/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
H A D | KernelUidCpuFreqTimeReaderTest.java | 85 final long[][] freqs = { 93 for (int i = 0; i < freqs.length; ++i) { 95 when(mBufferedReader.readLine()).thenReturn(getFreqsLine(freqs[i])); 98 assertArrayEquals(freqs[i], actualFreqs); 101 Arrays.toString(freqs[i]), numClusters[i], Arrays.toString(numFreqs[i])); 107 assertArrayEquals(freqs[i], actualFreqs); 117 final long[][] freqs = { 124 for (int i = 0; i < freqs.length; ++i) { 126 when(mBufferedReader.readLine()).thenReturn(getFreqsLine(freqs[i])); 129 assertArrayEquals(freqs[ 270 getFreqsLine(long[] freqs) argument [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
H A D | ScanResults.java | 96 * @param freqs list of frequencies for the generated scan results, these will map 1 to 1 to 100 private static ScanDetail[] generateNativeResults(boolean needIE, int seed, int... freqs) { argument 101 ScanDetail[] results = new ScanDetail[freqs.length]; 105 for (int i = 0; i < freqs.length; ++i) { 106 int freq = freqs[i]; 132 public static ScanDetail[] generateNativeResults(int seed, int... freqs) { argument 133 return generateNativeResults(true, seed, freqs); 140 public static ScanResults create(int id, int... freqs) { argument 141 return create(id, generateNativeResults(id, freqs)); 143 public static ScanResults create(int id, boolean allChannelsScanned, int... freqs) { argument 150 createWithNoIE(int id, int... freqs) argument [all...] |
H A D | WifiNetworkSelectorTestUtil.java | 78 * @param freqs an array of the network's frequency 86 String[] bssids, int[] freqs, String[] caps, int[] levels, int[] securities, 88 List<ScanDetail> scanDetails = buildScanDetails(ssids, bssids, freqs, caps, levels, clock); 116 * @param freqs an array of the network's frequency 121 public static List<ScanDetail> buildScanDetails(String[] ssids, String[] bssids, int[] freqs, argument 128 bssids[index], caps[index], levels[index], freqs[index], timeStamp, 0); 85 setupScanDetailsAndConfigStore(String[] ssids, String[] bssids, int[] freqs, String[] caps, int[] levels, int[] securities, WifiConfigManager wifiConfigManager, Clock clock) argument
|
H A D | ScanTestUtil.java | 258 private static ScanData createScanData(int[] freqs, int bucketsScanned) { argument 259 ScanResult[] results = new ScanResult[freqs.length]; 260 for (int i = 0; i < freqs.length; ++i) { 261 results[i] = createScanResult(freqs[i]); 266 public static ScanData[] createScanDatas(int[][] freqs, int[] bucketsScanned) { argument 267 assumeTrue(freqs.length == bucketsScanned.length); 268 ScanData[] data = new ScanData[freqs.length]; 269 for (int i = 0; i < freqs.length; ++i) { 270 data[i] = createScanData(freqs[i], bucketsScanned[i]); 275 public static ScanData[] createScanDatas(int[][] freqs) { argument [all...] |
H A D | WifiNetworkSelectorTest.java | 207 int[] freqs = new int[0]; 214 freqs, caps, levels, securities, mWifiConfigManager, mClock); 237 int[] freqs = {2437, 5180}; 244 freqs, caps, levels, securities, mWifiConfigManager, mClock); 267 int[] freqs = {2437, 5180}; 275 freqs, caps, levels, securities, mWifiConfigManager, mClock); 306 int[] freqs = {2437, 5180}; 314 freqs, caps, levels, securities, mWifiConfigManager, mClock); 349 int[] freqs = {5180}; 356 freqs, cap 947 testStayOrTryToSwitchImpl(String[] ssids, String[] bssids, int[] freqs, String[] caps, int[] levels, int[] securities, boolean shouldSelect) argument [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | WificondControl.java | 607 * @param freqs list of frequencies to scan for, if null scan all supported channels. 613 Set<Integer> freqs, 630 if (freqs != null) { 631 for (Integer freq : freqs) { 611 scan(@onNull String ifaceName, int scanType, Set<Integer> freqs, Set<String> hiddenNetworkSSIDs) argument
|
H A D | WifiNative.java | 1148 * @param freqs list of frequencies to scan for, if null scan all supported channels. 1153 @NonNull String ifaceName, int scanType, Set<Integer> freqs, 1155 return mWificondControl.scan(ifaceName, scanType, freqs, hiddenNetworkSSIDs); 1152 scan( @onNull String ifaceName, int scanType, Set<Integer> freqs, Set<String> hiddenNetworkSSIDs) argument
|