/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | KernelUidCpuFreqTimeReaderTest.java | 85 final long[][] freqs = { in testReadFreqs_perClusterTimesNotAvailable() local 93 for (int i = 0; i < freqs.length; ++i) { in testReadFreqs_perClusterTimesNotAvailable() 95 when(mBufferedReader.readLine()).thenReturn(getFreqsLine(freqs[i])); in testReadFreqs_perClusterTimesNotAvailable() 98 assertArrayEquals(freqs[i], actualFreqs); in testReadFreqs_perClusterTimesNotAvailable() 101 Arrays.toString(freqs[i]), numClusters[i], Arrays.toString(numFreqs[i])); in testReadFreqs_perClusterTimesNotAvailable() 107 assertArrayEquals(freqs[i], actualFreqs); in testReadFreqs_perClusterTimesNotAvailable() 117 final long[][] freqs = { in testReadFreqs_perClusterTimesAvailable() local 124 for (int i = 0; i < freqs.length; ++i) { in testReadFreqs_perClusterTimesAvailable() 126 when(mBufferedReader.readLine()).thenReturn(getFreqsLine(freqs[i])); in testReadFreqs_perClusterTimesAvailable() 129 assertArrayEquals(freqs[i], actualFreqs); in testReadFreqs_perClusterTimesAvailable() [all …]
|
D | BatteryStatsCpuTimesTest.java | 113 final long[] freqs = {1, 12, 123, 12, 1234}; in testUpdateCpuTimeLocked() local 114 when(mKernelUidCpuFreqTimeReader.readFreqs(mPowerProfile)).thenReturn(freqs); in testUpdateCpuTimeLocked() 120 assertArrayEquals("Unexpected cpu freqs", freqs, mBatteryStatsImpl.getCpuFreqs()); in testUpdateCpuTimeLocked() 611 final long[] freqs = {1, 12, 123, 12, 1234}; in testReadKernelUidCpuFreqTimesLocked_perClusterTimesAvailable() local 721 final long[] freqs = {1, 12, 123, 12, 1234}; in testReadKernelUidCpuFreqTimesLocked_partialTimers() local
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiNetworkSelectorTest.java | 207 int[] freqs = new int[0]; in emptyScanResults() local 214 freqs, caps, levels, securities, mWifiConfigManager, mClock); in emptyScanResults() 237 int[] freqs = {2437, 5180}; in verifyMinimumRssiThreshold() local 244 freqs, caps, levels, securities, mWifiConfigManager, mClock); in verifyMinimumRssiThreshold() 267 int[] freqs = {2437, 5180}; in verifyMinimumTimeGapWhenConnected() local 275 freqs, caps, levels, securities, mWifiConfigManager, mClock); in verifyMinimumTimeGapWhenConnected() 306 int[] freqs = {2437, 5180}; in verifyNoMinimumTimeGapWhenDisconnected() local 314 freqs, caps, levels, securities, mWifiConfigManager, mClock); in verifyNoMinimumTimeGapWhenDisconnected() 349 int[] freqs = {5180}; in openNetworkIsNotSufficient() local 356 freqs, caps, levels, securities, mWifiConfigManager, mClock); in openNetworkIsNotSufficient() [all …]
|
D | ScoredNetworkEvaluatorTest.java | 119 int[] freqs = {2470}; in testUpdate_recommendationsDisabled() local 126 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_recommendationsDisabled() 143 int[] freqs = {2470}; in testUpdate_emptyScanList() local 150 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_emptyScanList() 161 int[] freqs = {2470, 2437}; in testUpdate_allNetworksUnscored() local 168 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_allNetworksUnscored() 186 int[] freqs = {2470, 2437}; in testUpdate_oneScored_oneUnscored() local 193 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_oneScored_oneUnscored() 229 int[] freqs = {2470, 2437}; in testUpdate_externalScorerNotPermittedToSeeScanResults() local 239 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_externalScorerNotPermittedToSeeScanResults() [all …]
|
D | ScanResults.java | 100 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 …]
|
D | SavedNetworkEvaluatorTest.java | 155 int[] freqs = {2470, 2437}; in ignoreNetworksIfUseExternalScores() local 162 freqs, caps, levels, securities, mWifiConfigManager, mClock); in ignoreNetworksIfUseExternalScores() 182 int[] freqs = {2470, 2437}; in ignoreEphemeralNetworks() local 189 freqs, caps, levels, securities, mWifiConfigManager, mClock); in ignoreEphemeralNetworks() 210 int[] freqs = {5200, 5220, 5240}; in setCandidateScanResultsForAllSavedNetworks() local 218 freqs, caps, levels, securities, mWifiConfigManager, mClock); in setCandidateScanResultsForAllSavedNetworks() 249 int[] freqs = {2470, 2437}; in chooseStrongerRssi2GNetwork() local 256 freqs, caps, levels, securities, mWifiConfigManager, mClock); in chooseStrongerRssi2GNetwork() 277 int[] freqs = {5200, 5240}; in chooseStrongerRssi5GNetwork() local 284 freqs, caps, levels, securities, mWifiConfigManager, mClock); in chooseStrongerRssi5GNetwork() [all …]
|
D | ScanTestUtil.java | 258 private static ScanData createScanData(int[] freqs, int bucketsScanned) { 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 public static ScanData[] createScanDatas(int[][] freqs, int[] bucketsScanned) { in createScanDatas() argument 267 assumeTrue(freqs.length == bucketsScanned.length); in createScanDatas() 268 ScanData[] data = new ScanData[freqs.length]; in createScanDatas() 269 for (int i = 0; i < freqs.length; ++i) { in createScanDatas() 270 data[i] = createScanData(freqs[i], bucketsScanned[i]); in createScanDatas() 275 public static ScanData[] createScanDatas(int[][] freqs) { in createScanDatas() argument [all …]
|
D | WifiNetworkSelectorTestUtil.java | 86 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()
|
D | WifiConfigManagerTest.java | 1925 Set<Integer> freqs = mWifiConfigManager.fetchChannelSetForNetworkForPartialScan( in testFetchChannelSetForNetworkIncludeCurrentNetwork() local 1928 assertEquals(true, freqs.contains(2427)); in testFetchChannelSetForNetworkIncludeCurrentNetwork()
|
/frameworks/base/core/java/android/hardware/ |
D | ConsumerIrManager.java | 139 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/base/core/java/com/android/internal/os/ |
D | KernelUidCpuFreqTimeReader.java | 243 final int freqs = buf.get(); in readImpl() local 244 if (freqs != mCpuFreqsCount) { in readImpl() 245 Slog.wtf(TAG, "Cpu freqs expect " + mCpuFreqsCount + " , got " + freqs); in readImpl() 248 if (buf.remaining() % (freqs + 1) != 0) { in readImpl() 249 Slog.wtf(TAG, "Freq time format error: " + buf.remaining() + " / " + (freqs + 1)); in readImpl() 252 int numUids = buf.remaining() / (freqs + 1); in readImpl()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
D | WificondScannerImpl.java | 190 Set<Integer> freqs; in startSingleScan() local 192 freqs = allFreqs.getScanFreqs(); in startSingleScan() 194 mIfaceName, settings.scanType, freqs, hiddenNetworkSSIDSet); in startSingleScan() 196 Log.e(TAG, "Failed to start scan, freqs=" + freqs); in startSingleScan() 205 Log.d(TAG, "Starting wifi scan for freqs=" + freqs); in startSingleScan()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiConnectivityManager.java | 804 Set<Integer> freqs = in setScanChannels() local 808 if (freqs != null && freqs.size() != 0) { in setScanChannels() 810 settings.channels = new WifiScanner.ChannelSpec[freqs.size()]; in setScanChannels() 811 for (Integer freq : freqs) { in setScanChannels()
|
D | WificondControl.java | 613 Set<Integer> freqs, in scan() argument 630 if (freqs != null) { in scan() 631 for (Integer freq : freqs) { in scan()
|
D | WifiNative.java | 1153 @NonNull String ifaceName, int scanType, Set<Integer> freqs, in scan() argument 1155 return mWificondControl.scan(ifaceName, scanType, freqs, hiddenNetworkSSIDs); in scan()
|
/frameworks/base/services/core/java/com/android/server/stats/ |
D | StatsCompanionService.java | 203 long[] freqs = mKernelUidCpuFreqTimeReader.readFreqs(powerProfile); in StatsCompanionService() local
|