summaryrefslogtreecommitdiff
path: root/services/api
diff options
context:
space:
mode:
authorMuhammad Qureshi <muhammadq@google.com>2021-03-22 20:26:55 -0700
committerMuhammad Qureshi <muhammadq@google.com>2021-03-30 00:50:23 -0700
commitba6e2cf58e1d4d0ae50fd5d08080e39c2f16090d (patch)
treeddae289d14693a19572b13b089de476b2ec92cbf /services/api
parentd99447b68f69b80dfbc3572e5f9c198d9128b261 (diff)
Create SystemApi for statsd ready broadcast
The statsd ready broadcast needs to be sent from statsd apex with Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND flag that is @hide and cannot be promoted to @SystemApi. In R, this was worked around by getting the list of registered broadcast receivers and sending them directed broadcasts to wake them up in ag/10404099. However, this is inefficient if there are multiple receivers so this change creates a SystemApi for sending the actual broadcast with the flag as recommended in ag/10404099 after it was submitted. Bug: 150746848 Test: m Test: flash Test: ensure broadcast is received via logcat CTS-Coverage-Bug: 184014462 Change-Id: I5103d8c6e87bdb47930cb7457731050da3d8e566
Diffstat (limited to 'services/api')
-rw-r--r--services/api/current.txt8
-rw-r--r--services/api/non-updatable-current.txt8
2 files changed, 16 insertions, 0 deletions
diff --git a/services/api/current.txt b/services/api/current.txt
index a3e671520753..a0b1e3349e77 100644
--- a/services/api/current.txt
+++ b/services/api/current.txt
@@ -105,6 +105,14 @@ package com.android.server.role {
}
+package com.android.server.stats {
+
+ public final class StatsHelper {
+ method public static void sendStatsdReadyBroadcast(@NonNull android.content.Context);
+ }
+
+}
+
package com.android.server.wifi {
public class SupplicantManager {
diff --git a/services/api/non-updatable-current.txt b/services/api/non-updatable-current.txt
index f01c1824116c..475dcf5eb20e 100644
--- a/services/api/non-updatable-current.txt
+++ b/services/api/non-updatable-current.txt
@@ -52,6 +52,14 @@ package com.android.server.role {
}
+package com.android.server.stats {
+
+ public final class StatsHelper {
+ method public static void sendStatsdReadyBroadcast(@NonNull android.content.Context);
+ }
+
+}
+
package com.android.server.wifi {
public class SupplicantManager {