1 /* 2 * Copyright (C) 2024 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.car.systeminterface.test; 18 19 import static com.android.car.internal.ExcludeFromCodeCoverageGeneratedReport.BOILERPLATE_CODE; 20 21 import com.android.car.internal.ExcludeFromCodeCoverageGeneratedReport; 22 import com.android.car.power.CarPowerManagementService; 23 import com.android.car.systeminterface.DisplayInterface; 24 import com.android.car.user.CarUserService; 25 import com.android.internal.annotations.VisibleForTesting; 26 27 /** 28 * An empty implementation used for testing. 29 */ 30 @ExcludeFromCodeCoverageGeneratedReport(reason = BOILERPLATE_CODE) 31 @VisibleForTesting 32 public class DisplayInterfaceEmptyImpl implements DisplayInterface { 33 @Override init(CarPowerManagementService carPowerManagementService, CarUserService carUserService)34 public void init(CarPowerManagementService carPowerManagementService, 35 CarUserService carUserService) {} 36 37 @Override onDisplayBrightnessChangeFromVhal(int displayId, int brightness)38 public void onDisplayBrightnessChangeFromVhal(int displayId, int brightness) {} 39 40 @Override setDisplayState(int displayId, boolean on)41 public void setDisplayState(int displayId, boolean on) {} 42 43 @Override setAllDisplayState(boolean on)44 public void setAllDisplayState(boolean on) {} 45 46 @Override startDisplayStateMonitoring()47 public void startDisplayStateMonitoring() {} 48 49 @Override stopDisplayStateMonitoring()50 public void stopDisplayStateMonitoring() {} 51 52 @Override refreshDefaultDisplayBrightness()53 public void refreshDefaultDisplayBrightness() {} 54 55 @Override refreshDisplayBrightness(int displayid)56 public void refreshDisplayBrightness(int displayid) {} 57 58 @Override isAnyDisplayEnabled()59 public boolean isAnyDisplayEnabled() { 60 return false; 61 } 62 63 @Override isDisplayEnabled(int displayId)64 public boolean isDisplayEnabled(int displayId) { 65 return false; 66 } 67 } 68