Просмотр исходного кода

[WallPadMain]
1. 거동 수상자 시나리오 변경
- 통화 중일 경우, 거동 수상자 신호 무조건 무시
- 통화 종료 후, 거동 수상자 신호 90초 후 정상 녹화 시작

jglee 2 лет назад
Родитель
Сommit
41d2f46e79

+ 1 - 1
WallPadMain/src/main/AndroidManifest.xml

@@ -1,7 +1,7 @@
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="kr.co.icontrols.wallpadmain"
     android:versionCode="17"
-    android:versionName="2022.07.25.01">
+    android:versionName="2022.07.29.02">
 
     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
     <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

+ 2 - 2
WallPadMain/src/main/java/kr/co/icontrols/wallpadmain/declare/Common.java

@@ -26,9 +26,9 @@ public final class Common {
 
     public static boolean bWallPadCallLive = false;
     /**
-     * jglee 현재 콜 현관문 실행여부
+     * jglee 현재 통화 실행여부
      */
-    public static boolean bWallPadCallFrontLive = false;
+    public static boolean bWallPadCallingLive = false;
     /***
      * 거동 수상자 녹화 상태 확인 변수
      */

+ 9 - 9
WallPadMain/src/main/java/kr/co/icontrols/wallpadmain/util/iMapServer.java

@@ -984,8 +984,8 @@ public class iMapServer extends Service {
                         case define.NOTIFY_SMART_DCAM_DETECT:
                             // 스마트현관카메라 거동수상자 발생
 //                            Toast.makeText(getApplicationContext(), "Front camera sensor: DETECTED!!", Toast.LENGTH_SHORT).show();
-                            //jglee - 현관문인경우 파악을 위해
-                            if(Common.bWallPadCallFrontLive || bBlockFrontCall)
+                            //jglee - 통화중일 경우
+                            if(Common.bWallPadCallingLive || bBlockFrontCall)
                             {
                                 //현관문일 경우만 return 함
                                 Log.i(TAG, "[mWallPadNotifyBR] define.NOTIFY_SMART_DCAM_DETECT -> bWallPadCallLive [" + bWallPadCallLive + "] return - BR_RECORD_DELAY");
@@ -15577,8 +15577,8 @@ public class iMapServer extends Service {
                 bWallPadCallLive = false;
                 bWallPadRecoder  = false;
                 Common.bWallPadCallLive = bWallPadCallLive;
-                //jglee - 현관문 변수 초기화
-                Common.bWallPadCallFrontLive = false;
+                //jglee - 변수 초기화
+                Common.bWallPadCallingLive = false;
             }
 
             if (bWallPadCallLive != getCallAppRunning()) {
@@ -15629,12 +15629,12 @@ public class iMapServer extends Service {
                     Log.w(TAG,"[WallPadCallLiveBRCheck] bWallPadCallLive [" + bWallPadCallLive + "]");
 
                     //jglee 여기서 Extra변수값을 적용
-                    boolean isFront = false;
-                    isFront = intent.getBooleanExtra("isFront", false);
+                    boolean isCalling = false;
+                    isCalling = intent.getBooleanExtra("isCalling", false);
 
-                    if(Common.bWallPadCallFrontLive != isFront)
+                    if(Common.bWallPadCallingLive != isCalling)
                     {
-                        if(isFront)
+                        if(isCalling)
                         {
                             //현관문사용일 경우
                             Intent Newintent = new Intent();
@@ -15650,7 +15650,7 @@ public class iMapServer extends Service {
                             Log.w(TAG, "[WallPadCallLiveBRCheck] BR_RECORD_DELAY");
                         }
                     }
-                    Common.bWallPadCallFrontLive = isFront;
+                    Common.bWallPadCallingLive = isCalling;
                 }
                 else {
                     Log.w(TAG,"[WallPadCallLiveBRCheck] Not supported strActionName [" + strActionName + "]");