Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e7004118 authored by Luke Huang's avatar Luke Huang Committed by android-build-merger
Browse files

Merge "Idletimer-related commands porting" am: b6b8516b am: db4dace0 am: 7dc352c2

am: f649569d

Change-Id: I800949f7c1815eaeb6addd9e297154d977ed897b
parents af5e2ff8 f649569d
Loading
Loading
Loading
Loading
+7 −8
Original line number Diff line number Diff line
@@ -1495,10 +1495,9 @@ public class NetworkManagementService extends INetworkManagementService.Stub
            }

            try {
                mConnector.execute("idletimer", "add", iface, Integer.toString(timeout),
                        Integer.toString(type));
            } catch (NativeDaemonConnectorException e) {
                throw e.rethrowAsParcelableException();
                mNetdService.idletimerAddInterface(iface, timeout, Integer.toString(type));
            } catch (RemoteException | ServiceSpecificException e) {
                throw new IllegalStateException(e);
            }
            mActiveIdleTimers.put(iface, new IdleTimerParams(timeout, type));

@@ -1529,10 +1528,10 @@ public class NetworkManagementService extends INetworkManagementService.Stub
            }

            try {
                mConnector.execute("idletimer", "remove", iface,
                        Integer.toString(params.timeout), Integer.toString(params.type));
            } catch (NativeDaemonConnectorException e) {
                throw e.rethrowAsParcelableException();
                mNetdService.idletimerRemoveInterface(iface,
                        params.timeout, Integer.toString(params.type));
            } catch (RemoteException | ServiceSpecificException e) {
                throw new IllegalStateException(e);
            }
            mActiveIdleTimers.remove(iface);
            mDaemonHandler.post(new Runnable() {