Christopher Wiley | 9e1eda9 | 2015-11-16 15:23:37 -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.h" |
| 18 | |
| 19 | using android::OK; |
| 20 | using android::String16; |
Tao Bao | e78e3fb | 2016-01-04 17:57:53 -0800 | [diff] [blame^] | 21 | using android::os::IUpdateEngineCallback; |
Christopher Wiley | 9e1eda9 | 2015-11-16 15:23:37 -0800 | [diff] [blame] | 22 | using android::sp; |
Christopher Wiley | 09af881 | 2015-11-19 08:12:33 -0800 | [diff] [blame] | 23 | using android::binder::Status; |
Christopher Wiley | 9e1eda9 | 2015-11-16 15:23:37 -0800 | [diff] [blame] | 24 | using std::vector; |
| 25 | |
| 26 | namespace chromeos_update_engine { |
| 27 | |
Tao Bao | e78e3fb | 2016-01-04 17:57:53 -0800 | [diff] [blame^] | 28 | Status BinderService::bind( |
| 29 | const sp<IUpdateEngineCallback>& callback, |
| 30 | bool* return_value) { |
| 31 | *return_value = true; |
| 32 | return Status::ok(); |
| 33 | } |
| 34 | |
Christopher Wiley | 09af881 | 2015-11-19 08:12:33 -0800 | [diff] [blame] | 35 | Status BinderService::applyPayload( |
Christopher Wiley | 9e1eda9 | 2015-11-16 15:23:37 -0800 | [diff] [blame] | 36 | const String16& url, |
Tao Bao | e78e3fb | 2016-01-04 17:57:53 -0800 | [diff] [blame^] | 37 | const vector<String16>& header_kv_pairs) { |
Christopher Wiley | 09af881 | 2015-11-19 08:12:33 -0800 | [diff] [blame] | 38 | return Status::ok(); |
Christopher Wiley | 9e1eda9 | 2015-11-16 15:23:37 -0800 | [diff] [blame] | 39 | } |
| 40 | |
Christopher Wiley | 09af881 | 2015-11-19 08:12:33 -0800 | [diff] [blame] | 41 | Status BinderService::suspend() { |
| 42 | return Status::ok(); |
Christopher Wiley | 9e1eda9 | 2015-11-16 15:23:37 -0800 | [diff] [blame] | 43 | } |
| 44 | |
Christopher Wiley | 09af881 | 2015-11-19 08:12:33 -0800 | [diff] [blame] | 45 | Status BinderService::resume() { |
| 46 | return Status::ok(); |
Christopher Wiley | 9e1eda9 | 2015-11-16 15:23:37 -0800 | [diff] [blame] | 47 | } |
| 48 | |
Christopher Wiley | 09af881 | 2015-11-19 08:12:33 -0800 | [diff] [blame] | 49 | Status BinderService::cancel() { |
| 50 | return Status::ok(); |
Christopher Wiley | 9e1eda9 | 2015-11-16 15:23:37 -0800 | [diff] [blame] | 51 | } |
| 52 | |
| 53 | } // namespace chromeos_update_engine |