blob: 275f0183b3973cb0c7cdc79189a5a8b6ec470e97 [file] [log] [blame]
Yifan Honged0fead2019-10-02 18:22:12 -07001/*
2 * Copyright (C) 2019 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.health@2.1;
18
19import @2.0::IHealthInfoCallback;
20
21/**
22 * IHealthInfoCallback is the updated callback interface to
23 * {@link IHealth.registerCallback}.
24 *
25 * A @2.1::IHealthInfoCallback must implement healthInfoChanged_2_1(). The
26 * inherited healthInfoChanged() function is never called when the HAL
27 * implementation post events. See documentation on @2.1::IHealth for details.
28 */
29interface IHealthInfoCallback extends @2.0::IHealthInfoCallback {
30 /**
31 * An implementation of IHealth must call healthInfoChanged on all
32 * registered callbacks after health info changes.
33 * @param info the updated HealthInfo
34 */
35 oneway healthInfoChanged_2_1(HealthInfo info);
36};