Home
last modified time | relevance | path

Searched refs:mMonitor (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/tests/net/java/com/android/server/connectivity/
DLingerMonitorTest.java57 LingerMonitor mMonitor; field in LingerMonitorTest
71 mMonitor = new TestableLingerMonitor(mCtx, mNotifier, HIGH_DAILY_LIMIT, HIGH_RATE_LIMIT); in setUp()
80 assertTrue(mMonitor.isNotificationEnabled(nai1, nai2)); in testTransitions()
81 assertFalse(mMonitor.isNotificationEnabled(nai2, nai1)); in testTransitions()
91 mMonitor.noteLingerDefaultNetwork(from, to); in testNotificationOnLinger()
102 mMonitor.noteLingerDefaultNetwork(from, to); in testToastOnLinger()
113 mMonitor.noteLingerDefaultNetwork(from, to); in testNotificationClearedAfterDisconnect()
116 mMonitor.noteDisconnect(to); in testNotificationClearedAfterDisconnect()
127 mMonitor.noteLingerDefaultNetwork(from, to); in testNotificationClearedAfterSwitchingBack()
130 mMonitor.noteLingerDefaultNetwork(to, from); in testNotificationClearedAfterSwitchingBack()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceCallbackTest.java56 private WifiP2pMonitor mMonitor; field in SupplicantP2pIfaceCallbackTest
77 mMonitor = mock(WifiP2pMonitor.class); in setUp()
78 mDut = new SupplicantP2pIfaceCallbackSpy(mIface, mMonitor); in setUp()
107 .when(mMonitor).broadcastP2pDeviceFound( in testOnDeviceFound_success()
125 verify(mMonitor, times(2)).broadcastP2pDeviceFound( in testOnDeviceFound_success()
147 verify(mMonitor, never()).broadcastP2pDeviceFound( in testOnDeviceFound_invalidArguments()
157 verify(mMonitor, never()).broadcastP2pDeviceFound( in testOnDeviceFound_invalidArguments()
167 verify(mMonitor, never()).broadcastP2pDeviceFound( in testOnDeviceFound_invalidArguments()
177 verify(mMonitor, never()).broadcastP2pDeviceFound( in testOnDeviceFound_invalidArguments()
187 verify(mMonitor, never()).broadcastP2pDeviceFound( in testOnDeviceFound_invalidArguments()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DSupplicantP2pIfaceCallback.java47 private final WifiP2pMonitor mMonitor; field in SupplicantP2pIfaceCallback
51 mMonitor = monitor; in SupplicantP2pIfaceCallback()
134 mMonitor.broadcastP2pDeviceFound(mInterface, device); in onDeviceFound()
156 mMonitor.broadcastP2pDeviceLost(mInterface, device); in onDeviceLost()
165 mMonitor.broadcastP2pFindStopped(mInterface); in onFindStopped()
207 mMonitor.broadcastP2pGoNegotiationRequest(mInterface, config); in onGoNegotiationRequest()
221 mMonitor.broadcastP2pGoNegotiationSuccess(mInterface); in onGoNegotiationCompleted()
223 mMonitor.broadcastP2pGoNegotiationFailure(mInterface, result); in onGoNegotiationCompleted()
233 mMonitor.broadcastP2pGroupFormationSuccess(mInterface); in onGroupFormationSuccess()
245 mMonitor.broadcastP2pGroupFormationFailure(mInterface, failureReason); in onGroupFormationFailure()
[all …]
DSupplicantP2pIfaceHal.java113 private final WifiP2pMonitor mMonitor; field in SupplicantP2pIfaceHal
117 mMonitor = monitor; in SupplicantP2pIfaceHal()
284 if (mISupplicantP2pIface != null && mMonitor != null) { in initSupplicantP2pIface()
288 mCallback = new SupplicantP2pIfaceCallback("p2p0", mMonitor); in initSupplicantP2pIface()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DBatteryController.java135 private BroadcastReceiver mMonitor; field in BatteryController.ChargingTracker
160 if (mMonitor == null) { in setMonitorBatteryLocked()
161 mMonitor = new BroadcastReceiver() { in setMonitorBatteryLocked()
168 mContext.registerReceiver(mMonitor, filter); in setMonitorBatteryLocked()
171 if (mMonitor != null) { in setMonitorBatteryLocked()
172 mContext.unregisterReceiver(mMonitor); in setMonitorBatteryLocked()
173 mMonitor = null; in setMonitorBatteryLocked()
187 return mMonitor != null; in isMonitoring()
/frameworks/base/media/java/android/media/
DAudioPlaybackConfiguration.java481 final AudioPlaybackConfiguration mMonitor; // never null field in AudioPlaybackConfiguration.IPlayerShell
485 mMonitor = monitor; in IPlayerShell()
493 if (mMonitor != null) { in monitorDeath()
494 Log.w(TAG, "Could not link to client death for piid=" + mMonitor.mPlayerIId, e); in monitorDeath()
506 if (mMonitor != null) { in binderDied()
507 if (DEBUG) { Log.i(TAG, "IPlayerShell binderDied for piid=" + mMonitor.mPlayerIId);} in binderDied()
508 mMonitor.playerDied(); in binderDied()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DServiceTest.java130 private boolean mMonitor; field in ServiceTest.TestConnection
136 mMonitor = !setReporter; in TestConnection()
140 mMonitor = v; in setMonitor()
156 if (mMonitor) { in onServiceConnected()
177 if (mMonitor) { in onServiceDisconnected()
/frameworks/base/core/java/android/app/backup/
DRestoreSession.java338 final BackupManagerMonitor mMonitor; field in RestoreSession.BackupManagerMonitorWrapper
341 mMonitor = monitor; in BackupManagerMonitorWrapper()
346 mMonitor.onEvent(event); in onEvent()
DBackupManager.java743 final BackupManagerMonitor mMonitor; field in BackupManager.BackupManagerMonitorWrapper
746 mMonitor = monitor; in BackupManagerMonitorWrapper()
751 mMonitor.onEvent(event); in onEvent()
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupManagerService.java2705 IBackupManagerMonitor mMonitor; field in BackupManagerService.PerformBackupTask
2736 mMonitor = monitor; in PerformBackupTask()
2764 mObserver, mMonitor, mUserInitiated); in PerformBackupTask()
3393 mMonitor = monitorEvent(mMonitor, in operationComplete()
3470 mMonitor = monitorEvent(mMonitor, in operationComplete()
3569 mMonitor = monitorEvent(mMonitor, in handleCancel()
4655 IBackupManagerMonitor mMonitor; field in BackupManagerService.PerformFullTransportBackupTask
4676 mMonitor = monitor; in PerformFullTransportBackupTask()
4704 mMonitor = monitorEvent(mMonitor, in PerformFullTransportBackupTask()
4719 mMonitor = monitorEvent(mMonitor, in PerformFullTransportBackupTask()
[all …]
/frameworks/base/services/core/java/com/android/server/
DTextServicesManagerService.java80 private final TextServicesMonitor mMonitor; field in TextServicesManagerService
167 mMonitor = new TextServicesMonitor(); in TextServicesManagerService()
168 mMonitor.register(context, null, true); in TextServicesManagerService()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java483 final MyPackageMonitor mMonitor; field in WallpaperManagerService
942 mMonitor = new MyPackageMonitor(); in WallpaperManagerService()
943 mMonitor.register(context, null, UserHandle.ALL, true); in WallpaperManagerService()