private void inflateAppUsageStats(List<AppListModel> res) {
        XLog.d("inflateAppUsageStats");
        ContextExtKt.withThanos(getApplication(), thanosManager -> {
            Map<String, UsageStats> statsMap = thanosManager.getUsageStatsManager().queryAndAggregateUsageStats(0, System.currentTimeMillis());
            for (AppListModel app : res) {
                if (statsMap.containsKey(app.appInfo.getPkgName())) {
                    UsageStats stats = statsMap.get(app.appInfo.getPkgName());
                    if (stats != null) {
                        app.lastUsedTimeMills = stats.getLastTimeUsed();
                        app.totalUsedTimeMills = stats.getTotalTimeInForeground();
                    }
                }
            }
            return null;
        });
    }
Null means we load all pkgs
android/app/src/main/java/now/fortuitous/thanos/power/SmartFreezeAppsViewModel.java