Home
last modified time | relevance | path

Searched refs:sysuiDialog (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/saver/domain/
DDataSaverDialogDelegateTest.kt47 private lateinit var sysuiDialog: SystemUIDialog variable in com.android.systemui.qs.tiles.impl.saver.domain.DataSaverDialogDelegateTest
52 sysuiDialog = mock<SystemUIDialog>() in setup()
65 .thenReturn(sysuiDialog) in setup()
71 dataSaverDialogDelegate.beforeCreate(sysuiDialog, null) in delegateSetsDialogTitleCorrectly()
73 verify(sysuiDialog).setTitle(eq(expectedResId)) in delegateSetsDialogTitleCorrectly()
80 dataSaverDialogDelegate.beforeCreate(sysuiDialog, null) in delegateSetsDialogMessageCorrectly()
82 verify(sysuiDialog).setMessage(expectedResId) in delegateSetsDialogMessageCorrectly()
89 dataSaverDialogDelegate.beforeCreate(sysuiDialog, null) in delegateSetsDialogPositiveButtonCorrectly()
91 verify(sysuiDialog).setPositiveButton(eq(expectedResId), any()) in delegateSetsDialogPositiveButtonCorrectly()
98 dataSaverDialogDelegate.beforeCreate(sysuiDialog, null) in delegateSetsDialogCancelButtonCorrectly()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DBiometricNotificationDialogFactory.java65 SystemUIDialog sysuiDialog = mSystemUIDialogFactory.create(); in createReenrollDialog() local
67 sysuiDialog.setTitle(mResources.getString(R.string.face_re_enroll_dialog_title)); in createReenrollDialog()
68 sysuiDialog.setMessage(mResources.getString(R.string.face_re_enroll_dialog_content)); in createReenrollDialog()
70 sysuiDialog.setTitle(mResources.getString(R.string.fingerprint_re_enroll_dialog_title)); in createReenrollDialog()
72 sysuiDialog.setMessage(mResources.getString( in createReenrollDialog()
75 sysuiDialog.setMessage(mResources.getString( in createReenrollDialog()
80 sysuiDialog.setPositiveButton(R.string.biometric_re_enroll_dialog_confirm, in createReenrollDialog()
84 sysuiDialog.setNegativeButton(R.string.biometric_re_enroll_dialog_cancel, in createReenrollDialog()
88 sysuiDialog.setCanceledOnTouchOutside(!isReenrollForced); in createReenrollDialog()
89 return sysuiDialog; in createReenrollDialog()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/screenrecord/ui/view/
DEndScreenRecordingDialogDelegateTest.kt53 private val sysuiDialog = mock<SystemUIDialog>() constant in com.android.systemui.statusbar.chips.screenrecord.ui.view.EndScreenRecordingDialogDelegateTest
61 underTest.beforeCreate(sysuiDialog, /* savedInstanceState= */ null) in icon()
63 verify(sysuiDialog).setIcon(R.drawable.ic_screenrecord) in icon()
70 underTest.beforeCreate(sysuiDialog, /* savedInstanceState= */ null) in title()
72 verify(sysuiDialog).setTitle(R.string.screenrecord_stop_dialog_title) in title()
79 underTest.beforeCreate(sysuiDialog, /* savedInstanceState= */ null) in message_noRecordedTask()
81 verify(sysuiDialog).setMessage(context.getString(R.string.screenrecord_stop_dialog_message)) in message_noRecordedTask()
96 underTest.beforeCreate(sysuiDialog, /* savedInstanceState= */ null) in message_hasRecordedTask()
101 verify(sysuiDialog).setMessage(result.capture()) in message_hasRecordedTask()
109 underTest.beforeCreate(sysuiDialog, /* savedInstanceState= */ null) in negativeButton()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/sharetoapp/ui/view/
DEndShareToAppDialogDelegateTest.kt53 private val sysuiDialog = mock<SystemUIDialog>() constant
60 underTest.beforeCreate(sysuiDialog, /* savedInstanceState= */ null) in icon()
62 verify(sysuiDialog).setIcon(R.drawable.ic_screenshot_share) in icon()
69 underTest.beforeCreate(sysuiDialog, /* savedInstanceState= */ null) in title()
71 verify(sysuiDialog).setTitle(R.string.share_to_app_stop_dialog_title) in title()
78 underTest.beforeCreate(sysuiDialog, /* savedInstanceState= */ null) in message_entireScreen()
80 verify(sysuiDialog).setMessage(context.getString(R.string.share_to_app_stop_dialog_message)) in message_entireScreen()
99 underTest.beforeCreate(sysuiDialog, /* savedInstanceState= */ null) in message_singleTask()
104 verify(sysuiDialog).setMessage(result.capture()) in message_singleTask()
112 underTest.beforeCreate(sysuiDialog, /* savedInstanceState= */ null) in negativeButton()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/casttootherdevice/ui/view/
DEndCastToOtherDeviceDialogDelegateTest.kt53 private val sysuiDialog = mock<SystemUIDialog>() constant
60 underTest.beforeCreate(sysuiDialog, /* savedInstanceState= */ null) in icon()
62 verify(sysuiDialog).setIcon(R.drawable.ic_cast_connected) in icon()
69 underTest.beforeCreate(sysuiDialog, /* savedInstanceState= */ null) in title()
71 verify(sysuiDialog).setTitle(R.string.cast_to_other_device_stop_dialog_title) in title()
78 underTest.beforeCreate(sysuiDialog, /* savedInstanceState= */ null) in message_entireScreen()
80 verify(sysuiDialog) in message_entireScreen()
100 underTest.beforeCreate(sysuiDialog, /* savedInstanceState= */ null) in message_singleTask()
105 verify(sysuiDialog).setMessage(result.capture()) in message_singleTask()
113 underTest.beforeCreate(sysuiDialog, /* savedInstanceState= */ null) in negativeButton()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bluetooth/qsdialog/
DBluetoothTileDialogViewModelTest.kt106 @Mock private lateinit var sysuiDialog: SystemUIDialog variable in com.android.systemui.bluetooth.qsdialog.BluetoothTileDialogViewModelTest
155 whenever(bluetoothTileDialogDelegate.createDialog()).thenReturn(sysuiDialog) in setUp()
156 whenever(sysuiDialog.context).thenReturn(mContext) in setUp()