Loading api/current.txt +0 −2 Original line number Diff line number Diff line Loading @@ -10113,8 +10113,6 @@ package android.content.pm { method public java.util.List<android.content.pm.ShortcutInfo> getManifestShortcuts(); method public int getMaxShortcutCountPerActivity(); method public java.util.List<android.content.pm.ShortcutInfo> getPinnedShortcuts(); method public long getRateLimitResetTime(); method public int getRemainingCallCount(); method public void removeAllDynamicShortcuts(); method public void removeDynamicShortcuts(java.util.List<java.lang.String>); method public void reportShortcutUsed(java.lang.String); api/system-current.txt +0 −2 Original line number Diff line number Diff line Loading @@ -10538,8 +10538,6 @@ package android.content.pm { method public java.util.List<android.content.pm.ShortcutInfo> getManifestShortcuts(); method public int getMaxShortcutCountPerActivity(); method public java.util.List<android.content.pm.ShortcutInfo> getPinnedShortcuts(); method public long getRateLimitResetTime(); method public int getRemainingCallCount(); method public void removeAllDynamicShortcuts(); method public void removeDynamicShortcuts(java.util.List<java.lang.String>); method public void reportShortcutUsed(java.lang.String); api/test-current.txt +0 −2 Original line number Diff line number Diff line Loading @@ -10127,8 +10127,6 @@ package android.content.pm { method public java.util.List<android.content.pm.ShortcutInfo> getManifestShortcuts(); method public int getMaxShortcutCountPerActivity(); method public java.util.List<android.content.pm.ShortcutInfo> getPinnedShortcuts(); method public long getRateLimitResetTime(); method public int getRemainingCallCount(); method public void removeAllDynamicShortcuts(); method public void removeDynamicShortcuts(java.util.List<java.lang.String>); method public void reportShortcutUsed(java.lang.String); core/java/android/content/pm/ShortcutManager.java +4 −18 Original line number Diff line number Diff line Loading @@ -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> * Loading Loading @@ -328,6 +310,8 @@ public class ShortcutManager { * before the rate limit counter is reset. * * @see #getRateLimitResetTime() * * @hide */ public int getRemainingCallCount() { try { Loading @@ -342,6 +326,8 @@ public class ShortcutManager { * * @see #getRemainingCallCount() * @see System#currentTimeMillis() * * @hide */ public long getRateLimitResetTime() { try { Loading Loading
api/current.txt +0 −2 Original line number Diff line number Diff line Loading @@ -10113,8 +10113,6 @@ package android.content.pm { method public java.util.List<android.content.pm.ShortcutInfo> getManifestShortcuts(); method public int getMaxShortcutCountPerActivity(); method public java.util.List<android.content.pm.ShortcutInfo> getPinnedShortcuts(); method public long getRateLimitResetTime(); method public int getRemainingCallCount(); method public void removeAllDynamicShortcuts(); method public void removeDynamicShortcuts(java.util.List<java.lang.String>); method public void reportShortcutUsed(java.lang.String);
api/system-current.txt +0 −2 Original line number Diff line number Diff line Loading @@ -10538,8 +10538,6 @@ package android.content.pm { method public java.util.List<android.content.pm.ShortcutInfo> getManifestShortcuts(); method public int getMaxShortcutCountPerActivity(); method public java.util.List<android.content.pm.ShortcutInfo> getPinnedShortcuts(); method public long getRateLimitResetTime(); method public int getRemainingCallCount(); method public void removeAllDynamicShortcuts(); method public void removeDynamicShortcuts(java.util.List<java.lang.String>); method public void reportShortcutUsed(java.lang.String);
api/test-current.txt +0 −2 Original line number Diff line number Diff line Loading @@ -10127,8 +10127,6 @@ package android.content.pm { method public java.util.List<android.content.pm.ShortcutInfo> getManifestShortcuts(); method public int getMaxShortcutCountPerActivity(); method public java.util.List<android.content.pm.ShortcutInfo> getPinnedShortcuts(); method public long getRateLimitResetTime(); method public int getRemainingCallCount(); method public void removeAllDynamicShortcuts(); method public void removeDynamicShortcuts(java.util.List<java.lang.String>); method public void reportShortcutUsed(java.lang.String);
core/java/android/content/pm/ShortcutManager.java +4 −18 Original line number Diff line number Diff line Loading @@ -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> * Loading Loading @@ -328,6 +310,8 @@ public class ShortcutManager { * before the rate limit counter is reset. * * @see #getRateLimitResetTime() * * @hide */ public int getRemainingCallCount() { try { Loading @@ -342,6 +326,8 @@ public class ShortcutManager { * * @see #getRemainingCallCount() * @see System#currentTimeMillis() * * @hide */ public long getRateLimitResetTime() { try { Loading