Home
last modified time | relevance | path

Searched refs:freqs (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelUidCpuFreqTimeReaderTest.java67 final long[] freqs = {1, 12, 123, 1234, 12345, 123456}; in testReadDelta() local
69 final long[][] times = new long[uids.length][freqs.length]; in testReadDelta()
71 for (int j = 0; j < freqs.length; ++j) { in testReadDelta()
72 times[i][j] = uids[i] * freqs[j] * 10; in testReadDelta()
76 .thenReturn(getFreqsLine(freqs), getUidTimesLines(uids, times)); in testReadDelta()
78 verify(mCallback).onCpuFreqs(freqs); in testReadDelta()
86 final long[][] newTimes1 = new long[uids.length][freqs.length]; in testReadDelta()
88 for (int j = 0; j < freqs.length; ++j) { in testReadDelta()
89 newTimes1[i][j] = (times[i][j] + uids[i] + freqs[j]) * 10; in testReadDelta()
93 .thenReturn(getFreqsLine(freqs), getUidTimesLines(uids, newTimes1)); in testReadDelta()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiNetworkSelectorTest.java203 int[] freqs = new int[0]; in emptyScanResults() local
210 freqs, caps, levels, securities, mWifiConfigManager, mClock); in emptyScanResults()
233 int[] freqs = {2437, 5180}; in verifyMinimumRssiThreshold() local
240 freqs, caps, levels, securities, mWifiConfigManager, mClock); in verifyMinimumRssiThreshold()
263 int[] freqs = {2437, 5180}; in verifyMinimumTimeGapWhenConnected() local
271 freqs, caps, levels, securities, mWifiConfigManager, mClock); in verifyMinimumTimeGapWhenConnected()
302 int[] freqs = {2437, 5180}; in verifyNoMinimumTimeGapWhenDisconnected() local
310 freqs, caps, levels, securities, mWifiConfigManager, mClock); in verifyNoMinimumTimeGapWhenDisconnected()
345 int[] freqs = {5180}; in openNetworkIsNotSufficient() local
352 freqs, caps, levels, securities, mWifiConfigManager, mClock); in openNetworkIsNotSufficient()
[all …]
DScanResults.java100 private static ScanDetail[] generateNativeResults(boolean needIE, int seed, int... freqs) { in generateNativeResults() argument
101 ScanDetail[] results = new ScanDetail[freqs.length]; in generateNativeResults()
105 for (int i = 0; i < freqs.length; ++i) { in generateNativeResults()
106 int freq = freqs[i]; in generateNativeResults()
132 public static ScanDetail[] generateNativeResults(int seed, int... freqs) { in generateNativeResults() argument
133 return generateNativeResults(true, seed, freqs); in generateNativeResults()
140 public static ScanResults create(int id, int... freqs) { in create() argument
141 return create(id, generateNativeResults(id, freqs)); in create()
143 public static ScanResults create(int id, boolean allChannelsScanned, int... freqs) { in create() argument
144 return create(id, allChannelsScanned, generateNativeResults(id, freqs)); in create()
[all …]
DScoredNetworkEvaluatorTest.java108 int[] freqs = {2470}; in testUpdate_recommendationsDisabled() local
115 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_recommendationsDisabled()
132 int[] freqs = {2470}; in testUpdate_emptyScanList() local
139 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_emptyScanList()
150 int[] freqs = {2470, 2437}; in testUpdate_allNetworksUnscored() local
157 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_allNetworksUnscored()
175 int[] freqs = {2470, 2437}; in testUpdate_oneScored_oneUnscored() local
182 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_oneScored_oneUnscored()
222 int[] freqs = {2470, 2437}; in testEvaluateNetworks_chooseEphemeralNetworkBecauseOfNoSavedNetwork() local
229 ssids, bssids, freqs, caps, levels, mClock); in testEvaluateNetworks_chooseEphemeralNetworkBecauseOfNoSavedNetwork()
[all …]
DSavedNetworkEvaluatorTest.java154 int[] freqs = {2470, 2437}; in ignoreNetworksIfUseExternalScores() local
161 freqs, caps, levels, securities, mWifiConfigManager, mClock); in ignoreNetworksIfUseExternalScores()
181 int[] freqs = {2470, 2437}; in ignoreEphemeralNetworks() local
188 freqs, caps, levels, securities, mWifiConfigManager, mClock); in ignoreEphemeralNetworks()
209 int[] freqs = {5200, 5220, 5240}; in setCandidateScanResultsForAllSavedNetworks() local
217 freqs, caps, levels, securities, mWifiConfigManager, mClock); in setCandidateScanResultsForAllSavedNetworks()
248 int[] freqs = {2470, 2437}; in chooseStrongerRssi2GNetwork() local
255 freqs, caps, levels, securities, mWifiConfigManager, mClock); in chooseStrongerRssi2GNetwork()
276 int[] freqs = {5200, 5240}; in chooseStrongerRssi5GNetwork() local
283 freqs, caps, levels, securities, mWifiConfigManager, mClock); in chooseStrongerRssi5GNetwork()
[all …]
DScanTestUtil.java219 private static ScanData createScanData(int[] freqs, int bucketsScanned) { in createScanData() argument
220 ScanResult[] results = new ScanResult[freqs.length]; in createScanData()
221 for (int i = 0; i < freqs.length; ++i) { in createScanData()
222 results[i] = createScanResult(freqs[i]); in createScanData()
227 public static ScanData[] createScanDatas(int[][] freqs, int[] bucketsScanned) { in createScanDatas() argument
228 assumeTrue(freqs.length == bucketsScanned.length); in createScanDatas()
229 ScanData[] data = new ScanData[freqs.length]; in createScanDatas()
230 for (int i = 0; i < freqs.length; ++i) { in createScanDatas()
231 data[i] = createScanData(freqs[i], bucketsScanned[i]); in createScanDatas()
236 public static ScanData[] createScanDatas(int[][] freqs) { in createScanDatas() argument
[all …]
DWifiNetworkSelectorTestUtil.java86 String[] bssids, int[] freqs, String[] caps, int[] levels, int[] securities, in setupScanDetailsAndConfigStore() argument
88 List<ScanDetail> scanDetails = buildScanDetails(ssids, bssids, freqs, caps, levels, clock); in setupScanDetailsAndConfigStore()
121 public static List<ScanDetail> buildScanDetails(String[] ssids, String[] bssids, int[] freqs, in buildScanDetails() argument
128 bssids[index], caps[index], levels[index], freqs[index], timeStamp, 0); in buildScanDetails()
DWifiConfigManagerTest.java1820 Set<Integer> freqs = mWifiConfigManager.fetchChannelSetForNetworkForPartialScan( in testFetchChannelSetForNetworkIncludeCurrentNetwork() local
1823 assertEquals(true, freqs.contains(2427)); in testFetchChannelSetForNetworkIncludeCurrentNetwork()
/frameworks/base/core/java/android/hardware/
DConsumerIrManager.java136 int[] freqs = mService.getCarrierFrequencies(); in getCarrierFrequencies() local
137 if (freqs.length % 2 != 0) { in getCarrierFrequencies()
141 CarrierFrequencyRange[] range = new CarrierFrequencyRange[freqs.length / 2]; in getCarrierFrequencies()
143 for (int i = 0; i < freqs.length; i += 2) { in getCarrierFrequencies()
144 range[i / 2] = new CarrierFrequencyRange(freqs[i], freqs[i+1]); in getCarrierFrequencies()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWificondControl.java415 public boolean scan(Set<Integer> freqs, Set<String> hiddenNetworkSSIDs) { in scan() argument
424 if (freqs != null) { in scan()
425 for (Integer freq : freqs) { in scan()
DWifiConnectivityManager.java773 Set<Integer> freqs = in setScanChannels() local
777 if (freqs != null && freqs.size() != 0) { in setScanChannels()
779 settings.channels = new WifiScanner.ChannelSpec[freqs.size()]; in setScanChannels()
780 for (Integer freq : freqs) { in setScanChannels()
DWifiStateMachine.java1528 Set<Integer> freqs = null; in handleScanRequest() local
1530 freqs = new HashSet<>(); in handleScanRequest()
1532 freqs.add(channel.freqMHz); in handleScanRequest()
1541 if (startScanNative(freqs, hiddenNetworks, workSource)) { in handleScanRequest()
1543 if (freqs == null) in handleScanRequest()
1562 if (freqs == null) in handleScanRequest()
1590 private boolean startScanNative(final Set<Integer> freqs, in startScanNative() argument
1594 if (freqs == null) { in startScanNative()
1599 settings.channels = new WifiScanner.ChannelSpec[freqs.size()]; in startScanNative()
1600 for (Integer freq : freqs) { in startScanNative()
[all …]
DWifiNative.java220 public boolean scan(Set<Integer> freqs, Set<String> hiddenNetworkSSIDs) { in scan() argument
221 return mWificondControl.scan(freqs, hiddenNetworkSSIDs); in scan()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DWificondScannerImpl.java427 Set<Integer> freqs; in processPendingScans() local
430 freqs = allFreqs.getScanFreqs(); in processPendingScans()
431 success = mWifiNative.scan(freqs, hiddenNetworkSSIDSet); in processPendingScans()
433 Log.e(TAG, "Failed to start scan, freqs=" + freqs); in processPendingScans()
444 Log.d(TAG, "Starting wifi scan for freqs=" + freqs in processPendingScans()