/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | ListEmptyViewTest.java | 29 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 …]
|
D | ListViewHeightTest.java | 29 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()
|
D | ListFocusableTest.java | 26 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()
|
D | ListHeterogeneousTest.java | 29 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()
|
D | ListUnspecifiedMeasure.java | 27 private T mActivity; field in ListUnspecifiedMeasure 38 mActivity = getActivity(); in setUp() 39 mListView = (ListView) mActivity.findViewById(R.id.list); in setUp() 44 assertNotNull(mActivity); in testPreconditions()
|
D | ListBottomGravityManyTest.java | 26 private ListBottomGravityMany mActivity; field in ListBottomGravityManyTest 37 mActivity = getActivity(); in setUp() 43 assertNotNull(mActivity); in testPreconditions()
|
D | ListBottomGravityTest.java | 26 private ListBottomGravity mActivity; field in ListBottomGravityTest 37 mActivity = getActivity(); in setUp() 43 assertNotNull(mActivity); in testPreconditions()
|
/frameworks/base/core/tests/coretests/src/android/view/menu/ |
D | MenuLayoutLandscapeTest.java | 30 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 …]
|
D | MenuLayoutPortraitTest.java | 30 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 …]
|
D | MenuWith1ItemTest.java | 32 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/ |
D | TouchModeFocusChangeTest.java | 36 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/ |
D | GlobalFocusChangeTest.java | 29 private GlobalFocusChange mActivity; field in GlobalFocusChangeTest 40 mActivity = getActivity(); in setUp() 41 mLeft = mActivity.findViewById(R.id.left); in setUp() 42 mRight = mActivity.findViewById(R.id.right); in setUp() 47 mActivity.reset(); in tearDown() 59 assertSame(mLeft, mActivity.mOldFocus); in testFocusChange() 60 assertSame(mRight, mActivity.mNewFocus); in testFocusChange() 70 assertSame(mLeft, mActivity.mOldFocus); in testEnterTouchMode() 71 assertSame(null, mActivity.mNewFocus); in testEnterTouchMode() 84 assertSame(null, mActivity.mOldFocus); in testLeaveTouchMode() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
D | ScrollingThroughListOfFocusablesTest.java | 37 private ListOfInternalSelectionViews mActivity; field in ScrollingThroughListOfFocusablesTest 46 mActivity = launchActivity( in setUp() 53 mListView = mActivity.getListView(); in setUp() 58 mActivity.finish(); in tearDown() 64 assertNotNull(mActivity); in testPreconditions() 66 assertEquals(mNumItems, mActivity.getNumItems()); in testPreconditions() 67 assertEquals(mNumRowsPerItem, mActivity.getNumRowsPerItem()); in testPreconditions() 76 InternalSelectionView view = mActivity.getSelectedView(); in testScrollingDownInFirstItem() 108 mActivity.getLabelForPosition(1), peekingChild.getLabel()); in testScrollingDownInFirstItem() 139 InternalSelectionView view = mActivity.getSelectedView(); in testNoFadingEdgeAtBottomOfLastItem() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/ |
D | ListTouchManyTest.java | 34 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 …]
|
D | ListSetSelectionTest.java | 32 private ListSimple mActivity; field in ListSetSelectionTest 43 mActivity = getActivity(); in setUp() 49 assertNotNull(mActivity); in testPreconditions() 64 mActivity.runOnUiThread(new Runnable() { in testSetSelection() 94 mActivity.runOnUiThread(new Runnable() { in testSetSelectionFromTop() 130 mActivity.runOnUiThread(new Runnable() { in testSetSelection0()
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
D | TrackerListHelper.java | 32 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/ |
D | GridSetSelectionBaseTest.java | 27 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()
|
D | GridSingleColumnTest.java | 26 private GridSingleColumn mActivity; field in GridSingleColumnTest 37 mActivity = getActivity(); in setUp() 43 assertNotNull(mActivity); in testPreconditions()
|
D | GridInHorizontalTest.java | 27 private GridInHorizontal mActivity; field in GridInHorizontalTest 38 mActivity = getActivity(); in setUp() 44 assertNotNull(mActivity); in testPreconditions()
|
D | GridInVerticalTest.java | 27 private GridInVertical mActivity; field in GridInVerticalTest 38 mActivity = getActivity(); in setUp() 44 assertNotNull(mActivity); in testPreconditions()
|
D | GridStackFromBottomManyTest.java | 26 private GridStackFromBottomMany mActivity; field in GridStackFromBottomManyTest 37 mActivity = getActivity(); in setUp() 43 assertNotNull(mActivity); in testPreconditions()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
D | UsbDisconnectedReceiver.java | 31 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/v4/java/android/support/v4/app/ |
D | Fragment.java | 222 FragmentActivity mActivity; field in Fragment 536 return mActivity; in getActivity() 543 if (mActivity == null) { in getResources() 546 return mActivity.getResources(); in getResources() 597 return mActivity != null && mAdded; in isAdded() 701 mActivity.supportInvalidateOptionsMenu(); in setHasOptionsMenu() 719 mActivity.supportInvalidateOptionsMenu(); in setMenuVisibility() 731 if (mActivity == null) { in getLoaderManager() 735 mLoaderManager = mActivity.getLoaderManager(mIndex, mLoadersStarted, true); in getLoaderManager() 744 if (mActivity == null) { in startActivity() [all …]
|
/frameworks/base/core/java/android/app/ |
D | Fragment.java | 409 Activity mActivity; field in Fragment 724 return mActivity; in getActivity() 731 if (mActivity == null) { in getResources() 734 return mActivity.getResources(); in getResources() 785 return mActivity != null && mAdded; in isAdded() 919 if (mActivity == null) { in getLoaderManager() 923 mLoaderManager = mActivity.getLoaderManager(mIndex, mLoadersStarted, true); in getLoaderManager() 932 if (mActivity == null) { in startActivity() 935 mActivity.startActivityFromFragment(this, intent, -1); in startActivity() 943 if (mActivity == null) { in startActivityForResult() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/ |
D | GridTouchSetSelectionTest.java | 32 private GridSimple mActivity; field in GridTouchSetSelectionTest 43 mActivity = getActivity(); in setUp() 49 assertNotNull(mActivity); in testPreconditions() 64 mActivity.runOnUiThread(new Runnable() { in testSetSelection()
|