package com.ifpdos.autotest.lancontrol.module.other.e;

import com.ifpdos.autotest.api.IGamma;
import com.ifpdos.autotest.lancontrol.module.other.impls.gamma.MeasureData;
import java.util.List;
import java.util.Map;

/* JADX INFO: compiled from: GammaImpl.java */
/* JADX INFO: loaded from: classes.dex */
public class p implements IGamma {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    private b.b.f.b f2100a = new b.b.f.b();

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private Map<Integer, com.ifpdos.autotest.lancontrol.module.other.impls.gamma.b> f2101b = com.ifpdos.autotest.lancontrol.module.other.impls.gamma.a.h().j();

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    private com.ifpdos.autotest.lancontrol.module.other.impls.gamma.b f2102c;

    public p() {
        b.c.d.d.c.f("GammaImpl", "[Gamma] Size: " + this.f2101b.size());
    }

    @Override // com.ifpdos.autotest.api.IGamma
    public boolean apply() {
        if (!this.f2101b.isEmpty() && com.ifpdos.autotest.lancontrol.module.other.impls.gamma.a.h().b(this.f2101b)) {
            return this.f2100a.m();
        }
        return false;
    }

    @Override // com.ifpdos.autotest.api.IGamma
    public MeasureData[] getMeasureDate() {
        return com.ifpdos.autotest.lancontrol.module.other.impls.gamma.a.h().k();
    }

    @Override // com.ifpdos.autotest.api.IGamma
    public boolean quit() {
        return b.c.d.d.d.a("echo show >/proc/msp/hifb0").f1514a == 0;
    }

    @Override // com.ifpdos.autotest.api.IGamma
    public boolean save(int i, List<Integer> list, List<Integer> list2, List<Integer> list3) {
        com.ifpdos.autotest.lancontrol.module.other.impls.gamma.b bVar = new com.ifpdos.autotest.lancontrol.module.other.impls.gamma.b();
        if (!bVar.e(list, list2, list3)) {
            return false;
        }
        this.f2101b.put(Integer.valueOf(i), bVar);
        return true;
    }

    @Override // com.ifpdos.autotest.api.IGamma
    public boolean saveMeasureData(MeasureData[] measureDataArr) {
        if (com.ifpdos.autotest.lancontrol.module.other.impls.gamma.a.h().c(measureDataArr)) {
            return this.f2100a.i();
        }
        return false;
    }

    @Override // com.ifpdos.autotest.api.IGamma
    public boolean set(List<Integer> list, List<Integer> list2, List<Integer> list3) {
        if (this.f2102c == null) {
            this.f2102c = new com.ifpdos.autotest.lancontrol.module.other.impls.gamma.b();
        }
        if (this.f2102c.e(list, list2, list3) && com.ifpdos.autotest.lancontrol.module.other.impls.gamma.a.h().d(this.f2102c)) {
            return this.f2100a.n();
        }
        return false;
    }

    @Override // com.ifpdos.autotest.api.IGamma
    public boolean setPattern(int i, int i2, int i3) {
        return this.f2100a.k(i, i2, i3);
    }

    @Override // com.ifpdos.autotest.api.IGamma
    public boolean start() {
        return b.c.d.d.d.a("echo hide >/proc/msp/hifb0").f1514a == 0;
    }
}
