/cts/tests/tests/os/src/android/os/cts/ |
CountDownTimerTest.java | 28 private CountDownTimerTestStub mActivity; 38 mActivity = (CountDownTimerTestStub) getInstrumentation().startActivitySync(intent); 40 mActivity.countDownTimer.start(); 44 int count = (int) (mActivity.MILLISINFUTURE / mActivity.INTERVAL); 45 final long TIMEOUT_MSEC = mActivity.MILLISINFUTURE + mActivity.INTERVAL + OFFSET * count; 47 assertTrue(mActivity.onFinished); 48 assertEqualsTickTime(mActivity.tickTimes, OFFSET); 52 final long DELAY_MSEC = mActivity.INTERVAL + OFFSET [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
ListEmptyViewTest.java | 29 private ListWithEmptyView mActivity; 41 mActivity = getActivity(); 47 assertNotNull(mActivity); 57 inst.invokeMenuActionSync(mActivity, mActivity.MENU_ADD, 0); 59 assertTrue("Empty view still shown", mActivity.getEmptyView().getVisibility() == View.GONE); 60 assertTrue("List not shown", mActivity.getListView().getVisibility() == View.VISIBLE); 67 inst.invokeMenuActionSync(mActivity, mActivity.MENU_ADD, 0); 69 assertTrue("Empty view still shown", mActivity.getEmptyView().getVisibility() == View.GONE) [all...] |
/cts/tests/tests/preference2/src/android/preference2/cts/ |
PreferenceWithHeadersTest.java | 27 mActivity = getActivity(); 30 private PreferenceWithHeaders mActivity; 37 assertTrue(mActivity.hasHeaders()); 41 assertFalse(mActivity.onIsHidingHeaders());
|
CustomCheckBoxPreferenceTest.java | 25 private PreferencesFromXml mActivity; 35 mActivity = getActivity(); 36 mCheckBoxPref = (CheckBoxPreference) mActivity.findPreference(
|
CustomDialogPreferenceTest.java | 24 private PreferencesFromXml mActivity; 34 mActivity = getActivity(); 35 mDialogPref = (CustomDialogPreference) mActivity.findPreference(
|
CustomEditTextPreferenceTest.java | 24 private PreferencesFromXml mActivity; 34 mActivity = (PreferencesFromXml)getActivity(); 35 mEditTextPref = (CustomEditTextPreference) mActivity.findPreference(
|
CustomSwitchPreferenceTest.java | 24 private PreferencesFromXml mActivity; 34 mActivity = getActivity(); 35 mSwitchPref = (CustomSwitchPreference) mActivity.findPreference(
|
PreferenceCategoryTest.java | 25 private PreferenceFromCodeActivity mActivity; 34 mActivity = getActivity(); 38 Preference prefCat = mActivity.findPreference("pref-1");
|
CheckBoxPreferenceTest.java | 27 private PreferenceFromCodeActivity mActivity; 36 mActivity = getActivity(); 40 CheckBoxPreference checkBoxPref = (CheckBoxPreference) mActivity.findPreference( 46 CheckBoxPreference checkBoxPref = (CheckBoxPreference) mActivity.findPreference( 49 String summaryExp = mActivity.getResources().getString(
|
/cts/tests/sample/src/android/sample/cts/ |
SampleDeviceTest.java | 36 private SampleDeviceActivity mActivity; 46 mActivity = getActivity(); 55 mActivity = null; 69 mActivity.savePreference(KEY, VALUE); 70 assertEquals("Preferences were not saved", VALUE, mActivity.getPreference(KEY)); 73 mActivity.clearPreferences(); 74 assertNull("Preferences were not cleared", mActivity.getPreference(KEY));
|
/cts/tests/tests/preference/src/android/preference/cts/ |
PreferenceActivityTest.java | 30 private PreferenceActivity mActivity; 39 mActivity = getActivity(); 43 assertNull(mActivity.findPreference("check_box_preference_from_intent")); 45 Intent intent = new Intent(mActivity, PreferenceCtsActivity.class); 46 mActivity.addPreferencesFromIntent(intent); 48 assertNotNull(mActivity.findPreference("check_box_preference_from_intent")); 52 assertNull(mActivity.findPreference("check_box_preference_from_resource")); 54 mActivity.addPreferencesFromResource(R.xml.preferences_from_resource); 56 assertNotNull(mActivity.findPreference("check_box_preference_from_resource")); 60 assertNotNull(mActivity.getPreferenceManager()) [all...] |
/cts/tests/app/src/android/app/cts/ |
PipActivityTest.java | 28 private PipActivity mActivity; 38 mActivity = getActivity(); 45 mActivity.getPackageManager().hasSystemFeature(FEATURE_PICTURE_IN_PICTURE); 47 mActivity.enterPictureInPictureMode(); 54 assertTrue(mActivity.isInMultiWindowMode()); 55 assertTrue(mActivity.isInPictureInPictureMode()); 61 mActivity.enterPictureInPictureMode(); 73 assertFalse(mActivity.isInMultiWindowMode()); 74 assertFalse(mActivity.isInPictureInPictureMode());
|
FragmentReplaceTest.java | 29 private FragmentTestActivity mActivity; 39 mActivity = getActivity(); 44 mActivity.getFragmentManager().beginTransaction() 48 mActivity.getFragmentManager().executePendingTransactions(); 49 assertNotNull(mActivity.findViewById(R.id.textA)); 50 assertNull(mActivity.findViewById(R.id.textB)); 51 assertNull(mActivity.findViewById(R.id.textC)); 53 mActivity.getFragmentManager().beginTransaction() 57 mActivity.getFragmentManager().executePendingTransactions(); 58 assertNotNull(mActivity.findViewById(R.id.textA)) [all...] |
PipNotResizeableActivityTest.java | 27 private PipNotResizeableActivity mActivity; 37 mActivity = getActivity(); 45 mActivity.enterPictureInPictureMode(); 54 assertFalse(mActivity.isInMultiWindowMode()); 55 assertFalse(mActivity.isInPictureInPictureMode());
|
PipNotSupportedActivityTest.java | 27 private PipNotSupportedActivity mActivity; 37 mActivity = getActivity(); 45 mActivity.enterPictureInPictureMode(); 54 assertFalse(mActivity.isInMultiWindowMode()); 55 assertFalse(mActivity.isInPictureInPictureMode());
|
/developers/build/prebuilts/gradle/LNotifications/Application/tests/src/com/example/android/lnotifications/ |
LNotificationActivityTest.java | 12 private LNotificationActivity mActivity; 21 mActivity = getActivity(); 26 mActivity); 30 mActivity.getActionBar().setSelectedNavigationItem(0); 32 Fragment fragment = mActivity.getFragmentManager().findFragmentById(R.id.container); 37 mActivity.getActionBar().setSelectedNavigationItem(1); 39 Fragment fragment = mActivity.getFragmentManager().findFragmentById(R.id.container); 44 mActivity.getActionBar().setSelectedNavigationItem(2); 46 Fragment fragment = mActivity.getFragmentManager().findFragmentById(R.id.container);
|
HeadsUpNotificationFragmentTest.java | 12 private LNotificationActivity mActivity; 22 mActivity = getActivity(); 25 mActivity.getActionBar().setSelectedNavigationItem(0); 27 mFragment = (HeadsUpNotificationFragment) mActivity.getFragmentManager() 32 assertNotNull(mActivity); 34 assertNotNull(mActivity.findViewById(R.id.heads_up_notification_description)); 35 assertNotNull(mActivity.findViewById(R.id.show_notification_button)); 36 assertNotNull(mActivity.findViewById(R.id.use_heads_up_checkbox));
|
/developers/samples/android/notification/LNotifications/Application/tests/src/com/example/android/lnotifications/ |
LNotificationActivityTest.java | 12 private LNotificationActivity mActivity; 21 mActivity = getActivity(); 26 mActivity); 30 mActivity.getActionBar().setSelectedNavigationItem(0); 32 Fragment fragment = mActivity.getFragmentManager().findFragmentById(R.id.container); 37 mActivity.getActionBar().setSelectedNavigationItem(1); 39 Fragment fragment = mActivity.getFragmentManager().findFragmentById(R.id.container); 44 mActivity.getActionBar().setSelectedNavigationItem(2); 46 Fragment fragment = mActivity.getFragmentManager().findFragmentById(R.id.container);
|
HeadsUpNotificationFragmentTest.java | 12 private LNotificationActivity mActivity; 22 mActivity = getActivity(); 25 mActivity.getActionBar().setSelectedNavigationItem(0); 27 mFragment = (HeadsUpNotificationFragment) mActivity.getFragmentManager() 32 assertNotNull(mActivity); 34 assertNotNull(mActivity.findViewById(R.id.heads_up_notification_description)); 35 assertNotNull(mActivity.findViewById(R.id.show_notification_button)); 36 assertNotNull(mActivity.findViewById(R.id.use_heads_up_checkbox));
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
AttachShaderTest.java | 24 private OpenGLES20ActivityOne mActivity; 48 mActivity = getShaderActivity(Constants.SHADER, 1); 49 int shaderCount = mActivity.getNoOfAttachedShaders(); 51 int error = mActivity.glGetError(); 65 mActivity = getShaderActivity(Constants.SHADER, 2); 66 int error = mActivity.glGetError(); 80 mActivity = getShaderActivity(Constants.SHADER, 3); 81 int error = mActivity.glGetError(); 96 mActivity = getShaderActivity(Constants.SHADER, 4); 97 int shaderCount = mActivity.getNoOfAttachedShaders() [all...] |
NativeAttachShaderTest.java | 25 private OpenGLES20NativeActivityOne mActivity; 49 mActivity = getShaderActivity(Constants.SHADER, 1); 50 int shaderCount = mActivity.mRenderer.mShaderCount; 52 int error = mActivity.mRenderer.mAttachShaderError; 65 mActivity = getShaderActivity(Constants.SHADER, 2); 66 int error = mActivity.mRenderer.mAttachShaderError; 79 mActivity = getShaderActivity(Constants.SHADER, 3); 80 int error = mActivity.mRenderer.mAttachShaderError; 93 mActivity = getShaderActivity(Constants.SHADER, 4); 97 int error = mActivity.mRenderer.mAttachShaderError [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
GestureDetectorTest.java | 38 private GestureDetectorCtsActivity mActivity; 54 mActivity = getActivity(); 55 mGestureDetector = mActivity.getGestureDetector(); 56 mListener = mActivity.getListener(); 58 mActivity.isDown = false; 59 mActivity.isScroll = false; 60 mActivity.isFling = false; 61 mActivity.isSingleTapUp = false; 62 mActivity.onShowPress = false; 63 mActivity.onLongPress = false [all...] |
/packages/apps/TV/src/com/android/tv/ |
MainActivityWrapper.java | 35 private MainActivity mActivity; 44 return mActivity; 51 return activity != null && mActivity == activity; 59 mActivity = activity; 67 if (mActivity != activity) { 68 mActivity = null; 76 if (mActivity == caller) { 87 return mActivity != null; 94 return mActivity != null && mActivity.isActivityStarted() [all...] |
/frameworks/support/fragment/tests/java/android/support/v4/app/ |
FragmentReplaceTest.java | 32 private FragmentTestActivity mActivity; 42 mActivity = getActivity(); 47 mActivity.getSupportFragmentManager().beginTransaction() 51 mActivity.getSupportFragmentManager().executePendingTransactions(); 52 assertNotNull(mActivity.findViewById(R.id.textA)); 53 assertNull(mActivity.findViewById(R.id.textB)); 54 assertNull(mActivity.findViewById(R.id.textC)); 57 mActivity.getSupportFragmentManager().beginTransaction() 61 mActivity.getSupportFragmentManager().executePendingTransactions(); 62 assertNotNull(mActivity.findViewById(R.id.textA)) [all...] |
/cts/tests/vr/src/android/vr/cts/ |
VrCpuTest.java | 23 private CtsActivity mActivity; 30 mActivity = getActivity(); 31 if (mActivity.getPackageManager().hasSystemFeature( 38 mActivity = getActivity(); 39 if (mActivity.getPackageManager().hasSystemFeature(
|