1e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwood/*
2e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwood * Copyright (C) 2009 The Android Open Source Project
3e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwood *
4e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwood * Licensed under the Apache License, Version 2.0 (the "License");
5e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwood * you may not use this file except in compliance with the License.
6e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwood * You may obtain a copy of the License at
7e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwood *
8e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwood *      http://www.apache.org/licenses/LICENSE-2.0
9e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwood *
10e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwood * Unless required by applicable law or agreed to in writing, software
11e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwood * distributed under the License is distributed on an "AS IS" BASIS,
12e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwood * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwood * See the License for the specific language governing permissions and
14e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwood * limitations under the License.
15e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwood */
16e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwood
176fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pellypackage com.android.internal.location;
18e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwood
19fd6e5f0dda50e113db4ccc55338b6c4f09da37a4Mike Lockwoodimport android.location.Location;
2003d246779ea65fc2bd10d0b4f32620f45211133aMike Lockwoodimport android.net.NetworkInfo;
21e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwoodimport android.os.Bundle;
227e9f4eb2608148436cef36c9969bf8a599b39e72Dianne Hackbornimport android.os.WorkSource;
23e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwood
246fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pellyimport com.android.internal.location.ProviderProperties;
256fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pellyimport com.android.internal.location.ProviderRequest;
266fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pelly
27e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwood/**
28d03ff94fe58045b5bd1dd783fb98026778a4265dMike Lockwood * Binder interface for services that implement location providers.
296fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pelly * <p>Use {@link LocationProviderBase} as a helper to implement this
306fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pelly * interface.
316fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pelly * @hide
32e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwood */
33e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwoodinterface ILocationProvider {
34e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwood    void enable();
35e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwood    void disable();
366fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pelly
376fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pelly    void setRequest(in ProviderRequest request, in WorkSource ws);
386fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pelly
396fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pelly    // --- deprecated (but still supported) ---
406fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pelly    ProviderProperties getProperties();
41e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwood    int getStatus(out Bundle extras);
42e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwood    long getStatusUpdateTime();
43e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwood    boolean sendExtraCommand(String command, inout Bundle extras);
44e932f7f2a47b770c636443d411436bd29cc4bb43Mike Lockwood}
45