Disable InteractionJankMonitorWrapper

This commit is contained in:
Suphon Thanakornpakapong
2022-05-08 23:53:33 +07:00
parent 0390abc699
commit 06c1944329

View File

@@ -57,7 +57,7 @@ public final class InteractionJankMonitorWrapper {
* @param cujType the specific {@link InteractionJankMonitor.CujType}.
*/
public static void begin(View v, @CujType int cujType) {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) return;
if (true) return;
InteractionJankMonitor.getInstance().begin(v, cujType);
}
@@ -69,7 +69,7 @@ public final class InteractionJankMonitorWrapper {
* @param timeout duration to cancel the instrumentation in ms
*/
public static void begin(View v, @CujType int cujType, long timeout) {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) return;
if (true) return;
Configuration.Builder builder =
Configuration.Builder.withView(cujType, v)
.setTimeout(timeout);
@@ -82,7 +82,7 @@ public final class InteractionJankMonitorWrapper {
* @param cujType the specific {@link InteractionJankMonitor.CujType}.
*/
public static void end(@CujType int cujType) {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) return;
if (true) return;
InteractionJankMonitor.getInstance().end(cujType);
}
@@ -90,7 +90,7 @@ public final class InteractionJankMonitorWrapper {
* Cancel the trace session.
*/
public static void cancel(@CujType int cujType) {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) return;
if (true) return;
InteractionJankMonitor.getInstance().cancel(cujType);
}
}