Hai Shalom e722cbd451 [DPP R2] Added support for DPP R2 events
Added support for DPP R2 events that provide additional
details about the onboarding process of a remote enrollee.
Specifically, DPP R2 configurator waits for response from
the enrollee, which reports back the SSID, tried channels
and band support in case it cannot find the AP. When it
reports success, then it means that it is acutally connected.

Bug: 139381558
Test: Manual tests with DPP R1 and R2 enrollees
Test: atest DppManagerTest
Test: atest WifiManagerTest
Test: atest EasyConnectStatusCallbackTest
Test: act.py -c ../WifiDppConfig.json -tc WifiDppTest
Change-Id: I55a8b1e25737e90e304f1933d09ffcd6bcae6ef9
2019-12-19 17:31:34 -08:00

49 lines
1.5 KiB
Plaintext

/*
* Copyright (C) 2018 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.net.wifi;
/**
* Interface for DPP callback.
*
* @hide
*/
oneway interface IDppCallback
{
/**
* Called when local DPP Enrollee successfully receives a new Wi-Fi configuratrion from the
* peer DPP configurator.
*/
void onSuccessConfigReceived(int newNetworkId);
/**
* Called when DPP success events take place, except for when configuration is received from
* an external Configurator. The callback onSuccessConfigReceived will be used in this case.
*/
void onSuccess(int status);
/**
* Called when DPP Failure events take place.
*/
void onFailure(int status, String ssid, String channelList, in int[] bandArray);
/**
* Called when DPP events that indicate progress take place. Can be used by UI elements
* to show progress.
*/
void onProgress(int status);
}