/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/ |
D | ActionTest.java | 42 private StubChatActionMonitor mMonitor; field in ActionTest 53 mMonitor = new StubChatActionMonitor(ActionMonitor.STATE_CREATED, mActionKey, in setUp() 56 mTransitions = mMonitor.getTransitions(); in setUp() 60 assertEquals(to, mMonitor.getState()); in verifyState() 74 mMonitor.setState(ActionMonitor.STATE_CREATED); in testActionStartTransitionsCorrectly() 76 ActionMonitor.registerActionMonitor(mAction.actionKey, mMonitor); in testActionStartTransitionsCorrectly() 78 assertTrue(ActionMonitor.sActionMonitors.containsValue(mMonitor)); in testActionStartTransitionsCorrectly() 79 assertEquals(ActionMonitor.sActionMonitors.get(mAction.actionKey), mMonitor); in testActionStartTransitionsCorrectly() local 83 mMonitor.getState()); in testActionStartTransitionsCorrectly() 86 ActionMonitor.unregisterActionMonitor(mAction.actionKey, mMonitor); in testActionStartTransitionsCorrectly() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | LingerMonitorTest.java | 80 LingerMonitor mMonitor; field in LingerMonitorTest 99 mMonitor = new TestableLingerMonitor(mCtx, mNotifier, HIGH_DAILY_LIMIT, HIGH_RATE_LIMIT); in setUp() 113 assertTrue(mMonitor.isNotificationEnabled(nai1, nai2)); in testTransitions() 114 assertFalse(mMonitor.isNotificationEnabled(nai2, nai1)); in testTransitions() 124 mMonitor.noteLingerDefaultNetwork(from, to); in testNotificationOnLinger() 135 mMonitor.noteLingerDefaultNetwork(from, to); in testToastOnLinger() 146 mMonitor.noteLingerDefaultNetwork(from, to); in testNotificationClearedAfterDisconnect() 149 mMonitor.noteDisconnect(to); in testNotificationClearedAfterDisconnect() 160 mMonitor.noteLingerDefaultNetwork(from, to); in testNotificationClearedAfterSwitchingBack() 163 mMonitor.noteLingerDefaultNetwork(to, from); in testNotificationClearedAfterSwitchingBack() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | SupplicantP2pIfaceCallbackHidlImplTest.java | 67 private WifiP2pMonitor mMonitor; field in SupplicantP2pIfaceCallbackHidlImplTest 93 mMonitor = mock(WifiP2pMonitor.class); in setUp() 94 mDut = new SupplicantP2pIfaceCallbackImplSpy(mP2pIfaceHal, mIface, mMonitor); in setUp() 122 }).when(mMonitor).broadcastP2pDeviceFound( in testOnDeviceFound_success() 140 verify(mMonitor, times(2)).broadcastP2pDeviceFound( in testOnDeviceFound_success() 165 verify(mMonitor).broadcastP2pDeviceFound(eq(mIface), deviceCaptor.capture()); in testOnDeviceFoundWithSignBitInDeviceInfoBytesSuccess() 184 verify(mMonitor).broadcastP2pDeviceFound( in testOnDeviceFoundWithSignBitInDeviceInfoBytesSuccess() 206 verify(mMonitor, never()).broadcastP2pDeviceFound( in testOnDeviceFound_invalidArguments() 216 verify(mMonitor, never()).broadcastP2pDeviceFound( in testOnDeviceFound_invalidArguments() 226 verify(mMonitor, never()).broadcastP2pDeviceFound( in testOnDeviceFound_invalidArguments() [all …]
|
D | SupplicantP2pIfaceCallbackAidlImplTest.java | 82 private WifiP2pMonitor mMonitor; field in SupplicantP2pIfaceCallbackAidlImplTest 114 mMonitor = mock(WifiP2pMonitor.class); in setUp() 119 mDut = new SupplicantP2pIfaceCallbackImplSpy(mIface, mMonitor, serviceVersion); in initializeDut() 147 }).when(mMonitor).broadcastP2pDeviceFound( in testOnDeviceFound_success() 165 verify(mMonitor, times(2)).broadcastP2pDeviceFound( in testOnDeviceFound_success() 229 }).when(mMonitor).broadcastP2pDeviceFound( in testOnDeviceFoundWithParams_success() 238 verify(mMonitor, times(2)).broadcastP2pDeviceFound( in testOnDeviceFoundWithParams_success() 263 verify(mMonitor).broadcastP2pDeviceFound(eq(mIface), deviceCaptor.capture()); in testOnDeviceFoundWithSignBitInDeviceInfoBytesSuccess() 282 verify(mMonitor).broadcastP2pDeviceFound( in testOnDeviceFoundWithSignBitInDeviceInfoBytesSuccess() 303 verify(mMonitor, never()).broadcastP2pDeviceFound( in testOnDeviceFound_invalidArguments() [all …]
|
D | SupplicantP2pIfaceHalTest.java | 64 private @Mock WifiP2pMonitor mMonitor; field in SupplicantP2pIfaceHalTest 79 super(mMonitor, mWifiGlobals, mWifiInjector); in SupplicantP2pIfaceHalSpy()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | VoipCallMonitorTest.java | 63 private VoipCallMonitor mMonitor; field in VoipCallMonitorTest 86 mMonitor = new VoipCallMonitor(mContext, mLock); in setUp() 88 mMonitor.setActivityManagerInternal(mActivityManagerInternal); in setUp() 89 mMonitor.startMonitor(); in setUp() 106 mMonitor.onCallAdded(call); in testVerifyForegroundServiceTypesBeingPassedToActivityManager() 117 mMonitor.onCallRemoved(call); in testVerifyForegroundServiceTypesBeingPassedToActivityManager() 127 mMonitor.onCallAdded(call); in testStartMonitorForOneCall() 133 mMonitor.onCallRemoved(call); in testStartMonitorForOneCall() 146 mMonitor.onCallAdded(call1); in testMonitorForTwoCallsOnSameHandle() 155 mMonitor.onCallAdded(call2); in testMonitorForTwoCallsOnSameHandle() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/ |
D | SupplicantP2pIfaceCallbackHidlImpl.java | 49 private final WifiP2pMonitor mMonitor; field in SupplicantP2pIfaceCallbackHidlImpl 56 mMonitor = monitor; in SupplicantP2pIfaceCallbackHidlImpl() 143 mMonitor.broadcastP2pDeviceFound(mInterface, device); in onDeviceFound() 164 mMonitor.broadcastP2pDeviceLost(mInterface, device); in onDeviceLost() 173 mMonitor.broadcastP2pFindStopped(mInterface); in onFindStopped() 215 mMonitor.broadcastP2pGoNegotiationRequest(mInterface, config); in onGoNegotiationRequest() 229 mMonitor.broadcastP2pGoNegotiationSuccess(mInterface); in onGoNegotiationCompleted() 231 mMonitor.broadcastP2pGoNegotiationFailure(mInterface, result); in onGoNegotiationCompleted() 241 mMonitor.broadcastP2pGroupFormationSuccess(mInterface); in onGroupFormationSuccess() 253 mMonitor.broadcastP2pGroupFormationFailure(mInterface, failureReason); in onGroupFormationFailure() [all …]
|
D | SupplicantP2pIfaceCallbackAidlImpl.java | 68 private final WifiP2pMonitor mMonitor; field in SupplicantP2pIfaceCallbackAidlImpl 74 mMonitor = monitor; in SupplicantP2pIfaceCallbackAidlImpl() 137 mMonitor.broadcastP2pDeviceLost(mInterface, device); in onDeviceLost() 146 mMonitor.broadcastP2pFindStopped(mInterface); in onFindStopped() 216 mMonitor.broadcastP2pGoNegotiationRequest(mInterface, config); in handleGoNegotiationRequestEvent() 230 mMonitor.broadcastP2pGoNegotiationSuccess(mInterface); in onGoNegotiationCompleted() 232 mMonitor.broadcastP2pGoNegotiationFailure(mInterface, result); in onGoNegotiationCompleted() 242 mMonitor.broadcastP2pGroupFormationSuccess(mInterface); in onGroupFormationSuccess() 253 mMonitor.broadcastP2pGroupFormationFailure(mInterface, failureReason); in onGroupFormationFailure() 364 mMonitor.broadcastP2pGroupStarted(mInterface, group); in onGroupStarted() [all …]
|
D | SupplicantP2pIfaceCallbackHidlV1_4Impl.java | 39 private final WifiP2pMonitor mMonitor; field in SupplicantP2pIfaceCallbackHidlV1_4Impl 47 mMonitor = monitor; in SupplicantP2pIfaceCallbackHidlV1_4Impl() 325 mMonitor.broadcastP2pDeviceFound(mInterface, device); in onR2DeviceFound()
|
D | SupplicantP2pIfaceHal.java | 45 private final WifiP2pMonitor mMonitor; field in SupplicantP2pIfaceHal 54 mMonitor = monitor; in SupplicantP2pIfaceHal() 124 return new SupplicantP2pIfaceHalAidlImpl(mMonitor, mWifiInjector); in createP2pIfaceHalMockable() 128 return new SupplicantP2pIfaceHalHidlImpl(mMonitor); in createP2pIfaceHalMockable()
|
D | SupplicantP2pIfaceHalHidlImpl.java | 122 private final WifiP2pMonitor mMonitor; field in SupplicantP2pIfaceHalHidlImpl 126 mMonitor = monitor; in SupplicantP2pIfaceHalHidlImpl() 315 if (mISupplicantP2pIface != null && mMonitor != null) { in setupIface() 338 super(SupplicantP2pIfaceHalHidlImpl.this, ifaceName, mMonitor); in SupplicantP2pIfaceCallback() 344 super(SupplicantP2pIfaceHalHidlImpl.this, ifaceName, mMonitor); in SupplicantP2pIfaceCallbackV1_4()
|
D | SupplicantP2pIfaceHalAidlImpl.java | 114 private final WifiP2pMonitor mMonitor; field in SupplicantP2pIfaceHalAidlImpl 120 mMonitor = monitor; in SupplicantP2pIfaceHalAidlImpl() 223 if (mMonitor != null) { in setupIface() 225 new SupplicantP2pIfaceCallbackAidlImpl(ifaceName, mMonitor, in setupIface()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | LaunchConversationData.java | 37 private GetOrCreateConversationActionMonitor mMonitor; field in LaunchConversationData 46 if (mMonitor != null) { in unregisterListeners() 47 mMonitor.unregister(); in unregisterListeners() 49 mMonitor = null; in unregisterListeners() 57 if (isBound(bindingId) && mMonitor == null) { in getOrCreateConversation() 58 mMonitor = GetOrCreateConversationAction.getOrCreateConversation(recipients, in getOrCreateConversation() 67 Assert.isTrue(monitor == mMonitor); in onGetOrCreateConversationSucceeded() 75 mMonitor = null; in onGetOrCreateConversationSucceeded() 82 Assert.isTrue(monitor == mMonitor); in onGetOrCreateConversationFailed() 88 mMonitor = null; in onGetOrCreateConversationFailed()
|
D | DraftMessageData.java | 85 private ReadDraftDataActionMonitor mMonitor; field in DraftMessageData 566 if (mMonitor == null && !isDraftCachedCopy && isBound(binding.getBindingId())) { in loadFromStorage() 567 mMonitor = ReadDraftDataAction.readDraftData(mConversationId, in loadFromStorage() 638 mMonitor = null; in onReadDraftDataSucceeded() 648 mMonitor = null; in onReadDraftDataFailed() 661 if (mMonitor != null) { in unregisterListeners() 662 mMonitor.unregister(); in unregisterListeners() 664 mMonitor = null; in unregisterListeners()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsSubscriptionsMonitorTest.java | 84 private NetworkStatsSubscriptionsMonitor mMonitor; field in NetworkStatsSubscriptionsMonitorTest 101 mMonitor = new NetworkStatsSubscriptionsMonitor(mContext, mExecutor, mDelegate); in setUp() 108 .addOnSubscriptionsChangedListener(mExecutor, mMonitor); in testStartStop() 109 mMonitor.start(); in testStartStop() 110 verify(mSubscriptionManager).addOnSubscriptionsChangedListener(mExecutor, mMonitor); in testStartStop() 113 verify(mSubscriptionManager, never()).removeOnSubscriptionsChangedListener(mMonitor); in testStartStop() 114 mMonitor.stop(); in testStartStop() 115 verify(mSubscriptionManager).removeOnSubscriptionsChangedListener(mMonitor); in testStartStop() 173 mMonitor.onSubscriptionsChanged(); in updateSubscriberIdForTestSub() 192 mMonitor.onSubscriptionsChanged(); in removeTestSub() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | ContentLock.java | 36 private final OperationMonitor mMonitor = new OperationMonitor(); field in ContentLock 42 mMonitor.addListener(() -> { in ContentLock() 59 return mMonitor; in getMonitor() 66 return mMonitor.isStarted(); in isLocked()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/prefs/ |
D | PreferencesMonitorTest.java | 41 private PreferencesMonitor mMonitor; field in PreferencesMonitorTest 48 mMonitor = new PreferencesMonitor("Poodles", mPrefs, mConsumer); in setUp() 49 mMonitor.start(); in setUp() 54 mMonitor.stop(); in tearDown()
|
/packages/apps/Messaging/src/com/android/messaging/ui/contact/ |
D | ContactPickerFragment.java | 223 if (mMonitor != null) { in onDestroy() 224 mMonitor.unregister(); in onDestroy() 226 mMonitor = null; in onDestroy() 439 } else if (participants.size() > 0 && mMonitor == null) { in maybeGetOrCreateConversation() 440 mMonitor = GetOrCreateConversationAction.getOrCreateConversation(participants, in maybeGetOrCreateConversation() 583 private GetOrCreateConversationActionMonitor mMonitor; field in ContactPickerFragment 589 Assert.isTrue(monitor == mMonitor); in onGetOrCreateConversationSucceeded() 596 mMonitor = null; in onGetOrCreateConversationSucceeded() 603 Assert.isTrue(monitor == mMonitor); in onGetOrCreateConversationFailed() 605 mMonitor = null; in onGetOrCreateConversationFailed()
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | WatchdogProcessService.cpp | 356 if (mMonitor != nullptr) { in registerMonitor() 357 if (mMonitor->asBinder() == binder) { in registerMonitor() 360 AIBinder* aiBinder = mMonitor->asBinder().get(); in registerMonitor() 364 mMonitor = monitor; in registerMonitor() 374 if (mMonitor != nullptr && mMonitor->asBinder() == binder) { in registerMonitor() 375 mMonitor.reset(); in registerMonitor() 396 if (mMonitor == nullptr || mMonitor->asBinder() != binder) { in unregisterMonitor() 404 mMonitor.reset(); in unregisterMonitor() 450 if (mMonitor == nullptr || monitor == nullptr || mMonitor->asBinder() != monitor->asBinder()) { in tellDumpFinished() 513 mMonitor == nullptr ? "false" : "true"), in onDump() [all …]
|
D | WatchdogProcessService.h | 331 std::shared_ptr<aidl::android::automotive::watchdog::internal::ICarWatchdogMonitor> mMonitor
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/instrumentation/ |
D | InstrumentedPreferenceFragment.java | 56 private final InteractionJankMonitor mMonitor = InteractionJankMonitor.getInstance(); field in InstrumentedPreferenceFragment.OnScrollListener 70 mMonitor.begin(builder); in onScrollStateChanged() 72 case RecyclerView.SCROLL_STATE_IDLE -> mMonitor.end(CUJ_SETTINGS_PAGE_SCROLL); in onScrollStateChanged()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/audio/ |
D | MpegTsDefaultAudioTrackRenderer.java | 107 private final AudioTrackMonitor mMonitor; field in MpegTsDefaultAudioTrackRenderer 148 mMonitor = new AudioTrackMonitor(); in MpegTsDefaultAudioTrackRenderer() 232 mMonitor.reset(MONITOR_DURATION_MS); in seekToInternal() 282 mMonitor.maybeLog(); in doSomeWork() 397 mMonitor.setEncoding(mimeType); in onInputFormatChanged() 474 mMonitor.addPts( in feedInputBuffer() 480 mMonitor.addPts( in feedInputBuffer()
|
/packages/apps/Settings/src/com/android/settings/core/ |
D | InstrumentedPreferenceFragment.java | 163 private final InteractionJankMonitor mMonitor = InteractionJankMonitor.getInstance(); field in InstrumentedPreferenceFragment.OnScrollListener 177 mMonitor.begin(builder); in onScrollStateChanged() 180 mMonitor.end(CUJ_SETTINGS_PAGE_SCROLL); in onScrollStateChanged()
|
/packages/modules/Connectivity/service-t/src/com/android/server/net/ |
D | NetworkStatsSubscriptionsMonitor.java | 203 private final NetworkStatsSubscriptionsMonitor mMonitor; field in NetworkStatsSubscriptionsMonitor.RatTypeListener 209 mMonitor = monitor; in RatTypeListener() 234 mMonitor.mDelegate.onCollapsedRatTypeChanged(mSubscriberId, mLastCollapsedRatType); in onDisplayInfoChanged()
|
/packages/apps/Settings/src/com/android/settings/applications/manageapplications/ |
D | ManageApplications.java | 1914 private InteractionJankMonitor mMonitor; field in ManageApplications.ApplicationsAdapter.OnScrollListener 1921 mMonitor = InteractionJankMonitor.getInstance(); in OnScrollListener() 1942 mMonitor.begin(builder); in onScrollStateChanged() 1945 mMonitor.end(CUJ_SETTINGS_PAGE_SCROLL); in onScrollStateChanged()
|