Mitchell Wills | 5443a9f | 2016-08-18 11:44:58 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 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.wifi@1.0; |
| 18 | |
| 19 | interface IWifiEventCallback { |
| 20 | /** |
| 21 | * Called in response to a call to start indicating that the operation |
| 22 | * completed. After this callback the HAL must be fully operational. |
| 23 | */ |
| 24 | oneway onStart(); |
| 25 | |
| 26 | /** |
Mitchell Wills | 5443a9f | 2016-08-18 11:44:58 -0700 | [diff] [blame] | 27 | * Called in response to a call to stop indicating that the operation |
| 28 | * completed. When this event is received all IWifiChip objects retrieved |
| 29 | * after the last call to start will be considered invalid. |
| 30 | */ |
| 31 | oneway onStop(); |
| 32 | |
| 33 | /** |
| 34 | * Called when the Wi-Fi system failed in a way that caused it be disabled. |
| 35 | * Calling start again must restart Wi-Fi as if stop then start was called |
Roshan Pius | a52dc73 | 2016-10-10 11:53:07 -0700 | [diff] [blame] | 36 | * (full state reset). When this event is received all IWifiChip & IWifiIface |
| 37 | * objects retrieved after the last call to start will be considered invalid. |
Roshan Pius | 6f31d92 | 2016-10-04 15:08:05 -0700 | [diff] [blame] | 38 | * |
Roshan Pius | a52dc73 | 2016-10-10 11:53:07 -0700 | [diff] [blame] | 39 | * @param status Failure reason code. |
Mitchell Wills | 5443a9f | 2016-08-18 11:44:58 -0700 | [diff] [blame] | 40 | */ |
Roshan Pius | a52dc73 | 2016-10-10 11:53:07 -0700 | [diff] [blame] | 41 | oneway onFailure(WifiStatus status); |
Mitchell Wills | 5443a9f | 2016-08-18 11:44:58 -0700 | [diff] [blame] | 42 | }; |