Jason Monk | 0e1101d | 2015-10-07 13:06:09 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015 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.statusbar.phone; |
| 18 | |
| 19 | import android.content.Context; |
| 20 | import android.util.AttributeSet; |
| 21 | import android.widget.RelativeLayout; |
Winson | c0d7058 | 2016-01-29 10:24:39 -0800 | [diff] [blame] | 22 | |
Jason Monk | 0e1101d | 2015-10-07 13:06:09 -0400 | [diff] [blame] | 23 | import com.android.systemui.qs.QSPanel; |
| 24 | import com.android.systemui.statusbar.policy.BatteryController; |
| 25 | import com.android.systemui.statusbar.policy.NetworkControllerImpl; |
| 26 | import com.android.systemui.statusbar.policy.NextAlarmController; |
| 27 | import com.android.systemui.statusbar.policy.UserInfoController; |
| 28 | |
| 29 | public abstract class BaseStatusBarHeader extends RelativeLayout implements |
| 30 | NetworkControllerImpl.EmergencyListener { |
| 31 | |
| 32 | public BaseStatusBarHeader(Context context, AttributeSet attrs) { |
| 33 | super(context, attrs); |
| 34 | } |
| 35 | |
| 36 | public abstract int getCollapsedHeight(); |
| 37 | public abstract int getExpandedHeight(); |
Jason Monk | db50de8 | 2016-02-03 15:34:54 -0500 | [diff] [blame] | 38 | |
Jason Monk | 0e1101d | 2015-10-07 13:06:09 -0400 | [diff] [blame] | 39 | public abstract void setExpanded(boolean b); |
| 40 | public abstract void setExpansion(float headerExpansionFraction); |
| 41 | public abstract void setListening(boolean listening); |
| 42 | public abstract void updateEverything(); |
| 43 | public abstract void setActivityStarter(ActivityStarter activityStarter); |
| 44 | public abstract void setQSPanel(QSPanel qSPanel); |
| 45 | public abstract void setBatteryController(BatteryController batteryController); |
| 46 | public abstract void setNextAlarmController(NextAlarmController nextAlarmController); |
| 47 | public abstract void setUserInfoController(UserInfoController userInfoController); |
| 48 | } |