1 /* 2 * Copyright (C) 2019 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.net.wifi; 18 19 import android.net.wifi.WifiUsabilityStatsEntry; 20 21 /** 22 * Interface for Wi-Fi usability stats listener. 23 * 24 * @hide 25 */ 26 oneway interface IOnWifiUsabilityStatsListener 27 { 28 /** 29 * Service to manager callback providing current Wi-Fi usability stats. 30 * 31 * @param seqNum The sequence number of stats, used to derive the timing of updated Wi-Fi 32 * usability statistics, set by framework and shall be incremented by one 33 * after each update. 34 * @param isSameBssidAndFreq The flag to indicate whether the BSSID and the frequency of 35 * network stays the same or not relative to the last update of 36 * Wi-Fi usability stats. 37 * @param stats The updated Wi-Fi usability statistics. 38 */ onWifiUsabilityStats(int seqNum, boolean isSameBssidAndFreq, in WifiUsabilityStatsEntry stats)39 void onWifiUsabilityStats(int seqNum, boolean isSameBssidAndFreq, 40 in WifiUsabilityStatsEntry stats); 41 } 42