1// Signature format: 2.0 2package android.os { 3 4 @FlaggedApi("android.os.profiling.telemetry_apis") public final class ProfilingManager { 5 method public void registerForAllProfilingResults(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<android.os.ProfilingResult>); 6 method public void requestProfiling(int, @Nullable android.os.Bundle, @Nullable String, @Nullable android.os.CancellationSignal, @Nullable java.util.concurrent.Executor, @Nullable java.util.function.Consumer<android.os.ProfilingResult>); 7 method public void unregisterForAllProfilingResults(@Nullable java.util.function.Consumer<android.os.ProfilingResult>); 8 field public static final int PROFILING_TYPE_HEAP_PROFILE = 2; // 0x2 9 field public static final int PROFILING_TYPE_JAVA_HEAP_DUMP = 1; // 0x1 10 field public static final int PROFILING_TYPE_STACK_SAMPLING = 3; // 0x3 11 field public static final int PROFILING_TYPE_SYSTEM_TRACE = 4; // 0x4 12 } 13 14 @FlaggedApi("android.os.profiling.telemetry_apis") public final class ProfilingResult implements android.os.Parcelable { 15 method public int describeContents(); 16 method public int getErrorCode(); 17 method @Nullable public String getErrorMessage(); 18 method @Nullable public String getResultFilePath(); 19 method @Nullable public String getTag(); 20 method public void writeToParcel(@NonNull android.os.Parcel, int); 21 field @NonNull public static final android.os.Parcelable.Creator<android.os.ProfilingResult> CREATOR; 22 field public static final int ERROR_FAILED_EXECUTING = 4; // 0x4 23 field public static final int ERROR_FAILED_INVALID_REQUEST = 7; // 0x7 24 field public static final int ERROR_FAILED_NO_DISK_SPACE = 6; // 0x6 25 field public static final int ERROR_FAILED_POST_PROCESSING = 5; // 0x5 26 field public static final int ERROR_FAILED_PROFILING_IN_PROGRESS = 3; // 0x3 27 field public static final int ERROR_FAILED_RATE_LIMIT_PROCESS = 2; // 0x2 28 field public static final int ERROR_FAILED_RATE_LIMIT_SYSTEM = 1; // 0x1 29 field public static final int ERROR_NONE = 0; // 0x0 30 field public static final int ERROR_UNKNOWN = 8; // 0x8 31 } 32 33} 34 35