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