blob: e2a972d7f72ddbe9afe996520f7eb561fbdd9d2a [file] [log] [blame]
/*
* Copyright (C) 2019 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.car.trust;
import android.bluetooth.BluetoothDevice;
/**
* Callback interface for BLE connection state changes during trusted device enrollment.
*
* @hide
*/
oneway interface ICarTrustAgentBleCallback {
/**
* Called when the GATT server is started and BLE is successfully advertising for enrollment.
*/
void onEnrollmentAdvertisingStarted();
/**
* Called when the BLE enrollment advertisement fails to start.
* see AdvertiseCallback#ADVERTISE_FAILED_* for possible error codes.
*/
void onEnrollmentAdvertisingFailed(int errorCode);
/**
* Called when a remote device is connected on BLE.
*/
void onBleEnrollmentDeviceConnected(in BluetoothDevice device);
/**
* Called when a remote device is disconnected on BLE.
*/
void onBleEnrollmentDeviceDisconnected(in BluetoothDevice device);
}