Home
last modified time | relevance | path

Searched refs:mode1 (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/policy/
DPhoneWindowActionModeTest.java73 ActionMode mode1 = mPhoneWindow.getDecorView().startActionMode( in testStartActionModePrimaryFinishesPreviousMode() local
78 assertTrue(mode1 instanceof MockActionMode); in testStartActionModePrimaryFinishesPreviousMode()
79 assertTrue(((MockActionMode) mode1).mIsFinished); in testStartActionModePrimaryFinishesPreviousMode()
87 ActionMode mode1 = mPhoneWindow.getDecorView().startActionMode( in testStartActionModeFloatingFinishesPreviousMode() local
92 assertTrue(mode1 instanceof MockActionMode); in testStartActionModeFloatingFinishesPreviousMode()
93 assertTrue(((MockActionMode) mode1).mIsFinished); in testStartActionModeFloatingFinishesPreviousMode()
101 ActionMode mode1 = mPhoneWindow.getDecorView().startActionMode( in testStartActionModePreservesPreviousModeOfDifferentType1() local
106 assertTrue(mode1 instanceof MockActionMode); in testStartActionModePreservesPreviousModeOfDifferentType1()
107 assertFalse(((MockActionMode) mode1).mIsFinished); in testStartActionModePreservesPreviousModeOfDifferentType1()
115 ActionMode mode1 = mPhoneWindow.getDecorView().startActionMode( in testStartActionModePreservesPreviousModeOfDifferentType2() local
[all …]
/frameworks/base/services/robotests/src/com/android/server/location/
DGnssPositionModeTest.java44 private void assertTEqualsImpliesSameHashCode(GnssPositionMode mode1, GnssPositionMode mode2) { in assertTEqualsImpliesSameHashCode() argument
45 if (mode1.equals(mode2)) { in assertTEqualsImpliesSameHashCode()
46 assertThat(mode1.hashCode()).isEqualTo(mode2.hashCode()); in assertTEqualsImpliesSameHashCode()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DWindowDecorActionBarTest.java67 ActionMode mode1 = mWindowDecorActionBar.startActionMode(mCallback); in testStartActionModeFinishesPreviousMode() local
70 assertNotNull(mode1); in testStartActionModeFinishesPreviousMode()
/frameworks/base/services/tests/servicestests/src/com/android/server/appop/
DAppOpsUpgradeTest.java110 final int mode1 = (_op1 == null) ? defaultModeOp1 : _op1.getMode(); in assertSameModes() local
112 assertEquals(mode1, mode2); in assertSameModes()
113 if (mode1 != defaultModeOp1) { in assertSameModes()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityStarter.java2747 private boolean isLaunchModeOneOf(int mode1, int mode2) { in isLaunchModeOneOf() argument
2748 return mode1 == mLaunchMode || mode2 == mLaunchMode; in isLaunchModeOneOf()