1 /* 2 * Copyright (C) 2023 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.navigationbar 18 19 import com.android.internal.statusbar.RegisterStatusBarResult 20 import com.android.systemui.dagger.SysUISingleton 21 import com.android.systemui.statusbar.phone.BarTransitions 22 import javax.inject.Inject 23 24 /** A no-op version of [NavigationBarController] for variants like Arc and TV. */ 25 @SysUISingleton 26 class NavigationBarControllerEmptyImpl @Inject constructor() : NavigationBarController { createNavigationBarsnull27 override fun createNavigationBars( 28 includeDefaultDisplay: Boolean, 29 result: RegisterStatusBarResult?, 30 ) {} removeNavigationBarnull31 override fun removeNavigationBar(displayId: Int) {} checkNavBarModesnull32 override fun checkNavBarModes(displayId: Int) {} finishBarAnimationsnull33 override fun finishBarAnimations(displayId: Int) {} touchAutoDimnull34 override fun touchAutoDim(displayId: Int) {} transitionTonull35 override fun transitionTo( 36 displayId: Int, 37 @BarTransitions.TransitionMode barMode: Int, 38 animate: Boolean, 39 ) {} disableAnimationsDuringHidenull40 override fun disableAnimationsDuringHide(displayId: Int, delay: Long) {} getDefaultNavigationBarViewnull41 override fun getDefaultNavigationBarView(): NavigationBarView? = null 42 override fun getNavigationBarView(displayId: Int): NavigationBarView? = null 43 override fun isOverviewEnabled(displayId: Int) = false 44 override fun getDefaultNavigationBar(): NavigationBar? = null 45 } 46