Home
last modified time | relevance | path

Searched refs:dialogId (Results 1 – 25 of 40) sorted by relevance

12

/packages/modules/Wifi/WifiDialog/src/com/android/wifi/dialog/
DWifiDialogActivity.java190 int dialogId = intent.getIntExtra(WifiManager.EXTRA_DIALOG_ID, in onCreate() local
192 if (dialogId == WifiManager.INVALID_DIALOG_ID) { in onCreate()
198 mLaunchIntentsPerId.put(dialogId, intent); in onCreate()
210 int dialogId = mLaunchIntentsPerId.keyAt(i); in onStart() local
211 if (!createAndShowDialogForIntent(dialogId, mLaunchIntentsPerId.get(dialogId))) { in onStart()
212 invalidDialogIds.add(dialogId); in onStart()
227 int dialogId = intent.getIntExtra(WifiManager.EXTRA_DIALOG_ID, in onNewIntent() local
229 if (dialogId == WifiManager.INVALID_DIALOG_ID) { in onNewIntent()
237 removeIntentAndPossiblyFinish(dialogId); in onNewIntent()
240 mLaunchIntentsPerId.put(dialogId, intent); in onNewIntent()
[all …]
/packages/apps/Settings/src/com/android/settings/display/
DNightDisplaySettings.java91 public Dialog onCreateDialog(final int dialogId) { in onCreateDialog() argument
92 if (dialogId == DIALOG_START_TIME || dialogId == DIALOG_END_TIME) { in onCreateDialog()
94 if (dialogId == DIALOG_START_TIME) { in onCreateDialog()
104 if (dialogId == DIALOG_START_TIME) { in onCreateDialog()
111 return super.onCreateDialog(dialogId); in onCreateDialog()
115 public int getDialogMetricsCategory(int dialogId) { in getDialogMetricsCategory() argument
116 switch (dialogId) { in getDialogMetricsCategory()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiDialogManagerTest.java192 int dialogId = dismissIntent.getIntExtra(WifiManager.EXTRA_DIALOG_ID, in verifyDismissIntent() local
194 assertThat(dialogId).isNotEqualTo(WifiManager.INVALID_DIALOG_ID); in verifyDismissIntent()
214 int dialogId = launchIntent.getIntExtra(WifiManager.EXTRA_DIALOG_ID, in verifySimpleDialogLaunchIntent() local
216 assertThat(dialogId).isNotEqualTo(WifiManager.INVALID_DIALOG_ID); in verifySimpleDialogLaunchIntent()
236 return dialogId; in verifySimpleDialogLaunchIntent()
255 int dialogId = verifySimpleDialogLaunchIntent(intent, TEST_TITLE, TEST_MESSAGE, in testSimpleDialog_launchAndResponse_notifiesCallback() local
257 mDialogManager.replyToSimpleDialog(dialogId, WifiManager.DIALOG_REPLY_POSITIVE); in testSimpleDialog_launchAndResponse_notifiesCallback()
266 mDialogManager.replyToSimpleDialog(dialogId, WifiManager.DIALOG_REPLY_POSITIVE); in testSimpleDialog_launchAndResponse_notifiesCallback()
278 dialogId = verifySimpleDialogLaunchIntent(intent, TEST_TITLE, TEST_MESSAGE, in testSimpleDialog_launchAndResponse_notifiesCallback()
280 mDialogManager.replyToSimpleDialog(dialogId, WifiManager.DIALOG_REPLY_NEGATIVE); in testSimpleDialog_launchAndResponse_notifiesCallback()
[all …]
/packages/apps/Settings/src/com/android/settings/display/darkmode/
DDarkModeSettingsFragment.java105 public Dialog onCreateDialog(final int dialogId) { in onCreateDialog() argument
106 if (dialogId == DIALOG_START_TIME || dialogId == DIALOG_END_TIME) { in onCreateDialog()
107 if (dialogId == DIALOG_START_TIME) { in onCreateDialog()
113 return super.onCreateDialog(dialogId); in onCreateDialog()
137 public int getDialogMetricsCategory(int dialogId) { in getDialogMetricsCategory() argument
138 switch (dialogId) { in getDialogMetricsCategory()
/packages/apps/Settings/src/com/android/settings/
DSettingsPreferenceFragment.java492 protected void showDialog(int dialogId) { in showDialog() argument
496 mDialogFragment = SettingsDialogFragment.newInstance(this, dialogId); in showDialog()
497 mDialogFragment.show(getChildFragmentManager(), Integer.toString(dialogId)); in showDialog()
501 public Dialog onCreateDialog(int dialogId) { in onCreateDialog() argument
506 public int getDialogMetricsCategory(int dialogId) { in getDialogMetricsCategory() argument
510 protected void removeDialog(int dialogId) { in removeDialog() argument
514 if (mDialogFragment != null && mDialogFragment.getDialogId() == dialogId) { in removeDialog()
583 public static SettingsDialogFragment newInstance(DialogCreatable fragment, int dialogId) { in newInstance() argument
591 settingsDialogFragment.setDialogId(dialogId); in newInstance()
690 private void setDialogId(int dialogId) { in setDialogId() argument
[all …]
DDialogCreatable.java28 Dialog onCreateDialog(int dialogId); in onCreateDialog() argument
30 int getDialogMetricsCategory(int dialogId); in getDialogMetricsCategory() argument
DProxySelector.java110 public int getDialogMetricsCategory(int dialogId) { in getDialogMetricsCategory() argument
114 private void showDialog(int dialogId) { in showDialog() argument
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/accessibility/
DMagnificationModePreferenceControllerTest.java270 public void showDialog(int dialogId) { in showDialog() argument
271 mDialog = onCreateDialog(dialogId); in showDialog()
280 public Dialog onCreateDialog(int dialogId) { in onCreateDialog() argument
281 return mDialogDelegate.onCreateDialog(dialogId); in onCreateDialog()
285 public int getDialogMetricsCategory(int dialogId) { in getDialogMetricsCategory() argument
286 return mDialogDelegate.getDialogMetricsCategory(dialogId); in getDialogMetricsCategory()
/packages/apps/Settings/src/com/android/settings/accessibility/
DTextReadingPreferenceFragment.java222 public Dialog onCreateDialog(int dialogId) { in onCreateDialog() argument
223 if (dialogId == DialogEnums.DIALOG_RESET_SETTINGS) { in onCreateDialog()
234 throw new IllegalArgumentException("Unsupported dialogId " + dialogId); in onCreateDialog()
238 public int getDialogMetricsCategory(int dialogId) { in getDialogMetricsCategory() argument
239 if (dialogId == DialogEnums.DIALOG_RESET_SETTINGS) { in getDialogMetricsCategory()
243 return super.getDialogMetricsCategory(dialogId); in getDialogMetricsCategory()
DToggleAccessibilityServicePreferenceFragment.java156 public Dialog onCreateDialog(int dialogId) { in onCreateDialog() argument
158 switch (dialogId) { in onCreateDialog()
200 return super.onCreateDialog(dialogId); in onCreateDialog()
221 public int getDialogMetricsCategory(int dialogId) { in getDialogMetricsCategory() argument
222 switch (dialogId) { in getDialogMetricsCategory()
232 return super.getDialogMetricsCategory(dialogId); in getDialogMetricsCategory()
572 private void showPopupDialog(int dialogId) { in showPopupDialog() argument
574 showDialog(dialogId); in showPopupDialog()
DMagnificationModePreferenceController.java146 public Dialog onCreateDialog(int dialogId) { in onCreateDialog() argument
147 switch (dialogId) { in onCreateDialog()
158 public int getDialogMetricsCategory(int dialogId) { in getDialogMetricsCategory() argument
159 switch (dialogId) { in getDialogMetricsCategory()
303 void showDialog(int dialogId); in showDialog() argument
DToggleScreenMagnificationPreferenceFragment.java166 public Dialog onCreateDialog(int dialogId) { in onCreateDialog() argument
168 mDialog = mDialogDelegate.onCreateDialog(dialogId); in onCreateDialog()
173 switch (dialogId) { in onCreateDialog()
187 return super.onCreateDialog(dialogId); in onCreateDialog()
348 public void showDialog(int dialogId) { in showDialog() argument
349 super.showDialog(dialogId); in showDialog()
567 public int getDialogMetricsCategory(int dialogId) { in getDialogMetricsCategory() argument
569 final int category = mDialogDelegate.getDialogMetricsCategory(dialogId); in getDialogMetricsCategory()
575 switch (dialogId) { in getDialogMetricsCategory()
583 return super.getDialogMetricsCategory(dialogId); in getDialogMetricsCategory()
DAccessibilityShortcutPreferenceFragment.java211 public Dialog onCreateDialog(int dialogId) { in onCreateDialog() argument
212 switch (dialogId) { in onCreateDialog()
237 throw new IllegalArgumentException("Unsupported dialogId " + dialogId); in onCreateDialog()
246 public int getDialogMetricsCategory(int dialogId) { in getDialogMetricsCategory() argument
247 switch (dialogId) { in getDialogMetricsCategory()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiDialogManager.java201 private @Nullable Intent getDismissIntent(int dialogId) { in getDismissIntent() argument
203 intent.putExtra(WifiManager.EXTRA_DIALOG_ID, dialogId); in getDismissIntent()
855 public void replyToSimpleDialog(int dialogId, @WifiManager.DialogReply int reply) { in replyToSimpleDialog() argument
857 Log.i(TAG, "Response received for simple dialog. id=" + dialogId + " reply=" + reply); in replyToSimpleDialog()
859 DialogHandleInternal internalHandle = mActiveDialogHandles.get(dialogId); in replyToSimpleDialog()
862 Log.w(TAG, "No matching dialog handle for simple dialog id=" + dialogId); in replyToSimpleDialog()
868 Log.w(TAG, "Dialog handle with id " + dialogId + " is not for a simple dialog."); in replyToSimpleDialog()
992 int dialogId, in replyToP2pInvitationReceivedDialog() argument
997 + " id=" + dialogId in replyToP2pInvitationReceivedDialog()
1001 DialogHandleInternal internalHandle = mActiveDialogHandles.get(dialogId); in replyToP2pInvitationReceivedDialog()
[all …]
/packages/apps/Settings/src/com/android/settings/users/
DUserDetailsSettings.java205 public int getDialogMetricsCategory(int dialogId) { in getDialogMetricsCategory() argument
206 switch (dialogId) { in getDialogMetricsCategory()
225 public Dialog onCreateDialog(int dialogId) { in onCreateDialog() argument
230 switch (dialogId) { in onCreateDialog()
265 throw new IllegalArgumentException("Unsupported dialogId " + dialogId); in onCreateDialog()
330 protected void showDialog(int dialogId) {
331 super.showDialog(dialogId);
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/audiostreams/
DAudioStreamsDialogFragment.java49 AudioStreamsDialogFragment(DialogBuilder dialogBuilder, int dialogId) { in AudioStreamsDialogFragment() argument
51 mDialogId = dialogId; in AudioStreamsDialogFragment()
71 public static void show(Fragment host, DialogBuilder dialogBuilder, int dialogId) { in show() argument
77 (new AudioStreamsDialogFragment(dialogBuilder, dialogId)).show(manager, TAG); in show()
/packages/apps/Settings/tests/componenttests/src/com/android/settings/display/darkmode/
DDarkThemeScheduleComponentTest.java123 private void setCustomTime(DarkModeSettingsFragment fragment, int dialogId, LocalTime time) { in setCustomTime() argument
124 Log.d(TAG, "Start to set custom time " + (dialogId == DIALOG_START_TIME ? "StartTime" in setCustomTime()
126 TimePickerDialog startTimeDialog = (TimePickerDialog) fragment.onCreateDialog(dialogId); in setCustomTime()
/packages/apps/Settings/src/com/android/settings/development/
DWirelessDebuggingFragment.java260 public int getDialogMetricsCategory(int dialogId) { in getDialogMetricsCategory() argument
265 public Dialog onCreateDialog(int dialogId) { in onCreateDialog() argument
267 dialogId == AdbWirelessDialogUiBase.MODE_PAIRING in onCreateDialog()
268 ? mPairingCodeDialogListener : null, dialogId); in onCreateDialog()
269 if (dialogId == AdbWirelessDialogUiBase.MODE_PAIRING) { in onCreateDialog()
283 return super.onCreateDialog(dialogId); in onCreateDialog()
/packages/apps/Settings/src/com/android/settings/core/instrumentation/
DInstrumentedDialogFragment.java41 public InstrumentedDialogFragment(DialogCreatable dialogCreatable, int dialogId) { in InstrumentedDialogFragment() argument
43 mDialogId = dialogId; in InstrumentedDialogFragment()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DSettingsDialogFragmentTest.java80 public Dialog onCreateDialog(int dialogId) { in onCreateDialog() argument
85 public int getDialogMetricsCategory(int dialogId) { in getDialogMetricsCategory() argument
/packages/apps/Contacts/src/com/android/contacts/util/
DDialogManager.java77 int dialogId = mUseDialogId2 ? R.id.dialog_manager_id_2 : R.id.dialog_manager_id_1; in showDialogInView() local
78 mActivity.showDialog(dialogId, bundle); in showDialogInView()
/packages/apps/Settings/src/com/android/settings/datetime/
DDateTimeSettings.java99 public int getDialogMetricsCategory(int dialogId) { in getDialogMetricsCategory() argument
100 switch (dialogId) { in getDialogMetricsCategory()
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/service/chat/
DMinimalCpmChatService.java143 String dialogId = request.getDialogId(/* isServer= */ true); in handleRequest() local
144 if (mDialogs.containsKey(dialogId)) { in handleRequest()
145 SimpleChatSession session = mDialogs.get(dialogId); in handleRequest()
/packages/services/Telephony/src/com/android/phone/settings/
DVoicemailSettingsActivity.java620 protected Dialog onCreateDialog(int dialogId) { in onCreateDialog() argument
621 return VoicemailDialogUtil.getDialog(this, dialogId); in onCreateDialog()
1103 private void handleVmOrFwdSetError(int dialogId) { in handleVmOrFwdSetError() argument
1105 mVMOrFwdSetError = dialogId; in handleVmOrFwdSetError()
1111 showDialogIfForeground(dialogId); in handleVmOrFwdSetError()
1119 private void handleVmAndFwdSetSuccess(int dialogId) { in handleVmAndFwdSetSuccess() argument
1124 showDialogIfForeground(dialogId); in handleVmAndFwdSetSuccess()
/packages/apps/Settings/src/com/android/settings/gestures/
DOneHandedSettings.java84 public int getDialogMetricsCategory(int dialogId) { in getDialogMetricsCategory() argument
85 final int dialogMetrics = super.getDialogMetricsCategory(dialogId); in getDialogMetricsCategory()

12