141 lines
4.5 KiB
Java
141 lines
4.5 KiB
Java
package o;
|
|
|
|
import android.content.Context;
|
|
import android.os.AsyncTask;
|
|
import com.google.android.gms.maps.GoogleMap;
|
|
import com.google.android.gms.maps.model.CameraPosition;
|
|
import com.google.android.gms.maps.model.Marker;
|
|
import java.util.Set;
|
|
import java.util.concurrent.locks.ReadWriteLock;
|
|
import java.util.concurrent.locks.ReentrantReadWriteLock;
|
|
import o.YPs;
|
|
import o.mzN;
|
|
|
|
/* renamed from: o.daW, reason: case insensitive filesystem */
|
|
/* loaded from: classes2.dex */
|
|
public final class C8949daW<T extends YPs> implements GoogleMap.OnCameraIdleListener, GoogleMap.OnMarkerClickListener, GoogleMap.OnInfoWindowClickListener {
|
|
public final mzN.HBt a;
|
|
public final ReadWriteLock b;
|
|
public final mzN c;
|
|
public final mzN.HBt d;
|
|
public hHA<T> e;
|
|
public LWm<T> f;
|
|
public Sts<T> g;
|
|
public IeS<T> h;
|
|
public HBt<T> i;
|
|
public AHS<T> j;
|
|
private final ReadWriteLock k;
|
|
private GoogleMap l;
|
|
private CameraPosition m;
|
|
|
|
/* renamed from: o, reason: collision with root package name */
|
|
private C8949daW<T>.RVV f8883o;
|
|
|
|
/* renamed from: o.daW$HBt */
|
|
/* loaded from: classes2.dex */
|
|
public interface HBt<T extends YPs> {
|
|
boolean a();
|
|
}
|
|
|
|
/* renamed from: o.daW$IeS */
|
|
/* loaded from: classes2.dex */
|
|
public interface IeS<T extends YPs> {
|
|
}
|
|
|
|
/* renamed from: o.daW$LWm */
|
|
/* loaded from: classes2.dex */
|
|
public interface LWm<T extends YPs> {
|
|
boolean a(T t);
|
|
}
|
|
|
|
/* renamed from: o.daW$Sts */
|
|
/* loaded from: classes2.dex */
|
|
public interface Sts<T extends YPs> {
|
|
}
|
|
|
|
public C8949daW(Context context, GoogleMap googleMap) {
|
|
this(context, googleMap, new mzN(googleMap));
|
|
}
|
|
|
|
private C8949daW(Context context, GoogleMap googleMap, mzN mzn) {
|
|
this.b = new ReentrantReadWriteLock();
|
|
this.k = new ReentrantReadWriteLock();
|
|
this.l = googleMap;
|
|
this.c = mzn;
|
|
this.d = new mzN.HBt(mzn);
|
|
this.a = new mzN.HBt(mzn);
|
|
this.j = new XxC(context, googleMap, this);
|
|
this.e = new TvW(new C17610yKQ(new UGa()));
|
|
this.f8883o = new RVV(this, (byte) 0);
|
|
this.j.c();
|
|
}
|
|
|
|
public final void b() {
|
|
this.k.writeLock().lock();
|
|
try {
|
|
this.f8883o.cancel(true);
|
|
C8949daW<T>.RVV rvv = new RVV(this, (byte) 0);
|
|
this.f8883o = rvv;
|
|
rvv.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, Float.valueOf(this.l.getCameraPosition().zoom));
|
|
} finally {
|
|
this.k.writeLock().unlock();
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.maps.GoogleMap.OnCameraIdleListener
|
|
public final void onCameraIdle() {
|
|
AHS<T> ahs = this.j;
|
|
if (ahs instanceof GoogleMap.OnCameraIdleListener) {
|
|
((GoogleMap.OnCameraIdleListener) ahs).onCameraIdle();
|
|
}
|
|
this.l.getCameraPosition();
|
|
CameraPosition cameraPosition = this.m;
|
|
if (cameraPosition == null || cameraPosition.zoom != this.l.getCameraPosition().zoom) {
|
|
this.m = this.l.getCameraPosition();
|
|
b();
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: o.daW$RVV */
|
|
/* loaded from: classes2.dex */
|
|
public class RVV extends AsyncTask<Float, Void, Set<? extends InterfaceC5208boh<T>>> {
|
|
private C8949daW c;
|
|
|
|
private RVV(C8949daW c8949daW) {
|
|
this.c = c8949daW;
|
|
}
|
|
|
|
/* synthetic */ RVV(C8949daW c8949daW, byte b) {
|
|
this(c8949daW);
|
|
}
|
|
|
|
@Override // android.os.AsyncTask
|
|
protected final /* synthetic */ void onPostExecute(Object obj) {
|
|
this.c.j.e((Set) obj);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
@Override // android.os.AsyncTask
|
|
/* renamed from: b, reason: merged with bridge method [inline-methods] */
|
|
public Set<? extends InterfaceC5208boh<T>> doInBackground(Float... fArr) {
|
|
this.c.b.readLock().lock();
|
|
try {
|
|
return this.c.e.a(fArr[0].floatValue());
|
|
} finally {
|
|
this.c.b.readLock().unlock();
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.maps.GoogleMap.OnInfoWindowClickListener
|
|
public final void onInfoWindowClick(Marker marker) {
|
|
this.c.onInfoWindowClick(marker);
|
|
}
|
|
|
|
@Override // com.google.android.gms.maps.GoogleMap.OnMarkerClickListener
|
|
public final boolean onMarkerClick(Marker marker) {
|
|
return this.c.onMarkerClick(marker);
|
|
}
|
|
}
|