Merge "Get CtsProviderTestCases building against API."
This commit is contained in:
@@ -39,6 +39,7 @@ import static android.system.OsConstants.W_OK;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.TestApi;
|
||||
import android.content.ContentResolver;
|
||||
import android.provider.DocumentsContract.Document;
|
||||
import android.system.ErrnoException;
|
||||
@@ -852,6 +853,7 @@ public class FileUtils {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@TestApi
|
||||
public static boolean contains(File dir, File file) {
|
||||
if (dir == null || file == null) return false;
|
||||
return contains(dir.getAbsolutePath(), file.getAbsolutePath());
|
||||
|
||||
@@ -31,6 +31,7 @@ import static android.system.OsConstants.S_ISLNK;
|
||||
import static android.system.OsConstants.S_ISREG;
|
||||
import static android.system.OsConstants.S_IWOTH;
|
||||
|
||||
import android.annotation.TestApi;
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.ContentProvider;
|
||||
import android.os.MessageQueue.OnFileDescriptorEventListener;
|
||||
@@ -580,6 +581,7 @@ public class ParcelFileDescriptor implements Parcelable, Closeable {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@TestApi
|
||||
public static File getFile(FileDescriptor fd) throws IOException {
|
||||
try {
|
||||
final String path = Os.readlink("/proc/self/fd/" + fd.getInt$());
|
||||
|
||||
@@ -19,6 +19,7 @@ package android.provider;
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.SdkConstant;
|
||||
import android.annotation.SdkConstant.SdkConstantType;
|
||||
import android.annotation.TestApi;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.app.Activity;
|
||||
import android.app.AlarmManager;
|
||||
@@ -805,6 +806,7 @@ public final class CalendarContract {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@TestApi
|
||||
public static final String[] SYNC_WRITABLE_COLUMNS = new String[] {
|
||||
ACCOUNT_NAME,
|
||||
ACCOUNT_TYPE,
|
||||
@@ -1832,6 +1834,7 @@ public final class CalendarContract {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@TestApi
|
||||
public static final String[] SYNC_WRITABLE_COLUMNS = new String[] {
|
||||
_SYNC_ID,
|
||||
DIRTY,
|
||||
|
||||
@@ -126,6 +126,7 @@ public final class ContactsContract {
|
||||
* Prefix for column names that are not visible to client apps.
|
||||
* @hide
|
||||
*/
|
||||
@TestApi
|
||||
public static final String HIDDEN_COLUMN_PREFIX = "x_";
|
||||
|
||||
/**
|
||||
@@ -8444,6 +8445,7 @@ public final class ContactsContract {
|
||||
* nothing will be done.
|
||||
* @hide
|
||||
*/
|
||||
@TestApi
|
||||
public static final String UNDEMOTE_METHOD = "undemote";
|
||||
|
||||
/**
|
||||
|
||||
@@ -104,6 +104,11 @@ public final class MediaStore {
|
||||
*/
|
||||
public static final String VOLUME_EXTERNAL = "external";
|
||||
|
||||
/** {@hide} */ @TestApi
|
||||
public static final String SCAN_FILE_CALL = "scan_file";
|
||||
/** {@hide} */ @TestApi
|
||||
public static final String SCAN_VOLUME_CALL = "scan_volume";
|
||||
|
||||
/**
|
||||
* The method name used by the media scanner and mtp to tell the media provider to
|
||||
* rescan and reclassify that have become unhidden because of renaming folders or
|
||||
@@ -2992,6 +2997,7 @@ public final class MediaStore {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@TestApi
|
||||
public static @NonNull File getVolumePath(@NonNull String volumeName)
|
||||
throws FileNotFoundException {
|
||||
if (TextUtils.isEmpty(volumeName)) {
|
||||
@@ -3022,6 +3028,7 @@ public final class MediaStore {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@TestApi
|
||||
public static @NonNull Collection<File> getVolumeScanPaths(@NonNull String volumeName)
|
||||
throws FileNotFoundException {
|
||||
if (TextUtils.isEmpty(volumeName)) {
|
||||
|
||||
@@ -18,6 +18,7 @@ package android.provider;
|
||||
|
||||
import android.annotation.SdkConstant;
|
||||
import android.annotation.SdkConstant.SdkConstantType;
|
||||
import android.annotation.TestApi;
|
||||
import android.content.ComponentName;
|
||||
import android.content.ContentResolver;
|
||||
import android.content.ContentValues;
|
||||
@@ -289,6 +290,7 @@ public class VoicemailContract {
|
||||
* Path to the media content file. Internal only field.
|
||||
* @hide
|
||||
*/
|
||||
@TestApi
|
||||
public static final String _DATA = "_data";
|
||||
|
||||
// Note: PHONE_ACCOUNT_* constant values are "subscription_*" due to a historic naming
|
||||
|
||||
Reference in New Issue
Block a user