Loading api/current.txt +7 −1 Original line number Original line Diff line number Diff line Loading @@ -9805,7 +9805,7 @@ package android.content { method public abstract java.io.File[] getExternalCacheDirs(); method public abstract java.io.File[] getExternalCacheDirs(); method @Nullable public abstract java.io.File getExternalFilesDir(@Nullable String); method @Nullable public abstract java.io.File getExternalFilesDir(@Nullable String); method public abstract java.io.File[] getExternalFilesDirs(String); method public abstract java.io.File[] getExternalFilesDirs(String); method public abstract java.io.File[] getExternalMediaDirs(); method @Deprecated public abstract java.io.File[] getExternalMediaDirs(); method public abstract java.io.File getFileStreamPath(String); method public abstract java.io.File getFileStreamPath(String); method public abstract java.io.File getFilesDir(); method public abstract java.io.File getFilesDir(); method public java.util.concurrent.Executor getMainExecutor(); method public java.util.concurrent.Executor getMainExecutor(); Loading Loading @@ -25415,6 +25415,9 @@ package android.media { field public static final int METADATA_KEY_BITRATE = 20; // 0x14 field public static final int METADATA_KEY_BITRATE = 20; // 0x14 field public static final int METADATA_KEY_CAPTURE_FRAMERATE = 25; // 0x19 field public static final int METADATA_KEY_CAPTURE_FRAMERATE = 25; // 0x19 field public static final int METADATA_KEY_CD_TRACK_NUMBER = 0; // 0x0 field public static final int METADATA_KEY_CD_TRACK_NUMBER = 0; // 0x0 field public static final int METADATA_KEY_COLOR_RANGE = 37; // 0x25 field public static final int METADATA_KEY_COLOR_STANDARD = 35; // 0x23 field public static final int METADATA_KEY_COLOR_TRANSFER = 36; // 0x24 field public static final int METADATA_KEY_COMPILATION = 15; // 0xf field public static final int METADATA_KEY_COMPILATION = 15; // 0xf field public static final int METADATA_KEY_COMPOSER = 4; // 0x4 field public static final int METADATA_KEY_COMPOSER = 4; // 0x4 field public static final int METADATA_KEY_DATE = 5; // 0x5 field public static final int METADATA_KEY_DATE = 5; // 0x5 Loading Loading @@ -38752,6 +38755,9 @@ package android.provider { field public static final String ARTIST = "artist"; field public static final String ARTIST = "artist"; field public static final String BOOKMARK = "bookmark"; field public static final String BOOKMARK = "bookmark"; field public static final String CATEGORY = "category"; field public static final String CATEGORY = "category"; field public static final String COLOR_RANGE = "color_range"; field public static final String COLOR_STANDARD = "color_standard"; field public static final String COLOR_TRANSFER = "color_transfer"; field public static final String DESCRIPTION = "description"; field public static final String DESCRIPTION = "description"; field public static final String IS_PRIVATE = "isprivate"; field public static final String IS_PRIVATE = "isprivate"; field public static final String LANGUAGE = "language"; field public static final String LANGUAGE = "language"; core/java/android/content/Context.java +7 −0 Original line number Original line Diff line number Diff line Loading @@ -1559,7 +1559,14 @@ public abstract class Context { * @see Environment#getExternalStorageState(File) * @see Environment#getExternalStorageState(File) * @see Environment#isExternalStorageEmulated(File) * @see Environment#isExternalStorageEmulated(File) * @see Environment#isExternalStorageRemovable(File) * @see Environment#isExternalStorageRemovable(File) * @deprecated These directories still exist and are scanned, but developers * are encouraged to migrate to inserting content into a * {@link MediaStore} collection directly, as any app can * contribute new media to {@link MediaStore} with no * permissions required, starting in * {@link android.os.Build.VERSION_CODES#Q}. */ */ @Deprecated public abstract File[] getExternalMediaDirs(); public abstract File[] getExternalMediaDirs(); /** /** Loading core/java/android/os/ParcelFileDescriptor.java +11 −0 Original line number Original line Diff line number Diff line Loading @@ -35,12 +35,15 @@ import android.annotation.TestApi; import android.annotation.UnsupportedAppUsage; import android.annotation.UnsupportedAppUsage; import android.content.BroadcastReceiver; import android.content.BroadcastReceiver; import android.content.ContentProvider; import android.content.ContentProvider; import android.content.ContentResolver; import android.net.Uri; import android.os.MessageQueue.OnFileDescriptorEventListener; import android.os.MessageQueue.OnFileDescriptorEventListener; import android.system.ErrnoException; import android.system.ErrnoException; import android.system.Os; import android.system.Os; import android.system.OsConstants; import android.system.OsConstants; import android.system.StructStat; import android.system.StructStat; import android.util.Log; import android.util.Log; import android.util.Size; import dalvik.system.CloseGuard; import dalvik.system.CloseGuard; import dalvik.system.VMRuntime; import dalvik.system.VMRuntime; Loading Loading @@ -204,6 +207,10 @@ public class ParcelFileDescriptor implements Parcelable, Closeable { /** /** * Create a new ParcelFileDescriptor accessing a given file. * Create a new ParcelFileDescriptor accessing a given file. * <p> * This method should only be used for files that you have direct access to; * if you'd like to work with files hosted outside your app, use an API like * {@link ContentResolver#openFile(Uri, String, CancellationSignal)}. * * * @param file The file to be opened. * @param file The file to be opened. * @param mode The desired access mode, must be one of * @param mode The desired access mode, must be one of Loading @@ -226,6 +233,10 @@ public class ParcelFileDescriptor implements Parcelable, Closeable { /** /** * Create a new ParcelFileDescriptor accessing a given file. * Create a new ParcelFileDescriptor accessing a given file. * <p> * This method should only be used for files that you have direct access to; * if you'd like to work with files hosted outside your app, use an API like * {@link ContentResolver#openFile(Uri, String, CancellationSignal)}. * * * @param file The file to be opened. * @param file The file to be opened. * @param mode The desired access mode, must be one of * @param mode The desired access mode, must be one of Loading core/java/android/provider/MediaStore.java +17 −6 Original line number Original line Diff line number Diff line Loading @@ -47,6 +47,7 @@ import android.graphics.Point; import android.graphics.PostProcessor; import android.graphics.PostProcessor; import android.media.ExifInterface; import android.media.ExifInterface; import android.media.MediaFile; import android.media.MediaFile; import android.media.MediaFormat; import android.net.Uri; import android.net.Uri; import android.os.Bundle; import android.os.Bundle; import android.os.CancellationSignal; import android.os.CancellationSignal; Loading Loading @@ -3007,22 +3008,32 @@ public final class MediaStore { public static final String BOOKMARK = "bookmark"; public static final String BOOKMARK = "bookmark"; /** /** * The standard of color aspects * The color standard of this media file, if available. * @hide * * @see MediaFormat#COLOR_STANDARD_BT709 * @see MediaFormat#COLOR_STANDARD_BT601_PAL * @see MediaFormat#COLOR_STANDARD_BT601_NTSC * @see MediaFormat#COLOR_STANDARD_BT2020 */ */ @Column(value = Cursor.FIELD_TYPE_INTEGER, readOnly = true) @Column(value = Cursor.FIELD_TYPE_INTEGER, readOnly = true) public static final String COLOR_STANDARD = "color_standard"; public static final String COLOR_STANDARD = "color_standard"; /** /** * The transfer of color aspects * The color transfer of this media file, if available. * @hide * * @see MediaFormat#COLOR_TRANSFER_LINEAR * @see MediaFormat#COLOR_TRANSFER_SDR_VIDEO * @see MediaFormat#COLOR_TRANSFER_ST2084 * @see MediaFormat#COLOR_TRANSFER_HLG */ */ @Column(value = Cursor.FIELD_TYPE_INTEGER, readOnly = true) @Column(value = Cursor.FIELD_TYPE_INTEGER, readOnly = true) public static final String COLOR_TRANSFER = "color_transfer"; public static final String COLOR_TRANSFER = "color_transfer"; /** /** * The range of color aspects * The color range of this media file, if available. * @hide * * @see MediaFormat#COLOR_RANGE_LIMITED * @see MediaFormat#COLOR_RANGE_FULL */ */ @Column(value = Cursor.FIELD_TYPE_INTEGER, readOnly = true) @Column(value = Cursor.FIELD_TYPE_INTEGER, readOnly = true) public static final String COLOR_RANGE = "color_range"; public static final String COLOR_RANGE = "color_range"; Loading media/java/android/media/MediaMetadataRetriever.java +0 −6 Original line number Original line Diff line number Diff line Loading @@ -1028,8 +1028,6 @@ public class MediaMetadataRetriever implements AutoCloseable { * @see MediaFormat#COLOR_STANDARD_BT601_PAL * @see MediaFormat#COLOR_STANDARD_BT601_PAL * @see MediaFormat#COLOR_STANDARD_BT601_NTSC * @see MediaFormat#COLOR_STANDARD_BT601_NTSC * @see MediaFormat#COLOR_STANDARD_BT2020 * @see MediaFormat#COLOR_STANDARD_BT2020 * * @hide */ */ public static final int METADATA_KEY_COLOR_STANDARD = 35; public static final int METADATA_KEY_COLOR_STANDARD = 35; Loading @@ -1040,8 +1038,6 @@ public class MediaMetadataRetriever implements AutoCloseable { * @see MediaFormat#COLOR_TRANSFER_SDR_VIDEO * @see MediaFormat#COLOR_TRANSFER_SDR_VIDEO * @see MediaFormat#COLOR_TRANSFER_ST2084 * @see MediaFormat#COLOR_TRANSFER_ST2084 * @see MediaFormat#COLOR_TRANSFER_HLG * @see MediaFormat#COLOR_TRANSFER_HLG * * @hide */ */ public static final int METADATA_KEY_COLOR_TRANSFER = 36; public static final int METADATA_KEY_COLOR_TRANSFER = 36; Loading @@ -1050,8 +1046,6 @@ public class MediaMetadataRetriever implements AutoCloseable { * * * @see MediaFormat#COLOR_RANGE_LIMITED * @see MediaFormat#COLOR_RANGE_LIMITED * @see MediaFormat#COLOR_RANGE_FULL * @see MediaFormat#COLOR_RANGE_FULL * * @hide */ */ public static final int METADATA_KEY_COLOR_RANGE = 37; public static final int METADATA_KEY_COLOR_RANGE = 37; // Add more here... // Add more here... Loading Loading
api/current.txt +7 −1 Original line number Original line Diff line number Diff line Loading @@ -9805,7 +9805,7 @@ package android.content { method public abstract java.io.File[] getExternalCacheDirs(); method public abstract java.io.File[] getExternalCacheDirs(); method @Nullable public abstract java.io.File getExternalFilesDir(@Nullable String); method @Nullable public abstract java.io.File getExternalFilesDir(@Nullable String); method public abstract java.io.File[] getExternalFilesDirs(String); method public abstract java.io.File[] getExternalFilesDirs(String); method public abstract java.io.File[] getExternalMediaDirs(); method @Deprecated public abstract java.io.File[] getExternalMediaDirs(); method public abstract java.io.File getFileStreamPath(String); method public abstract java.io.File getFileStreamPath(String); method public abstract java.io.File getFilesDir(); method public abstract java.io.File getFilesDir(); method public java.util.concurrent.Executor getMainExecutor(); method public java.util.concurrent.Executor getMainExecutor(); Loading Loading @@ -25415,6 +25415,9 @@ package android.media { field public static final int METADATA_KEY_BITRATE = 20; // 0x14 field public static final int METADATA_KEY_BITRATE = 20; // 0x14 field public static final int METADATA_KEY_CAPTURE_FRAMERATE = 25; // 0x19 field public static final int METADATA_KEY_CAPTURE_FRAMERATE = 25; // 0x19 field public static final int METADATA_KEY_CD_TRACK_NUMBER = 0; // 0x0 field public static final int METADATA_KEY_CD_TRACK_NUMBER = 0; // 0x0 field public static final int METADATA_KEY_COLOR_RANGE = 37; // 0x25 field public static final int METADATA_KEY_COLOR_STANDARD = 35; // 0x23 field public static final int METADATA_KEY_COLOR_TRANSFER = 36; // 0x24 field public static final int METADATA_KEY_COMPILATION = 15; // 0xf field public static final int METADATA_KEY_COMPILATION = 15; // 0xf field public static final int METADATA_KEY_COMPOSER = 4; // 0x4 field public static final int METADATA_KEY_COMPOSER = 4; // 0x4 field public static final int METADATA_KEY_DATE = 5; // 0x5 field public static final int METADATA_KEY_DATE = 5; // 0x5 Loading Loading @@ -38752,6 +38755,9 @@ package android.provider { field public static final String ARTIST = "artist"; field public static final String ARTIST = "artist"; field public static final String BOOKMARK = "bookmark"; field public static final String BOOKMARK = "bookmark"; field public static final String CATEGORY = "category"; field public static final String CATEGORY = "category"; field public static final String COLOR_RANGE = "color_range"; field public static final String COLOR_STANDARD = "color_standard"; field public static final String COLOR_TRANSFER = "color_transfer"; field public static final String DESCRIPTION = "description"; field public static final String DESCRIPTION = "description"; field public static final String IS_PRIVATE = "isprivate"; field public static final String IS_PRIVATE = "isprivate"; field public static final String LANGUAGE = "language"; field public static final String LANGUAGE = "language";
core/java/android/content/Context.java +7 −0 Original line number Original line Diff line number Diff line Loading @@ -1559,7 +1559,14 @@ public abstract class Context { * @see Environment#getExternalStorageState(File) * @see Environment#getExternalStorageState(File) * @see Environment#isExternalStorageEmulated(File) * @see Environment#isExternalStorageEmulated(File) * @see Environment#isExternalStorageRemovable(File) * @see Environment#isExternalStorageRemovable(File) * @deprecated These directories still exist and are scanned, but developers * are encouraged to migrate to inserting content into a * {@link MediaStore} collection directly, as any app can * contribute new media to {@link MediaStore} with no * permissions required, starting in * {@link android.os.Build.VERSION_CODES#Q}. */ */ @Deprecated public abstract File[] getExternalMediaDirs(); public abstract File[] getExternalMediaDirs(); /** /** Loading
core/java/android/os/ParcelFileDescriptor.java +11 −0 Original line number Original line Diff line number Diff line Loading @@ -35,12 +35,15 @@ import android.annotation.TestApi; import android.annotation.UnsupportedAppUsage; import android.annotation.UnsupportedAppUsage; import android.content.BroadcastReceiver; import android.content.BroadcastReceiver; import android.content.ContentProvider; import android.content.ContentProvider; import android.content.ContentResolver; import android.net.Uri; import android.os.MessageQueue.OnFileDescriptorEventListener; import android.os.MessageQueue.OnFileDescriptorEventListener; import android.system.ErrnoException; import android.system.ErrnoException; import android.system.Os; import android.system.Os; import android.system.OsConstants; import android.system.OsConstants; import android.system.StructStat; import android.system.StructStat; import android.util.Log; import android.util.Log; import android.util.Size; import dalvik.system.CloseGuard; import dalvik.system.CloseGuard; import dalvik.system.VMRuntime; import dalvik.system.VMRuntime; Loading Loading @@ -204,6 +207,10 @@ public class ParcelFileDescriptor implements Parcelable, Closeable { /** /** * Create a new ParcelFileDescriptor accessing a given file. * Create a new ParcelFileDescriptor accessing a given file. * <p> * This method should only be used for files that you have direct access to; * if you'd like to work with files hosted outside your app, use an API like * {@link ContentResolver#openFile(Uri, String, CancellationSignal)}. * * * @param file The file to be opened. * @param file The file to be opened. * @param mode The desired access mode, must be one of * @param mode The desired access mode, must be one of Loading @@ -226,6 +233,10 @@ public class ParcelFileDescriptor implements Parcelable, Closeable { /** /** * Create a new ParcelFileDescriptor accessing a given file. * Create a new ParcelFileDescriptor accessing a given file. * <p> * This method should only be used for files that you have direct access to; * if you'd like to work with files hosted outside your app, use an API like * {@link ContentResolver#openFile(Uri, String, CancellationSignal)}. * * * @param file The file to be opened. * @param file The file to be opened. * @param mode The desired access mode, must be one of * @param mode The desired access mode, must be one of Loading
core/java/android/provider/MediaStore.java +17 −6 Original line number Original line Diff line number Diff line Loading @@ -47,6 +47,7 @@ import android.graphics.Point; import android.graphics.PostProcessor; import android.graphics.PostProcessor; import android.media.ExifInterface; import android.media.ExifInterface; import android.media.MediaFile; import android.media.MediaFile; import android.media.MediaFormat; import android.net.Uri; import android.net.Uri; import android.os.Bundle; import android.os.Bundle; import android.os.CancellationSignal; import android.os.CancellationSignal; Loading Loading @@ -3007,22 +3008,32 @@ public final class MediaStore { public static final String BOOKMARK = "bookmark"; public static final String BOOKMARK = "bookmark"; /** /** * The standard of color aspects * The color standard of this media file, if available. * @hide * * @see MediaFormat#COLOR_STANDARD_BT709 * @see MediaFormat#COLOR_STANDARD_BT601_PAL * @see MediaFormat#COLOR_STANDARD_BT601_NTSC * @see MediaFormat#COLOR_STANDARD_BT2020 */ */ @Column(value = Cursor.FIELD_TYPE_INTEGER, readOnly = true) @Column(value = Cursor.FIELD_TYPE_INTEGER, readOnly = true) public static final String COLOR_STANDARD = "color_standard"; public static final String COLOR_STANDARD = "color_standard"; /** /** * The transfer of color aspects * The color transfer of this media file, if available. * @hide * * @see MediaFormat#COLOR_TRANSFER_LINEAR * @see MediaFormat#COLOR_TRANSFER_SDR_VIDEO * @see MediaFormat#COLOR_TRANSFER_ST2084 * @see MediaFormat#COLOR_TRANSFER_HLG */ */ @Column(value = Cursor.FIELD_TYPE_INTEGER, readOnly = true) @Column(value = Cursor.FIELD_TYPE_INTEGER, readOnly = true) public static final String COLOR_TRANSFER = "color_transfer"; public static final String COLOR_TRANSFER = "color_transfer"; /** /** * The range of color aspects * The color range of this media file, if available. * @hide * * @see MediaFormat#COLOR_RANGE_LIMITED * @see MediaFormat#COLOR_RANGE_FULL */ */ @Column(value = Cursor.FIELD_TYPE_INTEGER, readOnly = true) @Column(value = Cursor.FIELD_TYPE_INTEGER, readOnly = true) public static final String COLOR_RANGE = "color_range"; public static final String COLOR_RANGE = "color_range"; Loading
media/java/android/media/MediaMetadataRetriever.java +0 −6 Original line number Original line Diff line number Diff line Loading @@ -1028,8 +1028,6 @@ public class MediaMetadataRetriever implements AutoCloseable { * @see MediaFormat#COLOR_STANDARD_BT601_PAL * @see MediaFormat#COLOR_STANDARD_BT601_PAL * @see MediaFormat#COLOR_STANDARD_BT601_NTSC * @see MediaFormat#COLOR_STANDARD_BT601_NTSC * @see MediaFormat#COLOR_STANDARD_BT2020 * @see MediaFormat#COLOR_STANDARD_BT2020 * * @hide */ */ public static final int METADATA_KEY_COLOR_STANDARD = 35; public static final int METADATA_KEY_COLOR_STANDARD = 35; Loading @@ -1040,8 +1038,6 @@ public class MediaMetadataRetriever implements AutoCloseable { * @see MediaFormat#COLOR_TRANSFER_SDR_VIDEO * @see MediaFormat#COLOR_TRANSFER_SDR_VIDEO * @see MediaFormat#COLOR_TRANSFER_ST2084 * @see MediaFormat#COLOR_TRANSFER_ST2084 * @see MediaFormat#COLOR_TRANSFER_HLG * @see MediaFormat#COLOR_TRANSFER_HLG * * @hide */ */ public static final int METADATA_KEY_COLOR_TRANSFER = 36; public static final int METADATA_KEY_COLOR_TRANSFER = 36; Loading @@ -1050,8 +1046,6 @@ public class MediaMetadataRetriever implements AutoCloseable { * * * @see MediaFormat#COLOR_RANGE_LIMITED * @see MediaFormat#COLOR_RANGE_LIMITED * @see MediaFormat#COLOR_RANGE_FULL * @see MediaFormat#COLOR_RANGE_FULL * * @hide */ */ public static final int METADATA_KEY_COLOR_RANGE = 37; public static final int METADATA_KEY_COLOR_RANGE = 37; // Add more here... // Add more here... Loading