/packages/apps/Email/src/com/android/email/activity/ |
FragmentInstallable.java | 20 import android.app.Fragment; 27 * Called when a {@link Fragment} wants to be installed to the host activity. 29 * Fragments which use this MUST call this from {@link Fragment#onActivityCreated} using 32 * This means a host {@link Activity} can safely assume a passed {@link Fragment} is already 35 public void onInstallFragment(Fragment fragment); 38 * Called when a {@link Fragment} wants to be uninstalled from the host activity. 40 * Fragments which use this MUST call this from {@link Fragment#onDestroyView} using 43 public void onUninstallFragment(Fragment fragment); [all...] |
UiUtilities.java | 22 import android.app.Fragment; 129 * Used by an {@link Fragment} to install itself to the host activity. 133 public static void installFragment(Fragment fragment) { 134 final Activity a = fragment.getActivity(); 136 ((FragmentInstallable) a).onInstallFragment(fragment); 141 * Used by an {@link Fragment} to uninstall itself from the host activity. 145 public static void uninstallFragment(Fragment fragment) { 146 final Activity a = fragment.getActivity() [all...] |
/frameworks/base/core/java/android/app/ |
FragmentTransaction.java | 4 * API for performing a set of Fragment operations. 14 * Calls {@link #add(int, Fragment, String)} with a 0 containerViewId. 16 public abstract FragmentTransaction add(Fragment fragment, String tag); 19 * Calls {@link #add(int, Fragment, String)} with a null tag. 21 public abstract FragmentTransaction add(int containerViewId, Fragment fragment); 24 * Add a fragment to the activity state. This fragment may optionally 25 * also have its view (if {@link Fragment#onCreateView Fragment.onCreateView [all...] |
BackStackRecord.java | 56 mOps[pos++] = op.fragment.mIndex; 101 "BSE " + bse + " set base fragment #" + mOps[pos]); 102 Fragment f = fm.mActive.get(mOps[pos++]); 103 op.fragment = f; 110 op.removed = new ArrayList<Fragment>(N); 113 "BSE " + bse + " set remove fragment #" + mOps[pos]); 114 Fragment r = fm.mActive.get(mOps[pos++]); 162 * @hide Entry of an operation on the fragment back stack. 183 Fragment fragment; field in class:BackStackRecord.Op [all...] |
/frameworks/support/v4/java/android/support/v4/app/ |
FragmentTransaction.java | 28 * Calls {@link #add(int, Fragment, String)} with a 0 containerViewId. 30 public abstract FragmentTransaction add(Fragment fragment, String tag); 33 * Calls {@link #add(int, Fragment, String)} with a null tag. 35 public abstract FragmentTransaction add(int containerViewId, Fragment fragment); 38 * Add a fragment to the activity state. This fragment may optionally 39 * also have its view (if {@link Fragment#onCreateView Fragment.onCreateView [all...] |
FragmentPagerAdapter.java | 27 * represents each page as a {@link Fragment} that is persistently 28 * kept in the fragment manager as long as the user can return to the page. 32 * The fragment of each page the user visits will be kept in memory, though its 34 * a significant amount of memory since fragment instances can hold on to an 50 * <p>The <code>R.layout.fragment_pager</code> resource of the top-level fragment is: 56 * individual fragment's layout is: 67 private Fragment mCurrentPrimaryItem = null; 74 * Return the Fragment associated with a specified position. 76 public abstract Fragment getItem(int position); 88 // Do we already have this fragment 90 Fragment fragment = mFragmentManager.findFragmentByTag(name); local 97 mCurTransaction.add(container.getId(), fragment, local 120 Fragment fragment = (Fragment)object; local [all...] |
BackStackRecord.java | 56 mOps[pos++] = op.fragment.mIndex; 101 "BSE " + bse + " set base fragment #" + mOps[pos]); 102 Fragment f = fm.mActive.get(mOps[pos++]); 103 op.fragment = f; 110 op.removed = new ArrayList<Fragment>(N); 113 "BSE " + bse + " set remove fragment #" + mOps[pos]); 114 Fragment r = fm.mActive.get(mOps[pos++]); 162 * @hide Entry of an operation on the fragment back stack. 183 Fragment fragment; field in class:BackStackRecord.Op [all...] |
FragmentStatePagerAdapter.java | 30 * uses a {@link Fragment} to manage each page. This class also handles 31 * saving and restoring of fragment's state. 35 * the user, their entire fragment may be destroyed, only keeping the saved 36 * state of that fragment. This allows the pager to hold on to much less 53 * <p>The <code>R.layout.fragment_pager</code> resource of the top-level fragment is: 59 * individual fragment's layout is: 71 private ArrayList<Fragment.SavedState> mSavedState = new ArrayList<Fragment.SavedState>(); 72 private ArrayList<Fragment> mFragments = new ArrayList<Fragment>(); 105 Fragment fragment = getItem(position); local 118 mCurTransaction.add(container.getId(), fragment); local 125 Fragment fragment = (Fragment)object; local 143 Fragment fragment = (Fragment)object; local [all...] |
/frameworks/support/v13/java/android/support/v13/app/ |
FragmentPagerAdapter.java | 19 import android.app.Fragment; 31 * represents each page as a {@link android.app.Fragment} that is persistently 32 * kept in the fragment manager as long as the user can return to the page. 36 * The fragment of each page the user visits will be kept in memory, though its 38 * a significant amount of memory since fragment instances can hold on to an 54 * <p>The <code>R.layout.fragment_pager</code> resource of the top-level fragment is: 60 * individual fragment's layout is: 71 private Fragment mCurrentPrimaryItem = null; 78 * Return the Fragment associated with a specified position. 80 public abstract Fragment getItem(int position) 94 Fragment fragment = mFragmentManager.findFragmentByTag(name); local 101 mCurTransaction.add(container.getId(), fragment, local 124 Fragment fragment = (Fragment)object; local [all...] |
FragmentStatePagerAdapter.java | 19 import android.app.Fragment; 34 * uses a {@link Fragment} to manage each page. This class also handles 35 * saving and restoring of fragment's state. 39 * the user, their entire fragment may be destroyed, only keeping the saved 40 * state of that fragment. This allows the pager to hold on to much less 57 * <p>The <code>R.layout.fragment_pager</code> resource of the top-level fragment is: 63 * individual fragment's layout is: 75 private ArrayList<Fragment.SavedState> mSavedState = new ArrayList<Fragment.SavedState>(); 76 private ArrayList<Fragment> mFragments = new ArrayList<Fragment>() 109 Fragment fragment = getItem(position); local 122 mCurTransaction.add(container.getId(), fragment); local 129 Fragment fragment = (Fragment)object; local 147 Fragment fragment = (Fragment)object; local [all...] |
/external/webkit/Source/WebCore/rendering/svg/ |
SVGTextChunk.cpp | 50 SVGTextFragment& fragment = fragments.at(i); local 51 characters += fragment.length; 54 length += fragment.height; 56 length += fragment.width; 59 lastFragment = &fragment; 65 length += fragment.y - (lastFragment->y + lastFragment->height); 67 length += fragment.x - (lastFragment->x + lastFragment->width); 69 lastFragment = &fragment;
|
SVGTextQuery.cpp | 129 const SVGTextFragment& fragment = fragments.at(i); local 130 if ((this->*fragmentCallback)(queryData, fragment)) 133 processedCharacters += fragment.length; 142 bool SVGTextQuery::mapStartEndPositionsIntoFragmentCoordinates(Data* queryData, const SVGTextFragment& fragment, int& startPosition, int& endPosition) const 144 // Reuse the same logic used for text selection & painting, to map our query start/length into start/endPositions of the current text fragment. 152 if (!queryData->textBox->mapStartEndPositionsIntoFragmentCoordinates(fragment, startPosition, endPosition)) 262 bool SVGTextQuery::textLengthCallback(Data* queryData, const SVGTextFragment& fragment) const 265 data->textLength += queryData->isVerticalText ? fragment.height : fragment.width; 294 bool SVGTextQuery::subStringLengthCallback(Data* queryData, const SVGTextFragment& fragment) cons [all...] |
SVGInlineTextBox.cpp | 58 int SVGInlineTextBox::offsetForPositionInFragment(const SVGTextFragment& fragment, float position, bool includePartialGlyphs) const 69 TextRun textRun(constructTextRun(style, fragment)); 74 fragment.buildFragmentTransform(fragmentTransform); 78 return fragment.characterOffset - start() + textRenderer->scaledFont().offsetForPosition(textRun, position * scalingFactor, includePartialGlyphs); 88 FloatRect SVGInlineTextBox::selectionRectForTextFragment(const SVGTextFragment& fragment, int startPosition, int endPosition, RenderStyle* style) 101 FloatPoint textOrigin(fragment.x, fragment.y); 107 FloatRect selectionRect = scaledFont.selectionRectForText(constructTextRun(style, fragment), textOrigin, fragment.height * scalingFactor, startPosition, endPosition); 136 const SVGTextFragment& fragment = m_textFragments.at(i) local 221 SVGTextFragment& fragment = m_textFragments.at(i); local 296 SVGTextFragment& fragment = m_textFragments.at(i); local 726 const SVGTextFragment& fragment = m_textFragments.at(i); local [all...] |
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
ConnectionState.java | 105 * @param fragment - the byte array containing the 108 protected byte[] encrypt(byte type, byte[] fragment) { 109 return encrypt(type, fragment, 0, fragment.length); 116 * @param fragment - the byte array containing the 122 (byte type, byte[] fragment, int offset, int len); 125 * Retrieves the fragment of the Plaintext structure of 128 * @param fragment - the byte array containing the 131 protected byte[] decrypt(byte type, byte[] fragment) { 132 return decrypt(type, fragment, 0, fragment.length) [all...] |
SSLRecordProtocol.java | 52 * Maximum length of allowed plain data fragment 57 * Maximum length of allowed compressed data fragment 63 * Maximum length of allowed ciphered data fragment 184 byte[] fragment = dataStream.getData(MAX_DATA_LENGTH); 185 return wrap(content_type, fragment, 0, fragment.length); 192 * @param fragment: byte[] 196 byte[] fragment, int offset, int len) { 198 logger.println("SSLRecordProtocol.wrap: TLSPlaintext.fragment[" 200 logger.print(fragment, offset, len) [all...] |
/external/webkit/Source/WebCore/editing/ |
MoveSelectionCommand.h | 37 static PassRefPtr<MoveSelectionCommand> create(PassRefPtr<DocumentFragment> fragment, const Position& position, bool smartInsert = false, bool smartDelete = false) 39 return adoptRef(new MoveSelectionCommand(fragment, position, smartInsert, smartDelete));
|
/external/webkit/Source/JavaScriptCore/wtf/url/src/ |
URLSegments.cpp | 44 if (fragment.isValid()) 45 return fragment.end(); 46 return charactersBefore(Fragment, false); 98 if (fragment.isValid()) { 99 if (type == Fragment && !includeDelimiter) 100 return fragment.begin(); // Back over delimiter. 102 // When there is a fragment and we get here, the component we wanted was before 103 // this and not found, so we always know the beginning of the fragment is right. 104 return fragment.begin() - 1; // Don't want delimiter counted.
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
WallpaperChooser.java | 23 import android.app.Fragment; 34 Fragment fragmentView = 39 /* When the screen is XLarge, the fragment is not included in the layout, so show it 42 DialogFragment fragment = WallpaperChooserDialogFragment.newInstance(); local 43 fragment.show(getFragmentManager(), "dialog");
|
/development/samples/Support4Demos/src/com/example/android/supportv4/app/ |
FragmentTabs.java | 25 import android.support.v4.app.Fragment; 78 * care of switch to the correct fragment shown in a separate content area 92 private Fragment fragment; field in class:FragmentTabs.TabManager.TabInfo 130 // Check to see if we already have a fragment for this tab, probably 133 info.fragment = mActivity.getSupportFragmentManager().findFragmentByTag(tag); 134 if (info.fragment != null && !info.fragment.isDetached()) { 136 ft.detach(info.fragment); 150 if (mLastTab.fragment != null) [all...] |
/system/core/libpixelflinger/codeflinger/ |
blending.cpp | 32 component_t& temp, // incomming fragment / output 40 integer_t fragment(temp.reg, temp.h, temp.flags); 59 build_blendFOneMinusF(temp, factor, fragment, fogColor); 64 component_t& temp, // incomming fragment / output 86 // fragment: extracted src 87 // temp: component_t(fragment) and result 126 // expand fb -or- fragment to the larger of the two 128 // for now we expand 'fb' to min(fragment, 8) 136 // convert input fragment to integer_t 142 integer_t fragment(temp.reg, temp.size(), temp.flags) [all...] |
/external/webkit/Source/WebCore/platform/wx/ |
PasteboardWx.cpp | 84 RefPtr<DocumentFragment> fragment = 0; local 90 fragment = createFragmentFromText(context.get(), data.GetText()); 94 if (fragment) 95 return fragment.release();
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/preferences/ |
SearchSettingsActivity.java | 59 * Get the name of the fragment that contains only a 'clear shortcuts' preference, and hence 60 * can be removed if zero-query shortcuts are disabled. Returns null if no such fragment exists. 73 String fragment = target.get(i).fragment; local 74 if (DBG) Log.d(TAG, "fragment " + i + ": " + fragment); 75 if (shortcutsFragment.equals(fragment)) {
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
ContactSelectionActivity.java | 38 import android.app.Fragment; 96 public void onAttachFragment(Fragment fragment) { 97 if (fragment instanceof ContactEntryListFragment<?>) { 98 mListFragment = (ContactEntryListFragment<?>) fragment; 308 * Creates the fragment based on the current request. 313 ContactPickerFragment fragment = new ContactPickerFragment(); local 314 fragment.setEditMode(true); 315 fragment.setDirectorySearchMode(DirectoryListLoader.SEARCH_MODE_NONE); 316 mListFragment = fragment; 321 ContactPickerFragment fragment = new ContactPickerFragment(); local 328 ContactPickerFragment fragment = new ContactPickerFragment(); local 334 ContactPickerFragment fragment = new ContactPickerFragment(); local 341 PhoneNumberPickerFragment fragment = new PhoneNumberPickerFragment(); local 352 PhoneNumberPickerFragment fragment = new PhoneNumberPickerFragment(); local 360 PhoneNumberPickerFragment fragment = new PhoneNumberPickerFragment(); local 368 PostalAddressPickerFragment fragment = new PostalAddressPickerFragment(); local [all...] |
/external/webkit/Source/WebCore/platform/win/ |
DragDataWin.cpp | 178 if (PassRefPtr<DocumentFragment> fragment = fragmentFromFilenames(frame->document(), m_platformDragData)) 179 return fragment; 183 if (PassRefPtr<DocumentFragment> fragment = fragmentFromHTML(frame->document(), m_platformDragData)) 184 return fragment; 188 if (PassRefPtr<DocumentFragment> fragment = fragmentFromFilenames(frame->document(), &m_dragDataMap)) 189 return fragment; 193 if (PassRefPtr<DocumentFragment> fragment = fragmentFromHTML(frame->document(), &m_dragDataMap)) 194 return fragment;
|
/external/webkit/Source/WebCore/editing/mac/ |
EditorMac.mm | 71 RefPtr<DocumentFragment> fragment = pasteboard->documentFragment(m_frame, range, allowPlainText, choosePlainText); 72 if (fragment && shouldInsertFragment(fragment, range, EditorInsertActionPasted)) 73 pasteAsFragment(fragment, canSmartReplaceWithPasteboard(pasteboard), false); 76 // We want to avoid creating the fragment twice. 79 RefPtr<DocumentFragment> fragment = pasteboard->documentFragment(m_frame, range, allowPlainText, choosePlainText); 80 if (fragment) 81 pasteAsFragment(fragment, canSmartReplaceWithPasteboard(pasteboard), false); 84 RefPtr<DocumentFragment>fragment = pasteboard->documentFragment(m_frame, range, allowPlainText, choosePlainText); 85 if (fragment && shouldInsertFragment(fragment, range, EditorInsertActionPasted) [all...] |