Alan Stokes | 3ef78d9 | 2021-09-08 11:51:06 +0100 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (C) 2021 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 | //! Implementation of IIsolatedCompilationService, called from system server when compilation is |
| 18 | //! desired. |
| 19 | |
| 20 | use android_system_composd::aidl::android::system::composd::IIsolatedCompilationService::{ |
| 21 | BnIsolatedCompilationService, IIsolatedCompilationService, |
| 22 | }; |
| 23 | use android_system_composd::binder::{self, BinderFeatures, Interface, Strong}; |
| 24 | |
| 25 | pub struct IsolatedCompilationService {} |
| 26 | |
| 27 | pub fn new_binder() -> Strong<dyn IIsolatedCompilationService> { |
| 28 | let service = IsolatedCompilationService {}; |
| 29 | BnIsolatedCompilationService::new_binder(service, BinderFeatures::default()) |
| 30 | } |
| 31 | |
| 32 | impl IsolatedCompilationService {} |
| 33 | |
| 34 | impl Interface for IsolatedCompilationService {} |
| 35 | |
| 36 | impl IIsolatedCompilationService for IsolatedCompilationService { |
| 37 | fn doSomething(&self) -> binder::Result<()> { |
| 38 | Ok(()) |
| 39 | } |
| 40 | } |