blob: 9a8be203a27f9cdf7ba11441f2afa7d45ac86734 [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.hardware.cas@1.2;
import @1.1::ICasListener;
import StatusEvent;
interface ICasListener extends @1.1::ICasListener {
/**
* Notify the listener that the status of CAS system has changed.
*
* @param event the event type of status change.
* @param number value for status event.
* For PLUGIN_PHYSICAL_MODULE_CHANGED event:
* the positive number presents how many plugins are inserted;
* the negative number presents how many plugins are removed.
* Client must enumerate plugins after receive the event.
* For PLUGIN_SESSION_NUMBER_CHANGED event:
* the number presents how many sessions are supported
* in the plugin.
*/
onStatusUpdate(StatusEvent event, int32_t number);
};