Home
last modified time | relevance | path

Searched refs:mTestActivity (Results 1 – 25 of 63) sorted by relevance

123

/developers/samples/android/ui/views/Clipping/ClippingBasic/Application/tests/src/com/example/android/clippingbasic/tests/
DSampleTests.java29 private MainActivity mTestActivity; field in SampleTests
44 mTestActivity = getActivity(); in setUp()
46 mTestActivity.getSupportFragmentManager().getFragments().get(1); in setUp()
53 assertNotNull("mTestActivity is null", mTestActivity); in testPreconditions()
55 assertNotNull("Clipped frame is null", mTestActivity.findViewById(R.id.frame)); in testPreconditions()
56 assertNotNull("Text view is null", mTestActivity.findViewById(R.id.text_view)); in testPreconditions()
63 View clippedView = mTestActivity.findViewById(R.id.frame); in testClipping()
69 TouchUtils.clickView(this, mTestActivity.findViewById(R.id.button)); in testClipping()
/developers/samples/android/ui/views/RevealEffect/RevealEffectBasic/Application/tests/src/com/example/android/revealeffectbasic/tests/
DSampleTests.java27 private MainActivity mTestActivity; field in SampleTests
42 mTestActivity = getActivity(); in setUp()
44 mTestActivity.getSupportFragmentManager().getFragments().get(1); in setUp()
53 assertNotNull("mTestActivity is null", mTestActivity); in testPreconditions()
55 assertNotNull("Circle view is null", mTestActivity.findViewById(R.id.circle)); in testPreconditions()
/developers/samples/android/ui/views/Elevation/ElevationBasic/Application/tests/src/com/example/android/elevationbasic/tests/
DSampleTests.java30 private MainActivity mTestActivity; field in SampleTests
48 mTestActivity = getActivity(); in setUp()
50 mTestActivity.getSupportFragmentManager().getFragments().get(1); in setUp()
51 mShape1 = mTestActivity.findViewById(R.id.floating_shape); in setUp()
52 mShape2 = mTestActivity.findViewById(R.id.floating_shape_2); in setUp()
59 assertNotNull("mTestActivity is null", mTestActivity); in testPreconditions()
/developers/samples/android/content/documentsUi/StorageClient/Application/tests/src/com/example/android/storageclient/tests/
DSampleTests.java44 private MainActivity mTestActivity; field in SampleTests
59 mTestActivity = getActivity(); in setUp()
61 mTestActivity.getSupportFragmentManager().getFragments().get(1); in setUp()
70 assertNotNull("mTestActivity is null", mTestActivity); in testPreconditions()
79 StorageClientFragment.ImageDialogFragment.dumpImageMetaData(mTestActivity, uri); in testDumpMetadataInvalidUri()
/developers/samples/android/ui/views/Elevation/ElevationDrag/Application/tests/src/com/example/android/elevationdrag/tests/
DSampleTests.java30 private MainActivity mTestActivity; field in SampleTests
48 mTestActivity = getActivity(); in setUp()
50 mTestActivity.getSupportFragmentManager().getFragments().get(1); in setUp()
52 mFloatingShape = mTestActivity.findViewById(R.id.circle); in setUp()
53 mDragFrame = mTestActivity.findViewById(R.id.main_layout); in setUp()
62 assertNotNull("mTestActivity is null", mTestActivity); in testPreconditions()
/developers/samples/android/system/AppUsageStatistics/Application/tests/src/com/example/android/appusagestatistics/
DAppUsageStatisticsActivityTests.java41 private AppUsageStatisticsActivity mTestActivity; field in AppUsageStatisticsActivityTests
56 mTestActivity = getActivity(); in setUp()
58 mTestActivity.getSupportFragmentManager().getFragments().get(0); in setUp()
67 assertNotNull("mTestActivity is null", mTestActivity); in testPreconditions()
/developers/samples/android/ui/views/SlidingTabs/SlidingTabsColors/Application/tests/src/com/example/android/slidingtabscolors/tests/
DSampleTests.java45 private MainActivity mTestActivity; field in SampleTests
60 mTestActivity = getActivity(); in setUp()
62 mTestActivity.getSupportFragmentManager().getFragments().get(1); in setUp()
71 assertNotNull("mTestActivity is null", mTestActivity); in testPreconditions()
/developers/samples/android/security/keystore/BasicAndroidKeyStore/Application/tests/src/com/example/android/basicandroidkeystore/tests/
DSampleTests.java45 private MainActivity mTestActivity; field in SampleTests
60 mTestActivity = getActivity(); in setUp()
62 mTestActivity.getSupportFragmentManager().getFragments().get(1); in setUp()
71 assertNotNull("mTestActivity is null", mTestActivity); in testPreconditions()
/developers/samples/android/ui/views/SlidingTabs/SlidingTabsBasic/Application/tests/src/com/example/android/slidingtabsbasic/tests/
DSampleTests.java27 private MainActivity mTestActivity; field in SampleTests
42 mTestActivity = getActivity(); in setUp()
44 mTestActivity.getSupportFragmentManager().getFragments().get(1); in setUp()
53 assertNotNull("mTestActivity is null", mTestActivity); in testPreconditions()
/developers/samples/android/ui/window/ImmersiveMode/Application/tests/src/com/example/android/immersivemode/tests/
DSampleTests.java45 private MainActivity mTestActivity; field in SampleTests
60 mTestActivity = getActivity(); in setUp()
62 mTestActivity.getSupportFragmentManager().getFragments().get(1); in setUp()
71 assertNotNull("mTestActivity is null", mTestActivity); in testPreconditions()
DImmersiveModeSampleTests.java28 private MainActivity mTestActivity; field in ImmersiveModeSampleTests
43 mTestActivity = getActivity(); in setUp()
45 mTestActivity.getSupportFragmentManager().getFragments().get(1); in setUp()
54 assertNotNull("mTestActivity is null", mTestActivity); in testPreconditions()
94 mTestActivity.runOnUiThread(testRunnable); in testDecorHeightExpanded()
/developers/samples/android/notification/ActiveNotifications/Application/src/androidTest/java/com/example/android/activenotifications/test/
DSampleTests.java42 private MainActivity mTestActivity; field in SampleTests
57 mTestActivity = getActivity(); in setUp()
59 mTestActivity.getSupportFragmentManager().getFragments().get(1); in setUp()
68 assertNotNull("mTestActivity is null", mTestActivity); in testPreconditions()
/developers/samples/android/connectivity/nfc/BeamLargeFiles/Application/tests/src/com/example/android/beamlargefiles/tests/
DSampleTests.java42 private MainActivity mTestActivity; field in SampleTests
57 mTestActivity = getActivity(); in setUp()
59 mTestActivity.getSupportFragmentManager().getFragments().get(1); in setUp()
68 assertNotNull("mTestActivity is null", mTestActivity); in testPreconditions()
/developers/samples/android/notification/MessagingService/Application/src/androidTest/java/com/example/android/messagingservice/test/
DSampleTests.java42 private MainActivity mTestActivity; field in SampleTests
57 mTestActivity = getActivity(); in setUp()
59 mTestActivity.getSupportFragmentManager().getFragments().get(1); in setUp()
68 assertNotNull("mTestActivity is null", mTestActivity); in testPreconditions()
/developers/samples/android/content/documentsUi/ScopedDirectoryAccess/Application/src/androidTest/java/com/example/android/filebasedencryption/test/
DSampleTests.java27 private MainActivity mTestActivity; field in SampleTests
42 mTestActivity = getActivity(); in setUp()
44 mTestActivity.getSupportFragmentManager().getFragments().get(1); in setUp()
53 assertNotNull("mTestActivity is null", mTestActivity); in testPreconditions()
/developers/samples/android/connectivity/sync/BasicSyncAdapter/Application/tests/src/com/example/android/basicsyncadapter/tests/
DSampleTests.java27 private EntryListActivity mTestActivity; field in SampleTests
42 mTestActivity = getActivity(); in setUp()
44 mTestActivity.getSupportFragmentManager().getFragments().get(0); in setUp()
53 assertNotNull("mTestActivity is null", mTestActivity); in testPreconditions()
/developers/samples/android/security/DirectBoot/Application/src/androidTest/java/com/example/android/filebasedencryption/test/
DSampleTests.java27 private MainActivity mTestActivity; field in SampleTests
42 mTestActivity = getActivity(); in setUp()
44 mTestActivity.getSupportFragmentManager().getFragments().get(1); in setUp()
53 assertNotNull("mTestActivity is null", mTestActivity); in testPreconditions()
/developers/samples/android/input/gestures/BasicGestureDetect/Application/tests/src/com/example/android/basicgesturedetect/tests/
DSampleTests.java45 private MainActivity mTestActivity; field in SampleTests
60 mTestActivity = getActivity(); in setUp()
62 mTestActivity.getSupportFragmentManager().getFragments().get(1); in setUp()
71 assertNotNull("mTestActivity is null", mTestActivity); in testPreconditions()
/developers/samples/android/content/WidgetData/Application/tests/src/com/example/android/widgetdata/tests/
DSampleTests.java27 private MainActivity mTestActivity; field in SampleTests
42 mTestActivity = getActivity(); in setUp()
44 mTestActivity.getSupportFragmentManager().getFragments().get(1); in setUp()
53 assertNotNull("mTestActivity is null", mTestActivity); in testPreconditions()
/developers/samples/android/ui/actionbarcompat/ActionBarCompat-ListPopupMenu/Application/tests/src/com/example/android/actionbarcompat/listpopupmenu/tests/
DSampleTests.java27 private MainActivity mTestActivity; field in SampleTests
42 mTestActivity = getActivity(); in setUp()
44 mTestActivity.getSupportFragmentManager().getFragments().get(0); in setUp()
53 assertNotNull("mTestActivity is null", mTestActivity); in testPreconditions()
/developers/samples/android/ui/actionbarcompat/ActionBarCompat-ListViewModalSelect/Application/tests/src/com/example/android/actionbarcompat/listviewmodalselect/tests/
DSampleTests.java27 private MainActivity mTestActivity; field in SampleTests
42 mTestActivity = getActivity(); in setUp()
44 mTestActivity.getSupportFragmentManager().getFragments().get(0); in setUp()
53 assertNotNull("mTestActivity is null", mTestActivity); in testPreconditions()
/developers/samples/android/ui/views/FloatingActionButton/FloatingActionButtonBasic/Application/tests/src/com/example/android/floatingactionbuttonbasic/tests/
DSampleTests.java29 private MainActivity mTestActivity; field in SampleTests
44 mTestActivity = getActivity(); in setUp()
46 mTestActivity.getSupportFragmentManager().getFragments().get(0); in setUp()
55 assertNotNull("mTestActivity is null", mTestActivity); in testPreconditions()
/developers/samples/android/ui/views/SwipeRefreshLayout/SwipeRefreshLayoutBasic/Application/tests/src/com/example/android/swiperefreshlayoutbasic/tests/
DSampleTests.java31 private MainActivity mTestActivity; field in SampleTests
48 mTestActivity = getActivity(); in setUp()
50 mTestActivity.getSupportFragmentManager().getFragments().get(1); in setUp()
61 assertNotNull("mTestActivity is null", mTestActivity); in testPreconditions()
94 getInstrumentation().invokeMenuActionSync(mTestActivity, R.id.menu_refresh, 0); in testRefreshMenuItem()
/developers/samples/android/ui/window/BasicImmersiveMode/Application/tests/src/com/example/android/basicimmersivemode/tests/
DSampleTests.java43 private MainActivity mTestActivity; field in SampleTests
58 mTestActivity = getActivity(); in setUp()
60 mTestActivity.getSupportFragmentManager().getFragments().get(1); in setUp()
69 assertNotNull("mTestActivity is null", mTestActivity); in testPreconditions()
109 mTestActivity.runOnUiThread(testRunnable); in testDecorHeightExpanded()
/developers/samples/android/ui/views/SwipeRefreshLayout/SwipeRefreshMultipleViews/Application/tests/src/com/example/android/swiperefreshmultipleviews/tests/
DSampleTests.java33 private MainActivity mTestActivity; field in SampleTests
50 mTestActivity = getActivity(); in setUp()
52 mTestActivity.getSupportFragmentManager().getFragments().get(1); in setUp()
63 assertNotNull("mTestActivity is null", mTestActivity); in testPreconditions()
119 getInstrumentation().invokeMenuActionSync(mTestActivity, R.id.menu_refresh, 0); in testRefreshMenuItem()
127 getInstrumentation().invokeMenuActionSync(mTestActivity, R.id.menu_refresh, 0); in populateList()

123