/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());
|
ActivityTestCase.java | 39 protected Activity getActivity() {
|
SingleLaunchActivityTestCase.java | 58 public T getActivity() {
|
ActivityInstrumentationTestCase2.java | 79 * before your first call to getActivity(). Calling them after your Activity has 90 public T getActivity() { 91 Activity a = super.getActivity(); 108 * Call this method before the first call to {@link #getActivity} to inject a customized Intent 130 * Call this method before the first call to {@link #getActivity} to set the initial touch 157 Activity a = super.getActivity(); 181 getActivity();
|
ActivityUnitTestCase.java | 90 public T getActivity() { 91 return (T) super.getActivity(); 156 T result = getActivity(); 158 getInstrumentation().callActivityOnCreate(getActivity(), savedInstanceState);
|
/development/samples/ApiDemos/src/com/example/android/apis/preference/ |
PreferenceWithHeaders.java | 67 PreferenceManager.setDefaultValues(getActivity(),
|
/packages/apps/Music/tests/src/com/android/music/ |
MusicPlayerStability.java | 42 getActivity(); 65 mTrackList = getActivity().getListView();
|
/development/samples/ApiDemos/tests/src/com/example/android/apis/app/ |
ForwardingTest.java | 75 mButton = (Button) getActivity().findViewById(R.id.go); 77 assertNotNull(getActivity());
|
/frameworks/base/core/java/android/nfc/ |
NfcFragment.java | 75 sNfcActivityManager.onResume(getActivity()); 83 sNfcActivityManager.onPause(getActivity()); 91 sNfcActivityManager.onDestroy(getActivity());
|
/packages/apps/Browser/tests/src/com/android/browser/ |
IntentHandlerTests.java | 41 Controller controller = getActivity().getController(); 61 Controller controller = getActivity().getController(); 70 if (BrowserActivity.isTablet(getActivity())) { 88 Controller controller = getActivity().getController(); 97 if (BrowserActivity.isTablet(getActivity())) { 142 getActivity(); 144 final Activity activity = getActivity(); 154 Tab tab = getActivity().getController().getCurrentTab(); 160 public BrowserActivity getActivity() { 162 return super.getActivity(); [all...] |
/packages/apps/Mms/tests/src/com/android/mms/ |
MmsStability.java | 53 getActivity(); 70 Button mSendButton = (Button) getActivity().getWindow().findViewById(R.id.send_button);
|
/packages/apps/Music/tests/src/com/android/music/stress/ |
MusicPlaybackStress.java | 61 inst.invokeMenuActionSync(getActivity(), MusicUtils.Defs.CHILD_MENU_BASE + 3, 0); 83 ((ActivityManager)getActivity().getSystemService(Context.ACTIVITY_SERVICE)).getMemoryInfo(mi);
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
FragmentLayout.java | 98 setListAdapter(new ArrayAdapter<String>(getActivity(), 103 View detailsFrame = getActivity().findViewById(R.id.details); 162 intent.setClass(getActivity(), DetailsActivity.class); 209 ScrollView scroller = new ScrollView(getActivity()); 210 TextView text = new TextView(getActivity()); 212 4, getActivity().getResources().getDisplayMetrics());
|
/development/samples/Support4Demos/src/com/example/android/supportv4/app/ |
FragmentLayoutSupport.java | 100 setListAdapter(new ArrayAdapter<String>(getActivity(), 106 View detailsFrame = getActivity().findViewById(R.id.details); 165 intent.setClass(getActivity(), DetailsActivity.class); 212 ScrollView scroller = new ScrollView(getActivity()); 213 TextView text = new TextView(getActivity()); 215 4, getActivity().getResources().getDisplayMetrics());
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/power/ |
MediaPlayerPowerTest.java | 44 getActivity();
|
/packages/apps/Browser/src/com/android/browser/ |
UiController.java | 102 Activity getActivity();
|
/packages/apps/Camera/tests/src/com/android/camera/power/ |
ImageAndVideoCapture.java | 54 getActivity(); 101 getActivity().startActivity(intent);
|
/packages/apps/Camera/tests/src/com/android/camera/stress/ |
CameraLatency.java | 60 getActivity(); 81 Camera c = getActivity();
|
SwitchPreview.java | 58 getActivity(); 65 getActivity().finish(); 103 getActivity().startActivity(intent); 109 getActivity().startActivity(intent);
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
DevicePickerFragment.java | 42 Intent intent = getActivity().getIntent(); 53 getActivity().setTitle(getString(R.string.device_picker)); 71 getActivity(), mSelectedDevice.getAddress()); 107 getActivity().sendBroadcast(intent);
|
/system/media/mca/tests/src/android/camera/mediaeffects/tests/functional/ |
EffectsVideoCapture.java | 74 verify(getActivity(), uri);
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
WebViewTest.java | 98 mWebView = getActivity().getWebView(); 99 File f = getActivity().getFileStreamPath("snapshot"); 125 mWebServer = new CtsTestServer(getActivity(), secure); 147 new WebView(getActivity()); 148 new WebView(getActivity(), null); 149 new WebView(getActivity(), null, 0); 919 final File f = getActivity().getFileStreamPath("snapshot"); [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
RelativeLayout_LayoutParamsTest.java | 68 new RelativeLayout.LayoutParams(getActivity(), null); 89 RelativeLayoutStubActivity activity = getActivity();
|
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/ |
DeviceDetailFragment.java | 80 progressDialog = ProgressDialog.show(getActivity(), "Press back to cancel", 86 // ((DeviceActionListener) getActivity()).cancelDisconnect(); 90 ((DeviceActionListener) getActivity()).connect(config); 100 ((DeviceActionListener) getActivity()).disconnect(); 129 Intent serviceIntent = new Intent(getActivity(), FileTransferService.class); 135 getActivity().startService(serviceIntent); 160 new FileServerAsyncTask(getActivity(), mContentView.findViewById(R.id.status_text))
|
/frameworks/base/core/java/android/app/ |
PendingIntent.java | 34 * of this class are created with {@link #getActivity}, 61 * Flag for use with {@link #getActivity}, {@link #getBroadcast}, and 69 * Flag for use with {@link #getActivity}, {@link #getBroadcast}, and 75 * Flag for use with {@link #getActivity}, {@link #getBroadcast}, and 86 * Flag for use with {@link #getActivity}, {@link #getBroadcast}, and 189 public static PendingIntent getActivity(Context context, int requestCode, 208 * Like {@link #getActivity(Context, int, Intent, int)}, but allows an 211 * given to {@link #getActivity(Context, int, Intent, int)}. Upon sending 226 * (as done with the single intent given to {@link #getActivity(Context, int, Intent, int)}, 437 * how the PendingIntent was retrieved in {@link #getActivity}, [all...] |