|
@@ -66,6 +66,7 @@ import com.wdkl.callingbed2.entity.UdpEntity;
|
|
|
import com.wdkl.callingbed2.entity.VersionEntity;
|
|
|
import com.wdkl.callingbed2.receive.AlarmReceiver;
|
|
|
import com.wdkl.callingbed2.receive.NetworkConnectChangedReceiver;
|
|
|
+import com.wdkl.callingbed2.service.SoundPoolManager;
|
|
|
import com.wdkl.callingbed2.util.BitmapUtils;
|
|
|
import com.wdkl.callingbed2.util.DateUtil;
|
|
|
import com.wdkl.callingbed2.util.DensityUtils;
|
|
@@ -586,6 +587,7 @@ public class CallingBedActivity extends BaseActivity implements ISerialPortBedOn
|
|
|
//20190415 waderson 测试
|
|
|
ScreenManagerUtil.setScreenBrightness(context, 210);
|
|
|
|
|
|
+ SoundPoolManager.getInstance().init();
|
|
|
}
|
|
|
|
|
|
private void setListeners() {
|
|
@@ -2103,6 +2105,7 @@ public class CallingBedActivity extends BaseActivity implements ISerialPortBedOn
|
|
|
goneLlRightView(true);
|
|
|
setDoorLight(serialPortUtil, "200");//门灯红色闪烁 add by waderson 20191119 后来加的门灯控制
|
|
|
UdpSendUtil.sendCall4(initDataEntity, mainDataEntity);
|
|
|
+ SoundPoolManager.getInstance().playSound(2);
|
|
|
CALL_STATUS = Constants.SUPPORT_IN_CALL;
|
|
|
if (null != initDataEntity) {
|
|
|
jbVSupport = setJumpingBeans(tvSupportText, initDataEntity.getDeviceBedNum() + "床正在请求增援...");
|
|
@@ -2113,6 +2116,7 @@ public class CallingBedActivity extends BaseActivity implements ISerialPortBedOn
|
|
|
goneLlRightView(true);
|
|
|
setDoorLight(serialPortUtil, "200");//门灯红色闪烁 add by waderson 20191119 后来加的门灯控制
|
|
|
UdpSendUtil.sendCall4(initDataEntity, mainDataEntity);
|
|
|
+ SoundPoolManager.getInstance().playSound(2);
|
|
|
CALL_STATUS = Constants.SUPPORT_IN_CALL;
|
|
|
if (null != initDataEntity) {
|
|
|
jbVSupport = setJumpingBeans(tvSupportText, initDataEntity.getDeviceBedNum() + "床正在请求增援...");
|
|
@@ -2133,6 +2137,7 @@ public class CallingBedActivity extends BaseActivity implements ISerialPortBedOn
|
|
|
//changeTextColor(tvCallCare);
|
|
|
goneLlRightView(true);
|
|
|
//sendProtectHelp();//呼叫护工还没有做;这个先预留
|
|
|
+ SoundPoolManager.getInstance().playSound(2);
|
|
|
CALL_STATUS = Constants.WORK_IN_CALL;
|
|
|
if (null != initDataEntity) {
|
|
|
jbVCall = setJumpingBeans(tvCallText, initDataEntity.getDeviceBedNum() + "床正在呼叫护工...");
|
|
@@ -2142,6 +2147,7 @@ public class CallingBedActivity extends BaseActivity implements ISerialPortBedOn
|
|
|
showThisView(vCall);
|
|
|
goneLlRightView(true);
|
|
|
//sendProtectHelp();//呼叫护工还没有做;这个先预留
|
|
|
+ SoundPoolManager.getInstance().playSound(2);
|
|
|
CALL_STATUS = Constants.WORK_IN_CALL;
|
|
|
if (null != initDataEntity) {
|
|
|
jbVCall = setJumpingBeans(tvCallText, initDataEntity.getDeviceBedNum() + "床正在呼叫护工...");
|
|
@@ -2213,6 +2219,7 @@ public class CallingBedActivity extends BaseActivity implements ISerialPortBedOn
|
|
|
setDoorLight(serialPortUtil, "200");//门灯红色闪烁 add by waderson 20191119 后来加的门灯控制
|
|
|
setCallStatus(serialPortUtil, "1");
|
|
|
UdpSendUtil.sendCall1(initDataEntity, mainDataEntity);
|
|
|
+ SoundPoolManager.getInstance().playSound(2);
|
|
|
CALL_STATUS = Constants.NURSE_IN_CALL;
|
|
|
if (null != initDataEntity) {
|
|
|
jbVNurse = setJumpingBeans(tvNurseText, initDataEntity.getDeviceBedNum() + "床已呼叫,等待护士接听中...");
|
|
@@ -2225,6 +2232,7 @@ public class CallingBedActivity extends BaseActivity implements ISerialPortBedOn
|
|
|
setDoorLight(serialPortUtil, "200");//门灯红色闪烁 add by waderson 20191119 后来加的门灯控制
|
|
|
setCallStatus(serialPortUtil, "1");
|
|
|
UdpSendUtil.sendCall1(initDataEntity, mainDataEntity);
|
|
|
+ SoundPoolManager.getInstance().playSound(2);
|
|
|
CALL_STATUS = Constants.NURSE_IN_CALL;
|
|
|
if (null != initDataEntity) {
|
|
|
jbVNurse = setJumpingBeans(tvNurseText, initDataEntity.getDeviceBedNum() + "床已呼叫,等待护士接听中...");
|
|
@@ -2439,6 +2447,8 @@ public class CallingBedActivity extends BaseActivity implements ISerialPortBedOn
|
|
|
stop();
|
|
|
//=============================================SIP关闭服务===================================//
|
|
|
SipHelperUtil.getInstance(this).unRegisterSip();
|
|
|
+
|
|
|
+ SoundPoolManager.getInstance().release();
|
|
|
}
|
|
|
|
|
|
/**
|