package com.google.android.gms.maps; import android.graphics.Point; import android.os.RemoteException; import com.google.android.gms.common.internal.Preconditions; import com.google.android.gms.maps.internal.ICameraUpdateFactoryDelegate; import com.google.android.gms.maps.model.CameraPosition; import com.google.android.gms.maps.model.LatLng; import com.google.android.gms.maps.model.LatLngBounds; import com.google.android.gms.maps.model.RuntimeRemoteException; /* JADX INFO: compiled from: com.google.android.gms:play-services-maps@@19.0.0 */ /* JADX INFO: loaded from: classes2.dex */ public final class CameraUpdateFactory { private static ICameraUpdateFactoryDelegate zza; private CameraUpdateFactory() { } public static CameraUpdate newCameraPosition(CameraPosition cameraPosition) { Preconditions.checkNotNull(cameraPosition, "cameraPosition must not be null"); try { return new CameraUpdate(zzb().newCameraPosition(cameraPosition)); } catch (RemoteException e) { throw new RuntimeRemoteException(e); } } public static CameraUpdate newLatLng(LatLng latLng) { Preconditions.checkNotNull(latLng, "latLng must not be null"); try { return new CameraUpdate(zzb().newLatLng(latLng)); } catch (RemoteException e) { throw new RuntimeRemoteException(e); } } public static CameraUpdate newLatLngBounds(LatLngBounds latLngBounds, int i) { Preconditions.checkNotNull(latLngBounds, "bounds must not be null"); try { return new CameraUpdate(zzb().newLatLngBounds(latLngBounds, i)); } catch (RemoteException e) { throw new RuntimeRemoteException(e); } } public static CameraUpdate newLatLngZoom(LatLng latLng, float f) { Preconditions.checkNotNull(latLng, "latLng must not be null"); try { return new CameraUpdate(zzb().newLatLngZoom(latLng, f)); } catch (RemoteException e) { throw new RuntimeRemoteException(e); } } public static CameraUpdate scrollBy(float f, float f2) { try { return new CameraUpdate(zzb().scrollBy(f, f2)); } catch (RemoteException e) { throw new RuntimeRemoteException(e); } } public static CameraUpdate zoomBy(float f) { try { return new CameraUpdate(zzb().zoomBy(f)); } catch (RemoteException e) { throw new RuntimeRemoteException(e); } } public static CameraUpdate zoomIn() { try { return new CameraUpdate(zzb().zoomIn()); } catch (RemoteException e) { throw new RuntimeRemoteException(e); } } public static CameraUpdate zoomOut() { try { return new CameraUpdate(zzb().zoomOut()); } catch (RemoteException e) { throw new RuntimeRemoteException(e); } } public static CameraUpdate zoomTo(float f) { try { return new CameraUpdate(zzb().zoomTo(f)); } catch (RemoteException e) { throw new RuntimeRemoteException(e); } } public static void zza(ICameraUpdateFactoryDelegate iCameraUpdateFactoryDelegate) { zza = (ICameraUpdateFactoryDelegate) Preconditions.checkNotNull(iCameraUpdateFactoryDelegate); } private static ICameraUpdateFactoryDelegate zzb() { return (ICameraUpdateFactoryDelegate) Preconditions.checkNotNull(zza, "CameraUpdateFactory is not initialized"); } public static CameraUpdate zoomBy(float f, Point point) { Preconditions.checkNotNull(point, "focus must not be null"); try { return new CameraUpdate(zzb().zoomByWithFocus(f, point.x, point.y)); } catch (RemoteException e) { throw new RuntimeRemoteException(e); } } public static CameraUpdate newLatLngBounds(LatLngBounds latLngBounds, int i, int i2, int i3) { Preconditions.checkNotNull(latLngBounds, "bounds must not be null"); try { return new CameraUpdate(zzb().newLatLngBoundsWithSize(latLngBounds, i, i2, i3)); } catch (RemoteException e) { throw new RuntimeRemoteException(e); } } }