Loading api/system-current.txt +3 −0 Original line number Diff line number Diff line Loading @@ -4647,9 +4647,12 @@ package android.util { } public final class StatsManager { method public boolean addConfiguration(java.lang.String, byte[], java.lang.String, java.lang.String); method public boolean addConfiguration(long, byte[], java.lang.String, java.lang.String); method public byte[] getData(java.lang.String); method public byte[] getData(long); method public byte[] getMetadata(); method public boolean removeConfiguration(java.lang.String); method public boolean removeConfiguration(long); } Loading core/java/android/util/StatsManager.java +29 −0 Original line number Diff line number Diff line Loading @@ -41,6 +41,16 @@ public final class StatsManager { public StatsManager() { } /** * Temporary to prevent build failures. Will be deleted. */ @RequiresPermission(Manifest.permission.DUMP) public boolean addConfiguration(String configKey, byte[] config, String pkg, String cls) { // To prevent breakages of dependencies on old API. return false; } /** * Clients can send a configuration and simultaneously registers the name of a broadcast * receiver that listens for when it should request data. Loading Loading @@ -69,6 +79,15 @@ public final class StatsManager { } } /** * Temporary to prevent build failures. Will be deleted. */ @RequiresPermission(Manifest.permission.DUMP) public boolean removeConfiguration(String configKey) { // To prevent breakages of old dependencies. return false; } /** * Remove a configuration from logging. * Loading @@ -92,6 +111,16 @@ public final class StatsManager { } } /** * Temporary to prevent build failures. Will be deleted. */ @RequiresPermission(Manifest.permission.DUMP) public byte[] getData(String configKey) { // TODO: remove this and all other methods with String-based config keys. // To prevent build breakages of dependencies. return null; } /** * Clients can request data with a binder call. This getter is destructive and also clears * the retrieved metrics from statsd memory. Loading Loading
api/system-current.txt +3 −0 Original line number Diff line number Diff line Loading @@ -4647,9 +4647,12 @@ package android.util { } public final class StatsManager { method public boolean addConfiguration(java.lang.String, byte[], java.lang.String, java.lang.String); method public boolean addConfiguration(long, byte[], java.lang.String, java.lang.String); method public byte[] getData(java.lang.String); method public byte[] getData(long); method public byte[] getMetadata(); method public boolean removeConfiguration(java.lang.String); method public boolean removeConfiguration(long); } Loading
core/java/android/util/StatsManager.java +29 −0 Original line number Diff line number Diff line Loading @@ -41,6 +41,16 @@ public final class StatsManager { public StatsManager() { } /** * Temporary to prevent build failures. Will be deleted. */ @RequiresPermission(Manifest.permission.DUMP) public boolean addConfiguration(String configKey, byte[] config, String pkg, String cls) { // To prevent breakages of dependencies on old API. return false; } /** * Clients can send a configuration and simultaneously registers the name of a broadcast * receiver that listens for when it should request data. Loading Loading @@ -69,6 +79,15 @@ public final class StatsManager { } } /** * Temporary to prevent build failures. Will be deleted. */ @RequiresPermission(Manifest.permission.DUMP) public boolean removeConfiguration(String configKey) { // To prevent breakages of old dependencies. return false; } /** * Remove a configuration from logging. * Loading @@ -92,6 +111,16 @@ public final class StatsManager { } } /** * Temporary to prevent build failures. Will be deleted. */ @RequiresPermission(Manifest.permission.DUMP) public byte[] getData(String configKey) { // TODO: remove this and all other methods with String-based config keys. // To prevent build breakages of dependencies. return null; } /** * Clients can request data with a binder call. This getter is destructive and also clears * the retrieved metrics from statsd memory. Loading