1/* 2 * Copyright 2020 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 android.hardware.wifi@1.5; 18 19import @1.0::CommandIdShort; 20import @1.0::WifiNanStatus; 21import @1.2::IWifiNanIfaceEventCallback; 22 23/** 24 * NAN Response and Asynchronous Event Callbacks. 25 * 26 * References to "NAN Spec" are to the Wi-Fi Alliance "Wi-Fi Neighbor Awareness 27 * Networking (NAN) Technical Specification". 28 */ 29interface IWifiNanIfaceEventCallback extends @1.2::IWifiNanIfaceEventCallback { 30 /** 31 * Asynchronous callback invoked in response to a capability request 32 * |IWifiNanIface.getCapabilitiesRequest|. 33 * 34 * Note: supersedes the @1.2::IWifiNanIfaceEventCallback.notifyCapabilitiesResponse() method 35 * which is deprecated as of HAL version 1.5. 36 * 37 * @param cmdId command Id corresponding to the original request. 38 * @param status WifiNanStatus of the operation. Possible status codes are: 39 * |NanStatusType.SUCCESS| 40 * @param capabilities Capability data. 41 */ 42 oneway notifyCapabilitiesResponse_1_5(CommandIdShort id, WifiNanStatus status, 43 NanCapabilities capabilities); 44}; 45