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 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 e; public LWm f; public Sts g; public IeS h; public HBt i; public AHS j; private final ReadWriteLock k; private GoogleMap l; private CameraPosition m; /* renamed from: o, reason: collision with root package name */ private C8949daW.RVV f8883o; /* renamed from: o.daW$HBt */ /* loaded from: classes2.dex */ public interface HBt { boolean a(); } /* renamed from: o.daW$IeS */ /* loaded from: classes2.dex */ public interface IeS { } /* renamed from: o.daW$LWm */ /* loaded from: classes2.dex */ public interface LWm { boolean a(T t); } /* renamed from: o.daW$Sts */ /* loaded from: classes2.dex */ public interface Sts { } 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.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 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>> { 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> 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); } }