Loading core/tests/coretests/AndroidManifest.xml +3 −1 Original line number Diff line number Diff line Loading @@ -136,7 +136,9 @@ </intent-filter> </activity> <activity android:name="android.widget.TextViewActivity" android:label="TextViewActivity"> <activity android:name="android.widget.TextViewActivity" android:label="TextViewActivity" android:screenOrientation="portrait"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.FRAMEWORK_INSTRUMENTATION_TEST" /> Loading core/tests/coretests/src/android/widget/TextViewActivityTest.java +1 −5 Original line number Diff line number Diff line Loading @@ -36,7 +36,6 @@ import com.android.frameworks.coretests.R; import android.test.ActivityInstrumentationTestCase2; import android.test.suitebuilder.annotation.SmallTest; import android.util.OrientationUtil; import android.view.KeyEvent; /** Loading @@ -44,16 +43,13 @@ import android.view.KeyEvent; */ public class TextViewActivityTest extends ActivityInstrumentationTestCase2<TextViewActivity>{ private OrientationUtil mOrientationUtil; public TextViewActivityTest() { super(TextViewActivity.class); } @Override public void setUp() { mOrientationUtil = OrientationUtil.initializeAndStartActivityIfNotStarted(this); mOrientationUtil.setPortraitOrientation(); getActivity(); } @SmallTest Loading Loading
core/tests/coretests/AndroidManifest.xml +3 −1 Original line number Diff line number Diff line Loading @@ -136,7 +136,9 @@ </intent-filter> </activity> <activity android:name="android.widget.TextViewActivity" android:label="TextViewActivity"> <activity android:name="android.widget.TextViewActivity" android:label="TextViewActivity" android:screenOrientation="portrait"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.FRAMEWORK_INSTRUMENTATION_TEST" /> Loading
core/tests/coretests/src/android/widget/TextViewActivityTest.java +1 −5 Original line number Diff line number Diff line Loading @@ -36,7 +36,6 @@ import com.android.frameworks.coretests.R; import android.test.ActivityInstrumentationTestCase2; import android.test.suitebuilder.annotation.SmallTest; import android.util.OrientationUtil; import android.view.KeyEvent; /** Loading @@ -44,16 +43,13 @@ import android.view.KeyEvent; */ public class TextViewActivityTest extends ActivityInstrumentationTestCase2<TextViewActivity>{ private OrientationUtil mOrientationUtil; public TextViewActivityTest() { super(TextViewActivity.class); } @Override public void setUp() { mOrientationUtil = OrientationUtil.initializeAndStartActivityIfNotStarted(this); mOrientationUtil.setPortraitOrientation(); getActivity(); } @SmallTest Loading