From 6ec9edf868bbec33f909d676633c91bf9aedb6f2 Mon Sep 17 00:00:00 2001 From: Victor Chang Date: Fri, 15 Jul 2022 10:48:35 +0100 Subject: [PATCH] Deprecate Debug.enableEmulatorTraceOutput() The API has been no-op for 2 releases. https://r.android.com/1352354 We should officially deprecate the API. Bug: 238895989 Test: atest CtsOsTestCases:android.os.cts.DebugTest Change-Id: Ib1454b200a0ae0da557de02c49c482145deb97df --- core/api/current.txt | 2 +- core/java/android/os/Debug.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/api/current.txt b/core/api/current.txt index dc1949693802c..e513bba57f9f9 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -29758,7 +29758,7 @@ package android.os { method @Deprecated public static void changeDebugPort(int); method public static void dumpHprofData(String) throws java.io.IOException; method public static boolean dumpService(String, java.io.FileDescriptor, String[]); - method public static void enableEmulatorTraceOutput(); + method @Deprecated public static void enableEmulatorTraceOutput(); method public static int getBinderDeathObjectCount(); method public static int getBinderLocalObjectCount(); method public static int getBinderProxyObjectCount(); diff --git a/core/java/android/os/Debug.java b/core/java/android/os/Debug.java index b4930fa931ebf..399f11b0f2a74 100644 --- a/core/java/android/os/Debug.java +++ b/core/java/android/os/Debug.java @@ -1155,6 +1155,8 @@ public final class Debug * consequences. * * To temporarily enable tracing, use {@link #startNativeTracing()}. + * + * @deprecated Please use other tracing method in this class. */ public static void enableEmulatorTraceOutput() { Log.w(TAG, "Unimplemented");