Hridya Valsaraju | e596a71 | 2016-09-22 14:07:22 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package android.hardware.gnss@1.0; |
| 18 | |
| 19 | /* |
| 20 | * Callback for IAGnssRil interface. Used to request SET ID and |
| 21 | * Reference Location. |
| 22 | */ |
| 23 | interface IAGnssRilCallback { |
| 24 | /* Kinds of SET ID that can be requested */ |
| 25 | enum ID : uint32_t { |
| 26 | IMSI = 1 << 0L, |
| 27 | MSISDN = 1 << 1L, |
| 28 | }; |
| 29 | |
| 30 | /* Kinds of reference location that can be requested. */ |
| 31 | enum RefLoc : uint32_t { |
| 32 | CELLID = 1 << 0L, |
| 33 | MAC = 1 << 1L |
| 34 | }; |
| 35 | |
| 36 | /* |
| 37 | * The Hal uses this API to request a SET ID. |
| 38 | * |
| 39 | * @param setIdflag Specifies the kind of SET ID that is required by the HAL. |
| 40 | */ |
| 41 | requestSetIdCb(ID setIdflag); |
| 42 | |
| 43 | /* |
| 44 | * The Hal uses this API to request a reference location. |
| 45 | * |
| 46 | * @param refLocflag Specifies the kind of reference location that is required |
| 47 | * by the HAL. |
| 48 | */ |
| 49 | requestRefLocCb(RefLoc refLocflag); |
| 50 | |
| 51 | }; |