refactor codes.
authorTrillGates <williamtrillgates@gmail.com>
Mon, 23 Aug 2021 06:39:48 +0000 (14:39 +0800)
committerTrillGates <williamtrillgates@gmail.com>
Mon, 23 Aug 2021 06:39:48 +0000 (14:39 +0800)
app/src/main/java/com/ic/work/WorkService.java
app/src/main/java/com/ic/work/process/AkProcess.java

index e06c334..bfa66d7 100644 (file)
@@ -66,7 +66,6 @@ public class WorkService extends Service {
     private static final String PED_TOTAL_KEY = "PED_TOTAL";
     private static final String PED_FINISH_ACTION = "com.ic.action.PED_FINISH";
 
-
     private static final String TXT_ACTION = "action.ic.srvPushTxt";
     private static final String TYPE_KEY = "msgType";
     private static final String MSG_KEY = "txtMsg";
index 44791cb..c661af6 100644 (file)
@@ -29,21 +29,21 @@ public class AkProcess {
 
     private IAkRemoteService.Stub akBinder = new IAkRemoteService.Stub() {
         @Override
-        public void registerCallback(IAkAidlInterface cb) throws RemoteException {
+        public void registerCallback(IAkAidlInterface cb) {
             if (cb != null) {
                 mCallbacks.register(cb);
             }
         }
 
         @Override
-        public void unregisterCallback(IAkAidlInterface cb) throws RemoteException {
+        public void unregisterCallback(IAkAidlInterface cb) {
             if (cb != null) {
                 mCallbacks.unregister(cb);
             }
         }
 
         @Override
-        public void startCheckBlood() throws RemoteException {
+        public void startCheckBlood() {
 
             String CUSTOM_NAME = IcSystemProperty.getSystemProperties("persist.sys.customname", "");
 
@@ -57,22 +57,22 @@ public class AkProcess {
         }
 
         @Override
-        public void stopCheckBlood() throws RemoteException {
+        public void stopCheckBlood() {
             EventBus.getDefault().post(new ThreadPoolEvent(STOP_ALL_TASK));
         }
 
         @Override
-        public void queryPedCount() throws RemoteException {
+        public void queryPedCount() {
             EventBus.getDefault().post(new ThreadPoolEvent(1));
         }
 
         @Override
-        public void onStartQueryTemp() throws RemoteException {
+        public void onStartQueryTemp() {
             EventBus.getDefault().post(new ThreadPoolEvent(TEST_TEMPERATURE));
         }
 
         @Override
-        public void onStopQueryTemp() throws RemoteException {
+        public void onStopQueryTemp() {
             EventBus.getDefault().post(new ThreadPoolEvent(STOP_ALL_TASK));
         }
     };