Unhide inPurgeable in BitmapFactory.Options.
The correctness and effectiveness of the usage of the parameter are evaluated in: https://android-git.corp.google.com/g/Gerrit#change,2768
This commit is contained in:
@@ -48699,6 +48699,16 @@
|
|||||||
visibility="public"
|
visibility="public"
|
||||||
>
|
>
|
||||||
</field>
|
</field>
|
||||||
|
<field name="inPurgeable"
|
||||||
|
type="boolean"
|
||||||
|
transient="false"
|
||||||
|
volatile="false"
|
||||||
|
static="false"
|
||||||
|
final="false"
|
||||||
|
deprecated="not deprecated"
|
||||||
|
visibility="public"
|
||||||
|
>
|
||||||
|
</field>
|
||||||
<field name="inSampleSize"
|
<field name="inSampleSize"
|
||||||
type="int"
|
type="int"
|
||||||
transient="false"
|
transient="false"
|
||||||
|
|||||||
@@ -18,14 +18,14 @@ package android.graphics;
|
|||||||
|
|
||||||
import android.content.res.AssetManager;
|
import android.content.res.AssetManager;
|
||||||
import android.content.res.Resources;
|
import android.content.res.Resources;
|
||||||
import android.util.TypedValue;
|
|
||||||
import android.util.DisplayMetrics;
|
import android.util.DisplayMetrics;
|
||||||
|
import android.util.TypedValue;
|
||||||
|
|
||||||
import java.io.BufferedInputStream;
|
import java.io.BufferedInputStream;
|
||||||
import java.io.FileInputStream;
|
|
||||||
import java.io.InputStream;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.io.FileDescriptor;
|
import java.io.FileDescriptor;
|
||||||
|
import java.io.FileInputStream;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.InputStream;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates Bitmap objects from various sources, including files, streams,
|
* Creates Bitmap objects from various sources, including files, streams,
|
||||||
@@ -117,8 +117,6 @@ public class BitmapFactory {
|
|||||||
* explicitly make a copy of the input data, and keep that. Even if
|
* explicitly make a copy of the input data, and keep that. Even if
|
||||||
* sharing is allowed, the implementation may still decide to make a
|
* sharing is allowed, the implementation may still decide to make a
|
||||||
* deep copy of the input data.
|
* deep copy of the input data.
|
||||||
*
|
|
||||||
* @hide pending API council approval
|
|
||||||
*/
|
*/
|
||||||
public boolean inPurgeable;
|
public boolean inPurgeable;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user