2016-10-07 22:15:59 +02:00
|
|
|
/*
|
|
|
|
* Copyright 2016 The Android Open Source Project
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package android.hardware.wifi@1.0;
|
|
|
|
|
|
|
|
interface IWifiStaIfaceEventCallback {
|
2016-10-10 20:53:07 +02:00
|
|
|
/**
|
|
|
|
* Callback indicating that an ongoing background scan request has failed.
|
|
|
|
* The background scan needs to be restarted to continue scanning.
|
2016-12-06 19:04:05 +01:00
|
|
|
*
|
|
|
|
* @param cmdId command ID corresponding to the request.
|
2016-10-10 20:53:07 +02:00
|
|
|
*/
|
|
|
|
oneway onBackgroundScanFailure(CommandId cmdId);
|
|
|
|
|
2016-10-07 22:15:59 +02:00
|
|
|
/**
|
|
|
|
* Called for each received beacon/probe response for a scan with the
|
|
|
|
* |REPORT_EVENTS_FULL_RESULTS| flag set in
|
2016-10-26 19:10:48 +02:00
|
|
|
* |StaBackgroundScanBucketParameters.eventReportScheme|.
|
2016-10-07 22:15:59 +02:00
|
|
|
*
|
2016-12-06 19:04:05 +01:00
|
|
|
* @param cmdId command ID corresponding to the request.
|
2016-10-07 22:15:59 +02:00
|
|
|
* @parm result Full scan result for an AP.
|
|
|
|
*/
|
2016-10-26 19:10:48 +02:00
|
|
|
oneway onBackgroundFullScanResult(CommandId cmdId, StaScanResult result);
|
2016-10-07 22:15:59 +02:00
|
|
|
|
|
|
|
/**
|
2016-10-26 19:10:48 +02:00
|
|
|
* Called when the |StaBackgroundScanBucketParameters.eventReportScheme| flags
|
2016-10-07 22:15:59 +02:00
|
|
|
* for at least one bucket that was just scanned was
|
|
|
|
* |REPORT_EVENTS_EACH_SCAN| or one of the configured thresholds was
|
|
|
|
* breached.
|
|
|
|
*
|
2016-12-06 19:04:05 +01:00
|
|
|
* @param cmdId command ID corresponding to the request.
|
2016-10-07 22:15:59 +02:00
|
|
|
* @parm scanDatas List of scan result for all AP's seen since last callback.
|
|
|
|
*/
|
2016-10-26 19:10:48 +02:00
|
|
|
oneway onBackgroundScanResults(CommandId cmdId, vec<StaScanData> scanDatas);
|
2016-12-06 19:04:05 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Called when the RSSI of the currently connected access point goes beyond the
|
|
|
|
* thresholds set via |IWifiStaIface.startRssiMonitoring|.
|
|
|
|
*
|
|
|
|
* @param cmdId command ID corresponding to the request.
|
|
|
|
* @param currBssid BSSID of the currently connected access point.
|
|
|
|
* @param currRssi RSSI of the currently connected access point.
|
|
|
|
*/
|
|
|
|
oneway onRssiThresholdBreached(CommandId cmdId, Bssid currBssid, Rssi currRssi);
|
2016-10-07 22:15:59 +02:00
|
|
|
};
|