Home
last modified time | relevance | path

Searched refs:mNotification (Results 1 – 13 of 13) sorted by relevance

/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/
H A DSbnBuilder.java39 @Nullable private Notification mNotification; field in SbnBuilder
57 mNotification = source.getNotification(); in SbnBuilder()
68 } else if (mNotification != null) { in build()
69 notification = mNotification; in build()
126 mNotification = notification; in setNotification()
157 if (mNotification != null) { in modifyNotification()
158 mNotificationBuilder = new Notification.Builder(context, mNotification); in modifyNotification()
159 mNotification = null; in modifyNotification()
/aosp14/frameworks/base/services/tests/servicestests/test-apps/SimpleServiceTestApp/src/com/android/servicestests/apps/simpleservicetestapp/
H A DSimpleFgService.java53 startForeground(NOTIFICATION_ID, mNotification);
71 private Notification mNotification; field in SimpleFgService
80 mNotification = new Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in onCreate()
89 startForeground(NOTIFICATION_ID, mNotification); in onStartCommand()
112 mNotification = null; in onDestroy()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
H A DDeviceProvisionedCoordinatorTest.java69 private Notification mNotification; field in DeviceProvisionedCoordinatorTest
80 mNotification = new Notification(); in setup()
82 .setNotification(mNotification) in setup()
118 mNotification.extras = extras; in deviceUnprovisionedCanBypass()
131 mNotification.extras = extras; in deviceUnprovisionedTryBypassWithoutPermission()
/aosp14/frameworks/base/packages/CarrierDefaultApp/tests/unit/src/com/android/carrierdefaultapp/
H A DCarrierDefaultReceiverTest.java52 private ArgumentCaptor<Notification> mNotification; field in CarrierDefaultReceiverTest
98 mNotification.capture()); in testOnReceiveRedirection()
101 PendingIntent pendingIntent = mNotification.getValue().contentIntent; in testOnReceiveRedirection()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
H A DMediaManager.java38 protected Notification mNotification; field in MediaManager
42 mNotification = notification; in MediaManager()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DInflatedSmartRepliesTest.java71 @Mock private Notification mNotification; field in InflatedSmartRepliesTest
94 when(mNotification.getAllowSystemGeneratedContextualActions()).thenReturn(true); in setUp()
96 .setNotification(mNotification) in setUp()
249 mNotification.actions = new Notification.Action[]{ in chooseSmartRepliesAndActions_sysGeneratedPhishingSmartAction()
310 when(mNotification.getAllowSystemGeneratedContextualActions()).thenReturn(false); in chooseSmartRepliesAndActions_disallowSysGenSmartActions()
585 when(mNotification.findRemoteInputActionPair(false)).thenReturn(remoteInputActionPair); in setupAppGeneratedReplies()
593 when(mNotification.findRemoteInputActionPair(true)).thenReturn( in setupAppGeneratedReplies()
602 when(mNotification.getContextualActions()).thenReturn(smartActions); in setupAppGeneratedSuggestions()
H A DSmartReplyViewTest.java108 private Notification mNotification; field in SmartReplyViewTest
151 mNotification = new Notification.Builder(mContext, "") in setUp()
157 .setNotification(mNotification) in setUp()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenrecord/
H A DRecordingServiceTest.java76 private Notification mNotification; field in RecordingServiceTest
127 doReturn(mNotification).when(mRecordingService).createProcessingNotification(); in setUp()
128 doReturn(mNotification).when(mRecordingService).createSaveNotification(any()); in setUp()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DStatusBarIconView.java149 private StatusBarNotification mNotification; field in StatusBarIconView
351 mNotification = notification; in setNotification()
359 return mNotification != null; in isNotification()
457 notifContext = mNotification.getPackageContext(getContext()); in getIcon()
512 event.setParcelableData(mNotification.getNotification()); in onInitializeAccessibilityEvent()
637 + " notification=" + mNotification + ')'; in toString()
641 return mNotification; in getNotification()
/aosp14/frameworks/base/services/core/java/com/android/server/health/
H A DHealthServiceWrapperHidl.java51 private final IServiceNotification mNotification = new Notification(); field in HealthServiceWrapperHidl
223 .registerForNotifications(IHealth.kInterfaceName, mInstanceName, mNotification); in HealthServiceWrapperHidl()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
H A DDataManagerTest.java169 private Notification mNotification; field in DataManagerTest
262 when(mGenericSbn.getNotification()).thenReturn(mNotification); in setUp()
267 when(mConvoSbn.getNotification()).thenReturn(mNotification); in setUp()
272 when(mNotification.getShortcutId()).thenReturn(TEST_SHORTCUT_ID); in setUp()
510 when(mNotification.getShortcutId()).thenReturn(shortcutId); in testUncacheShortcutsWhenNotificationsDismissed()
1185 when(mNotification.getShortcutId()).thenReturn(shortcutId); in testDoNotUncacheShortcutWithActiveNotifications()
1207 when(mNotification.getShortcutId()).thenReturn(shortcutId); in testUncacheOldestCachedShortcut()
1378 when(mNotification.getShortcutId()).thenReturn(TEST_SHORTCUT_ID); in testPruneOldRecentConversations()
1635 when(mNotification.getShortcutId()).thenReturn("1");
1642 when(mNotification.getShortcutId()).thenReturn("2");
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/
H A DMediaOutputControllerTest.java167 final Notification mNotification = mock(Notification.class); field in MediaOutputControllerTest
230 when(mNotification.isMediaNotification()).thenReturn(false); in setUp()
233 when(sbn.getNotification()).thenReturn(mNotification); in setUp()
235 mNotification.extras = bundle; in setUp()
269 when(mNotification.isMediaNotification()).thenReturn(true); in start_MediaNotificationFound_mediaControllerNotInitFromSession()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageInstallerService.java1526 private final Notification mNotification;
1534 mNotification = buildSuccessNotification(mContext,
1539 mNotification = null;
1575 if (PackageManager.DELETE_SUCCEEDED == returnCode && mNotification != null) {
1580 mNotification);