Loading api/test-current.txt +5 −0 Original line number Diff line number Diff line Loading @@ -713,6 +713,11 @@ package android.content.pm { package android.content.res { public final class AssetManager implements java.lang.AutoCloseable { method @NonNull public String[] getApkPaths(); method @Nullable public java.util.Map<java.lang.String,java.lang.String> getOverlayableMap(String); } public final class Configuration implements java.lang.Comparable<android.content.res.Configuration> android.os.Parcelable { field public int assetsSeq; field public final android.app.WindowConfiguration windowConfiguration; Loading core/java/android/content/res/AssetManager.java +18 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.StringRes; import android.annotation.StyleRes; import android.annotation.TestApi; import android.annotation.UnsupportedAppUsage; import android.content.pm.ActivityInfo; import android.content.res.Configuration.NativeConfig; Loading Loading @@ -357,6 +358,22 @@ public final class AssetManager implements AutoCloseable { return sEmptyApkAssets; } /** @hide */ @TestApi public @NonNull String[] getApkPaths() { synchronized (this) { if (mOpen) { String[] paths = new String[mApkAssets.length]; final int count = mApkAssets.length; for (int i = 0; i < count; i++) { paths[i] = mApkAssets[i].getAssetPath(); } return paths; } } return new String[0]; } /** * Returns a cookie for use with the other APIs of AssetManager. * @return 0 if the path was not found, otherwise a positive integer cookie representing Loading Loading @@ -1349,6 +1366,7 @@ public final class AssetManager implements AutoCloseable { /** * @hide */ @TestApi @GuardedBy("this") public @Nullable Map<String, String> getOverlayableMap(String packageName) { synchronized (this) { Loading Loading
api/test-current.txt +5 −0 Original line number Diff line number Diff line Loading @@ -713,6 +713,11 @@ package android.content.pm { package android.content.res { public final class AssetManager implements java.lang.AutoCloseable { method @NonNull public String[] getApkPaths(); method @Nullable public java.util.Map<java.lang.String,java.lang.String> getOverlayableMap(String); } public final class Configuration implements java.lang.Comparable<android.content.res.Configuration> android.os.Parcelable { field public int assetsSeq; field public final android.app.WindowConfiguration windowConfiguration; Loading
core/java/android/content/res/AssetManager.java +18 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.StringRes; import android.annotation.StyleRes; import android.annotation.TestApi; import android.annotation.UnsupportedAppUsage; import android.content.pm.ActivityInfo; import android.content.res.Configuration.NativeConfig; Loading Loading @@ -357,6 +358,22 @@ public final class AssetManager implements AutoCloseable { return sEmptyApkAssets; } /** @hide */ @TestApi public @NonNull String[] getApkPaths() { synchronized (this) { if (mOpen) { String[] paths = new String[mApkAssets.length]; final int count = mApkAssets.length; for (int i = 0; i < count; i++) { paths[i] = mApkAssets[i].getAssetPath(); } return paths; } } return new String[0]; } /** * Returns a cookie for use with the other APIs of AssetManager. * @return 0 if the path was not found, otherwise a positive integer cookie representing Loading Loading @@ -1349,6 +1366,7 @@ public final class AssetManager implements AutoCloseable { /** * @hide */ @TestApi @GuardedBy("this") public @Nullable Map<String, String> getOverlayableMap(String packageName) { synchronized (this) { Loading