blob: 90c376ec6b6a151bff6fccd8c86d7524f448411d [file] [log] [blame]
Anil Admal4e50a4c2018-12-19 15:22:13 -08001/*
2 * Copyright (C) 2018 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 android.hardware.gnss@2.0;
18
19import @1.1::IGnssConfiguration;
20
21/**
22 * Extended interface for GNSS Configuration support.
23 *
24 * Due to the introduction of new GNSS HAL package android.hardware.gnss.visibility_control@1.0
25 * the following methods in @1.0::IGnssConfiguration are deprecated in this version and not
26 * called by the framework.
27 *
28 * setGpsLock(bitfield<GpsLock> lock) generates (bool success);
29 * setSuplEs(bool enabled) generates (bool success);
30 */
31interface IGnssConfiguration extends @1.1::IGnssConfiguration {
32 /**
33 * This method sets the emergency session extension duration. The GNSS HAL
34 * implementation must serve emergency SUPL and Control Plane network initiated
35 * location requests for this extra duration after the user initiated emergency
36 * session ends.
37 *
38 * @param emergencyExtensionSeconds Number of seconds to extend the emergency
39 * session duration post emergency call.
40 *
41 * @return success True if the GNSS HAL implementation accepts and supports the
42 * extended duration for emergency SUPL and Control Plane location requests.
43 */
44 setEsExtensionSec(uint32_t emergencyExtensionSeconds) generates (bool success);
45};