Home
last modified time | relevance | path

Searched refs:fragment (Results 1 – 25 of 216) sorted by relevance

123456789

/packages/apps/Dialer/tests/src/com/android/dialer/dialpad/
DDialpadFragmentInstrumentationTest.java31 final DialpadFragment fragment = showDialpad(); in testManualLongClickZero_DeletesPreviousCharacter() local
32 pressAndReleaseKey(9, fragment); in testManualLongClickZero_DeletesPreviousCharacter()
37 final View zeroKey = findViewByDigit(0, fragment); in testManualLongClickZero_DeletesPreviousCharacter()
38 fragment.onPressed(zeroKey, true); in testManualLongClickZero_DeletesPreviousCharacter()
39 fragment.onLongClick(zeroKey); in testManualLongClickZero_DeletesPreviousCharacter()
43 assertEquals("9+", fragment.getDigitsWidget().getText().toString()); in testManualLongClickZero_DeletesPreviousCharacter()
51 final DialpadFragment fragment = showDialpad(); in testSystemLongClickZero_PreservesPreviousCharacter() local
52 pressAndReleaseKey(9, fragment); in testSystemLongClickZero_PreservesPreviousCharacter()
57 final View zeroKey = findViewByDigit(0, fragment); in testSystemLongClickZero_PreservesPreviousCharacter()
58 fragment.onLongClick(zeroKey); in testSystemLongClickZero_PreservesPreviousCharacter()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerPagerAdapter.java67 final TimerItemFragment fragment = (TimerItemFragment) object; in getItemPosition() local
68 final Timer timer = fragment.getTimer(); in getItemPosition()
84 TimerItemFragment fragment = (TimerItemFragment) mFragmentManager.findFragmentByTag(tag); in instantiateItem() local
86 if (fragment != null) { in instantiateItem()
88 mCurrentTransaction.attach(fragment); in instantiateItem()
91 fragment = TimerItemFragment.newInstance(timer); in instantiateItem()
92 mCurrentTransaction.add(container.getId(), fragment, tag); in instantiateItem() local
95 if (fragment != mCurrentPrimaryItem) { in instantiateItem()
96 setItemVisible(fragment, false); in instantiateItem()
99 mFragments.put(timer.getId(), fragment); in instantiateItem() local
[all …]
/packages/apps/Dialer/src/com/android/dialer/filterednumber/
DBlockedNumbersSettingsActivity.java64 BlockedNumbersFragment fragment = (BlockedNumbersFragment) getFragmentManager() in showManagementUi() local
66 if (fragment == null) { in showManagementUi()
67 fragment = new BlockedNumbersFragment(); in showManagementUi()
71 .replace(R.id.blocked_numbers_activity_container, fragment, in showManagementUi()
82 BlockedListSearchFragment fragment = (BlockedListSearchFragment) getFragmentManager() in showSearchUi() local
84 if (fragment == null) { in showSearchUi()
85 fragment = new BlockedListSearchFragment(); in showSearchUi()
86 fragment.setHasOptionsMenu(false); in showSearchUi()
87 fragment.setShowEmptyListForNullQuery(true); in showSearchUi()
88 fragment.setDirectorySearchEnabled(false); in showSearchUi()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
DDialogFragment.java60 Fragment fragment = getContentFragment(); in performEntryTransition() local
61 if (fragment instanceof ContentFragment) { in performEntryTransition()
62 ContentFragment cf = (ContentFragment) fragment; in performEntryTransition()
143 protected void setContentFragment(Fragment fragment) { in setContentFragment() argument
144 FragmentTransaction ft = getContentFragmentTransaction(fragment); in setContentFragment()
153 protected void setActionFragment(Fragment fragment) { in setActionFragment() argument
154 setActionFragment(fragment, true); in setActionFragment()
163 protected void setActionFragment(Fragment fragment, boolean addToBackStack) { in setActionFragment() argument
164 FragmentTransaction ft = addActionFragmentToTransaction(fragment, null, addToBackStack, in setActionFragment()
205 private FragmentTransaction getContentFragmentTransaction(Fragment fragment) { in getContentFragmentTransaction() argument
[all …]
DActionFragment.java40 ActionFragment fragment = new ActionFragment(); in newInstance() local
41 fragment.setArguments(BaseActionFragment.buildArgs(actions, name)); in newInstance()
42 return fragment; in newInstance()
46 ActionFragment fragment = new ActionFragment(); in newInstance() local
47 fragment.setArguments(BaseActionFragment.buildArgs(actions, index)); in newInstance()
48 return fragment; in newInstance()
52 ActionFragment fragment = new ActionFragment(); in newInstance() local
53 fragment.setArguments(BaseActionFragment.buildArgs(actions, name, index)); in newInstance()
54 return fragment; in newInstance()
DDialogActivity.java316 protected void setContentFragment(Fragment fragment) { in setContentFragment() argument
317 getDialogFragment().setContentFragment(fragment); in setContentFragment()
325 protected void setActionFragment(Fragment fragment) { in setActionFragment() argument
326 getDialogFragment().setActionFragment(fragment); in setActionFragment()
335 protected void setActionFragment(Fragment fragment, boolean addToBackStack) { in setActionFragment() argument
336 getDialogFragment().setActionFragment(fragment, addToBackStack); in setActionFragment()
368 protected void setDialogFragment(DialogFragment fragment) { in setDialogFragment() argument
369 setDialogFragment(fragment, true); in setDialogFragment()
372 protected void setDialogFragment(DialogFragment fragment, boolean addToBackStack) { in setDialogFragment() argument
373 mDialogFragment = fragment; in setDialogFragment()
[all …]
DContentFragment.java60 ContentFragment fragment = new ContentFragment(); in newInstance() local
61 fragment.setArguments( in newInstance()
64 return fragment; in newInstance()
74 ContentFragment fragment = new ContentFragment(); in newInstance() local
75 fragment.setArguments( in newInstance()
78 return fragment; in newInstance()
83 ContentFragment fragment = new ContentFragment(); in newInstance() local
84 fragment.setArguments(BaseContentFragment.buildArgs(title, breadcrumb, description, in newInstance()
86 return fragment; in newInstance()
/packages/apps/Contacts/src/com/android/contacts/activities/
DContactSelectionActivity.java96 public void onAttachFragment(Fragment fragment) { in onAttachFragment() argument
97 if (fragment instanceof ContactEntryListFragment<?>) { in onAttachFragment()
98 mListFragment = (ContactEntryListFragment<?>) fragment; in onAttachFragment()
282 ContactPickerFragment fragment = new ContactPickerFragment(); in configureListFragment() local
283 fragment.setEditMode(true); in configureListFragment()
284 fragment.setDirectorySearchMode(DirectoryListLoader.SEARCH_MODE_NONE); in configureListFragment()
285 fragment.setCreateContactEnabled(!mRequest.isSearchMode()); in configureListFragment()
286 mListFragment = fragment; in configureListFragment()
292 ContactPickerFragment fragment = new ContactPickerFragment(); in configureListFragment() local
293 fragment.setIncludeProfile(mRequest.shouldIncludeProfile()); in configureListFragment()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DFragmentStatePagerAdapter2.java91 Fragment fragment = getItem(position); in instantiateItem() local
92 if (DEBUG) LogUtils.v(TAG, "Adding item #" + position + ": f=" + fragment); in instantiateItem()
96 fragment.setInitialSavedState(fss); in instantiateItem()
99 if (fragment != mCurrentPrimaryItem) { in instantiateItem()
100 setItemVisible(fragment, false); in instantiateItem()
102 mFragments.put(position, fragment); in instantiateItem()
103 mCurTransaction.add(container.getId(), fragment); in instantiateItem() local
105 return fragment; in instantiateItem()
110 Fragment fragment = (Fragment)object; in destroyItem() local
121 mSavedState.set(position, mFragmentManager.saveFragmentInstanceState(fragment)); in destroyItem()
[all …]
/packages/apps/Settings/src/com/android/settings/
DAppHeader.java40 public static void createAppHeader(SettingsPreferenceFragment fragment, Drawable icon, in createAppHeader() argument
42 createAppHeader(fragment, icon, label, pkgName, uid, 0, null); in createAppHeader()
45 public static void createAppHeader(SettingsPreferenceFragment fragment, Drawable icon, in createAppHeader() argument
47 createAppHeader(fragment, icon, label, pkgName, uid, 0, externalSettings); in createAppHeader()
58 public static void createAppHeader(SettingsPreferenceFragment fragment, Drawable icon, in createAppHeader() argument
60 createAppHeader(fragment, icon, label, pkgName, uid, tintColorRes, null); in createAppHeader()
63 public static void createAppHeader(SettingsPreferenceFragment fragment, Drawable icon, in createAppHeader() argument
66 View bar = fragment.setPinnedHeaderView(R.layout.app_header); in createAppHeader()
67 setupHeaderView(fragment.getActivity(), icon, label, pkgName, uid, includeAppInfo(fragment), in createAppHeader()
111 public static boolean includeAppInfo(final Fragment fragment) { in includeAppInfo() argument
[all …]
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/
DManagePermissionsActivity.java38 Fragment fragment; in onCreate() local
44 fragment = com.android.packageinstaller.permission.ui.television in onCreate()
47 fragment = com.android.packageinstaller.permission.ui.handheld in onCreate()
60 fragment = AppPermissionsFragmentWear.newInstance(packageName); in onCreate()
62 fragment = com.android.packageinstaller.permission.ui.television in onCreate()
65 fragment = com.android.packageinstaller.permission.ui.handheld in onCreate()
78 fragment = com.android.packageinstaller.permission.ui.television in onCreate()
81 fragment = com.android.packageinstaller.permission.ui.handheld in onCreate()
93 getFragmentManager().beginTransaction().replace(android.R.id.content, fragment).commit(); in onCreate()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/settings/
DAccountsSettingsFragmentTests.java71 final AccountsSettingsFragment fragment = in testEmptyAccounts() local
74 fragment.createAccountPicker(new String[0], null, null /* listener */); in testEmptyAccounts()
89 final AccountsSettingsFragment fragment = in testMultipleAccounts_noSettingsForManagedProfile() local
91 final AlertDialog dialog = initDialog(fragment, null).mDialog; in testMultipleAccounts_noSettingsForManagedProfile()
95 assertNull(fragment.findPreference(AccountsSettingsFragment.PREF_ACCCOUNT_SWITCHER)); in testMultipleAccounts_noSettingsForManagedProfile()
101 final AccountsSettingsFragment fragment = in testMultipleAccounts_noCurrentAccount() local
103 final AlertDialog dialog = initDialog(fragment, null).mDialog; in testMultipleAccounts_noCurrentAccount()
122 final AccountsSettingsFragment fragment = in testMultipleAccounts_currentAccount() local
124 final AlertDialog dialog = initDialog(fragment, "3@example.com").mDialog; in testMultipleAccounts_currentAccount()
141 final AccountsSettingsFragment fragment, in initDialog() argument
[all …]
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/
DSetupActivity.java93 Fragment fragment = onCreateInitialFragment(); in showInitialFragment() local
94 if (fragment != null) { in showInitialFragment()
95 showFragment(fragment, false); in showInitialFragment()
103 protected FragmentTransaction showFragment(Fragment fragment, boolean addToBackStack) { in showFragment() argument
105 if (fragment instanceof SetupFragment) { in showFragment()
106 int[] sharedElements = ((SetupFragment) fragment).getSharedElementIds(); in showFragment()
112 fragment.setSharedElementEnterTransition(sharedTransition); in showFragment()
113 fragment.setSharedElementReturnTransition(sharedTransition); in showFragment()
122 String tag = fragment.getClass().getCanonicalName(); in showFragment()
126 ft.replace(R.id.fragment_container, fragment, tag).commit(); in showFragment()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DFormPageDisplayer.java172 public void displayFragment(Fragment fragment, boolean forward) { in displayFragment() argument
179 transaction.replace(mContentViewId, fragment).commit(); in displayFragment()
187 Fragment fragment = SelectFromListWizardFragment.newInstance( in displayList() local
192 displayFragment(fragment, forward); in displayList()
209 return fragment; in displayList()
218 Fragment fragment = TextInputWizardFragment.newInstance( in displayTextInput() local
223 displayFragment(fragment, forward); in displayTextInput()
237 return fragment; in displayTextInput()
247 Fragment fragment = in displayPskInput() local
251 displayFragment(fragment, forward); in displayPskInput()
[all …]
DConnectToWifiFragment.java63 ConnectToWifiFragment fragment = new ConnectToWifiFragment(); in newInstance() local
67 fragment.setArguments(args); in newInstance()
68 return fragment; in newInstance()
103 public MessageHandler(ConnectToWifiFragment fragment) { in MessageHandler() argument
104 mFragmentRef = new WeakReference<>(fragment); in MessageHandler()
111 final ConnectToWifiFragment fragment = mFragmentRef.get(); in handleMessage() local
112 if (fragment == null) { in handleMessage()
116 if (fragment.isNetworkConnected()) { in handleMessage()
118 fragment.mConnected = true; in handleMessage()
119 fragment.notifyListener(RESULT_SUCCESS); in handleMessage()
[all …]
/packages/apps/TV/usbtuner/src/com/android/usbtuner/setup/
DTunerSetupActivity.java68 SetupFragment fragment = new WelcomeFragment(); in onCreateInitialFragment() local
69 fragment.setShortDistance(SetupFragment.FRAGMENT_EXIT_TRANSITION in onCreateInitialFragment()
71 return fragment; in onCreateInitialFragment()
85 SetupFragment fragment = new ConnectionTypeFragment(); in executeAction() local
86 fragment.setShortDistance(SetupFragment.FRAGMENT_ENTER_TRANSITION in executeAction()
88 showFragment(fragment, true); in executeAction()
106 SetupFragment fragment = new ScanResultFragment(); in executeAction() local
107 fragment.setShortDistance(SetupFragment.FRAGMENT_EXIT_TRANSITION in executeAction()
109 showFragment(fragment, true); in executeAction()
120 SetupFragment fragment = new ConnectionTypeFragment(); in executeAction() local
[all …]
/packages/apps/UnifiedEmail/tests/src/com/android/mail/ui/settings/
DGeneralPrefsFragmentTest.java60 final GeneralPrefsFragment fragment = activity.getGeneralPrefsFragment(); in setUp() local
61 fragment.mMailPrefs = new MailPrefs(activity, PREFS_NAME_TEST); in setUp()
68 final GeneralPrefsFragment fragment = activity.getGeneralPrefsFragment(); in testChangeAutoAdvance() local
69 final MailPrefs mailPrefs = fragment.mMailPrefs; in testChangeAutoAdvance()
70 final ListPreference autoAdvancePref = (ListPreference) fragment in testChangeAutoAdvance()
73 fragment.onPreferenceChange(autoAdvancePref, UIProvider.AUTO_ADVANCE_MODE_OLDER); in testChangeAutoAdvance()
76 fragment.onPreferenceChange(autoAdvancePref, UIProvider.AUTO_ADVANCE_MODE_NEWER); in testChangeAutoAdvance()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/conversation/
DConversationFragmentTest.java101 final ConversationFragment fragment = getFragment(); in loadWith() local
107 if (fragment == attachedFragment) { in loadWith()
108 fragment.setConversationInfo(getActivity(), CONVERSATION_ID, null); in loadWith()
116 fragment.setHost(mockHost); in loadWith()
117 getActivity().setFragment(fragment); in loadWith()
119 getActivity(), fragment, CONVERSATION_ID); in loadWith()
120 Mockito.verify(mockConversationData).init(fragment.getLoaderManager(), in loadWith()
121 fragment.mBinding); in loadWith()
130 fragment.onConversationMessagesCursorUpdated(mockConversationData, cursor, null, in loadWith()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DUnmountActivity.java84 final Fragment fragment = UnmountPrivateStepFragment.newInstance(mUnmountVolumeId); in onCreate() local
86 .replace(android.R.id.content, fragment) in onCreate()
103 final Fragment fragment = UnmountProgressFragment.newInstance(mUnmountVolumeDesc); in onRequestUnmount() local
105 .replace(android.R.id.content, fragment) in onRequestUnmount()
156 final UnmountPrivateStepFragment fragment = new UnmountPrivateStepFragment(); in newInstance() local
159 fragment.setArguments(b); in newInstance()
160 return fragment; in newInstance()
202 final UnmountProgressFragment fragment = new UnmountProgressFragment(); in newInstance() local
203 fragment.setArguments(b); in newInstance()
204 return fragment; in newInstance()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/
DParentalControlsFragment.java84 SideFragment fragment = new ChannelsBlockedFragment(); in getItemList()
85 fragment.setListener(mSideFragmentListener); in getItemList()
86 return fragment; in getItemList()
123 SideFragment fragment = new ProgramRestrictionsFragment(); in getItemList()
124 fragment.setListener(mSideFragmentListener); in getItemList()
125 return fragment; in getItemList()
134 PinDialogFragment fragment = in getItemList()
145 fragment, true); in getItemList()
DProgramRestrictionsFragment.java61 SideFragment fragment = new RatingSystemsFragment(); in getItemList()
62 fragment.setListener(mSideFragmentListener); in getItemList()
63 return fragment; in getItemList()
72 SideFragment fragment = new RatingsFragment(); in getItemList()
73 fragment.setListener(mSideFragmentListener); in getItemList()
74 return fragment; in getItemList()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/
DMediaPickerTest.java79 final MediaPicker fragment = getFragment(); in initFragment()
81 fragment.setSupportedMediaTypes(supportedMediaTypes); in initFragment()
82 getActivity().setFragment(fragment); in initFragment()
84 getActivity().setFragment(fragment); in initFragment()
85 fragment.setSupportedMediaTypes(supportedMediaTypes); in initFragment()
87 fragment.setDraftMessageDataModel(draftBinding); in initFragment()
90 Matchers.eq(fragment.getLoaderManager())); in initFragment()
91 fragment.open(MediaPicker.MEDIA_TYPE_ALL, false); in initFragment()
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DInCallActivity.java347 public void onFragmentAttached(Fragment fragment) { in onFragmentAttached() argument
348 if (fragment instanceof DialpadFragment) { in onFragmentAttached()
349 mDialpadFragment = (DialpadFragment) fragment; in onFragmentAttached()
350 } else if (fragment instanceof AnswerFragment) { in onFragmentAttached()
351 mAnswerFragment = (AnswerFragment) fragment; in onFragmentAttached()
352 } else if (fragment instanceof CallCardFragment) { in onFragmentAttached()
353 mCallCardFragment = (CallCardFragment) fragment; in onFragmentAttached()
355 } else if (fragment instanceof ConferenceManagerFragment) { in onFragmentAttached()
356 mConferenceManagerFragment = (ConferenceManagerFragment) fragment; in onFragmentAttached()
357 } else if (fragment instanceof CallButtonFragment) { in onFragmentAttached()
[all …]
/packages/apps/Contacts/src/com/android/contacts/interactions/
DContactDeletionInteraction.java123 ContactDeletionInteraction fragment = in startWithTestLoaderManager() local
125 if (fragment == null) { in startWithTestLoaderManager()
126 fragment = new ContactDeletionInteraction(); in startWithTestLoaderManager()
127 fragment.setTestLoaderManager(testLoaderManager); in startWithTestLoaderManager()
128 fragment.setContactUri(contactUri); in startWithTestLoaderManager()
129 fragment.setFinishActivityWhenDone(finishActivityWhenDone); in startWithTestLoaderManager()
130 fragmentManager.beginTransaction().add(fragment, FRAGMENT_TAG) in startWithTestLoaderManager()
133 fragment.setTestLoaderManager(testLoaderManager); in startWithTestLoaderManager()
134 fragment.setContactUri(contactUri); in startWithTestLoaderManager()
135 fragment.setFinishActivityWhenDone(finishActivityWhenDone); in startWithTestLoaderManager()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DTvSettingsActivity.java51 final Fragment fragment = createSettingsFragment(); in onCreate()
52 if (fragment != null) { in onCreate()
54 .add(android.R.id.content, fragment, in onCreate()
76 final Fragment fragment = getFragmentManager().findFragmentByTag(SETTINGS_FRAGMENT_TAG); in finish() local
77 if (isResumed() && fragment != null) { in finish()
84 .remove(fragment) in finish()

123456789