Loading packages/SystemUI/src/com/android/systemui/volume/VolumeDialogControllerImpl.java +0 −1 Original line number Diff line number Diff line Loading @@ -49,7 +49,6 @@ import com.android.internal.annotations.GuardedBy; import com.android.systemui.Dumpable; import com.android.systemui.R; import com.android.systemui.SysUiServiceProvider; import com.android.systemui.keyguard.ScreenLifecycle; import com.android.systemui.keyguard.WakefulnessLifecycle; import com.android.systemui.plugins.VolumeDialogController; import com.android.systemui.qs.tiles.DndTile; Loading packages/SystemUI/src/com/android/systemui/volume/car/CarVolumeDialogController.java +6 −4 Original line number Diff line number Diff line Loading @@ -29,6 +29,8 @@ import com.android.systemui.volume.VolumeDialogControllerImpl; /** * A volume dialog controller for the automotive use case. * TODO(hwwang): consider removing this class since it's coupled with stream_type and we are * moving to use AudioAttributes usage for volume control in a car. * * {@link android.car.media.CarAudioManager} is the source of truth to get the stream volumes. * And volume changes should be sent to the car's audio module instead of the android's audio mixer. Loading Loading @@ -70,7 +72,7 @@ public class CarVolumeDialogController extends VolumeDialogControllerImpl { return; } try { mCarAudioManager.setStreamVolume(stream, level, flag); mCarAudioManager.setUsageVolume(stream, level, flag); } catch (CarNotConnectedException e) { Log.e(TAG, "Car is not connected", e); } Loading @@ -84,7 +86,7 @@ public class CarVolumeDialogController extends VolumeDialogControllerImpl { } try { return mCarAudioManager.getStreamVolume(stream); return mCarAudioManager.getUsageVolume(stream); } catch (CarNotConnectedException e) { Log.e(TAG, "Car is not connected", e); return 0; Loading @@ -99,7 +101,7 @@ public class CarVolumeDialogController extends VolumeDialogControllerImpl { } try { return mCarAudioManager.getStreamMaxVolume(stream); return mCarAudioManager.getUsageMaxVolume(stream); } catch (CarNotConnectedException e) { Log.e(TAG, "Car is not connected", e); return 0; Loading @@ -114,7 +116,7 @@ public class CarVolumeDialogController extends VolumeDialogControllerImpl { } try { return mCarAudioManager.getStreamMinVolume(stream); return mCarAudioManager.getUsageMinVolume(stream); } catch (CarNotConnectedException e) { Log.e(TAG, "Car is not connected", e); return 0; Loading Loading
packages/SystemUI/src/com/android/systemui/volume/VolumeDialogControllerImpl.java +0 −1 Original line number Diff line number Diff line Loading @@ -49,7 +49,6 @@ import com.android.internal.annotations.GuardedBy; import com.android.systemui.Dumpable; import com.android.systemui.R; import com.android.systemui.SysUiServiceProvider; import com.android.systemui.keyguard.ScreenLifecycle; import com.android.systemui.keyguard.WakefulnessLifecycle; import com.android.systemui.plugins.VolumeDialogController; import com.android.systemui.qs.tiles.DndTile; Loading
packages/SystemUI/src/com/android/systemui/volume/car/CarVolumeDialogController.java +6 −4 Original line number Diff line number Diff line Loading @@ -29,6 +29,8 @@ import com.android.systemui.volume.VolumeDialogControllerImpl; /** * A volume dialog controller for the automotive use case. * TODO(hwwang): consider removing this class since it's coupled with stream_type and we are * moving to use AudioAttributes usage for volume control in a car. * * {@link android.car.media.CarAudioManager} is the source of truth to get the stream volumes. * And volume changes should be sent to the car's audio module instead of the android's audio mixer. Loading Loading @@ -70,7 +72,7 @@ public class CarVolumeDialogController extends VolumeDialogControllerImpl { return; } try { mCarAudioManager.setStreamVolume(stream, level, flag); mCarAudioManager.setUsageVolume(stream, level, flag); } catch (CarNotConnectedException e) { Log.e(TAG, "Car is not connected", e); } Loading @@ -84,7 +86,7 @@ public class CarVolumeDialogController extends VolumeDialogControllerImpl { } try { return mCarAudioManager.getStreamVolume(stream); return mCarAudioManager.getUsageVolume(stream); } catch (CarNotConnectedException e) { Log.e(TAG, "Car is not connected", e); return 0; Loading @@ -99,7 +101,7 @@ public class CarVolumeDialogController extends VolumeDialogControllerImpl { } try { return mCarAudioManager.getStreamMaxVolume(stream); return mCarAudioManager.getUsageMaxVolume(stream); } catch (CarNotConnectedException e) { Log.e(TAG, "Car is not connected", e); return 0; Loading @@ -114,7 +116,7 @@ public class CarVolumeDialogController extends VolumeDialogControllerImpl { } try { return mCarAudioManager.getStreamMinVolume(stream); return mCarAudioManager.getUsageMinVolume(stream); } catch (CarNotConnectedException e) { Log.e(TAG, "Car is not connected", e); return 0; Loading