Files
hardware_mediatek/hidl/mtkpower/1.2/default/MtkPowerCallback.h
Alexander Koskovich 3cee729197 mediatek: Switch to SPDX license identifiers
SamarV-121:
grep -rnl 'Licensed under the Apache' | while read -r file; do
    comm=$(grep 'Licensed' "$file" | awk '{print $1}')
    [ "$comm" = '*' ] && comm=' *'
    grep -q '     Licensed' "$file" && comm='    '
    sed -i "/Licensed/,/limitations under the License/c\\""$comm"" SPDX-License-Identifier: Apache-2.0" "$file"
done

Change-Id: Ib95789a0286785ba3b0b6df265291e87a13d2ef8
2023-12-29 01:44:27 +00:00

33 lines
1.1 KiB
C++

/*
* Copyright (C) 2022 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include <vendor/mediatek/hardware/mtkpower/1.2/IMtkPowerCallback.h>
#include <hidl/MQDescriptor.h>
#include <hidl/Status.h>
namespace vendor::mediatek::hardware::mtkpower::implementation {
using ::android::hardware::hidl_array;
using ::android::hardware::hidl_memory;
using ::android::hardware::hidl_string;
using ::android::hardware::hidl_vec;
using ::android::hardware::Return;
using ::android::hardware::Void;
using ::android::sp;
struct MtkPowerCallback : public V1_2::IMtkPowerCallback {
// Methods from ::vendor::mediatek::hardware::mtkpower::V1_1::IMtkPowerCallback follow.
Return<void> mtkPowerHint(int32_t hint, int32_t duration) override;
Return<void> notifyAppState(const hidl_string& pack, const hidl_string& act, int32_t pid, int32_t state, int32_t uid) override;
// Methods from ::vendor::mediatek::hardware::mtkpower::V1_2::IMtkPowerCallback follow.
Return<void> notifyScnUpdate(int32_t hint, int32_t data) override;
};
} // namespace vendor::mediatek::hardware::mtkpower::implementation