Home
last modified time | relevance | path

Searched refs:stats (Results 1 – 25 of 79) sorted by relevance

1234

/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DAppStateUsageStatsBridgeTest.java107 UsageStatsState stats = (UsageStatsState) app.extraInfo; in test_appInstalledSameDayNeverUsed_isInvalid() local
110 assertThat(stats.daysSinceFirstInstall).isEqualTo(0); in test_appInstalledSameDayNeverUsed_isInvalid()
111 assertThat(stats.daysSinceLastUse).isEqualTo(AppStateUsageStatsBridge.NEVER_USED); in test_appInstalledSameDayNeverUsed_isInvalid()
121 UsageStatsState stats = (UsageStatsState) app.extraInfo; in test_noThresholdFilter_appInstalledSameDayNeverUsed_isValid() local
124 assertThat(stats.daysSinceFirstInstall).isEqualTo(0); in test_noThresholdFilter_appInstalledSameDayNeverUsed_isValid()
125 assertThat(stats.daysSinceLastUse).isEqualTo(AppStateUsageStatsBridge.NEVER_USED); in test_noThresholdFilter_appInstalledSameDayNeverUsed_isValid()
135 UsageStatsState stats = (UsageStatsState) app.extraInfo; in test_unusedApp_isValid() local
138 assertThat(stats.daysSinceFirstInstall).isEqualTo(90); in test_unusedApp_isValid()
139 assertThat(stats.daysSinceLastUse).isEqualTo(AppStateUsageStatsBridge.NEVER_USED); in test_unusedApp_isValid()
149 UsageStatsState stats = (UsageStatsState) app.extraInfo; in test_noThresholdFilter_unusedApp_isValid() local
[all …]
/packages/experimental/procstatlog/
Dprocstatlog.c105 struct data *stats, int stats_count) { in read_lines() argument
143 struct data *data = &stats[num++]; in read_lines()
160 static int read_proc_yaffs(struct data *stats, int stats_count) { in read_proc_yaffs() argument
193 struct data *data = &stats[num++]; in read_proc_yaffs()
285 struct data *stats = malloc((stats_count + 1) * sizeof(struct data)); in read_stats() local
286 struct data *next = stats; in read_stats()
295 struct data *end = stats + stats_count; in read_stats()
296 next += read_proc_yaffs(next, stats + stats_count - next); in read_stats()
305 assert(next < stats + stats_count); in read_stats()
308 qsort(stats, next - stats, sizeof(struct data), compare_data); in read_stats()
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryInfo.java149 BatteryStats stats = statsHelper.getStats(); in getBatteryInfo() local
151 getBatteryInfo(context, callback, stats, shortString); in getBatteryInfo()
155 BatteryStats stats, boolean shortString) { in getBatteryInfo() argument
175 return BatteryInfo.getBatteryInfo(context, batteryBroadcast, stats, in getBatteryInfo()
180 ? stats.computeBatteryTimeRemaining(elapsedRealtimeUs) : 0; in getBatteryInfo()
182 return BatteryInfo.getBatteryInfo(context, batteryBroadcast, stats, in getBatteryInfo()
198 BatteryStats stats, long elapsedRealtimeUs, boolean shortString) { in getBatteryInfoOld() argument
199 return getBatteryInfo(context, batteryBroadcast, stats, elapsedRealtimeUs, shortString, in getBatteryInfoOld()
200 stats.computeBatteryTimeRemaining(elapsedRealtimeUs), false); in getBatteryInfoOld()
205 BatteryStats stats, long elapsedRealtimeUs, boolean shortString, long drainTimeUs, in getBatteryInfo() argument
[all …]
DPowerUsageSummary.java547 final BatteryStats stats = mStatsHelper.getStats(); in refreshAppListGroup() local
557 : stats != null ? stats.getDischargeAmount(mStatsType) : 0; in refreshAppListGroup()
781 ArrayList<BatterySipper> stats = new ArrayList<>(); in getFakeStats() local
787 stats.add(new BatterySipper(type, null, use)); in getFakeStats()
791 stats.add(new BatterySipper(DrainType.APP, in getFakeStats()
794 stats.add(new BatterySipper(DrainType.APP, in getFakeStats()
801 stats.add(sipper); in getFakeStats()
806 stats.add(sipper); in getFakeStats()
810 stats.add(sipper); in getFakeStats()
812 return stats; in getFakeStats()
DBatteryInfoLoader.java72 BatteryStats stats = mStatsHelper.getStats(); in loadInBackground() local
76 batteryInfo = BatteryInfo.getBatteryInfo(context, batteryBroadcast, stats, in loadInBackground()
80 batteryInfo = BatteryInfo.getBatteryInfo(context, batteryBroadcast, stats, in loadInBackground()
82 discharging ? stats.computeBatteryTimeRemaining(elapsedRealtimeUs) : 0, in loadInBackground()
DDebugEstimatesLoader.java52 BatteryStats stats = mStatsHelper.getStats(); in loadInBackground() local
55 stats, elapsedRealtimeUs, false); in loadInBackground()
59 BatteryInfo newinfo = BatteryInfo.getBatteryInfo(getContext(), batteryBroadcast, stats, in loadInBackground()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DRecentAppsPreferenceControllerTest.java157 final List<UsageStats> stats = new ArrayList<>(); in display_showRecents() local
163 stats.add(stat1); in display_showRecents()
167 stats.add(stat2); in display_showRecents()
171 stats.add(stat3); in display_showRecents()
183 .thenReturn(stats); in display_showRecents()
205 final List<UsageStats> stats = new ArrayList<>(); in display_hasRecentButNoneDisplayable_showAppInfo() local
210 stats.add(stat1); in display_hasRecentButNoneDisplayable_showAppInfo()
214 stats.add(stat2); in display_hasRecentButNoneDisplayable_showAppInfo()
224 .thenReturn(stats); in display_hasRecentButNoneDisplayable_showAppInfo()
239 final List<UsageStats> stats = new ArrayList<>(); in display_showRecents_formatSummary() local
[all …]
DFetchPackageStorageAsyncLoaderTest.java63 AppStorageStats stats = mock(AppStorageStats.class); in worksForValidPackageNameAndUid() local
64 when(stats.getCodeBytes()).thenReturn(1L); in worksForValidPackageNameAndUid()
65 when(stats.getDataBytes()).thenReturn(2L); in worksForValidPackageNameAndUid()
66 when(stats.getCacheBytes()).thenReturn(3L); in worksForValidPackageNameAndUid()
69 .thenReturn(stats); in worksForValidPackageNameAndUid()
75 assertThat(task.loadInBackground()).isEqualTo(stats); in worksForValidPackageNameAndUid()
DInstalledAppDetailsTest.java192 AppStorageStats stats = mock(AppStorageStats.class); in getStorageSummary_shouldWorkForExternal() local
193 when(stats.getTotalBytes()).thenReturn(1L); in getStorageSummary_shouldWorkForExternal()
195 assertThat(InstalledAppDetails.getStorageSummary(context, stats, true)) in getStorageSummary_shouldWorkForExternal()
202 AppStorageStats stats = mock(AppStorageStats.class); in getStorageSummary_shouldWorkForInternal() local
203 when(stats.getTotalBytes()).thenReturn(1L); in getStorageSummary_shouldWorkForInternal()
205 assertThat(InstalledAppDetails.getStorageSummary(context, stats, false)) in getStorageSummary_shouldWorkForInternal()
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DVolumeSizesLoader.java38 StorageStatsManager stats, in VolumeSizesLoader() argument
42 mStats = stats; in VolumeSizesLoader()
62 StorageVolumeProvider storageVolumeProvider, StorageStatsManager stats, VolumeInfo info) in getVolumeSize() argument
64 long privateTotalBytes = storageVolumeProvider.getTotalBytes(stats, info); in getVolumeSize()
65 long privateFreeBytes = storageVolumeProvider.getFreeBytes(stats, info); in getVolumeSize()
DStorageAsyncLoader.java100 StorageStatsSource.AppStorageStats stats; in getStorageResultForUser() local
102 stats = mStatsManager.getStatsForPackage(mUuid, app.packageName, myUser); in getStorageResultForUser()
109 final long dataSize = stats.getDataBytes(); in getStorageResultForUser()
111 final long cacheBytes = stats.getCacheBytes(); in getStorageResultForUser()
124 blamedSize += stats.getCodeBytes(); in getStorageResultForUser()
DUserProfileController.java97 public void handleResult(SparseArray<StorageAsyncLoader.AppsStorageResult> stats) { in handleResult() argument
98 Preconditions.checkNotNull(stats); in handleResult()
101 StorageAsyncLoader.AppsStorageResult result = stats.get(userId); in handleResult()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DAppsAsyncLoader.java112 List<PackageInfo> stats = new ArrayList<>(); in loadApps() local
150 stats.add(extraInfo); in loadApps()
153 stats.sort(PACKAGE_INFO_COMPARATOR); in loadApps()
154 return stats; in loadApps()
379 private long getDaysSinceLastUse(UsageStats stats) { in getDaysSinceLastUse() argument
380 if (stats == null) { in getDaysSinceLastUse()
383 long lastUsed = stats.getLastTimeUsed(); in getDaysSinceLastUse()
DAppStateUsageStatsBridge.java91 private long getDaysSinceLastUse(UsageStats stats) { in getDaysSinceLastUse() argument
92 if (stats == null) { in getDaysSinceLastUse()
95 long lastUsed = stats.getLastTimeUsed(); in getDaysSinceLastUse()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageDashboardFragment.java202 SparseArray<StorageAsyncLoader.AppsStorageResult> stats) { in updateSecondaryUserControllers() argument
208 userController.handleResult(stats); in updateSecondaryUserControllers()
328 final StorageStatsManager stats = getActivity().getSystemService(StorageStatsManager.class); in isQuotaSupported() local
329 return stats.isQuotaSupported(mVolume.fsUuid); in isQuotaSupported()
368 final StorageStatsManager stats = context.getSystemService(StorageStatsManager.class); in onCreateLoader() local
369 return new VolumeSizesLoader(context, smvp, stats, mVolume); in onCreateLoader()
/packages/apps/Settings/src/com/android/settings/widget/
DChartDataUsageView.java147 public void bindNetworkStats(NetworkStatsHistory stats) { in bindNetworkStats() argument
148 mSeries.bindNetworkStats(stats); in bindNetworkStats()
149 mHistory = stats; in bindNetworkStats()
156 public void bindDetailNetworkStats(NetworkStatsHistory stats) { in bindDetailNetworkStats() argument
157 mDetailSeries.bindNetworkStats(stats); in bindDetailNetworkStats()
158 mDetailSeries.setVisibility(stats != null ? View.VISIBLE : View.GONE); in bindDetailNetworkStats()
/packages/services/Car/tools/bootio/
Dbootio_collector.cpp274 Stats& stats = statsMap[newerSample->timestamp()]; in PrintPids() local
275 stats.uptime = newerSample->uptime(); in PrintPids()
276 stats.cpu += cpuLoad; in PrintPids()
277 stats.rbytes += (newerSample->readbytes() - olderSample->readbytes()); in PrintPids()
278 stats.wbytes += (newerSample->writebytes() - olderSample->writebytes()); in PrintPids()
/packages/apps/Camera2/src/com/android/camera/app/
DCameraApp.java24 import com.android.camera.stats.UsageStatistics;
25 import com.android.camera.stats.profiler.Profile;
26 import com.android.camera.stats.profiler.Profilers;
DFirstRunDetector.java23 import com.android.camera.stats.profiler.Profile;
24 import com.android.camera.stats.profiler.Profiler;
25 import com.android.camera.stats.profiler.Profilers;
/packages/apps/Settings/src/com/android/settings/
DUsageStatsActivity.java113 final List<UsageStats> stats = in UsageStatsAdapter() local
116 if (stats == null) { in UsageStatsAdapter()
121 final int statCount = stats.size(); in UsageStatsAdapter()
123 final android.app.usage.UsageStats pkgStats = stats.get(i); in UsageStatsAdapter()
/packages/apps/Settings/src/com/android/settings/applications/
DPhotosViewHolderController.java59 StorageStatsSource.ExternalStorageStats stats = in queryStats() local
61 mFilesSize = stats.imageBytes + stats.videoBytes; in queryStats()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DPersonalDictionaryLookup.java630 List<DictionaryStats> stats = new ArrayList<>(); in loadPersonalDictionary() local
631 stats.add(new DictionaryStats(ANY_LOCALE, Dictionary.TYPE_USER, dictWords.size())); in loadPersonalDictionary()
636 stats.add(new DictionaryStats(ANY_LOCALE, Dictionary.TYPE_USER_SHORTCUT, numShortcuts)); in loadPersonalDictionary()
637 mDictionaryStats = stats; in loadPersonalDictionary()
DDictionaryStats.java95 public static String toString(final Iterable<DictionaryStats> stats) { in toString() argument
97 for (DictionaryStats stat : stats) { in toString()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DScanManager.java351 if (client.stats != null) { in handleSuspendScans()
352 client.stats.recordScanSuspend(client.scannerId); in handleSuspendScans()
362 if (client.stats != null) { in handleResumeScans()
363 client.stats.recordScanResume(client.scannerId); in handleResumeScans()
745 if (!isExemptFromScanDowngrade(client) && client.stats.isScanningTooLong()) { in regularScanTimeout()
750 client.stats.setScanTimeout(client.scannerId); in regularScanTimeout()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageList.java316 public void bindStats(NetworkStats stats, int[] restrictedUids) { in bindStats() argument
326 final int size = stats != null ? stats.size() : 0; in bindStats()
328 entry = stats.getValues(i, entry); in bindStats()

1234