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.java86 @Mock NetworkNotificationManager mNotifier; field in LingerMonitorTest
99 mMonitor = new TestableLingerMonitor(mCtx, mNotifier, HIGH_DAILY_LIMIT, HIGH_RATE_LIMIT); in setUp()
150 verify(mNotifier, times(1)).clearNotification(100); in testNotificationClearedAfterDisconnect()
164 verify(mNotifier, times(1)).clearNotification(100); in testNotificationClearedAfterSwitchingBack()
178 verify(mNotifier, times(1)).clearNotification(100); in testUniqueToast()
180 reset(mNotifier); in testUniqueToast()
197 verify(mNotifier, times(1)).clearNotification(100); in testMultipleNotifications()
199 reset(mNotifier); in testMultipleNotifications()
206 mMonitor = new TestableLingerMonitor(mCtx, mNotifier, HIGH_DAILY_LIMIT, LOW_RATE_LIMIT); in testRateLimiting()
217 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/Connectivity/service/src/com/android/server/connectivity/
DLingerMonitor.java77 private final NetworkNotificationManager mNotifier; field in LingerMonitor
95 mNotifier = notifier; in LingerMonitor()
158 mNotifier.showNotification(fromNai.network.getNetId(), NotificationType.NETWORK_SWITCH, in showNotification()
176 mNotifier.clearNotification(fromNetId); in maybeStopNotifying()
199 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/tbs/
DTbsGatt.java542 protected BluetoothGattCharacteristicNotifier mNotifier; field in TbsGatt.GattCharacteristic
547 mNotifier = new BluetoothGattCharacteristicNotifier(); in GattCharacteristic()
550 mNotifier = null; in GattCharacteristic()
555 return mNotifier.getSubscriptionConfiguration(device, uuid); in getSubscriptionConfiguration()
560 return mNotifier.setSubscriptionConfiguration(device, uuid, configuration); in setSubscriptionConfiguration()
564 return mNotifier != null; in isNotifiable()
571 mNotifier.notifyAll(this); in setValue()
581 mNotifier.notifyAll(this); in setValue()
591 mNotifier.notifyAll(this); in setValue()
603 mNotifier.notifyWithValue(device, this, value); in notifyWithValue()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/
DBluetoothOppTransferHistory.java85 private BluetoothOppNotification mNotifier; field in BluetoothOppTransferHistory
175 mNotifier = new BluetoothOppNotification(this); in onCreate()
370 mNotifier.updateNotification(); in updateNotificationWhenBtDisabled()
DBluetoothOppService.java131 private BluetoothOppNotification mNotifier; field in BluetoothOppService
272 mNotifier = new BluetoothOppNotification(this); in start()
273 mNotifier.cancelOppNotifications(); in start()
618 if (mNotifier != null) { in stopInternal()
619 mNotifier.cancelOppNotifications(); in stopInternal()
823 mNotifier.updateNotification(); in run()
1016 mNotifier.mNotificationMgr.cancel(info.mId); in updateShare()
1030 mNotifier.mNotificationMgr.cancel(info.mId); in updateShare()
/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/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()
751 mNotifier.notifyDownloadSpeed(mId, mSpeed); in updateProgress()
/packages/modules/NetworkStack/src/com/android/server/
DNetworkStackService.java204 private final NetworkStackNotifier mNotifier; field in NetworkStackService.NetworkStackConnector
303 mNotifier = mDeps.makeNotifier(context, notifierThread.getLooper()); in NetworkStackConnector()
305 mNotifier = null; in NetworkStackConnector()
404 return mNotifier; in getNotifier()
/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.java996 private final NetworkNotificationManager mNotifier; field in ConnectivityService
1988 mNotifier = new NetworkNotificationManager(mContext, mTelephonyManager);
1997 mLingerMonitor = new LingerMonitor(mContext, mNotifier, dailyLimit, rateLimit);
4810 mNotifier.clearNotification(netId, NotificationType.SIGN_IN);
4811 mNotifier.clearNotification(netId, NotificationType.NETWORK_SWITCH);
4818 mNotifier.showNotification(netId, NotificationType.SIGN_IN, nai, null,
4897 mNotifier.clearNotification(nai.network.getNetId(),
4899 mNotifier.clearNotification(nai.network.getNetId(),
4901 mNotifier.clearNotification(nai.network.getNetId(),
4903 mNotifier.clearNotification(nai.network.getNetId(),
[all …]
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java476 private final NetworkStackNotifier mNotifier; field in NetworkMonitor
649 mNotifier = serviceManager.getNotifier(); in NetworkMonitor()
1429 if (mNotifier != null) { in processMessage()
1430 mNotifier.notifyCaptivePortalValidationPending(network); in processMessage()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java260 private @Mock NetworkStackNotifier mNotifier; field in NetworkMonitorTest
619 doReturn(mNotifier).when(mServiceManager).getNotifier(); in setUp()
2282 verify(mNotifier).notifyCaptivePortalValidationPending(networkCaptor.getValue()); in setupAndLaunchCaptivePortalApp()
3187 verify(mNotifier).notifyCaptivePortalValidationPending(networkCaptor.getValue()); in testDismissPortalInValidatedNetworkEnabled()