Cars usually have an external audio module. When Android is serving as the car's headunit, users should be able to adjust the car's volume through SystemUI. The following changes are made to make it work: + Load VolumeDialogController from SystemUIFactory + Added CarSystemUIFactory + Added CarVolumeDialogController which extends VolumeDialogController and it uses CarAudioManager as source of truth for volume controls. + Some refactor in VolumeDialogController to make it easier for subclasses to override volume controls. Note that CarAudioManager does not completely replace AudioManager. Majority of code in VolumeDialogController still applies in the car use case, so I made CarVolumeDialogController a subclass of VolumeDialogController instead of making them peers. Bug: 27595951 Change-Id: Id4adec7281e41aa71f3de034e5b88a32a89be305
40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
-keep class com.android.systemui.statusbar.policy.KeyButtonView {
|
|
public float getDrawingAlpha();
|
|
public void setDrawingAlpha(float);
|
|
}
|
|
|
|
-keep class com.android.systemui.statusbar.policy.KeyButtonRipple {
|
|
public float getGlowAlpha();
|
|
public float getGlowScale();
|
|
public void setGlowAlpha(float);
|
|
public void setGlowScale(float);
|
|
}
|
|
|
|
-keep class com.android.systemui.statusbar.car.CarStatusBar
|
|
-keep class com.android.systemui.statusbar.phone.PhoneStatusBar
|
|
-keep class com.android.systemui.statusbar.tv.TvStatusBar
|
|
-keep class com.android.systemui.car.CarSystemUIFactory
|
|
-keep class com.android.systemui.SystemUIFactory
|
|
|
|
-keepclassmembers class ** {
|
|
public void onBusEvent(**);
|
|
public void onInterprocessBusEvent(**);
|
|
}
|
|
-keepclassmembers class ** extends **.EventBus$InterprocessEvent {
|
|
public <init>(android.os.Bundle);
|
|
}
|
|
|
|
-keep class com.android.systemui.recents.views.TaskView {
|
|
public int getDim();
|
|
public void setDim(int);
|
|
public float getTaskProgress();
|
|
public void setTaskProgress(float);
|
|
}
|
|
|
|
-keepclasseswithmembers class * {
|
|
public <init>(android.content.Context, android.util.AttributeSet);
|
|
}
|
|
|
|
-keep class ** extends android.support.v14.preference.PreferenceFragment
|
|
-keep class com.android.systemui.tuner.*
|