Keun-young Park | d73afae | 2016-04-08 20:03:32 -0700 | [diff] [blame] | 1 | /* |
| 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 | */ |
| 16 | package com.android.car; |
| 17 | |
Keun-young Park | d73afae | 2016-04-08 20:03:32 -0700 | [diff] [blame] | 18 | import android.content.Context; |
Keun-young Park | 3cb8910 | 2016-05-05 13:16:03 -0700 | [diff] [blame] | 19 | import android.content.res.Resources; |
Keun-young Park | d73afae | 2016-04-08 20:03:32 -0700 | [diff] [blame] | 20 | |
Hongwei Wang | 3854909 | 2018-08-22 12:32:42 -0700 | [diff] [blame] | 21 | import com.android.car.audio.CarAudioService; |
| 22 | |
Keun-young Park | d73afae | 2016-04-08 20:03:32 -0700 | [diff] [blame] | 23 | import java.io.PrintWriter; |
| 24 | |
Serik Beketayev | f9f2ef0 | 2018-09-06 12:37:02 -0700 | [diff] [blame] | 25 | public class SystemStateControllerService implements CarServiceBase { |
Keun-young Park | 3cb8910 | 2016-05-05 13:16:03 -0700 | [diff] [blame] | 26 | private final CarAudioService mCarAudioService; |
Keun-young Park | 5ce1c8a | 2016-04-11 16:56:16 -0700 | [diff] [blame] | 27 | private final ICarImpl mICarImpl; |
Keun-young Park | 3cb8910 | 2016-05-05 13:16:03 -0700 | [diff] [blame] | 28 | private final boolean mLockWhenMuting; |
Keun-young Park | d73afae | 2016-04-08 20:03:32 -0700 | [diff] [blame] | 29 | |
Serik Beketayev | f9f2ef0 | 2018-09-06 12:37:02 -0700 | [diff] [blame] | 30 | public SystemStateControllerService( |
| 31 | Context context, CarAudioService carAudioService, ICarImpl carImpl) { |
Keun-young Park | 3cb8910 | 2016-05-05 13:16:03 -0700 | [diff] [blame] | 32 | mCarAudioService = carAudioService; |
Keun-young Park | 5ce1c8a | 2016-04-11 16:56:16 -0700 | [diff] [blame] | 33 | mICarImpl = carImpl; |
Keun-young Park | 3cb8910 | 2016-05-05 13:16:03 -0700 | [diff] [blame] | 34 | Resources res = context.getResources(); |
| 35 | mLockWhenMuting = res.getBoolean(R.bool.displayOffMuteLockAllAudio); |
Keun-young Park | d73afae | 2016-04-08 20:03:32 -0700 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | @Override |
Keun-young Park | d73afae | 2016-04-08 20:03:32 -0700 | [diff] [blame] | 39 | public void init() { |
Keun-young Park | d73afae | 2016-04-08 20:03:32 -0700 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | @Override |
| 43 | public void release() { |
| 44 | } |
| 45 | |
| 46 | @Override |
| 47 | public void dump(PrintWriter writer) { |
Keun-young Park | d73afae | 2016-04-08 20:03:32 -0700 | [diff] [blame] | 48 | } |
| 49 | } |