/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
H A D | KernelUidCpuFreqTimeReaderTest.java | 67 final long[] freqs = {1, 12, 123, 1234, 12345, 123456}; 69 final long[][] times = new long[uids.length][freqs.length]; 71 for (int j = 0; j < freqs.length; ++j) { 72 times[i][j] = uids[i] * freqs[j] * 10; 76 .thenReturn(getFreqsLine(freqs), getUidTimesLines(uids, times)); 78 verify(mCallback).onCpuFreqs(freqs); 86 final long[][] newTimes1 = new long[uids.length][freqs.length]; 88 for (int j = 0; j < freqs.length; ++j) { 89 newTimes1[i][j] = (times[i][j] + uids[i] + freqs[j]) * 10; 93 .thenReturn(getFreqsLine(freqs), getUidTimesLine 234 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 | 219 private static ScanData createScanData(int[] freqs, int bucketsScanned) { argument 220 ScanResult[] results = new ScanResult[freqs.length]; 221 for (int i = 0; i < freqs.length; ++i) { 222 results[i] = createScanResult(freqs[i]); 227 public static ScanData[] createScanDatas(int[][] freqs, int[] bucketsScanned) { argument 228 assumeTrue(freqs.length == bucketsScanned.length); 229 ScanData[] data = new ScanData[freqs.length]; 230 for (int i = 0; i < freqs.length; ++i) { 231 data[i] = createScanData(freqs[i], bucketsScanned[i]); 236 public static ScanData[] createScanDatas(int[][] freqs) { argument [all...] |
H A D | WifiNetworkSelectorTest.java | 203 int[] freqs = new int[0]; 210 freqs, caps, levels, securities, mWifiConfigManager, mClock); 233 int[] freqs = {2437, 5180}; 240 freqs, caps, levels, securities, mWifiConfigManager, mClock); 263 int[] freqs = {2437, 5180}; 271 freqs, caps, levels, securities, mWifiConfigManager, mClock); 302 int[] freqs = {2437, 5180}; 310 freqs, caps, levels, securities, mWifiConfigManager, mClock); 345 int[] freqs = {5180}; 352 freqs, cap 894 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 | 411 * @param freqs list of frequencies to scan for, if null scan all supported channels. 415 public boolean scan(Set<Integer> freqs, Set<String> hiddenNetworkSSIDs) { argument 424 if (freqs != null) { 425 for (Integer freq : freqs) {
|
H A D | WifiNative.java | 216 * @param freqs list of frequencies to scan for, if null scan all supported channels. 220 public boolean scan(Set<Integer> freqs, Set<String> hiddenNetworkSSIDs) { argument 221 return mWificondControl.scan(freqs, hiddenNetworkSSIDs);
|
H A D | WifiStateMachine.java | 1528 Set<Integer> freqs = null; 1530 freqs = new HashSet<>(); 1532 freqs.add(channel.freqMHz); 1541 if (startScanNative(freqs, hiddenNetworks, workSource)) { 1543 if (freqs == null) 1562 if (freqs == null) 1590 private boolean startScanNative(final Set<Integer> freqs, argument 1594 if (freqs == null) { 1599 settings.channels = new WifiScanner.ChannelSpec[freqs.size()]; 1600 for (Integer freq : freqs) { [all...] |