Home
last modified time | relevance | path

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

12

/frameworks/base/tests/net/java/com/android/server/connectivity/
DLingerMonitorTest.java70 LingerMonitor mMonitor; field in LingerMonitorTest
86 mMonitor = new TestableLingerMonitor(mCtx, mNotifier, HIGH_DAILY_LIMIT, HIGH_RATE_LIMIT); in setUp()
95 assertTrue(mMonitor.isNotificationEnabled(nai1, nai2)); in testTransitions()
96 assertFalse(mMonitor.isNotificationEnabled(nai2, nai1)); in testTransitions()
106 mMonitor.noteLingerDefaultNetwork(from, to); in testNotificationOnLinger()
117 mMonitor.noteLingerDefaultNetwork(from, to); in testToastOnLinger()
128 mMonitor.noteLingerDefaultNetwork(from, to); in testNotificationClearedAfterDisconnect()
131 mMonitor.noteDisconnect(to); in testNotificationClearedAfterDisconnect()
142 mMonitor.noteLingerDefaultNetwork(from, to); in testNotificationClearedAfterSwitchingBack()
145 mMonitor.noteLingerDefaultNetwork(to, from); in testNotificationClearedAfterSwitchingBack()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceCallbackTest.java61 private WifiP2pMonitor mMonitor; field in SupplicantP2pIfaceCallbackTest
84 mMonitor = mock(WifiP2pMonitor.class); in setUp()
85 mDut = new SupplicantP2pIfaceCallbackSpy(mIface, mMonitor); in setUp()
114 .when(mMonitor).broadcastP2pDeviceFound( in testOnDeviceFound_success()
132 verify(mMonitor, times(2)).broadcastP2pDeviceFound( in testOnDeviceFound_success()
157 verify(mMonitor).broadcastP2pDeviceFound(eq(mIface), deviceCaptor.capture()); in testOnDeviceFoundWithSignBitInDeviceInfoBytesSuccess()
176 verify(mMonitor).broadcastP2pDeviceFound( in testOnDeviceFoundWithSignBitInDeviceInfoBytesSuccess()
198 verify(mMonitor, never()).broadcastP2pDeviceFound( in testOnDeviceFound_invalidArguments()
208 verify(mMonitor, never()).broadcastP2pDeviceFound( in testOnDeviceFound_invalidArguments()
218 verify(mMonitor, never()).broadcastP2pDeviceFound( in testOnDeviceFound_invalidArguments()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/
DTestHandler.java29 private final Object mMonitor = new Object(); field in TestHandler
39 synchronized (mMonitor) { in sendMessageAtTime()
48 synchronized (mMonitor) { in sendMessageAtTime()
51 mMonitor.notifyAll(); in sendMessageAtTime()
61 synchronized (mMonitor) { in assertTotalMessagesEnqueued()
70 synchronized (mMonitor) { in waitForMessagesToBeProcessed()
72 mMonitor.wait(); in waitForMessagesToBeProcessed()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DSupplicantP2pIfaceCallback.java45 private final WifiP2pMonitor mMonitor; field in SupplicantP2pIfaceCallback
49 mMonitor = monitor; in SupplicantP2pIfaceCallback()
136 mMonitor.broadcastP2pDeviceFound(mInterface, device); in onDeviceFound()
157 mMonitor.broadcastP2pDeviceLost(mInterface, device); in onDeviceLost()
166 mMonitor.broadcastP2pFindStopped(mInterface); in onFindStopped()
208 mMonitor.broadcastP2pGoNegotiationRequest(mInterface, config); in onGoNegotiationRequest()
222 mMonitor.broadcastP2pGoNegotiationSuccess(mInterface); in onGoNegotiationCompleted()
224 mMonitor.broadcastP2pGoNegotiationFailure(mInterface, result); in onGoNegotiationCompleted()
234 mMonitor.broadcastP2pGroupFormationSuccess(mInterface); in onGroupFormationSuccess()
246 mMonitor.broadcastP2pGroupFormationFailure(mInterface, failureReason); in onGroupFormationFailure()
[all …]
DSupplicantP2pIfaceHal.java115 private final WifiP2pMonitor mMonitor; field in SupplicantP2pIfaceHal
119 mMonitor = monitor; in SupplicantP2pIfaceHal()
265 if (mISupplicantP2pIface != null && mMonitor != null) { in setupIface()
266 mCallback = new SupplicantP2pIfaceCallback(ifaceName, mMonitor); in setupIface()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DTarBackupReader.java87 private IBackupManagerMonitor mMonitor; field in TarBackupReader
96 mMonitor = monitor; in TarBackupReader()
325 mMonitor = BackupManagerMonitorUtils.monitorEvent( in readAppManifestAndReturnSignatures()
326 mMonitor, in readAppManifestAndReturnSignatures()
341 mMonitor = BackupManagerMonitorUtils.monitorEvent( in readAppManifestAndReturnSignatures()
342 mMonitor, in readAppManifestAndReturnSignatures()
355 mMonitor = BackupManagerMonitorUtils.monitorEvent( in readAppManifestAndReturnSignatures()
356 mMonitor, in readAppManifestAndReturnSignatures()
365 mMonitor = BackupManagerMonitorUtils.monitorEvent( in readAppManifestAndReturnSignatures()
366 mMonitor, in readAppManifestAndReturnSignatures()
[all …]
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsSubscriptionsMonitorTest.java73 private NetworkStatsSubscriptionsMonitor mMonitor; field in NetworkStatsSubscriptionsMonitorTest
87 mMonitor = new NetworkStatsSubscriptionsMonitor(mContext, mTestLooper.getLooper(), in setUp()
95 .addOnSubscriptionsChangedListener(mExecutor, mMonitor); in testStartStop()
96 mMonitor.start(); in testStartStop()
97 verify(mSubscriptionManager).addOnSubscriptionsChangedListener(mExecutor, mMonitor); in testStartStop()
100 verify(mSubscriptionManager, never()).removeOnSubscriptionsChangedListener(mMonitor); in testStartStop()
101 mMonitor.stop(); in testStartStop()
102 verify(mSubscriptionManager).removeOnSubscriptionsChangedListener(mMonitor); in testStartStop()
135 mMonitor.onSubscriptionsChanged(); in addTestSub()
143 mMonitor.onSubscriptionsChanged(); in removeTestSub()
[all …]
/frameworks/base/services/robotests/backup/src/com/android/server/backup/restore/
DActiveRestoreSessionTest.java98 @Mock private IBackupManagerMonitor mMonitor; field in ActiveRestoreSessionTest
163 () -> restoreSession.getAvailableRestoreSets(mObserver, mMonitor)); in testGetAvailableRestoreSets_withoutPermission()
174 () -> restoreSession.getAvailableRestoreSets(null, mMonitor)); in testGetAvailableRestoreSets_forNullObserver()
183 int result = restoreSession.getAvailableRestoreSets(mObserver, mMonitor); in testGetAvailableRestoreSets_whenTransportNotRegistered()
196 int result = restoreSession.getAvailableRestoreSets(mObserver, mMonitor); in testGetAvailableRestoreSets()
214 int result = restoreSession.getAvailableRestoreSets(mObserver, mMonitor); in testGetAvailableRestoreSets_forEmptyRestoreSets()
229 int result = restoreSession.getAvailableRestoreSets(mObserver, mMonitor); in testGetAvailableRestoreSets_forNullRestoreSets()
249 int result = restoreSession.restoreAll(TOKEN_1, mObserver, mMonitor); in testRestoreAll()
271 int result = restoreSession.restoreAll(TOKEN_1, mObserver, mMonitor); in testRestoreAll_whenNoRestoreSets()
283 int result = restoreSession.restoreAll(TOKEN_1, mObserver, mMonitor); in testRestoreAll_whenSinglePackageSession()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DPerformFullTransportBackupTask.java140 @Nullable private IBackupManagerMonitor mMonitor; field in PerformFullTransportBackupTask
169 mMonitor = monitor; in PerformFullTransportBackupTask()
203 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in PerformFullTransportBackupTask()
218 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in PerformFullTransportBackupTask()
233 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in PerformFullTransportBackupTask()
245 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in PerformFullTransportBackupTask()
337 mMonitor = BackupManagerMonitorUtils in run()
338 .monitorEvent(mMonitor, monitoringEvent, null, in run()
350 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in run()
426 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in run()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/
DKeyValueBackupReporter.java68 @Nullable private IBackupManagerMonitor mMonitor; field in KeyValueBackupReporter
76 mMonitor = monitor; in KeyValueBackupReporter()
82 return mMonitor; in getMonitor()
211 mMonitor = in onAgentIllegalKey()
213 mMonitor, in onAgentIllegalKey()
257 mMonitor = in onEmptyData()
259 mMonitor, in onEmptyData()
295 mMonitor, in onPackageBackupNonIncrementalRequired()
338 mMonitor = in onAgentTimedOut()
340 mMonitor, in onAgentTimedOut()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DPerformUnifiedRestoreTask.java95 private IBackupManagerMonitor mMonitor; field in PerformUnifiedRestoreTask
186 mMonitor = monitor; in PerformUnifiedRestoreTask()
392 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in startRestore()
404 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in startRestore()
437 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in startRestore()
457 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in startRestore()
517 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in dispatchNextRestore()
543 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in dispatchNextRestore()
564 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in dispatchNextRestore()
617 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in restoreKeyValue()
[all …]
DFullRestoreEngineThread.java50 mEngine.mMonitor); in run()
DFullRestoreEngine.java82 final IBackupManagerMonitor mMonitor; field in FullRestoreEngine
145 mMonitor = monitor; in FullRestoreEngine()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DBatteryController.java121 private BroadcastReceiver mMonitor; field in BatteryController.ChargingTracker
146 if (mMonitor == null) { in setMonitorBatteryLocked()
147 mMonitor = new BroadcastReceiver() { in setMonitorBatteryLocked()
154 mContext.registerReceiver(mMonitor, filter); in setMonitorBatteryLocked()
157 if (mMonitor != null) { in setMonitorBatteryLocked()
158 mContext.unregisterReceiver(mMonitor); in setMonitorBatteryLocked()
159 mMonitor = null; in setMonitorBatteryLocked()
173 return mMonitor != null; in isMonitoring()
/frameworks/base/media/java/android/media/
DAudioPlaybackConfiguration.java504 final AudioPlaybackConfiguration mMonitor; // never null field in AudioPlaybackConfiguration.IPlayerShell
508 mMonitor = monitor; in IPlayerShell()
519 if (mMonitor != null) { in monitorDeath()
520 Log.w(TAG, "Could not link to client death for piid=" + mMonitor.mPlayerIId, e); in monitorDeath()
532 if (mMonitor != null) { in binderDied()
533 if (DEBUG) { Log.i(TAG, "IPlayerShell binderDied for piid=" + mMonitor.mPlayerIId);} in binderDied()
534 mMonitor.playerDied(); in binderDied()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
DKeyValueBackupReporterTest.java46 @Mock private IBackupManagerMonitor mMonitor; field in KeyValueBackupReporterTest
52 mReporter = new KeyValueBackupReporter(mBackupManagerService, mObserver, mMonitor); in setUp()
71 assertThat(monitor).isEqualTo(mMonitor); in testGetMonitor_returnsMonitor()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DServiceTest.java129 private boolean mMonitor; field in ServiceTest.TestConnection
135 mMonitor = !setReporter; in TestConnection()
139 mMonitor = v; in setMonitor()
155 if (mMonitor) { in onServiceConnected()
176 if (mMonitor) { in onServiceDisconnected()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DImageWallpaper.java93 private final Object mMonitor = new Object(); field in ImageWallpaper.GLEngine
177 synchronized (mMonitor) { in waitForBackgroundRendering()
181 mMonitor.wait(INTERVAL_WAIT_FOR_RENDERING); in waitForBackgroundRendering()
353 synchronized (mMonitor) { in notifyWaitingThread()
357 mMonitor.notify(); in notifyWaitingThread()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsSubscriptionsMonitor.java188 private final NetworkStatsSubscriptionsMonitor mMonitor; field in NetworkStatsSubscriptionsMonitor.RatTypeListener
196 mMonitor = monitor; in RatTypeListener()
221 mMonitor.mDelegate.onCollapsedRatTypeChanged(mSubscriberId, mLastCollapsedRatType); in onServiceStateChanged()
/frameworks/base/core/java/android/app/backup/
DRestoreSession.java398 final BackupManagerMonitor mMonitor; field in RestoreSession.BackupManagerMonitorWrapper
401 mMonitor = monitor; in BackupManagerMonitorWrapper()
406 mMonitor.onEvent(event); in onEvent()
DBackupManager.java1041 final BackupManagerMonitor mMonitor; field in BackupManager.BackupManagerMonitorWrapper
1044 mMonitor = monitor; in BackupManagerMonitorWrapper()
1049 mMonitor.onEvent(event); in onEvent()
/frameworks/av/services/audioflinger/
DRecordTracks.h42 const wp<OpRecordAudioMonitor> mMonitor;
DPlaybackTracks.h44 const wp<OpPlayAudioMonitor> mMonitor;
DTracks.cpp470 const wp<OpPlayAudioMonitor>& monitor) : mMonitor(monitor) in PlayAudioOpCallback()
480 sp<OpPlayAudioMonitor> monitor = mMonitor.promote(); in opChanged()
1989 const wp<OpRecordAudioMonitor>& monitor) : mMonitor(monitor) in RecordAudioOpCallback()
1998 sp<OpRecordAudioMonitor> monitor = mMonitor.promote(); in opChanged()
/frameworks/base/services/core/java/com/android/server/textservices/
DTextServicesManagerService.java83 private final TextServicesMonitor mMonitor; field in TextServicesManagerService
351 mMonitor = new TextServicesMonitor(); in TextServicesManagerService()
352 mMonitor.register(context, null, UserHandle.ALL, true); in TextServicesManagerService()

12