package com.pingan.ai; import com.pingan.ai.face.utils.PaFaceLogger; import java.util.ArrayList; import pingan.ai.paverify.vertify.PFaceDetector; /* loaded from: classes3.dex */ public class g { public float[] a = new float[6]; public ArrayList b = new ArrayList<>(); public ArrayList c = new ArrayList<>(); public ArrayList d = new ArrayList<>(); public ArrayList e = new ArrayList<>(); public ArrayList f = new ArrayList<>(); public ArrayList g = new ArrayList<>(); public ArrayList h = new ArrayList<>(); public ArrayList i = new ArrayList<>(); public ArrayList j = new ArrayList<>(); public d k; public g(d dVar) { this.k = dVar; } public void a() { float f = this.a[0]; if (f < 0.5d) { this.b.add(Float.valueOf(f)); } else { this.c.add(Float.valueOf(f)); } this.e.add(Float.valueOf(this.a[0])); this.f.add(Float.valueOf(this.a[1])); this.g.add(Float.valueOf(this.a[2])); this.h.add(Float.valueOf(this.a[3])); this.i.add(Float.valueOf(this.a[4])); this.j.add(Float.valueOf(this.a[5])); } public float[] b() { float[] nativeGetPoseTrends = PFaceDetector.nativeGetPoseTrends(); float f = nativeGetPoseTrends[0]; float f2 = nativeGetPoseTrends[1]; float f3 = nativeGetPoseTrends[2]; float[] nativeActionMouthTrends = PFaceDetector.nativeActionMouthTrends(); float[] nativeActionEyesTrends = PFaceDetector.nativeActionEyesTrends(); PaFaceLogger.i("PaFace", "calMotionTrends end"); float[] fArr = this.a; fArr[0] = f; fArr[1] = f2; fArr[2] = f3; fArr[3] = nativeActionMouthTrends[0]; fArr[4] = nativeActionEyesTrends[0]; fArr[5] = nativeActionEyesTrends[1]; return fArr; } public void d() { this.b.clear(); this.c.clear(); this.d.clear(); this.e.clear(); this.g.clear(); this.f.clear(); this.h.clear(); this.i.clear(); this.j.clear(); } public void e() { StringBuilder sb = new StringBuilder(); sb.append(this.b.size()); sb.append(" : "); for (int i = 0; i < this.b.size(); i++) { sb.append(this.b.get(i)); sb.append(";"); } d dVar = this.k; StringBuilder sb2 = new StringBuilder(); sb2.append(c.a()); sb2.append(" showCalMotionTrends poseYawLeftTrends"); sb2.append(sb.toString()); dVar.c(sb2.toString()); sb.setLength(0); sb.append(this.c.size()); sb.append(" : "); for (int i2 = 0; i2 < this.c.size(); i2++) { sb.append(this.c.get(i2)); sb.append(";"); } d dVar2 = this.k; StringBuilder sb3 = new StringBuilder(); sb3.append(c.a()); sb3.append(" showCalMotionTrends poseYawRightTrends"); sb3.append(sb.toString()); dVar2.c(sb3.toString()); sb.setLength(0); sb.append(this.e.size()); sb.append(" : "); for (int i3 = 0; i3 < this.e.size(); i3++) { sb.append(this.e.get(i3)); sb.append(";"); } d dVar3 = this.k; StringBuilder sb4 = new StringBuilder(); sb4.append(c.a()); sb4.append(" showCalMotionTrends poseYawTrends"); sb4.append(sb.toString()); dVar3.c(sb4.toString()); sb.setLength(0); sb.append(this.g.size()); sb.append(" : "); for (int i4 = 0; i4 < this.g.size(); i4++) { sb.append(this.g.get(i4)); sb.append(";"); } d dVar4 = this.k; StringBuilder sb5 = new StringBuilder(); sb5.append(c.a()); sb5.append(" showCalMotionTrends posePitchTrends"); sb5.append(sb.toString()); dVar4.c(sb5.toString()); sb.setLength(0); sb.append(this.f.size()); sb.append(" : "); for (int i5 = 0; i5 < this.f.size(); i5++) { sb.append(this.f.get(i5)); sb.append(";"); } d dVar5 = this.k; StringBuilder sb6 = new StringBuilder(); sb6.append(c.a()); sb6.append(" showCalMotionTrends poseRollTrends"); sb6.append(sb.toString()); dVar5.c(sb6.toString()); sb.setLength(0); sb.append(this.d.size()); sb.append(" : "); for (int i6 = 0; i6 < this.d.size(); i6++) { sb.append(this.d.get(i6)); sb.append(";"); } d dVar6 = this.k; StringBuilder sb7 = new StringBuilder(); sb7.append(c.a()); sb7.append(" showCalMotionTrends nodeTrends"); sb7.append(sb.toString()); dVar6.c(sb7.toString()); sb.setLength(0); sb.append(this.h.size()); sb.append(" : "); for (int i7 = 0; i7 < this.h.size(); i7++) { sb.append(this.h.get(i7)); sb.append(";"); } d dVar7 = this.k; StringBuilder sb8 = new StringBuilder(); sb8.append(c.a()); sb8.append(" showCalMotionTrends mouthTrends"); sb8.append(sb.toString()); dVar7.c(sb8.toString()); sb.setLength(0); sb.append(this.i.size()); sb.append(" : "); for (int i8 = 0; i8 < this.i.size(); i8++) { sb.append(this.i.get(i8)); sb.append(";"); } d dVar8 = this.k; StringBuilder sb9 = new StringBuilder(); sb9.append(c.a()); sb9.append(" showCalMotionTrends eyeLeftTrends"); sb9.append(sb.toString()); dVar8.c(sb9.toString()); sb.setLength(0); sb.append(this.j.size()); sb.append(" : "); for (int i9 = 0; i9 < this.j.size(); i9++) { sb.append(this.j.get(i9)); sb.append(";"); } d dVar9 = this.k; StringBuilder sb10 = new StringBuilder(); sb10.append(c.a()); sb10.append(" showCalMotionTrends eyeRightTrends"); sb10.append(sb.toString()); dVar9.c(sb10.toString()); } public float[] c() { return this.a; } }