Home
last modified time | relevance | path

Searched refs:getDialog (Results 1 – 25 of 80) sorted by relevance

1234

/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DDialogUiTest.java100 assertNotNull("Dialog was null", mCreateDirectoryFragment.getDialog()); in testCreateDialogShows()
101 assertTrue("Dialog was not being shown", mCreateDirectoryFragment.getDialog().isShowing()); in testCreateDialogShows()
111 assertNotNull("Dialog was null", mCreateDirectoryFragment.getDialog()); in testCreateDialogShowsDismiss()
112 assertTrue("Dialog was not being shown", mCreateDirectoryFragment.getDialog().isShowing()); in testCreateDialogShowsDismiss()
114 mActivityTestRule.runOnUiThread(() -> mCreateDirectoryFragment.getDialog().dismiss()); in testCreateDialogShowsDismiss()
117 assertNull("Dialog should be null after dismiss()", mCreateDirectoryFragment.getDialog()); in testCreateDialogShowsDismiss()
129 mCreateDirectoryFragment.getDialog().findViewById(android.R.id.text1); in testCreateDialogShows_textInputEditText_shouldNotTruncateOnPortrait()
149 mCreateDirectoryFragment.getDialog().getWindow().findViewById(android.R.id.text1); in testCreateDialog_textInputEditText_shouldNotTruncateOnLargeDensity()
170 mCreateDirectoryFragment.getDialog().getWindow().findViewById(android.R.id.text1); in testCreateDialog_textInputEditText_shouldNotTruncateOnLargerDensity()
190 mCreateDirectoryFragment.getDialog().getWindow().findViewById(android.R.id.text1); in testCreateDialog_textInputEditText_shouldNotTruncateOnLargestDensity()
[all …]
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitCarUiProxy/plugin/src/main/java/com/chassis/car/ui/plugin/appstyledview/
DAppStyledViewControllerAdapterProxyV3.java101 return mStaticController.getDialog().getDialogWindowLayoutParam(params); in getDialogWindowLayoutParam()
107 mStaticController.getDialog().getDialogWindowLayoutParam( in getContentAreaWidth()
109 mStaticController.getDialog().getWindow().setAttributes(latestParams); in getContentAreaWidth()
118 mStaticController.getDialog().getDialogWindowLayoutParam( in getContentAreaHeight()
120 mStaticController.getDialog().getWindow().setAttributes(latestParams); in getContentAreaHeight()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DDialogTestUtils.java35 Button positiveButton = dialogFragment.getDialog().getWindow().findViewById( in clickPositiveButton()
44 Button negativeButton = dialogFragment.getDialog().getWindow().findViewById( in clickNegativeButton()
53 TextView titleView = dialogFragment.getDialog().getWindow().findViewById( in getTitle()
59 TextView messageView = dialogFragment.getDialog().getWindow().findViewById( in getMessage()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/testutils/
DDialogTestUtils.java35 Button positiveButton = dialogFragment.getDialog().getWindow().findViewById( in clickPositiveButton()
44 Button negativeButton = dialogFragment.getDialog().getWindow().findViewById( in clickNegativeButton()
53 TextView titleView = dialogFragment.getDialog().getWindow().findViewById( in getTitle()
59 TextView messageView = dialogFragment.getDialog().getWindow().findViewById( in getMessage()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DMagnificationModePreferenceControllerTest.java122 mController.onMagnificationModeDialogPositiveButtonClicked(mDialogHelper.getDialog(), in chooseFullscreenMode_tripleTapEnabled_notShowTripleTapWarningDialog()
135 mController.onMagnificationModeDialogPositiveButtonClicked(mDialogHelper.getDialog(), in chooseWindowMode_tripleTapEnabled_showTripleTapWarningDialog()
148 mController.onMagnificationModeDialogPositiveButtonClicked(mDialogHelper.getDialog(), in chooseAllMode_tripleTapEnabled_showTripleTapWarningDialog()
161 mDialogHelper.getDialog(), DialogInterface.BUTTON_NEGATIVE); in onTripleTapWarningDialogNegativeButtonClicked_showModeDialog()
172 mController.onMagnificationModeDialogPositiveButtonClicked(mDialogHelper.getDialog(), in onTripleTapWarningDialogPositiveButtonClicked_chooseAllMode_returnAllSummary()
176 mDialogHelper.getDialog(), DialogInterface.BUTTON_POSITIVE); in onTripleTapWarningDialogPositiveButtonClicked_chooseAllMode_returnAllSummary()
187 final View contentView = mDialogHelper.getDialog().findViewById(android.R.id.content); in checkSpansInTripleTapWarningDialog_existAnnotationSpan()
289 public Dialog getDialog() { in getDialog() method in MagnificationModePreferenceControllerTest.TestDialogHelper
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingDialogHelper.java56 && ((DialogFragment) dialog).getDialog() != null in getDialogIfShowing()
57 && ((DialogFragment) dialog).getDialog().isShowing() in getDialogIfShowing()
58 && ((DialogFragment) dialog).getDialog() instanceof AlertDialog in getDialogIfShowing()
59 ? (AlertDialog) ((DialogFragment) dialog).getDialog() in getDialogIfShowing()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/
DWifiPasswordDialogTest.java77 View titleView = mFragment.getDialog().findViewById(com.android.internal.R.id.alertTitle); in onDialogCreated_titleSet()
85 EditText editText = mFragment.getDialog().findViewById(android.R.id.edit); in onDialogCreated_editTextInputTypeSet()
93 EditText editText = mFragment.getDialog().findViewById(android.R.id.edit); in onCheckboxChanged_editTextInputTypeSet()
94 CheckBox cb = mFragment.getDialog().findViewById(R.id.checkbox); in onCheckboxChanged_editTextInputTypeSet()
107 Button confirmButton = ((AlertDialog) mFragment.getDialog()).getButton( in onConfirm_listenerTriggered()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/
DConfirmationDialogFragmentTest.java99 AlertDialog dialog = (AlertDialog) mFragment.getDialog(); in buildDialogFragment_positiveButtonSet_negativeAndNeutralButtonNotVisible()
115 AlertDialog dialog = (AlertDialog) mFragment.getDialog(); in buildDialogFragment_negativeButtonSet_positiveAndNeutralButtonNotVisible()
131 AlertDialog dialog = (AlertDialog) mFragment.getDialog(); in buildDialogFragment_neutralButtonSet_positiveAndNegativeButtonNotVisible()
147 AlertDialog dialog = (AlertDialog) mFragment.getDialog(); in clickPositiveButton_callsCallbackWithArgs()
163 AlertDialog dialog = (AlertDialog) mFragment.getDialog(); in clickNegativeButton_callsCallbackWithArgs()
178 AlertDialog dialog = (AlertDialog) mFragment.getDialog(); in dismissDialog_callsCallbackWithArgs()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DConfirmDeletionDialogTest.java38 TextView message = alertDialog.getDialog().findViewById(R.id.message); in testOnCreateDialog_saysCorrectStrings()
39 Button button1 = alertDialog.getDialog().findViewById(android.R.id.button1); in testOnCreateDialog_saysCorrectStrings()
40 Button button2 = alertDialog.getDialog().findViewById(android.R.id.button2); in testOnCreateDialog_saysCorrectStrings()
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/audiostreams/
DAudioStreamsDialogFragment.java88 && ((DialogFragment) dialog).getDialog() != null in dismissAll()
89 && ((DialogFragment) dialog).getDialog().isShowing()) { in dismissAll()
98 && ((DialogFragment) dialog).getDialog() != null in show()
99 && ((DialogFragment) dialog).getDialog().isShowing()) { in show()
/packages/apps/TV/src/com/android/tv/ui/
DFullscreenDialogView.java80 protected Dialog getDialog() { in getDialog() method in FullscreenDialogView
113 v.initialize(getActivity(), getDialog()); in transitionTo()
114 getDialog().setContentView(v); in transitionTo()
/packages/apps/Settings/src/com/android/settings/users/
DUserDetailsSettings.java281 dialogHelper.getDialog().dismiss();
284 dialogHelper.getDialog().dismiss();
286 return dialogHelper.getDialog();
303 dialogHelper.getDialog().dismiss();
306 dialogHelper.getDialog().dismiss();
308 return dialogHelper.getDialog();
/packages/apps/Settings/src/com/android/settings/
DCustomListPreference.java133 getCustomizablePreference().onDialogStateRestored(getDialog(), savedInstanceState); in onActivityCreated()
187 onClick(getDialog(), DialogInterface.BUTTON_POSITIVE); in onItemConfirmed()
188 getDialog().dismiss(); in onItemConfirmed()
DEditPinPreference.java65 Dialog dialog = getDialog(); in isDialogOpen()
78 Dialog dialog = getDialog(); in showPinDialog()
/packages/apps/Settings/src/com/android/settings/sim/
DSelectSpecificDataSimDialogFragment.java89 if (getDialog() != null) getDialog().dismiss(); in onDismiss()
193 updateDialog((AlertDialog) getDialog()); in updateDialog()
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/fingerprint/
DDeleteFingerprintDialogTest.java68 mFragment.onClick(mFragment.getDialog(), Dialog.BUTTON_POSITIVE); in launchDialog_clickPositive_shouldDeleteFingerprint()
79 mFragment.onClick(mFragment.getDialog(), Dialog.BUTTON_NEGATIVE); in launchDialog_clickNegative_shouldDoNothing()
/packages/apps/TV/src/com/android/tv/dialog/
DWebDialogFragment.java75 getDialog().setTitle(title); in onCreateView()
98 getDialog().getWindow().setLayout(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); in onStart()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DValidatedEditTextPreferenceDialogFragment.java73 allowDialogSubmissionOnlyIfValidInput((AlertDialog) getDialog()); in onStart()
96 allowDialogSubmissionOnlyIfValidInput((AlertDialog) getDialog()); in afterTextChanged()
/packages/apps/Settings/src/com/android/settings/vpn2/
DConfigDialogFragment.java102 ((AlertDialog) getDialog()).getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener(this); in onShow()
107 onClick(getDialog(), AlertDialog.BUTTON_POSITIVE); in onClick()
119 ConfigDialog dialog = (ConfigDialog) getDialog(); in onClick()
/packages/apps/TV/src/com/android/tv/license/
DLicenseDialogFragment.java88 getDialog().getWindow().setLayout(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); in onStart()
89 getDialog().setTitle(mLicense.getLibraryName()); in onStart()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingDialogHelperTest.java66 when(mFragment.getDialog()).thenReturn(mDialog); in getDialogIfShowing_notShowing_returnNull()
74 when(mFragment.getDialog()).thenReturn(mDialog); in getDialogIfShowing_showing_returnDialog()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/audiostreams/
DAudioStreamConfirmDialogTest.java131 var dialog = mDialogFragment.getDialog(); in showDialog_unsupported()
169 var dialog = mDialogFragment.getDialog(); in showDialog_noLeDevice()
211 var dialog = mDialogFragment.getDialog(); in showDialog_noMetadata()
256 var dialog = mDialogFragment.getDialog(); in showDialog_invalidMetadata()
301 var dialog = mDialogFragment.getDialog(); in showDialog_confirmListen()
/packages/apps/Settings/src/com/android/settings/display/darkmode/
DDarkModeSettingsFragment.java108 return mCustomStartController.getDialog(); in onCreateDialog()
110 return mCustomEndController.getDialog(); in onCreateDialog()
/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/
DEmergencyNamePreference.java109 if (getDialog() != null && getDialog().isShowing() in onSaveInstanceState()
138 if (getDialog() != null) { in onActivityResult()
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/
DSpeedBumpDialogFragment.java104 if (this.getDialog() != null && this.getDialog().isShowing()) return; in show()

1234