diff options
| author | 2011-02-25 12:37:33 +0000 | |
|---|---|---|
| committer | 2011-02-25 12:37:33 +0000 | |
| commit | 11f4ae76f016d72486aedd33cfef47ba41e6592e (patch) | |
| tree | 909b290760f1ef28e49b24779a67787955053a09 | |
| parent | 0c74819b76752f78803530fb8e4ad0958f0949ed (diff) | |
Removed launch count increase API from Applications.
Bug: 3431684
Change-Id: I5bcf8fc6c917cc0ec60302a6c994e4e47b77c357
| -rw-r--r-- | core/java/android/provider/Applications.java | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/core/java/android/provider/Applications.java b/core/java/android/provider/Applications.java index 3686d173052b..7aabc5080928 100644 --- a/core/java/android/provider/Applications.java +++ b/core/java/android/provider/Applications.java @@ -18,7 +18,6 @@ package android.provider; import android.content.ComponentName; import android.content.ContentResolver; -import android.content.ContentValues; import android.database.Cursor; import android.net.Uri; @@ -27,12 +26,10 @@ import java.util.List; /** * The Applications provider gives information about installed applications. * - * @hide Only used by ApplicationsProvider and Launchers so far. + * @hide Only used by ApplicationsProvider so far. */ public class Applications { - private static final String TAG = "ApplicationsProvider"; - /** * The content authority for this provider. */ @@ -68,26 +65,6 @@ public class Applications { ContentResolver.CURSOR_DIR_BASE_TYPE + "/" + APPLICATION_SUB_TYPE; /** - * The path that should be used when an application is launched. The aim is - * to help ApplicationsProvider keep track of which applications the user - * uses the most, and improve app ranking based on this. - */ - public static final String INCREASE_LAUNCH_COUNT_PATH = "increase_launch_count"; - - public static final Uri INCREASE_LAUNCH_COUNT_URI = CONTENT_URI.buildUpon() - .appendPath(INCREASE_LAUNCH_COUNT_PATH).build(); - - /** - * The package name parameter for the "increase launch count" call. - */ - public static final String INCREASE_LAUNCH_COUNT_PACKAGE = "packageName"; - - /** - * The classname parameter for the "increase launch count" call. - */ - public static final String INCREASE_LAUNCH_COUNT_CLASS = "className"; - - /** * no public constructor since this is a utility class */ private Applications() {} @@ -102,20 +79,6 @@ public class Applications { } /** - * Increases the launch count of an application. Launch counts are used - * by the ApplicationsProvider to improve ranking. - */ - public static void increaseLaunchCount( - final ContentResolver resolver, final ComponentName componentName) { - - ContentValues parameters = new ContentValues(); - parameters.put(INCREASE_LAUNCH_COUNT_PACKAGE, componentName.getPackageName()); - parameters.put(INCREASE_LAUNCH_COUNT_CLASS, componentName.getClassName()); - - resolver.insert(INCREASE_LAUNCH_COUNT_URI, parameters); - } - - /** * Gets the application component name from an application URI. * * @param appUri A URI of the form |