blob: ec5d297b5adfe0a820b3323c7cf00b2cf304432c [file] [log] [blame]
/*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.car;
import android.util.IndentingPrintWriter;
/**
* Base class for all Car specific services.
*/
public interface CarServiceBase {
/**
* service is started. All necessary initialization should be done and service should be
* functional after this.
*/
void init();
/** service should stop and all resources should be released. */
void release();
/** Called when connection to Vehicle HAL was restored. */
default void vehicleHalReconnected() {}
/** Dumps its state. */
void dump(IndentingPrintWriter writer);
}