/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | LingerMonitorTest.java | 70 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/ |
D | SupplicantP2pIfaceCallbackTest.java | 61 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/ |
D | TestHandler.java | 29 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/ |
D | SupplicantP2pIfaceCallback.java | 45 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 …]
|
D | SupplicantP2pIfaceHal.java | 115 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/ |
D | TarBackupReader.java | 87 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/ |
D | NetworkStatsSubscriptionsMonitorTest.java | 73 private NetworkStatsSubscriptionsMonitor mMonitor; field in NetworkStatsSubscriptionsMonitorTest 90 mMonitor = new NetworkStatsSubscriptionsMonitor(mContext, mExecutor, mDelegate); in setUp() 97 .addOnSubscriptionsChangedListener(mExecutor, mMonitor); in testStartStop() 98 mMonitor.start(); in testStartStop() 99 verify(mSubscriptionManager).addOnSubscriptionsChangedListener(mExecutor, mMonitor); in testStartStop() 102 verify(mSubscriptionManager, never()).removeOnSubscriptionsChangedListener(mMonitor); in testStartStop() 103 mMonitor.stop(); in testStartStop() 104 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/ |
D | ActiveRestoreSessionTest.java | 98 @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/ |
D | PerformFullTransportBackupTask.java | 141 @Nullable private IBackupManagerMonitor mMonitor; field in PerformFullTransportBackupTask 170 mMonitor = monitor; in PerformFullTransportBackupTask() 204 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in PerformFullTransportBackupTask() 219 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in PerformFullTransportBackupTask() 234 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in PerformFullTransportBackupTask() 246 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in PerformFullTransportBackupTask() 341 mMonitor = BackupManagerMonitorUtils in run() 342 .monitorEvent(mMonitor, monitoringEvent, null, in run() 354 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in run() 430 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in run() [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/ |
D | KeyValueBackupReporter.java | 68 @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/ |
D | PerformUnifiedRestoreTask.java | 98 private IBackupManagerMonitor mMonitor; field in PerformUnifiedRestoreTask 199 mMonitor = monitor; in PerformUnifiedRestoreTask() 407 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in startRestore() 419 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in startRestore() 452 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in startRestore() 472 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in startRestore() 532 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in dispatchNextRestore() 558 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in dispatchNextRestore() 579 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in dispatchNextRestore() 632 mMonitor = BackupManagerMonitorUtils.monitorEvent(mMonitor, in restoreKeyValue() [all …]
|
D | FullRestoreEngineThread.java | 50 mEngine.mMonitor); in run()
|
D | FullRestoreEngine.java | 82 final IBackupManagerMonitor mMonitor; field in FullRestoreEngine 141 mMonitor = monitor; in FullRestoreEngine()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/ |
D | BatteryController.java | 133 private BroadcastReceiver mMonitor; field in BatteryController.ChargingTracker 158 if (mMonitor == null) { in setMonitorBatteryLocked() 159 mMonitor = new BroadcastReceiver() { in setMonitorBatteryLocked() 166 mContext.registerReceiver(mMonitor, filter); in setMonitorBatteryLocked() 169 if (mMonitor != null) { in setMonitorBatteryLocked() 170 mContext.unregisterReceiver(mMonitor); in setMonitorBatteryLocked() 171 mMonitor = null; in setMonitorBatteryLocked() 185 return mMonitor != null; in isMonitoring()
|
/frameworks/base/media/java/android/media/ |
D | AudioPlaybackConfiguration.java | 504 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/ |
D | KeyValueBackupReporterTest.java | 46 @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/services/core/java/com/android/server/net/ |
D | NetworkStatsSubscriptionsMonitor.java | 187 private final NetworkStatsSubscriptionsMonitor mMonitor; field in NetworkStatsSubscriptionsMonitor.RatTypeListener 195 mMonitor = monitor; in RatTypeListener() 220 mMonitor.mDelegate.onCollapsedRatTypeChanged(mSubscriberId, mLastCollapsedRatType); in onServiceStateChanged()
|
/frameworks/base/core/java/android/app/backup/ |
D | RestoreSession.java | 398 final BackupManagerMonitor mMonitor; field in RestoreSession.BackupManagerMonitorWrapper 401 mMonitor = monitor; in BackupManagerMonitorWrapper() 406 mMonitor.onEvent(event); in onEvent()
|
D | BackupManager.java | 1066 final BackupManagerMonitor mMonitor; field in BackupManager.BackupManagerMonitorWrapper 1069 mMonitor = monitor; in BackupManagerMonitorWrapper() 1074 mMonitor.onEvent(event); in onEvent()
|
/frameworks/av/services/audioflinger/ |
D | RecordTracks.h | 43 const wp<OpRecordAudioMonitor> mMonitor;
|
D | PlaybackTracks.h | 44 const wp<OpPlayAudioMonitor> mMonitor;
|
D | Tracks.cpp | 467 const wp<OpPlayAudioMonitor>& monitor) : mMonitor(monitor) in PlayAudioOpCallback() 477 sp<OpPlayAudioMonitor> monitor = mMonitor.promote(); in opChanged() 2023 const wp<OpRecordAudioMonitor>& monitor) : mMonitor(monitor) in RecordAudioOpCallback() 2032 sp<OpRecordAudioMonitor> monitor = mMonitor.promote(); in opChanged()
|
/frameworks/base/services/core/java/com/android/server/textservices/ |
D | TextServicesManagerService.java | 82 private final TextServicesMonitor mMonitor; field in TextServicesManagerService 329 mMonitor = new TextServicesMonitor(); in TextServicesManagerService() 330 mMonitor.register(context, null, UserHandle.ALL, true); in TextServicesManagerService()
|
/frameworks/base/core/java/android/view/ |
D | SurfaceControl.java | 3128 Object mMonitor; field in SurfaceControl.LockDebuggingTransaction 3131 mMonitor = o; in LockDebuggingTransaction() 3137 if (!Thread.holdsLock(mMonitor)) { in checkPreconditions()
|
/frameworks/base/services/core/java/com/android/server/wallpaper/ |
D | WallpaperManagerService.java | 796 private final MyPackageMonitor mMonitor; field in WallpaperManagerService 1652 mMonitor = new MyPackageMonitor(); in WallpaperManagerService() 1666 mMonitor.register(mContext, null, UserHandle.ALL, true); in initialize()
|