Lines Matching refs:cb
44 static inline void Remove(T* cb, std::vector<T*>* data) { in Remove() argument
45 auto it = std::find(data->begin(), data->end(), cb); in Remove()
51 void RuntimeCallbacks::AddDdmCallback(DdmCallback* cb) { in AddDdmCallback() argument
53 ddm_callbacks_.push_back(cb); in AddDdmCallback()
56 void RuntimeCallbacks::RemoveDdmCallback(DdmCallback* cb) { in RemoveDdmCallback() argument
58 Remove(cb, &ddm_callbacks_); in RemoveDdmCallback()
61 void RuntimeCallbacks::AddAppInfoCallback(AppInfoCallback* cb) { in AddAppInfoCallback() argument
63 appinfo_callbacks_.push_back(cb); in AddAppInfoCallback()
66 void RuntimeCallbacks::RemoveAppInfoCallback(AppInfoCallback* cb) { in RemoveAppInfoCallback() argument
68 Remove(cb, &appinfo_callbacks_); in RemoveAppInfoCallback()
72 for (DdmCallback* cb : COPY(ddm_callbacks_)) { in DdmPublishChunk()
73 cb->DdmPublishChunk(type, data); in DdmPublishChunk()
78 for (AppInfoCallback* cb : COPY(appinfo_callbacks_)) { in SetCurrentProcessName()
79 cb->SetCurrentProcessName(process_name); in SetCurrentProcessName()
84 for (AppInfoCallback* cb : COPY(appinfo_callbacks_)) { in AddApplication()
85 cb->AddApplication(package_name); in AddApplication()
90 for (AppInfoCallback* cb : COPY(appinfo_callbacks_)) { in RemoveApplication()
91 cb->RemoveApplication(package_name); in RemoveApplication()
96 for (AppInfoCallback* cb : COPY(appinfo_callbacks_)) { in SetWaitingForDebugger()
97 cb->SetWaitingForDebugger(waiting); in SetWaitingForDebugger()
102 for (AppInfoCallback* cb : COPY(appinfo_callbacks_)) { in SetUserId()
103 cb->SetUserId(user_id); in SetUserId()
107 void RuntimeCallbacks::AddDebuggerControlCallback(DebuggerControlCallback* cb) { in AddDebuggerControlCallback() argument
109 debugger_control_callbacks_.push_back(cb); in AddDebuggerControlCallback()
112 void RuntimeCallbacks::RemoveDebuggerControlCallback(DebuggerControlCallback* cb) { in RemoveDebuggerControlCallback() argument
114 Remove(cb, &debugger_control_callbacks_); in RemoveDebuggerControlCallback()
118 for (DebuggerControlCallback* cb : COPY(debugger_control_callbacks_)) { in IsDebuggerConfigured()
119 if (cb->IsDebuggerConfigured()) { in IsDebuggerConfigured()
127 for (DebuggerControlCallback* cb : COPY(debugger_control_callbacks_)) { in StartDebugger()
128 cb->StartDebugger(); in StartDebugger()
133 for (DebuggerControlCallback* cb : COPY(debugger_control_callbacks_)) { in StopDebugger()
134 cb->StopDebugger(); in StopDebugger()
138 void RuntimeCallbacks::AddMethodInspectionCallback(MethodInspectionCallback* cb) { in AddMethodInspectionCallback() argument
140 method_inspection_callbacks_.push_back(cb); in AddMethodInspectionCallback()
143 void RuntimeCallbacks::RemoveMethodInspectionCallback(MethodInspectionCallback* cb) { in RemoveMethodInspectionCallback() argument
145 Remove(cb, &method_inspection_callbacks_); in RemoveMethodInspectionCallback()
149 for (MethodInspectionCallback* cb : COPY(method_inspection_callbacks_)) { in HaveLocalsChanged()
150 if (cb->HaveLocalsChanged()) { in HaveLocalsChanged()
157 void RuntimeCallbacks::AddThreadLifecycleCallback(ThreadLifecycleCallback* cb) { in AddThreadLifecycleCallback() argument
159 thread_callbacks_.push_back(cb); in AddThreadLifecycleCallback()
163 for (MonitorCallback* cb : COPY(monitor_callbacks_)) { in MonitorContendedLocking()
164 cb->MonitorContendedLocking(m); in MonitorContendedLocking()
169 for (MonitorCallback* cb : COPY(monitor_callbacks_)) { in MonitorContendedLocked()
170 cb->MonitorContendedLocked(m); in MonitorContendedLocked()
175 for (MonitorCallback* cb : COPY(monitor_callbacks_)) { in ObjectWaitStart()
176 cb->ObjectWaitStart(m, timeout); in ObjectWaitStart()
181 for (MonitorCallback* cb : COPY(monitor_callbacks_)) { in MonitorWaitFinished()
182 cb->MonitorWaitFinished(m, timeout); in MonitorWaitFinished()
186 void RuntimeCallbacks::AddMonitorCallback(MonitorCallback* cb) { in AddMonitorCallback() argument
188 monitor_callbacks_.push_back(cb); in AddMonitorCallback()
191 void RuntimeCallbacks::RemoveMonitorCallback(MonitorCallback* cb) { in RemoveMonitorCallback() argument
193 Remove(cb, &monitor_callbacks_); in RemoveMonitorCallback()
197 for (ParkCallback * cb : COPY(park_callbacks_)) { in ThreadParkStart()
198 cb->ThreadParkStart(is_absolute, timeout); in ThreadParkStart()
203 for (ParkCallback * cb : COPY(park_callbacks_)) { in ThreadParkFinished()
204 cb->ThreadParkFinished(timeout); in ThreadParkFinished()
208 void RuntimeCallbacks::AddParkCallback(ParkCallback* cb) { in AddParkCallback() argument
210 park_callbacks_.push_back(cb); in AddParkCallback()
213 void RuntimeCallbacks::RemoveParkCallback(ParkCallback* cb) { in RemoveParkCallback() argument
215 Remove(cb, &park_callbacks_); in RemoveParkCallback()
218 void RuntimeCallbacks::RemoveThreadLifecycleCallback(ThreadLifecycleCallback* cb) { in RemoveThreadLifecycleCallback() argument
220 Remove(cb, &thread_callbacks_); in RemoveThreadLifecycleCallback()
224 for (ThreadLifecycleCallback* cb : COPY(thread_callbacks_)) { in ThreadStart()
225 cb->ThreadStart(self); in ThreadStart()
230 for (ThreadLifecycleCallback* cb : COPY(thread_callbacks_)) { in ThreadDeath()
231 cb->ThreadDeath(self); in ThreadDeath()
235 void RuntimeCallbacks::AddClassLoadCallback(ClassLoadCallback* cb) { in AddClassLoadCallback() argument
237 class_callbacks_.push_back(cb); in AddClassLoadCallback()
240 void RuntimeCallbacks::RemoveClassLoadCallback(ClassLoadCallback* cb) { in RemoveClassLoadCallback() argument
242 Remove(cb, &class_callbacks_); in RemoveClassLoadCallback()
246 for (ClassLoadCallback* cb : COPY(class_callbacks_)) { in ClassLoad()
247 cb->ClassLoad(klass); in ClassLoad()
252 for (ClassLoadCallback* cb : COPY(class_callbacks_)) { in EndDefineClass()
253 cb->EndDefineClass(); in EndDefineClass()
258 for (ClassLoadCallback* cb : COPY(class_callbacks_)) { in BeginDefineClass()
259 cb->BeginDefineClass(); in BeginDefineClass()
273 for (ClassLoadCallback* cb : COPY(class_callbacks_)) { in ClassPreDefine()
276 cb->ClassPreDefine(descriptor, in ClassPreDefine()
295 for (ClassLoadCallback* cb : COPY(class_callbacks_)) { in ClassPrepare()
296 cb->ClassPrepare(temp_klass, klass); in ClassPrepare()
300 void RuntimeCallbacks::AddRuntimeSigQuitCallback(RuntimeSigQuitCallback* cb) { in AddRuntimeSigQuitCallback() argument
302 sigquit_callbacks_.push_back(cb); in AddRuntimeSigQuitCallback()
305 void RuntimeCallbacks::RemoveRuntimeSigQuitCallback(RuntimeSigQuitCallback* cb) { in RemoveRuntimeSigQuitCallback() argument
307 Remove(cb, &sigquit_callbacks_); in RemoveRuntimeSigQuitCallback()
311 for (RuntimeSigQuitCallback* cb : COPY(sigquit_callbacks_)) { in SigQuit()
312 cb->SigQuit(); in SigQuit()
316 void RuntimeCallbacks::AddRuntimePhaseCallback(RuntimePhaseCallback* cb) { in AddRuntimePhaseCallback() argument
318 phase_callbacks_.push_back(cb); in AddRuntimePhaseCallback()
321 void RuntimeCallbacks::RemoveRuntimePhaseCallback(RuntimePhaseCallback* cb) { in RemoveRuntimePhaseCallback() argument
323 Remove(cb, &phase_callbacks_); in RemoveRuntimePhaseCallback()
327 for (RuntimePhaseCallback* cb : COPY(phase_callbacks_)) { in NextRuntimePhase()
328 cb->NextRuntimePhase(phase); in NextRuntimePhase()
332 void RuntimeCallbacks::AddMethodCallback(MethodCallback* cb) { in AddMethodCallback() argument
334 method_callbacks_.push_back(cb); in AddMethodCallback()
337 void RuntimeCallbacks::RemoveMethodCallback(MethodCallback* cb) { in RemoveMethodCallback() argument
339 Remove(cb, &method_callbacks_); in RemoveMethodCallback()
347 for (MethodCallback* cb : COPY(method_callbacks_)) { in RegisterNativeMethod()
348 cb->RegisterNativeMethod(method, cur_method, new_method); in RegisterNativeMethod()
355 void RuntimeCallbacks::AddReflectiveValueVisitCallback(ReflectiveValueVisitCallback *cb) { in AddReflectiveValueVisitCallback() argument
357 reflective_value_visit_callbacks_.push_back(cb); in AddReflectiveValueVisitCallback()
360 void RuntimeCallbacks::RemoveReflectiveValueVisitCallback(ReflectiveValueVisitCallback *cb) { in RemoveReflectiveValueVisitCallback() argument
362 Remove(cb, &reflective_value_visit_callbacks_); in RemoveReflectiveValueVisitCallback()
366 for (ReflectiveValueVisitCallback* cb : COPY(reflective_value_visit_callbacks_)) { in VisitReflectiveTargets()
367 cb->VisitReflectiveTargets(visitor); in VisitReflectiveTargets()