Loading core/java/android/accounts/AccountManager.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -1916,7 +1916,8 @@ public class AccountManager { * * * <p>It is safe to call this method from the main thread. * <p>It is safe to call this method from the main thread. * * * <p>No permission is required to call this method. * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#GET_ACCOUNTS}. * * * @param listener The listener to send notifications to * @param listener The listener to send notifications to * @param handler {@link Handler} identifying the thread to use * @param handler {@link Handler} identifying the thread to use Loading core/java/android/app/DownloadManager.java +3 −0 Original line number Original line Diff line number Diff line Loading @@ -51,6 +51,9 @@ import java.util.List; * Apps that request downloads through this API should register a broadcast receiver for * Apps that request downloads through this API should register a broadcast receiver for * {@link #ACTION_NOTIFICATION_CLICKED} to appropriately handle when the user clicks on a running * {@link #ACTION_NOTIFICATION_CLICKED} to appropriately handle when the user clicks on a running * download in a notification or from the downloads UI. * download in a notification or from the downloads UI. * * Note that the application must have the {@link android.Manifest.permission#INTERNET} * permission to use this class. */ */ public class DownloadManager { public class DownloadManager { Loading core/java/android/app/KeyguardManager.java +9 −0 Original line number Original line Diff line number Diff line Loading @@ -62,6 +62,9 @@ public class KeyguardManager { * Note: This call has no effect while any {@link android.app.admin.DevicePolicyManager} * Note: This call has no effect while any {@link android.app.admin.DevicePolicyManager} * is enabled that requires a password. * is enabled that requires a password. * * * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#DISABLE_KEYGUARD}. * * @see #reenableKeyguard() * @see #reenableKeyguard() */ */ public void disableKeyguard() { public void disableKeyguard() { Loading @@ -80,6 +83,9 @@ public class KeyguardManager { * Note: This call has no effect while any {@link android.app.admin.DevicePolicyManager} * Note: This call has no effect while any {@link android.app.admin.DevicePolicyManager} * is enabled that requires a password. * is enabled that requires a password. * * * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#DISABLE_KEYGUARD}. * * @see #disableKeyguard() * @see #disableKeyguard() */ */ public void reenableKeyguard() { public void reenableKeyguard() { Loading Loading @@ -188,6 +194,9 @@ public class KeyguardManager { * This will, if the keyguard is secure, bring up the unlock screen of * This will, if the keyguard is secure, bring up the unlock screen of * the keyguard. * the keyguard. * * * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#DISABLE_KEYGUARD}. * * @param callback Let's you know whether the operation was succesful and * @param callback Let's you know whether the operation was succesful and * it is safe to launch anything that would normally be considered safe * it is safe to launch anything that would normally be considered safe * once the user has gotten past the keyguard. * once the user has gotten past the keyguard. Loading core/java/android/app/WallpaperManager.java +15 −0 Original line number Original line Diff line number Diff line Loading @@ -468,6 +468,9 @@ public class WallpaperManager { * wallpaper; it must be a valid PNG or JPEG image. On success, the intent * wallpaper; it must be a valid PNG or JPEG image. On success, the intent * {@link Intent#ACTION_WALLPAPER_CHANGED} is broadcast. * {@link Intent#ACTION_WALLPAPER_CHANGED} is broadcast. * * * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#SET_WALLPAPER}. * * @param resid The bitmap to save. * @param resid The bitmap to save. * * * @throws IOException If an error occurs reverting to the default * @throws IOException If an error occurs reverting to the default Loading Loading @@ -504,6 +507,9 @@ public class WallpaperManager { * converted to a PNG and stored as the wallpaper. On success, the intent * converted to a PNG and stored as the wallpaper. On success, the intent * {@link Intent#ACTION_WALLPAPER_CHANGED} is broadcast. * {@link Intent#ACTION_WALLPAPER_CHANGED} is broadcast. * * * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#SET_WALLPAPER}. * * @param bitmap The bitmap to save. * @param bitmap The bitmap to save. * * * @throws IOException If an error occurs reverting to the default * @throws IOException If an error occurs reverting to the default Loading Loading @@ -540,6 +546,9 @@ public class WallpaperManager { * image. On success, the intent {@link Intent#ACTION_WALLPAPER_CHANGED} * image. On success, the intent {@link Intent#ACTION_WALLPAPER_CHANGED} * is broadcast. * is broadcast. * * * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#SET_WALLPAPER}. * * @param data A stream containing the raw data to install as a wallpaper. * @param data A stream containing the raw data to install as a wallpaper. * * * @throws IOException If an error occurs reverting to the default * @throws IOException If an error occurs reverting to the default Loading Loading @@ -645,6 +654,9 @@ public class WallpaperManager { * <b>retrieve</b> the suggested size so they can construct a wallpaper * <b>retrieve</b> the suggested size so they can construct a wallpaper * that matches it. * that matches it. * * * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#SET_WALLPAPER_HINTS}. * * @param minimumWidth Desired minimum width * @param minimumWidth Desired minimum width * @param minimumHeight Desired minimum height * @param minimumHeight Desired minimum height */ */ Loading Loading @@ -746,6 +758,9 @@ public class WallpaperManager { * wallpaper. On success, the intent {@link Intent#ACTION_WALLPAPER_CHANGED} * wallpaper. On success, the intent {@link Intent#ACTION_WALLPAPER_CHANGED} * is broadcast. * is broadcast. * * * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#SET_WALLPAPER}. * * @throws IOException If an error occurs reverting to the default * @throws IOException If an error occurs reverting to the default * wallpaper. * wallpaper. */ */ Loading core/java/android/content/ContentResolver.java +30 −0 Original line number Original line Diff line number Diff line Loading @@ -1415,6 +1415,8 @@ public abstract class ContentResolver { /** /** * Check if the provider should be synced when a network tickle is received * Check if the provider should be synced when a network tickle is received * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#READ_SYNC_SETTINGS}. * * * @param account the account whose setting we are querying * @param account the account whose setting we are querying * @param authority the provider whose setting we are querying * @param authority the provider whose setting we are querying Loading @@ -1430,6 +1432,8 @@ public abstract class ContentResolver { /** /** * Set whether or not the provider is synced when it receives a network tickle. * Set whether or not the provider is synced when it receives a network tickle. * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#WRITE_SYNC_SETTINGS}. * * * @param account the account whose setting we are querying * @param account the account whose setting we are querying * @param authority the provider whose behavior is being controlled * @param authority the provider whose behavior is being controlled Loading Loading @@ -1461,6 +1465,9 @@ public abstract class ContentResolver { * {@link #SYNC_EXTRAS_EXPEDITED}, {@link #SYNC_EXTRAS_MANUAL} set to true. * {@link #SYNC_EXTRAS_EXPEDITED}, {@link #SYNC_EXTRAS_MANUAL} set to true. * If any are supplied then an {@link IllegalArgumentException} will be thrown. * If any are supplied then an {@link IllegalArgumentException} will be thrown. * * * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#WRITE_SYNC_SETTINGS}. * * @param account the account to specify in the sync * @param account the account to specify in the sync * @param authority the provider to specify in the sync request * @param authority the provider to specify in the sync request * @param extras extra parameters to go along with the sync request * @param extras extra parameters to go along with the sync request Loading Loading @@ -1497,6 +1504,8 @@ public abstract class ContentResolver { /** /** * Remove a periodic sync. Has no affect if account, authority and extras don't match * Remove a periodic sync. Has no affect if account, authority and extras don't match * an existing periodic sync. * an existing periodic sync. * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#WRITE_SYNC_SETTINGS}. * * * @param account the account of the periodic sync to remove * @param account the account of the periodic sync to remove * @param authority the provider of the periodic sync to remove * @param authority the provider of the periodic sync to remove Loading @@ -1519,6 +1528,8 @@ public abstract class ContentResolver { /** /** * Get the list of information about the periodic syncs for the given account and authority. * Get the list of information about the periodic syncs for the given account and authority. * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#READ_SYNC_SETTINGS}. * * * @param account the account whose periodic syncs we are querying * @param account the account whose periodic syncs we are querying * @param authority the provider whose periodic syncs we are querying * @param authority the provider whose periodic syncs we are querying Loading @@ -1540,6 +1551,8 @@ public abstract class ContentResolver { /** /** * Check if this account/provider is syncable. * Check if this account/provider is syncable. * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#READ_SYNC_SETTINGS}. * @return >0 if it is syncable, 0 if not, and <0 if the state isn't known yet. * @return >0 if it is syncable, 0 if not, and <0 if the state isn't known yet. */ */ public static int getIsSyncable(Account account, String authority) { public static int getIsSyncable(Account account, String authority) { Loading @@ -1552,6 +1565,8 @@ public abstract class ContentResolver { /** /** * Set whether this account/provider is syncable. * Set whether this account/provider is syncable. * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#WRITE_SYNC_SETTINGS}. * @param syncable >0 denotes syncable, 0 means not syncable, <0 means unknown * @param syncable >0 denotes syncable, 0 means not syncable, <0 means unknown */ */ public static void setIsSyncable(Account account, String authority, int syncable) { public static void setIsSyncable(Account account, String authority, int syncable) { Loading @@ -1566,6 +1581,8 @@ public abstract class ContentResolver { /** /** * Gets the master auto-sync setting that applies to all the providers and accounts. * Gets the master auto-sync setting that applies to all the providers and accounts. * If this is false then the per-provider auto-sync setting is ignored. * If this is false then the per-provider auto-sync setting is ignored. * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#READ_SYNC_SETTINGS}. * * * @return the master auto-sync setting that applies to all the providers and accounts * @return the master auto-sync setting that applies to all the providers and accounts */ */ Loading @@ -1580,6 +1597,8 @@ public abstract class ContentResolver { /** /** * Sets the master auto-sync setting that applies to all the providers and accounts. * Sets the master auto-sync setting that applies to all the providers and accounts. * If this is false then the per-provider auto-sync setting is ignored. * If this is false then the per-provider auto-sync setting is ignored. * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#WRITE_SYNC_SETTINGS}. * * * @param sync the master auto-sync setting that applies to all the providers and accounts * @param sync the master auto-sync setting that applies to all the providers and accounts */ */ Loading @@ -1595,6 +1614,8 @@ public abstract class ContentResolver { /** /** * Returns true if there is currently a sync operation for the given * Returns true if there is currently a sync operation for the given * account or authority in the pending list, or actively being processed. * account or authority in the pending list, or actively being processed. * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#READ_SYNC_STATS}. * @param account the account whose setting we are querying * @param account the account whose setting we are querying * @param authority the provider whose behavior is being queried * @param authority the provider whose behavior is being queried * @return true if a sync is active for the given account or authority. * @return true if a sync is active for the given account or authority. Loading @@ -1610,6 +1631,9 @@ public abstract class ContentResolver { /** /** * If a sync is active returns the information about it, otherwise returns null. * If a sync is active returns the information about it, otherwise returns null. * <p> * <p> * This method requires the caller to hold the permission * {@link android.Manifest.permission#READ_SYNC_STATS}. * <p> * @return the SyncInfo for the currently active sync or null if one is not active. * @return the SyncInfo for the currently active sync or null if one is not active. * @deprecated * @deprecated * Since multiple concurrent syncs are now supported you should use * Since multiple concurrent syncs are now supported you should use Loading @@ -1633,6 +1657,10 @@ public abstract class ContentResolver { /** /** * Returns a list with information about all the active syncs. This list will be empty * Returns a list with information about all the active syncs. This list will be empty * if there are no active syncs. * if there are no active syncs. * <p> * This method requires the caller to hold the permission * {@link android.Manifest.permission#READ_SYNC_STATS}. * <p> * @return a List of SyncInfo objects for the currently active syncs. * @return a List of SyncInfo objects for the currently active syncs. */ */ public static List<SyncInfo> getCurrentSyncs() { public static List<SyncInfo> getCurrentSyncs() { Loading Loading @@ -1660,6 +1688,8 @@ public abstract class ContentResolver { /** /** * Return true if the pending status is true of any matching authorities. * Return true if the pending status is true of any matching authorities. * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#READ_SYNC_STATS}. * @param account the account whose setting we are querying * @param account the account whose setting we are querying * @param authority the provider whose behavior is being queried * @param authority the provider whose behavior is being queried * @return true if there is a pending sync with the matching account and authority * @return true if there is a pending sync with the matching account and authority Loading Loading
core/java/android/accounts/AccountManager.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -1916,7 +1916,8 @@ public class AccountManager { * * * <p>It is safe to call this method from the main thread. * <p>It is safe to call this method from the main thread. * * * <p>No permission is required to call this method. * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#GET_ACCOUNTS}. * * * @param listener The listener to send notifications to * @param listener The listener to send notifications to * @param handler {@link Handler} identifying the thread to use * @param handler {@link Handler} identifying the thread to use Loading
core/java/android/app/DownloadManager.java +3 −0 Original line number Original line Diff line number Diff line Loading @@ -51,6 +51,9 @@ import java.util.List; * Apps that request downloads through this API should register a broadcast receiver for * Apps that request downloads through this API should register a broadcast receiver for * {@link #ACTION_NOTIFICATION_CLICKED} to appropriately handle when the user clicks on a running * {@link #ACTION_NOTIFICATION_CLICKED} to appropriately handle when the user clicks on a running * download in a notification or from the downloads UI. * download in a notification or from the downloads UI. * * Note that the application must have the {@link android.Manifest.permission#INTERNET} * permission to use this class. */ */ public class DownloadManager { public class DownloadManager { Loading
core/java/android/app/KeyguardManager.java +9 −0 Original line number Original line Diff line number Diff line Loading @@ -62,6 +62,9 @@ public class KeyguardManager { * Note: This call has no effect while any {@link android.app.admin.DevicePolicyManager} * Note: This call has no effect while any {@link android.app.admin.DevicePolicyManager} * is enabled that requires a password. * is enabled that requires a password. * * * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#DISABLE_KEYGUARD}. * * @see #reenableKeyguard() * @see #reenableKeyguard() */ */ public void disableKeyguard() { public void disableKeyguard() { Loading @@ -80,6 +83,9 @@ public class KeyguardManager { * Note: This call has no effect while any {@link android.app.admin.DevicePolicyManager} * Note: This call has no effect while any {@link android.app.admin.DevicePolicyManager} * is enabled that requires a password. * is enabled that requires a password. * * * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#DISABLE_KEYGUARD}. * * @see #disableKeyguard() * @see #disableKeyguard() */ */ public void reenableKeyguard() { public void reenableKeyguard() { Loading Loading @@ -188,6 +194,9 @@ public class KeyguardManager { * This will, if the keyguard is secure, bring up the unlock screen of * This will, if the keyguard is secure, bring up the unlock screen of * the keyguard. * the keyguard. * * * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#DISABLE_KEYGUARD}. * * @param callback Let's you know whether the operation was succesful and * @param callback Let's you know whether the operation was succesful and * it is safe to launch anything that would normally be considered safe * it is safe to launch anything that would normally be considered safe * once the user has gotten past the keyguard. * once the user has gotten past the keyguard. Loading
core/java/android/app/WallpaperManager.java +15 −0 Original line number Original line Diff line number Diff line Loading @@ -468,6 +468,9 @@ public class WallpaperManager { * wallpaper; it must be a valid PNG or JPEG image. On success, the intent * wallpaper; it must be a valid PNG or JPEG image. On success, the intent * {@link Intent#ACTION_WALLPAPER_CHANGED} is broadcast. * {@link Intent#ACTION_WALLPAPER_CHANGED} is broadcast. * * * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#SET_WALLPAPER}. * * @param resid The bitmap to save. * @param resid The bitmap to save. * * * @throws IOException If an error occurs reverting to the default * @throws IOException If an error occurs reverting to the default Loading Loading @@ -504,6 +507,9 @@ public class WallpaperManager { * converted to a PNG and stored as the wallpaper. On success, the intent * converted to a PNG and stored as the wallpaper. On success, the intent * {@link Intent#ACTION_WALLPAPER_CHANGED} is broadcast. * {@link Intent#ACTION_WALLPAPER_CHANGED} is broadcast. * * * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#SET_WALLPAPER}. * * @param bitmap The bitmap to save. * @param bitmap The bitmap to save. * * * @throws IOException If an error occurs reverting to the default * @throws IOException If an error occurs reverting to the default Loading Loading @@ -540,6 +546,9 @@ public class WallpaperManager { * image. On success, the intent {@link Intent#ACTION_WALLPAPER_CHANGED} * image. On success, the intent {@link Intent#ACTION_WALLPAPER_CHANGED} * is broadcast. * is broadcast. * * * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#SET_WALLPAPER}. * * @param data A stream containing the raw data to install as a wallpaper. * @param data A stream containing the raw data to install as a wallpaper. * * * @throws IOException If an error occurs reverting to the default * @throws IOException If an error occurs reverting to the default Loading Loading @@ -645,6 +654,9 @@ public class WallpaperManager { * <b>retrieve</b> the suggested size so they can construct a wallpaper * <b>retrieve</b> the suggested size so they can construct a wallpaper * that matches it. * that matches it. * * * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#SET_WALLPAPER_HINTS}. * * @param minimumWidth Desired minimum width * @param minimumWidth Desired minimum width * @param minimumHeight Desired minimum height * @param minimumHeight Desired minimum height */ */ Loading Loading @@ -746,6 +758,9 @@ public class WallpaperManager { * wallpaper. On success, the intent {@link Intent#ACTION_WALLPAPER_CHANGED} * wallpaper. On success, the intent {@link Intent#ACTION_WALLPAPER_CHANGED} * is broadcast. * is broadcast. * * * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#SET_WALLPAPER}. * * @throws IOException If an error occurs reverting to the default * @throws IOException If an error occurs reverting to the default * wallpaper. * wallpaper. */ */ Loading
core/java/android/content/ContentResolver.java +30 −0 Original line number Original line Diff line number Diff line Loading @@ -1415,6 +1415,8 @@ public abstract class ContentResolver { /** /** * Check if the provider should be synced when a network tickle is received * Check if the provider should be synced when a network tickle is received * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#READ_SYNC_SETTINGS}. * * * @param account the account whose setting we are querying * @param account the account whose setting we are querying * @param authority the provider whose setting we are querying * @param authority the provider whose setting we are querying Loading @@ -1430,6 +1432,8 @@ public abstract class ContentResolver { /** /** * Set whether or not the provider is synced when it receives a network tickle. * Set whether or not the provider is synced when it receives a network tickle. * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#WRITE_SYNC_SETTINGS}. * * * @param account the account whose setting we are querying * @param account the account whose setting we are querying * @param authority the provider whose behavior is being controlled * @param authority the provider whose behavior is being controlled Loading Loading @@ -1461,6 +1465,9 @@ public abstract class ContentResolver { * {@link #SYNC_EXTRAS_EXPEDITED}, {@link #SYNC_EXTRAS_MANUAL} set to true. * {@link #SYNC_EXTRAS_EXPEDITED}, {@link #SYNC_EXTRAS_MANUAL} set to true. * If any are supplied then an {@link IllegalArgumentException} will be thrown. * If any are supplied then an {@link IllegalArgumentException} will be thrown. * * * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#WRITE_SYNC_SETTINGS}. * * @param account the account to specify in the sync * @param account the account to specify in the sync * @param authority the provider to specify in the sync request * @param authority the provider to specify in the sync request * @param extras extra parameters to go along with the sync request * @param extras extra parameters to go along with the sync request Loading Loading @@ -1497,6 +1504,8 @@ public abstract class ContentResolver { /** /** * Remove a periodic sync. Has no affect if account, authority and extras don't match * Remove a periodic sync. Has no affect if account, authority and extras don't match * an existing periodic sync. * an existing periodic sync. * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#WRITE_SYNC_SETTINGS}. * * * @param account the account of the periodic sync to remove * @param account the account of the periodic sync to remove * @param authority the provider of the periodic sync to remove * @param authority the provider of the periodic sync to remove Loading @@ -1519,6 +1528,8 @@ public abstract class ContentResolver { /** /** * Get the list of information about the periodic syncs for the given account and authority. * Get the list of information about the periodic syncs for the given account and authority. * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#READ_SYNC_SETTINGS}. * * * @param account the account whose periodic syncs we are querying * @param account the account whose periodic syncs we are querying * @param authority the provider whose periodic syncs we are querying * @param authority the provider whose periodic syncs we are querying Loading @@ -1540,6 +1551,8 @@ public abstract class ContentResolver { /** /** * Check if this account/provider is syncable. * Check if this account/provider is syncable. * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#READ_SYNC_SETTINGS}. * @return >0 if it is syncable, 0 if not, and <0 if the state isn't known yet. * @return >0 if it is syncable, 0 if not, and <0 if the state isn't known yet. */ */ public static int getIsSyncable(Account account, String authority) { public static int getIsSyncable(Account account, String authority) { Loading @@ -1552,6 +1565,8 @@ public abstract class ContentResolver { /** /** * Set whether this account/provider is syncable. * Set whether this account/provider is syncable. * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#WRITE_SYNC_SETTINGS}. * @param syncable >0 denotes syncable, 0 means not syncable, <0 means unknown * @param syncable >0 denotes syncable, 0 means not syncable, <0 means unknown */ */ public static void setIsSyncable(Account account, String authority, int syncable) { public static void setIsSyncable(Account account, String authority, int syncable) { Loading @@ -1566,6 +1581,8 @@ public abstract class ContentResolver { /** /** * Gets the master auto-sync setting that applies to all the providers and accounts. * Gets the master auto-sync setting that applies to all the providers and accounts. * If this is false then the per-provider auto-sync setting is ignored. * If this is false then the per-provider auto-sync setting is ignored. * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#READ_SYNC_SETTINGS}. * * * @return the master auto-sync setting that applies to all the providers and accounts * @return the master auto-sync setting that applies to all the providers and accounts */ */ Loading @@ -1580,6 +1597,8 @@ public abstract class ContentResolver { /** /** * Sets the master auto-sync setting that applies to all the providers and accounts. * Sets the master auto-sync setting that applies to all the providers and accounts. * If this is false then the per-provider auto-sync setting is ignored. * If this is false then the per-provider auto-sync setting is ignored. * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#WRITE_SYNC_SETTINGS}. * * * @param sync the master auto-sync setting that applies to all the providers and accounts * @param sync the master auto-sync setting that applies to all the providers and accounts */ */ Loading @@ -1595,6 +1614,8 @@ public abstract class ContentResolver { /** /** * Returns true if there is currently a sync operation for the given * Returns true if there is currently a sync operation for the given * account or authority in the pending list, or actively being processed. * account or authority in the pending list, or actively being processed. * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#READ_SYNC_STATS}. * @param account the account whose setting we are querying * @param account the account whose setting we are querying * @param authority the provider whose behavior is being queried * @param authority the provider whose behavior is being queried * @return true if a sync is active for the given account or authority. * @return true if a sync is active for the given account or authority. Loading @@ -1610,6 +1631,9 @@ public abstract class ContentResolver { /** /** * If a sync is active returns the information about it, otherwise returns null. * If a sync is active returns the information about it, otherwise returns null. * <p> * <p> * This method requires the caller to hold the permission * {@link android.Manifest.permission#READ_SYNC_STATS}. * <p> * @return the SyncInfo for the currently active sync or null if one is not active. * @return the SyncInfo for the currently active sync or null if one is not active. * @deprecated * @deprecated * Since multiple concurrent syncs are now supported you should use * Since multiple concurrent syncs are now supported you should use Loading @@ -1633,6 +1657,10 @@ public abstract class ContentResolver { /** /** * Returns a list with information about all the active syncs. This list will be empty * Returns a list with information about all the active syncs. This list will be empty * if there are no active syncs. * if there are no active syncs. * <p> * This method requires the caller to hold the permission * {@link android.Manifest.permission#READ_SYNC_STATS}. * <p> * @return a List of SyncInfo objects for the currently active syncs. * @return a List of SyncInfo objects for the currently active syncs. */ */ public static List<SyncInfo> getCurrentSyncs() { public static List<SyncInfo> getCurrentSyncs() { Loading Loading @@ -1660,6 +1688,8 @@ public abstract class ContentResolver { /** /** * Return true if the pending status is true of any matching authorities. * Return true if the pending status is true of any matching authorities. * <p>This method requires the caller to hold the permission * {@link android.Manifest.permission#READ_SYNC_STATS}. * @param account the account whose setting we are querying * @param account the account whose setting we are querying * @param authority the provider whose behavior is being queried * @param authority the provider whose behavior is being queried * @return true if there is a pending sync with the matching account and authority * @return true if there is a pending sync with the matching account and authority Loading