diff options
author | 2019-02-22 11:55:36 -0800 | |
---|---|---|
committer | 2019-02-22 14:15:30 -0800 | |
commit | 91f0d2d205a3348eb3ee1412f28e97eb307a2c1c (patch) | |
tree | 7bf85a13a918a7ac93c324891d043741ee3ba0d0 /location | |
parent | 5ccf21b38291ee0c662e7ff7d58797dfb1acca6e (diff) |
Remove cross process dump() call
This call has never worked in testing, and adds a significant penalty to
dumping LocationManagerService.
Bug: 125313528
Test: manually
Change-Id: Ia455578e2b941c5a0888abb79a13adc0bb55729a
Diffstat (limited to 'location')
-rw-r--r-- | location/lib/api/current.txt | 2 | ||||
-rw-r--r-- | location/lib/java/com/android/location/provider/LocationProviderBase.java | 9 |
2 files changed, 4 insertions, 7 deletions
diff --git a/location/lib/api/current.txt b/location/lib/api/current.txt index dbb581fe54b2..d1b39b350d73 100644 --- a/location/lib/api/current.txt +++ b/location/lib/api/current.txt @@ -11,7 +11,7 @@ package com.android.location.provider { method public android.os.IBinder getBinder(); method public boolean isEnabled(); method @Deprecated protected void onDisable(); - method protected void onDump(java.io.FileDescriptor, java.io.PrintWriter, String[]); + method @Deprecated protected void onDump(java.io.FileDescriptor, java.io.PrintWriter, String[]); method @Deprecated protected void onEnable(); method @Deprecated protected int onGetStatus(android.os.Bundle); method @Deprecated protected long onGetStatusUpdateTime(); diff --git a/location/lib/java/com/android/location/provider/LocationProviderBase.java b/location/lib/java/com/android/location/provider/LocationProviderBase.java index 7cd7207c26a0..fa113a8aa3ef 100644 --- a/location/lib/java/com/android/location/provider/LocationProviderBase.java +++ b/location/lib/java/com/android/location/provider/LocationProviderBase.java @@ -240,8 +240,10 @@ public abstract class LocationProviderBase { protected abstract void onSetRequest(ProviderRequestUnbundled request, WorkSource source); /** - * Dump debug information. + * @deprecated This callback will never be invoked on Android Q and above. This method may be + * removed in the future. Prefer to dump provider state via the containing service instead. */ + @Deprecated protected void onDump(FileDescriptor fd, PrintWriter pw, String[] args) {} /** @@ -336,10 +338,5 @@ public abstract class LocationProviderBase { public void sendExtraCommand(String command, Bundle extras) { onSendExtraCommand(command, extras); } - - @Override - public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { - onDump(fd, pw, args); - } } } |