Lines Matching defs:event

119   static bool EventIsInRange(ArtJvmtiEvent event) {
120 return event >= ArtJvmtiEvent::kMinEventTypeVal && event <= ArtJvmtiEvent::kMaxEventTypeVal;
123 void Set(ArtJvmtiEvent event, bool value = true) {
124 DCHECK(EventIsInRange(event));
125 bit_set.set(static_cast<size_t>(event) - static_cast<size_t>(ArtJvmtiEvent::kMinEventTypeVal),
129 bool Test(ArtJvmtiEvent event) const {
130 DCHECK(EventIsInRange(event));
132 static_cast<size_t>(event) - static_cast<size_t>(ArtJvmtiEvent::kMinEventTypeVal));
158 void EnableEvent(ArtJvmTiEnv* env, art::Thread* thread, ArtJvmtiEvent event);
163 void DisableEvent(ArtJvmTiEnv* env, art::Thread* thread, ArtJvmtiEvent event);
165 bool IsEnabledAnywhere(ArtJvmtiEvent event);
166 // Make any changes to event masks needed for the given capability changes. If caps_added is true
176 // Helper class for event handling.
182 // do cleanup for the event handler.
192 bool IsEventEnabledAnywhere(ArtJvmtiEvent event) const {
193 if (!EventMask::EventIsInRange(event)) {
196 return global_mask.Test(event);
201 ArtJvmtiEvent event,
205 // Dispatch event to all registered environments. Since this one doesn't have a JNIEnv* it doesn't
212 // Dispatch event to all registered environments stashing exceptions as needed. This works since
213 // JNIEnv* is always the second argument if it is passed to an event. Needed since C++ does not
217 // the event to allocate local references.
223 // Tell the event handler capabilities were added/lost so it can adjust the sent events.If
232 // Dispatch event to the given environment, only.
241 // Dispatch event to the given environment, only.
248 void SetupTraceListener(JvmtiMethodTraceListener* listener, ArtJvmtiEvent event, bool enable);
282 // Recalculates the event mask for the given event.
284 inline void RecalculateGlobalEventMask(ArtJvmtiEvent event) REQUIRES(!envs_lock_);
286 inline void RecalculateGlobalEventMaskLocked(ArtJvmtiEvent event) REQUIRES_SHARED(envs_lock_);
301 void HandleEventType(ArtJvmtiEvent event, bool enable);
305 bool OtherMonitorEventsEnabledAnywhere(ArtJvmtiEvent event);
326 // continue to listen to this event even if it has been disabled.