mirror of
https://github.com/moparisthebest/android_external_GmsApi
synced 2024-11-30 12:32:17 -05:00
Initial commit
This commit is contained in:
commit
0e2ceee2a6
9
Android.mk
Normal file
9
Android.mk
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# Not working yet
|
||||||
|
LOCAL_PATH := $(call my-dir)
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
|
LOCAL_MODULE := GmsApi
|
||||||
|
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
||||||
|
LOCAL_SRC_FILES := $(call all-Iaidl-files-under, src)
|
||||||
|
|
||||||
|
include $(BUILD_STATIC_JAVA_LIBRARY)
|
4
AndroidManifest.xml
Normal file
4
AndroidManifest.xml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<manifest package="org.microg.gms.api">
|
||||||
|
<!-- This is not needed, it's just here to stop build systems from complaining -->
|
||||||
|
</manifest>
|
28
build.gradle
Normal file
28
build.gradle
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
dependencies {
|
||||||
|
classpath 'com.android.tools.build:gradle:1.0.0'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
apply plugin: 'com.android.library'
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compile project(':SafeParcel')
|
||||||
|
}
|
||||||
|
|
||||||
|
android {
|
||||||
|
compileSdkVersion 21
|
||||||
|
buildToolsVersion "21.0.2"
|
||||||
|
lintOptions.abortOnError false
|
||||||
|
|
||||||
|
sourceSets {
|
||||||
|
main {
|
||||||
|
manifest.srcFile 'AndroidManifest.xml'
|
||||||
|
java.srcDirs = ['src']
|
||||||
|
aidl.srcDirs = ['src']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
6
src/com/google/android/auth/IAuthManagerService.aidl
Normal file
6
src/com/google/android/auth/IAuthManagerService.aidl
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
package com.google.android.auth;
|
||||||
|
|
||||||
|
interface IAuthManagerService {
|
||||||
|
Bundle getToken(String accountName, String scope, in Bundle extras);
|
||||||
|
Bundle clearToken(String token, in Bundle extras);
|
||||||
|
}
|
170
src/com/google/android/gms/common/AbstractGmsServiceBroker.java
Normal file
170
src/com/google/android/gms/common/AbstractGmsServiceBroker.java
Normal file
@ -0,0 +1,170 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2014 μg Project Team
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.google.android.gms.common;
|
||||||
|
|
||||||
|
import android.os.Bundle;
|
||||||
|
import android.os.IBinder;
|
||||||
|
import android.os.RemoteException;
|
||||||
|
import com.google.android.gms.common.internal.IGmsCallbacks;
|
||||||
|
import com.google.android.gms.common.internal.IGmsServiceBroker;
|
||||||
|
|
||||||
|
public abstract class AbstractGmsServiceBroker extends IGmsServiceBroker.Stub {
|
||||||
|
@Override
|
||||||
|
public void getPlusService(IGmsCallbacks callback, int versionCode, String packageName,
|
||||||
|
String str2, String[] paramArrayOfString, String str3, Bundle params)
|
||||||
|
throws RemoteException {
|
||||||
|
throw new IllegalArgumentException("Plus service not supported");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getPanoramaService(IGmsCallbacks callback, int versionCode, String packageName,
|
||||||
|
Bundle params) throws RemoteException {
|
||||||
|
throw new IllegalArgumentException("Panorama service not supported");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getAppDataSearchService(IGmsCallbacks callback, int versionCode, String packageName)
|
||||||
|
throws RemoteException {
|
||||||
|
throw new IllegalArgumentException("App Data Search service not supported");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getWalletService(IGmsCallbacks callback, int versionCode) throws RemoteException {
|
||||||
|
throw new IllegalArgumentException("Wallet service not supported");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getPeopleService(IGmsCallbacks callback, int versionCode, String packageName,
|
||||||
|
Bundle params) throws RemoteException {
|
||||||
|
throw new IllegalArgumentException("People service not supported");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getReportingService(IGmsCallbacks callback, int versionCode, String packageName,
|
||||||
|
Bundle params) throws RemoteException {
|
||||||
|
throw new IllegalArgumentException("Reporting service not supported");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getLocationService(IGmsCallbacks callback, int versionCode, String packageName,
|
||||||
|
Bundle params) throws RemoteException {
|
||||||
|
throw new IllegalArgumentException("Location service not supported");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getGoogleLocationManagerService(IGmsCallbacks callback, int versionCode,
|
||||||
|
String packageName, Bundle params) throws RemoteException {
|
||||||
|
throw new IllegalArgumentException("Google Location Manager service not supported");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getGamesService(IGmsCallbacks callback, int versionCode, String packageName,
|
||||||
|
String str2, String[] args, String str3, IBinder binder, String str4, Bundle params)
|
||||||
|
throws RemoteException {
|
||||||
|
throw new IllegalArgumentException("Games service not supported");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getAppStateService(IGmsCallbacks callback, int versionCode, String packageName,
|
||||||
|
String str2, String[] args) throws RemoteException {
|
||||||
|
throw new IllegalArgumentException("App State service not supported");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getPlayLogService(IGmsCallbacks callback, int versionCode, String packageName,
|
||||||
|
Bundle params) throws RemoteException {
|
||||||
|
throw new IllegalArgumentException("Play Log service not supported");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getAdMobService(IGmsCallbacks callback, int versionCode, String packageName,
|
||||||
|
Bundle params) throws RemoteException {
|
||||||
|
throw new IllegalArgumentException("AdMob service not supported");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getDroidGuardService(IGmsCallbacks callback, int versionCode, String packageName,
|
||||||
|
Bundle params) throws RemoteException {
|
||||||
|
throw new IllegalArgumentException("DroidGuard service not supported");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getLockboxService(IGmsCallbacks callback, int versionCode, String packageName,
|
||||||
|
Bundle params) throws RemoteException {
|
||||||
|
throw new IllegalArgumentException("Lockbox service not supported");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getCastMirroringService(IGmsCallbacks callback, int versionCode, String packageName,
|
||||||
|
Bundle params) throws RemoteException {
|
||||||
|
throw new IllegalArgumentException("Cast Mirroring service not supported");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getNetworkQualityService(IGmsCallbacks callback, int versionCode,
|
||||||
|
String packageName, Bundle params) throws RemoteException {
|
||||||
|
throw new IllegalArgumentException("Network Quality service not supported");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getGoogleIdentityService(IGmsCallbacks callback, int versionCode,
|
||||||
|
String packageName, Bundle params) throws RemoteException {
|
||||||
|
throw new IllegalArgumentException("Google Identity service not supported");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getGoogleFeedbackService(IGmsCallbacks callback, int versionCode,
|
||||||
|
String packageName, Bundle params) throws RemoteException {
|
||||||
|
throw new IllegalArgumentException("Google Feedback service not supported");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getCastService(IGmsCallbacks callback, int versionCode, String packageName,
|
||||||
|
IBinder binder, Bundle params) throws RemoteException {
|
||||||
|
throw new IllegalArgumentException("Cast service not supported");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getDriveService(IGmsCallbacks callback, int versionCode, String packageName,
|
||||||
|
String[] args, String str2, Bundle params) throws RemoteException {
|
||||||
|
throw new IllegalArgumentException("Drive service not supported");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getLightweightAppDataSearchService(IGmsCallbacks callback, int versionCode,
|
||||||
|
String packageName) throws RemoteException {
|
||||||
|
throw new IllegalArgumentException("Lightweight App Data Search service not supported");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getSearchAdministrationService(IGmsCallbacks callback, int versionCode,
|
||||||
|
String packageName) throws RemoteException {
|
||||||
|
throw new IllegalArgumentException("Search Administration service not supported");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getAutoBackupService(IGmsCallbacks callback, int versionCode, String packageName,
|
||||||
|
Bundle params) throws RemoteException {
|
||||||
|
throw new IllegalArgumentException("Auto Backup service not supported");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getAddressService(IGmsCallbacks callback, int versionCode, String packageName)
|
||||||
|
throws RemoteException {
|
||||||
|
throw new IllegalArgumentException("Address service not supported");
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,5 @@
|
|||||||
|
package com.google.android.gms.common.internal;
|
||||||
|
|
||||||
|
interface IGmsCallbacks {
|
||||||
|
void onPostInitComplete(int statusCode, IBinder binder, in Bundle params);
|
||||||
|
}
|
@ -0,0 +1,30 @@
|
|||||||
|
package com.google.android.gms.common.internal;
|
||||||
|
|
||||||
|
import com.google.android.gms.common.internal.IGmsCallbacks;
|
||||||
|
|
||||||
|
interface IGmsServiceBroker {
|
||||||
|
void getPlusService(IGmsCallbacks callback, int code, String str1, String str2, in String[] paramArrayOfString, String str3, in Bundle params);
|
||||||
|
void getPanoramaService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
||||||
|
void getAppDataSearchService(IGmsCallbacks callback, int code, String str);
|
||||||
|
void getWalletService(IGmsCallbacks callback, int code);
|
||||||
|
void getPeopleService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
||||||
|
void getReportingService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
||||||
|
void getLocationService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
||||||
|
void getGoogleLocationManagerService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
||||||
|
void getGamesService(IGmsCallbacks callback, int code, String str1, String str2, in String[] args, String str3, IBinder binder, String str4, in Bundle params);
|
||||||
|
void getAppStateService(IGmsCallbacks callback, int code, String str1, String str2, in String[] args);
|
||||||
|
void getPlayLogService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
||||||
|
void getAdMobService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
||||||
|
void getDroidGuardService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
||||||
|
void getLockboxService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
||||||
|
void getCastMirroringService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
||||||
|
void getNetworkQualityService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
||||||
|
void getGoogleIdentityService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
||||||
|
void getGoogleFeedbackService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
||||||
|
void getCastService(IGmsCallbacks callback, int code, String str, IBinder binder, in Bundle params);
|
||||||
|
void getDriveService(IGmsCallbacks callback, int code, String str1, in String[] args, String str2, in Bundle params);
|
||||||
|
void getLightweightAppDataSearchService(IGmsCallbacks callback, int code, String str);
|
||||||
|
void getSearchAdministrationService(IGmsCallbacks callback, int code, String str);
|
||||||
|
void getAutoBackupService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
||||||
|
void getAddressService(IGmsCallbacks callback, int code, String str);
|
||||||
|
}
|
8
src/com/google/android/gms/dynamic/IObjectWrapper.aidl
Normal file
8
src/com/google/android/gms/dynamic/IObjectWrapper.aidl
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
package com.google.android.gms.dynamic;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The concrete class implementing IObjectWrapper must have exactly one declared private field
|
||||||
|
* for the wrapped object. Preferably, this is an instance of the ObjectWrapper<T> class.
|
||||||
|
*/
|
||||||
|
interface IObjectWrapper {
|
||||||
|
}
|
66
src/com/google/android/gms/dynamic/ObjectWrapper.java
Normal file
66
src/com/google/android/gms/dynamic/ObjectWrapper.java
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2014 μg Project Team
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.google.android.gms.dynamic;
|
||||||
|
|
||||||
|
import android.os.IBinder;
|
||||||
|
|
||||||
|
import java.lang.reflect.Field;
|
||||||
|
|
||||||
|
public class ObjectWrapper<T> extends IObjectWrapper.Stub {
|
||||||
|
private final T t;
|
||||||
|
|
||||||
|
public ObjectWrapper(T t) {
|
||||||
|
this.t = t;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Object unwrap(IObjectWrapper obj) {
|
||||||
|
if (obj == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
if (obj instanceof ObjectWrapper) {
|
||||||
|
return ((ObjectWrapper) obj).t;
|
||||||
|
}
|
||||||
|
IBinder binder = obj.asBinder();
|
||||||
|
Field[] fields = binder.getClass().getDeclaredFields();
|
||||||
|
if (fields.length != 1) {
|
||||||
|
throw new IllegalArgumentException();
|
||||||
|
}
|
||||||
|
Field field = fields[0];
|
||||||
|
if (!field.isAccessible()) {
|
||||||
|
field.setAccessible(true);
|
||||||
|
try {
|
||||||
|
Object wrapped = field.get(binder);
|
||||||
|
return wrapped;
|
||||||
|
} catch (NullPointerException localNullPointerException) {
|
||||||
|
throw new IllegalArgumentException("Binder object is null.",
|
||||||
|
localNullPointerException);
|
||||||
|
} catch (IllegalArgumentException localIllegalArgumentException) {
|
||||||
|
throw new IllegalArgumentException("remoteBinder is the wrong class.",
|
||||||
|
localIllegalArgumentException);
|
||||||
|
} catch (IllegalAccessException localIllegalAccessException) {
|
||||||
|
throw new IllegalArgumentException("Could not access the field in remoteBinder.",
|
||||||
|
localIllegalAccessException);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
throw new IllegalArgumentException();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static <T> ObjectWrapper<T> wrap(T t) {
|
||||||
|
return new ObjectWrapper<T>(t);
|
||||||
|
}
|
||||||
|
}
|
3
src/com/google/android/gms/location/Geofence.aidl
Normal file
3
src/com/google/android/gms/location/Geofence.aidl
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
package com.google.android.gms.location;
|
||||||
|
|
||||||
|
parcelable Geofence;
|
48
src/com/google/android/gms/location/Geofence.java
Normal file
48
src/com/google/android/gms/location/Geofence.java
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2014 μg Project Team
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.google.android.gms.location;
|
||||||
|
|
||||||
|
import android.os.Parcel;
|
||||||
|
import org.microg.safeparcel.SafeParcelUtil;
|
||||||
|
import org.microg.safeparcel.SafeParcelable;
|
||||||
|
|
||||||
|
public class Geofence implements SafeParcelable {
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int describeContents() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeToParcel(Parcel dest, int flags) {
|
||||||
|
SafeParcelUtil.writeObject(this, dest, flags);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static Creator<Geofence> CREATOR = new Creator<Geofence>() {
|
||||||
|
@Override
|
||||||
|
public Geofence createFromParcel(Parcel source) {
|
||||||
|
return new Geofence();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Geofence[] newArray(int size) {
|
||||||
|
return new Geofence[size];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.google.android.gms.location.internal;
|
||||||
|
|
||||||
|
interface IGeofencerCallbacks {
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.google.android.gms.location.internal;
|
||||||
|
|
||||||
|
import com.google.android.gms.location.Geofence;
|
||||||
|
import com.google.android.gms.location.internal.IGeofencerCallbacks;
|
||||||
|
|
||||||
|
interface IGoogleLocationManagerService {
|
||||||
|
void addGeofences(in List<com.google.android.gms.location.Geofence> geofences, in PendingIntent pendingIntent, IGeofencerCallbacks callback, String str);
|
||||||
|
}
|
3
src/com/google/android/gms/maps/GoogleMapOptions.aidl
Normal file
3
src/com/google/android/gms/maps/GoogleMapOptions.aidl
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
package com.google.android.gms.maps;
|
||||||
|
|
||||||
|
parcelable GoogleMapOptions;
|
107
src/com/google/android/gms/maps/GoogleMapOptions.java
Normal file
107
src/com/google/android/gms/maps/GoogleMapOptions.java
Normal file
@ -0,0 +1,107 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2014 μg Project Team
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.google.android.gms.maps;
|
||||||
|
|
||||||
|
import android.os.Parcel;
|
||||||
|
import com.google.android.gms.maps.model.CameraPosition;
|
||||||
|
import org.microg.safeparcel.SafeParcelUtil;
|
||||||
|
import org.microg.safeparcel.SafeParcelable;
|
||||||
|
import org.microg.safeparcel.SafeParceled;
|
||||||
|
|
||||||
|
public final class GoogleMapOptions implements SafeParcelable {
|
||||||
|
@SafeParceled(1)
|
||||||
|
private int versionCode;
|
||||||
|
@SafeParceled(2)
|
||||||
|
private int zOrderOnTop;
|
||||||
|
@SafeParceled(3)
|
||||||
|
private boolean useViewLifecycleInFragment;
|
||||||
|
@SafeParceled(4)
|
||||||
|
private int mapType;
|
||||||
|
@SafeParceled(5)
|
||||||
|
private CameraPosition camera;
|
||||||
|
@SafeParceled(6)
|
||||||
|
private boolean zoomControlsEnabled;
|
||||||
|
@SafeParceled(7)
|
||||||
|
private boolean compassEnabled;
|
||||||
|
@SafeParceled(8)
|
||||||
|
private boolean scrollGesturesEnabled;
|
||||||
|
@SafeParceled(9)
|
||||||
|
private boolean zoomGesturesEnabled;
|
||||||
|
@SafeParceled(10)
|
||||||
|
private boolean tiltGesturesEnabled;
|
||||||
|
@SafeParceled(11)
|
||||||
|
private boolean rotateGesturesEnabled;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int describeContents() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeToParcel(Parcel dest, int flags) {
|
||||||
|
SafeParcelUtil.writeObject(this, dest, flags);
|
||||||
|
}
|
||||||
|
|
||||||
|
public GoogleMapOptions() {
|
||||||
|
}
|
||||||
|
|
||||||
|
private GoogleMapOptions(Parcel in) {
|
||||||
|
SafeParcelUtil.readObject(this, in);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getMapType() {
|
||||||
|
return mapType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CameraPosition getCamera() {
|
||||||
|
return camera;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isZoomControlsEnabled() {
|
||||||
|
return zoomControlsEnabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isCompassEnabled() {
|
||||||
|
return compassEnabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isScrollGesturesEnabled() {
|
||||||
|
return scrollGesturesEnabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isZoomGesturesEnabled() {
|
||||||
|
return zoomGesturesEnabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isTiltGesturesEnabled() {
|
||||||
|
return tiltGesturesEnabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isRotateGesturesEnabled() {
|
||||||
|
return rotateGesturesEnabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Creator<GoogleMapOptions> CREATOR = new Creator<GoogleMapOptions>() {
|
||||||
|
public GoogleMapOptions createFromParcel(Parcel source) {
|
||||||
|
return new GoogleMapOptions(source);
|
||||||
|
}
|
||||||
|
|
||||||
|
public GoogleMapOptions[] newArray(int size) {
|
||||||
|
return new GoogleMapOptions[size];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.google.android.gms.maps.internal;
|
||||||
|
|
||||||
|
import com.google.android.gms.dynamic.IObjectWrapper;
|
||||||
|
import com.google.android.gms.maps.model.CameraPosition;
|
||||||
|
import com.google.android.gms.maps.model.LatLng;
|
||||||
|
import com.google.android.gms.maps.model.LatLngBounds;
|
||||||
|
|
||||||
|
interface ICameraUpdateFactoryDelegate {
|
||||||
|
IObjectWrapper zoomIn();
|
||||||
|
IObjectWrapper zoomOut();
|
||||||
|
IObjectWrapper scrollBy(float x, float y);
|
||||||
|
IObjectWrapper zoomTo(float zoom);
|
||||||
|
IObjectWrapper zoomBy(float zoomDelta);
|
||||||
|
IObjectWrapper zoomByWithFocus(float zoomDelta, int x, int y);
|
||||||
|
IObjectWrapper newCameraPosition(in CameraPosition cameraPosition);
|
||||||
|
IObjectWrapper newLatLng(in LatLng latLng);
|
||||||
|
IObjectWrapper newLatLngZoom(in LatLng latLng, float zoom);
|
||||||
|
IObjectWrapper newLatLngBounds(in LatLngBounds bounds, int i);
|
||||||
|
IObjectWrapper newLatLngBoundsWithSize(in LatLngBounds bounds, int i1, int i2, int i3);
|
||||||
|
}
|
@ -0,0 +1,6 @@
|
|||||||
|
package com.google.android.gms.maps.internal;
|
||||||
|
|
||||||
|
interface ICancelableCallback {
|
||||||
|
void onFinish();
|
||||||
|
void onCancel();
|
||||||
|
}
|
17
src/com/google/android/gms/maps/internal/ICreator.aidl
Normal file
17
src/com/google/android/gms/maps/internal/ICreator.aidl
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
package com.google.android.gms.maps.internal;
|
||||||
|
|
||||||
|
import com.google.android.gms.dynamic.IObjectWrapper;
|
||||||
|
import com.google.android.gms.maps.GoogleMapOptions;
|
||||||
|
import com.google.android.gms.maps.internal.IMapFragmentDelegate;
|
||||||
|
import com.google.android.gms.maps.internal.IMapViewDelegate;
|
||||||
|
import com.google.android.gms.maps.internal.ICameraUpdateFactoryDelegate;
|
||||||
|
import com.google.android.gms.maps.model.internal.IBitmapDescriptorFactoryDelegate;
|
||||||
|
|
||||||
|
interface ICreator {
|
||||||
|
void init(IObjectWrapper resources);
|
||||||
|
IMapFragmentDelegate newMapFragmentDelegate(IObjectWrapper activity);
|
||||||
|
IMapViewDelegate newMapViewDelegate(IObjectWrapper context, in GoogleMapOptions options);
|
||||||
|
ICameraUpdateFactoryDelegate newCameraUpdateFactoryDelegate();
|
||||||
|
IBitmapDescriptorFactoryDelegate newBitmapDescriptorFactoryDelegate();
|
||||||
|
void initV2(IObjectWrapper resources, int flags);
|
||||||
|
}
|
@ -0,0 +1,91 @@
|
|||||||
|
package com.google.android.gms.maps.internal;
|
||||||
|
|
||||||
|
import com.google.android.gms.dynamic.IObjectWrapper;
|
||||||
|
import com.google.android.gms.maps.model.CameraPosition;
|
||||||
|
import com.google.android.gms.maps.internal.ICancelableCallback;
|
||||||
|
import com.google.android.gms.maps.internal.ILocationSourceDelegate;
|
||||||
|
import com.google.android.gms.maps.internal.IUiSettingsDelegate;
|
||||||
|
import com.google.android.gms.maps.internal.IProjectionDelegate;
|
||||||
|
import com.google.android.gms.maps.internal.IOnCameraChangeListener;
|
||||||
|
import com.google.android.gms.maps.internal.IOnMapClickListener;
|
||||||
|
import com.google.android.gms.maps.internal.IOnMapLongClickListener;
|
||||||
|
import com.google.android.gms.maps.internal.IOnMarkerClickListener;
|
||||||
|
import com.google.android.gms.maps.internal.IOnMarkerDragListener;
|
||||||
|
import com.google.android.gms.maps.internal.IOnInfoWindowClickListener;
|
||||||
|
import com.google.android.gms.maps.internal.IInfoWindowAdapter;
|
||||||
|
import com.google.android.gms.maps.internal.IOnMapLoadedCallback;
|
||||||
|
import com.google.android.gms.maps.internal.IOnMyLocationChangeListener;
|
||||||
|
import com.google.android.gms.maps.internal.IOnMyLocationButtonClickListener;
|
||||||
|
import com.google.android.gms.maps.internal.ISnapshotReadyCallback;
|
||||||
|
import com.google.android.gms.maps.model.CircleOptions;
|
||||||
|
import com.google.android.gms.maps.model.GroundOverlayOptions;
|
||||||
|
import com.google.android.gms.maps.model.MarkerOptions;
|
||||||
|
import com.google.android.gms.maps.model.PolygonOptions;
|
||||||
|
import com.google.android.gms.maps.model.PolylineOptions;
|
||||||
|
import com.google.android.gms.maps.model.TileOverlayOptions;
|
||||||
|
import com.google.android.gms.maps.model.internal.IPolylineDelegate;
|
||||||
|
import com.google.android.gms.maps.model.internal.IPolygonDelegate;
|
||||||
|
import com.google.android.gms.maps.model.internal.IMarkerDelegate;
|
||||||
|
import com.google.android.gms.maps.model.internal.ICircleDelegate;
|
||||||
|
import com.google.android.gms.maps.model.internal.IGroundOverlayDelegate;
|
||||||
|
import com.google.android.gms.maps.model.internal.ITileOverlayDelegate;
|
||||||
|
|
||||||
|
interface IGoogleMapDelegate {
|
||||||
|
CameraPosition getCameraPosition();
|
||||||
|
|
||||||
|
float getMaxZoomLevel();
|
||||||
|
float getMinZoomLevel();
|
||||||
|
|
||||||
|
void moveCamera(IObjectWrapper cameraUpdate);
|
||||||
|
void animateCamera(IObjectWrapper cameraUpdate);
|
||||||
|
void animateCameraWithCallback(IObjectWrapper cameraUpdate, ICancelableCallback callback);
|
||||||
|
void animateCameraWithDurationAndCallback(IObjectWrapper cameraUpdate, int duration, ICancelableCallback callback);
|
||||||
|
void stopAnimation();
|
||||||
|
|
||||||
|
IPolylineDelegate addPolyline(in PolylineOptions options);
|
||||||
|
IPolygonDelegate addPolygon(in PolygonOptions options);
|
||||||
|
IMarkerDelegate addMarker(in MarkerOptions options);
|
||||||
|
IGroundOverlayDelegate addGroundOverlay(in GroundOverlayOptions options);
|
||||||
|
ITileOverlayDelegate addTileOverlay(in TileOverlayOptions options);
|
||||||
|
|
||||||
|
void clear();
|
||||||
|
|
||||||
|
int getMapType();
|
||||||
|
void setMapType(int type);
|
||||||
|
boolean isTrafficEnabled();
|
||||||
|
void setTrafficEnabled(boolean traffic);
|
||||||
|
boolean isIndoorEnabled();
|
||||||
|
void setIndoorEnabled(boolean indoor);
|
||||||
|
|
||||||
|
boolean isMyLocationEnabled();
|
||||||
|
void setMyLocationEnabled(boolean myLocation);
|
||||||
|
Location getMyLocation();
|
||||||
|
void setLocationSource(ILocationSourceDelegate locationSource);
|
||||||
|
|
||||||
|
IUiSettingsDelegate getUiSettings();
|
||||||
|
IProjectionDelegate getProjection();
|
||||||
|
|
||||||
|
void setOnCameraChangeListener(IOnCameraChangeListener listener);
|
||||||
|
void setOnMapClickListener(IOnMapClickListener listener);
|
||||||
|
void setOnMapLongClickListener(IOnMapLongClickListener listener);
|
||||||
|
void setOnMarkerClickListener(IOnMarkerClickListener listener);
|
||||||
|
void setOnMarkerDragListener(IOnMarkerDragListener listener);
|
||||||
|
void setOnInfoWindowClickListener(IOnInfoWindowClickListener listener);
|
||||||
|
void setInfoWindowAdapter(IInfoWindowAdapter adapter);
|
||||||
|
|
||||||
|
IObjectWrapper getTestingHelper();
|
||||||
|
|
||||||
|
ICircleDelegate addCircle(in CircleOptions options);
|
||||||
|
|
||||||
|
void setOnMyLocationChangeListener(IOnMyLocationChangeListener listener);
|
||||||
|
void setOnMyLocationButtonClickListener(IOnMyLocationButtonClickListener listener);
|
||||||
|
|
||||||
|
void snapshot(ISnapshotReadyCallback callback, IObjectWrapper bitmap);
|
||||||
|
|
||||||
|
void setPadding(int left, int top, int right, int bottom);
|
||||||
|
|
||||||
|
boolean isBuildingsEnabled();
|
||||||
|
void setBuildingsEnabled(boolean buildings);
|
||||||
|
|
||||||
|
void setOnMapLoadedCallback(IOnMapLoadedCallback callback);
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
package com.google.android.gms.maps.internal;
|
||||||
|
|
||||||
|
import com.google.android.gms.dynamic.IObjectWrapper;
|
||||||
|
import com.google.android.gms.maps.model.internal.IMarkerDelegate;
|
||||||
|
|
||||||
|
interface IInfoWindowAdapter {
|
||||||
|
IObjectWrapper getInfoWindow(IMarkerDelegate marker);
|
||||||
|
IObjectWrapper getInfoContents(IMarkerDelegate marker);
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.google.android.gms.maps.internal;
|
||||||
|
|
||||||
|
interface ILocationSourceDelegate {
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
package com.google.android.gms.maps.internal;
|
||||||
|
|
||||||
|
import com.google.android.gms.maps.internal.IGoogleMapDelegate;
|
||||||
|
import com.google.android.gms.maps.GoogleMapOptions;
|
||||||
|
import com.google.android.gms.dynamic.IObjectWrapper;
|
||||||
|
|
||||||
|
interface IMapFragmentDelegate {
|
||||||
|
IGoogleMapDelegate getMap();
|
||||||
|
void onInflate(IObjectWrapper activity, in GoogleMapOptions options, in Bundle savedInstanceState);
|
||||||
|
void onCreate(in Bundle savedInstanceState);
|
||||||
|
IObjectWrapper onCreateView(IObjectWrapper layoutInflate, IObjectWrapper container, in Bundle savedInstanceState);
|
||||||
|
void onResume();
|
||||||
|
void onPause();
|
||||||
|
void onDestroyView();
|
||||||
|
void onDestroy();
|
||||||
|
void onLowMemory();
|
||||||
|
void onSaveInstanceState(inout Bundle outState);
|
||||||
|
boolean isReady();
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package com.google.android.gms.maps.internal;
|
||||||
|
|
||||||
|
import com.google.android.gms.maps.internal.IGoogleMapDelegate;
|
||||||
|
import com.google.android.gms.dynamic.IObjectWrapper;
|
||||||
|
|
||||||
|
interface IMapViewDelegate {
|
||||||
|
IGoogleMapDelegate getMap();
|
||||||
|
void onCreate(in Bundle savedInstanceState);
|
||||||
|
void onResume();
|
||||||
|
void onPause();
|
||||||
|
void onDestroy();
|
||||||
|
void onLowMemory();
|
||||||
|
void onSaveInstanceState(inout Bundle outState);
|
||||||
|
IObjectWrapper getView();
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.google.android.gms.maps.internal;
|
||||||
|
|
||||||
|
interface IOnCameraChangeListener {
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
package com.google.android.gms.maps.internal;
|
||||||
|
|
||||||
|
import com.google.android.gms.maps.model.internal.IMarkerDelegate;
|
||||||
|
|
||||||
|
interface IOnInfoWindowClickListener {
|
||||||
|
void onInfoWindowClick(IMarkerDelegate marker);
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
package com.google.android.gms.maps.internal;
|
||||||
|
|
||||||
|
import com.google.android.gms.maps.model.LatLng;
|
||||||
|
|
||||||
|
interface IOnMapClickListener {
|
||||||
|
void onMapClick(in LatLng latLng);
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.google.android.gms.maps.internal;
|
||||||
|
|
||||||
|
interface IOnMapLoadedCallback {
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
package com.google.android.gms.maps.internal;
|
||||||
|
|
||||||
|
import com.google.android.gms.maps.model.LatLng;
|
||||||
|
|
||||||
|
interface IOnMapLongClickListener {
|
||||||
|
void onMapLongClick(in LatLng latLng);
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
package com.google.android.gms.maps.internal;
|
||||||
|
|
||||||
|
import com.google.android.gms.maps.model.internal.IMarkerDelegate;
|
||||||
|
|
||||||
|
interface IOnMarkerClickListener {
|
||||||
|
boolean onMarkerClick(IMarkerDelegate marker);
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.google.android.gms.maps.internal;
|
||||||
|
|
||||||
|
interface IOnMarkerDragListener {
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.google.android.gms.maps.internal;
|
||||||
|
|
||||||
|
interface IOnMyLocationButtonClickListener {
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.google.android.gms.maps.internal;
|
||||||
|
|
||||||
|
interface IOnMyLocationChangeListener {
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
package com.google.android.gms.maps.internal;
|
||||||
|
|
||||||
|
import com.google.android.gms.dynamic.IObjectWrapper;
|
||||||
|
import com.google.android.gms.maps.model.LatLng;
|
||||||
|
import com.google.android.gms.maps.model.VisibleRegion;
|
||||||
|
|
||||||
|
interface IProjectionDelegate {
|
||||||
|
LatLng fromScreenLocation(IObjectWrapper obj);
|
||||||
|
IObjectWrapper toScreenLocation(in LatLng latLng);
|
||||||
|
VisibleRegion getVisibleRegion();
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.google.android.gms.maps.internal;
|
||||||
|
|
||||||
|
interface ISnapshotReadyCallback {
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
package com.google.android.gms.maps.internal;
|
||||||
|
|
||||||
|
interface IUiSettingsDelegate {
|
||||||
|
void setZoomControlsEnabled(boolean zoom);
|
||||||
|
void setCompassEnabled(boolean compass);
|
||||||
|
void setMyLocationButtonEnabled(boolean locationButton);
|
||||||
|
void setScrollGesturesEnabled(boolean scrollGestures);
|
||||||
|
void setZoomGesturesEnabled(boolean zoomGestures);
|
||||||
|
void setTiltGesturesEnabled(boolean tiltGestures);
|
||||||
|
void setRotateGesturesEnabled(boolean rotateGestures);
|
||||||
|
void setAllGesturesEnabled(boolean gestures);
|
||||||
|
boolean isZoomControlsEnabled();
|
||||||
|
boolean isCompassEnabled();
|
||||||
|
boolean isMyLocationButtonEnabled();
|
||||||
|
boolean isScrollGesturesEnabled();
|
||||||
|
boolean isZoomGesturesEnabled();
|
||||||
|
boolean isTiltGesturesEnabled();
|
||||||
|
boolean isRotateGesturesEnabled();
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
package com.google.android.gms.maps.model;
|
||||||
|
|
||||||
|
parcelable CameraPosition;
|
91
src/com/google/android/gms/maps/model/CameraPosition.java
Normal file
91
src/com/google/android/gms/maps/model/CameraPosition.java
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2014 μg Project Team
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.google.android.gms.maps.model;
|
||||||
|
|
||||||
|
import android.os.Parcel;
|
||||||
|
import org.microg.safeparcel.SafeParcelUtil;
|
||||||
|
import org.microg.safeparcel.SafeParcelable;
|
||||||
|
import org.microg.safeparcel.SafeParceled;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
public class CameraPosition implements SafeParcelable {
|
||||||
|
@SafeParceled(1)
|
||||||
|
private int versionCode;
|
||||||
|
@SafeParceled(2)
|
||||||
|
public LatLng target;
|
||||||
|
@SafeParceled(3)
|
||||||
|
public float zoom;
|
||||||
|
@SafeParceled(4)
|
||||||
|
public float tilt;
|
||||||
|
@SafeParceled(5)
|
||||||
|
public float bearing;
|
||||||
|
|
||||||
|
private CameraPosition(Parcel in) {
|
||||||
|
SafeParcelUtil.readObject(this, in);
|
||||||
|
}
|
||||||
|
|
||||||
|
public CameraPosition(int versionCode, LatLng target, float zoom, float tilt, float bearing) {
|
||||||
|
this.versionCode = versionCode;
|
||||||
|
if (target == null) {
|
||||||
|
throw new NullPointerException("null camera target");
|
||||||
|
}
|
||||||
|
this.target = target;
|
||||||
|
this.zoom = zoom;
|
||||||
|
if (tilt < 0 || 90 < tilt) {
|
||||||
|
throw new IllegalArgumentException("Tilt needs to be between 0 and 90 inclusive");
|
||||||
|
}
|
||||||
|
this.tilt = tilt;
|
||||||
|
if (bearing <= 0) {
|
||||||
|
bearing += 360;
|
||||||
|
}
|
||||||
|
this.bearing = bearing % 360;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CameraPosition(LatLng target, float zoom, float tilt, float bearing) {
|
||||||
|
this(1, target, zoom, tilt, bearing);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static CameraPosition create(LatLng latLng) {
|
||||||
|
return new CameraPosition(latLng, 0, 0, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Arrays.hashCode(new Object[] { target, zoom, tilt, bearing });
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int describeContents() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeToParcel(Parcel dest, int flags) {
|
||||||
|
SafeParcelUtil.writeObject(this, dest, flags);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Creator<CameraPosition> CREATOR = new Creator<CameraPosition>() {
|
||||||
|
public CameraPosition createFromParcel(Parcel source) {
|
||||||
|
return new CameraPosition(source);
|
||||||
|
}
|
||||||
|
|
||||||
|
public CameraPosition[] newArray(int size) {
|
||||||
|
return new CameraPosition[size];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
3
src/com/google/android/gms/maps/model/CircleOptions.aidl
Normal file
3
src/com/google/android/gms/maps/model/CircleOptions.aidl
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
package com.google.android.gms.maps.model;
|
||||||
|
|
||||||
|
parcelable CircleOptions;
|
67
src/com/google/android/gms/maps/model/CircleOptions.java
Normal file
67
src/com/google/android/gms/maps/model/CircleOptions.java
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2014 μg Project Team
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.google.android.gms.maps.model;
|
||||||
|
|
||||||
|
import android.os.Parcel;
|
||||||
|
import org.microg.safeparcel.SafeParcelUtil;
|
||||||
|
import org.microg.safeparcel.SafeParcelable;
|
||||||
|
import org.microg.safeparcel.SafeParceled;
|
||||||
|
|
||||||
|
public class CircleOptions implements SafeParcelable {
|
||||||
|
public static Creator<CircleOptions> CREATOR = new Creator<CircleOptions>() {
|
||||||
|
public CircleOptions createFromParcel(Parcel source) {
|
||||||
|
return new CircleOptions(source);
|
||||||
|
}
|
||||||
|
|
||||||
|
public CircleOptions[] newArray(int size) {
|
||||||
|
return new CircleOptions[size];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
@SafeParceled(1)
|
||||||
|
private int versionCode;
|
||||||
|
@SafeParceled(2)
|
||||||
|
private LatLng center;
|
||||||
|
@SafeParceled(3)
|
||||||
|
private double radius;
|
||||||
|
@SafeParceled(4)
|
||||||
|
private float strokeWidth;
|
||||||
|
@SafeParceled(5)
|
||||||
|
private int strokeColor;
|
||||||
|
@SafeParceled(6)
|
||||||
|
private int fillColor;
|
||||||
|
@SafeParceled(7)
|
||||||
|
private float zIndex;
|
||||||
|
@SafeParceled(8)
|
||||||
|
private boolean visisble;
|
||||||
|
|
||||||
|
public CircleOptions() {
|
||||||
|
}
|
||||||
|
|
||||||
|
private CircleOptions(Parcel in) {
|
||||||
|
SafeParcelUtil.readObject(this, in);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int describeContents() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeToParcel(Parcel dest, int flags) {
|
||||||
|
SafeParcelUtil.writeObject(this, dest, flags);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
package com.google.android.gms.maps.model;
|
||||||
|
|
||||||
|
parcelable GroundOverlayOptions;
|
@ -0,0 +1,79 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2014 μg Project Team
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.google.android.gms.maps.model;
|
||||||
|
|
||||||
|
import android.os.IBinder;
|
||||||
|
import android.os.Parcel;
|
||||||
|
import org.microg.safeparcel.SafeParcelUtil;
|
||||||
|
import org.microg.safeparcel.SafeParcelable;
|
||||||
|
import org.microg.safeparcel.SafeParceled;
|
||||||
|
|
||||||
|
public class GroundOverlayOptions implements SafeParcelable {
|
||||||
|
@SafeParceled(1)
|
||||||
|
private int versionCode;
|
||||||
|
@SafeParceled(2)
|
||||||
|
private IBinder wrappedImage;
|
||||||
|
@SafeParceled(3)
|
||||||
|
private LatLng location;
|
||||||
|
@SafeParceled(4)
|
||||||
|
private float width;
|
||||||
|
@SafeParceled(5)
|
||||||
|
private float height;
|
||||||
|
@SafeParceled(6)
|
||||||
|
private LatLngBounds bounds;
|
||||||
|
@SafeParceled(7)
|
||||||
|
private float bearing;
|
||||||
|
@SafeParceled(8)
|
||||||
|
private float zIndex;
|
||||||
|
@SafeParceled(9)
|
||||||
|
private boolean visible;
|
||||||
|
@SafeParceled(10)
|
||||||
|
private float transparency;
|
||||||
|
@SafeParceled(11)
|
||||||
|
private float anchorU;
|
||||||
|
@SafeParceled(12)
|
||||||
|
private float anchorV;
|
||||||
|
|
||||||
|
public GroundOverlayOptions() {
|
||||||
|
}
|
||||||
|
|
||||||
|
private GroundOverlayOptions(Parcel in) {
|
||||||
|
SafeParcelUtil.readObject(this, in);
|
||||||
|
// wrappedImage = new BitmapDescriptor(IObjectWrapper.Stub.asInterface(SafeReader.readBinder(in, position)));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int describeContents() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeToParcel(Parcel dest, int flags) {
|
||||||
|
SafeParcelUtil.writeObject(this, dest, flags);
|
||||||
|
// SafeParcelWriter.write(dest, 2, wrappedImage.getRemoteObject().asBinder(), false);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Creator<GroundOverlayOptions> CREATOR = new Creator<GroundOverlayOptions>() {
|
||||||
|
public GroundOverlayOptions createFromParcel(Parcel source) {
|
||||||
|
return new GroundOverlayOptions(source);
|
||||||
|
}
|
||||||
|
|
||||||
|
public GroundOverlayOptions[] newArray(int size) {
|
||||||
|
return new GroundOverlayOptions[size];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
3
src/com/google/android/gms/maps/model/LatLng.aidl
Normal file
3
src/com/google/android/gms/maps/model/LatLng.aidl
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
package com.google.android.gms.maps.model;
|
||||||
|
|
||||||
|
parcelable LatLng;
|
81
src/com/google/android/gms/maps/model/LatLng.java
Normal file
81
src/com/google/android/gms/maps/model/LatLng.java
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2014 μg Project Team
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.google.android.gms.maps.model;
|
||||||
|
|
||||||
|
import android.os.Parcel;
|
||||||
|
import org.microg.safeparcel.SafeParcelUtil;
|
||||||
|
import org.microg.safeparcel.SafeParcelable;
|
||||||
|
import org.microg.safeparcel.SafeParceled;
|
||||||
|
|
||||||
|
public class LatLng implements SafeParcelable {
|
||||||
|
public static Creator<LatLng> CREATOR = new Creator<LatLng>() {
|
||||||
|
public LatLng createFromParcel(Parcel source) {
|
||||||
|
return new LatLng(source);
|
||||||
|
}
|
||||||
|
|
||||||
|
public LatLng[] newArray(int size) {
|
||||||
|
return new LatLng[size];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
@SafeParceled(2)
|
||||||
|
public double latitude;
|
||||||
|
@SafeParceled(3)
|
||||||
|
public double longitude;
|
||||||
|
@SafeParceled(1)
|
||||||
|
private int versionCode;
|
||||||
|
|
||||||
|
public LatLng(int versionCode, double latitude, double longitude) {
|
||||||
|
this.versionCode = versionCode;
|
||||||
|
this.latitude = Math.max(-90, Math.min(90, latitude));
|
||||||
|
if ((-180 <= longitude) && (longitude < 180)) {
|
||||||
|
this.longitude = longitude;
|
||||||
|
} else {
|
||||||
|
this.longitude = ((360 + (longitude - 180) % 360) % 360 - 180);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private LatLng(Parcel in) {
|
||||||
|
SafeParcelUtil.readObject(this, in);
|
||||||
|
}
|
||||||
|
|
||||||
|
public LatLng(double latitude, double longitude) {
|
||||||
|
this(1, latitude, longitude);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final int hashCode() {
|
||||||
|
long lat = Double.doubleToLongBits(latitude);
|
||||||
|
int tmp = 31 + (int) (lat ^ lat >>> 32);
|
||||||
|
long lon = Double.doubleToLongBits(longitude);
|
||||||
|
return tmp * 31 + (int) (lon ^ lon >>> 32);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "lat/lng: (" + latitude + "," + longitude + ")";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int describeContents() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeToParcel(Parcel dest, int flags) {
|
||||||
|
SafeParcelUtil.writeObject(this, dest, flags);
|
||||||
|
}
|
||||||
|
}
|
3
src/com/google/android/gms/maps/model/LatLngBounds.aidl
Normal file
3
src/com/google/android/gms/maps/model/LatLngBounds.aidl
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
package com.google.android.gms.maps.model;
|
||||||
|
|
||||||
|
parcelable LatLngBounds;
|
64
src/com/google/android/gms/maps/model/LatLngBounds.java
Normal file
64
src/com/google/android/gms/maps/model/LatLngBounds.java
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2014 μg Project Team
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.google.android.gms.maps.model;
|
||||||
|
|
||||||
|
import android.os.Parcel;
|
||||||
|
import org.microg.safeparcel.SafeParcelUtil;
|
||||||
|
import org.microg.safeparcel.SafeParcelable;
|
||||||
|
import org.microg.safeparcel.SafeParceled;
|
||||||
|
|
||||||
|
public class LatLngBounds implements SafeParcelable {
|
||||||
|
public static Creator<LatLngBounds> CREATOR = new Creator<LatLngBounds>() {
|
||||||
|
public LatLngBounds createFromParcel(Parcel source) {
|
||||||
|
return new LatLngBounds(source);
|
||||||
|
}
|
||||||
|
|
||||||
|
public LatLngBounds[] newArray(int size) {
|
||||||
|
return new LatLngBounds[size];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
@SafeParceled(1)
|
||||||
|
private int versionCode;
|
||||||
|
@SafeParceled(2)
|
||||||
|
public LatLng southWest;
|
||||||
|
@SafeParceled(3)
|
||||||
|
public LatLng northEast;
|
||||||
|
|
||||||
|
public LatLngBounds(int versionCode, LatLng southWest, LatLng northEast) {
|
||||||
|
this.versionCode = versionCode;
|
||||||
|
this.southWest = southWest;
|
||||||
|
this.northEast = northEast;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LatLngBounds(LatLng southWest, LatLng northEast) {
|
||||||
|
this(1, southWest, northEast);
|
||||||
|
}
|
||||||
|
|
||||||
|
private LatLngBounds(Parcel in) {
|
||||||
|
SafeParcelUtil.readObject(this, in);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int describeContents() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeToParcel(Parcel dest, int flags) {
|
||||||
|
SafeParcelUtil.writeObject(this, dest, flags);
|
||||||
|
}
|
||||||
|
}
|
3
src/com/google/android/gms/maps/model/MarkerOptions.aidl
Normal file
3
src/com/google/android/gms/maps/model/MarkerOptions.aidl
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
package com.google.android.gms.maps.model;
|
||||||
|
|
||||||
|
parcelable MarkerOptions;
|
134
src/com/google/android/gms/maps/model/MarkerOptions.java
Normal file
134
src/com/google/android/gms/maps/model/MarkerOptions.java
Normal file
@ -0,0 +1,134 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2014 μg Project Team
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.google.android.gms.maps.model;
|
||||||
|
|
||||||
|
import android.os.IBinder;
|
||||||
|
import android.os.Parcel;
|
||||||
|
import org.microg.safeparcel.SafeParcelUtil;
|
||||||
|
import org.microg.safeparcel.SafeParcelable;
|
||||||
|
import org.microg.safeparcel.SafeParceled;
|
||||||
|
|
||||||
|
public class MarkerOptions implements SafeParcelable {
|
||||||
|
|
||||||
|
@SafeParceled(1)
|
||||||
|
private int versionCode = 1;
|
||||||
|
@SafeParceled(2)
|
||||||
|
private LatLng position;
|
||||||
|
@SafeParceled(3)
|
||||||
|
private String title;
|
||||||
|
@SafeParceled(4)
|
||||||
|
private String snippet;
|
||||||
|
@SafeParceled(5)
|
||||||
|
private IBinder icon;
|
||||||
|
@SafeParceled(6)
|
||||||
|
private float anchorU = 0.5F;
|
||||||
|
@SafeParceled(7)
|
||||||
|
private float anchorV = 1F;
|
||||||
|
@SafeParceled(8)
|
||||||
|
private boolean draggable;
|
||||||
|
@SafeParceled(9)
|
||||||
|
private boolean visible;
|
||||||
|
@SafeParceled(10)
|
||||||
|
private boolean flat;
|
||||||
|
@SafeParceled(11)
|
||||||
|
private float rotation = 0F;
|
||||||
|
@SafeParceled(12)
|
||||||
|
private float infoWindowAnchorU = 0F;
|
||||||
|
@SafeParceled(13)
|
||||||
|
private float infoWindowAnchorV = 1F;
|
||||||
|
@SafeParceled(14)
|
||||||
|
private float alpha = 1F;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int describeContents() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeToParcel(Parcel dest, int flags) {
|
||||||
|
}
|
||||||
|
|
||||||
|
public MarkerOptions() {
|
||||||
|
}
|
||||||
|
|
||||||
|
private MarkerOptions(Parcel in) {
|
||||||
|
SafeParcelUtil.readObject(this, in);
|
||||||
|
// this.icon = icon == null ? null : new BitmapDescriptor(ObjectWrapper.asInterface(icon));
|
||||||
|
}
|
||||||
|
|
||||||
|
public LatLng getPosition() {
|
||||||
|
return position;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTitle() {
|
||||||
|
return title;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSnippet() {
|
||||||
|
return snippet;
|
||||||
|
}
|
||||||
|
|
||||||
|
public IBinder getIcon() {
|
||||||
|
return icon;
|
||||||
|
}
|
||||||
|
|
||||||
|
public float getAnchorU() {
|
||||||
|
return anchorU;
|
||||||
|
}
|
||||||
|
|
||||||
|
public float getAnchorV() {
|
||||||
|
return anchorV;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isDraggable() {
|
||||||
|
return draggable;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isVisible() {
|
||||||
|
return visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isFlat() {
|
||||||
|
return flat;
|
||||||
|
}
|
||||||
|
|
||||||
|
public float getRotation() {
|
||||||
|
return rotation;
|
||||||
|
}
|
||||||
|
|
||||||
|
public float getInfoWindowAnchorU() {
|
||||||
|
return infoWindowAnchorU;
|
||||||
|
}
|
||||||
|
|
||||||
|
public float getInfoWindowAnchorV() {
|
||||||
|
return infoWindowAnchorV;
|
||||||
|
}
|
||||||
|
|
||||||
|
public float getAlpha() {
|
||||||
|
return alpha;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Creator<MarkerOptions> CREATOR = new Creator<MarkerOptions>() {
|
||||||
|
public MarkerOptions createFromParcel(Parcel source) {
|
||||||
|
return new MarkerOptions(source);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MarkerOptions[] newArray(int size) {
|
||||||
|
return new MarkerOptions[size];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
package com.google.android.gms.maps.model;
|
||||||
|
|
||||||
|
parcelable PolygonOptions;
|
50
src/com/google/android/gms/maps/model/PolygonOptions.java
Normal file
50
src/com/google/android/gms/maps/model/PolygonOptions.java
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2014 μg Project Team
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.google.android.gms.maps.model;
|
||||||
|
|
||||||
|
import android.os.Parcel;
|
||||||
|
import org.microg.safeparcel.SafeParcelUtil;
|
||||||
|
import org.microg.safeparcel.SafeParcelable;
|
||||||
|
|
||||||
|
public class PolygonOptions implements SafeParcelable {
|
||||||
|
@Override
|
||||||
|
public int describeContents() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeToParcel(Parcel dest, int flags) {
|
||||||
|
SafeParcelUtil.writeObject(this, dest, flags);
|
||||||
|
}
|
||||||
|
|
||||||
|
public PolygonOptions() {
|
||||||
|
}
|
||||||
|
|
||||||
|
private PolygonOptions(Parcel in) {
|
||||||
|
SafeParcelUtil.readObject(this, in);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Creator<PolygonOptions> CREATOR = new Creator<PolygonOptions>() {
|
||||||
|
public PolygonOptions createFromParcel(Parcel source) {
|
||||||
|
return new PolygonOptions(source);
|
||||||
|
}
|
||||||
|
|
||||||
|
public PolygonOptions[] newArray(int size) {
|
||||||
|
return new PolygonOptions[size];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
package com.google.android.gms.maps.model;
|
||||||
|
|
||||||
|
parcelable PolylineOptions;
|
66
src/com/google/android/gms/maps/model/PolylineOptions.java
Normal file
66
src/com/google/android/gms/maps/model/PolylineOptions.java
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2014 μg Project Team
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.google.android.gms.maps.model;
|
||||||
|
|
||||||
|
import android.os.Parcel;
|
||||||
|
import android.os.Parcelable;
|
||||||
|
import org.microg.safeparcel.SafeParcelUtil;
|
||||||
|
import org.microg.safeparcel.SafeParcelable;
|
||||||
|
import org.microg.safeparcel.SafeParceled;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class PolylineOptions implements SafeParcelable {
|
||||||
|
@SafeParceled(1)
|
||||||
|
private int versionCode;
|
||||||
|
// TODO
|
||||||
|
private List<LatLng> points;
|
||||||
|
private float width;
|
||||||
|
private int color;
|
||||||
|
private float zIndex;
|
||||||
|
private boolean visible;
|
||||||
|
private boolean geodesic;
|
||||||
|
|
||||||
|
|
||||||
|
public PolylineOptions() {
|
||||||
|
}
|
||||||
|
|
||||||
|
private PolylineOptions(Parcel in) {
|
||||||
|
SafeParcelUtil.readObject(this, in);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int describeContents() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeToParcel(Parcel dest, int flags) {
|
||||||
|
SafeParcelUtil.writeObject(this, dest, flags);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Creator<PolylineOptions> CREATOR = new Creator<PolylineOptions>() {
|
||||||
|
public PolylineOptions createFromParcel(Parcel source) {
|
||||||
|
return new PolylineOptions(source);
|
||||||
|
}
|
||||||
|
|
||||||
|
public PolylineOptions[] newArray(int size) {
|
||||||
|
return new PolylineOptions[size];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
package com.google.android.gms.maps.model;
|
||||||
|
|
||||||
|
parcelable TileOverlayOptions;
|
@ -0,0 +1,51 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2014 μg Project Team
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.google.android.gms.maps.model;
|
||||||
|
|
||||||
|
import android.os.Parcel;
|
||||||
|
import org.microg.safeparcel.SafeParcelUtil;
|
||||||
|
import org.microg.safeparcel.SafeParcelable;
|
||||||
|
|
||||||
|
public class TileOverlayOptions implements SafeParcelable {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int describeContents() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeToParcel(Parcel dest, int flags) {
|
||||||
|
SafeParcelUtil.writeObject(this, dest, flags);
|
||||||
|
}
|
||||||
|
|
||||||
|
public TileOverlayOptions() {
|
||||||
|
}
|
||||||
|
|
||||||
|
private TileOverlayOptions(Parcel in) {
|
||||||
|
SafeParcelUtil.readObject(this, in);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Creator<TileOverlayOptions> CREATOR = new Creator<TileOverlayOptions>() {
|
||||||
|
public TileOverlayOptions createFromParcel(Parcel source) {
|
||||||
|
return new TileOverlayOptions(source);
|
||||||
|
}
|
||||||
|
|
||||||
|
public TileOverlayOptions[] newArray(int size) {
|
||||||
|
return new TileOverlayOptions[size];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
3
src/com/google/android/gms/maps/model/VisibleRegion.aidl
Normal file
3
src/com/google/android/gms/maps/model/VisibleRegion.aidl
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
package com.google.android.gms.maps.model;
|
||||||
|
|
||||||
|
parcelable VisibleRegion;
|
76
src/com/google/android/gms/maps/model/VisibleRegion.java
Normal file
76
src/com/google/android/gms/maps/model/VisibleRegion.java
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2014 μg Project Team
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.google.android.gms.maps.model;
|
||||||
|
|
||||||
|
import android.os.Parcel;
|
||||||
|
import org.microg.safeparcel.SafeParcelUtil;
|
||||||
|
import org.microg.safeparcel.SafeParcelable;
|
||||||
|
import org.microg.safeparcel.SafeParceled;
|
||||||
|
|
||||||
|
public class VisibleRegion implements SafeParcelable {
|
||||||
|
@SafeParceled(1)
|
||||||
|
private int versionCode;
|
||||||
|
@SafeParceled(2)
|
||||||
|
private LatLng nearLeft;
|
||||||
|
@SafeParceled(3)
|
||||||
|
private LatLng nearRight;
|
||||||
|
@SafeParceled(4)
|
||||||
|
private LatLng farLeft;
|
||||||
|
@SafeParceled(5)
|
||||||
|
private LatLng farRight;
|
||||||
|
@SafeParceled(6)
|
||||||
|
private LatLngBounds bounds;
|
||||||
|
|
||||||
|
public VisibleRegion(int versionCode, LatLng nearLeft, LatLng nearRight, LatLng farLeft,
|
||||||
|
LatLng farRight, LatLngBounds bounds) {
|
||||||
|
this.versionCode = versionCode;
|
||||||
|
this.nearLeft = nearLeft;
|
||||||
|
this.nearRight = nearRight;
|
||||||
|
this.farLeft = farLeft;
|
||||||
|
this.farRight = farRight;
|
||||||
|
this.bounds = bounds;
|
||||||
|
}
|
||||||
|
|
||||||
|
public VisibleRegion(LatLng nearLeft, LatLng nearRight, LatLng farLeft, LatLng farRight,
|
||||||
|
LatLngBounds bounds) {
|
||||||
|
this(1, nearLeft, nearRight, farLeft, farRight, bounds);
|
||||||
|
}
|
||||||
|
|
||||||
|
public VisibleRegion(Parcel in) {
|
||||||
|
SafeParcelUtil.readObject(this, in);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int describeContents() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeToParcel(Parcel dest, int flags) {
|
||||||
|
SafeParcelUtil.writeObject(this, dest, flags);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Creator<VisibleRegion> CREATOR = new Creator<VisibleRegion>() {
|
||||||
|
public VisibleRegion createFromParcel(Parcel source) {
|
||||||
|
return new VisibleRegion(source);
|
||||||
|
}
|
||||||
|
|
||||||
|
public VisibleRegion[] newArray(int size) {
|
||||||
|
return new VisibleRegion[size];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
package com.google.android.gms.maps.model.internal;
|
||||||
|
|
||||||
|
import android.graphics.Bitmap;
|
||||||
|
import com.google.android.gms.dynamic.IObjectWrapper;
|
||||||
|
|
||||||
|
interface IBitmapDescriptorFactoryDelegate {
|
||||||
|
IObjectWrapper fromResource(int resourceId);
|
||||||
|
IObjectWrapper fromAsset(String assetName);
|
||||||
|
IObjectWrapper fromFile(String fileName);
|
||||||
|
IObjectWrapper defaultMarker();
|
||||||
|
IObjectWrapper defaultMarkerWithHue(float hue);
|
||||||
|
IObjectWrapper fromBitmap(in Bitmap bitmap);
|
||||||
|
IObjectWrapper fromPath(String absolutePath);
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
package com.google.android.gms.maps.model.internal;
|
||||||
|
|
||||||
|
import com.google.android.gms.maps.model.LatLng;
|
||||||
|
|
||||||
|
interface ICircleDelegate {
|
||||||
|
void remove();
|
||||||
|
String getId();
|
||||||
|
void setCenter(in LatLng center);
|
||||||
|
LatLng getCenter();
|
||||||
|
void setRadius(double radius);
|
||||||
|
double getRadius();
|
||||||
|
void setStrokeWidth(float width);
|
||||||
|
float getStrokeWidth();
|
||||||
|
void setStrokeColor(int color);
|
||||||
|
int getStrokeColor();
|
||||||
|
void setFillColor(int color);
|
||||||
|
int getFillColor();
|
||||||
|
void setZIndex(float zIndex);
|
||||||
|
float getZIndex();
|
||||||
|
void setVisible(boolean visible);
|
||||||
|
boolean isVisible();
|
||||||
|
boolean equalsRemote(ICircleDelegate other);
|
||||||
|
int hashCodeRemote();
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.google.android.gms.maps.model.internal;
|
||||||
|
|
||||||
|
import com.google.android.gms.dynamic.IObjectWrapper;
|
||||||
|
import com.google.android.gms.maps.model.LatLng;
|
||||||
|
import com.google.android.gms.maps.model.LatLngBounds;
|
||||||
|
|
||||||
|
interface IGroundOverlayDelegate {
|
||||||
|
void remove();
|
||||||
|
String getId();
|
||||||
|
void setPosition(in LatLng pos);
|
||||||
|
LatLng getPosition();
|
||||||
|
void setDimension(float dimension);
|
||||||
|
void setDimensions(float width, float height);
|
||||||
|
float getWidth();
|
||||||
|
float getHeight();
|
||||||
|
void setPositionFromBounds(in LatLngBounds bounds);
|
||||||
|
LatLngBounds getBounds();
|
||||||
|
void setBearing(float bearing);
|
||||||
|
float getBearing();
|
||||||
|
void setZIndex(float zIndex);
|
||||||
|
float getZIndex();
|
||||||
|
void setVisible(boolean visible);
|
||||||
|
boolean isVisible();
|
||||||
|
void setTransparency(float transparency);
|
||||||
|
float getTransparency();
|
||||||
|
boolean equalsRemote(IGroundOverlayDelegate other);
|
||||||
|
int hashCodeRemote();
|
||||||
|
void todo(IObjectWrapper obj);
|
||||||
|
}
|
@ -0,0 +1,33 @@
|
|||||||
|
package com.google.android.gms.maps.model.internal;
|
||||||
|
|
||||||
|
import com.google.android.gms.dynamic.IObjectWrapper;
|
||||||
|
import com.google.android.gms.maps.model.LatLng;
|
||||||
|
|
||||||
|
interface IMarkerDelegate {
|
||||||
|
void remove();
|
||||||
|
String getId();
|
||||||
|
void setPosition(in LatLng pos);
|
||||||
|
LatLng getPosition();
|
||||||
|
void setTitle(String title);
|
||||||
|
String getTitle();
|
||||||
|
void setSnippet(String snippet);
|
||||||
|
String getSnippet();
|
||||||
|
void setDraggable(boolean drag);
|
||||||
|
boolean isDraggable();
|
||||||
|
void showInfoWindow();
|
||||||
|
void hideInfoWindow();
|
||||||
|
boolean isInfoWindowShown();
|
||||||
|
void setVisible(boolean visible);
|
||||||
|
boolean isVisible();
|
||||||
|
boolean equalsRemote(IMarkerDelegate other);
|
||||||
|
int hashCodeRemote();
|
||||||
|
void setIcon(IObjectWrapper obj);
|
||||||
|
void setAnchor(float x, float y);
|
||||||
|
void setFlat(boolean flat);
|
||||||
|
boolean isFlat();
|
||||||
|
void setRotation(float rotation);
|
||||||
|
float getRotation();
|
||||||
|
void setInfoWindowAnchor(float x, float y);
|
||||||
|
void setAlpha(float alpha);
|
||||||
|
float getAlpha();
|
||||||
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
package com.google.android.gms.maps.model.internal;
|
||||||
|
|
||||||
|
import com.google.android.gms.maps.model.LatLng;
|
||||||
|
|
||||||
|
interface IPolygonDelegate {
|
||||||
|
void remove();
|
||||||
|
String getId();
|
||||||
|
void setPoints(in List<LatLng> points);
|
||||||
|
List<LatLng> getPoints();
|
||||||
|
void setHoles(in List holes);
|
||||||
|
List getHoles();
|
||||||
|
void setStrokeWidth(float width);
|
||||||
|
float getStrokeWidth();
|
||||||
|
void setStrokeColor(int color);
|
||||||
|
int getStrokeColor();
|
||||||
|
void setFillColor(int color);
|
||||||
|
int getFillColor();
|
||||||
|
void setZIndex(float zIndex);
|
||||||
|
float getZIndex();
|
||||||
|
void setVisible(boolean visible);
|
||||||
|
boolean isVisible();
|
||||||
|
void setGeodesic(boolean geod);
|
||||||
|
boolean isGeodesic();
|
||||||
|
boolean equalsRemote(IPolygonDelegate other);
|
||||||
|
int hashCodeRemote();
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.google.android.gms.maps.model.internal;
|
||||||
|
|
||||||
|
import com.google.android.gms.maps.model.LatLng;
|
||||||
|
|
||||||
|
interface IPolylineDelegate {
|
||||||
|
void remove();
|
||||||
|
String getId();
|
||||||
|
void setPoints(in List<LatLng> points);
|
||||||
|
List<LatLng> getPoints();
|
||||||
|
void setWidth(float width);
|
||||||
|
float getWidth();
|
||||||
|
void setColor(int color);
|
||||||
|
int getColor();
|
||||||
|
void setZIndex(float zIndex);
|
||||||
|
float getZIndex();
|
||||||
|
void setVisible(boolean visible);
|
||||||
|
boolean isVisible();
|
||||||
|
void setGeodesic(boolean geod);
|
||||||
|
boolean isGeodesic();
|
||||||
|
boolean equalsRemote(IPolylineDelegate other);
|
||||||
|
int hashCodeRemote();
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.google.android.gms.maps.model.internal;
|
||||||
|
|
||||||
|
interface ITileOverlayDelegate {
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.google.android.gms.plus.internal;
|
||||||
|
|
||||||
|
import com.google.android.gms.dynamic.IObjectWrapper;
|
||||||
|
|
||||||
|
interface IPlusOneButtonCreator {
|
||||||
|
IObjectWrapper create(IObjectWrapper context, int size, int annotation, String url, int activityRequestCode);
|
||||||
|
IObjectWrapper createForAccount(IObjectWrapper context, int size, int annotation, String url, String account);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user