1 /*
2  * Copyright (C) 2009 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.android.internal.location;
18 
19 import android.location.Location;
20 import android.net.NetworkInfo;
21 import android.os.Bundle;
22 import android.os.WorkSource;
23 
24 import com.android.internal.location.ProviderProperties;
25 import com.android.internal.location.ProviderRequest;
26 
27 /**
28  * Binder interface for services that implement location providers.
29  * <p>Use {@link LocationProviderBase} as a helper to implement this
30  * interface.
31  * @hide
32  */
33 interface ILocationProvider {
enable()34     void enable();
disable()35     void disable();
36 
setRequest(in ProviderRequest request, in WorkSource ws)37     void setRequest(in ProviderRequest request, in WorkSource ws);
38 
39     // --- deprecated (but still supported) ---
getProperties()40     ProviderProperties getProperties();
getStatus(out Bundle extras)41     int getStatus(out Bundle extras);
getStatusUpdateTime()42     long getStatusUpdateTime();
sendExtraCommand(String command, inout Bundle extras)43     boolean sendExtraCommand(String command, inout Bundle extras);
44 }
45