Loading services/core/java/com/android/server/wm/WindowTracing.java +1 −0 Original line number Diff line number Diff line Loading @@ -98,6 +98,7 @@ class WindowTracing { mBuffer.resetBuffer(); mEnabled = mEnabledLockFree = true; } log("trace.enable"); } /** Loading services/tests/wmtests/src/com/android/server/wm/WindowTracingTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ import static androidx.test.platform.app.InstrumentationRegistry.getInstrumentat import static com.android.dx.mockito.inline.extended.ExtendedMockito.doAnswer; import static com.android.dx.mockito.inline.extended.ExtendedMockito.mock; import static com.android.dx.mockito.inline.extended.ExtendedMockito.times; import static com.android.dx.mockito.inline.extended.ExtendedMockito.verify; import static com.android.dx.mockito.inline.extended.ExtendedMockito.verifyZeroInteractions; Loading Loading @@ -124,7 +125,7 @@ public class WindowTracingTest { public void trace_dumpsWindowManagerState_whenTracing() throws Exception { mWindowTracing.startTrace(mock(PrintWriter.class)); mWindowTracing.logState("where"); verify(mWmMock).writeToProtoLocked(any(), eq(WindowTraceLogLevel.TRIM)); verify(mWmMock, times(2)).writeToProtoLocked(any(), eq(WindowTraceLogLevel.TRIM)); } @Test Loading Loading
services/core/java/com/android/server/wm/WindowTracing.java +1 −0 Original line number Diff line number Diff line Loading @@ -98,6 +98,7 @@ class WindowTracing { mBuffer.resetBuffer(); mEnabled = mEnabledLockFree = true; } log("trace.enable"); } /** Loading
services/tests/wmtests/src/com/android/server/wm/WindowTracingTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ import static androidx.test.platform.app.InstrumentationRegistry.getInstrumentat import static com.android.dx.mockito.inline.extended.ExtendedMockito.doAnswer; import static com.android.dx.mockito.inline.extended.ExtendedMockito.mock; import static com.android.dx.mockito.inline.extended.ExtendedMockito.times; import static com.android.dx.mockito.inline.extended.ExtendedMockito.verify; import static com.android.dx.mockito.inline.extended.ExtendedMockito.verifyZeroInteractions; Loading Loading @@ -124,7 +125,7 @@ public class WindowTracingTest { public void trace_dumpsWindowManagerState_whenTracing() throws Exception { mWindowTracing.startTrace(mock(PrintWriter.class)); mWindowTracing.logState("where"); verify(mWmMock).writeToProtoLocked(any(), eq(WindowTraceLogLevel.TRIM)); verify(mWmMock, times(2)).writeToProtoLocked(any(), eq(WindowTraceLogLevel.TRIM)); } @Test Loading