blob: b1e67366e9190e84d062fc8a3b2c9a00742443fd [file] [log] [blame]
Sarah Chinb071f8a2019-11-07 10:43:16 -08001/*
2 * Copyright (C) 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.1 (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.1
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#define LOG_TAG "android.hardware.radio.config@1.3-service"
18
19#include <android/hardware/radio/config/1.3/IRadioConfig.h>
20#include <hidl/HidlTransportSupport.h>
21
22#include "RadioConfig.h"
23
24using android::OK;
25using android::sp;
26using android::status_t;
27using android::hardware::configureRpcThreadpool;
28using android::hardware::joinRpcThreadpool;
29using android::hardware::radio::config::V1_3::IRadioConfig;
30using android::hardware::radio::config::V1_3::implementation::RadioConfig;
31
32int main() {
33 configureRpcThreadpool(1, true);
34 sp<IRadioConfig> radioConfig = new RadioConfig;
35 const status_t status = radioConfig->registerAsService();
36 ALOGW_IF(status != OK, "Could not register IRadioConfig 1.3");
37 ALOGD("Default service is ready.");
38
39 joinRpcThreadpool();
40 return 1;
41}