Loading api/current.xml +37 −0 Original line number Original line Diff line number Diff line Loading @@ -76419,6 +76419,17 @@ visibility="public" visibility="public" > > </method> </method> <method name="getGenerationId" return="int" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > </method> <method name="getHeight" <method name="getHeight" return="int" return="int" abstract="false" abstract="false" Loading Loading @@ -76636,6 +76647,19 @@ visibility="public" visibility="public" > > </method> </method> <method name="sameAs" return="boolean" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="other" type="android.graphics.Bitmap"> </parameter> </method> <method name="setDensity" <method name="setDensity" return="void" return="void" abstract="false" abstract="false" Loading @@ -76649,6 +76673,19 @@ <parameter name="density" type="int"> <parameter name="density" type="int"> </parameter> </parameter> </method> </method> <method name="setHasAlpha" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="hasAlpha" type="boolean"> </parameter> </method> <method name="setPixel" <method name="setPixel" return="void" return="void" abstract="false" abstract="false" graphics/java/android/graphics/Bitmap.java +11 −13 Original line number Original line Diff line number Diff line Loading @@ -200,8 +200,6 @@ public final class Bitmap implements Parcelable { * check if a bitmap has changed. * check if a bitmap has changed. * * * @return The current generation ID for this bitmap. * @return The current generation ID for this bitmap. * * @hide */ */ public int getGenerationId() { public int getGenerationId() { return nativeGenerationId(mNativeBitmap); return nativeGenerationId(mNativeBitmap); Loading Loading @@ -790,14 +788,12 @@ public final class Bitmap implements Parcelable { /** /** * Tell the bitmap if all of the pixels are known to be opaque (false) * Tell the bitmap if all of the pixels are known to be opaque (false) * or if some of the pixels may contain non-opaque alpha values (true). * or if some of the pixels may contain non-opaque alpha values (true). * Note, for some configs (e.g. RGB_565) this call is ignore, since it does * Note, for some configs (e.g. RGB_565) this call is ignored, since it * not support per-pixel alpha values. * does not support per-pixel alpha values. * * * This is meant as a drawing hint, as in some cases a bitmap that is known * This is meant as a drawing hint, as in some cases a bitmap that is known * to be opaque can take a faster drawing case than one that may have * to be opaque can take a faster drawing case than one that may have * non-opaque per-pixel alpha values. * non-opaque per-pixel alpha values. * * @hide */ */ public void setHasAlpha(boolean hasAlpha) { public void setHasAlpha(boolean hasAlpha) { nativeSetHasAlpha(mNativeBitmap, hasAlpha); nativeSetHasAlpha(mNativeBitmap, hasAlpha); Loading Loading @@ -1066,13 +1062,9 @@ public final class Bitmap implements Parcelable { * Given another bitmap, return true if it has the same dimensions, config, * Given another bitmap, return true if it has the same dimensions, config, * and pixel data as this bitmap. If any of those differ, return false. * and pixel data as this bitmap. If any of those differ, return false. * If other is null, return false. * If other is null, return false. * * @hide (just needed internally right now) */ */ public boolean sameAs(Bitmap other) { public boolean sameAs(Bitmap other) { return this == other || return this == other || (other != null && nativeSameAs(mNativeBitmap, other.mNativeBitmap)); (other != null && nativeSameAs(mNativeBitmap, other.mNativeBitmap)); } } /** /** Loading @@ -1099,9 +1091,15 @@ public final class Bitmap implements Parcelable { @Override @Override public void finalize() { public void finalize() { try { super.finalize(); } catch (Throwable t) { // Ignore } finally { nativeDestructor(mNativeBitmap); nativeDestructor(mNativeBitmap); } } } } } //////////// native methods //////////// native methods Loading Loading
api/current.xml +37 −0 Original line number Original line Diff line number Diff line Loading @@ -76419,6 +76419,17 @@ visibility="public" visibility="public" > > </method> </method> <method name="getGenerationId" return="int" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > </method> <method name="getHeight" <method name="getHeight" return="int" return="int" abstract="false" abstract="false" Loading Loading @@ -76636,6 +76647,19 @@ visibility="public" visibility="public" > > </method> </method> <method name="sameAs" return="boolean" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="other" type="android.graphics.Bitmap"> </parameter> </method> <method name="setDensity" <method name="setDensity" return="void" return="void" abstract="false" abstract="false" Loading @@ -76649,6 +76673,19 @@ <parameter name="density" type="int"> <parameter name="density" type="int"> </parameter> </parameter> </method> </method> <method name="setHasAlpha" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="hasAlpha" type="boolean"> </parameter> </method> <method name="setPixel" <method name="setPixel" return="void" return="void" abstract="false" abstract="false"
graphics/java/android/graphics/Bitmap.java +11 −13 Original line number Original line Diff line number Diff line Loading @@ -200,8 +200,6 @@ public final class Bitmap implements Parcelable { * check if a bitmap has changed. * check if a bitmap has changed. * * * @return The current generation ID for this bitmap. * @return The current generation ID for this bitmap. * * @hide */ */ public int getGenerationId() { public int getGenerationId() { return nativeGenerationId(mNativeBitmap); return nativeGenerationId(mNativeBitmap); Loading Loading @@ -790,14 +788,12 @@ public final class Bitmap implements Parcelable { /** /** * Tell the bitmap if all of the pixels are known to be opaque (false) * Tell the bitmap if all of the pixels are known to be opaque (false) * or if some of the pixels may contain non-opaque alpha values (true). * or if some of the pixels may contain non-opaque alpha values (true). * Note, for some configs (e.g. RGB_565) this call is ignore, since it does * Note, for some configs (e.g. RGB_565) this call is ignored, since it * not support per-pixel alpha values. * does not support per-pixel alpha values. * * * This is meant as a drawing hint, as in some cases a bitmap that is known * This is meant as a drawing hint, as in some cases a bitmap that is known * to be opaque can take a faster drawing case than one that may have * to be opaque can take a faster drawing case than one that may have * non-opaque per-pixel alpha values. * non-opaque per-pixel alpha values. * * @hide */ */ public void setHasAlpha(boolean hasAlpha) { public void setHasAlpha(boolean hasAlpha) { nativeSetHasAlpha(mNativeBitmap, hasAlpha); nativeSetHasAlpha(mNativeBitmap, hasAlpha); Loading Loading @@ -1066,13 +1062,9 @@ public final class Bitmap implements Parcelable { * Given another bitmap, return true if it has the same dimensions, config, * Given another bitmap, return true if it has the same dimensions, config, * and pixel data as this bitmap. If any of those differ, return false. * and pixel data as this bitmap. If any of those differ, return false. * If other is null, return false. * If other is null, return false. * * @hide (just needed internally right now) */ */ public boolean sameAs(Bitmap other) { public boolean sameAs(Bitmap other) { return this == other || return this == other || (other != null && nativeSameAs(mNativeBitmap, other.mNativeBitmap)); (other != null && nativeSameAs(mNativeBitmap, other.mNativeBitmap)); } } /** /** Loading @@ -1099,9 +1091,15 @@ public final class Bitmap implements Parcelable { @Override @Override public void finalize() { public void finalize() { try { super.finalize(); } catch (Throwable t) { // Ignore } finally { nativeDestructor(mNativeBitmap); nativeDestructor(mNativeBitmap); } } } } } //////////// native methods //////////// native methods Loading