1 /* 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 package com.android.systemui.car.privacy; 18 19 import android.content.Context; 20 import android.content.pm.PackageManager; 21 import android.permission.PermissionManager; 22 23 import com.android.systemui.dagger.SysUISingleton; 24 import com.android.systemui.privacy.PrivacyItemController; 25 import com.android.systemui.privacy.PrivacyType; 26 import com.android.systemui.privacy.logging.PrivacyLogger; 27 import com.android.systemui.settings.UserTracker; 28 29 import javax.inject.Inject; 30 31 /** 32 * Implementation of {@link 33 * com.android.systemui.car.privacy.SensorQcPanel.SensorPrivacyElementsProvider} for microphone. 34 */ 35 @SysUISingleton 36 public class MicPrivacyElementsProviderImpl extends PrivacyElementsProviderImpl { 37 38 @Inject MicPrivacyElementsProviderImpl( Context context, PermissionManager permissionManager, PackageManager packageManager, PrivacyItemController privacyItemController, UserTracker userTracker, PrivacyLogger privacyLogger)39 public MicPrivacyElementsProviderImpl( 40 Context context, 41 PermissionManager permissionManager, 42 PackageManager packageManager, 43 PrivacyItemController privacyItemController, 44 UserTracker userTracker, 45 PrivacyLogger privacyLogger) { 46 super(context, permissionManager, packageManager, privacyItemController, userTracker, 47 privacyLogger); 48 } 49 50 @Override getProviderPrivacyType()51 protected PrivacyType getProviderPrivacyType() { 52 return PrivacyType.TYPE_MICROPHONE; 53 } 54 } 55