blob: df0f0c6a8d3150d2e1a941c60b26dd781814bb10 [file] [log] [blame]
Casey Dahlina93cd532016-01-14 16:55:11 -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_android.h"
18
19using android::String16;
20using android::binder::Status;
21using android::os::IUpdateEngineCallback;
22using android::sp;
23using std::vector;
24
25namespace chromeos_update_engine {
26
27Status BinderService::bind(const sp<IUpdateEngineCallback>& callback,
28 bool* return_value) {
29 *return_value = true;
30 return Status::ok();
31}
32
33Status BinderService::applyPayload(const String16& url,
34 const vector<String16>& header_kv_pairs) {
35 return Status::ok();
36}
37
38Status BinderService::suspend() {
39 return Status::ok();
40}
41
42Status BinderService::resume() {
43 return Status::ok();
44}
45
46Status BinderService::cancel() {
47 return Status::ok();
48}
49
50} // namespace chromeos_update_engine