package com.seewo.sdk.event;

import android.view.KeyEvent;

/* JADX INFO: loaded from: classes.dex */
public class GlobalKeyEvent {
    private int a;
    private int b;
    private int c;
    private int d;
    private int e;
    private int f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    private int f375g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    private int f376h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    private long f377i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    private long f378j;

    public KeyEvent dumpKeyEvent() {
        return new KeyEvent(this.f377i, this.f378j, this.d, this.e, this.f375g, this.c, this.a, this.f, this.f376h, this.b);
    }

    public int getAction() {
        return this.d;
    }

    public int getDeviceId() {
        return this.a;
    }

    public long getDownTime() {
        return this.f377i;
    }

    public long getEventTime() {
        return this.f378j;
    }

    public int getFlags() {
        return this.f376h;
    }

    public int getKeyCode() {
        return this.e;
    }

    public int getMetaState() {
        return this.c;
    }

    public int getRepeatCount() {
        return this.f375g;
    }

    public int getScanCode() {
        return this.f;
    }

    public int getSource() {
        return this.b;
    }

    public void parseKeyEvent(KeyEvent keyEvent) {
        this.a = keyEvent.getDeviceId();
        this.b = keyEvent.getSource();
        this.c = keyEvent.getMetaState();
        this.d = keyEvent.getAction();
        this.e = keyEvent.getKeyCode();
        this.f = keyEvent.getScanCode();
        this.f375g = keyEvent.getRepeatCount();
        this.f376h = keyEvent.getFlags();
        this.f377i = keyEvent.getDownTime();
        this.f378j = keyEvent.getEventTime();
    }

    public void setAction(int i2) {
        this.d = i2;
    }

    public void setDeviceId(int i2) {
        this.a = i2;
    }

    public void setDownTime(long j2) {
        this.f377i = j2;
    }

    public void setEventTime(long j2) {
        this.f378j = j2;
    }

    public void setFlags(int i2) {
        this.f376h = i2;
    }

    public void setKeyCode(int i2) {
        this.e = i2;
    }

    public void setMetaState(int i2) {
        this.c = i2;
    }

    public void setRepeatCount(int i2) {
        this.f375g = i2;
    }

    public void setScanCode(int i2) {
        this.f = i2;
    }

    public void setSource(int i2) {
        this.b = i2;
    }

    public String toString() {
        return "KeyEvent { action=" + this.d + ", keyCode=" + this.e + ", scanCode=" + this.f + ", metaState=" + this.c + ", flags=0x" + Integer.toHexString(this.f376h) + ", repeatCount=" + this.f375g + ", eventTime=" + this.f378j + ", downTime=" + this.f377i + ", deviceId=" + this.a + ", source=0x" + Integer.toHexString(this.b) + " }";
    }
}
