Home
last modified time | relevance | path

Searched refs:mNotifier (Results 1 – 18 of 18) 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/apps/Car/systemlibs/car-qc-lib/src/com/android/car/qc/provider/
DBaseLocalQCProvider.java39 private Notifier mNotifier; field in BaseLocalQCProvider
51 mNotifier = notifier; in setNotifier()
93 if (mNotifier != null) { in notifyChange()
94 mNotifier.notifyUpdate(); in notifyChange()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/
DNetworkStackNotifierTest.kt102 private lateinit var mNotifier: NetworkStackNotifier variable in com.android.networkstack.NetworkStackNotifierTest
176 mNotifier = NetworkStackNotifier(mContext, mLooper.looper, mDependencies) in setUp()
177 mHandler = mNotifier.handler in setUp()
230 mNotifier.notifyCaptivePortalValidationPending(TEST_NETWORK) in testConnectedNotification_NoSsid()
244 mNotifier.notifyCaptivePortalValidationPending(TEST_NETWORK) in testConnectedNotification_WithSsid()
258 mNotifier.notifyCaptivePortalValidationPending(TEST_NETWORK) in testConnectedVenueInfoNotification()
278 mNotifier.notifyCaptivePortalValidationPending(TEST_NETWORK) in testConnectedVenueInfoNotification_VenueInfoDisabled()
359 mNotifier.notifyCaptivePortalValidationPending(TEST_NETWORK) in testConnectedVenueInfoWithFriendlyNameNotification()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/tbs/
DTbsGatt.java373 protected BluetoothGattCharacteristicNotifier mNotifier; field in TbsGatt.GattCharacteristic
378 mNotifier = new BluetoothGattCharacteristicNotifier(); in GattCharacteristic()
381 mNotifier = null; in GattCharacteristic()
386 return mNotifier.getSubscriptionConfiguration(device); in getSubscriptionConfiguration()
390 return mNotifier.setSubscriptionConfiguration(device, configuration); in setSubscriptionConfiguration()
394 return mNotifier != null; in isNotifiable()
401 mNotifier.notifyAll(this); in setValue()
411 mNotifier.notifyAll(this); in setValue()
421 mNotifier.notifyAll(this); in setValue()
434 mNotifier.notifyAll(this); in clearValue()
[all …]
/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/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/
DBluetoothOppService.java131 private BluetoothOppNotification mNotifier; field in BluetoothOppService
264 mNotifier = new BluetoothOppNotification(this); in start()
265 mNotifier.mNotificationMgr.cancelAll(); in start()
266 mNotifier.updateNotification(); in start()
403 mNotifier.cancelNotifications();
749 mNotifier.updateNotification(); in run()
917 mNotifier.mNotificationMgr.cancel(info.mId); in updateShare()
931 mNotifier.mNotificationMgr.cancel(info.mId); in updateShare()
DBluetoothOppTransferHistory.java84 private BluetoothOppNotification mNotifier; field in BluetoothOppTransferHistory
147 mNotifier = new BluetoothOppNotification(this); in onCreate()
342 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.java197 private final NetworkStackNotifier mNotifier; field in NetworkStackService.NetworkStackConnector
297 mNotifier = mDeps.makeNotifier(context, notifierThread.getLooper()); in NetworkStackConnector()
299 mNotifier = null; in NetworkStackConnector()
404 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.java805 private NetworkNotificationManager mNotifier; field in ConnectivityService
1592 mNotifier = new NetworkNotificationManager(mContext, mTelephonyManager);
1601 mLingerMonitor = new LingerMonitor(mContext, mNotifier, dailyLimit, rateLimit);
3833 mNotifier.clearNotification(netId, NotificationType.SIGN_IN);
3834 mNotifier.clearNotification(netId, NotificationType.NETWORK_SWITCH);
3841 mNotifier.showNotification(netId, NotificationType.SIGN_IN, nai, null,
3896 mNotifier.clearNotification(nai.network.getNetId(),
3898 mNotifier.clearNotification(nai.network.getNetId(),
3900 mNotifier.clearNotification(nai.network.getNetId(),
3902 mNotifier.clearNotification(nai.network.getNetId(),
[all …]
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java438 private final NetworkStackNotifier mNotifier; field in NetworkMonitor
600 mNotifier = serviceManager.getNotifier(); in NetworkMonitor()
1304 if (mNotifier != null) { in processMessage()
1305 mNotifier.notifyCaptivePortalValidationPending(network); in processMessage()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java237 private @Mock NetworkStackNotifier mNotifier; field in NetworkMonitorTest
497 when(mServiceManager.getNotifier()).thenReturn(mNotifier); in setUp()
2024 verify(mNotifier).notifyCaptivePortalValidationPending(networkCaptor.getValue()); in setupAndLaunchCaptivePortalApp()
2645 verify(mNotifier).notifyCaptivePortalValidationPending(networkCaptor.getValue()); in testDismissPortalInValidatedNetworkEnabled()