Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/timetests/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()
73 mMonitor.wait(); in waitForMessagesToBeProcessed()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/condition/
DConditionalCoreStartableTest.java85 Monitor mMonitor; field in ConditionalCoreStartableTest
106 new FakeConditionalCoreStartable(mMonitor, in testOnStartCallback()
110 when(mMonitor.addSubscription(any())).thenReturn(mSubscriptionToken); in testOnStartCallback()
115 verify(mMonitor).addSubscription(subscriptionCaptor.capture()); in testOnStartCallback()
126 verify(mMonitor).removeSubscription(mSubscriptionToken); in testOnStartCallback()
132 new FakeConditionalCoreStartable(mMonitor, in testOnStartCallbackWithNoConditions()
135 when(mMonitor.addSubscription(any())).thenReturn(mSubscriptionToken); in testOnStartCallbackWithNoConditions()
140 verify(mMonitor).addSubscription(subscriptionCaptor.capture()); in testOnStartCallbackWithNoConditions()
151 verify(mMonitor).removeSubscription(mSubscriptionToken); in testOnStartCallbackWithNoConditions()
162 new FakeConditionalCoreStartable(mMonitor, in testBootCompleted()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/condition/
DConditionalCoreStartable.java30 private final Monitor mMonitor; field in ConditionalCoreStartable
40 mMonitor = monitor; in ConditionalCoreStartable()
46 mStartToken = mMonitor.addSubscription( in start()
49 mMonitor.removeSubscription(mStartToken); in start()
61 mBootCompletedToken = mMonitor.addSubscription( in onBootCompleted()
64 mMonitor.removeSubscription(mBootCompletedToken); in onBootCompleted()
/frameworks/base/core/java/android/app/backup/
DBackupManagerMonitorWrapper.java38 private final BackupManagerMonitor mMonitor; field in BackupManagerMonitorWrapper
41 mMonitor = monitor; in BackupManagerMonitorWrapper()
46 if (mMonitor == null) { in onEvent()
50 mMonitor.onEvent(event); in onEvent()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DBackupManagerMonitorEventSender.java57 @Nullable private IBackupManagerMonitor mMonitor; field in BackupManagerMonitorEventSender
60 mMonitor = monitor; in BackupManagerMonitorEventSender()
67 mMonitor = monitor; in BackupManagerMonitorEventSender()
72 mMonitor = monitor; in setMonitor()
76 return mMonitor; in getMonitor()
115 if (mMonitor != null) { in monitorEvent()
116 mMonitor.onEvent(bundle); in monitorEvent()
123 mMonitor = null; in monitorEvent()
141 if (mMonitor == null) { in monitorAgentLoggingResults()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/restore/
DActiveRestoreSessionTest.java101 @Mock private IBackupManagerMonitor mMonitor; field in ActiveRestoreSessionTest
170 () -> restoreSession.getAvailableRestoreSets(mObserver, mMonitor)); in testGetAvailableRestoreSets_withoutPermission()
181 () -> restoreSession.getAvailableRestoreSets(null, mMonitor)); in testGetAvailableRestoreSets_forNullObserver()
190 int result = restoreSession.getAvailableRestoreSets(mObserver, mMonitor); in testGetAvailableRestoreSets_whenTransportNotRegistered()
203 int result = restoreSession.getAvailableRestoreSets(mObserver, mMonitor); in testGetAvailableRestoreSets()
222 int result = restoreSession.getAvailableRestoreSets(mObserver, mMonitor); in testGetAvailableRestoreSets_forEmptyRestoreSets()
237 int result = restoreSession.getAvailableRestoreSets(mObserver, mMonitor); in testGetAvailableRestoreSets_forNullRestoreSets()
257 int result = restoreSession.restoreAll(TOKEN_1, mObserver, mMonitor); in testRestoreAll()
279 int result = restoreSession.restoreAll(TOKEN_1, mObserver, mMonitor); in testRestoreAll_whenNoRestoreSets()
291 int result = restoreSession.restoreAll(TOKEN_1, mObserver, mMonitor); in testRestoreAll_whenSinglePackageSession()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/backup/
DBackupManagerMonitorWrapperTest.java40 private BackupManagerMonitor mMonitor; field in BackupManagerMonitorWrapperTest
50 mMonitorWrapper = new BackupManagerMonitorWrapper(mMonitor); in testOnEvent_propagatesToMonitor()
55 verify(mMonitor, times(/* wantedNumberOfInvocations */ 1)).onEvent(eq(eventBundle)); in testOnEvent_propagatesToMonitor()
64 verify(mMonitor, never()).onEvent(any()); in testOnEvent_nullMonitor_eventIsIgnored()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/complication/
DDreamHomeControlsComplicationTest.java106 private Monitor mMonitor; field in DreamHomeControlsComplicationTest
120 mMonitor = SelfExecutingMonitor.createInstance(); in setup()
135 mDreamOverlayStateController, mControlsComponent, mMonitor, false); in complicationAvailability_serviceNotAvailable_noFavorites_doNotAddComplication()
148 mDreamOverlayStateController, mControlsComponent, mMonitor, false); in complicationAvailability_serviceAvailable_noFavorites_doNotAddComplication()
161 mDreamOverlayStateController, mControlsComponent, mMonitor, false); in complicationAvailability_serviceAvailable_noFavorites_panel_addComplication()
174 mDreamOverlayStateController, mControlsComponent, mMonitor, false); in complicationAvailability_serviceNotAvailable_haveFavorites_doNotAddComplication()
187 mDreamOverlayStateController, mControlsComponent, mMonitor, false); in complicationAvailability_serviceAvailable_haveFavorites_addComplication()
200 mDreamOverlayStateController, mControlsComponent, mMonitor, false); in complicationAvailability_checkAvailabilityWhenDreamOverlayBecomesActive()
DComplicationTypesUpdaterTest.java69 private Monitor mMonitor; field in ComplicationTypesUpdaterTest
77 mMonitor = SelfExecutingMonitor.createInstance(); in setUp()
79 mSecureSettings, mDreamOverlayStateController, mMonitor); in setUp()
DDreamClockTimeComplicationTest.java82 private Monitor mMonitor; field in DreamClockTimeComplicationTest
89 mMonitor = SelfExecutingMonitor.createInstance(); in setup()
101 mMonitor); in testComplicationAdded()
DSmartSpaceComplicationTest.java73 private Monitor mMonitor; field in SmartSpaceComplicationTest
80 mMonitor = SelfExecutingMonitor.createInstance(); in setup()
214 mMonitor, in getRegistrant()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
DKeyValueBackupReporterTest.java47 @Mock private IBackupManagerMonitor mMonitor; field in KeyValueBackupReporterTest
54 mBackupManagerMonitorEventSender = new BackupManagerMonitorEventSender(mMonitor); in setUp()
75 assertThat(monitor).isEqualTo(mMonitor); in testGetMonitor_returnsMonitor()
/frameworks/base/services/tests/dreamservicetests/src/com/android/server/dreams/
DDreamOverlayServiceTest.java88 private final Monitor mMonitor; field in DreamOverlayServiceTest.TestDreamOverlayService
92 mMonitor = monitor; in TestDreamOverlayService()
97 mMonitor.onStartDream(); in onStartDream()
102 mMonitor.onEndDream(); in onEndDream()
/frameworks/base/media/java/android/media/
DAudioPlaybackConfiguration.java871 final AudioPlaybackConfiguration mMonitor; // never null field in AudioPlaybackConfiguration.IPlayerShell
875 mMonitor = monitor; in IPlayerShell()
886 if (mMonitor != null) { in monitorDeath()
887 Log.w(TAG, "Could not link to client death for piid=" + mMonitor.mPlayerIId, e); in monitorDeath()
899 if (mMonitor != null) { in binderDied()
900 if (DEBUG) { Log.i(TAG, "IPlayerShell binderDied for piid=" + mMonitor.mPlayerIId);} in binderDied()
901 mMonitor.playerDied(); in binderDied()
/frameworks/av/services/audiopolicy/service/
DAudioRecordClient.cpp162 const wp<OpRecordAudioMonitor>& monitor) : mMonitor(monitor) in RecordAudioOpCallback()
167 sp<OpRecordAudioMonitor> monitor = mMonitor.promote(); in opChanged()
DAudioRecordClient.h62 const wp<OpRecordAudioMonitor> mMonitor;
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DFullRestoreEngineThread.java50 mEngine.mMonitor); in run()
DFullRestoreEngine.java94 final IBackupManagerMonitor mMonitor; field in FullRestoreEngine
161 mMonitor = monitor; in FullRestoreEngine()
191 mMonitor = null; in FullRestoreEngine()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ambient/touch/
DTouchMonitorTest.java111 private final TouchMonitor mMonitor; field in TouchMonitorTest.Environment
153 mMonitor = new TouchMonitor(mExecutor, mBackgroundExecutor, mLifecycleRegistry, in Environment()
157 mMonitor.init(); in Environment()
204 mMonitor.destroy(); in destroyMonitor()
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/embedding/
DOverlayPresentationTest.java117 private SplitController.ActivityStartMonitor mMonitor; field in OverlayPresentationTest
147 mMonitor = mSplitController.getActivityStartMonitor(); in setUp()
152 spyOn(mMonitor); in setUp()
185 mMonitor.onStartActivity(mActivity, mIntent, optionsBundle); in testStartActivity_overlayFeatureDisabled_notInvokeCreateOverlayContainer()
/frameworks/base/services/core/java/com/android/server/textservices/
DTextServicesManagerService.java84 private final TextServicesMonitor mMonitor; field in TextServicesManagerService
331 mMonitor = new TextServicesMonitor(); in TextServicesManagerService()
332 mMonitor.register(context, null, UserHandle.ALL, true); in TextServicesManagerService()
/frameworks/base/packages/LocalTransport/src/com/android/localtransport/
DLocalTransport.java110 private final BackupManagerMonitor mMonitor = new TestBackupManagerMonitor(); field in LocalTransport
907 return mMonitor; in getBackupManagerMonitor()
/frameworks/av/services/audioflinger/
DPlaybackTracks.h58 const wp<OpPlayAudioMonitor> mMonitor;
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobSchedulerService.java4269 private BroadcastReceiver mMonitor;
4300 if (mMonitor == null) {
4301 mMonitor = new BroadcastReceiver() {
4309 getTestableContext().registerReceiver(mMonitor, filter);
4311 } else if (mMonitor != null) {
4312 getTestableContext().unregisterReceiver(mMonitor);
4313 mMonitor = null;
4326 return mMonitor != null;
/frameworks/base/core/java/android/view/
DSurfaceControl.java4724 Object mMonitor; field in SurfaceControl.LockDebuggingTransaction
4727 mMonitor = o; in LockDebuggingTransaction()
4733 if (!Thread.holdsLock(mMonitor)) { in checkPreconditions()

12