1*4d7e907cSAndroid Build Coastguard Worker/* 2*4d7e907cSAndroid Build Coastguard Worker * Copyright 2021 The Android Open Source Project 3*4d7e907cSAndroid Build Coastguard Worker * 4*4d7e907cSAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License"); 5*4d7e907cSAndroid Build Coastguard Worker * you may not use this file except in compliance with the License. 6*4d7e907cSAndroid Build Coastguard Worker * You may obtain a copy of the License at 7*4d7e907cSAndroid Build Coastguard Worker * 8*4d7e907cSAndroid Build Coastguard Worker * http://www.apache.org/licenses/LICENSE-2.0 9*4d7e907cSAndroid Build Coastguard Worker * 10*4d7e907cSAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software 11*4d7e907cSAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS, 12*4d7e907cSAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*4d7e907cSAndroid Build Coastguard Worker * See the License for the specific language governing permissions and 14*4d7e907cSAndroid Build Coastguard Worker * limitations under the License. 15*4d7e907cSAndroid Build Coastguard Worker */ 16*4d7e907cSAndroid Build Coastguard Worker 17*4d7e907cSAndroid Build Coastguard Workerpackage [email protected]; 18*4d7e907cSAndroid Build Coastguard Worker 19*4d7e907cSAndroid Build Coastguard Workerimport @1.0::ISupplicantP2pIfaceCallback; 20*4d7e907cSAndroid Build Coastguard Workerimport @1.0::MacAddress; 21*4d7e907cSAndroid Build Coastguard Workerimport @1.0::WpsConfigMethods; 22*4d7e907cSAndroid Build Coastguard Workerimport @1.0::P2pGroupCapabilityMask; 23*4d7e907cSAndroid Build Coastguard Worker 24*4d7e907cSAndroid Build Coastguard Worker/** 25*4d7e907cSAndroid Build Coastguard Worker * Callback Interface exposed by the supplicant service 26*4d7e907cSAndroid Build Coastguard Worker * for each P2P mode interface (ISupplicantP2pIface). 27*4d7e907cSAndroid Build Coastguard Worker * 28*4d7e907cSAndroid Build Coastguard Worker * Clients need to host an instance of this HIDL interface object and 29*4d7e907cSAndroid Build Coastguard Worker * pass a reference of the object to the supplicant via the 30*4d7e907cSAndroid Build Coastguard Worker * corresponding |ISupplicantP2pIface.registerCallback| method. 31*4d7e907cSAndroid Build Coastguard Worker */ 32*4d7e907cSAndroid Build Coastguard Workerinterface ISupplicantP2pIfaceCallback extends @1.0::ISupplicantP2pIfaceCallback { 33*4d7e907cSAndroid Build Coastguard Worker /** 34*4d7e907cSAndroid Build Coastguard Worker * Used to indicate that a P2P Wi-Fi Display R2 device has been found. Refer to 35*4d7e907cSAndroid Build Coastguard Worker * Wi-Fi Display Technical Specification Version 2.0. 36*4d7e907cSAndroid Build Coastguard Worker * 37*4d7e907cSAndroid Build Coastguard Worker * @param srcAddress MAC address of the device found. This must either 38*4d7e907cSAndroid Build Coastguard Worker * be the P2P device address for a peer which is not in a group, 39*4d7e907cSAndroid Build Coastguard Worker * or the P2P interface address for a peer which is a Group Owner. 40*4d7e907cSAndroid Build Coastguard Worker * @param p2pDeviceAddress P2P device address. 41*4d7e907cSAndroid Build Coastguard Worker * @param primaryDeviceType Type of device. Refer to section B.1 of Wifi P2P 42*4d7e907cSAndroid Build Coastguard Worker * Technical specification v1.2. 43*4d7e907cSAndroid Build Coastguard Worker * @param deviceName Name of the device. 44*4d7e907cSAndroid Build Coastguard Worker * @param configMethods Mask of WPS configuration methods supported by the 45*4d7e907cSAndroid Build Coastguard Worker * device. 46*4d7e907cSAndroid Build Coastguard Worker * @param deviceCapabilities Refer to section 4.1.4 of Wifi P2P Technical 47*4d7e907cSAndroid Build Coastguard Worker * specification v1.2. 48*4d7e907cSAndroid Build Coastguard Worker * @param groupCapabilites Refer to section 4.1.4 of Wifi P2P Technical 49*4d7e907cSAndroid Build Coastguard Worker * specification v1.2. 50*4d7e907cSAndroid Build Coastguard Worker * @param wfdDeviceInfo WFD device info as described in section 5.1.2 of WFD 51*4d7e907cSAndroid Build Coastguard Worker * technical specification v1.0.0. 52*4d7e907cSAndroid Build Coastguard Worker * @param wfdR2DeviceInfo WFD R2 device info as described in section 5.1.12 of WFD 53*4d7e907cSAndroid Build Coastguard Worker * technical specification v2.1. 54*4d7e907cSAndroid Build Coastguard Worker */ 55*4d7e907cSAndroid Build Coastguard Worker oneway onR2DeviceFound( 56*4d7e907cSAndroid Build Coastguard Worker MacAddress srcAddress, MacAddress p2pDeviceAddress, 57*4d7e907cSAndroid Build Coastguard Worker uint8_t[8] primaryDeviceType, string deviceName, 58*4d7e907cSAndroid Build Coastguard Worker bitfield<WpsConfigMethods> configMethods, uint8_t deviceCapabilities, 59*4d7e907cSAndroid Build Coastguard Worker bitfield<P2pGroupCapabilityMask> groupCapabilities, uint8_t[6] wfdDeviceInfo, 60*4d7e907cSAndroid Build Coastguard Worker uint8_t[2] wfdR2DeviceInfo); 61*4d7e907cSAndroid Build Coastguard Worker}; 62