Lines Matching defs:device
267 public void onLlcpLinkActivated(NfcDepEndpoint device) {
268 sendMessage(NfcService.MSG_LLCP_LINK_ACTIVATION, device);
275 public void onLlcpLinkDeactivated(NfcDepEndpoint device) {
276 sendMessage(NfcService.MSG_LLCP_LINK_DEACTIVATED, device);
843 /* Remove the device from the hmap */
1498 NfcDepEndpoint device = (NfcDepEndpoint) o;
1499 if (device.getMode() == NfcDepEndpoint.MODE_P2P_TARGET) {
1501 device.disconnect();
1512 Object device = mObjectMap.get(key);
1513 if (device == null) {
1516 return device;
1659 NfcDepEndpoint device = (NfcDepEndpoint) msg.obj;
1664 /* Check if the device has been already unregistered */
1665 if (mObjectMap.remove(device.getHandle()) != null) {
1667 if (device.getMode() == NfcDepEndpoint.MODE_P2P_TARGET) {
1676 device.disconnect(); // restarts polling loop
1730 private boolean llcpActivated(NfcDepEndpoint device) {
1733 if (device.getMode() == NfcDepEndpoint.MODE_P2P_TARGET) {
1735 if (device.connect()) {
1742 // Register P2P device
1743 mObjectMap.put(device.getHandle(), device);
1750 device.disconnect();
1754 device.disconnect();
1763 } else if (device.getMode() == NfcDepEndpoint.MODE_P2P_INITIATOR) {
1771 // Register P2P device
1772 mObjectMap.put(device.getHandle(), device);