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 | |
Alex Deymo | e97b39c | 2016-01-20 13:22:17 -0800 | [diff] [blame] | 27 | Status BinderUpdateEngineAndroidService::bind( |
| 28 | const sp<IUpdateEngineCallback>& callback, |
| 29 | bool* return_value) { |
Casey Dahlin | a93cd53 | 2016-01-14 16:55:11 -0800 | [diff] [blame] | 30 | *return_value = true; |
| 31 | return Status::ok(); |
| 32 | } |
| 33 | |
Alex Deymo | e97b39c | 2016-01-20 13:22:17 -0800 | [diff] [blame] | 34 | Status BinderUpdateEngineAndroidService::applyPayload( |
| 35 | const String16& url, |
| 36 | const vector<String16>& header_kv_pairs) { |
Casey Dahlin | a93cd53 | 2016-01-14 16:55:11 -0800 | [diff] [blame] | 37 | return Status::ok(); |
| 38 | } |
| 39 | |
Alex Deymo | e97b39c | 2016-01-20 13:22:17 -0800 | [diff] [blame] | 40 | Status BinderUpdateEngineAndroidService::suspend() { |
Casey Dahlin | a93cd53 | 2016-01-14 16:55:11 -0800 | [diff] [blame] | 41 | return Status::ok(); |
| 42 | } |
| 43 | |
Alex Deymo | e97b39c | 2016-01-20 13:22:17 -0800 | [diff] [blame] | 44 | Status BinderUpdateEngineAndroidService::resume() { |
Casey Dahlin | a93cd53 | 2016-01-14 16:55:11 -0800 | [diff] [blame] | 45 | return Status::ok(); |
| 46 | } |
| 47 | |
Alex Deymo | e97b39c | 2016-01-20 13:22:17 -0800 | [diff] [blame] | 48 | Status BinderUpdateEngineAndroidService::cancel() { |
Casey Dahlin | a93cd53 | 2016-01-14 16:55:11 -0800 | [diff] [blame] | 49 | return Status::ok(); |
| 50 | } |
| 51 | |
| 52 | } // namespace chromeos_update_engine |