/frameworks/base/core/tests/coretests/src/android/widget/touchmode/ |
FocusableInTouchModeClickTest.java | 39 assertTrue("should start in touch mode", getActivity().getButton1().isInTouchMode()); 40 assertTrue(getActivity().getButton1().isFocused()); 45 TouchUtils.clickView(this, getActivity().getButton2()); 47 getActivity().getButton2().isFocused()); 49 getActivity().isB2Fired()); 51 TouchUtils.clickView(this, getActivity().getButton2()); 53 getActivity().isB2Fired()); 58 TouchUtils.touchAndCancelView(this, getActivity().getButton2()); 59 assertFalse("button shouldn't have fired click", getActivity().isB2Fired()); 60 assertFalse("button shouldn't have focus", getActivity().getButton2().isFocused()) [all...] |
ChangeTouchModeTest.java | 47 assertFalse("touch mode", getActivity().isInTouchMode()); 52 assertInTouchModeAfterTap(this, getActivity().getFirstButton()); 53 assertTrue("touch mode", getActivity().isInTouchMode()); 58 assertInTouchModeAfterClick(this, getActivity().getFirstButton()); 60 assertNotInTouchModeAfterKey(this, KeyEvent.KEYCODE_DPAD_RIGHT, getActivity().getFirstButton()); 61 assertFalse("touch mode", getActivity().isInTouchMode()); 88 assertInTouchModeAfterClick(this, getActivity().getFirstButton()); 105 assertFalse("touch mode", getActivity().isInTouchMode()); 124 assertTrue("touch mode", getActivity().isInTouchMode());
|
/frameworks/base/core/tests/coretests/src/android/widget/scroll/ |
ButtonAboveTallInternalSelectionViewTest.java | 36 getActivity().getButtonAbove().isFocused()); 39 getActivity().getScrollView().getScrollY()); 41 getActivity().getIsv().getHeight() > getActivity().getScrollView().getHeight()); 44 getActivity().getIsv().getTop() > 45 getActivity().getScrollView().getScrollY()); 54 final InternalSelectionView isv = getActivity().getIsv(); 60 getActivity().getIsv().getTop() > 61 getActivity().getScrollView().getScrollY());
|
ScrollViewButtonsAndLabelsTest.java | 46 mScrollView = getActivity().getScrollView(); 47 mLinearLayout = getActivity().getLinearLayout(); 68 Button firstButtonOffScreen = getActivity().getButton(offScreenIndex); 79 offScreenIndex < getActivity().getNumButtons()); 98 int numGroups = getActivity().getNumButtons(); 99 Button lastButton = getActivity().getButton(numGroups - 1); 126 Button offScreenButton = getActivity().getButton(offScreenIndex); 153 Button topButton = getActivity().getButton(0); 165 int numButtons = getActivity().getNumButtons(); 166 Button lastButton = getActivity().getButton(numButtons - 1) [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
GoneParentFocusedChildTest.java | 39 assertNotNull(getActivity().getLayout()); 40 assertNotNull(getActivity().getGoneGroup()); 41 assertNotNull(getActivity().getButton()); 43 getActivity().getButton().hasFocus()); 46 getActivity().getGoneGroup().getVisibility()); 48 getActivity().isUnhandledKeyEvent()); 54 assertTrue(getActivity().isUnhandledKeyEvent());
|
LinearLayoutGridTest.java | 42 mRootView = getActivity().getRootView(); 47 assertEquals(getActivity().getButtonAt(2, 1), 50 getActivity().getButtonAt(1, 1), 56 assertEquals(getActivity().getButtonAt(0, 1), 59 getActivity().getButtonAt(1, 1), 65 assertEquals(getActivity().getButtonAt(1, 2), 68 getActivity().getButtonAt(1, 1), 74 assertEquals(getActivity().getButtonAt(1, 0), 77 getActivity().getButtonAt(1, 1),
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
ListRetainsFocusAcrossLayoutsTest.java | 32 getActivity().runOnUiThread(new Runnable() { 34 getActivity().getListView().requestLayout(); 42 getActivity().getChildOfItem(0, 0).isFocused()); 51 getActivity().getChildOfItem(0, 2).isFocused()); 57 getActivity().getChildOfItem(0, 2).isFocused()); 65 getActivity().getChildOfItem(1, 0).isFocused()); 71 getActivity().getChildOfItem(1, 0).isFocused()); 80 getActivity().getChildOfItem(1, 2).isFocused()); 86 getActivity().getChildOfItem(1, 2).isFocused());
|
/frameworks/base/core/tests/coretests/src/android/widget/scroll/arrowscroll/ |
TallTextAboveButtonTest.java | 36 mScrollView = getActivity().getScrollView(); 37 mTopText = getActivity().getContentChildAt(0); 38 mBottomButton = getActivity().getContentChildAt(1); 50 + "is on screen), but " + getActivity().getScrollView().findFocus() + " does instead", 51 getActivity().getScrollView().isFocused()); 64 assertTrue("scroll view should have focus, but " + getActivity().getScrollView().findFocus() + " does instead", 65 getActivity().getScrollView().isFocused()); 73 assertTrue("scroll view should have focus, but " + getActivity().getScrollView().findFocus() + " does instead", 74 getActivity().getScrollView().isFocused());
|
ShortButtonsTest.java | 41 mScrollView = getActivity().getScrollView(); 47 getActivity().getButtonAt(0).getHeight() 51 getActivity().getLinearLayout().getHeight() 52 > getActivity().getScrollView().getHeight()); 57 final int numButtons = getActivity().getNumButtons(); 61 final Button button = getActivity().getButtonAt(i); 68 getActivity().getLinearLayout().getHeight() - mScrollView.getHeight(), 74 final int numButtons = getActivity().getNumButtons(); 76 final Button lastButton = getActivity().getButtonAt(numButtons - 1); 90 final Button button = getActivity().getButtonAt(i) [all...] |
/packages/apps/Camera/tests/src/com/android/camera/functional/ |
ImageCaptureIntentTest.java | 58 getActivity(); 63 assertTrue(getActivity().isFinishing()); 64 assertEquals(Activity.RESULT_OK, getActivity().getResultCode()); 65 Intent resultData = getActivity().getResultData(); 82 getActivity(); 87 assertTrue(getActivity().isFinishing()); 88 assertEquals(Activity.RESULT_OK, getActivity().getResultCode()); 109 getActivity(); 116 assertTrue(getActivity().isFinishing()); 117 assertEquals(Activity.RESULT_OK, getActivity().getResultCode()) [all...] |
VideoCaptureIntentTest.java | 64 ContentResolver resolver = getActivity().getContentResolver(); 88 getActivity(); 93 Intent resultData = getActivity().getResultData(); 96 verify(getActivity(), mVideoUri); 106 getActivity(); 111 verify(getActivity(), uri); 117 getActivity(); 124 Intent resultData = getActivity().getResultData(); 127 verify(getActivity(), mVideoUri); 133 getActivity(); [all...] |
/development/samples/ApiDemos/tests/src/com/example/android/apis/ |
ApiDemosTest.java | 38 assertNotNull("activity should be launched successfully", getActivity());
|
/development/samples/HelloActivity/tests/src/com/example/android/helloactivity/ |
HelloActivityTest.java | 38 assertNotNull("activity should be launched successfully", getActivity());
|
/development/samples/LunarLander/tests/src/com/example/android/lunarlander/ |
LunarLanderTest.java | 40 assertNotNull("activity should be launched successfully", getActivity());
|
/development/samples/NotePad/tests/src/com/example/android/notepad/ |
NotePadActivityTest.java | 39 assertNotNull("activity should be launched successfully", getActivity());
|
/development/samples/SkeletonApp/tests/src/com/example/android/skeletonapp/ |
SkeletonAppTest.java | 39 assertNotNull("activity should be launched successfully", getActivity());
|
/development/samples/Snake/tests/src/com/example/android/snake/ |
SnakeTest.java | 38 assertNotNull("activity should be launched successfully", getActivity());
|
/frameworks/base/core/tests/coretests/src/android/view/ |
RunQueueTest.java | 34 final RunQueue activity = getActivity(); 41 final RunQueue activity = getActivity(); 48 final RunQueue activity = getActivity(); 55 final RunQueue activity = getActivity();
|
/frameworks/base/test-runner/src/android/test/ |
ActivityInstrumentationTestCase.java | 68 public T getActivity() { 69 return (T) super.getActivity(); 83 getActivity().finish(); 95 assertNotNull("activity should be launched successfully", getActivity());
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/ |
ListWithOnItemSelectedActionTest.java | 36 mListView = getActivity().getListView(); 48 getActivity().getHeaderValue()); 58 getActivity().getHeaderValue());
|
/frameworks/base/core/tests/coretests/src/android/widget/gridview/ |
GridInHorizontalTest.java | 38 mActivity = getActivity(); 39 mGridView = getActivity().getGridView();
|
GridInVerticalTest.java | 38 mActivity = getActivity(); 39 mGridView = getActivity().getGridView();
|
GridSingleColumnTest.java | 37 mActivity = getActivity(); 38 mGridView = getActivity().getGridView();
|
GridStackFromBottomManyTest.java | 37 mActivity = getActivity(); 38 mGridView = getActivity().getGridView();
|
GridStackFromBottomTest.java | 37 mActivity = getActivity(); 38 mGridView = getActivity().getGridView();
|