Home
last modified time | relevance | path

Searched refs:mDialogFragment (Results 1 – 18 of 18) sorted by relevance

/packages/apps/Settings/src/com/android/settings/wifi/
DNetworkRequestDialogActivity.java64 NetworkRequestDialogBaseFragment mDialogFragment; field in NetworkRequestDialogActivity
87 mDialogFragment = NetworkRequestDialogFragment.newInstance(); in onCreate()
88 mDialogFragment.show(getSupportFragmentManager(), TAG); in onCreate()
105 mDialogFragment = new NetworkRequestSingleSsidDialogFragment(); in showSingleSsidRequestDialog()
109 mDialogFragment.setArguments(bundle); in showSingleSsidRequestDialog()
110 mDialogFragment.show(getSupportFragmentManager(), TAG); in showSingleSsidRequestDialog()
115 if (mDialogFragment != null) { in dismissDialogs()
116 mDialogFragment.dismiss(); in dismissDialogs()
117 mDialogFragment = null; in dismissDialogs()
189 if (mDialogFragment != null) { in onUserSelectionCallbackRegistration()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/localepicker/
DLocaleDialogFragmentTest.java65 private LocaleDialogFragment mDialogFragment; field in LocaleDialogFragmentTest
70 mDialogFragment = LocaleDialogFragment.newInstance(); in setUp()
75 mDialogFragment.setArguments(args); in setUp()
78 fragmentTransaction.add(mDialogFragment, null); in setUp()
85 mDialogFragment.setBackDispatcher(mOnBackInvokedDispatcher); in onCreateDialog_onBackInvokedCallbackIsRegistered()
86 mDialogFragment.onCreateDialog(null); in onCreateDialog_onBackInvokedCallbackIsRegistered()
94 mDialogFragment.setBackDispatcher(mOnBackInvokedDispatcher); in onBackInvoked_dialogIsStillDisplaying()
95 AlertDialog alertDialog = (AlertDialog) mDialogFragment.onCreateDialog(null); in onBackInvoked_dialogIsStillDisplaying()
103 mDialogFragment.getBackInvokedCallback().onBackInvoked(); in onBackInvoked_dialogIsStillDisplaying()
/packages/apps/Settings/tests/unit/src/com/android/settings/localepicker/
DLocaleDialogFragmentTest.java56 private LocaleDialogFragment mDialogFragment; field in LocaleDialogFragmentTest
62 mDialogFragment = new LocaleDialogFragment(); in setUp()
72 mDialogFragment.setArguments(args); in setArgument()
79 mDialogFragment.getLocaleDialogController(mContext, mDialogFragment, in getDialogContent_confirmSystemDefault_has2ButtonText()
96 mDialogFragment.getLocaleDialogController(mContext, mDialogFragment, in getDialogContent_unavailableLocale_has1ButtonText()
110 int result = mDialogFragment.getMetricsCategory(); in getMetricsCategory_systemLocaleChange()
118 int result = mDialogFragment.getMetricsCategory(); in getMetricsCategory_unavailableLocale()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/audiostreams/
DAudioStreamConfirmDialogTest.java87 private AudioStreamConfirmDialog mDialogFragment; field in AudioStreamConfirmDialogTest
109 mDialogFragment = new AudioStreamConfirmDialog(); in setUp()
115 mDialogFragment.dismiss(); in tearDown()
122 mDialogFragment, in showDialog_unsupported()
128 assertThat(mDialogFragment.getMetricsCategory()) in showDialog_unsupported()
131 var dialog = mDialogFragment.getDialog(); in showDialog_unsupported()
160 mDialogFragment, in showDialog_noLeDevice()
166 assertThat(mDialogFragment.getMetricsCategory()) in showDialog_noLeDevice()
169 var dialog = mDialogFragment.getDialog(); in showDialog_noLeDevice()
202 mDialogFragment, in showDialog_noMetadata()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipDialogFragmentTest.java68 private BatteryTipDialogFragment mDialogFragment; field in BatteryTipDialogFragmentTest
128 mDialogFragment = BatteryTipDialogFragment.newInstance(mHighUsageTip, METRICS_KEY); in testOnCreateDialog_highUsageTip_fireHighUsageDialog()
131 mDialogFragment, in testOnCreateDialog_highUsageTip_fireHighUsageDialog()
147 mDialogFragment = BatteryTipDialogFragment.newInstance(mRestrictedOneAppTip, METRICS_KEY); in testOnCreateDialog_restrictOneAppTip_fireRestrictOneAppDialog()
150 mDialogFragment, in testOnCreateDialog_restrictOneAppTip_fireRestrictOneAppDialog()
169 mDialogFragment = BatteryTipDialogFragment.newInstance(mRestrictTwoAppsTip, METRICS_KEY); in testOnCreateDialog_restrictTwoAppsTip_fireRestrictTwoAppsDialog()
172 mDialogFragment, in testOnCreateDialog_restrictTwoAppsTip_fireRestrictTwoAppsDialog()
202 mDialogFragment = BatteryTipDialogFragment.newInstance(restrictSixAppsTip, METRICS_KEY); in testOnCreateDialog_restrictSixAppsTip_fireRestrictSixAppsDialog()
205 mDialogFragment, in testOnCreateDialog_restrictSixAppsTip_fireRestrictSixAppsDialog()
225 mDialogFragment = BatteryTipDialogFragment.newInstance(mUnrestrictAppTip, METRICS_KEY); in testOnCreateDialog_unRestrictAppTip_fireUnRestrictDialog()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DSettingsDialogFragmentTest.java42 private SettingsPreferenceFragment.SettingsDialogFragment mDialogFragment; field in SettingsDialogFragmentTest
53 mDialogFragment = SettingsPreferenceFragment.SettingsDialogFragment.newInstance( in testGetMetrics_shouldGetMetricFromDialogCreatable()
55 mDialogFragment.onAttach(RuntimeEnvironment.application); in testGetMetrics_shouldGetMetricFromDialogCreatable()
56 mDialogFragment.getMetricsCategory(); in testGetMetrics_shouldGetMetricFromDialogCreatable()
67 mDialogFragment = SettingsPreferenceFragment.SettingsDialogFragment.newInstance( in testGetInvalidMetricsValue_shouldCrash()
69 mDialogFragment.onAttach(RuntimeEnvironment.application); in testGetInvalidMetricsValue_shouldCrash()
/packages/apps/Settings/src/com/android/settings/
DSettingsPreferenceFragment.java75 private SettingsDialogFragment mDialogFragment; field in SettingsPreferenceFragment
478 if (mDialogFragment != null) { in onDetach()
479 mDialogFragment.dismiss(); in onDetach()
480 mDialogFragment = null; in onDetach()
493 if (mDialogFragment != null) { in showDialog()
496 mDialogFragment = SettingsDialogFragment.newInstance(this, dialogId); in showDialog()
497 mDialogFragment.show(getChildFragmentManager(), Integer.toString(dialogId)); in showDialog()
514 if (mDialogFragment != null && mDialogFragment.getDialogId() == dialogId) { in removeDialog()
515 mDialogFragment.dismissAllowingStateLoss(); in removeDialog()
517 mDialogFragment = null; in removeDialog()
[all …]
DProxySelector.java61 private SettingsDialogFragment mDialogFragment; field in ProxySelector
115 if (mDialogFragment != null) { in showDialog()
118 mDialogFragment = SettingsDialogFragment.newInstance(this, dialogId); in showDialog()
119 mDialogFragment.show(getActivity().getSupportFragmentManager(), Integer.toString(dialogId)); in showDialog()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DNotificationAssistantDialogFragmentTest.java49 private NotificationAssistantDialogFragment mDialogFragment; field in NotificationAssistantDialogFragmentTest
59 mDialogFragment = in setUp()
61 doReturn(mActivity).when(mDialogFragment).getActivity(); in setUp()
62 doReturn(mContext).when(mDialogFragment).getContext(); in setUp()
69 mDialogFragment.onClick(null, DialogInterface.BUTTON_POSITIVE); in testClickOK_callEnableNAS()
/packages/apps/Settings/src/com/android/settings/notification/
DSoundSettings.java82 private UpdatableListPreferenceDialogFragment mDialogFragment; field in SoundSettings
103 mDialogFragment = dialogFragment; in onCreate()
156 mDialogFragment = UpdatableListPreferenceDialogFragment. in onDisplayPreferenceDialog()
158 mDialogFragment.setTargetFragment(this, 0); in onDisplayPreferenceDialog()
159 mDialogFragment.show(getFragmentManager(), TAG); in onDisplayPreferenceDialog()
320 if (mDialogFragment != null) { in onPreferenceDataChanged()
321 mDialogFragment.onListPreferenceUpdated(preference); in onPreferenceDataChanged()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
DDialogActivity.java102 private DialogFragment mDialogFragment; field in DialogActivity
108 mDialogFragment = new DialogFragment(); in DialogActivity()
109 mDialogFragment.setActivity(this); in DialogActivity()
194 setDialogFragment(mDialogFragment); in onCreate()
374 mDialogFragment = fragment; in setDialogFragment()
392 mDialogFragment = fragment; in getDialogFragment()
395 return mDialogFragment; in getDialogFragment()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DRestartSystemPreferenceController.java51 final ConfirmationDialogFragment mDialogFragment; field in RestartSystemPreferenceController
70 mDialogFragment = getConfirmationDialogFragment(); in RestartSystemPreferenceController()
106 getFragmentController().showDialog(mDialogFragment, RESTART_SYSTEM_CONFIRM_DIALOG_TAG);
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DNetworkRequestDialogActivityTest.java178 assertThat(mActivity.mDialogFragment).isNotNull(); in specifiedSsid_onMatch_shouldShowDialogFragment()
201 assertThat(mActivity.mDialogFragment).isNotNull(); in onUserSelectionConnectFailure_shouldShowDialogFragment()
213 assertThat(mActivity.mDialogFragment).isNull(); in onClickConnectButton_shouldShowProgressDialog()
224 assertThat(mActivity.mDialogFragment).isNull(); in onCancel_shouldCloseAllUI()
/packages/apps/Settings/tests/robotests/src/com/android/settings/privatespace/delete/
DResetOptionsDeletePrivateSpaceControllerTest.java68 mDialogFragment; field in ResetOptionsDeletePrivateSpaceControllerTest
82 mDialogFragment = in setUp()
164 mDialogFragment.show(mActivity.getSupportFragmentManager(), "className"); in setAlertDialog_showsDialog_onPositiveButtonClickDialogRemoved()
183 mDialogFragment.show(mActivity.getSupportFragmentManager(), "fragmentName"); in setAlertDialog_showsDialog_onNegativeButtonClickDialogRemoved()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DScreenFlashNotificationPreferenceControllerTest.java85 private ScreenFlashNotificationColorDialogFragment mDialogFragment; field in ScreenFlashNotificationPreferenceControllerTest
95 ShadowScreenFlashNotificationColorDialogFragment.setInstance(mDialogFragment); in setUp()
184 verify(mDialogFragment).show(any(FragmentManager.class), anyString()); in handlePreferenceTreeClick()
DScreenFlashNotificationColorDialogFragmentTest.java65 private ScreenFlashNotificationColorDialogFragment mDialogFragment; field in ScreenFlashNotificationColorDialogFragmentTest
216 mDialogFragment = fragment; in setupFragment()
222 return (FakeTimer) ReflectionHelpers.getField(mDialogFragment, "mTimer"); in getTimerFromFragment()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/
DPrioritizeAppPerformancePreferenceControllerTest.java85 ArgumentCaptor<ConfirmationDialogFragment> mDialogFragment; field in PrioritizeAppPerformancePreferenceControllerTest
196 mDialogFragment.capture(), eq(TURN_ON_PRIORITIZE_APP_PERFORMANCE_DIALOG_TAG)); in callChangeListener_turnOnPrioritizeAppPerformance()
198 mDialogFragment.getValue().getConfirmListener().onConfirm(new Bundle()); in callChangeListener_turnOnPrioritizeAppPerformance()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DRestartSystemPreferenceControllerTest.java102 assertThat(mPreferenceController.mDialogFragment.getConfirmListener()).isNotNull(); in handlePreferenceClicked_showsDialog()
103 assertThat(mPreferenceController.mDialogFragment.getRejectListener()).isNull(); in handlePreferenceClicked_showsDialog()