OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:PkgUsageStats
(Results
1 - 9
of
9
) sorted by null
/frameworks/base/core/java/com/android/internal/os/
PkgUsageStats.aidl
20
parcelable
PkgUsageStats
;
PkgUsageStats.java
26
* implementation of
PkgUsageStats
associated with an
30
public class
PkgUsageStats
implements Parcelable {
36
public static final Parcelable.Creator<
PkgUsageStats
> CREATOR
37
= new Parcelable.Creator<
PkgUsageStats
>() {
38
public
PkgUsageStats
createFromParcel(Parcel in) {
39
return new
PkgUsageStats
(in);
42
public
PkgUsageStats
[] newArray(int size) {
43
return new
PkgUsageStats
[size];
48
return "
PkgUsageStats
{"
53
public
PkgUsageStats
(String pkgName, int count, long time, Map<String, Long> lastResumeTimes)
[
all
...]
/packages/providers/ApplicationsProvider/tests/src/com/android/providers/applications/
MockActivityManager.java
18
import com.android.internal.os.
PkgUsageStats
;
29
private Map<String,
PkgUsageStats
> mPackageUsageStats = new HashMap<String,
PkgUsageStats
>();
33
PkgUsageStats
stats = new
PkgUsageStats
(packageName, 1, 0, new HashMap<String, Long>());
39
public
PkgUsageStats
[] getAllPackageUsageStats() {
40
return mPackageUsageStats.values().toArray(new
PkgUsageStats
[mPackageUsageStats.size()]);
ApplicationsProviderForTesting.java
24
import com.android.internal.os.
PkgUsageStats
;
54
protected Map<String,
PkgUsageStats
> fetchUsageStats() {
55
Map<String,
PkgUsageStats
> stats = new HashMap<String,
PkgUsageStats
>();
56
for (
PkgUsageStats
pus : mMockActivityManager.getAllPackageUsageStats()) {
/frameworks/base/core/java/com/android/internal/app/
IUsageStats.aidl
20
import com.android.internal.os.
PkgUsageStats
;
26
PkgUsageStats
getPkgUsageStats(in ComponentName componentName);
27
PkgUsageStats
[] getAllPkgUsageStats();
/packages/apps/Settings/src/com/android/settings/
UsageStats.java
31
import com.android.internal.os.
PkgUsageStats
;
63
public static class AppNameComparator implements Comparator<
PkgUsageStats
> {
68
public final int compare(
PkgUsageStats
a,
PkgUsageStats
b) {
75
public static class LaunchCountComparator implements Comparator<
PkgUsageStats
> {
76
public final int compare(
PkgUsageStats
a,
PkgUsageStats
b) {
82
public static class UsageTimeComparator implements Comparator<
PkgUsageStats
> {
83
public final int compare(
PkgUsageStats
a,
PkgUsageStats
b)
[
all
...]
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/
ApplicationsProvider.java
20
import com.android.internal.os.
PkgUsageStats
;
513
Map<String,
PkgUsageStats
> usageStats = fetchUsageStats();
539
PkgUsageStats
stats = usageStats.get(activityPackageName);
572
Map<String,
PkgUsageStats
> usageStats = fetchUsageStats();
576
for (Map.Entry<String,
PkgUsageStats
> statsEntry : usageStats.entrySet()) {
579
PkgUsageStats
stats = statsEntry.getValue();
668
protected Map<String,
PkgUsageStats
> fetchUsageStats() {
674
Map<String,
PkgUsageStats
> stats = new HashMap<String,
PkgUsageStats
>();
675
PkgUsageStats
[] pkgUsageStats = activityManager.getAllPackageUsageStats()
[
all
...]
/frameworks/base/services/java/com/android/server/am/
UsageStatsService.java
36
import com.android.internal.os.
PkgUsageStats
;
788
public
PkgUsageStats
getPkgUsageStats(ComponentName componentName) {
804
return new
PkgUsageStats
(pkgName, launchCount, usageTime, lastResumeTimes);
808
public
PkgUsageStats
[] getAllPkgUsageStats() {
816
PkgUsageStats
retArr[] = new
PkgUsageStats
[size];
828
retArr[i] = new
PkgUsageStats
(pkg, launchCount, usageTime, entry.getValue());
[
all
...]
/frameworks/base/core/java/android/app/
ActivityManager.java
20
import com.android.internal.os.
PkgUsageStats
;
[
all
...]
Completed in 1210 milliseconds