Home
last modified time | relevance | path

Searched refs:mNotificationBuilder (Results 1 – 18 of 18) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/ingest/
DIngestService.java79 private NotificationCompat.Builder mNotificationBuilder; field in IngestService
88 mNotificationBuilder = new NotificationCompat.Builder(this); in onCreate()
90 mNotificationBuilder.setSmallIcon(android.R.drawable.stat_notify_sync) in onCreate()
133 mNotificationBuilder.setContentTitle(mDevicePrettyName); in setDevice()
157 mNotificationBuilder.setProgress(0, 0, false) in setClientActivity()
160 mNotificationBuilder.build()); in setClientActivity()
197 mNotificationBuilder.setProgress(0, 0, true) in importSelectedItems()
200 mNotificationBuilder.build()); in importSelectedItems()
232 mNotificationBuilder.setProgress(totalCount, visitedCount, false) in onImportProgress()
235 mNotificationBuilder.build()); in onImportProgress()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiSettingsStoreTest.java79 @Mock private Notification.Builder mNotificationBuilder; field in WifiSettingsStoreTest
107 .thenReturn(mNotificationBuilder); in setUp()
108 when(mNotificationBuilder.setSmallIcon(any())).thenReturn(mNotificationBuilder); in setUp()
109 when(mNotificationBuilder.setContentTitle(any())).thenReturn(mNotificationBuilder); in setUp()
110 when(mNotificationBuilder.setContentText(any())).thenReturn(mNotificationBuilder); in setUp()
111 when(mNotificationBuilder.setContentIntent(any())).thenReturn(mNotificationBuilder); in setUp()
112 when(mNotificationBuilder.setStyle(any())).thenReturn(mNotificationBuilder); in setUp()
113 when(mNotificationBuilder.setLocalOnly(anyBoolean())).thenReturn(mNotificationBuilder); in setUp()
114 when(mNotificationBuilder.setAutoCancel(anyBoolean())).thenReturn(mNotificationBuilder); in setUp()
115 when(mNotificationBuilder.setVisibility(Notification.VISIBILITY_PUBLIC)) in setUp()
[all …]
DOpenNetworkNotifierTest.java95 @Mock private ConnectToNetworkNotificationBuilder mNotificationBuilder; field in OpenNetworkNotifierTest
130 mWifiConfigManager, mWifiConfigStore, mConnectHelper, mNotificationBuilder, in setUp()
181 verify(mNotificationBuilder).createConnectToAvailableNetworkNotification( in handleScanResults_hasOpenNetworks_notificationDisplayed()
219 verify(mNotificationBuilder).createConnectToAvailableNetworkNotification( in handleScanResults_notificationShown_emptyList_notificationCleared()
238 verify(mNotificationBuilder).createConnectToAvailableNetworkNotification( in handleScanResults_notificationShown_noRecommendation_notificationCleared()
258 verify(mNotificationBuilder).createConnectToAvailableNetworkNotification( in handleScanResults_notificationShown_screenOff_emptyList_notificationCleared()
278 verify(mNotificationBuilder).createConnectToAvailableNetworkNotification( in clearPendingNotification_clearsNotificationIfOneIsShowing()
320 verify(mNotificationBuilder).createConnectToAvailableNetworkNotification( in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated()
337 verify(mNotificationBuilder).createConnectToAvailableNetworkNotification( in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated()
351 verify(mNotificationBuilder).createConnectToAvailableNetworkNotification( in postNotification_clearNotificationWithoutDelayReset_shouldNotPostNotification()
[all …]
DEapFailureNotifierTest.java78 @Mock(answer = Answers.RETURNS_DEEP_STUBS) private Notification.Builder mNotificationBuilder; field in EapFailureNotifierTest
144 eq(WifiService.NOTIFICATION_NETWORK_ALERTS))).thenReturn(mNotificationBuilder); in onEapFailureEapFailureConfigWithOverride()
185 eq(WifiService.NOTIFICATION_NETWORK_ALERTS))).thenReturn(mNotificationBuilder); in onEapFailureWithDefinedErrorCodeWithoutNotificationShown()
212 eq(WifiService.NOTIFICATION_NETWORK_ALERTS))).thenReturn(mNotificationBuilder); in onEapFailure_showNotificationFalse_notShown()
235 eq(WifiService.NOTIFICATION_NETWORK_ALERTS))).thenReturn(mNotificationBuilder); in onEapFailureWithDefinedErrorCodeWithNotificationShownWithoutSameSsid()
265 eq(WifiService.NOTIFICATION_NETWORK_ALERTS))).thenReturn(mNotificationBuilder); in onEapFailureWithDefinedErrorCodeWithNotificationShownWithSameSsid()
290 eq(WifiService.NOTIFICATION_NETWORK_ALERTS))).thenReturn(mNotificationBuilder); in onEapFailureWithDefinedErrorCodeWithoutMessage()
315 eq(WifiService.NOTIFICATION_NETWORK_ALERTS))).thenReturn(mNotificationBuilder); in onEapFailureWithUnknownErrorCode()
342 eq(WifiService.NOTIFICATION_NETWORK_ALERTS))).thenReturn(mNotificationBuilder); in onEapFailureWithCarrierOverrideForDisableParameters()
372 eq(WifiService.NOTIFICATION_NETWORK_ALERTS))).thenReturn(mNotificationBuilder); in onEapFailureWithNegativeErrorCode()
[all …]
DWifiCarrierInfoManagerTest.java169 @Mock Notification.Builder mNotificationBuilder; field in WifiCarrierInfoManagerTest
208 .thenReturn(mNotificationBuilder); in setUp()
211 when(mNotificationBuilder.setSmallIcon(any())).thenReturn(mNotificationBuilder); in setUp()
212 when(mNotificationBuilder.setTicker(any())).thenReturn(mNotificationBuilder); in setUp()
213 when(mNotificationBuilder.setContentTitle(any())).thenReturn(mNotificationBuilder); in setUp()
214 when(mNotificationBuilder.setStyle(any())).thenReturn(mNotificationBuilder); in setUp()
215 when(mNotificationBuilder.setContentIntent(any())).thenReturn(mNotificationBuilder); in setUp()
216 when(mNotificationBuilder.setDeleteIntent(any())).thenReturn(mNotificationBuilder); in setUp()
217 when(mNotificationBuilder.setShowWhen(anyBoolean())).thenReturn(mNotificationBuilder); in setUp()
218 when(mNotificationBuilder.setLocalOnly(anyBoolean())).thenReturn(mNotificationBuilder); in setUp()
[all …]
DSoftApNotifierTest.java53 @Mock(answer = Answers.RETURNS_DEEP_STUBS) private Notification.Builder mNotificationBuilder; field in SoftApNotifierTest
75 eq(WifiService.NOTIFICATION_NETWORK_STATUS))).thenReturn(mNotificationBuilder); in showSoftApShutdownTimeoutExpiredNotification()
DWrongPasswordNotifierTest.java60 @Mock(answer = Answers.RETURNS_DEEP_STUBS) private Notification.Builder mNotificationBuilder; field in WrongPasswordNotifierTest
106 eq(WifiService.NOTIFICATION_NETWORK_ALERTS))).thenReturn(mNotificationBuilder); in onWrongPasswordError()
DWifiNetworkSuggestionsManagerTest.java187 private @Mock Notification.Builder mNotificationBuilder; field in WifiNetworkSuggestionsManagerTest
236 when(mNotificationBuilder.setSmallIcon(any())).thenReturn(mNotificationBuilder); in setUp()
237 when(mNotificationBuilder.setTicker(any())).thenReturn(mNotificationBuilder); in setUp()
238 when(mNotificationBuilder.setContentTitle(any())).thenReturn(mNotificationBuilder); in setUp()
239 when(mNotificationBuilder.setStyle(any())).thenReturn(mNotificationBuilder); in setUp()
240 when(mNotificationBuilder.setDeleteIntent(any())).thenReturn(mNotificationBuilder); in setUp()
241 when(mNotificationBuilder.setShowWhen(anyBoolean())).thenReturn(mNotificationBuilder); in setUp()
242 when(mNotificationBuilder.setLocalOnly(anyBoolean())).thenReturn(mNotificationBuilder); in setUp()
243 when(mNotificationBuilder.setColor(anyInt())).thenReturn(mNotificationBuilder); in setUp()
244 when(mNotificationBuilder.addAction(any())).thenReturn(mNotificationBuilder); in setUp()
[all …]
DInsecureEapNetworkHandlerTest.java326 @Mock(answer = Answers.RETURNS_DEEP_STUBS) private Notification.Builder mNotificationBuilder; field in InsecureEapNetworkHandlerTest
382 .thenReturn(mNotificationBuilder); in setUp()
/packages/apps/Camera2/src/com/android/camera/processing/
DProcessingService.java77 private Notification.Builder mNotificationBuilder; field in ProcessingService
116 mNotificationBuilder = createInProgressNotificationBuilder(); in onCreate()
140 startForeground(CAMERA_NOTIFICATION_ID, mNotificationBuilder.build()); in onStartCommand()
243 mNotificationBuilder.setContentText("…").setProgress(100, 0, false); in resetNotification()
255 mNotificationManager.notify(CAMERA_NOTIFICATION_ID, mNotificationBuilder.build()); in postNotification()
271 mNotificationBuilder.setProgress(100, progress, false); in onProgressChanged()
277 mNotificationBuilder.setContentText(messageId > 0 ? getString(messageId) : ""); in onStatusMessageChanged()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimerModel.kt77 private val mNotificationBuilder = TimerNotificationBuilder() constant in com.android.deskclock.data.TimerModel
696 if(mNotificationBuilder.isChannelCreated(mNotificationManager)) { in updateNotification()
710 mNotificationBuilder.build(mContext, mNotificationModel, unexpired) in updateNotification()
712 mNotificationBuilder.buildChannel(mContext, mNotificationManager) in updateNotification()
716 if(mNotificationBuilder.isChannelCreated(mNotificationManager)) { in updateNotification()
744 val notification: Notification = mNotificationBuilder.buildMissed(mContext, in updateMissedNotification()
770 val notification: Notification = mNotificationBuilder.buildHeadsUp(mContext, expired) in updateHeadsUpNotification()
DStopwatchModel.kt50 private val mNotificationBuilder = StopwatchNotificationBuilder() constant in com.android.deskclock.data.StopwatchModel
222 mNotificationBuilder.build(mContext, mNotificationModel, stopwatch) in updateNotification()
223 mNotificationBuilder.buildChannel(mContext, mNotificationManager) in updateNotification()
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DNotificationGroupTest.java60 private Notification.Builder mNotificationBuilder; field in NotificationGroupTest
70 mNotificationBuilder = new Notification.Builder(mContext, in setup()
75 ID, TAG, UID, INITIAL_PID, mNotificationBuilder.build(), USER_HANDLE, in setup()
78 ID, TAG, UID, INITIAL_PID, mNotificationBuilder.build(), USER_HANDLE, in setup()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DSelfManagedConnection.java64 private Notification.Builder mNotificationBuilder; field in SelfManagedConnection
143 mNotificationBuilder = builder; in onShowIncomingCallUi()
186 mNotificationBuilder.setOnlyAlertOnce(true); in onSilence()
189 notificationManager.notify(CALL_NOTIFICATION, mCallId, mNotificationBuilder.build()); in onSilence()
/packages/services/DeviceAsWebcam/src/com/android/DeviceAsWebcam/
DDeviceAsWebcamFgService.java64 private NotificationCompat.Builder mNotificationBuilder; field in DeviceAsWebcamFgService
118 mNotificationBuilder = new NotificationCompat.Builder(this, channelId) in startForegroundWithNotification()
130 Notification notif = mNotificationBuilder.build(); in startForegroundWithNotification()
422 mNotificationBuilder.setSmallIcon(mNextNotificationIcon); in updateNotificationToNextIcon()
423 NotificationManagerCompat.from(mContext).notify(NOTIF_ID, mNotificationBuilder.build()); in updateNotificationToNextIcon()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DAvailableNetworkNotifier.java133 private final ConnectToNetworkNotificationBuilder mNotificationBuilder; field in AvailableNetworkNotifier
188 mNotificationBuilder = connectToNetworkNotificationBuilder; in AvailableNetworkNotifier()
376 postNotification(mNotificationBuilder.createNetworkConnectedNotification(mTag, in handleWifiConnected()
400 postNotification(mNotificationBuilder.createNetworkFailedNotification(mTag)); in handleConnectionFailure()
422 postNotification(mNotificationBuilder.createConnectToAvailableNetworkNotification(mTag, in postInitialNotification()
447 postNotification(mNotificationBuilder.createNetworkConnectingNotification(mTag, in handleConnectToNetworkAction()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DBugleNotifications.java466 state.mNotificationBuilder = notifBuilder; in processAndSend()
697 notificationState.mNotificationBuilder in sendNotification()
706 notificationState.mNotificationBuilder.setLargeIcon(avatarIcon); in sendNotification()
712 notificationState.mNotificationBuilder.addPerson(contactUri.toString()); in sendNotification()
784 final NotificationCompat.Builder notifBuilder = notificationState.mNotificationBuilder; in fireOffNotification()
817 notificationState.mNotificationBuilder.setLargeIcon(smallBitmap); in fireOffNotification()
DNotificationState.java64 public NotificationCompat.Builder mNotificationBuilder; field in NotificationState