Lines Matching defs:fragment

133             throw new IllegalStateException("No fragment at position " + position);
425 * Listener used to send search queries to the phone search fragment.
604 * Add search fragment. Note this is called during onLayout, so there's some restrictions,
608 // In order to take full advantage of "fragment deferred start", we need to create the
609 // search fragment after all other fragments are created.
613 // Just return if the fragment is already created, which happens after configuration
662 public void onAttachFragment(Fragment fragment) {
667 if (fragment instanceof DialpadFragment) {
668 mDialpadFragment = (DialpadFragment) fragment;
669 } else if (fragment instanceof CallLogFragment) {
670 mCallLogFragment = (CallLogFragment) fragment;
671 } else if (fragment instanceof PhoneFavoriteFragment) {
672 mPhoneFavoriteFragment = (PhoneFavoriteFragment) fragment;
678 } else if (fragment instanceof PhoneNumberPickerFragment) {
679 mSearchFragment = (PhoneNumberPickerFragment) fragment;
690 // Here we assume that we're not on the search mode, so let's hide the fragment.
692 // We get here either when the fragment is created (normal case), or after configuration
694 // enter search mode if the fragment is created. (see enterSearchUi())
1099 // We add the search fragment dynamically in the first onLayoutChange() and
1100 // mSearchFragment is set sometime later when the fragment transaction is actually
1133 // Show the search fragment and hide everything else.
1169 // Hide the search fragment, if exists.
1212 throw new IllegalStateException("Unknown fragment index: " + position);
1223 final Fragment fragment = getFragmentAt(position);
1224 if (fragment != null) {
1225 fragment.setMenuVisibility(visibility);
1226 fragment.setUserVisibleHint(visibility);