Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32148394 authored by Kenny Root's avatar Kenny Root
Browse files

Unhide resource-related API calls in Context

Context hides methods related to the underlying functioning of
resources which are readily available from the ApplicationInfo
object.  This change allows getting access to information
without having to make PackageManager calls for it.

Change-Id: Icf6a9da652dad8175bd11b5cd81a924181070373
parent 55434a79
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
@@ -32439,6 +32439,17 @@
 visibility="public"
>
</method>
<method name="getPackageCodePath"
 return="java.lang.String"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="getPackageManager"
 return="android.content.pm.PackageManager"
 abstract="true"
@@ -32461,6 +32472,17 @@
 visibility="public"
>
</method>
<method name="getPackageResourcePath"
 return="java.lang.String"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="getResources"
 return="android.content.res.Resources"
 abstract="true"
+6 −7
Original line number Diff line number Diff line
@@ -250,22 +250,21 @@ public abstract class Context {
    public abstract ApplicationInfo getApplicationInfo();
    
    /**
     * {@hide}
     * Return the full path to this context's resource files.  This is the ZIP files
     * containing the application's resources.
     * Return the full path to this context's primary Android package.
     * The Android package is a ZIP file which contains the application's
     * primary resources.
     *
     * <p>Note: this is not generally useful for applications, since they should
     * not be directly accessing the file system.
     *
     *
     * @return String Path to the resources.
     */
    public abstract String getPackageResourcePath();

    /**
     * {@hide}
     * Return the full path to this context's code and asset files.  This is the ZIP files
     * containing the application's code and assets.
     * Return the full path to this context's primary Android package.
     * The Android package is a ZIP file which contains application's
     * primary code and assets.
     *
     * <p>Note: this is not generally useful for applications, since they should
     * not be directly accessing the file system.