Verifying events from TouchInteractionService
There is a guaranteed order in which TIS events will be registered relative to other TIS events. However, relative to the touch events arriving to the activity, TIS events can come in any order. Now the event checker verifies 2 independent ordered event sequences: from TIS, and “the rest” (Main). Change-Id: I5872e0e3b0b498050a91c67105fbe4a29411375a
This commit is contained in:
@@ -37,6 +37,7 @@ import androidx.annotation.Nullable;
|
||||
import com.android.launcher3.LauncherSettings.Favorites;
|
||||
import com.android.launcher3.model.AppLaunchTracker;
|
||||
import com.android.launcher3.testing.TestLogging;
|
||||
import com.android.launcher3.testing.TestProtocol;
|
||||
import com.android.launcher3.touch.ItemClickHandler;
|
||||
import com.android.launcher3.uioverrides.DisplayRotationListener;
|
||||
import com.android.launcher3.uioverrides.WallpaperColorInfo;
|
||||
@@ -167,9 +168,7 @@ public abstract class BaseDraggingActivity extends BaseActivity
|
||||
startShortcutIntentSafely(intent, optsBundle, item, sourceContainer);
|
||||
} else if (user == null || user.equals(Process.myUserHandle())) {
|
||||
// Could be launching some bookkeeping activity
|
||||
if (Utilities.IS_RUNNING_IN_TEST_HARNESS) {
|
||||
TestLogging.recordEvent("start: activity: " + intent);
|
||||
}
|
||||
TestLogging.recordEvent(TestProtocol.SEQUENCE_MAIN, "start: activity", intent);
|
||||
startActivity(intent, optsBundle);
|
||||
AppLaunchTracker.INSTANCE.get(this).onStartApp(intent.getComponent(),
|
||||
Process.myUserHandle(), sourceContainer);
|
||||
|
||||
Reference in New Issue
Block a user