Home
last modified time | relevance | path

Searched refs:mNotifier (Results 1 – 16 of 16) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DLingerMonitorTest.java85 @Mock NetworkNotificationManager mNotifier; field in LingerMonitorTest
96 mMonitor = new TestableLingerMonitor(mCtx, mNotifier, HIGH_DAILY_LIMIT, HIGH_RATE_LIMIT); in setUp()
147 verify(mNotifier, times(1)).clearNotification(100); in testNotificationClearedAfterDisconnect()
161 verify(mNotifier, times(1)).clearNotification(100); in testNotificationClearedAfterSwitchingBack()
175 verify(mNotifier, times(1)).clearNotification(100); in testUniqueToast()
177 reset(mNotifier); in testUniqueToast()
194 verify(mNotifier, times(1)).clearNotification(100); in testMultipleNotifications()
196 reset(mNotifier); in testMultipleNotifications()
203 mMonitor = new TestableLingerMonitor(mCtx, mNotifier, HIGH_DAILY_LIMIT, LOW_RATE_LIMIT); in testRateLimiting()
214 reset(mNotifier); in testRateLimiting()
[all …]
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/
DNetworkStackNotifierTest.kt100 private lateinit var mNotifier: NetworkStackNotifier variable in com.android.networkstack.NetworkStackNotifierTest
174 mNotifier = NetworkStackNotifier(mContext, mLooper.looper, mDependencies) in setUp()
175 mHandler = mNotifier.handler in setUp()
228 mNotifier.notifyCaptivePortalValidationPending(TEST_NETWORK) in testConnectedNotification_NoSsid()
242 mNotifier.notifyCaptivePortalValidationPending(TEST_NETWORK) in testConnectedNotification_WithSsid()
256 mNotifier.notifyCaptivePortalValidationPending(TEST_NETWORK) in testConnectedVenueInfoNotification()
276 mNotifier.notifyCaptivePortalValidationPending(TEST_NETWORK) in testConnectedVenueInfoNotification_VenueInfoDisabled()
357 mNotifier.notifyCaptivePortalValidationPending(TEST_NETWORK) in testConnectedVenueInfoWithFriendlyNameNotification()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DLingerMonitor.java78 private final NetworkNotificationManager mNotifier; field in LingerMonitor
96 mNotifier = notifier; in LingerMonitor()
159 mNotifier.showNotification(fromNai.network.getNetId(), NotificationType.NETWORK_SWITCH, in showNotification()
177 mNotifier.clearNotification(fromNetId); in maybeStopNotifying()
200 mNotifier.showToast(fromNai, toNai); in notify()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocalAlbumSet.java53 private final ChangeNotifier mNotifier; field in LocalAlbumSet
66 mNotifier = new ChangeNotifier(this, mWatchUris, application); in LocalAlbumSet()
167 if (mNotifier.isDirty()) { in reload()
199 mNotifier.fakeChange(); in fakeChange()
DSecureAlbum.java50 private final ChangeNotifier mNotifier; field in SecureAlbum
60 mNotifier = new ChangeNotifier(this, mWatchUris, application); in SecureAlbum()
81 mNotifier.fakeChange(); in addMediaItem()
126 if (mNotifier.isDirty()) { in reload()
DLocalAlbum.java57 private final ChangeNotifier mNotifier; field in LocalAlbum
86 mNotifier = new ChangeNotifier(this, mBaseUri, application); in LocalAlbum()
256 if (mNotifier.isDirty()) { in reload()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppService.java111 private BluetoothOppNotification mNotifier; field in BluetoothOppService
230 mNotifier = new BluetoothOppNotification(this); in start()
231 mNotifier.mNotificationMgr.cancelAll(); in start()
232 mNotifier.updateNotification(); in start()
354 mNotifier.cancelNotifications();
700 mNotifier.updateNotification(); in run()
868 mNotifier.mNotificationMgr.cancel(info.mId); in updateShare()
882 mNotifier.mNotificationMgr.cancel(info.mId); in updateShare()
DBluetoothOppTransferHistory.java83 private BluetoothOppNotification mNotifier; field in BluetoothOppTransferHistory
146 mNotifier = new BluetoothOppNotification(this); in onCreate()
341 mNotifier.updateNotification(); in updateNotificationWhenBtDisabled()
/packages/apps/Gallery2/src/com/android/photos/data/
DPhotoProvider.java244 protected ChangeNotification mNotifier = null; field in PhotoProvider
347 mNotifier = notification; in setMockNotification()
444 if (mNotifier != null) { in notifyChange()
445 mNotifier.notifyChange(uri, syncToNetwork); in notifyChange()
/packages/modules/NetworkStack/src/com/android/server/
DNetworkStackService.java196 private final NetworkStackNotifier mNotifier; field in NetworkStackService.NetworkStackConnector
296 mNotifier = mDeps.makeNotifier(context, notifierThread.getLooper()); in NetworkStackConnector()
298 mNotifier = null; in NetworkStackConnector()
403 return mNotifier; in getNotifier()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadThread.java123 private final DownloadNotifier mNotifier; field in DownloadThread
250 mNotifier = Helpers.getDownloadNotifier(mContext); in DownloadThread()
367 mNotifier.notifyDownloadSpeed(mId, 0); in run()
750 mNotifier.notifyDownloadSpeed(mId, mSpeed); in updateProgress()
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DCopyJob.java945 private final Object mNotifier; field in CopyJob.DirectoryChildrenObserver
950 mNotifier = notifier; in DirectoryChildrenObserver()
955 synchronized (mNotifier) { in onChange()
956 mNotifier.notify(); in onChange()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DTileImageView.java758 private CancelListener mNotifier = new CancelListener() { field in TileImageView.TileDecoder
770 jc.setCancelListener(mNotifier); in run()
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java746 private NetworkNotificationManager mNotifier; field in ConnectivityService
1458 mNotifier = new NetworkNotificationManager(mContext, mTelephonyManager); in ConnectivityService()
1467 mLingerMonitor = new LingerMonitor(mContext, mNotifier, dailyLimit, rateLimit); in ConnectivityService()
3405 mNotifier.clearNotification(netId, NotificationType.SIGN_IN); in maybeHandleNetworkMonitorMessage()
3406 mNotifier.clearNotification(netId, NotificationType.NETWORK_SWITCH); in maybeHandleNetworkMonitorMessage()
3413 mNotifier.showNotification(netId, NotificationType.SIGN_IN, nai, null, in maybeHandleNetworkMonitorMessage()
3463 mNotifier.clearNotification(nai.network.getNetId(), in handleNetworkTested()
3465 mNotifier.clearNotification(nai.network.getNetId(), in handleNetworkTested()
3467 mNotifier.clearNotification(nai.network.getNetId(), in handleNetworkTested()
3469 mNotifier.clearNotification(nai.network.getNetId(), in handleNetworkTested()
[all …]
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java427 private final NetworkStackNotifier mNotifier; field in NetworkMonitor
576 mNotifier = serviceManager.getNotifier(); in NetworkMonitor()
1197 if (mNotifier != null) { in processMessage()
1198 mNotifier.notifyCaptivePortalValidationPending(network); in processMessage()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java227 private @Mock NetworkStackNotifier mNotifier; field in NetworkMonitorTest
484 when(mServiceManager.getNotifier()).thenReturn(mNotifier); in setUp()
1864 verify(mNotifier).notifyCaptivePortalValidationPending(networkCaptor.getValue());
2455 verify(mNotifier).notifyCaptivePortalValidationPending(networkCaptor.getValue());