Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuUidFreqTimeReaderTest.java90 final long[][] freqs = { in testReadFreqs_perClusterTimesNotAvailable() local
98 for (int i = 0; i < freqs.length; ++i) { in testReadFreqs_perClusterTimesNotAvailable()
102 writeToFile(freqsLine(freqs[i])); in testReadFreqs_perClusterTimesNotAvailable()
104 assertArrayEquals(freqs[i], actualFreqs); in testReadFreqs_perClusterTimesNotAvailable()
106 Arrays.toString(freqs[i]), numClusters[i], Arrays.toString(numFreqs[i])); in testReadFreqs_perClusterTimesNotAvailable()
112 assertArrayEquals(freqs[i], actualFreqs); in testReadFreqs_perClusterTimesNotAvailable()
119 final long[][] freqs = { in testReadFreqs_perClusterTimesAvailable() local
126 for (int i = 0; i < freqs.length; ++i) { in testReadFreqs_perClusterTimesAvailable()
130 writeToFile(freqsLine(freqs[i])); in testReadFreqs_perClusterTimesAvailable()
132 assertArrayEquals(freqs[i], actualFreqs); in testReadFreqs_perClusterTimesAvailable()
[all …]
DBatteryStatsCpuTimesTest.java119 final long[] freqs = {1, 12, 123, 12, 1234}; in testUpdateCpuTimeLocked() local
120 when(mCpuUidFreqTimeReader.readFreqs(mPowerProfile)).thenReturn(freqs); in testUpdateCpuTimeLocked()
126 assertArrayEquals("Unexpected cpu freqs", freqs, mBatteryStatsImpl.getCpuFreqs()); in testUpdateCpuTimeLocked()
624 final long[] freqs = {1, 12, 123, 12, 1234}; in testReadKernelUidCpuFreqTimesLocked_perClusterTimesAvailable() local
734 final long[] freqs = {1, 12, 123, 12, 1234}; in testReadKernelUidCpuFreqTimesLocked_partialTimers() local
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiNetworkSelectorTest.java273 int[] freqs = new int[0]; in emptyScanResults() local
280 freqs, caps, levels, securities, mWifiConfigManager, mClock); in emptyScanResults()
303 int[] freqs = {2437, 5180}; in verifyMinimumRssiThreshold() local
310 freqs, caps, levels, securities, mWifiConfigManager, mClock); in verifyMinimumRssiThreshold()
333 int[] freqs = {2437, 5180}; in verifyMinimumTimeGapWhenConnected() local
341 freqs, caps, levels, securities, mWifiConfigManager, mClock); in verifyMinimumTimeGapWhenConnected()
372 int[] freqs = {2437, 5180}; in verifyNoMinimumTimeGapWhenDisconnected() local
380 freqs, caps, levels, securities, mWifiConfigManager, mClock); in verifyNoMinimumTimeGapWhenDisconnected()
415 int[] freqs = {5180}; in openNetworkIsNotSufficient() local
422 freqs, caps, levels, securities, mWifiConfigManager, mClock); in openNetworkIsNotSufficient()
[all …]
DSavedNetworkEvaluatorTest.java162 int[] freqs = {2470, 2437}; in ignoreNetworksIfUseExternalScores() local
169 freqs, caps, levels, securities, mWifiConfigManager, mClock); in ignoreNetworksIfUseExternalScores()
189 int[] freqs = {2470, 2437}; in ignoreEphemeralNetworks() local
196 freqs, caps, levels, securities, mWifiConfigManager, mClock); in ignoreEphemeralNetworks()
217 int[] freqs = {5200, 5220, 5240}; in setCandidateScanResultsForAllSavedNetworks() local
225 freqs, caps, levels, securities, mWifiConfigManager, mClock); in setCandidateScanResultsForAllSavedNetworks()
257 int[] freqs = {2470, 2437}; in chooseStrongerRssi2GNetwork() local
264 freqs, caps, levels, securities, mWifiConfigManager, mClock); in chooseStrongerRssi2GNetwork()
285 int[] freqs = {5200, 5240}; in chooseStrongerRssi5GNetwork() local
292 freqs, caps, levels, securities, mWifiConfigManager, mClock); in chooseStrongerRssi5GNetwork()
[all …]
DScoredNetworkEvaluatorTest.java122 int[] freqs = {2470}; in testUpdate_recommendationsDisabled() local
129 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_recommendationsDisabled()
146 int[] freqs = {2470}; in testUpdate_emptyScanList() local
153 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_emptyScanList()
164 int[] freqs = {2470, 2437}; in testUpdate_allNetworksUnscored() local
171 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_allNetworksUnscored()
189 int[] freqs = {2470, 2437}; in testUpdate_oneScored_oneUnscored() local
196 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_oneScored_oneUnscored()
233 int[] freqs = {2470, 2437}; in testUpdate_externalScorerNotPermittedToSeeScanResults() local
243 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_externalScorerNotPermittedToSeeScanResults()
[all …]
DScanTestUtil.java258 private static ScanData createScanData(int[] freqs, int bucketsScanned, int bandScanned) { in createScanData() argument
259 ScanResult[] results = new ScanResult[freqs.length]; in createScanData()
260 for (int i = 0; i < freqs.length; ++i) { in createScanData()
261 results[i] = createScanResult(freqs[i]); in createScanData()
266 private static ScanData createScanData(int[] freqs, int bucketsScanned) { in createScanData() argument
267 return createScanData(freqs, bucketsScanned, WifiScanner.WIFI_BAND_UNSPECIFIED); in createScanData()
271 int[][] freqs, int[] bucketsScanned, int[] bandsScanned) { in createScanDatas() argument
272 assumeTrue(freqs.length == bucketsScanned.length); in createScanDatas()
273 assumeTrue(freqs.length == bandsScanned.length); in createScanDatas()
274 ScanData[] data = new ScanData[freqs.length]; in createScanDatas()
[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 bandScanned, int... freqs) { in create() argument
141 return create(id, bandScanned, generateNativeResults(id, freqs)); in create()
DNetworkSuggestionEvaluatorTest.java83 int[] freqs = {2470, 2437}; in testSelectNetworkSuggestionForNoMatch() local
95 buildScanDetails(scanSsids, bssids, freqs, caps, levels, mClock); in testSelectNetworkSuggestionForNoMatch()
121 int[] freqs = {2470, 2437}; in testSelectNetworkSuggestionForOneMatch() local
133 buildScanDetails(scanSsids, bssids, freqs, caps, levels, mClock); in testSelectNetworkSuggestionForOneMatch()
166 int[] freqs = {2470, 2437}; in testSelectNetworkSuggestionForMultipleMatch() local
178 buildScanDetails(scanSsids, bssids, freqs, caps, levels, mClock); in testSelectNetworkSuggestionForMultipleMatch()
213 int[] freqs = {2470, 2437}; in testSelectNetworkSuggestionForMultipleMatchHighPriorityWins() local
225 buildScanDetails(scanSsids, bssids, freqs, caps, levels, mClock); in testSelectNetworkSuggestionForMultipleMatchHighPriorityWins()
262 int[] freqs = {2470, 2437}; in testSelectNetworkSuggestionForMultipleMatchWithMultipleSuggestions() local
275 buildScanDetails(scanSsids, bssids, freqs, caps, levels, mClock); in testSelectNetworkSuggestionForMultipleMatchWithMultipleSuggestions()
[all …]
DCarrierNetworkEvaluatorTest.java215 int[] freqs = {2470, 2437, 2470, 2470, 2470}; in testSelectOneFromMultiple() local
221 freqs, caps, levels, mClock); in testSelectOneFromMultiple()
277 int[] freqs = {2470}; in testSelectFromNoneAvailable() local
282 freqs, caps, levels, mClock); in testSelectFromNoneAvailable()
303 int[] freqs = {2470, 2437, 2470, 2470, 2470}; in testNoCarrierCert() local
311 freqs, caps, levels, mClock); in testNoCarrierCert()
335 int[] freqs = {2470}; in testAvailableButPreviouslyUserDeleted() local
344 freqs, caps, levels, mClock); in testAvailableButPreviouslyUserDeleted()
363 int[] freqs = {2470}; in testAvailableButBlacklisted() local
370 freqs, caps, levels, mClock); in testAvailableButBlacklisted()
[all …]
DWifiNetworkSelectorTestUtil.java85 String[] bssids, int[] freqs, String[] caps, int[] levels, int[] securities, in setupScanDetailsAndConfigStore() argument
87 List<ScanDetail> scanDetails = buildScanDetails(ssids, bssids, freqs, caps, levels, clock); in setupScanDetailsAndConfigStore()
134 public static List<ScanDetail> buildScanDetails(String[] ssids, String[] bssids, int[] freqs, in buildScanDetails() argument
142 bssids[index], caps[index], levels[index], freqs[index], timeStamp, 0); in buildScanDetails()
DWifiConfigManagerTest.java2630 Set<Integer> freqs = mWifiConfigManager.fetchChannelSetForNetworkForPartialScan( in testFetchChannelSetForNetworkIncludeCurrentNetwork() local
2633 assertEquals(true, freqs.contains(2427)); in testFetchChannelSetForNetworkIncludeCurrentNetwork()
/frameworks/base/core/java/android/hardware/
DConsumerIrManager.java139 int[] freqs = mService.getCarrierFrequencies(); in getCarrierFrequencies() local
140 if (freqs.length % 2 != 0) { in getCarrierFrequencies()
144 CarrierFrequencyRange[] range = new CarrierFrequencyRange[freqs.length / 2]; in getCarrierFrequencies()
146 for (int i = 0; i < freqs.length; i += 2) { in getCarrierFrequencies()
147 range[i / 2] = new CarrierFrequencyRange(freqs[i], freqs[i+1]); in getCarrierFrequencies()
/frameworks/native/libs/cputimeinstate/
Dcputimeinstate.cpp110 std::vector<uint32_t> freqs; in initGlobals() local
114 if (!readNumbersFromFile(path, &freqs)) return false; in initGlobals()
116 std::sort(freqs.begin(), freqs.end()); in initGlobals()
117 gPolicyFreqs.emplace_back(freqs); in initGlobals()
119 for (auto freq : freqs) gAllFreqs.insert(freq); in initGlobals()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DWificondScannerImpl.java189 Set<Integer> freqs; in startSingleScan() local
191 freqs = allFreqs.getScanFreqs(); in startSingleScan()
193 mIfaceName, settings.scanType, freqs, hiddenNetworkSSIDSet); in startSingleScan()
195 Log.e(TAG, "Failed to start scan, freqs=" + freqs); in startSingleScan()
204 Log.d(TAG, "Starting wifi scan for freqs=" + freqs); in startSingleScan()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConnectivityManager.java805 Set<Integer> freqs = in setScanChannels() local
809 if (freqs != null && freqs.size() != 0) { in setScanChannels()
811 settings.channels = new WifiScanner.ChannelSpec[freqs.size()]; in setScanChannels()
812 for (Integer freq : freqs) { in setScanChannels()
DWificondControl.java672 Set<Integer> freqs, in scan() argument
689 if (freqs != null) { in scan()
690 for (Integer freq : freqs) { in scan()
DWifiNative.java1295 @NonNull String ifaceName, int scanType, Set<Integer> freqs, in scan() argument
1297 return mWificondControl.scan(ifaceName, scanType, freqs, hiddenNetworkSSIDs); in scan()