Loading api/system-current.txt +4 −0 Original line number Diff line number Diff line Loading @@ -1036,6 +1036,10 @@ package android.bluetooth.le { package android.content { public class ContentProviderClient implements java.lang.AutoCloseable android.content.ContentInterface { method public void setDetectNotResponding(long); } public abstract class Context { method public boolean bindServiceAsUser(android.content.Intent, android.content.ServiceConnection, int, android.os.UserHandle); method public abstract android.content.Context createCredentialProtectedStorageContext(); Loading api/test-current.txt +4 −0 Original line number Diff line number Diff line Loading @@ -299,6 +299,10 @@ package android.bluetooth { package android.content { public class ContentProviderClient implements java.lang.AutoCloseable android.content.ContentInterface { method public void setDetectNotResponding(long); } public abstract class ContentResolver implements android.content.ContentInterface { method public static java.lang.String[] getSyncAdapterPackagesForAuthorityAsUser(java.lang.String, int); } Loading core/java/android/content/ContentProviderClient.java +18 −2 Original line number Diff line number Diff line Loading @@ -16,8 +16,12 @@ package android.content; import android.annotation.DurationMillisLong; import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.RequiresPermission; import android.annotation.SystemApi; import android.annotation.TestApi; import android.annotation.UnsupportedAppUsage; import android.content.res.AssetFileDescriptor; import android.database.CrossProcessCursorWrapper; Loading Loading @@ -106,8 +110,20 @@ public class ContentProviderClient implements ContentInterface, AutoCloseable { mCloseGuard.open("close"); } /** {@hide} */ public void setDetectNotResponding(long timeoutMillis) { /** * Configure this client to automatically detect and kill the remote * provider when an "application not responding" event is detected. * * @param timeoutMillis the duration for which a pending call is allowed * block before the remote provider is considered to be * unresponsive. Set to {@code 0} to allow pending calls to block * indefinitely with no action taken. * @hide */ @SystemApi @TestApi @RequiresPermission(android.Manifest.permission.REMOVE_TASKS) public void setDetectNotResponding(@DurationMillisLong long timeoutMillis) { synchronized (ContentProviderClient.class) { mAnrTimeout = timeoutMillis; Loading packages/Shell/AndroidManifest.xml +1 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ <uses-permission android:name="android.permission.REAL_GET_TASKS" /> <uses-permission android:name="android.permission.CHANGE_CONFIGURATION" /> <uses-permission android:name="android.permission.REORDER_TASKS" /> <uses-permission android:name="android.permission.REMOVE_TASKS" /> <uses-permission android:name="android.permission.SET_ANIMATION_SCALE" /> <uses-permission android:name="android.permission.SET_PREFERRED_APPLICATIONS" /> <uses-permission android:name="android.permission.WRITE_SETTINGS" /> Loading Loading
api/system-current.txt +4 −0 Original line number Diff line number Diff line Loading @@ -1036,6 +1036,10 @@ package android.bluetooth.le { package android.content { public class ContentProviderClient implements java.lang.AutoCloseable android.content.ContentInterface { method public void setDetectNotResponding(long); } public abstract class Context { method public boolean bindServiceAsUser(android.content.Intent, android.content.ServiceConnection, int, android.os.UserHandle); method public abstract android.content.Context createCredentialProtectedStorageContext(); Loading
api/test-current.txt +4 −0 Original line number Diff line number Diff line Loading @@ -299,6 +299,10 @@ package android.bluetooth { package android.content { public class ContentProviderClient implements java.lang.AutoCloseable android.content.ContentInterface { method public void setDetectNotResponding(long); } public abstract class ContentResolver implements android.content.ContentInterface { method public static java.lang.String[] getSyncAdapterPackagesForAuthorityAsUser(java.lang.String, int); } Loading
core/java/android/content/ContentProviderClient.java +18 −2 Original line number Diff line number Diff line Loading @@ -16,8 +16,12 @@ package android.content; import android.annotation.DurationMillisLong; import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.RequiresPermission; import android.annotation.SystemApi; import android.annotation.TestApi; import android.annotation.UnsupportedAppUsage; import android.content.res.AssetFileDescriptor; import android.database.CrossProcessCursorWrapper; Loading Loading @@ -106,8 +110,20 @@ public class ContentProviderClient implements ContentInterface, AutoCloseable { mCloseGuard.open("close"); } /** {@hide} */ public void setDetectNotResponding(long timeoutMillis) { /** * Configure this client to automatically detect and kill the remote * provider when an "application not responding" event is detected. * * @param timeoutMillis the duration for which a pending call is allowed * block before the remote provider is considered to be * unresponsive. Set to {@code 0} to allow pending calls to block * indefinitely with no action taken. * @hide */ @SystemApi @TestApi @RequiresPermission(android.Manifest.permission.REMOVE_TASKS) public void setDetectNotResponding(@DurationMillisLong long timeoutMillis) { synchronized (ContentProviderClient.class) { mAnrTimeout = timeoutMillis; Loading
packages/Shell/AndroidManifest.xml +1 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ <uses-permission android:name="android.permission.REAL_GET_TASKS" /> <uses-permission android:name="android.permission.CHANGE_CONFIGURATION" /> <uses-permission android:name="android.permission.REORDER_TASKS" /> <uses-permission android:name="android.permission.REMOVE_TASKS" /> <uses-permission android:name="android.permission.SET_ANIMATION_SCALE" /> <uses-permission android:name="android.permission.SET_PREFERRED_APPLICATIONS" /> <uses-permission android:name="android.permission.WRITE_SETTINGS" /> Loading