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

Commit 40f58d91 authored by Jeff Brown's avatar Jeff Brown
Browse files

Expose Context.getSystemServiceName().

Expose this method so that subclasses can declare new types of services
that can be returned by getSystemService(Class<T>).

Bug: 21343770
Change-Id: I08bdfa61153d19298645dc495deb2d535e54f9f0
parent 764e95ec
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -7721,6 +7721,7 @@ package android.content {
    method public final java.lang.String getString(int, java.lang.Object...);
    method public abstract java.lang.Object getSystemService(java.lang.String);
    method public final T getSystemService(java.lang.Class<T>);
    method public abstract java.lang.String getSystemServiceName(java.lang.Class<?>);
    method public final java.lang.CharSequence getText(int);
    method public abstract android.content.res.Resources.Theme getTheme();
    method public abstract deprecated android.graphics.drawable.Drawable getWallpaper();
+1 −0
Original line number Diff line number Diff line
@@ -7944,6 +7944,7 @@ package android.content {
    method public final java.lang.String getString(int, java.lang.Object...);
    method public abstract java.lang.Object getSystemService(java.lang.String);
    method public final T getSystemService(java.lang.Class<T>);
    method public abstract java.lang.String getSystemServiceName(java.lang.Class<?>);
    method public final java.lang.CharSequence getText(int);
    method public abstract android.content.res.Resources.Theme getTheme();
    method public abstract deprecated android.graphics.drawable.Drawable getWallpaper();
+0 −2
Original line number Diff line number Diff line
@@ -2443,8 +2443,6 @@ public abstract class Context {
     *
     * @param serviceClass The class of the desired service.
     * @return The service name or null if the class is not a supported system service.
     *
     * @hide
     */
    public abstract String getSystemServiceName(Class<?> serviceClass);