Home
last modified time | relevance | path

Searched refs:mFragmentManager (Results 1 – 25 of 82) sorted by relevance

1234

/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DDialogUiTest.java68 FragmentManager mFragmentManager; field in DialogUiTest
79 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in setup()
95 mActivityTestRule.runOnUiThread(() -> CreateDirectoryFragment.show(mFragmentManager)); in testCreateDialogShows()
98 (CreateDirectoryFragment) mFragmentManager.findFragmentByTag(CREATE_FRAGEMENT_TAG); in testCreateDialogShows()
106 mActivityTestRule.runOnUiThread(() -> CreateDirectoryFragment.show(mFragmentManager)); in testCreateDialogShowsDismiss()
109 (CreateDirectoryFragment) mFragmentManager.findFragmentByTag(CREATE_FRAGEMENT_TAG); in testCreateDialogShowsDismiss()
123 mActivityTestRule.runOnUiThread(() -> CreateDirectoryFragment.show(mFragmentManager)); in testCreateDialogShows_textInputEditText_shouldNotTruncateOnPortrait()
126 (CreateDirectoryFragment) mFragmentManager.findFragmentByTag(CREATE_FRAGEMENT_TAG); in testCreateDialogShows_textInputEditText_shouldNotTruncateOnPortrait()
141 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in testCreateDialog_textInputEditText_shouldNotTruncateOnLargeDensity()
143 mActivityTestRule.runOnUiThread(() -> CreateDirectoryFragment.show(mFragmentManager)); in testCreateDialog_textInputEditText_shouldNotTruncateOnLargeDensity()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppConfiguratorActivity.java211 (WifiDppQrCodeScannerFragment) mFragmentManager.findFragmentByTag( in showQrCodeScannerFragment()
223 mFragmentManager.popBackStackImmediate(); in showQrCodeScannerFragment()
226 final FragmentTransaction fragmentTransaction = mFragmentManager.beginTransaction(); in showQrCodeScannerFragment()
235 (WifiDppQrCodeGeneratorFragment) mFragmentManager.findFragmentByTag( in showQrCodeGeneratorFragment()
247 mFragmentManager.popBackStackImmediate(); in showQrCodeGeneratorFragment()
250 final FragmentTransaction fragmentTransaction = mFragmentManager.beginTransaction(); in showQrCodeGeneratorFragment()
259 (WifiDppChooseSavedWifiNetworkFragment) mFragmentManager.findFragmentByTag( in showChooseSavedWifiNetworkFragment()
271 mFragmentManager.popBackStackImmediate(); in showChooseSavedWifiNetworkFragment()
274 final FragmentTransaction fragmentTransaction = mFragmentManager.beginTransaction(); in showChooseSavedWifiNetworkFragment()
286 (WifiDppAddDeviceFragment) mFragmentManager.findFragmentByTag( in showAddDeviceFragment()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/
DTopLevelMenuFragmentTest.java44 private FragmentManager mFragmentManager; field in TopLevelMenuFragmentTest
54 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in setUp()
83 assertThat(mFragmentManager.getBackStackEntryCount()).isEqualTo(1); in onSamePreferenceTapped_noDuplicateEntry()
94 assertThat(mFragmentManager.getBackStackEntryCount()).isEqualTo(1); in onDifferentPreferenceTapped_clearsBackStack()
100 mFragmentManager.beginTransaction() in setUpFragment()
105 mFragment = (TopLevelMenuFragment) mFragmentManager.findFragmentByTag(topLevelMenuTag); in setUpFragment()
109 return mFragmentManager.findFragmentById(R.id.fragment_container); in getCurrentFragment()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deletionhelper/
DAutomaticStorageManagerSwitchBarControllerTest.java58 private FragmentManager mFragmentManager; field in AutomaticStorageManagerSwitchBarControllerTest
78 mFragmentManager); in setUp()
107 verify(mFragmentManager.beginTransaction()) in onSwitchChanged_showWarningFragmentIfNotEnabledByDefault()
117 verify(mFragmentManager.beginTransaction(), never()) in onSwitchChange_doNotShowWarningFragmentIfEnabledByDefault()
134 mFragmentManager); in initializeSwitchOnConstruction()
153 mFragmentManager); in initializingSwitchDoesNotTriggerView()
155 verify(mFragmentManager.beginTransaction(), never()) in initializingSwitchDoesNotTriggerView()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datausage/
DUsageBytesThresholdPickerDialogTest.java46 private FragmentManager mFragmentManager; field in UsageBytesThresholdPickerDialogTest
58 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in setUp()
67 dialog.show(mFragmentManager, /* tag= */ null); in dialogInit_validValue_showsCurrentValue()
79 dialog.show(mFragmentManager, /* tag= */ null); in dialogInit_lowInvalidValue_showsLowestPossibleValue()
92 dialog.show(mFragmentManager, /* tag= */ null); in positiveButtonClick_noChangeInValue_dialogListenerNotCalled()
109 dialog.show(mFragmentManager, /* tag= */ null); in positiveButtonClick_changeInValue_dialogListenerCalled()
131 dialog.show(mFragmentManager, /* tag= */ null); in getCurrentThreshold_aboveLimit_returnLimit()
DDataWarningSetThresholdFragmentTest.java53 private FragmentManager mFragmentManager; field in DataWarningSetThresholdFragmentTest
69 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in setUp()
93 mFragmentManager.beginTransaction() in setUpFragment()
97 mFragment = spy((DataWarningSetThresholdFragment) mFragmentManager in setUpFragment()
DDataLimitSetThresholdFragmentTest.java53 private FragmentManager mFragmentManager; field in DataLimitSetThresholdFragmentTest
69 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in setUp()
93 mFragmentManager.beginTransaction() in setUpFragment()
97 mFragment = spy((DataLimitSetThresholdFragment) mFragmentManager in setUpFragment()
/packages/apps/DeskClock/src/com/android/deskclock/
DFragmentTabPagerAdapter.kt39 private val mFragmentManager: FragmentManager = mDeskClock.supportFragmentManager constant in com.android.deskclock.FragmentTabPagerAdapter
70 fragment = mFragmentManager.findFragmentByTag(tab.name) as DeskClockFragment? in getCount()
91 mCurrentTransaction = mFragmentManager.beginTransaction() in instantiateItem()
96 var fragment = mFragmentManager.findFragmentByTag(tab.name) in instantiateItem()
114 mCurrentTransaction = mFragmentManager.beginTransaction() in destroyItem()
138 mFragmentManager.executePendingTransactions() in finishUpdate()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/
DActionDisabledByAdminActivityTest.java39 private FragmentManager mFragmentManager; field in ActionDisabledByAdminActivityTest
56 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in onCreate_showDialog()
58 mFragmentManager.findFragmentByTag(FRAGMENT_TAG); in onCreate_showDialog()
69 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in onCreate_readsIntentRestriction()
71 mFragmentManager.findFragmentByTag(FRAGMENT_TAG); in onCreate_readsIntentRestriction()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerPagerAdapter.kt36 private val mFragmentManager: FragmentManager constant in com.android.deskclock.timer.TimerPagerAdapter
65 mCurrentTransaction = mFragmentManager.beginTransaction() in instantiateItem()
72 var fragment = mFragmentManager.findFragmentByTag(tag) as TimerItemFragment? in instantiateItem()
97 mCurrentTransaction = mFragmentManager.beginTransaction() in destroyItem()
124 if (!mFragmentManager.isDestroyed) { in finishUpdate()
125 mFragmentManager.executePendingTransactions() in finishUpdate()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DHearingAidUtilsTest.java89 private FragmentManager mFragmentManager; field in HearingAidUtilsTest
96 mFragmentManager = mActivity.getSupportFragmentManager(); in setUp()
105 HearingAidUtils.launchHearingAidPairingDialog(mFragmentManager, mCachedBluetoothDevice, in launchHearingAidPairingDialog_deviceIsNotConnectedAshaHearingAid_noDialog()
119 HearingAidUtils.launchHearingAidPairingDialog(mFragmentManager, mCachedBluetoothDevice, in launchHearingAidPairingDialog_deviceIsMonauralMode_noDialog()
134 HearingAidUtils.launchHearingAidPairingDialog(mFragmentManager, mCachedBluetoothDevice, in launchHearingAidPairingDialog_deviceHasSubDevice_noDialog()
150 HearingAidUtils.launchHearingAidPairingDialog(mFragmentManager, mCachedBluetoothDevice, in launchHearingAidPairingDialog_deviceIsInvalidSide_noDialog()
167 HearingAidUtils.launchHearingAidPairingDialog(mFragmentManager, mCachedBluetoothDevice, in launchHearingAidPairingDialog_deviceSupportsCsip_noDialog()
183 HearingAidUtils.launchHearingAidPairingDialog(mFragmentManager, mCachedBluetoothDevice, in launchHearingAidPairingDialog_dialogShown()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingDialogHelperTest.java47 @Mock FragmentManager mFragmentManager; field in AudioSharingDialogHelperTest
65 when(mFragmentManager.findFragmentByTag(TAG)).thenReturn(mFragment); in getDialogIfShowing_notShowing_returnNull()
68 assertThat(AudioSharingDialogHelper.getDialogIfShowing(mFragmentManager, TAG)).isNull(); in getDialogIfShowing_notShowing_returnNull()
73 when(mFragmentManager.findFragmentByTag(TAG)).thenReturn(mFragment); in getDialogIfShowing_showing_returnDialog()
76 assertThat(AudioSharingDialogHelper.getDialogIfShowing(mFragmentManager, TAG)) in getDialogIfShowing_showing_returnDialog()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
DSideFragmentManager.java36 private final FragmentManager mFragmentManager; field in SideFragmentManager
55 mFragmentManager = mActivity.getFragmentManager(); in SideFragmentManager()
101 FragmentTransaction ft = mFragmentManager.beginTransaction(); in show()
144 mFragmentManager.popBackStack(); in popSideFragment()
181 mFragmentManager.popBackStack( in hideAllInternal()
244 (SideFragment) mFragmentManager.findFragmentById(R.id.side_fragment_container); in isHideKeyForCurrentPanel()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DMobileDataPreferenceControllerTest.java70 private FragmentManager mFragmentManager; field in MobileDataPreferenceControllerTest
111 doReturn(mFragmentTransaction).when(mFragmentManager).beginTransaction(); in setUp()
116 mController.init(mFragmentManager, SUB_ID, mSubInfo1, mNetworkInfo1); in setUp()
140 mController.init(mFragmentManager, SubscriptionManager.INVALID_SUBSCRIPTION_ID, mSubInfo1, in getAvailabilityStatus_invalidSubscription_returnAvailableUnsearchable()
179 verify(mFragmentManager).beginTransaction(); in handlePreferenceTreeClick_needDialog_showDialog()
213 mController.init(mFragmentManager, SUB_ID, mSubInfo1, mNetworkInfo1); in isChecked_returnUserDataEnabled()
224 mController.init(mFragmentManager, SUB_ID, mSubInfo1, mNetworkInfo1); in updateState_opportunistic_disabled()
236 mController.init(mFragmentManager, SUB_ID, mSubInfo1, mNetworkInfo1); in updateState_notOpportunistic_enabled()
DEnabledNetworkModePreferenceControllerTest.java88 private FragmentManager mFragmentManager; field in EnabledNetworkModePreferenceControllerTest
121 when(mFragmentManager.getFragments()).thenReturn(Collections.emptyList()); in setUp()
122 mController.init(SUB_ID, mFragmentManager); in setUp()
216 mController.init(SUB_ID, mFragmentManager); in updateState_5gWorldPhone_GlobalHasNr()
232 mController.init(SUB_ID, mFragmentManager); in updateState_selectedOn5gItem()
252 mController.init(SUB_ID, mFragmentManager); in updateState_disAllowed5g_5gOptionHidden()
272 mController.init(SUB_ID, mFragmentManager); in updateState_disAllowed5g_selectOn4gOption()
292 mController.init(SUB_ID, mFragmentManager); in updateState_NrEnableBoolFalse_5gOptionHidden()
315 mController.init(SUB_ID, mFragmentManager); in updateState_GlobalDisAllowed5g_GlobalWithoutNR()
335 mController.init(SUB_ID, mFragmentManager); in updateState_GlobalDisAllowed5g_SelectOnGlobal()
[all …]
DRoamingPreferenceControllerTest.java63 private FragmentManager mFragmentManager; field in RoamingPreferenceControllerTest
103 doReturn(mFragmentTransaction).when(mFragmentManager).beginTransaction(); in setUp()
111 mController.init(mFragmentManager, SUB_ID, mMobileNetworkInfoEntity); in setUp()
129 mController.init(mFragmentManager, SubscriptionManager.INVALID_SUBSCRIPTION_ID, in getAvailabilityStatus_invalidSubId_returnUnsearchable()
165 verify(mFragmentManager).beginTransaction(); in setChecked_needDialog_showDialog()
173 mController.init(mFragmentManager, SubscriptionManager.INVALID_SUBSCRIPTION_ID, in updateState_invalidSubId_disabled()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DFactoryResetFragmentTestCase.java53 protected FragmentManager mFragmentManager; field in FactoryResetFragmentTestCase
60 mFragmentManager = getActivityTestRule().getActivity().getSupportFragmentManager(); in setUp()
83 Fragment launchedFragment = mFragmentManager.findFragmentById( in processActivityResult_otherResultCode_doesNothing()
92 mFragmentManager.beginTransaction() in setUpFragment()
98 mFragment = (TestFactoryResetFragment) mFragmentManager in setUpFragment()
/packages/apps/Settings/src/com/android/settings/backup/
DUserBackupSettingsActivity.java51 private FragmentManager mFragmentManager; field in UserBackupSettingsActivity
87 if (mFragmentManager == null) { in onCreate()
88 mFragmentManager = getSupportFragmentManager(); in onCreate()
90 mFragmentManager.beginTransaction() in onCreate()
135 mFragmentManager = fragmentManager; in setFragmentManager()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
DAutomaticStorageManagementSwitchPreferenceControllerTest.java71 private FragmentManager mFragmentManager; field in AutomaticStorageManagementSwitchPreferenceControllerTest
89 mController.setFragmentManager(mFragmentManager); in setUp()
151 controller.setFragmentManager(mFragmentManager); in togglingShouldCauseMetricsEvent()
171 when(mFragmentManager.beginTransaction()).thenReturn(transaction); in togglingOnShouldTriggerWarningFragment()
184 when(mFragmentManager.beginTransaction()).thenReturn(transaction); in togglingOffShouldTriggerWarningFragment()
194 when(mFragmentManager.beginTransaction()).thenReturn(transaction); in togglingOnShouldNotTriggerWarningFragmentIfEnabledByDefault()
207 when(mFragmentManager.beginTransaction()).thenReturn(transaction); in togglingOnShouldTriggerWarningFragmentIfEnabledByDefaultAndDisabledByPolicy()
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/profileselector/
DProfileSelectFragmentTest.java86 @Mock private FragmentManager mFragmentManager; field in ProfileSelectFragmentTest
114 new TestViewPagerAdapter(mFragmentManager, mLifecycle, profileSelectFragment); in getTabId_setArgumentWork_setCorrectTab()
116 when(mFragmentManager.beginTransaction()).thenReturn(mFragmentTransaction); in getTabId_setArgumentWork_setCorrectTab()
120 mFragmentManager.beginTransaction().add(profileSelectFragment, "tag"); in getTabId_setArgumentWork_setCorrectTab()
134 new TestViewPagerAdapter(mFragmentManager, mLifecycle, profileSelectFragment); in getTabId_setArgumentPrivate_setCorrectTab()
136 when(mFragmentManager.beginTransaction()).thenReturn(mFragmentTransaction); in getTabId_setArgumentPrivate_setCorrectTab()
140 mFragmentManager.beginTransaction().add(profileSelectFragment, "tag"); in getTabId_setArgumentPrivate_setCorrectTab()
154 new TestViewPagerAdapter(mFragmentManager, mLifecycle, profileSelectFragment); in getTabId_setArgumentPersonal_setCorrectTab()
156 when(mFragmentManager.beginTransaction()).thenReturn(mFragmentTransaction); in getTabId_setArgumentPersonal_setCorrectTab()
160 mFragmentManager.beginTransaction().add(profileSelectFragment, "tag"); in getTabId_setArgumentPersonal_setCorrectTab()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/security/
DConfirmLockPinPasswordFragmentTest.java43 private FragmentManager mFragmentManager; field in ConfirmLockPinPasswordFragmentTest
52 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in setUp()
74 mFragmentManager.beginTransaction() in setUpFragment()
82 mFragment = (ConfirmLockPinPasswordFragment) mFragmentManager in setUpFragment()
DChooseLockPatternFragmentTest.java44 private FragmentManager mFragmentManager; field in ChooseLockPatternFragmentTest
53 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in setUp()
87 mFragmentManager.beginTransaction() in setUpFragment()
94 mFragment = (ChooseLockPatternFragment) mFragmentManager in setUpFragment()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datetime/
DTimePickerFragmentTest.java48 private FragmentManager mFragmentManager; field in TimePickerFragmentTest
59 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in setUp()
94 mFragmentManager.beginTransaction() in setUpFragment()
101 mFragmentManager.findFragmentByTag(timePickerFragmentTag); in setUpFragment()
DDatePickerFragmentTest.java46 private FragmentManager mFragmentManager; field in DatePickerFragmentTest
56 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in setUp()
89 mFragmentManager.beginTransaction() in setUpFragment()
96 mFragmentManager.findFragmentByTag(datePickerFragmentTag); in setUpFragment()
/packages/apps/Settings/src/com/android/settings/development/
DAdbQrCodeActivity.java50 (AdbQrcodeScannerFragment) mFragmentManager.findFragmentByTag( in onCreate()
62 mFragmentManager.popBackStackImmediate(); in onCreate()
65 final FragmentTransaction fragmentTransaction = mFragmentManager.beginTransaction(); in onCreate()

1234