blob: 646b5321edafccad733ade84e28321676e943d49 [file] [log] [blame]
ChengYou Ho109522c2020-12-01 09:46:41 +08001/*
2 * Copyright (C) 2020 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
17#include "OemLock.h"
18
19namespace aidl {
20namespace android {
21namespace hardware {
22namespace oemlock {
23
24// Methods from ::android::hardware::oemlock::IOemLock follow.
25
26::ndk::ScopedAStatus OemLock::getName(std::string *out_name) {
27 (void)out_name;
28 return ::ndk::ScopedAStatus::ok();
29}
30
31::ndk::ScopedAStatus OemLock::setOemUnlockAllowedByCarrier(bool in_allowed, const std::vector<uint8_t> &in_signature, OemLockSecureStatus *_aidl_return) {
32 (void)in_allowed;
33 (void)in_signature;
34 (void)_aidl_return;
35 return ::ndk::ScopedAStatus::ok();
36}
37
38::ndk::ScopedAStatus OemLock::isOemUnlockAllowedByCarrier(bool *out_allowed) {
39 (void)out_allowed;
40 return ::ndk::ScopedAStatus::ok();
41}
42
43::ndk::ScopedAStatus OemLock::setOemUnlockAllowedByDevice(bool in_allowed) {
44 (void)in_allowed;
45 return ::ndk::ScopedAStatus::ok();
46}
47
48::ndk::ScopedAStatus OemLock::isOemUnlockAllowedByDevice(bool *out_allowed) {
49 (void)out_allowed;
50 return ::ndk::ScopedAStatus::ok();
51}
52
53} // namespace oemlock
54} // namespace hardware
55} // namespace android
56} // aidl