Sharing protocol constants between Launcher and TAPL

Bug: 110103162
Test: TaplTests
Change-Id: I5b2a2b8576a7a6ea4a156f00858711496d6b5bba
This commit is contained in:
Vadim Tryshev
2018-08-14 19:53:43 -07:00
parent e1c4a90635
commit b6398a1eb8
8 changed files with 48 additions and 10 deletions

View File

@@ -39,6 +39,7 @@ import com.android.launcher3.LauncherState;
import com.android.launcher3.LauncherStateManager.AnimationComponents;
import com.android.launcher3.LauncherStateManager.AnimationConfig;
import com.android.launcher3.LauncherStateManager.StateHandler;
import com.android.launcher3.TestProtocol;
import com.android.launcher3.Utilities;
import com.android.launcher3.anim.AnimationSuccessListener;
import com.android.launcher3.anim.AnimatorPlaybackController;
@@ -517,7 +518,8 @@ public abstract class AbstractStateChangeTouchController
}
mLauncher.getStateManager().goToState(targetState, false /* animated */);
AccessibilityManagerCompat.sendEventToTest(mLauncher, "TAPL_WENT_TO_STATE");
AccessibilityManagerCompat.sendEventToTest(
mLauncher, TestProtocol.SWITCHED_TO_STATE_MESSAGE);
}
}