diff options
| author | Alex Chau <alexchau@google.com> | 2018-01-17 14:46:03 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2018-01-17 14:46:03 +0000 |
| commit | 4f46813ebc76c51efb0d8d10263ac4e08af3cc71 (patch) | |
| tree | 7e4060427ca98b5827b10ea8f258310bb52a7a05 /core/java | |
| parent | f24977b523c17f276a236be6fea784f8d4ee32db (diff) | |
| parent | 4a4285bb5f6cdd62cd8a633f3c89c2e412726779 (diff) | |
Merge "API Review: Put executor argument before the listener argument for clearApplicationUserData"
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/app/admin/DevicePolicyManager.java | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java index 67b59f6ee97d..0455949a7cff 100644 --- a/core/java/android/app/admin/DevicePolicyManager.java +++ b/core/java/android/app/admin/DevicePolicyManager.java @@ -18,7 +18,6 @@ package android.app.admin; import android.annotation.CallbackExecutor; import android.annotation.ColorInt; -import android.annotation.Condemned; import android.annotation.IntDef; import android.annotation.NonNull; import android.annotation.Nullable; @@ -50,8 +49,6 @@ import android.graphics.Bitmap; import android.net.ProxyInfo; import android.net.Uri; import android.os.Bundle; -import android.os.Handler; -import android.os.HandlerExecutor; import android.os.Parcelable; import android.os.PersistableBundle; import android.os.Process; @@ -8983,15 +8980,6 @@ public class DevicePolicyManager { } } - /** {@hide} */ - @Condemned - @Deprecated - public boolean clearApplicationUserData(@NonNull ComponentName admin, - @NonNull String packageName, @NonNull OnClearApplicationUserDataListener listener, - @NonNull Handler handler) { - return clearApplicationUserData(admin, packageName, listener, new HandlerExecutor(handler)); - } - /** * Called by the device owner or profile owner to clear application user data of a given * package. The behaviour of this is equivalent to the target application calling @@ -9002,14 +8990,14 @@ public class DevicePolicyManager { * * @param admin Which {@link DeviceAdminReceiver} this request is associated with. * @param packageName The name of the package which will have its user data wiped. - * @param listener A callback object that will inform the caller when the clearing is done. * @param executor The executor through which the listener should be invoked. + * @param listener A callback object that will inform the caller when the clearing is done. * @throws SecurityException if the caller is not the device owner/profile owner. * @return whether the clearing succeeded. */ public boolean clearApplicationUserData(@NonNull ComponentName admin, - @NonNull String packageName, @NonNull OnClearApplicationUserDataListener listener, - @NonNull @CallbackExecutor Executor executor) { + @NonNull String packageName, @NonNull @CallbackExecutor Executor executor, + @NonNull OnClearApplicationUserDataListener listener) { throwIfParentInstance("clearAppData"); Preconditions.checkNotNull(executor); try { |
