blob: 80295051a16c7ed52a59af12c3f8bc2c784dfa2e [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;
21using android::os::IUpdateEnginePayloadApplicationCallback;
22using 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
Christopher Wiley09af8812015-11-19 08:12:33 -080028Status BinderService::applyPayload(
Christopher Wiley9e1eda92015-11-16 15:23:37 -080029 const String16& url,
30 const vector<String16>& header_kv_pairs,
31 const sp<IUpdateEnginePayloadApplicationCallback>& callback,
32 int32_t* return_value) {
33 *return_value = 0;
Christopher Wiley09af8812015-11-19 08:12:33 -080034 return Status::ok();
Christopher Wiley9e1eda92015-11-16 15:23:37 -080035}
36
Christopher Wiley09af8812015-11-19 08:12:33 -080037Status BinderService::suspend() {
38 return Status::ok();
Christopher Wiley9e1eda92015-11-16 15:23:37 -080039}
40
Christopher Wiley09af8812015-11-19 08:12:33 -080041Status BinderService::resume() {
42 return Status::ok();
Christopher Wiley9e1eda92015-11-16 15:23:37 -080043}
44
Christopher Wiley09af8812015-11-19 08:12:33 -080045Status BinderService::cancel() {
46 return Status::ok();
Christopher Wiley9e1eda92015-11-16 15:23:37 -080047}
48
49} // namespace chromeos_update_engine