summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2014-09-15 14:04:56 -0700
committerJeff Sharkey <jsharkey@android.com>2014-09-15 14:17:46 -0700
commitde74231f245c90e5861ec84a9880b5b4ec247480 (patch)
tree481e3f64d7421d27e2f163988c8d024d56a93bba
parent08ff5c14feb2aee0027eabcbb9a5e7390658a84d (diff)
downloadframeworks_base-de74231f245c90e5861ec84a9880b5b4ec247480.zip
frameworks_base-de74231f245c90e5861ec84a9880b5b4ec247480.tar.gz
frameworks_base-de74231f245c90e5861ec84a9880b5b4ec247480.tar.bz2
Update API naming to follow style guide.
Bug: 17510755 Change-Id: If73d81b416355559592feb895a62132194f4ba62
-rw-r--r--api/current.txt2
-rw-r--r--core/java/android/content/pm/PackageInstaller.java10
2 files changed, 9 insertions, 3 deletions
diff --git a/api/current.txt b/api/current.txt
index 293dca6..c5819b7 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -8582,11 +8582,11 @@ package android.content.pm {
}
public static class PackageInstaller.SessionInfo implements android.os.Parcelable {
+ method public android.content.Intent createDetailsIntent();
method public int describeContents();
method public android.graphics.Bitmap getAppIcon();
method public java.lang.CharSequence getAppLabel();
method public java.lang.String getAppPackageName();
- method public android.content.Intent getDetailsIntent();
method public java.lang.String getInstallerPackageName();
method public float getProgress();
method public int getSessionId();
diff --git a/core/java/android/content/pm/PackageInstaller.java b/core/java/android/content/pm/PackageInstaller.java
index 06d4c4a..db8fac2 100644
--- a/core/java/android/content/pm/PackageInstaller.java
+++ b/core/java/android/content/pm/PackageInstaller.java
@@ -82,7 +82,7 @@ public class PackageInstaller {
* may surface actions such as pause, resume, or cancel.
* <p>
* This should always be scoped to the installer package that owns the
- * session. Clients should use {@link SessionInfo#getDetailsIntent()} to
+ * session. Clients should use {@link SessionInfo#createDetailsIntent()} to
* build this intent correctly.
* <p>
* In some cases, a matching Activity may not exist, so ensure you safeguard
@@ -1174,7 +1174,7 @@ public class PackageInstaller {
*
* @see PackageInstaller#ACTION_SESSION_DETAILS
*/
- public @Nullable Intent getDetailsIntent() {
+ public @Nullable Intent createDetailsIntent() {
final Intent intent = new Intent(PackageInstaller.ACTION_SESSION_DETAILS);
intent.putExtra(PackageInstaller.EXTRA_SESSION_ID, sessionId);
intent.setPackage(installerPackageName);
@@ -1182,6 +1182,12 @@ public class PackageInstaller {
return intent;
}
+ /** {@hide} */
+ @Deprecated
+ public @Nullable Intent getDetailsIntent() {
+ return createDetailsIntent();
+ }
+
@Override
public int describeContents() {
return 0;