Merge "Debug MemoryTests activity count" into udc-dev am: 56c5189c3c

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23540634

Change-Id: Id9959d1305bb5838d026d3e613e86b16bce50a49
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Schneider Victor-tulias
2023-06-08 21:40:26 +00:00
committed by Automerger Merge Worker
2 changed files with 3 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ import android.content.Context;
import android.os.Binder;
import android.os.Bundle;
import android.system.Os;
import android.util.Log;
import androidx.annotation.Keep;
import androidx.annotation.Nullable;
@@ -61,6 +62,7 @@ public class DebugTestInformationHandler extends TestInformationHandler {
public void onActivityCreated(Activity activity, Bundle bundle) {
sActivities.put(activity, true);
++sActivitiesCreatedCount;
Log.d(TestProtocol.FLAKY_ACTIVITY_COUNT, "onActivityCreated", new Exception());
}
@Override

View File

@@ -154,6 +154,7 @@ public final class TestProtocol {
public static final String PERMANENT_DIAG_TAG = "TaplTarget";
public static final String WORK_TAB_MISSING = "b/243688989";
public static final String TWO_TASKBAR_LONG_CLICKS = "b/262282528";
public static final String FLAKY_ACTIVITY_COUNT = "b/260260325";
public static final String REQUEST_EMULATE_DISPLAY = "emulate-display";
public static final String REQUEST_STOP_EMULATE_DISPLAY = "stop-emulate-display";