use of android.widget.layout.linear.LLOfButtons2 in project android_frameworks_base by AOSPA.
the class ChangeTouchModeTest method testTouchModeChangedInOtherActivity.
@LargeTest
public void testTouchModeChangedInOtherActivity() throws Exception {
assertFalse("touch mode", getActivity().isInTouchMode());
LLOfButtons2 otherActivity = null;
try {
otherActivity = launchActivity("com.android.frameworks.coretests", LLOfButtons2.class, null);
assertNotNull(otherActivity);
assertFalse(otherActivity.isInTouchMode());
assertInTouchModeAfterClick(this, otherActivity.getFirstButton());
assertTrue(otherActivity.isInTouchMode());
} finally {
if (otherActivity != null) {
otherActivity.finish();
}
}
// need to wait for async update back to window to occur
Thread.sleep(200);
assertTrue("touch mode", getActivity().isInTouchMode());
}
use of android.widget.layout.linear.LLOfButtons2 in project android_frameworks_base by crdroidandroid.
the class ChangeTouchModeTest method testTouchModeFalseAcrossActivites.
@MediumTest
public void testTouchModeFalseAcrossActivites() throws Exception {
getInstrumentation().waitForIdleSync();
LLOfButtons2 otherActivity = null;
try {
otherActivity = launchActivity("com.android.frameworks.coretests", LLOfButtons2.class, null);
assertNotNull(otherActivity);
assertFalse(otherActivity.isInTouchMode());
} finally {
if (otherActivity != null) {
otherActivity.finish();
}
}
}
use of android.widget.layout.linear.LLOfButtons2 in project android_frameworks_base by ParanoidAndroid.
the class ChangeTouchModeTest method testTouchModeTrueAcrossActivites.
@LargeTest
public void testTouchModeTrueAcrossActivites() throws Exception {
assertInTouchModeAfterClick(this, getActivity().getFirstButton());
LLOfButtons2 otherActivity = null;
try {
otherActivity = launchActivity("com.android.frameworks.coretests", LLOfButtons2.class, null);
assertNotNull(otherActivity);
assertTrue(otherActivity.isInTouchMode());
} finally {
if (otherActivity != null) {
otherActivity.finish();
}
}
}
use of android.widget.layout.linear.LLOfButtons2 in project platform_frameworks_base by android.
the class ChangeTouchModeTest method testTouchModeTrueAcrossActivites.
@LargeTest
public void testTouchModeTrueAcrossActivites() throws Exception {
assertInTouchModeAfterClick(this, getActivity().getFirstButton());
LLOfButtons2 otherActivity = null;
try {
otherActivity = launchActivity("com.android.frameworks.coretests", LLOfButtons2.class, null);
assertNotNull(otherActivity);
assertTrue(otherActivity.isInTouchMode());
} finally {
if (otherActivity != null) {
otherActivity.finish();
}
}
}
use of android.widget.layout.linear.LLOfButtons2 in project android_frameworks_base by ResurrectionRemix.
the class ChangeTouchModeTest method testTouchModeTrueAcrossActivites.
@LargeTest
public void testTouchModeTrueAcrossActivites() throws Exception {
assertInTouchModeAfterClick(this, getActivity().getFirstButton());
LLOfButtons2 otherActivity = null;
try {
otherActivity = launchActivity("com.android.frameworks.coretests", LLOfButtons2.class, null);
assertNotNull(otherActivity);
assertTrue(otherActivity.isInTouchMode());
} finally {
if (otherActivity != null) {
otherActivity.finish();
}
}
}
Aggregations