blob: 8fe28ec730fb378e21fdee860875fa8e70218b92 [file] [log] [blame]
Alan Stokes3ef78d92021-09-08 11:51:06 +01001/*
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
20use android_system_composd::aidl::android::system::composd::IIsolatedCompilationService::{
21 BnIsolatedCompilationService, IIsolatedCompilationService,
22};
23use android_system_composd::binder::{self, BinderFeatures, Interface, Strong};
24
25pub struct IsolatedCompilationService {}
26
27pub fn new_binder() -> Strong<dyn IIsolatedCompilationService> {
28 let service = IsolatedCompilationService {};
29 BnIsolatedCompilationService::new_binder(service, BinderFeatures::default())
30}
31
32impl IsolatedCompilationService {}
33
34impl Interface for IsolatedCompilationService {}
35
36impl IIsolatedCompilationService for IsolatedCompilationService {
37 fn doSomething(&self) -> binder::Result<()> {
38 Ok(())
39 }
40}