IT. Expert System.

Android Reference

InputEventConsistencyVerifier


android.view

Class InputEventConsistencyVerifier



  • public final class InputEventConsistencyVerifier
    extends Object
    Checks whether a sequence of input events is self-consistent. Logs a description of each problem detected.

    When a problem is detected, the event is tainted. This mechanism prevents the same error from being reported multiple times.

    • Field Detail

      • FLAG_RAW_DEVICE_INPUT

        public static final int FLAG_RAW_DEVICE_INPUT
        Indicates that the verifier is intended to act on raw device input event streams. Disables certain checks for invariants that are established by the input dispatcher itself as it delivers input events, such as key repeating behavior.
        See Also:
        Constant Field Values
    • Constructor Detail

      • InputEventConsistencyVerifier

        public InputEventConsistencyVerifier(Object caller,
                                     int flags)
        Creates an input consistency verifier.
        Parameters:
        caller - The object to which the verifier is attached.
        flags - Flags to the verifier, or 0 if none.
      • InputEventConsistencyVerifier

        public InputEventConsistencyVerifier(Object caller,
                                     int flags,
                                     String logTag)
        Creates an input consistency verifier.
        Parameters:
        caller - The object to which the verifier is attached.
        flags - Flags to the verifier, or 0 if none.
        logTag - Tag for logging. If null defaults to the short class name.
    • Method Detail

      • isInstrumentationEnabled

        public static boolean isInstrumentationEnabled()
        Determines whether the instrumentation should be enabled.
        Returns:
        True if it should be enabled.
      • reset

        public void reset()
        Resets the state of the input event consistency verifier.
      • onInputEvent

        public void onInputEvent(InputEvent event,
                        int nestingLevel)
        Checks an arbitrary input event.
        Parameters:
        event - The event.
        nestingLevel - The nesting level: 0 if called from the base class, or 1 from a subclass. If the event was already checked by this consistency verifier at a higher nesting level, it will not be checked again. Used to handle the situation where a subclass dispatching method delegates to its superclass's dispatching method and both dispatching methods call into the consistency verifier.
      • onKeyEvent

        public void onKeyEvent(KeyEvent event,
                      int nestingLevel)
        Checks a key event.
        Parameters:
        event - The event.
        nestingLevel - The nesting level: 0 if called from the base class, or 1 from a subclass. If the event was already checked by this consistency verifier at a higher nesting level, it will not be checked again. Used to handle the situation where a subclass dispatching method delegates to its superclass's dispatching method and both dispatching methods call into the consistency verifier.
      • onTrackballEvent

        public void onTrackballEvent(MotionEvent event,
                            int nestingLevel)
        Checks a trackball event.
        Parameters:
        event - The event.
        nestingLevel - The nesting level: 0 if called from the base class, or 1 from a subclass. If the event was already checked by this consistency verifier at a higher nesting level, it will not be checked again. Used to handle the situation where a subclass dispatching method delegates to its superclass's dispatching method and both dispatching methods call into the consistency verifier.
      • onTouchEvent

        public void onTouchEvent(MotionEvent event,
                        int nestingLevel)
        Checks a touch event.
        Parameters:
        event - The event.
        nestingLevel - The nesting level: 0 if called from the base class, or 1 from a subclass. If the event was already checked by this consistency verifier at a higher nesting level, it will not be checked again. Used to handle the situation where a subclass dispatching method delegates to its superclass's dispatching method and both dispatching methods call into the consistency verifier.
      • onGenericMotionEvent

        public void onGenericMotionEvent(MotionEvent event,
                                int nestingLevel)
        Checks a generic motion event.
        Parameters:
        event - The event.
        nestingLevel - The nesting level: 0 if called from the base class, or 1 from a subclass. If the event was already checked by this consistency verifier at a higher nesting level, it will not be checked again. Used to handle the situation where a subclass dispatching method delegates to its superclass's dispatching method and both dispatching methods call into the consistency verifier.
      • onUnhandledEvent

        public void onUnhandledEvent(InputEvent event,
                            int nestingLevel)
        Notifies the verifier that a given event was unhandled and the rest of the trace for the event should be ignored. This method should only be called if the event was previously checked by the consistency verifier using onInputEvent(android.view.InputEvent, int) and other methods.
        Parameters:
        event - The event.
        nestingLevel - The nesting level: 0 if called from the base class, or 1 from a subclass. If the event was already checked by this consistency verifier at a higher nesting level, it will not be checked again. Used to handle the situation where a subclass dispatching method delegates to its superclass's dispatching method and both dispatching methods call into the consistency verifier.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 98 / 158868867. Delta: 0.03966 с