1 /* 2 * Copyright (C) 2017 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.systemui.qs; 17 18 import android.view.View; 19 20 /** 21 * The bottom footer of the quick settings panel. 22 */ 23 public interface QSFooter { 24 /** 25 * Sets whether or not the footer should be visible. 26 * 27 * @param visibility One of {@link View#VISIBLE}, {@link View#INVISIBLE} or {@link View#GONE}. 28 * @see View#setVisibility(int) 29 */ setVisibility(int visibility)30 void setVisibility(int visibility); 31 32 /** 33 * Sets whether the footer is in an expanded state. 34 */ setExpanded(boolean expanded)35 void setExpanded(boolean expanded); 36 37 /** 38 * Sets the percentage amount that the quick settings has been expanded. 39 * 40 * @param expansion A value from 1 to 0 that indicates how much the quick settings have been 41 * expanded. 1 is fully expanded. 42 */ setExpansion(float expansion)43 void setExpansion(float expansion); 44 45 46 /** 47 * Sets whether or not the keyguard is currently being shown. 48 */ setKeyguardShowing(boolean keyguardShowing)49 void setKeyguardShowing(boolean keyguardShowing); 50 disable(int state1, int state2, boolean animate)51 default void disable(int state1, int state2, boolean animate) {} 52 } 53