1d03ff94fe58045b5bd1dd783fb98026778a4265dMike Lockwood/* 2d03ff94fe58045b5bd1dd783fb98026778a4265dMike Lockwood * Copyright (C) 2010 The Android Open Source Project 3d03ff94fe58045b5bd1dd783fb98026778a4265dMike Lockwood * 4d03ff94fe58045b5bd1dd783fb98026778a4265dMike Lockwood * Licensed under the Apache License, Version 2.0 (the "License"); 5d03ff94fe58045b5bd1dd783fb98026778a4265dMike Lockwood * you may not use this file except in compliance with the License. 6d03ff94fe58045b5bd1dd783fb98026778a4265dMike Lockwood * You may obtain a copy of the License at 7d03ff94fe58045b5bd1dd783fb98026778a4265dMike Lockwood * 8d03ff94fe58045b5bd1dd783fb98026778a4265dMike Lockwood * http://www.apache.org/licenses/LICENSE-2.0 9d03ff94fe58045b5bd1dd783fb98026778a4265dMike Lockwood * 10d03ff94fe58045b5bd1dd783fb98026778a4265dMike Lockwood * Unless required by applicable law or agreed to in writing, software 11d03ff94fe58045b5bd1dd783fb98026778a4265dMike Lockwood * distributed under the License is distributed on an "AS IS" BASIS, 12d03ff94fe58045b5bd1dd783fb98026778a4265dMike Lockwood * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13d03ff94fe58045b5bd1dd783fb98026778a4265dMike Lockwood * See the License for the specific language governing permissions and 14d03ff94fe58045b5bd1dd783fb98026778a4265dMike Lockwood * limitations under the License. 15d03ff94fe58045b5bd1dd783fb98026778a4265dMike Lockwood */ 16d03ff94fe58045b5bd1dd783fb98026778a4265dMike Lockwood 1700b74270c9f136a8727c5f6cda0997a3a905f385Mike Lockwoodpackage com.android.server.location; 18d03ff94fe58045b5bd1dd783fb98026778a4265dMike Lockwood 196fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pellyimport java.io.FileDescriptor; 206fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pellyimport java.io.PrintWriter; 216fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pelly 226fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pellyimport com.android.internal.location.ProviderProperties; 236fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pellyimport com.android.internal.location.ProviderRequest; 246fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pelly 256fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pelly 26d03ff94fe58045b5bd1dd783fb98026778a4265dMike Lockwoodimport android.os.Bundle; 277e9f4eb2608148436cef36c9969bf8a599b39e72Dianne Hackbornimport android.os.WorkSource; 28d03ff94fe58045b5bd1dd783fb98026778a4265dMike Lockwood 29d03ff94fe58045b5bd1dd783fb98026778a4265dMike Lockwood/** 30d03ff94fe58045b5bd1dd783fb98026778a4265dMike Lockwood * Location Manager's interface for location providers. 316fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pelly * @hide 32d03ff94fe58045b5bd1dd783fb98026778a4265dMike Lockwood */ 33d03ff94fe58045b5bd1dd783fb98026778a4265dMike Lockwoodpublic interface LocationProviderInterface { 346fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pelly public String getName(); 356fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pelly 366fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pelly public void enable(); 376fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pelly public void disable(); 386fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pelly public boolean isEnabled(); 396fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pelly public void setRequest(ProviderRequest request, WorkSource source); 406fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pelly 41b711d57ca4e2c6a1befbfa1a41f4b8094755a93fVictoria Lease public void switchUser(int userId); 42b711d57ca4e2c6a1befbfa1a41f4b8094755a93fVictoria Lease 436fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pelly public void dump(FileDescriptor fd, PrintWriter pw, String[] args); 446fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pelly 456fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pelly // --- deprecated (but still supported) --- 466fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pelly public ProviderProperties getProperties(); 476fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pelly public int getStatus(Bundle extras); 486fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pelly public long getStatusUpdateTime(); 496fa9ad4afcd762aea519ff61811386c23d18ddb2Nick Pelly public boolean sendExtraCommand(String command, Bundle extras); 50d03ff94fe58045b5bd1dd783fb98026778a4265dMike Lockwood} 51