Home
last modified time | relevance | path

Searched refs:monitor (Results 1 – 25 of 85) sorted by relevance

1234

/packages/services/BuiltInPrintService/jni/ipphelper/
Dippstatus_monitor.c75 ipp_monitor_t *monitor = (ipp_monitor_t *) malloc(sizeof(ipp_monitor_t)); in ipp_status_get_monitor_ifc() local
78 monitor->initialized = 0; in ipp_status_get_monitor_ifc()
79 monitor->http = NULL; in ipp_status_get_monitor_ifc()
80 memcpy(&monitor->ifc, &_status_ifc, sizeof(ifc_status_monitor_t)); in ipp_status_get_monitor_ifc()
81 return &monitor->ifc; in ipp_status_get_monitor_ifc()
85 ipp_monitor_t *monitor; in _init() local
91 monitor = IMPL(ipp_monitor_t, ifc, this_p); in _init()
93 if (monitor->initialized != 0) { in _init()
94 sem_post(&monitor->monitor_sem); in _init()
95 sem_destroy(&monitor->monitor_sem); in _init()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DActionMonitor.java55 abstract void onActionExecuted(ActionMonitor monitor, final Action action, in onActionExecuted() argument
70 abstract void onActionSucceeded(ActionMonitor monitor, in onActionSucceeded() argument
76 abstract void onActionFailed(ActionMonitor monitor, final Action action, in onActionFailed() argument
270 final ActionMonitor monitor in setState() local
272 if (monitor != null) { in setState()
273 oldMonitorState = monitor.mState; in setState()
274 monitor.updateState(action, expectedOldState, newState); in setState()
275 newMonitorState = monitor.mState; in setState()
342 final ActionMonitor monitor in setCompleteState() local
344 if (monitor != null) { in setCompleteState()
[all …]
DGetOrCreateConversationAction.java46 abstract void onGetOrCreateConversationSucceeded(final ActionMonitor monitor, in onGetOrCreateConversationSucceeded() argument
50 abstract void onGetOrCreateConversationFailed(final ActionMonitor monitor, in onGetOrCreateConversationFailed() argument
57 final GetOrCreateConversationActionMonitor monitor = new in getOrCreateConversation() local
60 monitor.getActionKey()); in getOrCreateConversation()
61 action.start(monitor); in getOrCreateConversation()
62 return monitor; in getOrCreateConversation()
133 public void onActionSucceeded(final ActionMonitor monitor, in onActionSucceeded() argument
136 mListener.onGetOrCreateConversationFailed(monitor, data); in onActionSucceeded()
138 mListener.onGetOrCreateConversationSucceeded(monitor, data, (String) result); in onActionSucceeded()
143 public void onActionFailed(final ActionMonitor monitor, in onActionFailed() argument
[all …]
DUpdateDestinationBlockedAction.java49 final ActionMonitor monitor, in onActionDone() argument
61 public void onActionSucceeded(final ActionMonitor monitor, in onActionSucceeded() argument
65 onActionDone(true, monitor, action, data, result); in onActionSucceeded()
69 public void onActionFailed(final ActionMonitor monitor, in onActionFailed() argument
73 onActionDone(false, monitor, action, data, result); in onActionFailed()
82 final UpdateDestinationBlockedActionMonitor monitor = in updateDestinationBlocked() local
86 monitor.getActionKey()); in updateDestinationBlocked()
87 action.start(monitor); in updateDestinationBlocked()
88 return monitor; in updateDestinationBlocked()
DReadDraftDataAction.java53 final ReadDraftDataActionMonitor monitor = new ReadDraftDataActionMonitor(data, in readDraftData() local
56 incomingDraft, monitor.getActionKey()); in readDraftData()
57 action.start(monitor); in readDraftData()
58 return monitor; in readDraftData()
127 public void onActionSucceeded(final ActionMonitor monitor, in onActionSucceeded() argument
139 public void onActionFailed(final ActionMonitor monitor, in onActionFailed() argument
/packages/services/Car/cpp/watchdog/server/tests/
DWatchdogProcessServiceTest.cpp137 sp<MockCarWatchdogMonitor> monitor = sp<MockCarWatchdogMonitor>::make(); in createMockCarWatchdogMonitor() local
138 sp<MockBinder> binder = monitor->getBinder(); in createMockCarWatchdogMonitor()
141 EXPECT_CALL(*monitor, onAsBinder()).WillRepeatedly(Return(binder.get())); in createMockCarWatchdogMonitor()
142 return monitor; in createMockCarWatchdogMonitor()
233 sp<MockCarWatchdogMonitor> monitor = expectCarWatchdogMonitorBinderDied(); in TEST_F() local
234 ASSERT_FALSE(mWatchdogProcessService->registerMonitor(monitor).isOk()) in TEST_F()
239 sp<aawi::ICarWatchdogMonitor> monitor = expectNormalCarWatchdogMonitor(); in TEST_F() local
240 mWatchdogProcessService->registerMonitor(monitor); in TEST_F()
241 Status status = mWatchdogProcessService->unregisterMonitor(monitor); in TEST_F()
243 ASSERT_FALSE(mWatchdogProcessService->unregisterMonitor(monitor).isOk()) in TEST_F()
[all …]
DWatchdogInternalHandlerTest.cpp287 sp<aawi::ICarWatchdogMonitor> monitor = sp<aawi::ICarWatchdogMonitorDefault>::make(); in TEST_F() local
288 EXPECT_CALL(*mMockWatchdogProcessService, registerMonitor(monitor)) in TEST_F()
290 Status status = mWatchdogInternalHandler->registerMonitor(monitor); in TEST_F()
295 sp<aawi::ICarWatchdogMonitor> monitor = sp<aawi::ICarWatchdogMonitorDefault>::make(); in TEST_F() local
296 EXPECT_CALL(*mMockWatchdogProcessService, registerMonitor(monitor)).Times(0); in TEST_F()
297 Status status = mWatchdogInternalHandler->registerMonitor(monitor); in TEST_F()
303 sp<aawi::ICarWatchdogMonitor> monitor = sp<aawi::ICarWatchdogMonitorDefault>::make(); in TEST_F() local
304 EXPECT_CALL(*mMockWatchdogProcessService, unregisterMonitor(monitor)) in TEST_F()
306 Status status = mWatchdogInternalHandler->unregisterMonitor(monitor); in TEST_F()
311 sp<aawi::ICarWatchdogMonitor> monitor = sp<aawi::ICarWatchdogMonitorDefault>::make(); in TEST_F() local
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DActionServiceSystemTest.java53 public void onActionSucceeded(final ActionMonitor monitor, in onActionSucceeded() argument
65 public void onActionFailed(final ActionMonitor monitor, final Action action, in onActionFailed() argument
77 public void onActionExecuted(final ActionMonitor monitor, final Action action, in onActionExecuted() argument
93 final TestChatActionMonitor monitor = new TestChatActionMonitor(null, tracker, this, this); in testChatActionSucceeds() local
94 final TestChatAction initial = new TestChatAction(monitor.getActionKey(), parameter); in testChatActionSucceeds()
106 action.start(monitor); in testChatActionSucceeds()
146 final TestChatActionMonitor monitor = new TestChatActionMonitor(null, tracker, this, this); in testChatActionFails() local
147 final TestChatAction action = new TestChatAction(monitor.getActionKey(), parameter); in testChatActionFails()
154 action.start(monitor); in testChatActionFails()
231 final TestChatActionMonitor monitor = new TestChatActionMonitor(null, tracker, this, this); in testChatActionUnregisterListener() local
[all …]
DActionServiceTest.java53 public void onActionSucceeded(final ActionMonitor monitor, in onActionSucceeded() argument
68 public void onActionFailed(final ActionMonitor monitor, final Action action, in onActionFailed() argument
89 final TestChatActionMonitor monitor = new TestChatActionMonitor(null, tracker, this, this); in testChatServiceCreatesIntentAndExecutesAction() local
90 final TestChatAction action = new TestChatAction(monitor.getActionKey(), parameter); in testChatServiceCreatesIntentAndExecutesAction()
97 action.start(monitor); in testChatServiceCreatesIntentAndExecutesAction()
/packages/services/Car/cpp/watchdog/server/src/
DWatchdogInternalHandler.cpp116 Status WatchdogInternalHandler::registerMonitor(const sp<aawi::ICarWatchdogMonitor>& monitor) { in registerMonitor() argument
121 if (monitor == nullptr) { in registerMonitor()
124 return mWatchdogProcessService->registerMonitor(monitor); in registerMonitor()
127 Status WatchdogInternalHandler::unregisterMonitor(const sp<aawi::ICarWatchdogMonitor>& monitor) { in unregisterMonitor() argument
132 if (monitor == nullptr) { in unregisterMonitor()
135 return mWatchdogProcessService->unregisterMonitor(monitor); in unregisterMonitor()
152 const android::sp<aawi::ICarWatchdogMonitor>& monitor, in tellDumpFinished() argument
158 if (monitor == nullptr) { in tellDumpFinished()
161 return mWatchdogProcessService->tellDumpFinished(monitor, processIdentifier); in tellDumpFinished()
DWatchdogProcessService.cpp272 Status WatchdogProcessService::registerMonitor(const sp<aawi::ICarWatchdogMonitor>& monitor) { in registerMonitor() argument
273 if (monitor == nullptr) { in registerMonitor()
278 sp<IBinder> binder = aawi::BnCarWatchdogMonitor::asBinder(monitor); in registerMonitor()
291 mMonitor = monitor; in registerMonitor()
310 Status WatchdogProcessService::unregisterMonitor(const sp<aawi::ICarWatchdogMonitor>& monitor) { in unregisterMonitor() argument
311 if (monitor == nullptr) { in unregisterMonitor()
320 sp<IBinder> newBinder = aawi::BnCarWatchdogMonitor::asBinder(monitor); in unregisterMonitor()
360 Status WatchdogProcessService::tellDumpFinished(const sp<aawi::ICarWatchdogMonitor>& monitor, in tellDumpFinished() argument
363 if (mMonitor == nullptr || monitor == nullptr || in tellDumpFinished()
364 aawi::BnCarWatchdogMonitor::asBinder(monitor) != in tellDumpFinished()
[all …]
DWatchdogProcessService.h78 monitor) = 0;
81 monitor) = 0;
92 monitor,
120 monitor);
123 monitor);
134 monitor,
DWatchdogInternalHandler.h75 monitor) override;
78 monitor) override;
87 monitor,
/packages/services/Car/tests/carservice_unit_test/src/android/car/watchdoglib/
DCarWatchdogDaemonHelperTest.java126 ICarWatchdogMonitor monitor = new ICarWatchdogMonitor.Default(); in testIndirectCall_RegisterUnregisterMonitor() local
128 mCarWatchdogDaemonHelper.registerMonitor(monitor); in testIndirectCall_RegisterUnregisterMonitor()
130 verify(mFakeCarWatchdog).registerMonitor(monitor); in testIndirectCall_RegisterUnregisterMonitor()
132 mCarWatchdogDaemonHelper.unregisterMonitor(monitor); in testIndirectCall_RegisterUnregisterMonitor()
134 verify(mFakeCarWatchdog).unregisterMonitor(monitor); in testIndirectCall_RegisterUnregisterMonitor()
152 ICarWatchdogMonitor monitor = new ICarWatchdogMonitor.Default(); in testIndirectCall_TellDumpFinished() local
157 mCarWatchdogDaemonHelper.tellDumpFinished(monitor, processIdentifier); in testIndirectCall_TellDumpFinished()
159 verify(mFakeCarWatchdog).tellDumpFinished(monitor, processIdentifier); in testIndirectCall_TellDumpFinished()
/packages/services/Car/cpp/watchdog/car-watchdog-lib/src/android/car/watchdoglib/
DCarWatchdogDaemonHelper.java192 public void registerMonitor(ICarWatchdogMonitor monitor) throws RemoteException { in registerMonitor() argument
193 invokeDaemonMethod((daemon) -> daemon.registerMonitor(monitor)); in registerMonitor()
204 public void unregisterMonitor(ICarWatchdogMonitor monitor) throws RemoteException { in unregisterMonitor() argument
205 invokeDaemonMethod((daemon) -> daemon.unregisterMonitor(monitor)); in unregisterMonitor()
236 public void tellDumpFinished(ICarWatchdogMonitor monitor, in tellDumpFinished() argument
238 invokeDaemonMethod((daemon) -> daemon.tellDumpFinished(monitor, processIdentifier)); in tellDumpFinished()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DLaunchConversationData.java65 public void onGetOrCreateConversationSucceeded(final ActionMonitor monitor, in onGetOrCreateConversationSucceeded() argument
67 Assert.isTrue(monitor == mMonitor); in onGetOrCreateConversationSucceeded()
80 public void onGetOrCreateConversationFailed(final ActionMonitor monitor, in onGetOrCreateConversationFailed() argument
82 Assert.isTrue(monitor == mMonitor); in onGetOrCreateConversationFailed()
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog/1/android/automotive/watchdog/
DICarWatchdog.aidl25 void registerMonitor(in android.automotive.watchdog.ICarWatchdogMonitor monitor); in registerMonitor() argument
26 void unregisterMonitor(in android.automotive.watchdog.ICarWatchdogMonitor monitor); in unregisterMonitor() argument
29 void tellDumpFinished(in android.automotive.watchdog.ICarWatchdogMonitor monitor, in int pid); in tellDumpFinished() argument
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog/2/android/automotive/watchdog/
DICarWatchdog.aidl25 void registerMonitor(in android.automotive.watchdog.ICarWatchdogMonitor monitor); in registerMonitor() argument
26 void unregisterMonitor(in android.automotive.watchdog.ICarWatchdogMonitor monitor); in unregisterMonitor() argument
29 void tellDumpFinished(in android.automotive.watchdog.ICarWatchdogMonitor monitor, in int pid); in tellDumpFinished() argument
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/1/android/automotive/watchdog/internal/
DICarWatchdog.aidl38 void registerMonitor(in android.automotive.watchdog.internal.ICarWatchdogMonitor monitor); in registerMonitor() argument
39 void unregisterMonitor(in android.automotive.watchdog.internal.ICarWatchdogMonitor monitor); in unregisterMonitor() argument
41 …void tellDumpFinished(in android.automotive.watchdog.internal.ICarWatchdogMonitor monitor, in andr… in tellDumpFinished() argument
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/internal/
DICarWatchdog.aidl65 void registerMonitor(in ICarWatchdogMonitor monitor); in registerMonitor() argument
73 void unregisterMonitor(in ICarWatchdogMonitor monitor); in unregisterMonitor() argument
95 void tellDumpFinished(in ICarWatchdogMonitor monitor, in ProcessIdentifier processIdentifier); in tellDumpFinished() argument
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/
DICarWatchdog.aidl78 void registerMonitor(in ICarWatchdogMonitor monitor); in registerMonitor() argument
87 void unregisterMonitor(in ICarWatchdogMonitor monitor); in unregisterMonitor() argument
119 void tellDumpFinished(in ICarWatchdogMonitor monitor, in int pid); in tellDumpFinished() argument
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/2/android/automotive/watchdog/internal/
DICarWatchdog.aidl38 void registerMonitor(in android.automotive.watchdog.internal.ICarWatchdogMonitor monitor); in registerMonitor() argument
39 void unregisterMonitor(in android.automotive.watchdog.internal.ICarWatchdogMonitor monitor); in unregisterMonitor() argument
41 …void tellDumpFinished(in android.automotive.watchdog.internal.ICarWatchdogMonitor monitor, in andr… in tellDumpFinished() argument
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/current/android/automotive/watchdog/internal/
DICarWatchdog.aidl38 void registerMonitor(in android.automotive.watchdog.internal.ICarWatchdogMonitor monitor); in registerMonitor() argument
39 void unregisterMonitor(in android.automotive.watchdog.internal.ICarWatchdogMonitor monitor); in unregisterMonitor() argument
41 …void tellDumpFinished(in android.automotive.watchdog.internal.ICarWatchdogMonitor monitor, in andr… in tellDumpFinished() argument
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog/3/android/automotive/watchdog/
DICarWatchdog.aidl50 void registerMonitor(in android.automotive.watchdog.ICarWatchdogMonitor monitor); in registerMonitor() argument
54 void unregisterMonitor(in android.automotive.watchdog.ICarWatchdogMonitor monitor); in unregisterMonitor() argument
63 void tellDumpFinished(in android.automotive.watchdog.ICarWatchdogMonitor monitor, in int pid); in tellDumpFinished() argument
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog/current/android/automotive/watchdog/
DICarWatchdog.aidl50 void registerMonitor(in android.automotive.watchdog.ICarWatchdogMonitor monitor); in registerMonitor() argument
54 void unregisterMonitor(in android.automotive.watchdog.ICarWatchdogMonitor monitor); in unregisterMonitor() argument
63 void tellDumpFinished(in android.automotive.watchdog.ICarWatchdogMonitor monitor, in int pid); in tellDumpFinished() argument

1234