com.google.android.gms.maps.model.internal.C0196b.java Source code

Java tutorial

Introduction

Here is the source code for com.google.android.gms.maps.model.internal.C0196b.java

Source

package com.google.android.gms.maps.model.internal;

import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import android.support.v4.media.TransportMediator;
import android.support.v4.widget.ViewDragHelper;
import com.google.android.gms.C0048R;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.games.GamesClient;
import com.google.android.gms.location.DetectedActivity;
import com.google.android.gms.maps.model.LatLng;

/* renamed from: com.google.android.gms.maps.model.internal.b */
public interface C0196b extends IInterface {

    /* renamed from: com.google.android.gms.maps.model.internal.b.a */
    public static abstract class C0531a extends Binder implements C0196b {

        /* renamed from: com.google.android.gms.maps.model.internal.b.a.a */
        private static class C0530a implements C0196b {
            private IBinder dG;

            C0530a(IBinder iBinder) {
                this.dG = iBinder;
            }

            public boolean m1588a(C0196b c0196b) throws RemoteException {
                boolean z = false;
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.google.android.gms.maps.model.internal.ICircleDelegate");
                    obtain.writeStrongBinder(c0196b != null ? c0196b.asBinder() : null);
                    this.dG.transact(17, obtain, obtain2, 0);
                    obtain2.readException();
                    if (obtain2.readInt() != 0) {
                        z = true;
                    }
                    obtain2.recycle();
                    obtain.recycle();
                    return z;
                } catch (Throwable th) {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public IBinder asBinder() {
                return this.dG;
            }

            public LatLng getCenter() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.google.android.gms.maps.model.internal.ICircleDelegate");
                    this.dG.transact(4, obtain, obtain2, 0);
                    obtain2.readException();
                    LatLng createFromParcel = obtain2.readInt() != 0 ? LatLng.CREATOR.createFromParcel(obtain2)
                            : null;
                    obtain2.recycle();
                    obtain.recycle();
                    return createFromParcel;
                } catch (Throwable th) {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int getFillColor() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.google.android.gms.maps.model.internal.ICircleDelegate");
                    this.dG.transact(12, obtain, obtain2, 0);
                    obtain2.readException();
                    int readInt = obtain2.readInt();
                    return readInt;
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public String getId() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.google.android.gms.maps.model.internal.ICircleDelegate");
                    this.dG.transact(2, obtain, obtain2, 0);
                    obtain2.readException();
                    String readString = obtain2.readString();
                    return readString;
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public double getRadius() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.google.android.gms.maps.model.internal.ICircleDelegate");
                    this.dG.transact(6, obtain, obtain2, 0);
                    obtain2.readException();
                    double readDouble = obtain2.readDouble();
                    return readDouble;
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int getStrokeColor() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.google.android.gms.maps.model.internal.ICircleDelegate");
                    this.dG.transact(10, obtain, obtain2, 0);
                    obtain2.readException();
                    int readInt = obtain2.readInt();
                    return readInt;
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public float getStrokeWidth() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.google.android.gms.maps.model.internal.ICircleDelegate");
                    this.dG.transact(8, obtain, obtain2, 0);
                    obtain2.readException();
                    float readFloat = obtain2.readFloat();
                    return readFloat;
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public float getZIndex() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.google.android.gms.maps.model.internal.ICircleDelegate");
                    this.dG.transact(14, obtain, obtain2, 0);
                    obtain2.readException();
                    float readFloat = obtain2.readFloat();
                    return readFloat;
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int hashCodeRemote() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.google.android.gms.maps.model.internal.ICircleDelegate");
                    this.dG.transact(18, obtain, obtain2, 0);
                    obtain2.readException();
                    int readInt = obtain2.readInt();
                    return readInt;
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public boolean isVisible() throws RemoteException {
                boolean z = false;
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.google.android.gms.maps.model.internal.ICircleDelegate");
                    this.dG.transact(16, obtain, obtain2, 0);
                    obtain2.readException();
                    if (obtain2.readInt() != 0) {
                        z = true;
                    }
                    obtain2.recycle();
                    obtain.recycle();
                    return z;
                } catch (Throwable th) {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public void remove() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.google.android.gms.maps.model.internal.ICircleDelegate");
                    this.dG.transact(1, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public void setCenter(LatLng center) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.google.android.gms.maps.model.internal.ICircleDelegate");
                    if (center != null) {
                        obtain.writeInt(1);
                        center.writeToParcel(obtain, 0);
                    } else {
                        obtain.writeInt(0);
                    }
                    this.dG.transact(3, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public void setFillColor(int color) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.google.android.gms.maps.model.internal.ICircleDelegate");
                    obtain.writeInt(color);
                    this.dG.transact(11, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public void setRadius(double radius) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.google.android.gms.maps.model.internal.ICircleDelegate");
                    obtain.writeDouble(radius);
                    this.dG.transact(5, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public void setStrokeColor(int color) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.google.android.gms.maps.model.internal.ICircleDelegate");
                    obtain.writeInt(color);
                    this.dG.transact(9, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public void setStrokeWidth(float width) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.google.android.gms.maps.model.internal.ICircleDelegate");
                    obtain.writeFloat(width);
                    this.dG.transact(7, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public void setVisible(boolean visible) throws RemoteException {
                int i = 0;
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.google.android.gms.maps.model.internal.ICircleDelegate");
                    if (visible) {
                        i = 1;
                    }
                    obtain.writeInt(i);
                    this.dG.transact(15, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public void setZIndex(float zIndex) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.google.android.gms.maps.model.internal.ICircleDelegate");
                    obtain.writeFloat(zIndex);
                    this.dG.transact(13, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }
        }

        public static C0196b ad(IBinder iBinder) {
            if (iBinder == null) {
                return null;
            }
            IInterface queryLocalInterface = iBinder
                    .queryLocalInterface("com.google.android.gms.maps.model.internal.ICircleDelegate");
            return (queryLocalInterface == null || !(queryLocalInterface instanceof C0196b)) ? new C0530a(iBinder)
                    : (C0196b) queryLocalInterface;
        }

        public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException {
            int i = 0;
            float strokeWidth;
            boolean isVisible;
            switch (code) {
            case DetectedActivity.ON_BICYCLE /*1*/:
                data.enforceInterface("com.google.android.gms.maps.model.internal.ICircleDelegate");
                remove();
                reply.writeNoException();
                return true;
            case DetectedActivity.ON_FOOT /*2*/:
                data.enforceInterface("com.google.android.gms.maps.model.internal.ICircleDelegate");
                String id = getId();
                reply.writeNoException();
                reply.writeString(id);
                return true;
            case DetectedActivity.STILL /*3*/:
                data.enforceInterface("com.google.android.gms.maps.model.internal.ICircleDelegate");
                setCenter(data.readInt() != 0 ? LatLng.CREATOR.createFromParcel(data) : null);
                reply.writeNoException();
                return true;
            case DetectedActivity.UNKNOWN /*4*/:
                data.enforceInterface("com.google.android.gms.maps.model.internal.ICircleDelegate");
                LatLng center = getCenter();
                reply.writeNoException();
                if (center != null) {
                    reply.writeInt(1);
                    center.writeToParcel(reply, 1);
                    return true;
                }
                reply.writeInt(0);
                return true;
            case DetectedActivity.TILTING /*5*/:
                data.enforceInterface("com.google.android.gms.maps.model.internal.ICircleDelegate");
                setRadius(data.readDouble());
                reply.writeNoException();
                return true;
            case GamesClient.STATUS_NETWORK_ERROR_OPERATION_FAILED /*6*/:
                data.enforceInterface("com.google.android.gms.maps.model.internal.ICircleDelegate");
                double radius = getRadius();
                reply.writeNoException();
                reply.writeDouble(radius);
                return true;
            case GamesClient.STATUS_LICENSE_CHECK_FAILED /*7*/:
                data.enforceInterface("com.google.android.gms.maps.model.internal.ICircleDelegate");
                setStrokeWidth(data.readFloat());
                reply.writeNoException();
                return true;
            case GamesClient.STATUS_APP_MISCONFIGURED /*8*/:
                data.enforceInterface("com.google.android.gms.maps.model.internal.ICircleDelegate");
                strokeWidth = getStrokeWidth();
                reply.writeNoException();
                reply.writeFloat(strokeWidth);
                return true;
            case ConnectionResult.SERVICE_INVALID /*9*/:
                data.enforceInterface("com.google.android.gms.maps.model.internal.ICircleDelegate");
                setStrokeColor(data.readInt());
                reply.writeNoException();
                return true;
            case ConnectionResult.DEVELOPER_ERROR /*10*/:
                data.enforceInterface("com.google.android.gms.maps.model.internal.ICircleDelegate");
                i = getStrokeColor();
                reply.writeNoException();
                reply.writeInt(i);
                return true;
            case ConnectionResult.LICENSE_CHECK_FAILED /*11*/:
                data.enforceInterface("com.google.android.gms.maps.model.internal.ICircleDelegate");
                setFillColor(data.readInt());
                reply.writeNoException();
                return true;
            case ConnectionResult.DATE_INVALID /*12*/:
                data.enforceInterface("com.google.android.gms.maps.model.internal.ICircleDelegate");
                i = getFillColor();
                reply.writeNoException();
                reply.writeInt(i);
                return true;
            case C0048R.styleable.MapAttrs_zOrderOnTop /*13*/:
                data.enforceInterface("com.google.android.gms.maps.model.internal.ICircleDelegate");
                setZIndex(data.readFloat());
                reply.writeNoException();
                return true;
            case 14:
                data.enforceInterface("com.google.android.gms.maps.model.internal.ICircleDelegate");
                strokeWidth = getZIndex();
                reply.writeNoException();
                reply.writeFloat(strokeWidth);
                return true;
            case ViewDragHelper.EDGE_ALL /*15*/:
                boolean z;
                data.enforceInterface("com.google.android.gms.maps.model.internal.ICircleDelegate");
                if (data.readInt() != 0) {
                    z = true;
                }
                setVisible(z);
                reply.writeNoException();
                return true;
            case TransportMediator.FLAG_KEY_MEDIA_PAUSE /*16*/:
                data.enforceInterface("com.google.android.gms.maps.model.internal.ICircleDelegate");
                isVisible = isVisible();
                reply.writeNoException();
                if (isVisible) {
                    i = 1;
                }
                reply.writeInt(i);
                return true;
            case 17:
                data.enforceInterface("com.google.android.gms.maps.model.internal.ICircleDelegate");
                isVisible = m759a(C0531a.ad(data.readStrongBinder()));
                reply.writeNoException();
                if (isVisible) {
                    i = 1;
                }
                reply.writeInt(i);
                return true;
            case 18:
                data.enforceInterface("com.google.android.gms.maps.model.internal.ICircleDelegate");
                i = hashCodeRemote();
                reply.writeNoException();
                reply.writeInt(i);
                return true;
            case 1598968902:
                reply.writeString("com.google.android.gms.maps.model.internal.ICircleDelegate");
                return true;
            default:
                return super.onTransact(code, data, reply, flags);
            }
        }
    }

    boolean m759a(C0196b c0196b) throws RemoteException;

    LatLng getCenter() throws RemoteException;

    int getFillColor() throws RemoteException;

    String getId() throws RemoteException;

    double getRadius() throws RemoteException;

    int getStrokeColor() throws RemoteException;

    float getStrokeWidth() throws RemoteException;

    float getZIndex() throws RemoteException;

    int hashCodeRemote() throws RemoteException;

    boolean isVisible() throws RemoteException;

    void remove() throws RemoteException;

    void setCenter(LatLng latLng) throws RemoteException;

    void setFillColor(int i) throws RemoteException;

    void setRadius(double d) throws RemoteException;

    void setStrokeColor(int i) throws RemoteException;

    void setStrokeWidth(float f) throws RemoteException;

    void setVisible(boolean z) throws RemoteException;

    void setZIndex(float f) throws RemoteException;
}