Home
last modified time | relevance | path

Searched refs:peer (Results 1 – 25 of 26) sorted by relevance

12

/packages/services/BuiltInPrintService/src/com/android/bips/p2p/
DP2pPrinterConnection.java62 public P2pPrinterConnection(BuiltInPrintService service, WifiP2pDevice peer, in P2pPrinterConnection() argument
65 if (DEBUG) Log.d(TAG, "Connecting to " + P2pMonitor.toString(peer)); in P2pPrinterConnection()
66 connectToPeer(peer); in P2pPrinterConnection()
75 WifiP2pDevice peer = service.getP2pMonitor().getConnection().getPeer(); in P2pPrinterConnection() local
76 connectToPeer(peer); in P2pPrinterConnection()
84 private void connectToPeer(WifiP2pDevice peer) { in connectToPeer() argument
85 mPeer = peer; in connectToPeer()
90 public void onPeerFound(WifiP2pDevice peer) { in onPeerFound() argument
97 if (peer.deviceAddress.equals(address)) { in onPeerFound()
100 connectToPeer(peer); in onPeerFound()
[all …]
DP2pDiscoveryProcedure.java98 for (WifiP2pDevice peer : mPeers) { in addListener()
99 listener.onPeerFound(peer); in addListener()
120 for (WifiP2pDevice peer : newPeers) { in updatePeers()
121 if (PRINTER_PATTERN.matcher(peer.primaryDeviceType).find()) { in updatePeers()
122 mPeers.add(peer); in updatePeers()
128 for (WifiP2pDevice peer : mPeers) { in updatePeers()
129 foundAddresses.add(peer.deviceAddress); in updatePeers()
130 WifiP2pDevice old = getDevice(oldPeers, peer.deviceAddress); in updatePeers()
131 if (old == null || !old.equals(peer)) { in updatePeers()
133 listener.onPeerFound(peer); in updatePeers()
DP2pConnectionProcedure.java62 WifiP2pDevice peer, P2pConnectionListener listener) { in P2pConnectionProcedure() argument
65 mPeer = peer; in P2pConnectionProcedure()
72 mP2pManager.connect(mChannel, configForPeer(peer), null); in P2pConnectionProcedure()
75 private WifiP2pConfig configForPeer(WifiP2pDevice peer) { in configForPeer() argument
77 config.deviceAddress = peer.deviceAddress; in configForPeer()
78 if (peer.wpsPbcSupported()) { in configForPeer()
80 } else if (peer.wpsKeypadSupported()) { in configForPeer()
DP2pMonitor.java107 public void connect(WifiP2pDevice peer, P2pConnectionListener listener) { in connect() argument
108 if (DEBUG) Log.d(TAG, "connect(" + toString(peer) + ")"); in connect()
117 if (mConnection != null && !peer.deviceAddress.equals(mConnection.getPeer() in connect()
133 mConnection = new P2pConnectionProcedure(mService, mP2pManager, peer, in connect()
DP2pPeerListener.java26 void onPeerFound(WifiP2pDevice peer); in onPeerFound() argument
29 void onPeerLost(WifiP2pDevice peer); in onPeerLost() argument
/packages/services/BuiltInPrintService/src/com/android/bips/ui/
DFindP2pPrintersFragment.java103 public void onPeerFound(WifiP2pDevice peer) { in onPeerFound() argument
104 if (DEBUG) Log.d(TAG, "onPeerFound: " + P2pMonitor.toString(peer)); in onPeerFound()
109 DiscoveredPrinter printer = P2pDiscovery.toPrinter(peer); in onPeerFound()
125 if (DEBUG) Log.d(TAG, "add " + P2pDiscovery.toPrinter(peer)); in onPeerFound()
126 new AddP2pPrinterDialog(FindP2pPrintersFragment.this, mPrintService, peer) in onPeerFound()
135 public void onPeerLost(WifiP2pDevice peer) { in onPeerLost() argument
136 if (DEBUG) Log.d(TAG, "onPeerLost: " + P2pMonitor.toString(peer)); in onPeerLost()
141 DiscoveredPrinter printer = P2pDiscovery.toPrinter(peer); in onPeerLost()
DAddP2pPrinterDialog.java42 AddP2pPrinterDialog(Fragment fragment, BuiltInPrintService printService, WifiP2pDevice peer) { in AddP2pPrinterDialog() argument
46 mPeer = peer; in AddP2pPrinterDialog()
/packages/apps/Dialer/java/com/android/dialer/common/
DFragmentUtils.java63 MainActivityPeer peer = ((MainActivityPeer.PeerSupplier) fragment.getActivity()).getPeer(); in getParent() local
64 if (peer instanceof FragmentUtilListener) { in getParent()
65 return ((FragmentUtilListener) peer).getImpl(callbackInterface); in getParent()
99 MainActivityPeer peer = ((MainActivityPeer.PeerSupplier) fragment.getActivity()).getPeer(); in getParent() local
100 if (peer instanceof FragmentUtilListener) { in getParent()
101 return ((FragmentUtilListener) peer).getImpl(callbackInterface); in getParent()
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DP2pDiscovery.java95 public void onPeerFound(WifiP2pDevice peer) { in onPeerFound() argument
96 DiscoveredPrinter printer = toPrinter(peer); in onPeerFound()
108 public void onPeerLost(WifiP2pDevice peer) { in onPeerLost() argument
109 DiscoveredPrinter printer = toPrinter(peer); in onPeerLost()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/p2p/
DWifiP2pSettings.java564 for (WifiP2pDevice peer: mPeers.getDeviceList()) { in handlePeersChanged()
565 if (DBG) Log.d(TAG, "-> " + peer); in handlePeersChanged()
566 mPeerCategoryController.addChild(new WifiP2pPeer(getPrefContext(), peer)); in handlePeersChanged()
567 if (peer.status == WifiP2pDevice.CONNECTED) mConnectedDevices++; in handlePeersChanged()
/packages/apps/Settings/src/com/android/settings/wifi/p2p/
DWifiP2pSettings.java570 for (WifiP2pDevice peer: mPeers.getDeviceList()) { in handlePeersChanged()
571 if (DBG) Log.d(TAG, "-> " + peer); in handlePeersChanged()
572 mPeerCategoryController.addChild(new WifiP2pPeer(getPrefContext(), peer)); in handlePeersChanged()
573 if (peer.status == WifiP2pDevice.CONNECTED) mConnectedDevices++; in handlePeersChanged()
/packages/modules/DnsResolver/
Dres_send.cpp682 struct sockaddr_storage peer; in send_vc() local
683 socklen_t size = sizeof peer; in send_vc()
686 if (getpeername(statp->tcp_nssock, (struct sockaddr*)(void*)&peer, &size) < 0 || in send_vc()
687 !sock_eq((struct sockaddr*)(void*)&peer, nsap) || in send_vc()
Dstats.proto317 SYS_ECONNRESET = 104; // Connection reset by peer
/packages/inputmethods/LatinIME/dictionaries/
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
Den_US_wordlist.combined.gz1dictionary=main:en_us,locale=en_US,description=English (US),date ...
Den_wordlist.combined.gz1dictionary=main:en,locale=en,description=English,date=1414726273, ...
Dit_wordlist.combined.gz1dictionary=main:it,locale=it,description=Italiano,date=1414726258, ...
Dnb_wordlist.combined.gz1dictionary=main:nb,locale=nb,description=Norsk bokmål,date=1393228136 ...
Dnl_wordlist.combined.gz1dictionary=main:nl,locale=nl,description=Nederlands,date=1414726258, ...
Dda_wordlist.combined.gz1dictionary=main:da,locale=da,description=Dansk,date=1393228134, ...
Dcs_wordlist.combined.gz
Dpl_wordlist.combined.gz1dictionary=main:pl,locale=pl,description=Polski,date=1414726264, ...
Dde_wordlist.combined.gz1dictionary=main:de,locale=de,description=Deutsch,date=1414726263, ...
Dfi_wordlist.combined.gz1dictionary=main:fi,locale=fi,description=Suomi,date=1393228135, ...
Dfr_wordlist.combined.gz1dictionary=main:fr,locale=fr,description=Français,date=1414726264, ...

12