HomeSort by relevance Sort by last modified time
    Searched refs:getActivity (Results 126 - 150 of 2146) sorted by null

1 2 3 4 56 7 8 91011>>

  /frameworks/base/core/tests/coretests/src/android/widget/scroll/
RequestRectangleVisibleWithInternalScrollTest.java 51 mTextBlob = getActivity().getTextBlob();
52 mScrollToBlob = getActivity().getScrollToBlob();
54 mScrollView = (ScrollView) getActivity().findViewById(R.id.scrollView);
60 assertEquals(getActivity().getScrollYofBlob(), mTextBlob.getScrollY());
  /frameworks/base/core/tests/coretests/src/android/widget/touchmode/
TouchModeFocusableTest.java 46 mEditText = getActivity().getEditText();
47 mButton = getActivity().getButton();
87 assertNull("nothing should have focus", getActivity().getCurrentFocus());
89 getActivity().getLayout().hasFocus());
  /frameworks/base/test-runner/src/android/test/
ActivityInstrumentationTestCase2.java 85 * before your first call to getActivity(). Calling them after your Activity has
96 public T getActivity() {
97 Activity a = super.getActivity();
114 * Call this method before the first call to {@link #getActivity} to inject a customized Intent
136 * Call this method before the first call to {@link #getActivity} to set the initial touch
163 Activity a = super.getActivity();
187 getActivity();
  /frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
BaseKeyEventsTestCase.java 56 getActivity().runOnUiThread(new Runnable() {
59 getActivity().startSupportActionMode(new ActionMode.Callback() {
88 assertFalse("Activity was not finished", getActivity().isFinishing());
95 final String itemTitle = getActivity().getString(R.string.search_menu_title);
110 assertFalse(getActivity().isFinishing());
111 assertFalse(getActivity().isDestroyed());
121 assertTrue("onMenuOpened called", getActivity().wasOnMenuOpenedCalled());
125 assertTrue("onPanelClosed called", getActivity().wasOnPanelClosedCalled());
136 assertTrue("onPanelClosed called", getActivity().wasOnPanelClosedCalled());
148 assertTrue(getActivity().isFinishing())
    [all...]
  /frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/test/
RecyclerViewTest.java 53 final Activity activity = mActivityRule.getActivity();
76 view = (RecyclerView) getActivity().findViewById(R.id.clipToPaddingUndefined);
78 view = (RecyclerView) getActivity().findViewById(R.id.clipToPaddingYes);
80 view = (RecyclerView) getActivity().findViewById(R.id.clipToPaddingNo);
83 view = (RecyclerView) getActivity().findViewById(R.id.recyclerView);
94 view = (RecyclerView) getActivity().findViewById(R.id.recyclerView2);
106 view = (RecyclerView) getActivity().findViewById(R.id.recyclerView3);
113 view = (RecyclerView) getActivity().findViewById(R.id.recyclerView4);
120 view = (RecyclerView) getActivity().findViewById(R.id.recyclerView5);
124 view = (RecyclerView) getActivity().findViewById(R.id.recyclerView6)
    [all...]
  /packages/apps/Messaging/tests/src/com/android/messaging/ui/
CustomHeaderViewPagerTest.java 35 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)
FragmentTestCase.java 61 getActivity().runOnUiThread(new Runnable() {
64 final FragmentManager fragmentManager = getActivity().getFragmentManager();
98 getActivity().runOnUiThread(new Runnable() {
108 getActivity().runOnUiThread(new Runnable() {
  /packages/apps/TV/tests/unit/src/com/android/tv/tests/
TvActivityTest.java 32 getActivity();
  /developers/build/prebuilts/gradle/MessagingService/Application/src/main/java/com/example/android/messagingservice/
MessagingFragment.java 75 mDataPortView.setText(MessageLogger.getAllMessages(getActivity()));
118 MessageLogger.clear(getActivity());
119 mDataPortView.setText(MessageLogger.getAllMessages(getActivity()));
126 getActivity().bindService(new Intent(getActivity(), MessagingService.class), mConnection,
133 MessageLogger.getPrefs(getActivity()).unregisterOnSharedPreferenceChangeListener(listener);
139 mDataPortView.setText(MessageLogger.getAllMessages(getActivity()));
140 MessageLogger.getPrefs(getActivity()).registerOnSharedPreferenceChangeListener(listener);
147 getActivity().unbindService(mConnection);
160 MessageLogger.logMessage(getActivity(), "Error occurred while sending a message.")
    [all...]
  /developers/samples/android/notification/MessagingService/Application/src/main/java/com/example/android/messagingservice/
MessagingFragment.java 75 mDataPortView.setText(MessageLogger.getAllMessages(getActivity()));
118 MessageLogger.clear(getActivity());
119 mDataPortView.setText(MessageLogger.getAllMessages(getActivity()));
126 getActivity().bindService(new Intent(getActivity(), MessagingService.class), mConnection,
133 MessageLogger.getPrefs(getActivity()).unregisterOnSharedPreferenceChangeListener(listener);
139 mDataPortView.setText(MessageLogger.getAllMessages(getActivity()));
140 MessageLogger.getPrefs(getActivity()).registerOnSharedPreferenceChangeListener(listener);
147 getActivity().unbindService(mConnection);
160 MessageLogger.logMessage(getActivity(), "Error occurred while sending a message.")
    [all...]
  /development/samples/browseable/MessagingService/src/com.example.android.messagingservice/
MessagingFragment.java 75 mDataPortView.setText(MessageLogger.getAllMessages(getActivity()));
118 MessageLogger.clear(getActivity());
119 mDataPortView.setText(MessageLogger.getAllMessages(getActivity()));
126 getActivity().bindService(new Intent(getActivity(), MessagingService.class), mConnection,
133 MessageLogger.getPrefs(getActivity()).unregisterOnSharedPreferenceChangeListener(listener);
139 mDataPortView.setText(MessageLogger.getAllMessages(getActivity()));
140 MessageLogger.getPrefs(getActivity()).registerOnSharedPreferenceChangeListener(listener);
147 getActivity().unbindService(mConnection);
160 MessageLogger.logMessage(getActivity(), "Error occurred while sending a message.")
    [all...]
  /packages/apps/Settings/src/com/android/settings/inputmethod/
UserDictionaryAddWordFragment.java 58 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().onBackPressed()
    [all...]
  /developers/build/prebuilts/gradle/Interpolator/Application/tests/src/com/example/android/interpolator/tests/
SampleTests.java 53 mTestActivity = getActivity();
75 SeekBar durationBar = (SeekBar) getActivity().findViewById(R.id.durationSeek);
76 TextView durationLabel = (TextView) getActivity().findViewById(R.id.durationLabel);
77 Spinner interpolateSpinner = (Spinner) getActivity().findViewById(R.id.interpolatorSpinner);
83 assertEquals(durationLabel.getText().toString(), getActivity().getResources().getString(R.string.animation_duration, initialDuration));
  /developers/build/prebuilts/gradle/StorageProvider/Application/src/main/java/com/example/android/storageprovider/
StorageProviderFragment.java 65 getActivity().getContentResolver().notifyChange(DocumentsContract.buildRootsUri
88 getActivity().getSharedPreferences(getString(R.string.app_name),
89 getActivity().MODE_PRIVATE);
98 getActivity().getSharedPreferences(getString(R.string.app_name),
99 getActivity().MODE_PRIVATE);
  /developers/samples/android/content/documentsUi/StorageProvider/Application/src/main/java/com/example/android/storageprovider/
StorageProviderFragment.java 65 getActivity().getContentResolver().notifyChange(DocumentsContract.buildRootsUri
88 getActivity().getSharedPreferences(getString(R.string.app_name),
89 getActivity().MODE_PRIVATE);
98 getActivity().getSharedPreferences(getString(R.string.app_name),
99 getActivity().MODE_PRIVATE);
  /developers/samples/android/ui/Interpolator/Application/tests/src/com/example/android/interpolator/tests/
SampleTests.java 53 mTestActivity = getActivity();
75 SeekBar durationBar = (SeekBar) getActivity().findViewById(R.id.durationSeek);
76 TextView durationLabel = (TextView) getActivity().findViewById(R.id.durationLabel);
77 Spinner interpolateSpinner = (Spinner) getActivity().findViewById(R.id.interpolatorSpinner);
83 assertEquals(durationLabel.getText().toString(), getActivity().getResources().getString(R.string.animation_duration, initialDuration));
  /development/samples/browseable/StorageProvider/src/com.example.android.storageprovider/
StorageProviderFragment.java 65 getActivity().getContentResolver().notifyChange(DocumentsContract.buildRootsUri
88 getActivity().getSharedPreferences(getString(R.string.app_name),
89 getActivity().MODE_PRIVATE);
98 getActivity().getSharedPreferences(getString(R.string.app_name),
99 getActivity().MODE_PRIVATE);
  /development/samples/training/testingfun/app/tests/src/com/example/android/testingfun/tests/lesson4/
LaunchActivityTest.java 55 final Button launchNextButton = (Button) getActivity().findViewById(R.id.launch_next_activity_button);
57 assertNotNull("mLaunchActivity is null", getActivity());
65 final Button launchNextButton = (Button) getActivity().findViewById(R.id.launch_next_activity_button);
67 final String expectedButtonText = getActivity().getString(R.string.label_launch_next);
75 final Button launchNextButton = (Button) getActivity().findViewById(R.id.launch_next_activity_button);
  /packages/apps/Calendar/src/com/android/calendar/
QuickResponseSettings.java 44 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/
GroupDeletionDialogFragment.java 51 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/
SpellCheckerSettingsFragment.java 50 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)) {
  /developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/ui/
MainFragment.java 101 mBackgroundManager = BackgroundManager.getInstance(getActivity());
102 mBackgroundManager.attach(getActivity().getWindow());
105 getActivity().getWindowManager().getDefaultDisplay().getMetrics(mMetrics);
109 setBadgeDrawable(getActivity().getResources().getDrawable(R.drawable.videos_by_google_banner));
120 VideoProvider.setContext(getActivity());
121 mVideosUrl = getActivity().getResources().getString(R.string.catalog_url);
130 Intent intent = new Intent(getActivity(), SearchActivity.class);
147 return new VideoItemLoader(getActivity(), mVideosUrl);
206 Glide.with(getActivity())
222 BackgroundManager.getInstance(getActivity()).setDrawable(drawable)
    [all...]
  /developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/rich/
RichSetupFragment.java 92 mInputId = getActivity().getIntent().getStringExtra(TvInputInfo.EXTRA_INPUT_ID);
106 BackgroundManager backgroundManager = BackgroundManager.getInstance(getActivity());
107 backgroundManager.attach(getActivity().getWindow());
113 getActivity().getWindowManager().getDefaultDisplay().getMetrics(mMetrics);
115 Picasso.with(getActivity())
126 mChannels = RichFeedUtil.getRichChannels(getActivity());
127 mTvInput = RichFeedUtil.getTvInput(getActivity());
145 Toast.makeText(getActivity(), progress[0], Toast.LENGTH_SHORT).show();
150 mDorPresenter.setSharedElementEnterTransition(getActivity(), "SetUpFragment");
160 row.setImageBitmap(getActivity(), poster)
    [all...]
  /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
DeleteManagedProfileDialog.java 78 if (!(getActivity() instanceof DeleteManagedProfileCallback)) {
80 "DeleteManagedProfileCallback, found: " + getActivity().getLocalClassName());
91 mdmPackageInfo = MdmPackageInfo.createFromPackageName(getActivity(), mdmPackageName);
98 appIcon = getActivity().getPackageManager().getDefaultActivityIcon();
101 final Dialog dialog = new Dialog(getActivity(), R.style.ManagedProvisioningDialogTheme);
105 if (!mUtils.isUserSetupCompleted(getActivity())) {
125 ((DeleteManagedProfileCallback) getActivity())
136 ((DeleteManagedProfileCallback) getActivity()).onRemoveProfileCancel();
146 ((DeleteManagedProfileCallback) getActivity()).onRemoveProfileCancel();
UserConsentDialog.java 85 final Dialog dialog = new Dialog(getActivity(), R.style.ManagedProvisioningDialogTheme);
88 if (!mUtils.isUserSetupCompleted(getActivity())) {
101 if (!isProfileOwner && mUtils.isFrpSupported(getActivity())) {
111 ((ConsentCallback) getActivity()).onDialogConsent();
134 ((ConsentCallback) getActivity()).onDialogCancel();
142 if (!mUtils.isConnectedToNetwork(getActivity())) {
152 getActivity().startActivity(WebActivity.createIntent(getActivity(), url,
161 ((ConsentCallback) getActivity()).onDialogCancel();

Completed in 2668 milliseconds

1 2 3 4 56 7 8 91011>>