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
17package [email protected];
18
19import @1.0::IRadioIndication;
20import @1.0::types;
21
22/**
23 * Interface declaring unsolicited radio indications.
24 */
25interface IRadioIndication extends @1.0::IRadioIndication{
26   /*
27    * Indicates that the modem requires the Carrier info for IMSI/IMPI encryption.
28    * This might happen when the modem restarts or for some reason it's cache
29    * has been invalidated.
30    *
31    * @param type Type of radio indication
32    */
33   oneway carrierInfoForImsiEncryption(RadioIndicationType info);
34
35    /**
36     * Incremental network scan results
37     *
38     * @param type Type of radio indication
39     * @param result Network scan result as NetworkScanResult defined in types.hal
40     */
41    oneway networkScanResult(RadioIndicationType type, NetworkScanResult result);
42
43    /**
44     * Indicates a status update for a particular Keepalive session. This must include
45     * a handle for a previous session and should include a status update regarding the
46     * state of a keepalive. Unsolicited keepalive status reports should never be
47     * PENDING as unsolicited status should only be sent when known.
48     *
49     * @param type Type of radio indication
50     * @param status Status information for a Keepalive session
51     */
52    oneway keepaliveStatus(RadioIndicationType type, KeepaliveStatus status);
53};
54