1 /*
2  * Copyright (C) 2020 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 android.platform.helpers;
18 
19 public interface IAutoLocationSettingsHelper extends IAppHelper {
20     /** enum class for State. */
21     enum State {
22         ON,
23         OFF
24     }
25 
26     /**
27      * Setup expectations: Location setting is open
28      *
29      * <p>Toggle on/off location switch
30      *
31      * @param state of toggle switch.
32      */
toggleLocationSwitchOnOff(State state)33     void toggleLocationSwitchOnOff(State state);
34 
35     /**
36      * Setup expectations: Location setting is open
37      *
38      * <p>Check if location switch is toggled on.
39      */
isLocationSwitchOn()40     boolean isLocationSwitchOn();
41 
42     /**
43      * Setup expectations: None
44      *
45      * <p>Get device longitude.
46      */
getLongitude()47     double getLongitude();
48 
49     /**
50      * Setup expectations: None
51      *
52      * <p>get device latitude.
53      */
getLatitude()54     double getLatitude();
55 }
56