Java tutorial
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.util.TimeUtils; 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; import java.util.List; /* renamed from: com.google.android.gms.maps.model.internal.e */ public interface C0199e extends IInterface { /* renamed from: com.google.android.gms.maps.model.internal.e.a */ public static abstract class C0537a extends Binder implements C0199e { /* renamed from: com.google.android.gms.maps.model.internal.e.a.a */ private static class C0536a implements C0199e { private IBinder dG; C0536a(IBinder iBinder) { this.dG = iBinder; } public boolean m1594a(C0199e c0199e) throws RemoteException { boolean z = false; Parcel obtain = Parcel.obtain(); Parcel obtain2 = Parcel.obtain(); try { obtain.writeInterfaceToken("com.google.android.gms.maps.model.internal.IPolygonDelegate"); obtain.writeStrongBinder(c0199e != null ? c0199e.asBinder() : null); this.dG.transact(19, 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 int getFillColor() throws RemoteException { Parcel obtain = Parcel.obtain(); Parcel obtain2 = Parcel.obtain(); try { obtain.writeInterfaceToken("com.google.android.gms.maps.model.internal.IPolygonDelegate"); this.dG.transact(12, obtain, obtain2, 0); obtain2.readException(); int readInt = obtain2.readInt(); return readInt; } finally { obtain2.recycle(); obtain.recycle(); } } public List getHoles() throws RemoteException { Parcel obtain = Parcel.obtain(); Parcel obtain2 = Parcel.obtain(); try { obtain.writeInterfaceToken("com.google.android.gms.maps.model.internal.IPolygonDelegate"); this.dG.transact(6, obtain, obtain2, 0); obtain2.readException(); List readArrayList = obtain2.readArrayList(getClass().getClassLoader()); return readArrayList; } 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.IPolygonDelegate"); this.dG.transact(2, obtain, obtain2, 0); obtain2.readException(); String readString = obtain2.readString(); return readString; } finally { obtain2.recycle(); obtain.recycle(); } } public List<LatLng> getPoints() throws RemoteException { Parcel obtain = Parcel.obtain(); Parcel obtain2 = Parcel.obtain(); try { obtain.writeInterfaceToken("com.google.android.gms.maps.model.internal.IPolygonDelegate"); this.dG.transact(4, obtain, obtain2, 0); obtain2.readException(); List<LatLng> createTypedArrayList = obtain2.createTypedArrayList(LatLng.CREATOR); return createTypedArrayList; } 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.IPolygonDelegate"); 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.IPolygonDelegate"); 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.IPolygonDelegate"); 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.IPolygonDelegate"); this.dG.transact(20, obtain, obtain2, 0); obtain2.readException(); int readInt = obtain2.readInt(); return readInt; } finally { obtain2.recycle(); obtain.recycle(); } } public boolean isGeodesic() throws RemoteException { boolean z = false; Parcel obtain = Parcel.obtain(); Parcel obtain2 = Parcel.obtain(); try { obtain.writeInterfaceToken("com.google.android.gms.maps.model.internal.IPolygonDelegate"); this.dG.transact(18, 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 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.IPolygonDelegate"); 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.IPolygonDelegate"); this.dG.transact(1, 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.IPolygonDelegate"); obtain.writeInt(color); this.dG.transact(11, obtain, obtain2, 0); obtain2.readException(); } finally { obtain2.recycle(); obtain.recycle(); } } public void setGeodesic(boolean geodesic) throws RemoteException { int i = 0; Parcel obtain = Parcel.obtain(); Parcel obtain2 = Parcel.obtain(); try { obtain.writeInterfaceToken("com.google.android.gms.maps.model.internal.IPolygonDelegate"); if (geodesic) { i = 1; } obtain.writeInt(i); this.dG.transact(17, obtain, obtain2, 0); obtain2.readException(); } finally { obtain2.recycle(); obtain.recycle(); } } public void setHoles(List holes) throws RemoteException { Parcel obtain = Parcel.obtain(); Parcel obtain2 = Parcel.obtain(); try { obtain.writeInterfaceToken("com.google.android.gms.maps.model.internal.IPolygonDelegate"); obtain.writeList(holes); this.dG.transact(5, obtain, obtain2, 0); obtain2.readException(); } finally { obtain2.recycle(); obtain.recycle(); } } public void setPoints(List<LatLng> points) throws RemoteException { Parcel obtain = Parcel.obtain(); Parcel obtain2 = Parcel.obtain(); try { obtain.writeInterfaceToken("com.google.android.gms.maps.model.internal.IPolygonDelegate"); obtain.writeTypedList(points); this.dG.transact(3, 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.IPolygonDelegate"); 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.IPolygonDelegate"); 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.IPolygonDelegate"); 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.IPolygonDelegate"); obtain.writeFloat(zIndex); this.dG.transact(13, obtain, obtain2, 0); obtain2.readException(); } finally { obtain2.recycle(); obtain.recycle(); } } } public static C0199e ag(IBinder iBinder) { if (iBinder == null) { return null; } IInterface queryLocalInterface = iBinder .queryLocalInterface("com.google.android.gms.maps.model.internal.IPolygonDelegate"); return (queryLocalInterface == null || !(queryLocalInterface instanceof C0199e)) ? new C0536a(iBinder) : (C0199e) queryLocalInterface; } public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException { int i = 0; List points; float strokeWidth; boolean z; boolean isVisible; switch (code) { case DetectedActivity.ON_BICYCLE /*1*/: data.enforceInterface("com.google.android.gms.maps.model.internal.IPolygonDelegate"); remove(); reply.writeNoException(); return true; case DetectedActivity.ON_FOOT /*2*/: data.enforceInterface("com.google.android.gms.maps.model.internal.IPolygonDelegate"); String id = getId(); reply.writeNoException(); reply.writeString(id); return true; case DetectedActivity.STILL /*3*/: data.enforceInterface("com.google.android.gms.maps.model.internal.IPolygonDelegate"); setPoints(data.createTypedArrayList(LatLng.CREATOR)); reply.writeNoException(); return true; case DetectedActivity.UNKNOWN /*4*/: data.enforceInterface("com.google.android.gms.maps.model.internal.IPolygonDelegate"); points = getPoints(); reply.writeNoException(); reply.writeTypedList(points); return true; case DetectedActivity.TILTING /*5*/: data.enforceInterface("com.google.android.gms.maps.model.internal.IPolygonDelegate"); setHoles(data.readArrayList(getClass().getClassLoader())); reply.writeNoException(); return true; case GamesClient.STATUS_NETWORK_ERROR_OPERATION_FAILED /*6*/: data.enforceInterface("com.google.android.gms.maps.model.internal.IPolygonDelegate"); points = getHoles(); reply.writeNoException(); reply.writeList(points); return true; case GamesClient.STATUS_LICENSE_CHECK_FAILED /*7*/: data.enforceInterface("com.google.android.gms.maps.model.internal.IPolygonDelegate"); setStrokeWidth(data.readFloat()); reply.writeNoException(); return true; case GamesClient.STATUS_APP_MISCONFIGURED /*8*/: data.enforceInterface("com.google.android.gms.maps.model.internal.IPolygonDelegate"); strokeWidth = getStrokeWidth(); reply.writeNoException(); reply.writeFloat(strokeWidth); return true; case ConnectionResult.SERVICE_INVALID /*9*/: data.enforceInterface("com.google.android.gms.maps.model.internal.IPolygonDelegate"); setStrokeColor(data.readInt()); reply.writeNoException(); return true; case ConnectionResult.DEVELOPER_ERROR /*10*/: data.enforceInterface("com.google.android.gms.maps.model.internal.IPolygonDelegate"); i = getStrokeColor(); reply.writeNoException(); reply.writeInt(i); return true; case ConnectionResult.LICENSE_CHECK_FAILED /*11*/: data.enforceInterface("com.google.android.gms.maps.model.internal.IPolygonDelegate"); setFillColor(data.readInt()); reply.writeNoException(); return true; case ConnectionResult.DATE_INVALID /*12*/: data.enforceInterface("com.google.android.gms.maps.model.internal.IPolygonDelegate"); i = getFillColor(); reply.writeNoException(); reply.writeInt(i); return true; case C0048R.styleable.MapAttrs_zOrderOnTop /*13*/: data.enforceInterface("com.google.android.gms.maps.model.internal.IPolygonDelegate"); setZIndex(data.readFloat()); reply.writeNoException(); return true; case 14: data.enforceInterface("com.google.android.gms.maps.model.internal.IPolygonDelegate"); strokeWidth = getZIndex(); reply.writeNoException(); reply.writeFloat(strokeWidth); return true; case ViewDragHelper.EDGE_ALL /*15*/: data.enforceInterface("com.google.android.gms.maps.model.internal.IPolygonDelegate"); 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.IPolygonDelegate"); isVisible = isVisible(); reply.writeNoException(); if (isVisible) { i = 1; } reply.writeInt(i); return true; case 17: data.enforceInterface("com.google.android.gms.maps.model.internal.IPolygonDelegate"); if (data.readInt() != 0) { z = true; } setGeodesic(z); reply.writeNoException(); return true; case 18: data.enforceInterface("com.google.android.gms.maps.model.internal.IPolygonDelegate"); isVisible = isGeodesic(); reply.writeNoException(); if (isVisible) { i = 1; } reply.writeInt(i); return true; case TimeUtils.HUNDRED_DAY_FIELD_LEN /*19*/: data.enforceInterface("com.google.android.gms.maps.model.internal.IPolygonDelegate"); isVisible = m765a(C0537a.ag(data.readStrongBinder())); reply.writeNoException(); if (isVisible) { i = 1; } reply.writeInt(i); return true; case 20: data.enforceInterface("com.google.android.gms.maps.model.internal.IPolygonDelegate"); i = hashCodeRemote(); reply.writeNoException(); reply.writeInt(i); return true; case 1598968902: reply.writeString("com.google.android.gms.maps.model.internal.IPolygonDelegate"); return true; default: return super.onTransact(code, data, reply, flags); } } } boolean m765a(C0199e c0199e) throws RemoteException; int getFillColor() throws RemoteException; List getHoles() throws RemoteException; String getId() throws RemoteException; List<LatLng> getPoints() throws RemoteException; int getStrokeColor() throws RemoteException; float getStrokeWidth() throws RemoteException; float getZIndex() throws RemoteException; int hashCodeRemote() throws RemoteException; boolean isGeodesic() throws RemoteException; boolean isVisible() throws RemoteException; void remove() throws RemoteException; void setFillColor(int i) throws RemoteException; void setGeodesic(boolean z) throws RemoteException; void setHoles(List list) throws RemoteException; void setPoints(List<LatLng> list) 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; }