summaryrefslogtreecommitdiffstats
path: root/location/java/android
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2009-05-01 05:26:44 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-05-01 05:26:44 -0700
commitac7a3de471da65ae3111560a1404c12985c8741f (patch)
tree59db348eb9851925405b50a304ddc2c8081b6d5d /location/java/android
parentda7b5e2dacb5a6010c23c4c9651389da58347a45 (diff)
parent15e3d0f082d551f8819fbe4b0d502cc108627876 (diff)
downloadframeworks_base-ac7a3de471da65ae3111560a1404c12985c8741f.zip
frameworks_base-ac7a3de471da65ae3111560a1404c12985c8741f.tar.gz
frameworks_base-ac7a3de471da65ae3111560a1404c12985c8741f.tar.bz2
am 15e3d0f: location: Use ILocationProvider Binder interface for all loc
Merge commit '15e3d0f082d551f8819fbe4b0d502cc108627876' * commit '15e3d0f082d551f8819fbe4b0d502cc108627876': location: Use ILocationProvider Binder interface for all location providers.
Diffstat (limited to 'location/java/android')
-rw-r--r--location/java/android/location/IGpsStatusProvider.aidl29
-rw-r--r--location/java/android/location/ILocationProvider.aidl6
2 files changed, 30 insertions, 5 deletions
diff --git a/location/java/android/location/IGpsStatusProvider.aidl b/location/java/android/location/IGpsStatusProvider.aidl
new file mode 100644
index 0000000..cf277c8
--- /dev/null
+++ b/location/java/android/location/IGpsStatusProvider.aidl
@@ -0,0 +1,29 @@
+/*
+ * Copyright (C) 2009 The Android Open Source Project
+ *
+ * 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 android.location;
+
+import android.location.IGpsStatusListener;
+
+/**
+ * An interface for location providers that provide GPS status information.
+ *
+ * {@hide}
+ */
+interface IGpsStatusProvider {
+ void addGpsStatusListener(IGpsStatusListener listener);
+ void removeGpsStatusListener(IGpsStatusListener listener);
+}
diff --git a/location/java/android/location/ILocationProvider.aidl b/location/java/android/location/ILocationProvider.aidl
index 82533a5..e3e374d 100644
--- a/location/java/android/location/ILocationProvider.aidl
+++ b/location/java/android/location/ILocationProvider.aidl
@@ -19,13 +19,11 @@ package android.location;
import android.os.Bundle;
/**
- * An interface for location providers implemented outside of the system process.
+ * Binder interface for location providers.
*
* {@hide}
*/
interface ILocationProvider {
-
- /* for LocationProvider */
boolean requiresNetwork();
boolean requiresSatellite();
boolean requiresCell();
@@ -35,8 +33,6 @@ interface ILocationProvider {
boolean supportsBearing();
int getPowerRequirement();
int getAccuracy();
-
- /* for LocationProviderImpl */
void enable();
void disable();
boolean isEnabled();