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 17package com.android.internal.location; 18 19import android.location.Location; 20import android.net.NetworkInfo; 21import android.os.Bundle; 22import android.os.WorkSource; 23 24import com.android.internal.location.ProviderProperties; 25import 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 */ 33interface ILocationProvider { 34 void enable(); 35 void disable(); 36 37 void setRequest(in ProviderRequest request, in WorkSource ws); 38 39 // --- deprecated (but still supported) --- 40 ProviderProperties getProperties(); 41 int getStatus(out Bundle extras); 42 long getStatusUpdateTime(); 43 boolean sendExtraCommand(String command, inout Bundle extras); 44} 45