@Test public void testRefreshHapticDataNull() throws Exception { hapticMgr.refreshHapticData(null); verify(mockProxy).sendRPC(captor.capture()); SendHapticData data = captor.getValue(); assertNotNull("SendHapticData RPC", data); List<HapticRect> list = data.getHapticRectData(); assertNull("List", list); }
public void refreshHapticData(View root) { if(proxyHolder.get() != null) { ISdl proxy = proxyHolder.get(); if (userHapticData == null) { List<HapticRect> hapticRects = new ArrayList<>(); findHapticRects(root, hapticRects); SendHapticData msg = new SendHapticData(); msg.setHapticRectData(hapticRects); proxy.sendRPC(msg); } } }
HapticInterfaceManager { public void refreshHapticData(View root) { if(proxyHolder.get() != null) { ISdl proxy = proxyHolder.get(); if (userHapticData == null) { List<HapticRect> hapticRects = new ArrayList<>(); findHapticRects(root, hapticRects); SendHapticData msg = new SendHapticData(); msg.setHapticRectData(hapticRects); proxy.sendRPC(msg); } } } }
HapticInterfaceManager { public void refreshHapticData(View root) { if(proxyHolder.get() != null) { ISdl proxy = proxyHolder.get(); if (userHapticData == null) { List<HapticRect> hapticRects = new ArrayList<>(); findHapticRects(root, hapticRects); SendHapticData msg = new SendHapticData(); msg.setHapticRectData(hapticRects); proxy.sendRPC(msg); } } } HapticInterfaceManager(ISdl proxy); }
HapticInterfaceManager { public void refreshHapticData(View root) { if(proxyHolder.get() != null) { ISdl proxy = proxyHolder.get(); if (userHapticData == null) { List<HapticRect> hapticRects = new ArrayList<>(); findHapticRects(root, hapticRects); SendHapticData msg = new SendHapticData(); msg.setHapticRectData(hapticRects); proxy.sendRPC(msg); } } } HapticInterfaceManager(ISdl proxy); void setHapticData(List<HapticRect> hapticData); void refreshHapticData(View root); }
HapticInterfaceManager { public void refreshHapticData(View root) { if(proxyHolder.get() != null) { ISdl proxy = proxyHolder.get(); if (userHapticData == null) { List<HapticRect> hapticRects = new ArrayList<>(); findHapticRects(root, hapticRects); SendHapticData msg = new SendHapticData(); msg.setHapticRectData(hapticRects); proxy.sendRPC(msg); } } } HapticInterfaceManager(ISdl proxy); void setHapticData(List<HapticRect> hapticData); void refreshHapticData(View root);  }