@Override public IPCLong createFromParcel(Parcel in) { IPCLong o = new IPCLong(); o.value = in.readLong(); return o; }
public static void invokeAsync() { IPCLong data = new IPCLong(System.nanoTime()); IPCInvoker.invokeAsync(PushProcessIPCService.PROCESS_NAME, data, IPCRemoteInvoke_PrintSomething.class, new IPCInvokeCallback<IPCString>() { @Override public void onCallback(IPCString data) { Log.i(TAG, "onCallback : %s", data.value); } }); } private static class IPCRemoteInvoke_PrintSomething implements IPCAsyncInvokeTask<IPCLong, IPCString> {
public static void invokeSync() { IPCString result = IPCInvoker.invokeSync(PushProcessIPCService.PROCESS_NAME, new IPCLong(System.nanoTime()), IPCRemoteInvoke_BuildString.class); Log.i(TAG, "invoke result : %s", result); } private static class IPCRemoteInvoke_BuildString implements IPCSyncInvokeTask<IPCLong, IPCString> {