summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2014-05-28 15:28:18 -0700
committerAmith Yamasani <yamasani@google.com>2014-05-29 19:00:40 -0700
commite781c81d3394642583d555e7a5d6f6f8f63bc538 (patch)
tree081b578abd2ed771c1e21f5007966f6c9055901c /api
parenta0b731363d7fa12a121425fb6845461203d8756f (diff)
downloadframeworks_base-e781c81d3394642583d555e7a5d6f6f8f63bc538.zip
frameworks_base-e781c81d3394642583d555e7a5d6f6f8f63bc538.tar.gz
frameworks_base-e781c81d3394642583d555e7a5d6f6f8f63bc538.tar.bz2
Tweak LauncherApps API based on feedback
UserHandle must be after packageName/componentName. Improved javadoc for density. Added getApplicationInfo(). Remove synchronized methods. Temporarily @hide the old APIs to make sure they continue to work for unbundled launchers. Bug: 15025908 Change-Id: Iee6336b54e1b4d5c43f1e643062327ff463cb695
Diffstat (limited to 'api')
-rw-r--r--api/current.txt18
1 files changed, 9 insertions, 9 deletions
diff --git a/api/current.txt b/api/current.txt
index 96e83f7..6c02fb6 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -8192,7 +8192,7 @@ package android.content.pm {
}
public class LauncherActivityInfo {
- method public int getApplicationFlags();
+ method public android.content.pm.ApplicationInfo getApplicationInfo();
method public android.graphics.drawable.Drawable getBadgedIcon(int);
method public android.content.ComponentName getComponentName();
method public long getFirstInstallTime();
@@ -8203,21 +8203,21 @@ package android.content.pm {
}
public class LauncherApps {
- method public synchronized void addOnAppsChangedListener(android.content.pm.LauncherApps.OnAppsChangedListener);
+ method public void addOnAppsChangedListener(android.content.pm.LauncherApps.OnAppsChangedListener);
method public java.util.List<android.content.pm.LauncherActivityInfo> getActivityList(java.lang.String, android.os.UserHandle);
method public boolean isActivityEnabledForProfile(android.content.ComponentName, android.os.UserHandle);
method public boolean isPackageEnabledForProfile(java.lang.String, android.os.UserHandle);
- method public synchronized void removeOnAppsChangedListener(android.content.pm.LauncherApps.OnAppsChangedListener);
+ method public void removeOnAppsChangedListener(android.content.pm.LauncherApps.OnAppsChangedListener);
method public android.content.pm.LauncherActivityInfo resolveActivity(android.content.Intent, android.os.UserHandle);
- method public void startActivityForProfile(android.content.ComponentName, android.graphics.Rect, android.os.Bundle, android.os.UserHandle);
+ method public void startActivityForProfile(android.content.ComponentName, android.os.UserHandle, android.graphics.Rect, android.os.Bundle);
}
public static abstract interface LauncherApps.OnAppsChangedListener {
- method public abstract void onPackageAdded(android.os.UserHandle, java.lang.String);
- method public abstract void onPackageChanged(android.os.UserHandle, java.lang.String);
- method public abstract void onPackageRemoved(android.os.UserHandle, java.lang.String);
- method public abstract void onPackagesAvailable(android.os.UserHandle, java.lang.String[], boolean);
- method public abstract void onPackagesUnavailable(android.os.UserHandle, java.lang.String[], boolean);
+ method public abstract void onPackageAdded(java.lang.String, android.os.UserHandle);
+ method public abstract void onPackageChanged(java.lang.String, android.os.UserHandle);
+ method public abstract void onPackageRemoved(java.lang.String, android.os.UserHandle);
+ method public abstract void onPackagesAvailable(java.lang.String[], android.os.UserHandle, boolean);
+ method public abstract void onPackagesUnavailable(java.lang.String[], android.os.UserHandle, boolean);
}
public class PackageInfo implements android.os.Parcelable {