blob: c512697f52130023c206bcd215e6f675c6c79617 [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
Alex Deymoe97b39c2016-01-20 13:22:17 -080027Status BinderUpdateEngineAndroidService::bind(
28 const sp<IUpdateEngineCallback>& callback,
29 bool* return_value) {
Casey Dahlina93cd532016-01-14 16:55:11 -080030 *return_value = true;
31 return Status::ok();
32}
33
Alex Deymoe97b39c2016-01-20 13:22:17 -080034Status BinderUpdateEngineAndroidService::applyPayload(
35 const String16& url,
36 const vector<String16>& header_kv_pairs) {
Casey Dahlina93cd532016-01-14 16:55:11 -080037 return Status::ok();
38}
39
Alex Deymoe97b39c2016-01-20 13:22:17 -080040Status BinderUpdateEngineAndroidService::suspend() {
Casey Dahlina93cd532016-01-14 16:55:11 -080041 return Status::ok();
42}
43
Alex Deymoe97b39c2016-01-20 13:22:17 -080044Status BinderUpdateEngineAndroidService::resume() {
Casey Dahlina93cd532016-01-14 16:55:11 -080045 return Status::ok();
46}
47
Alex Deymoe97b39c2016-01-20 13:22:17 -080048Status BinderUpdateEngineAndroidService::cancel() {
Casey Dahlina93cd532016-01-14 16:55:11 -080049 return Status::ok();
50}
51
52} // namespace chromeos_update_engine