diff options
| author | Makoto Onuki <omakoto@google.com> | 2016-07-07 20:52:21 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2016-07-07 20:52:23 +0000 |
| commit | 07e234c9d7ecc9f2b8b7b7d1caf79ea2a920c7ea (patch) | |
| tree | 6e8a578a84dd6bba646940a6db82119bac9851a7 /core/java/android | |
| parent | f638978b07672a4d21253acd640ee5f8f937c8cb (diff) | |
| parent | f805b43da7f6d9b12993f9320d80587bc0d0d16a (diff) | |
Merge "Hide more shortcut APIs" into nyc-mr1-dev
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/content/pm/ShortcutManager.java | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/core/java/android/content/pm/ShortcutManager.java b/core/java/android/content/pm/ShortcutManager.java index 7b3c48717263..1af63a01ce2b 100644 --- a/core/java/android/content/pm/ShortcutManager.java +++ b/core/java/android/content/pm/ShortcutManager.java @@ -63,24 +63,6 @@ import java.util.List; * published, existing shortcuts with the same ID will be updated. Note this may include a * pinned shortcut. * - * <h3>Rate limiting</h3> - * - * Calls to {@link #setDynamicShortcuts(List)}, {@link #addDynamicShortcuts(List)}, - * and {@link #updateShortcuts(List)} from <b>background applications</b> will be - * rate-limited. An application can call these methods at most - * {@link #getRemainingCallCount()} times until the rate-limiting counter is reset, - * which happens at a certain time every day. - * - * <p>An application can use {@link #getRateLimitResetTime()} to get the next reset time. - * - * <p>Foreground applications (i.e. ones with a foreground activity or a foreground services) - * will not be throttled. Also, when an application comes to foreground, - * {@link #getRemainingCallCount()} will be reset to the initial value. - * - * <p>For testing purposes, use "Developer Options" (found in the Settings menu) to reset the - * internal rate-limiting counter. Automated tests can use the following ADB shell command to - * achieve the same effect:</p> - * <pre>adb shell cmd shortcut reset-throttling</pre> * * <h3>Backup and Restore</h3> * @@ -328,6 +310,8 @@ public class ShortcutManager { * before the rate limit counter is reset. * * @see #getRateLimitResetTime() + * + * @hide */ public int getRemainingCallCount() { try { @@ -342,6 +326,8 @@ public class ShortcutManager { * * @see #getRemainingCallCount() * @see System#currentTimeMillis() + * + * @hide */ public long getRateLimitResetTime() { try { |
