/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/ |
D | AccessibilityShortcutControllerTest.java | 113 private @Mock AlertDialog mAlertDialog; field in AccessibilityShortcutControllerTest 186 when(mAlertDialogBuilder.create()).thenReturn(mAlertDialog); in setUp() 201 when(mAlertDialog.getWindow()).thenReturn(window); in setUp() 332 verify(mAlertDialog).show(); in testOnAccessibilityShortcut_firstTime_showsWarningDialog() 371 verify(mAlertDialog, times(2)).show(); in testOnAccessibilityShortcut_ifCanceledFirstTime_showsWarningDialog() 423 verifyZeroInteractions(mAlertDialogBuilder, mAlertDialog); in testOnAccessibilityShortcut_afterDialogShown_shouldCallServer() 492 verify(mAlertDialog).show(); in testOnAccessibilityShortcut_showsWarningDialog_shouldTtsSpokenPrompt() 500 verify(mAlertDialog).setOnDismissListener(onDismissCap.capture()); in testOnAccessibilityShortcut_showsWarningDialog_shouldTtsSpokenPrompt() 501 onDismissCap.getValue().onDismiss(mAlertDialog); in testOnAccessibilityShortcut_showsWarningDialog_shouldTtsSpokenPrompt() 517 verify(mAlertDialog).show(); in testOnAccessibilityShortcut_showsWarningDialog_ttsInitFail_noSpokenPrompt() [all …]
|
/frameworks/base/core/java/com/android/internal/accessibility/ |
D | AccessibilityShortcutController.java | 92 private AlertDialog mAlertDialog; field in AccessibilityShortcutController 212 mAlertDialog = createShortcutWarningDialog(userId); in performAccessibilityShortcut() 213 if (mAlertDialog == null) { in performAccessibilityShortcut() 216 if (!performTtsPrompt(mAlertDialog)) { in performAccessibilityShortcut() 219 Window w = mAlertDialog.getWindow(); in performAccessibilityShortcut() 223 mAlertDialog.show(); in performAccessibilityShortcut() 229 if (mAlertDialog != null) { in performAccessibilityShortcut() 230 mAlertDialog.dismiss(); in performAccessibilityShortcut() 231 mAlertDialog = null; in performAccessibilityShortcut()
|
/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
D | ColorPickerDialog.java | 39 protected AlertDialog mAlertDialog; field in ColorPickerDialog 119 mAlertDialog = new AlertDialog.Builder(activity) in onCreateDialog() 124 return mAlertDialog; in onCreateDialog()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardSecurityContainer.java | 123 private AlertDialog mAlertDialog; field in KeyguardSecurityContainer 281 if (mAlertDialog != null) { in onPause() 282 mAlertDialog.dismiss(); in onPause() 283 mAlertDialog = null; in onPause() 533 if (mAlertDialog != null) { in showDialog() 534 mAlertDialog.dismiss(); in showDialog() 537 mAlertDialog = new AlertDialog.Builder(mContext) in showDialog() 544 mAlertDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG); in showDialog() 546 mAlertDialog.show(); in showDialog()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ConnectionFailureNotifierTest.java | 65 @Mock private AlertDialog mAlertDialog; field in ConnectionFailureNotifierTest 85 any())).thenReturn(mAlertDialog); in setUp()
|
D | WifiCarrierInfoManagerTest.java | 129 @Mock AlertDialog mAlertDialog; field in WifiCarrierInfoManagerTest 163 when(mAlertDialogBuilder.create()).thenReturn(mAlertDialog); in setUp() 164 when(mAlertDialog.getWindow()).thenReturn(mock(Window.class)); in setUp() 1549 clickListenerCaptor.getValue().onClick(mAlertDialog, 0); in testSendImsiProtectionExemptionNotificationWithUserAllowed() 1582 verify(mAlertDialog, never()).show(); in testSendImsiProtectionExemptionNotificationWithUserDisallowed() 1659 clickListenerCaptor.getValue().onClick(mAlertDialog, 0); in testSendImsiProtectionExemptionConfirmationDialogWithUserDisallowed() 1701 dismissListenerCaptor.getValue().onDismiss(mAlertDialog); in testSendImsiProtectionExemptionConfirmationDialogWithUserDismissal() 1757 verify(mAlertDialog, atLeastOnce()).show(); in validateUserApprovalDialog()
|
D | WifiNetworkSuggestionsManagerTest.java | 149 private @Mock AlertDialog mAlertDialog; field in WifiNetworkSuggestionsManagerTest 188 when(mAlertDialogBuilder.create()).thenReturn(mAlertDialog); in setUp() 189 when(mAlertDialog.getWindow()).thenReturn(mock(Window.class)); in setUp() 2566 clickListenerCaptor.getValue().onClick(mAlertDialog, 0); in testUserApprovalDialogClickOnAllowDuringAddingSuggestionsFromFgApp() 2609 clickListenerCaptor.getValue().onClick(mAlertDialog, 0); in testUserApprovalDialogClickOnDisallowWhenAddSuggestionsFromFgApp() 2666 dismissListenerCaptor.getValue().onDismiss(mAlertDialog); in testUserApprovalDialiogDismissDuringAddingSuggestionsFromFgApp() 2699 verifyZeroInteractions(mAlertDialog); in testAddNetworkSuggestions_activeFgScorer_doesNotRequestForApproval() 2721 verifyZeroInteractions(mAlertDialog); in testAddNetworkSuggestions_activeBgScorer_doesNotRequestForApproval() 2776 verifyZeroInteractions(mAlertDialog); in getNetworkSuggestionsForScanDetail_exemptsActiveScorerFromUserApproval() 2912 verify(mAlertDialog, atLeastOnce()).show(); in validateUserApprovalDialog() [all …]
|
/frameworks/ex/common/java/com/android/ex/editstyledtext/ |
D | EditStyledText.java | 2018 private AlertDialog mAlertDialog; field in EditStyledText.StyledTextDialog 2193 if (mAlertDialog != null) { in buildAndShowColorDialogue() 2194 mAlertDialog.setView(null); in buildAndShowColorDialogue() 2195 mAlertDialog.dismiss(); in buildAndShowColorDialogue() 2196 mAlertDialog = null; in buildAndShowColorDialogue() 2207 if (mAlertDialog != null) { in buildAndShowColorDialogue() 2208 mAlertDialog.setView(null); in buildAndShowColorDialogue() 2209 mAlertDialog.dismiss(); in buildAndShowColorDialogue() 2210 mAlertDialog = null; in buildAndShowColorDialogue() 2244 mAlertDialog = mBuilder.show(); in buildAndShowColorDialogue()
|