Home
last modified time | relevance | path

Searched refs:mActivity (Results 1 – 25 of 115) sorted by relevance

12345

/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListEmptyViewTest.java29 private ListWithEmptyView mActivity; field in ListEmptyViewTest
41 mActivity = getActivity(); in setUp()
47 assertNotNull(mActivity); in testPreconditions()
57 inst.invokeMenuActionSync(mActivity, mActivity.MENU_ADD, 0); in testZeroToOne()
59 assertTrue("Empty view still shown", mActivity.getEmptyView().getVisibility() == View.GONE); in testZeroToOne()
60 assertTrue("List not shown", mActivity.getListView().getVisibility() == View.VISIBLE); in testZeroToOne()
67 inst.invokeMenuActionSync(mActivity, mActivity.MENU_ADD, 0); in testZeroToOneForwardBack()
69 assertTrue("Empty view still shown", mActivity.getEmptyView().getVisibility() == View.GONE); in testZeroToOneForwardBack()
70 assertTrue("List not shown", mActivity.getListView().getVisibility() == View.VISIBLE); in testZeroToOneForwardBack()
74 intent.setClass(mActivity, ListWithEmptyView.class); in testZeroToOneForwardBack()
[all …]
DListViewHeightTest.java29 private ListViewHeight mActivity; field in ListViewHeightTest
40 mActivity = getActivity(); in setUp()
45 assertNotNull(mActivity); in testPreconditions()
51 final Button button1 = (Button) mActivity.findViewById(R.id.button1); in testButtons()
52 final Button button2 = (Button) mActivity.findViewById(R.id.button2); in testButtons()
53 final Button button3 = (Button) mActivity.findViewById(R.id.button3); in testButtons()
56 ListView list = (ListView) mActivity.findViewById(R.id.inner_list); in testButtons()
60 mActivity.runOnUiThread(new Runnable() { in testButtons()
69 mActivity.runOnUiThread(new Runnable() { in testButtons()
77 mActivity.runOnUiThread(new Runnable() { in testButtons()
DListFocusableTest.java26 private ListTopGravity mActivity; field in ListFocusableTest
37 mActivity = getActivity(); in setUp()
43 assertNotNull(mActivity); in testPreconditions()
178 return new ArrayAdapter<String>(mActivity, android.R.layout.simple_list_item_1, in createFullAdapter()
183 return new ArrayAdapter<String>(mActivity, android.R.layout.simple_list_item_1, in createEmptyAdapter()
189 mActivity.runOnUiThread(new Runnable() { in setFullAdapter()
198 mActivity.runOnUiThread(new Runnable() { in setEmptyAdapter()
207 mActivity.runOnUiThread(new Runnable() { in setNullAdapter()
216 mActivity.runOnUiThread(new Runnable() { in setFocusable()
225 mActivity.runOnUiThread(new Runnable() { in setNonFocusable()
DListHeterogeneousTest.java29 private ListHeterogeneous mActivity; field in ListHeterogeneousTest
41 mActivity = getActivity(); in setUp()
47 assertNotNull(mActivity); in testPreconditions()
62 int convertMissesBefore = mActivity.getConvertMisses(); in testKeyScrolling()
70 int convertMissesAfter = mActivity.getConvertMisses(); in testKeyScrolling()
/frameworks/support/fragment/tests/java/android/support/v4/app/
DFragmentReplaceTest.java32 private FragmentTestActivity mActivity; field in FragmentReplaceTest
42 mActivity = getActivity(); in setUp()
47 mActivity.getSupportFragmentManager().beginTransaction() in testReplaceFragment()
51 mActivity.getSupportFragmentManager().executePendingTransactions(); in testReplaceFragment()
52 assertNotNull(mActivity.findViewById(R.id.textA)); in testReplaceFragment()
53 assertNull(mActivity.findViewById(R.id.textB)); in testReplaceFragment()
54 assertNull(mActivity.findViewById(R.id.textC)); in testReplaceFragment()
57 mActivity.getSupportFragmentManager().beginTransaction() in testReplaceFragment()
61 mActivity.getSupportFragmentManager().executePendingTransactions(); in testReplaceFragment()
62 assertNotNull(mActivity.findViewById(R.id.textA)); in testReplaceFragment()
[all …]
DFragmentTransitionTest.java34 private FragmentTestActivity mActivity; field in FragmentTransitionTest
46 mActivity = getActivity(); in setUp()
57 final View sharedElement = mActivity.findViewById(R.id.hello); in testFragmentTransition()
61 mActivity.getSupportFragmentManager().beginTransaction() in testFragmentTransition()
66 mActivity.getSupportFragmentManager().executePendingTransactions(); in testFragmentTransition()
76 final View textView = mActivity.findViewById(R.id.hello); in testFragmentTransition()
78 mActivity.getSupportFragmentManager().popBackStack(); in testFragmentTransition()
79 mActivity.getSupportFragmentManager().executePendingTransactions(); in testFragmentTransition()
97 mActivity.getSupportFragmentManager().beginTransaction() in testFirstOutLastInTransition()
102 mActivity.getSupportFragmentManager().executePendingTransactions(); in testFirstOutLastInTransition()
[all …]
DFragmentTransactionTest.java42 private FragmentTestActivity mActivity; field in FragmentTransactionTest
46 mActivity = mActivityRule.getActivity(); in setUp()
55 mActivity.getSupportFragmentManager().beginTransaction() in testAddTransactionWithValidFragment()
59 mActivity.getSupportFragmentManager().executePendingTransactions(); in testAddTransactionWithValidFragment()
74 mActivity.getSupportFragmentManager().beginTransaction() in testAddTransactionWithPrivateFragment()
78 mActivity.getSupportFragmentManager().executePendingTransactions(); in testAddTransactionWithPrivateFragment()
98 mActivity.getSupportFragmentManager().beginTransaction() in testAddTransactionWithPackagePrivateFragment()
102 mActivity.getSupportFragmentManager().executePendingTransactions(); in testAddTransactionWithPackagePrivateFragment()
122 mActivity.getSupportFragmentManager().beginTransaction() in testAddTransactionWithAnonymousFragment()
126 mActivity.getSupportFragmentManager().executePendingTransactions(); in testAddTransactionWithAnonymousFragment()
[all …]
DFragmentTest.java36 private FragmentTestActivity mActivity; field in FragmentTest
45 mActivity = getActivity(); in setUp()
53 mActivity.getSupportFragmentManager() in testOnCreateOrder()
69 mActivity.getSupportFragmentManager().beginTransaction() in testChildFragmentManagerGone()
78 mActivity.getSupportFragmentManager().beginTransaction() in testChildFragmentManagerGone()
91 mActivity.getSupportFragmentManager().beginTransaction() in testChildFragmentManagerGone()
105 mActivity.getSupportFragmentManager().popBackStack(); in testChildFragmentManagerGone()
114 mActivity.getSupportFragmentManager().popBackStack(); in testChildFragmentManagerGone()
125 mActivity.getSupportFragmentManager() in testViewOrder()
131 ViewGroup content = (ViewGroup) mActivity.findViewById(R.id.content); in testViewOrder()
/frameworks/base/core/tests/coretests/src/android/view/menu/
DMenuLayoutLandscapeTest.java30 private MenuLayout mActivity; field in MenuLayoutLandscapeTest
39 mActivity = getActivity(); in setUp()
43 assertNotNull(mActivity); in testPreconditions()
79 mActivity.setParams(new MenuScenario.Params() in test1ShortItem()
86 mActivity.setParams(new MenuScenario.Params() in test1LongItem()
93 mActivity.setParams(new MenuScenario.Params() in test2LongItems()
101 mActivity.setParams(new MenuScenario.Params() in test2ShortItems()
109 mActivity.setParams(new MenuScenario.Params() in test3ShortItems()
118 mActivity.setParams(new MenuScenario.Params() in test3VarietyItems()
127 mActivity.setParams(new MenuScenario.Params() in test3VarietyItems2()
[all …]
DMenuLayoutPortraitTest.java30 private MenuLayout mActivity; field in MenuLayoutPortraitTest
39 mActivity = getActivity(); in setUp()
43 assertNotNull(mActivity); in testPreconditions()
78 mActivity.setParams(new MenuScenario.Params() in test1ShortItem()
85 mActivity.setParams(new MenuScenario.Params() in test1LongItem()
92 mActivity.setParams(new MenuScenario.Params() in test2LongItems()
100 mActivity.setParams(new MenuScenario.Params() in test2ShortItems()
108 mActivity.setParams(new MenuScenario.Params() in test3ShortItems()
117 mActivity.setParams(new MenuScenario.Params() in test3VarietyItems()
127 mActivity.setParams(new MenuScenario.Params() in test3VarietyItems2()
[all …]
DMenuWith1ItemTest.java32 private MenuWith1Item mActivity; field in MenuWith1ItemTest
41 mActivity = getActivity(); in setUp()
46 assertNotNull(mActivity); in testPreconditions()
47 assertFalse(mActivity.getButton().isInTouchMode()); in testPreconditions()
56 assertFalse("Item seems to have been clicked before we clicked on it", mActivity in testItemClick()
59 assertTrue("Item doesn't seem to have registered our click", mActivity.wasItemClicked(0)); in testItemClick()
/frameworks/base/core/tests/coretests/src/android/widget/touchmode/
DTouchModeFocusChangeTest.java36 private LLOfButtons1 mActivity; field in TouchModeFocusChangeTest
48 mActivity = getActivity(); in setUp()
49 mFirstButton = mActivity.getFirstButton(); in setUp()
54 assertFalse("we should not be in touch mode", mActivity.isInTouchMode()); in testPreconditions()
62 assertTrue("should be in touch mode", mActivity.isInTouchMode()); in testTouchButtonNotTakeFocus()
67 assertNull("activity shouldn't have focus", mActivity.getCurrentFocus()); in testTouchButtonNotTakeFocus()
69 mActivity.getLayout().hasFocus()); in testTouchButtonNotTakeFocus()
72 mActivity.buttonClickListenerFired()); in testTouchButtonNotTakeFocus()
79 assertTrue("should be in touch mode", mActivity.isInTouchMode()); in DISABLE_testLeaveTouchModeWithDpadEvent()
84 assertFalse("should be out of touch mode", mActivity.isInTouchMode()); in DISABLE_testLeaveTouchModeWithDpadEvent()
/frameworks/base/core/tests/coretests/src/android/view/
DGlobalFocusChangeTest.java31 private GlobalFocusChange mActivity; field in GlobalFocusChangeTest
42 mActivity = getActivity(); in setUp()
43 mLeft = mActivity.findViewById(R.id.left); in setUp()
44 mRight = mActivity.findViewById(R.id.right); in setUp()
49 mActivity.reset(); in tearDown()
61 assertSame(mLeft, mActivity.mOldFocus); in testFocusChange()
62 assertSame(mRight, mActivity.mNewFocus); in testFocusChange()
72 assertSame(mLeft, mActivity.mOldFocus); in testEnterTouchMode()
73 assertSame(null, mActivity.mNewFocus); in testEnterTouchMode()
86 assertSame(null, mActivity.mOldFocus); in testLeaveTouchMode()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DScrollingThroughListOfFocusablesTest.java36 private ListOfInternalSelectionViews mActivity; field in ScrollingThroughListOfFocusablesTest
45 mActivity = launchActivity( in setUp()
52 mListView = mActivity.getListView(); in setUp()
61 mActivity.finish(); in tearDown()
67 assertNotNull(mActivity); in testPreconditions()
69 assertEquals(mNumItems, mActivity.getNumItems()); in testPreconditions()
70 assertEquals(mNumRowsPerItem, mActivity.getNumRowsPerItem()); in testPreconditions()
79 InternalSelectionView view = mActivity.getSelectedView(); in testScrollingDownInFirstItem()
110 mActivity.getLabelForPosition(1), peekingChild.getLabel()); in testScrollingDownInFirstItem()
140 InternalSelectionView view = mActivity.getSelectedView(); in testNoFadingEdgeAtBottomOfLastItem()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
DListTouchManyTest.java34 private ListTopGravityMany mActivity; field in ListTouchManyTest
45 mActivity = getActivity(); in setUp()
51 assertNotNull(mActivity); in testPreconditions()
101 mActivity.setClickedPosition(-1); in testPress()
102 mActivity.setLongClickedPosition(-1); in testPress()
112 mActivity.getClickedPosition()); in testPress()
114 mActivity.getLongClickedPosition()); in testPress()
128 mActivity.enableLongPress(); in testLongPress()
129 mActivity.setClickedPosition(-1); in testLongPress()
130 mActivity.setLongClickedPosition(-1); in testLongPress()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DActionBarDrawerToggle.java499 final Activity mActivity; field in ActionBarDrawerToggle.HoneycombDelegate
503 mActivity = activity; in HoneycombDelegate()
508 return ActionBarDrawerToggleHoneycomb.getThemeUpIndicator(mActivity); in getThemeUpIndicator()
513 final ActionBar actionBar = mActivity.getActionBar(); in getActionBarThemedContext()
518 context = mActivity; in getActionBarThemedContext()
525 final ActionBar actionBar = mActivity.getActionBar(); in isNavigationVisible()
532 final ActionBar actionBar = mActivity.getActionBar(); in setActionBarUpIndicator()
536 mSetIndicatorInfo, mActivity, themeImage, contentDescRes); in setActionBarUpIndicator()
544 mSetIndicatorInfo, mActivity, contentDescRes); in setActionBarDescription()
553 final Activity mActivity; field in ActionBarDrawerToggle.JellybeanMr2Delegate
[all …]
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/
DBrowseFragmentTest.java53 private BrowseFragmentTestActivity mActivity; field in BrowseFragmentTest
61 mActivity = activityTestRule.launchActivity(intent); in testTwoBackKeysWithBackStack()
76 mActivity = activityTestRule.launchActivity(intent); in testTwoBackKeysWithoutBackStack()
91 mActivity = activityTestRule.launchActivity(intent); in testPressRightBeforeMainFragmentCreated()
104 mActivity = activityTestRule.launchActivity(intent); in testSelectCardOnARow()
109 new ItemSelectionTask(mActivity, selectRow)); in testSelectCardOnARow()
115 mActivity.runOnUiThread(new Runnable() { in testSelectCardOnARow()
118 mActivity.getBrowseTestFragment().setSelectedPosition(selectRow, true, task); in testSelectCardOnARow()
124 ListRowPresenter.ViewHolder row = (ListRowPresenter.ViewHolder) mActivity in testSelectCardOnARow()
136 mActivity = activityTestRule.launchActivity(intent); in activityRecreate_notCrash()
[all …]
DBrowseSupportFragmentTest.java55 private BrowseSupportFragmentTestActivity mActivity; field in BrowseSupportFragmentTest
63 mActivity = activityTestRule.launchActivity(intent); in testTwoBackKeysWithBackStack()
78 mActivity = activityTestRule.launchActivity(intent); in testTwoBackKeysWithoutBackStack()
93 mActivity = activityTestRule.launchActivity(intent); in testPressRightBeforeMainFragmentCreated()
106 mActivity = activityTestRule.launchActivity(intent); in testSelectCardOnARow()
111 new ItemSelectionTask(mActivity, selectRow)); in testSelectCardOnARow()
117 mActivity.runOnUiThread(new Runnable() { in testSelectCardOnARow()
120 mActivity.getBrowseTestSupportFragment().setSelectedPosition(selectRow, true, task); in testSelectCardOnARow()
126 ListRowPresenter.ViewHolder row = (ListRowPresenter.ViewHolder) mActivity in testSelectCardOnARow()
138 mActivity = activityTestRule.launchActivity(intent); in activityRecreate_notCrash()
[all …]
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DTrackerListHelper.java32 private ListActivity mActivity; field in TrackerListHelper
39 mActivity = activity; in TrackerListHelper()
50 Cursor cursor = mActivity.managedQuery(TrackerProvider.CONTENT_URI, in bindListUI()
53 TrackerAdapter adapter = new TrackerAdapter(mActivity, layout, cursor); in bindListUI()
54 mActivity.setListAdapter(adapter); in bindListUI()
55 cursor.setNotificationUri(mActivity.getContentResolver(), in bindListUI()
/frameworks/base/core/tests/coretests/src/android/widget/gridview/
DGridSetSelectionBaseTest.java27 private T mActivity; field in GridSetSelectionBaseTest
38 mActivity = getActivity(); in setUp()
44 assertNotNull(mActivity); in testPreconditions()
59 mActivity.runOnUiThread(new Runnable() { in testSetSelectionToTheEnd()
75 mActivity.runOnUiThread(new Runnable() { in testSetSelectionToMiddle()
90 mActivity.runOnUiThread(new Runnable() { in testSetSelectionToTheTop()
/frameworks/base/core/tests/coretests/src/android/text/method/
DKeyListenerTestCase.java31 protected TextViewActivity mActivity; field in KeyListenerTestCase
43 mActivity = getActivity(); in setUp()
45 mTextView = (EditText) mActivity.findViewById(R.id.textview); in setUp()
47 mActivity.runOnUiThread(new Runnable() { in setUp()
54 assertTrue(mActivity.waitForWindowFocus(5 * DateUtils.SECOND_IN_MILLIS)); in setUp()
/frameworks/base/core/java/android/hardware/location/
DActivityRecognitionEvent.java28 private final String mActivity; field in ActivityRecognitionEvent
33 mActivity = activity; in ActivityRecognitionEvent()
39 return mActivity; in getActivity()
74 parcel.writeString(mActivity); in writeToParcel()
83 mActivity, in toString()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DUsbDisconnectedReceiver.java31 private final Activity mActivity; field in UsbDisconnectedReceiver
36 mActivity = activity; in UsbDisconnectedReceiver()
44 mActivity = activity; in UsbDisconnectedReceiver()
57 mActivity.finish(); in onReceive()
63 mActivity.finish(); in onReceive()
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/
DSampleMediaButtonReceiver.java33 private static SampleMediaRouterActivity mActivity; field in SampleMediaButtonReceiver
36 mActivity = activity; in setActivity()
41 if (mActivity != null && Intent.ACTION_MEDIA_BUTTON.equals(intent.getAction())) { in onReceive()
42 mActivity.handleMediaKey( in onReceive()
/frameworks/base/location/lib/java/com/android/location/provider/
DActivityRecognitionEvent.java23 private final String mActivity; field in ActivityRecognitionEvent
28 mActivity = activity; in ActivityRecognitionEvent()
34 return mActivity; in getActivity()
65 mActivity, in toString()

12345