You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
213 lines
5.4 KiB
213 lines
5.4 KiB
package p023h0;
|
|
|
|
import android.view.View;
|
|
import android.view.ViewParent;
|
|
|
|
/* renamed from: h0.v0 */
|
|
/* loaded from: classes.dex */
|
|
public class C0967v0 {
|
|
|
|
/* renamed from: a */
|
|
public ViewParent f2500a;
|
|
|
|
/* renamed from: b */
|
|
public ViewParent f2501b;
|
|
|
|
/* renamed from: c */
|
|
public final View f2502c;
|
|
|
|
/* renamed from: d */
|
|
public boolean f2503d;
|
|
|
|
/* renamed from: e */
|
|
public int[] f2504e;
|
|
|
|
public C0967v0(View view) {
|
|
this.f2502c = view;
|
|
}
|
|
|
|
/* renamed from: a */
|
|
public boolean m2472a(float f, float f2, boolean z) {
|
|
ViewParent m2466g;
|
|
if (!m2463j() || (m2466g = m2466g(0)) == null) {
|
|
return false;
|
|
}
|
|
return C0860i4.m2677a(m2466g, this.f2502c, f, f2, z);
|
|
}
|
|
|
|
/* renamed from: b */
|
|
public boolean m2471b(float f, float f2) {
|
|
ViewParent m2466g;
|
|
if (!m2463j() || (m2466g = m2466g(0)) == null) {
|
|
return false;
|
|
}
|
|
return C0860i4.m2676b(m2466g, this.f2502c, f, f2);
|
|
}
|
|
|
|
/* renamed from: c */
|
|
public boolean m2470c(int i, int i2, int[] iArr, int[] iArr2, int i3) {
|
|
ViewParent m2466g;
|
|
int i4;
|
|
int i5;
|
|
if (!m2463j() || (m2466g = m2466g(i3)) == null) {
|
|
return false;
|
|
}
|
|
if (i == 0 && i2 == 0) {
|
|
if (iArr2 != null) {
|
|
iArr2[0] = 0;
|
|
iArr2[1] = 0;
|
|
return false;
|
|
}
|
|
return false;
|
|
}
|
|
if (iArr2 != null) {
|
|
this.f2502c.getLocationInWindow(iArr2);
|
|
i4 = iArr2[0];
|
|
i5 = iArr2[1];
|
|
} else {
|
|
i4 = 0;
|
|
i5 = 0;
|
|
}
|
|
if (iArr == null) {
|
|
iArr = m2465h();
|
|
}
|
|
iArr[0] = 0;
|
|
iArr[1] = 0;
|
|
C0860i4.m2675c(m2466g, this.f2502c, i, i2, iArr, i3);
|
|
if (iArr2 != null) {
|
|
this.f2502c.getLocationInWindow(iArr2);
|
|
iArr2[0] = iArr2[0] - i4;
|
|
iArr2[1] = iArr2[1] - i5;
|
|
}
|
|
return (iArr[0] == 0 && iArr[1] == 0) ? false : true;
|
|
}
|
|
|
|
/* renamed from: d */
|
|
public void m2469d(int i, int i2, int i3, int i4, int[] iArr, int i5, int[] iArr2) {
|
|
m2467f(i, i2, i3, i4, iArr, i5, iArr2);
|
|
}
|
|
|
|
/* renamed from: e */
|
|
public boolean m2468e(int i, int i2, int i3, int i4, int[] iArr) {
|
|
return m2467f(i, i2, i3, i4, iArr, 0, null);
|
|
}
|
|
|
|
/* renamed from: f */
|
|
public final boolean m2467f(int i, int i2, int i3, int i4, int[] iArr, int i5, int[] iArr2) {
|
|
ViewParent m2466g;
|
|
int i6;
|
|
int i7;
|
|
int[] iArr3;
|
|
if (!m2463j() || (m2466g = m2466g(i5)) == null) {
|
|
return false;
|
|
}
|
|
if (i == 0 && i2 == 0 && i3 == 0 && i4 == 0) {
|
|
if (iArr != null) {
|
|
iArr[0] = 0;
|
|
iArr[1] = 0;
|
|
}
|
|
return false;
|
|
}
|
|
if (iArr != null) {
|
|
this.f2502c.getLocationInWindow(iArr);
|
|
i6 = iArr[0];
|
|
i7 = iArr[1];
|
|
} else {
|
|
i6 = 0;
|
|
i7 = 0;
|
|
}
|
|
if (iArr2 == null) {
|
|
int[] m2465h = m2465h();
|
|
m2465h[0] = 0;
|
|
m2465h[1] = 0;
|
|
iArr3 = m2465h;
|
|
} else {
|
|
iArr3 = iArr2;
|
|
}
|
|
C0860i4.m2674d(m2466g, this.f2502c, i, i2, i3, i4, i5, iArr3);
|
|
if (iArr != null) {
|
|
this.f2502c.getLocationInWindow(iArr);
|
|
iArr[0] = iArr[0] - i6;
|
|
iArr[1] = iArr[1] - i7;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
/* renamed from: g */
|
|
public final ViewParent m2466g(int i) {
|
|
if (i != 0) {
|
|
if (i != 1) {
|
|
return null;
|
|
}
|
|
return this.f2501b;
|
|
}
|
|
return this.f2500a;
|
|
}
|
|
|
|
/* renamed from: h */
|
|
public final int[] m2465h() {
|
|
if (this.f2504e == null) {
|
|
this.f2504e = new int[2];
|
|
}
|
|
return this.f2504e;
|
|
}
|
|
|
|
/* renamed from: i */
|
|
public boolean m2464i(int i) {
|
|
return m2466g(i) != null;
|
|
}
|
|
|
|
/* renamed from: j */
|
|
public boolean m2463j() {
|
|
return this.f2503d;
|
|
}
|
|
|
|
/* renamed from: k */
|
|
public void m2462k(boolean z) {
|
|
if (this.f2503d) {
|
|
C0829h1.m2831c0(this.f2502c);
|
|
}
|
|
this.f2503d = z;
|
|
}
|
|
|
|
/* renamed from: l */
|
|
public final void m2461l(int i, ViewParent viewParent) {
|
|
if (i == 0) {
|
|
this.f2500a = viewParent;
|
|
} else if (i != 1) {
|
|
} else {
|
|
this.f2501b = viewParent;
|
|
}
|
|
}
|
|
|
|
/* renamed from: m */
|
|
public boolean m2460m(int i, int i2) {
|
|
if (m2464i(i2)) {
|
|
return true;
|
|
}
|
|
if (m2463j()) {
|
|
View view = this.f2502c;
|
|
for (ViewParent parent = this.f2502c.getParent(); parent != null; parent = parent.getParent()) {
|
|
if (C0860i4.m2672f(parent, view, this.f2502c, i, i2)) {
|
|
m2461l(i2, parent);
|
|
C0860i4.m2673e(parent, view, this.f2502c, i, i2);
|
|
return true;
|
|
}
|
|
if (parent instanceof View) {
|
|
view = (View) parent;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
/* renamed from: n */
|
|
public void m2459n(int i) {
|
|
ViewParent m2466g = m2466g(i);
|
|
if (m2466g != null) {
|
|
C0860i4.m2671g(m2466g, this.f2502c, i);
|
|
m2461l(i, null);
|
|
}
|
|
}
|
|
} |