blob: f412d424a6d865f4afc6dbf63c81339d07da8f19 [file] [log] [blame]
Christopher Wiley9e1eda92015-11-16 15:23:37 -08001//
2// Copyright (C) 2015 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 "update_engine/binder_service.h"
18
19using android::OK;
20using android::String16;
Tao Baoe78e3fb2016-01-04 17:57:53 -080021using android::os::IUpdateEngineCallback;
Christopher Wiley9e1eda92015-11-16 15:23:37 -080022using android::sp;
Christopher Wiley09af8812015-11-19 08:12:33 -080023using android::binder::Status;
Christopher Wiley9e1eda92015-11-16 15:23:37 -080024using std::vector;
25
26namespace chromeos_update_engine {
27
Tao Baoe78e3fb2016-01-04 17:57:53 -080028Status BinderService::bind(
29 const sp<IUpdateEngineCallback>& callback,
30 bool* return_value) {
31 *return_value = true;
32 return Status::ok();
33}
34
Christopher Wiley09af8812015-11-19 08:12:33 -080035Status BinderService::applyPayload(
Christopher Wiley9e1eda92015-11-16 15:23:37 -080036 const String16& url,
Tao Baoe78e3fb2016-01-04 17:57:53 -080037 const vector<String16>& header_kv_pairs) {
Christopher Wiley09af8812015-11-19 08:12:33 -080038 return Status::ok();
Christopher Wiley9e1eda92015-11-16 15:23:37 -080039}
40
Christopher Wiley09af8812015-11-19 08:12:33 -080041Status BinderService::suspend() {
42 return Status::ok();
Christopher Wiley9e1eda92015-11-16 15:23:37 -080043}
44
Christopher Wiley09af8812015-11-19 08:12:33 -080045Status BinderService::resume() {
46 return Status::ok();
Christopher Wiley9e1eda92015-11-16 15:23:37 -080047}
48
Christopher Wiley09af8812015-11-19 08:12:33 -080049Status BinderService::cancel() {
50 return Status::ok();
Christopher Wiley9e1eda92015-11-16 15:23:37 -080051}
52
53} // namespace chromeos_update_engine