HomeSort by relevance Sort by last modified time
    Searched full:usagestats (Results 1 - 25 of 51) sorted by null

1 2 3

  /frameworks/base/services/usage/java/com/android/server/usage/
IntervalStats.java 21 import android.app.usage.UsageStats;
30 public final ArrayMap<String, UsageStats> packageStats = new ArrayMap<>();
42 * Gets the UsageStats object for the given package, or creates one and adds it internally.
44 UsageStats getOrCreateUsageStats(String packageName) {
45 UsageStats usageStats = packageStats.get(packageName);
46 if (usageStats == null) {
47 usageStats = new UsageStats();
48 usageStats.mPackageName = getCachedStringRef(packageName)
    [all...]
UsageStatsXmlV1.java 27 import android.app.usage.UsageStats;
34 * UsageStats reader/writer for version 1 of the XML format.
67 final UsageStats stats = statsOut.getOrCreateUsageStats(pkg);
122 final UsageStats usageStats) throws IOException {
127 usageStats.mLastTimeUsed - stats.beginTime);
129 XmlUtils.writeStringAttribute(xml, PACKAGE_ATTR, usageStats.mPackageName);
130 XmlUtils.writeLongAttribute(xml, TOTAL_TIME_ACTIVE_ATTR, usageStats.mTotalTimeInForeground);
131 XmlUtils.writeIntAttribute(xml, LAST_EVENT_ATTR, usageStats.mLastEvent);
179 * <code><usagestats></code> tag
    [all...]
UsageStatsXml.java 37 private static final String USAGESTATS_TAG = "usagestats";
59 Slog.e(TAG, "UsageStats Xml", e);
UserUsageStatsService.java 22 import android.app.usage.UsageStats;
108 UsageStats pkgStats = stat.packageStats.valueAt(i);
166 private static final StatCombiner<UsageStats> sUsageStatsCombiner =
167 new StatCombiner<UsageStats>() {
170 List<UsageStats> accResult) {
178 accResult.add(new UsageStats(stats.packageStats.valueAt(i)));
271 List<UsageStats> queryUsageStats(int bucketType, long beginTime, long endTime) {
346 UsageStats pkgStats = stat.packageStats.valueAt(i);
UsageStatsService.java 24 import android.app.usage.UsageStats;
96 mUsageStatsDir = new File(systemDataDir, "usagestats");
262 List<UsageStats> queryUsageStats(int userId, int bucketType, long beginTime, long endTime) {
364 public ParceledListSlice<UsageStats> queryUsageStats(int bucketType, long beginTime,
373 final List<UsageStats> results = UsageStatsService.this.queryUsageStats(
  /frameworks/base/core/java/android/app/usage/
UsageStats.java 26 public final class UsageStats implements Parcelable {
66 public UsageStats() {
69 public UsageStats(UsageStats stats) {
84 * Get the beginning of the time range this {@link android.app.usage.UsageStats} represents,
94 * Get the end of the time range this {@link android.app.usage.UsageStats} represents,
120 * Add the statistics from the right {@link UsageStats} to the left. The package name for
121 * both {@link UsageStats} objects must be the same.
122 * @param right The {@link UsageStats} object to merge into this one.
124 * {@link UsageStats} objects are different
    [all...]
UsageStatsManager.java 102 * <p>The returned list will contain a {@link UsageStats} object for each package that
120 * @return A list of {@link UsageStats} or null if none are available.
128 public List<UsageStats> queryUsageStats(int intervalType, long beginTime, long endTime) {
131 ParceledListSlice<UsageStats> slice = mService.queryUsageStats(intervalType, beginTime,
201 public Map<String, UsageStats> queryAndAggregateUsageStats(long beginTime, long endTime) {
202 List<UsageStats> stats = queryUsageStats(INTERVAL_BEST, beginTime, endTime);
207 ArrayMap<String, UsageStats> aggregatedStats = new ArrayMap<>();
210 UsageStats newStat = stats.get(i);
211 UsageStats existingStat = aggregatedStats.get(newStat.getPackageName());
  /frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
UsageStatsActivity.java 17 package com.android.tests.usagestats;
20 import android.app.usage.UsageStats;
44 private Comparator<UsageStats> mComparator = new Comparator<UsageStats>() {
46 public int compare(UsageStats o1, UsageStats o2) {
87 Map<String, UsageStats> stats = mUsageStatsManager.queryAndAggregateUsageStats(
93 private ArrayList<UsageStats> mStats = new ArrayList<>();
95 public void update(Map<String, UsageStats> stats) {
  /external/chromium_org/chrome/installer/util/
fake_product_state.h 20 void set_usagestats(DWORD usagestats) {
22 usagestats_ = usagestats;
installation_state.h 76 // Returns true and populates |usagestats| if the product has such a value;
77 // otherwise, returns false and does not modify |usagestats|. Expected values
78 // are 0 (false) and 1 (true), although |usagestats| is given whatever is
80 bool GetUsageStats(DWORD* usagestats) const;
installation_state.cc 102 // "usagestats" may be absent, 0 (false), or 1 (true). On the chance that
211 bool ProductState::GetUsageStats(DWORD* usagestats) const {
212 DCHECK(usagestats);
215 *usagestats = usagestats_;
installation_validator.cc 56 // Products must not have usagestats consent values when multi-install
90 // Products must not have usagestats consent values when multi-install
146 // UsageStats consent values are always allowed on the binaries.
700 // Validates usagestats for the product or binaries in |ctx|.
703 DWORD usagestats = 0; local
704 if (ctx.state.GetUsageStats(&usagestats)) {
708 << " has a usagestats value (" << usagestats
710 } else if (usagestats != 0 && usagestats != 1)
    [all...]
google_update_constants.cc 63 const wchar_t kRegUsageStatsField[] = L"usagestats";
  /packages/apps/Settings/src/com/android/settings/
UsageStatsActivity.java 20 import android.app.usage.UsageStats;
60 public static class AppNameComparator implements Comparator<UsageStats> {
68 public final int compare(UsageStats a, UsageStats b) {
75 public static class LastTimeUsedComparator implements Comparator<UsageStats> {
77 public final int compare(UsageStats a, UsageStats b) {
83 public static class UsageTimeComparator implements Comparator<UsageStats> {
85 public final int compare(UsageStats a, UsageStats b)
    [all...]
  /external/chromium_org/chrome/browser/renderer_host/
web_cache_manager_unittest.cc 25 static const WebCache::UsageStats kStats;
26 static const WebCache::UsageStats kStats2;
52 WebCache::UsageStats* stats) {
56 const WebCache::UsageStats& stats) {
62 const WebCache::UsageStats& active_stats,
64 const WebCache::UsageStats& inactive_stats,
107 const WebCache::UsageStats WebCacheManagerTest::kStats = {
116 const WebCache::UsageStats WebCacheManagerTest::kStats2 = {
124 static bool operator==(const WebCache::UsageStats& lhs,
125 const WebCache::UsageStats& rhs)
    [all...]
web_cache_manager.h 61 int renderer_id, const blink::WebCache::UsageStats& stats);
90 struct RendererInfo : blink::WebCache::UsageStats {
152 blink::WebCache::UsageStats* stats);
158 const blink::WebCache::UsageStats& stats);
168 const blink::WebCache::UsageStats& active_stats,
170 const blink::WebCache::UsageStats& inactive_stats,
web_cache_manager.cc 135 const WebCache::UsageStats& stats) {
198 WebCache::UsageStats* stats) {
201 memset(stats, 0, sizeof(WebCache::UsageStats));
219 const WebCache::UsageStats& stats) {
244 const WebCache::UsageStats& active_stats,
246 const WebCache::UsageStats& inactive_stats,
363 WebCache::UsageStats active;
364 WebCache::UsageStats inactive;
chrome_render_message_filter.h 61 void OnUpdatedCacheStats(const blink::WebCache::UsageStats& stats);
  /frameworks/base/tests/UsageStatsTest/
AndroidManifest.xml 4 package="com.android.tests.usagestats">
  /cts/tests/tests/app.usage/src/android/app/usage/cts/
UsageStatsTest.java 23 import android.app.usage.UsageStats;
45 * Test the UsageStats API. It is difficult to test the entire surface area
188 Map<String, UsageStats> statsMap = mUsageStatsManager.queryAndAggregateUsageStats(startTime, endTime);
191 final UsageStats before = statsMap.get(mTargetPackage);
200 final UsageStats after = statsMap.get(mTargetPackage);
272 final List<UsageStats> statsList = mUsageStatsManager.queryUsageStats(intervalType, startTime, endTime);
276 for (UsageStats stats : statsList) {
294 List<UsageStats> stats = mUsageStatsManager.queryUsageStats(UsageStatsManager.INTERVAL_BEST,
  /external/chromium_org/remoting/host/
usage_stats_consent_win.cc 24 const wchar_t kOmahaUsagestatsValue[] = L"usagestats";
49 // The user's consent to collect crash dumps is recored as the "usagestats"
  /external/chromium_org/third_party/WebKit/public/web/
WebCache.h 41 struct UsageStats {
80 BLINK_EXPORT static void getUsageStats(UsageStats*);
  /external/chromium_org/remoting/webapp/html/
dialog_host_setup.html 53 <div id="usagestats-consent" hidden>
55 <input id="usagestats-consent-checkbox" type="checkbox">
  /external/chromium_org/third_party/WebKit/Source/web/
WebCache.cpp 66 void WebCache::getUsageStats(UsageStats* result)
78 memset(result, 0, sizeof(UsageStats));
  /packages/apps/Settings/res/xml/
testing_settings.xml 39 android:targetClass="com.android.settings.UsageStats" />

Completed in 416 milliseconds

1 2 3