Searched refs:getActivity (Results 1 - 25 of 529) sorted by relevance

1234567891011>>

/packages/apps/Settings/src/com/android/settings/
H A DInstrumentedFragment.java41 MetricsLogger.visible(getActivity(), getMetricsCategory());
47 MetricsLogger.hidden(getActivity(), getMetricsCategory());
H A DInstrumentedPreferenceFragment.java38 MetricsLogger.visible(getActivity(), getMetricsCategory());
44 MetricsLogger.hidden(getActivity(), getMetricsCategory());
H A DMasterClearConfirm.java64 getActivity().getSystemService(Context.PERSISTENT_DATA_BLOCK_SERVICE);
81 getActivity().setRequestedOrientation(mOldOrientation);
92 mOldOrientation = getActivity().getRequestedOrientation();
93 getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LOCKED);
102 final ProgressDialog progressDialog = new ProgressDialog(getActivity());
106 getActivity().getString(R.string.master_clear_progress_title));
108 getActivity().getString(R.string.master_clear_progress_text));
118 getActivity().sendBroadcast(intent);
133 if (UserManager.get(getActivity()).hasUserRestriction(
144 CharSequence currentTitle = getActivity()
[all...]
H A DConfirmDeviceCredentialBaseFragment.java55 mAllowFpAuthentication = getActivity().getIntent().getBooleanExtra(
67 boolean showCancelButton = getActivity().getIntent().getBooleanExtra(
73 getActivity().finish();
87 Intent intent = getActivity().getIntent();
96 getActivity().setTitle(Utils.createAccessibleSequence(titleText, accessibilityTitle));
111 if (getActivity() != null && getActivity().isResumed()) {
/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/
H A DImageCaptureIntentTest.java58 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()
[all...]
H A DVideoCaptureIntentTest.java64 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...]
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/base/
H A DBaseActivity.java10 * either {@link #getContext} or {@link #getActivity}
18 public Activity getActivity() { method in class:BaseActivity
/packages/apps/Camera/tests/src/com/android/camera/functional/
H A DImageCaptureIntentTest.java53 getActivity();
58 assertTrue(getActivity().isFinishing());
59 assertEquals(Activity.RESULT_OK, getActivity().getResultCode());
60 Intent resultData = getActivity().getResultData();
77 getActivity();
82 assertTrue(getActivity().isFinishing());
83 assertEquals(Activity.RESULT_OK, getActivity().getResultCode());
104 getActivity();
108 assertTrue(getActivity().isFinishing());
109 assertEquals(Activity.RESULT_CANCELED, getActivity()
[all...]
H A DVideoCaptureIntentTest.java57 ContentResolver resolver = getActivity().getContentResolver();
81 getActivity();
86 Intent resultData = getActivity().getResultData();
89 verify(getActivity(), mVideoUri);
99 getActivity();
104 verify(getActivity(), uri);
110 getActivity();
114 assertTrue(getActivity().isFinishing());
115 assertEquals(Activity.RESULT_CANCELED, getActivity().getResultCode());
121 getActivity();
[all...]
/packages/apps/Camera2/tests/src/com/android/camera/functional/
H A DImageCaptureIntentTest.java53 getActivity();
58 assertTrue(getActivity().isFinishing());
59 assertEquals(Activity.RESULT_OK, getActivity().getResultCode());
60 Intent resultData = getActivity().getResultData();
77 getActivity();
82 assertTrue(getActivity().isFinishing());
83 assertEquals(Activity.RESULT_OK, getActivity().getResultCode());
104 getActivity();
108 assertTrue(getActivity().isFinishing());
109 assertEquals(Activity.RESULT_CANCELED, getActivity()
[all...]
H A DVideoCaptureIntentTest.java57 ContentResolver resolver = getActivity().getContentResolver();
81 getActivity();
86 Intent resultData = getActivity().getResultData();
89 verify(getActivity(), mVideoUri);
99 getActivity();
104 verify(getActivity(), uri);
110 getActivity();
114 assertTrue(getActivity().isFinishing());
115 assertEquals(Activity.RESULT_CANCELED, getActivity().getResultCode());
121 getActivity();
[all...]
/packages/apps/Camera2/tests_camera/src/com/android/camera/functional/
H A DImageCaptureIntentTest.java53 getActivity();
58 assertTrue(getActivity().isFinishing());
59 assertEquals(Activity.RESULT_OK, getActivity().getResultCode());
60 Intent resultData = getActivity().getResultData();
77 getActivity();
82 assertTrue(getActivity().isFinishing());
83 assertEquals(Activity.RESULT_OK, getActivity().getResultCode());
104 getActivity();
108 assertTrue(getActivity().isFinishing());
109 assertEquals(Activity.RESULT_CANCELED, getActivity()
[all...]
H A DVideoCaptureIntentTest.java57 ContentResolver resolver = getActivity().getContentResolver();
81 getActivity();
86 Intent resultData = getActivity().getResultData();
89 verify(getActivity(), mVideoUri);
99 getActivity();
104 verify(getActivity(), uri);
110 getActivity();
114 assertTrue(getActivity().isFinishing());
115 assertEquals(Activity.RESULT_CANCELED, getActivity().getResultCode());
121 getActivity();
[all...]
/packages/apps/Camera2/tests_camera/src/com/android/camera/activity/
H A DCameraActivityTest.java41 getActivity();
49 getActivity().finish();
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
H A DFormattingProgressFragment.java35 setTitle(getActivity().getString(R.string.storage_wizard_format_progress_title));
36 setSummary(getActivity().getString(R.string.storage_wizard_format_progress_description));
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
H A DRestrictedProfilePinDialogFragment.java69 return getDisablePinUntil(getActivity());
74 setDisablePinUntil(getActivity(), retryDisableTimeout);
86 if (callback == null && getActivity() instanceof Callback) {
87 callback = (Callback) getActivity();
104 if (callback == null && getActivity() instanceof Callback) {
105 callback = (Callback) getActivity();
123 if (callback == null && getActivity() instanceof Callback) {
124 callback = (Callback) getActivity();
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
H A DUserDictionaryAddWordFragment.java63 getActivity().getActionBar().setTitle(R.string.edit_personal_dictionary);
86 getActivity().getActionBar().setSubtitle(UserDictionarySettingsUtils.getLocaleDisplayName(
87 getActivity(), mContents.getCurrentUserDictionaryLocale()));
113 getActivity().onBackPressed();
117 mContents.delete(getActivity());
119 getActivity().onBackPressed();
133 final ArrayList<LocaleRenderer> localesList = mContents.getLocalesList(getActivity());
138 getActivity(), android.R.layout.simple_spinner_item, localesList);
149 mContents.apply(getActivity(), null);
158 PreferenceActivity preferenceActivity = (PreferenceActivity)getActivity();
[all...]
/packages/apps/Messaging/tests/src/com/android/messaging/ui/
H A DCustomHeaderViewPagerTest.java35 final CustomHeaderViewPager view = new CustomHeaderViewPager(getActivity(), null);
37 new SimpleCursorAdapter(getActivity(), 0, null, null, null, 0);
39 new FakeListViewHolder(getActivity(), adapter),
40 new FakeListViewHolder(getActivity(), adapter)
H A DFragmentTestCase.java61 getActivity().runOnUiThread(new Runnable() {
64 final FragmentManager fragmentManager = getActivity().getFragmentManager();
98 getActivity().runOnUiThread(new Runnable() {
108 getActivity().runOnUiThread(new Runnable() {
/packages/apps/Browser/tests/src/com/android/browser/
H A DIntentHandlerTests.java41 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() { method in class:IntentHandlerTests
162 return super.getActivity();
[all...]
/packages/apps/Settings/src/com/android/settings/inputmethod/
H A DUserDictionaryAddWordFragment.java58 getActivity().getActionBar().setTitle(R.string.user_dict_settings_title);
81 getActivity().getActionBar().setSubtitle(UserDictionarySettingsUtils.getLocaleDisplayName(
82 getActivity(), mContents.getCurrentUserDictionaryLocale()));
104 mContents.delete(getActivity());
106 getActivity().onBackPressed();
125 final ArrayList<LocaleRenderer> localesList = mContents.getLocalesList(getActivity());
127 final ArrayAdapter<LocaleRenderer> adapter = new ArrayAdapter<LocaleRenderer>(getActivity(),
137 mContents.apply(getActivity(), null);
146 SettingsActivity sa = (SettingsActivity)getActivity();
164 getActivity()
[all...]
/packages/apps/Calendar/src/com/android/calendar/
H A DQuickResponseSettings.java44 PreferenceScreen ps = getPreferenceManager().createPreferenceScreen(getActivity());
47 mResponses = Utils.getQuickResponses(getActivity());
55 EditTextPreference et = new EditTextPreference(getActivity());
78 CalendarSettingsActivity activity = (CalendarSettingsActivity) getActivity();
93 Utils.setSharedPreference(getActivity(), Utils.KEY_QUICK_RESPONSES, mResponses);
/packages/apps/Contacts/src/com/android/contacts/interactions/
H A DGroupDeletionDialogFragment.java51 String message = getActivity().getString(R.string.delete_group_dialog_message, label);
53 return new AlertDialog.Builder(getActivity())
72 getActivity().startService(ContactSaveService.createGroupDeletionIntent(
73 getActivity(), groupId));
75 getActivity().finish();
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
H A DSpellCheckerSettingsFragment.java50 getActivity(), SpellCheckerSettingsActivity.class));
71 getActivity() /* context */, Manifest.permission.READ_CONTACTS)) {
75 get(getActivity() /* context */).requestPermissions(this /* PermissionsResultCallback */,
76 getActivity() /* activity */, Manifest.permission.READ_CONTACTS);
86 getActivity(), Manifest.permission.READ_CONTACTS)) {
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
H A DBaseActionFragment.java102 mAdapter = new ActionAdapter(mFragment.getActivity());
172 } else if (mFragment.getActivity() instanceof ActionAdapter.Listener) {
173 ActionAdapter.Listener listener = (ActionAdapter.Listener) mFragment.getActivity();
180 if (mFragment.getActivity() instanceof ActionAdapter.OnFocusListener) {
182 .getActivity();
189 if (mFragment.getActivity() instanceof ActionAdapter.OnKeyListener) {
191 .getActivity();
198 if (mFragment.getActivity() instanceof ActionAdapter.OnKeyListener) {
200 .getActivity();

Completed in 4172 milliseconds

1234567891011>>