Loading src/com/android/bluetooth/hfp/HeadsetStateMachine.java +18 −3 Original line number Diff line number Diff line Loading @@ -59,6 +59,7 @@ import android.os.Message; import android.os.ParcelUuid; import android.os.RemoteException; import android.os.ServiceManager; import android.os.SystemProperties; import android.os.PowerManager; import android.os.UserHandle; import android.os.PowerManager.WakeLock; Loading Loading @@ -1753,8 +1754,15 @@ final class HeadsetStateMachine extends StateMachine { int volumeValue = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_VALUE, 0); if (mPhoneState.getSpeakerVolume() != volumeValue) { mPhoneState.setSpeakerVolume(volumeValue); boolean scoVolume = SystemProperties.getBoolean("bt.pts.certification", false); if (!scoVolume) { setVolumeNative(HeadsetHalConstants.VOLUME_TYPE_SPK, volumeValue, getByteAddress(device)); } else { setVolumeNative(HeadsetHalConstants.VOLUME_TYPE_SPK, 0, getByteAddress(device)); } } } Loading Loading @@ -2310,8 +2318,15 @@ final class HeadsetStateMachine extends StateMachine { int volumeValue = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_VALUE, 0); if (mPhoneState.getSpeakerVolume() != volumeValue) { mPhoneState.setSpeakerVolume(volumeValue); boolean scoVolume = SystemProperties.getBoolean("bt.pts.certification", false); if (!scoVolume) { setVolumeNative(HeadsetHalConstants.VOLUME_TYPE_SPK, volumeValue, getByteAddress(device)); } else { setVolumeNative(HeadsetHalConstants.VOLUME_TYPE_SPK, 0, getByteAddress(device)); } } } } Loading src/com/android/bluetooth/sap/SapServer.java +2 −3 Original line number Diff line number Diff line Loading @@ -217,9 +217,8 @@ public class SapServer extends Thread implements Callback { /* For PTS TC_SERVER_DCN_BV_03_I we need to expose the option to send immediate disconnect * without first sending a graceful disconnect. * To enable this option set * bt.sap.pts="true" */ String pts_enabled = SystemProperties.get("bt.sap.pts"); Boolean pts_test = Boolean.parseBoolean(pts_enabled); * bt.pts.certification="true" */ Boolean pts_test = SystemProperties.getBoolean("bt.pts.certification", false); /* put notification up for the user to be able to disconnect from the client*/ Intent sapDisconnectIntent = new Intent(SapServer.SAP_DISCONNECT_ACTION); Loading Loading
src/com/android/bluetooth/hfp/HeadsetStateMachine.java +18 −3 Original line number Diff line number Diff line Loading @@ -59,6 +59,7 @@ import android.os.Message; import android.os.ParcelUuid; import android.os.RemoteException; import android.os.ServiceManager; import android.os.SystemProperties; import android.os.PowerManager; import android.os.UserHandle; import android.os.PowerManager.WakeLock; Loading Loading @@ -1753,8 +1754,15 @@ final class HeadsetStateMachine extends StateMachine { int volumeValue = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_VALUE, 0); if (mPhoneState.getSpeakerVolume() != volumeValue) { mPhoneState.setSpeakerVolume(volumeValue); boolean scoVolume = SystemProperties.getBoolean("bt.pts.certification", false); if (!scoVolume) { setVolumeNative(HeadsetHalConstants.VOLUME_TYPE_SPK, volumeValue, getByteAddress(device)); } else { setVolumeNative(HeadsetHalConstants.VOLUME_TYPE_SPK, 0, getByteAddress(device)); } } } Loading Loading @@ -2310,8 +2318,15 @@ final class HeadsetStateMachine extends StateMachine { int volumeValue = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_VALUE, 0); if (mPhoneState.getSpeakerVolume() != volumeValue) { mPhoneState.setSpeakerVolume(volumeValue); boolean scoVolume = SystemProperties.getBoolean("bt.pts.certification", false); if (!scoVolume) { setVolumeNative(HeadsetHalConstants.VOLUME_TYPE_SPK, volumeValue, getByteAddress(device)); } else { setVolumeNative(HeadsetHalConstants.VOLUME_TYPE_SPK, 0, getByteAddress(device)); } } } } Loading
src/com/android/bluetooth/sap/SapServer.java +2 −3 Original line number Diff line number Diff line Loading @@ -217,9 +217,8 @@ public class SapServer extends Thread implements Callback { /* For PTS TC_SERVER_DCN_BV_03_I we need to expose the option to send immediate disconnect * without first sending a graceful disconnect. * To enable this option set * bt.sap.pts="true" */ String pts_enabled = SystemProperties.get("bt.sap.pts"); Boolean pts_test = Boolean.parseBoolean(pts_enabled); * bt.pts.certification="true" */ Boolean pts_test = SystemProperties.getBoolean("bt.pts.certification", false); /* put notification up for the user to be able to disconnect from the client*/ Intent sapDisconnectIntent = new Intent(SapServer.SAP_DISCONNECT_ACTION); Loading