summaryrefslogtreecommitdiffstats
path: root/core/java/android/provider/Settings.java
diff options
context:
space:
mode:
authorJeremy Joslin <jjoslin@google.com>2014-12-03 17:15:28 -0800
committerJeremy Joslin <jjoslin@google.com>2014-12-05 14:58:04 -0800
commit7929484dbf0f6eda75641f8b965d3ed5fa1fed52 (patch)
treecedc66bd807a25097e08990c1b6052f63a7568ff /core/java/android/provider/Settings.java
parent0c1a5bea2eb897b3f1d34b9c25ea6ed0bd5ca6eb (diff)
downloadframeworks_base-7929484dbf0f6eda75641f8b965d3ed5fa1fed52.zip
frameworks_base-7929484dbf0f6eda75641f8b965d3ed5fa1fed52.tar.gz
frameworks_base-7929484dbf0f6eda75641f8b965d3ed5fa1fed52.tar.bz2
Don't send the same PendingIntent more than once.
Fixing a bug where a NetworkRequest's PendingIntent can be sent more than once when networks are rematched before the intent completes. Added a small delay before removing the request to give the receiving client an opportunity to put in its own request. The delay value is configurable via Settings.Secure. Bug: 18614074 Change-Id: Iac7c5e5a04f42f2b6794e9e22349cc631bebeab7
Diffstat (limited to 'core/java/android/provider/Settings.java')
-rw-r--r--core/java/android/provider/Settings.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java
index 0c036d51..0062eb2 100644
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -4349,6 +4349,16 @@ public final class Settings {
Global.WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS;
/**
+ * The number of milliseconds to hold on to a PendingIntent based request. This delay gives
+ * the receivers of the PendingIntent an opportunity to make a new network request before
+ * the Network satisfying the request is potentially removed.
+ *
+ * @hide
+ */
+ public static final String CONNECTIVITY_RELEASE_PENDING_INTENT_DELAY_MS =
+ "connectivity_release_pending_intent_delay_ms";
+
+ /**
* Whether background data usage is allowed.
*
* @deprecated As of {@link VERSION_CODES#ICE_CREAM_SANDWICH},