Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -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 IWifiStaIfaceEventCallback { |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 20 | /** |
Roshan Pius | a52dc73 | 2016-10-10 11:53:07 -0700 | [diff] [blame] | 21 | * Callback indicating that an ongoing background scan request has failed. |
| 22 | * The background scan needs to be restarted to continue scanning. |
Roshan Pius | d476754 | 2016-12-06 10:04:05 -0800 | [diff] [blame] | 23 | * |
| 24 | * @param cmdId command ID corresponding to the request. |
Roshan Pius | a52dc73 | 2016-10-10 11:53:07 -0700 | [diff] [blame] | 25 | */ |
| 26 | oneway onBackgroundScanFailure(CommandId cmdId); |
| 27 | |
| 28 | /** |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 29 | * Called for each received beacon/probe response for a scan with the |
| 30 | * |REPORT_EVENTS_FULL_RESULTS| flag set in |
Roshan Pius | 5e25466 | 2016-10-26 10:10:48 -0700 | [diff] [blame] | 31 | * |StaBackgroundScanBucketParameters.eventReportScheme|. |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 32 | * |
Roshan Pius | d476754 | 2016-12-06 10:04:05 -0800 | [diff] [blame] | 33 | * @param cmdId command ID corresponding to the request. |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 34 | * @parm result Full scan result for an AP. |
| 35 | */ |
Roshan Pius | 5e25466 | 2016-10-26 10:10:48 -0700 | [diff] [blame] | 36 | oneway onBackgroundFullScanResult(CommandId cmdId, StaScanResult result); |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 37 | |
| 38 | /** |
Roshan Pius | 5e25466 | 2016-10-26 10:10:48 -0700 | [diff] [blame] | 39 | * Called when the |StaBackgroundScanBucketParameters.eventReportScheme| flags |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 40 | * for at least one bucket that was just scanned was |
| 41 | * |REPORT_EVENTS_EACH_SCAN| or one of the configured thresholds was |
| 42 | * breached. |
| 43 | * |
Roshan Pius | d476754 | 2016-12-06 10:04:05 -0800 | [diff] [blame] | 44 | * @param cmdId command ID corresponding to the request. |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 45 | * @parm scanDatas List of scan result for all AP's seen since last callback. |
| 46 | */ |
Roshan Pius | 5e25466 | 2016-10-26 10:10:48 -0700 | [diff] [blame] | 47 | oneway onBackgroundScanResults(CommandId cmdId, vec<StaScanData> scanDatas); |
Roshan Pius | d476754 | 2016-12-06 10:04:05 -0800 | [diff] [blame] | 48 | |
| 49 | /** |
| 50 | * Called when the RSSI of the currently connected access point goes beyond the |
| 51 | * thresholds set via |IWifiStaIface.startRssiMonitoring|. |
| 52 | * |
| 53 | * @param cmdId command ID corresponding to the request. |
| 54 | * @param currBssid BSSID of the currently connected access point. |
| 55 | * @param currRssi RSSI of the currently connected access point. |
| 56 | */ |
| 57 | oneway onRssiThresholdBreached(CommandId cmdId, Bssid currBssid, Rssi currRssi); |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 58 | }; |