Loading core/java/android/content/res/AssetManager.java +7 −0 Original line number Diff line number Diff line Loading @@ -78,6 +78,13 @@ public final class AssetManager implements AutoCloseable { @GuardedBy("sSync") private static ApkAssets[] sSystemApkAssets = new ApkAssets[0]; @GuardedBy("sSync") private static ArraySet<ApkAssets> sSystemApkAssetsSet; /** * Cookie value to use when the actual cookie is unknown. This value tells the system to search * all the ApkAssets for the asset. * @hide */ public static final int COOKIE_UNKNOWN = -1; /** * Mode for {@link #open(String, int)}: no specific information about how * data will be accessed. Loading graphics/java/android/graphics/Typeface.java +1 −1 Original line number Diff line number Diff line Loading @@ -329,7 +329,7 @@ public class Typeface { FontFamily.Builder familyBuilder = null; for (final FontFileResourceEntry fontFile : filesEntry.getEntries()) { final Font.Builder fontBuilder = new Font.Builder(mgr, fontFile.getFileName(), false /* isAsset */, 0 /* cookie */) false /* isAsset */, AssetManager.COOKIE_UNKNOWN) .setTtcIndex(fontFile.getTtcIndex()) .setFontVariationSettings(fontFile.getVariationSettings()); if (fontFile.getWeight() != Typeface.RESOLVE_BY_FONT_TABLE) { Loading graphics/java/android/graphics/fonts/Font.java +1 −1 Original line number Diff line number Diff line Loading @@ -179,7 +179,7 @@ public final class Font { */ public Builder(@NonNull AssetManager am, @NonNull String path) { try { mBuffer = createBuffer(am, path, true /* is asset */, 0 /* cookie */); mBuffer = createBuffer(am, path, true /* is asset */, AssetManager.COOKIE_UNKNOWN); } catch (IOException e) { mException = e; } Loading Loading
core/java/android/content/res/AssetManager.java +7 −0 Original line number Diff line number Diff line Loading @@ -78,6 +78,13 @@ public final class AssetManager implements AutoCloseable { @GuardedBy("sSync") private static ApkAssets[] sSystemApkAssets = new ApkAssets[0]; @GuardedBy("sSync") private static ArraySet<ApkAssets> sSystemApkAssetsSet; /** * Cookie value to use when the actual cookie is unknown. This value tells the system to search * all the ApkAssets for the asset. * @hide */ public static final int COOKIE_UNKNOWN = -1; /** * Mode for {@link #open(String, int)}: no specific information about how * data will be accessed. Loading
graphics/java/android/graphics/Typeface.java +1 −1 Original line number Diff line number Diff line Loading @@ -329,7 +329,7 @@ public class Typeface { FontFamily.Builder familyBuilder = null; for (final FontFileResourceEntry fontFile : filesEntry.getEntries()) { final Font.Builder fontBuilder = new Font.Builder(mgr, fontFile.getFileName(), false /* isAsset */, 0 /* cookie */) false /* isAsset */, AssetManager.COOKIE_UNKNOWN) .setTtcIndex(fontFile.getTtcIndex()) .setFontVariationSettings(fontFile.getVariationSettings()); if (fontFile.getWeight() != Typeface.RESOLVE_BY_FONT_TABLE) { Loading
graphics/java/android/graphics/fonts/Font.java +1 −1 Original line number Diff line number Diff line Loading @@ -179,7 +179,7 @@ public final class Font { */ public Builder(@NonNull AssetManager am, @NonNull String path) { try { mBuffer = createBuffer(am, path, true /* is asset */, 0 /* cookie */); mBuffer = createBuffer(am, path, true /* is asset */, AssetManager.COOKIE_UNKNOWN); } catch (IOException e) { mException = e; } Loading