blob: c15ab6d6e892fce32c348f938ab682b65d748806 [file] [log] [blame]
Keun-young Parkd73afae2016-04-08 20:03:32 -07001/*
2 * Copyright (C) 2016 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 */
16package com.android.car;
17
Keun-young Parkd73afae2016-04-08 20:03:32 -070018import android.content.Context;
Keun-young Park3cb89102016-05-05 13:16:03 -070019import android.content.res.Resources;
Keun-young Parkd73afae2016-04-08 20:03:32 -070020
Hongwei Wang38549092018-08-22 12:32:42 -070021import com.android.car.audio.CarAudioService;
22
Keun-young Parkd73afae2016-04-08 20:03:32 -070023import java.io.PrintWriter;
24
Serik Beketayevf9f2ef02018-09-06 12:37:02 -070025public class SystemStateControllerService implements CarServiceBase {
Keun-young Park3cb89102016-05-05 13:16:03 -070026 private final CarAudioService mCarAudioService;
Keun-young Park5ce1c8a2016-04-11 16:56:16 -070027 private final ICarImpl mICarImpl;
Keun-young Park3cb89102016-05-05 13:16:03 -070028 private final boolean mLockWhenMuting;
Keun-young Parkd73afae2016-04-08 20:03:32 -070029
Serik Beketayevf9f2ef02018-09-06 12:37:02 -070030 public SystemStateControllerService(
31 Context context, CarAudioService carAudioService, ICarImpl carImpl) {
Keun-young Park3cb89102016-05-05 13:16:03 -070032 mCarAudioService = carAudioService;
Keun-young Park5ce1c8a2016-04-11 16:56:16 -070033 mICarImpl = carImpl;
Keun-young Park3cb89102016-05-05 13:16:03 -070034 Resources res = context.getResources();
35 mLockWhenMuting = res.getBoolean(R.bool.displayOffMuteLockAllAudio);
Keun-young Parkd73afae2016-04-08 20:03:32 -070036 }
37
38 @Override
Keun-young Parkd73afae2016-04-08 20:03:32 -070039 public void init() {
Keun-young Parkd73afae2016-04-08 20:03:32 -070040 }
41
42 @Override
43 public void release() {
44 }
45
46 @Override
47 public void dump(PrintWriter writer) {
Keun-young Parkd73afae2016-04-08 20:03:32 -070048 }
49}