Loading api/current.txt +0 −1 Original line number Original line Diff line number Diff line Loading @@ -51592,7 +51592,6 @@ package android.webkit { field public static final int CATEGORIES_WEB_DEVELOPER = 4; // 0x4 field public static final int CATEGORIES_WEB_DEVELOPER = 4; // 0x4 field public static final int RECORD_CONTINUOUSLY = 1; // 0x1 field public static final int RECORD_CONTINUOUSLY = 1; // 0x1 field public static final int RECORD_UNTIL_FULL = 0; // 0x0 field public static final int RECORD_UNTIL_FULL = 0; // 0x0 field public static final int RECORD_UNTIL_FULL_LARGE_BUFFER = 2; // 0x2 } } public static class TracingConfig.Builder { public static class TracingConfig.Builder { core/java/android/webkit/TracingConfig.java +19 −24 Original line number Original line Diff line number Diff line Loading @@ -35,9 +35,9 @@ public class TracingConfig { private @TracingMode int mTracingMode; private @TracingMode int mTracingMode; /** @hide */ /** @hide */ @IntDef(flag = true, value = {CATEGORIES_NONE, CATEGORIES_WEB_DEVELOPER, @IntDef(flag = true, value = {CATEGORIES_NONE, CATEGORIES_ALL, CATEGORIES_ANDROID_WEBVIEW, CATEGORIES_INPUT_LATENCY, CATEGORIES_RENDERING, CATEGORIES_JAVASCRIPT_AND_RENDERING, CATEGORIES_WEB_DEVELOPER, CATEGORIES_INPUT_LATENCY, CATEGORIES_RENDERING, CATEGORIES_FRAME_VIEWER}) CATEGORIES_JAVASCRIPT_AND_RENDERING, CATEGORIES_FRAME_VIEWER}) @Retention(RetentionPolicy.SOURCE) @Retention(RetentionPolicy.SOURCE) public @interface PredefinedCategories {} public @interface PredefinedCategories {} Loading Loading @@ -90,33 +90,27 @@ public class TracingConfig { public static final int CATEGORIES_FRAME_VIEWER = 1 << 6; public static final int CATEGORIES_FRAME_VIEWER = 1 << 6; /** @hide */ /** @hide */ @IntDef({RECORD_UNTIL_FULL, RECORD_CONTINUOUSLY, RECORD_UNTIL_FULL_LARGE_BUFFER}) @IntDef({RECORD_UNTIL_FULL, RECORD_CONTINUOUSLY}) @Retention(RetentionPolicy.SOURCE) @Retention(RetentionPolicy.SOURCE) public @interface TracingMode {} public @interface TracingMode {} /** /** * Record trace events until the internal tracing buffer is full. Default tracing mode. * Record trace events until the internal tracing buffer is full. * Typically the buffer memory usage is between {@link #RECORD_CONTINUOUSLY} and the * * {@link #RECORD_UNTIL_FULL_LARGE_BUFFER}. Depending on the implementation typically allows * Typically the buffer memory usage is larger than {@link #RECORD_CONTINUOUSLY}. * up to 256k events to be stored. * Depending on the implementation typically allows up to 256k events to be stored. */ */ public static final int RECORD_UNTIL_FULL = 0; public static final int RECORD_UNTIL_FULL = 0; /** /** * Record trace events continuously using an internal ring buffer. Overwrites * Record trace events continuously using an internal ring buffer. Default tracing mode. * old events if they exceed buffer capacity. Uses less memory than both * * {@link #RECORD_UNTIL_FULL} and {@link #RECORD_UNTIL_FULL_LARGE_BUFFER} modes. * Overwrites old events if they exceed buffer capacity. Uses less memory than the * Depending on the implementation typically allows up to 64k events to be stored. * {@link #RECORD_UNTIL_FULL} mode. Depending on the implementation typically allows * up to 64k events to be stored. */ */ public static final int RECORD_CONTINUOUSLY = 1; public static final int RECORD_CONTINUOUSLY = 1; /** * Record trace events using a larger internal tracing buffer until it is full. * Uses significantly more memory than {@link #RECORD_UNTIL_FULL} and may not be * suitable on devices with smaller RAM. */ public static final int RECORD_UNTIL_FULL_LARGE_BUFFER = 2; /** /** * @hide * @hide */ */ Loading Loading @@ -182,7 +176,7 @@ public class TracingConfig { public static class Builder { public static class Builder { private @PredefinedCategories int mPredefinedCategories = CATEGORIES_NONE; private @PredefinedCategories int mPredefinedCategories = CATEGORIES_NONE; private final List<String> mCustomIncludedCategories = new ArrayList<String>(); private final List<String> mCustomIncludedCategories = new ArrayList<String>(); private @TracingMode int mTracingMode = RECORD_UNTIL_FULL; private @TracingMode int mTracingMode = RECORD_CONTINUOUSLY; /** /** * Default constructor for Builder. * Default constructor for Builder. Loading @@ -202,7 +196,9 @@ public class TracingConfig { * * * @param predefinedCategories list or bitmask of predefined category sets to use: * @param predefinedCategories list or bitmask of predefined category sets to use: * {@link #CATEGORIES_NONE}, {@link #CATEGORIES_ALL}, * {@link #CATEGORIES_NONE}, {@link #CATEGORIES_ALL}, * {@link #CATEGORIES_WEB_DEVELOPER}, {@link #CATEGORIES_INPUT_LATENCY}, * {@link #CATEGORIES_ANDROID_WEBVIEW}, * {@link #CATEGORIES_WEB_DEVELOPER}, * {@link #CATEGORIES_INPUT_LATENCY}, * {@link #CATEGORIES_RENDERING}, * {@link #CATEGORIES_RENDERING}, * {@link #CATEGORIES_JAVASCRIPT_AND_RENDERING} or * {@link #CATEGORIES_JAVASCRIPT_AND_RENDERING} or * {@link #CATEGORIES_FRAME_VIEWER}. * {@link #CATEGORIES_FRAME_VIEWER}. Loading Loading @@ -250,9 +246,8 @@ public class TracingConfig { /** /** * Sets the tracing mode for this configuration. * Sets the tracing mode for this configuration. * * * @param tracingMode tracing mode to use, one of {@link #RECORD_UNTIL_FULL}, * @param tracingMode tracing mode to use, one of {@link #RECORD_UNTIL_FULL} or * {@link #RECORD_CONTINUOUSLY} or * {@link #RECORD_CONTINUOUSLY}. * {@link #RECORD_UNTIL_FULL_LARGE_BUFFER}. * @return The builder to facilitate chaining. * @return The builder to facilitate chaining. */ */ public Builder setTracingMode(@TracingMode int tracingMode) { public Builder setTracingMode(@TracingMode int tracingMode) { Loading core/java/android/webkit/TracingController.java +2 −3 Original line number Original line Diff line number Diff line Loading @@ -60,9 +60,8 @@ public abstract class TracingController { * Starts tracing all webviews. Depending on the trace mode in traceConfig * Starts tracing all webviews. Depending on the trace mode in traceConfig * specifies how the trace events are recorded. * specifies how the trace events are recorded. * * * For tracing modes {@link TracingConfig#RECORD_UNTIL_FULL}, * For tracing modes {@link TracingConfig#RECORD_UNTIL_FULL} and * {@link TracingConfig#RECORD_CONTINUOUSLY} and * {@link TracingConfig#RECORD_CONTINUOUSLY} the events are recorded * {@link TracingConfig#RECORD_UNTIL_FULL_LARGE_BUFFER} the events are recorded * using an internal buffer and flushed to the outputStream when * using an internal buffer and flushed to the outputStream when * {@link #stop(OutputStream, Executor)} is called. * {@link #stop(OutputStream, Executor)} is called. * * Loading Loading
api/current.txt +0 −1 Original line number Original line Diff line number Diff line Loading @@ -51592,7 +51592,6 @@ package android.webkit { field public static final int CATEGORIES_WEB_DEVELOPER = 4; // 0x4 field public static final int CATEGORIES_WEB_DEVELOPER = 4; // 0x4 field public static final int RECORD_CONTINUOUSLY = 1; // 0x1 field public static final int RECORD_CONTINUOUSLY = 1; // 0x1 field public static final int RECORD_UNTIL_FULL = 0; // 0x0 field public static final int RECORD_UNTIL_FULL = 0; // 0x0 field public static final int RECORD_UNTIL_FULL_LARGE_BUFFER = 2; // 0x2 } } public static class TracingConfig.Builder { public static class TracingConfig.Builder {
core/java/android/webkit/TracingConfig.java +19 −24 Original line number Original line Diff line number Diff line Loading @@ -35,9 +35,9 @@ public class TracingConfig { private @TracingMode int mTracingMode; private @TracingMode int mTracingMode; /** @hide */ /** @hide */ @IntDef(flag = true, value = {CATEGORIES_NONE, CATEGORIES_WEB_DEVELOPER, @IntDef(flag = true, value = {CATEGORIES_NONE, CATEGORIES_ALL, CATEGORIES_ANDROID_WEBVIEW, CATEGORIES_INPUT_LATENCY, CATEGORIES_RENDERING, CATEGORIES_JAVASCRIPT_AND_RENDERING, CATEGORIES_WEB_DEVELOPER, CATEGORIES_INPUT_LATENCY, CATEGORIES_RENDERING, CATEGORIES_FRAME_VIEWER}) CATEGORIES_JAVASCRIPT_AND_RENDERING, CATEGORIES_FRAME_VIEWER}) @Retention(RetentionPolicy.SOURCE) @Retention(RetentionPolicy.SOURCE) public @interface PredefinedCategories {} public @interface PredefinedCategories {} Loading Loading @@ -90,33 +90,27 @@ public class TracingConfig { public static final int CATEGORIES_FRAME_VIEWER = 1 << 6; public static final int CATEGORIES_FRAME_VIEWER = 1 << 6; /** @hide */ /** @hide */ @IntDef({RECORD_UNTIL_FULL, RECORD_CONTINUOUSLY, RECORD_UNTIL_FULL_LARGE_BUFFER}) @IntDef({RECORD_UNTIL_FULL, RECORD_CONTINUOUSLY}) @Retention(RetentionPolicy.SOURCE) @Retention(RetentionPolicy.SOURCE) public @interface TracingMode {} public @interface TracingMode {} /** /** * Record trace events until the internal tracing buffer is full. Default tracing mode. * Record trace events until the internal tracing buffer is full. * Typically the buffer memory usage is between {@link #RECORD_CONTINUOUSLY} and the * * {@link #RECORD_UNTIL_FULL_LARGE_BUFFER}. Depending on the implementation typically allows * Typically the buffer memory usage is larger than {@link #RECORD_CONTINUOUSLY}. * up to 256k events to be stored. * Depending on the implementation typically allows up to 256k events to be stored. */ */ public static final int RECORD_UNTIL_FULL = 0; public static final int RECORD_UNTIL_FULL = 0; /** /** * Record trace events continuously using an internal ring buffer. Overwrites * Record trace events continuously using an internal ring buffer. Default tracing mode. * old events if they exceed buffer capacity. Uses less memory than both * * {@link #RECORD_UNTIL_FULL} and {@link #RECORD_UNTIL_FULL_LARGE_BUFFER} modes. * Overwrites old events if they exceed buffer capacity. Uses less memory than the * Depending on the implementation typically allows up to 64k events to be stored. * {@link #RECORD_UNTIL_FULL} mode. Depending on the implementation typically allows * up to 64k events to be stored. */ */ public static final int RECORD_CONTINUOUSLY = 1; public static final int RECORD_CONTINUOUSLY = 1; /** * Record trace events using a larger internal tracing buffer until it is full. * Uses significantly more memory than {@link #RECORD_UNTIL_FULL} and may not be * suitable on devices with smaller RAM. */ public static final int RECORD_UNTIL_FULL_LARGE_BUFFER = 2; /** /** * @hide * @hide */ */ Loading Loading @@ -182,7 +176,7 @@ public class TracingConfig { public static class Builder { public static class Builder { private @PredefinedCategories int mPredefinedCategories = CATEGORIES_NONE; private @PredefinedCategories int mPredefinedCategories = CATEGORIES_NONE; private final List<String> mCustomIncludedCategories = new ArrayList<String>(); private final List<String> mCustomIncludedCategories = new ArrayList<String>(); private @TracingMode int mTracingMode = RECORD_UNTIL_FULL; private @TracingMode int mTracingMode = RECORD_CONTINUOUSLY; /** /** * Default constructor for Builder. * Default constructor for Builder. Loading @@ -202,7 +196,9 @@ public class TracingConfig { * * * @param predefinedCategories list or bitmask of predefined category sets to use: * @param predefinedCategories list or bitmask of predefined category sets to use: * {@link #CATEGORIES_NONE}, {@link #CATEGORIES_ALL}, * {@link #CATEGORIES_NONE}, {@link #CATEGORIES_ALL}, * {@link #CATEGORIES_WEB_DEVELOPER}, {@link #CATEGORIES_INPUT_LATENCY}, * {@link #CATEGORIES_ANDROID_WEBVIEW}, * {@link #CATEGORIES_WEB_DEVELOPER}, * {@link #CATEGORIES_INPUT_LATENCY}, * {@link #CATEGORIES_RENDERING}, * {@link #CATEGORIES_RENDERING}, * {@link #CATEGORIES_JAVASCRIPT_AND_RENDERING} or * {@link #CATEGORIES_JAVASCRIPT_AND_RENDERING} or * {@link #CATEGORIES_FRAME_VIEWER}. * {@link #CATEGORIES_FRAME_VIEWER}. Loading Loading @@ -250,9 +246,8 @@ public class TracingConfig { /** /** * Sets the tracing mode for this configuration. * Sets the tracing mode for this configuration. * * * @param tracingMode tracing mode to use, one of {@link #RECORD_UNTIL_FULL}, * @param tracingMode tracing mode to use, one of {@link #RECORD_UNTIL_FULL} or * {@link #RECORD_CONTINUOUSLY} or * {@link #RECORD_CONTINUOUSLY}. * {@link #RECORD_UNTIL_FULL_LARGE_BUFFER}. * @return The builder to facilitate chaining. * @return The builder to facilitate chaining. */ */ public Builder setTracingMode(@TracingMode int tracingMode) { public Builder setTracingMode(@TracingMode int tracingMode) { Loading
core/java/android/webkit/TracingController.java +2 −3 Original line number Original line Diff line number Diff line Loading @@ -60,9 +60,8 @@ public abstract class TracingController { * Starts tracing all webviews. Depending on the trace mode in traceConfig * Starts tracing all webviews. Depending on the trace mode in traceConfig * specifies how the trace events are recorded. * specifies how the trace events are recorded. * * * For tracing modes {@link TracingConfig#RECORD_UNTIL_FULL}, * For tracing modes {@link TracingConfig#RECORD_UNTIL_FULL} and * {@link TracingConfig#RECORD_CONTINUOUSLY} and * {@link TracingConfig#RECORD_CONTINUOUSLY} the events are recorded * {@link TracingConfig#RECORD_UNTIL_FULL_LARGE_BUFFER} the events are recorded * using an internal buffer and flushed to the outputStream when * using an internal buffer and flushed to the outputStream when * {@link #stop(OutputStream, Executor)} is called. * {@link #stop(OutputStream, Executor)} is called. * * Loading