blob: 61f9b1a7e3a2b3d95791271021cb993c68a686b9 [file] [log] [blame]
Joeyc6e0e422019-01-09 14:05:01 +01001/*
2 * Copyright (C) 2019 The LineageOS 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#ifndef VENDOR_LINEAGE_TRUST_V1_0_USBRESTRICT_H
17#define VENDOR_LINEAGE_TRUST_V1_0_USBRESTRICT_H
18
19#include <vendor/lineage/trust/1.0/IUsbRestrict.h>
20#include <hidl/MQDescriptor.h>
21#include <hidl/Status.h>
22
23namespace vendor {
24namespace lineage {
25namespace trust {
26namespace V1_0 {
27namespace implementation {
28
29using ::android::hardware::Return;
30using ::android::hardware::Void;
31using ::android::sp;
32
33class UsbRestrict : public IUsbRestrict {
34 public:
35 UsbRestrict() = default;
36
37 // Methods from ::vendor::lineage::trust::V1_0::IUsbRestrict follow.
38 Return<bool> isEnabled() override;
39 Return<void> setEnabled(bool enabled) override;
40};
41
42} // namespace implementation
43} // namespace V1_0
44} // namespace trust
45} // namespace lineage
46} // namespace vendor
47
48#endif // VENDOR_LINEAGE_TRUST_V1_0_USBRESTRICT_H