Home
last modified time | relevance | path

Searched refs:dialog (Results 1 – 25 of 673) sorted by relevance

12345678910>>...27

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/
DUsageBytesThresholdPickerDialogTest.java58 UsageBytesThresholdPickerDialog dialog = UsageBytesThresholdPickerDialog.newInstance( in dialogInit_validValue_showsCurrentValue() local
60 dialog.show(mFragment.getFragmentManager(), /* tag= */ null); in dialogInit_validValue_showsCurrentValue()
61 assertThat(dialog.getCurrentThreshold()).isEqualTo(twoGB); in dialogInit_validValue_showsCurrentValue()
66 UsageBytesThresholdPickerDialog dialog = UsageBytesThresholdPickerDialog.newInstance( in dialogInit_lowInvalidValue_showsLowestPossibleValue() local
68 dialog.show(mFragment.getFragmentManager(), /* tag= */ null); in dialogInit_lowInvalidValue_showsLowestPossibleValue()
69 assertThat(dialog.getCurrentThreshold()).isEqualTo(0); in dialogInit_lowInvalidValue_showsLowestPossibleValue()
75 UsageBytesThresholdPickerDialog dialog = UsageBytesThresholdPickerDialog.newInstance( in positiveButtonClick_noChangeInValue_dialogListenerNotCalled() local
77 dialog.setBytesThresholdPickedListener(mBytesThresholdPickedListener); in positiveButtonClick_noChangeInValue_dialogListenerNotCalled()
78 dialog.show(mFragment.getFragmentManager(), /* tag= */ null); in positiveButtonClick_noChangeInValue_dialogListenerNotCalled()
89 UsageBytesThresholdPickerDialog dialog = UsageBytesThresholdPickerDialog.newInstance( in positiveButtonClick_changeInValue_dialogListenerCalled() local
[all …]
DUsageCycleResetDayOfMonthPickerDialogTest.java55 UsageCycleResetDayOfMonthPickerDialog dialog = in dialogInit_validValue_showsCurrentValue() local
57 dialog.show(mFragment.getFragmentManager(), /* tag= */ null); in dialogInit_validValue_showsCurrentValue()
58 assertThat(dialog.getSelectedDayOfMonth()).isEqualTo(setDate); in dialogInit_validValue_showsCurrentValue()
63 UsageCycleResetDayOfMonthPickerDialog dialog = in dialogInit_lowInvalidValue_showsLowestPossibleValue() local
65 dialog.show(mFragment.getFragmentManager(), /* tag= */ null); in dialogInit_lowInvalidValue_showsLowestPossibleValue()
66 assertThat(dialog.getSelectedDayOfMonth()).isEqualTo(1); in dialogInit_lowInvalidValue_showsLowestPossibleValue()
71 UsageCycleResetDayOfMonthPickerDialog dialog = in dialogInit_highInvalidValue_showsHighestPossibleValue() local
73 dialog.show(mFragment.getFragmentManager(), /* tag= */ null); in dialogInit_highInvalidValue_showsHighestPossibleValue()
74 assertThat(dialog.getSelectedDayOfMonth()).isEqualTo(31); in dialogInit_highInvalidValue_showsHighestPossibleValue()
80 UsageCycleResetDayOfMonthPickerDialog dialog = in dialogListenerCalled() local
[all …]
/packages/apps/Dialer/java/com/android/dialer/blockreportspam/
DBlockReportSpamDialogs.java45 .setNegativeButton(android.R.string.cancel, (dialog, which) -> fragment.dismiss()); in createDialogBuilder()
54 return (dialog, which) -> { in createGenericOnClickListener()
104 public void onDismiss(DialogInterface dialog) { in onDismiss() argument
106 dismissListener.onDismiss(dialog); in onDismiss()
108 super.onDismiss(dialog); in onDismiss()
171 (dialog, which) -> { in onCreateDialog()
211 Dialog dialog = in onCreateDialog() local
222 dialog.setCanceledOnTouchOutside(true); in onCreateDialog()
223 return dialog; in onCreateDialog()
252 Dialog dialog = in onCreateDialog() local
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/
DSmsStorageLowWarningFragment.java61 final ChooseActionDialogFragment dialog = ChooseActionDialogFragment.newInstance(); in onCreate() local
62 dialog.setTargetFragment(this, 0/*requestCode*/); in onCreate()
63 dialog.show(ft, null/*tag*/); in onCreate()
73 final ConfirmationDialog dialog = ConfirmationDialog.newInstance(actionIndex); in confirm() local
74 dialog.setTargetFragment(this, 0/*requestCode*/); in confirm()
75 dialog.show(ft, null/*tag*/); in confirm()
110 public void onClick(DialogInterface dialog, int id) { in onCreateDialog()
111 dialog.cancel(); in onCreateDialog()
115 final Dialog dialog = builder.create(); in onCreateDialog() local
116 dialog.setCanceledOnTouchOutside(false); in onCreateDialog()
[all …]
/packages/services/Telephony/src/com/android/phone/
DTimeConsumingPreferenceActivity.java31 public void onClick(DialogInterface dialog, int which) { in onClick() argument
32 dialog.dismiss(); in onClick()
37 public void onClick(DialogInterface dialog, int which) { in onClick() argument
38 dialog.dismiss(); in onClick()
65 ProgressDialog dialog = new ProgressDialog(this); in onCreateDialog() local
66 dialog.setTitle(getText(R.string.updating_title)); in onCreateDialog()
67 dialog.setIndeterminate(true); in onCreateDialog()
71 dialog.setCancelable(true); in onCreateDialog()
72 dialog.setOnCancelListener(this); in onCreateDialog()
73 dialog.setMessage(getText(R.string.reading_settings)); in onCreateDialog()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DButtonActionDialogFragmentTest.java80 final AlertDialog dialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in testOnCreateDialog_forceStopDialog() local
82 assertThat(dialog).isNotNull(); in testOnCreateDialog_forceStopDialog()
84 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in testOnCreateDialog_forceStopDialog()
90 assertThat(dialog.getButton(DialogInterface.BUTTON_POSITIVE).getText()).isEqualTo( in testOnCreateDialog_forceStopDialog()
92 assertThat(dialog.getButton(DialogInterface.BUTTON_NEGATIVE).getText()).isEqualTo( in testOnCreateDialog_forceStopDialog()
101 final AlertDialog dialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in testOnCreateDialog_disableDialog() local
103 assertThat(dialog).isNotNull(); in testOnCreateDialog_disableDialog()
105 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in testOnCreateDialog_disableDialog()
109 assertThat(dialog.getButton(DialogInterface.BUTTON_POSITIVE).getText()).isEqualTo( in testOnCreateDialog_disableDialog()
111 assertThat(dialog.getButton(DialogInterface.BUTTON_NEGATIVE).getText()).isEqualTo( in testOnCreateDialog_disableDialog()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/settings/
DAccountsSettingsFragmentTests.java106 final AlertDialog dialog = initDialog(fragment, null).mDialog; in testMultipleAccounts_noSettingsForManagedProfile() local
107 final ListView lv = dialog.getListView(); in testMultipleAccounts_noSettingsForManagedProfile()
119 final AlertDialog dialog = initDialog(fragment, null).mDialog; in testMultipleAccounts_noCurrentAccount() local
120 final ListView lv = dialog.getListView(); in testMultipleAccounts_noCurrentAccount()
128 dialog.getButton(DialogInterface.BUTTON_NEUTRAL).getVisibility()); in testMultipleAccounts_noCurrentAccount()
130 dialog.getButton(DialogInterface.BUTTON_NEGATIVE).getVisibility()); in testMultipleAccounts_noCurrentAccount()
132 dialog.getButton(DialogInterface.BUTTON_POSITIVE).getVisibility()); in testMultipleAccounts_noCurrentAccount()
141 final AlertDialog dialog = initDialog(fragment, "3@example.com").mDialog; in testMultipleAccounts_currentAccount() local
142 final ListView lv = dialog.getListView(); in testMultipleAccounts_currentAccount()
150 dialog.getButton(DialogInterface.BUTTON_NEUTRAL).getVisibility()); in testMultipleAccounts_currentAccount()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationLockscreenPreference.java89 protected void onDialogCreated(Dialog dialog) { in onDialogCreated() argument
90 super.onDialogCreated(dialog); in onDialogCreated()
91 dialog.create(); in onDialogCreated()
92 CheckBox checkbox = (CheckBox) dialog.findViewById(R.id.lockscreen_remote_input); in onDialogCreated()
97 View restricted = dialog.findViewById(R.id.restricted_lock_icon_remote_input); in onDialogCreated()
102 dialog.findViewById(com.android.internal.R.id.customPanel) in onDialogCreated()
108 protected void onDialogStateRestored(Dialog dialog, Bundle savedInstanceState) { in onDialogStateRestored() argument
109 super.onDialogStateRestored(dialog, savedInstanceState); in onDialogStateRestored()
110 ListView listView = ((AlertDialog) dialog).getListView(); in onDialogStateRestored()
113 View panel = dialog.findViewById(com.android.internal.R.id.customPanel); in onDialogStateRestored()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DNotificationLockscreenPreference.java89 protected void onDialogCreated(Dialog dialog) { in onDialogCreated() argument
90 super.onDialogCreated(dialog); in onDialogCreated()
91 dialog.create(); in onDialogCreated()
92 CheckBox checkbox = (CheckBox) dialog.findViewById(R.id.lockscreen_remote_input); in onDialogCreated()
97 View restricted = dialog.findViewById(R.id.restricted_lock_icon_remote_input); in onDialogCreated()
102 dialog.findViewById(com.android.internal.R.id.customPanel) in onDialogCreated()
108 protected void onDialogStateRestored(Dialog dialog, Bundle savedInstanceState) { in onDialogStateRestored() argument
109 super.onDialogStateRestored(dialog, savedInstanceState); in onDialogStateRestored()
110 ListView listView = ((AlertDialog) dialog).getListView(); in onDialogStateRestored()
113 View panel = dialog.findViewById(com.android.internal.R.id.customPanel); in onDialogStateRestored()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DBluetoothPairingDialogFragment.java64 void onDialogNegativeClick(BluetoothPairingDialogFragment dialog); in onDialogNegativeClick() argument
66 void onDialogPositiveClick(BluetoothPairingDialogFragment dialog); in onDialogPositiveClick() argument
105 public void onClick(DialogInterface dialog, int which) { in onClick() argument
173 AlertDialog dialog; in setupDialog() local
176 dialog = createUserEntryDialog(); in setupDialog()
179 dialog = createConsentDialog(); in setupDialog()
182 dialog = createDisplayPasskeyOrPinDialog(); in setupDialog()
185 dialog = null; in setupDialog()
188 return dialog; in setupDialog()
213 AlertDialog dialog = mBuilder.create(); in createUserEntryDialog() local
[all …]
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothPairingDialogFragment.java64 void onDialogNegativeClick(BluetoothPairingDialogFragment dialog); in onDialogNegativeClick() argument
66 void onDialogPositiveClick(BluetoothPairingDialogFragment dialog); in onDialogPositiveClick() argument
105 public void onClick(DialogInterface dialog, int which) { in onClick() argument
173 AlertDialog dialog; in setupDialog() local
176 dialog = createUserEntryDialog(); in setupDialog()
179 dialog = createConsentDialog(); in setupDialog()
182 dialog = createDisplayPasskeyOrPinDialog(); in setupDialog()
185 dialog = null; in setupDialog()
188 return dialog; in setupDialog()
213 AlertDialog dialog = mBuilder.create(); in createUserEntryDialog() local
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiDialogActivityTest.java69 WifiDialog dialog = (WifiDialog) ShadowAlertDialogCompat.getLatestAlertDialog(); in onSubmit_shouldConnectToNetwork() local
70 assertThat(dialog).isNotNull(); in onSubmit_shouldConnectToNetwork()
72 ReflectionHelpers.setField(dialog, "mController", mController); in onSubmit_shouldConnectToNetwork()
74 activity.onSubmit(dialog); in onSubmit_shouldConnectToNetwork()
86 WifiDialog dialog = (WifiDialog) ShadowAlertDialogCompat.getLatestAlertDialog(); in onSubmit_whenConnectForCallerIsFalse_shouldNotConnectToNetwork() local
88 assertThat(dialog).isNotNull(); in onSubmit_whenConnectForCallerIsFalse_shouldNotConnectToNetwork()
90 ReflectionHelpers.setField(dialog, "mController", mController); in onSubmit_whenConnectForCallerIsFalse_shouldNotConnectToNetwork()
92 activity.onSubmit(dialog); in onSubmit_whenConnectForCallerIsFalse_shouldNotConnectToNetwork()
107 WifiDialog dialog = (WifiDialog) ShadowAlertDialogCompat.getLatestAlertDialog(); in onSubmit_whenLaunchInSetupFlow_shouldBeLightThemeForWifiDialog() local
109 assertThat(dialog).isNotNull(); in onSubmit_whenLaunchInSetupFlow_shouldBeLightThemeForWifiDialog()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothPairingDialogFragment.java62 void onDialogNegativeClick(BluetoothPairingDialogFragment dialog); in onDialogNegativeClick() argument
64 void onDialogPositiveClick(BluetoothPairingDialogFragment dialog); in onDialogPositiveClick() argument
107 public void onClick(DialogInterface dialog, int which) { in onClick() argument
170 AlertDialog dialog; in setupDialog() local
173 dialog = createUserEntryDialog(); in setupDialog()
176 dialog = createConsentDialog(); in setupDialog()
179 dialog = createDisplayPasskeyOrPinDialog(); in setupDialog()
182 dialog = null; in setupDialog()
185 return dialog; in setupDialog()
210 AlertDialog dialog = mBuilder.create(); in createUserEntryDialog() local
[all …]
/packages/apps/Contacts/src/com/android/contacts/dialog/
DIndeterminateProgressDialog.java17 package com.android.contacts.dialog;
90 final ProgressDialog dialog = new ProgressDialog(getActivity()); in onCreateDialog() local
91 dialog.setIndeterminate(true); in onCreateDialog()
92 dialog.setIndeterminateDrawable(null); in onCreateDialog()
93 dialog.setTitle(mTitle); in onCreateDialog()
94 dialog.setMessage(mMessage); in onCreateDialog()
96 return dialog; in onCreateDialog()
125 public void onDismiss(DialogInterface dialog) { in onDismiss() argument
126 if (mOldDialog != null && mOldDialog == dialog) { in onDismiss()
131 super.onDismiss(dialog); in onDismiss()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DRemoteDeviceNameDialogFragmentTest.java85 AlertDialog dialog = startDialog(deviceName); in deviceNameDisplayIsCorrect() local
86 EditText editText = dialog.findViewById(R.id.edittext); in deviceNameDisplayIsCorrect()
91 Button positiveButton = dialog.getButton(DialogInterface.BUTTON_POSITIVE); in deviceNameDisplayIsCorrect()
93 Button negativeButton = dialog.getButton(DialogInterface.BUTTON_NEGATIVE); in deviceNameDisplayIsCorrect()
101 AlertDialog dialog = startDialog(deviceNameInitial); in deviceNameEditSucceeds() local
105 Button positiveButton = dialog.getButton(DialogInterface.BUTTON_POSITIVE); in deviceNameEditSucceeds()
106 Button negativeButton = dialog.getButton(DialogInterface.BUTTON_NEGATIVE); in deviceNameEditSucceeds()
112 EditText editText = dialog.findViewById(R.id.edittext); in deviceNameEditSucceeds()
123 AlertDialog dialog = startDialog(deviceNameInitial); in deviceNameEditThenCancelDoesntRename() local
126 Button negativeButton = dialog.getButton(DialogInterface.BUTTON_NEGATIVE); in deviceNameEditThenCancelDoesntRename()
[all …]
/packages/apps/PermissionController/src/android/support/wearable/view/
DWearableDialogHelper.java131 public void apply(@NonNull AlertDialog dialog) { in apply() argument
132 applyButton(dialog.getButton(DialogInterface.BUTTON_POSITIVE), getPositiveIcon()); in apply()
133 applyButton(dialog.getButton(DialogInterface.BUTTON_NEGATIVE), getNegativeIcon()); in apply()
134 applyButton(dialog.getButton(DialogInterface.BUTTON_NEUTRAL), getNeutralIcon()); in apply()
204 final AlertDialog dialog = super.create(); in create() local
205 dialog.create(); in create()
206 mHelper.apply(dialog); in create()
207 return dialog; in create()
212 final AlertDialog dialog = this.create(); in show() local
213 dialog.show(); in show()
[all …]
/packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/
DTrampolineActivity.java146 final PausedDialogFragment dialog = new PausedDialogFragment(); in show() local
150 dialog.setArguments(args); in show()
151 dialog.show(fm, TAG_PAUSED); in show()
179 public void onClick(DialogInterface dialog, int which) { in onCreateDialog()
188 public void onClick(DialogInterface dialog, int which) { in onCreateDialog()
197 public void onDismiss(DialogInterface dialog) { in onDismiss() argument
198 super.onDismiss(dialog); in onDismiss()
208 final FailedDialogFragment dialog = new FailedDialogFragment(); in show() local
212 dialog.setArguments(args); in show()
213 dialog.show(fm, TAG_FAILED); in show()
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DSplitContactConfirmationDialogFragment.java62 final SplitContactConfirmationDialogFragment dialog = new in show() local
64 dialog.setTargetFragment(fragment, 0); in show()
65 dialog.setArguments(args); in show()
66 dialog.show(fragment.getFragmentManager(), "splitContact"); in show()
89 public void onClick(DialogInterface dialog, int which) { in onCreateDialog()
95 public void onClick(DialogInterface dialog, int which) { in onCreateDialog()
96 onCancel(dialog); in onCreateDialog()
110 public void onCancel(DialogInterface dialog) { in onCancel() argument
111 super.onCancel(dialog); in onCancel()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipDialogFragmentTest.java113 final AlertDialog dialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in testOnCreateDialog_highUsageTip_fireHighUsageDialog() local
114 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in testOnCreateDialog_highUsageTip_fireHighUsageDialog()
127 final AlertDialog dialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in testOnCreateDialog_restrictOneAppTip_fireRestrictOneAppDialog() local
128 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in testOnCreateDialog_restrictOneAppTip_fireRestrictOneAppDialog()
149 final AlertDialog dialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in testOnCreateDialog_restrictTwoAppsTip_fireRestrictTwoAppsDialog() local
150 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in testOnCreateDialog_restrictTwoAppsTip_fireRestrictTwoAppsDialog()
179 final AlertDialog dialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in testOnCreateDialog_restrictSixAppsTip_fireRestrictSixAppsDialog() local
180 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in testOnCreateDialog_restrictSixAppsTip_fireRestrictSixAppsDialog()
198 final AlertDialog dialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in testOnCreateDialog_unRestrictAppTip_fireUnRestrictDialog() local
199 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in testOnCreateDialog_unRestrictAppTip_fireUnRestrictDialog()
[all …]
/packages/apps/Settings/src/com/android/settings/
DRemoteBugreportActivity.java49 AlertDialog dialog = new AlertDialog.Builder(this) in onCreate() local
53 public void onDismiss(DialogInterface dialog) { in onCreate()
59 public void onClick(DialogInterface dialog, int which) { in onCreate()
64 dialog.show(); in onCreate()
68 AlertDialog dialog = new AlertDialog.Builder(this) in onCreate() local
76 public void onDismiss(DialogInterface dialog) { in onCreate()
83 public void onClick(DialogInterface dialog, int which) { in onCreate()
94 public void onClick(DialogInterface dialog, int which) { in onCreate()
103 dialog.show(); in onCreate()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DRemoteBugreportActivity.java49 AlertDialog dialog = new AlertDialog.Builder(this) in onCreate() local
53 public void onDismiss(DialogInterface dialog) { in onCreate()
59 public void onClick(DialogInterface dialog, int which) { in onCreate()
64 dialog.show(); in onCreate()
68 AlertDialog dialog = new AlertDialog.Builder(this) in onCreate() local
76 public void onDismiss(DialogInterface dialog) { in onCreate()
83 public void onClick(DialogInterface dialog, int which) { in onCreate()
94 public void onClick(DialogInterface dialog, int which) { in onCreate()
103 dialog.show(); in onCreate()
/packages/services/Telecomm/src/com/android/server/telecom/components/
DErrorDialogActivity.java75 public void onClick(DialogInterface dialog, int which) { in showGenericErrorDialog()
82 public void onCancel(DialogInterface dialog) { in showGenericErrorDialog()
105 public void onClick(DialogInterface dialog, int which) { in showMissingVoicemailErrorDialog()
111 public void onClick(DialogInterface dialog, int which) { in showMissingVoicemailErrorDialog()
112 addVoiceMailNumberPanel(dialog); in showMissingVoicemailErrorDialog()
116 public void onCancel(DialogInterface dialog) { in showMissingVoicemailErrorDialog()
122 private void addVoiceMailNumberPanel(DialogInterface dialog) { in addVoiceMailNumberPanel() argument
123 if (dialog != null) { in addVoiceMailNumberPanel()
124 dialog.dismiss(); in addVoiceMailNumberPanel()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DNetworkRequestDialogFragment.java128 .setNegativeButton(R.string.cancel, (dialog, which) -> onCancel(dialog)) in onCreateDialog()
137 final AlertDialog dialog = builder.create(); in onCreateDialog() local
138 dialog.getListView() in onCreateDialog()
140 (parent, view, position, id) -> this.onClick(dialog, position)); in onCreateDialog()
146 dialog.setOnShowListener((dialogInterface) -> { in onCreateDialog()
148 final Button neutralBtn = dialog.getButton(AlertDialog.BUTTON_NEUTRAL); in onCreateDialog()
159 final Button positiveBtn = dialog.getButton(AlertDialog.BUTTON_POSITIVE); in onCreateDialog()
163 this.onClick(dialog, 0 /* position */); in onCreateDialog()
169 return dialog; in onCreateDialog()
196 public void onClick(DialogInterface dialog, int which) { in onClick() argument
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/
DNetworkRequestDialogFragment.java127 .setNegativeButton(R.string.cancel, (dialog, which) -> onCancel(dialog)) in onCreateDialog()
136 final AlertDialog dialog = builder.create(); in onCreateDialog() local
137 dialog.getListView() in onCreateDialog()
139 (parent, view, position, id) -> this.onClick(dialog, position)); in onCreateDialog()
145 dialog.setOnShowListener((dialogInterface) -> { in onCreateDialog()
147 final Button neutralBtn = dialog.getButton(AlertDialog.BUTTON_NEUTRAL); in onCreateDialog()
158 final Button positiveBtn = dialog.getButton(AlertDialog.BUTTON_POSITIVE); in onCreateDialog()
162 this.onClick(dialog, 0 /* position */); in onCreateDialog()
168 return dialog; in onCreateDialog()
195 public void onClick(DialogInterface dialog, int which) { in onClick() argument
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DNetworkRequestDialogFragment.java127 .setNegativeButton(R.string.cancel, (dialog, which) -> onCancel(dialog)) in onCreateDialog()
136 final AlertDialog dialog = builder.create(); in onCreateDialog() local
137 dialog.getListView() in onCreateDialog()
139 (parent, view, position, id) -> this.onClick(dialog, position)); in onCreateDialog()
145 dialog.setOnShowListener((dialogInterface) -> { in onCreateDialog()
147 final Button neutralBtn = dialog.getButton(AlertDialog.BUTTON_NEUTRAL); in onCreateDialog()
158 final Button positiveBtn = dialog.getButton(AlertDialog.BUTTON_POSITIVE); in onCreateDialog()
162 this.onClick(dialog, 0 /* position */); in onCreateDialog()
168 return dialog; in onCreateDialog()
195 public void onClick(DialogInterface dialog, int which) { in onClick() argument
[all …]

12345678910>>...27