blob: d2a1a3f7e082d679b25ade0d73ecdf51b9b585d5 [file] [log] [blame]
Hridya Valsarajue596a712016-09-22 14:07:22 -07001/*
2 * Copyright (C) 2016 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@1.0;
18
Andreas Huber40d3a9b2017-03-28 16:19:16 -070019/**
Hridya Valsarajue596a712016-09-22 14:07:22 -070020 * Callback for IAGnssRil interface. Used to request SET ID and
21 * Reference Location.
22 */
23interface IAGnssRilCallback {
Andreas Huber40d3a9b2017-03-28 16:19:16 -070024 /** Kinds of SET ID that can be requested */
Hridya Valsaraju529331c2016-11-22 08:17:23 -080025 @export(name="", value_prefix="AGPS_RIL_REQUEST_SETID_")
Hridya Valsarajue596a712016-09-22 14:07:22 -070026 enum ID : uint32_t {
27 IMSI = 1 << 0L,
28 MSISDN = 1 << 1L,
29 };
30
Andreas Huber40d3a9b2017-03-28 16:19:16 -070031 /**
Hridya Valsarajue596a712016-09-22 14:07:22 -070032 * The Hal uses this API to request a SET ID.
33 *
34 * @param setIdflag Specifies the kind of SET ID that is required by the HAL.
35 */
Yifan Hong7037fdb2016-12-05 17:16:09 -080036 requestSetIdCb(bitfield<ID> setIdflag);
Hridya Valsarajue596a712016-09-22 14:07:22 -070037
Andreas Huber40d3a9b2017-03-28 16:19:16 -070038 /**
Hridya Valsarajue596a712016-09-22 14:07:22 -070039 * The Hal uses this API to request a reference location.
40 *
Hridya Valsarajue596a712016-09-22 14:07:22 -070041 */
Hridya Valsaraju97ecaa02016-11-02 10:20:07 -070042 requestRefLocCb();
Hridya Valsarajue596a712016-09-22 14:07:22 -070043
44};