Home
last modified time | relevance | path

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

12

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DBidirectionalAsyncChannelServer.java26 import com.android.internal.util.AsyncChannel;
40 private final Map<Messenger, AsyncChannel> mClients = new HashMap<>();
49 AsyncChannel channel = mClients.get(msg.replyTo); in BidirectionalAsyncChannelServer()
51 case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: in BidirectionalAsyncChannelServer()
55 AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED, in BidirectionalAsyncChannelServer()
56 AsyncChannel.STATUS_FULL_CONNECTION_REFUSED_ALREADY_CONNECTED); in BidirectionalAsyncChannelServer()
58 channel = new AsyncChannel(); in BidirectionalAsyncChannelServer()
61 channel.replyToMessage(msg, AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED, in BidirectionalAsyncChannelServer()
62 AsyncChannel.STATUS_SUCCESSFUL); in BidirectionalAsyncChannelServer()
65 case AsyncChannel.CMD_CHANNEL_DISCONNECT: in BidirectionalAsyncChannelServer()
[all …]
DBidirectionalAsyncChannel.java27 import com.android.internal.util.AsyncChannel;
37 private AsyncChannel mChannel;
49 mChannel = new AsyncChannel(); in connect()
54 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: in connect()
55 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in connect()
57 mChannel.sendMessage(AsyncChannel.CMD_CHANNEL_FULL_CONNECTION); in connect()
65 case AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED: in connect()
69 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in connect()
86 mChannel.sendMessage(AsyncChannel.CMD_CHANNEL_DISCONNECT); in disconnect()
DWifiStateMachineTest.java65 import com.android.internal.util.AsyncChannel;
309 AsyncChannel mWsmAsyncChannel;
380 final AsyncChannel channel = new AsyncChannel(); in setUp()
385 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: in setUp()
386 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in setUp()
392 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in setUp()
922 AsyncChannel.CMD_CHANNEL_HALF_CONNECTED)); in smToString()
/frameworks/base/core/java/android/net/
DNetworkAgent.java27 import com.android.internal.util.AsyncChannel;
49 private volatile AsyncChannel mAsyncChannel;
232 case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: { in handleMessage()
237 AsyncChannel ac = new AsyncChannel(); in handleMessage()
239 ac.replyToMessage(msg, AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED, in handleMessage()
240 AsyncChannel.STATUS_SUCCESSFUL); in handleMessage()
251 case AsyncChannel.CMD_CHANNEL_DISCONNECT: { in handleMessage()
256 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: { in handleMessage()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DWifiSignalController.java28 import com.android.internal.util.AsyncChannel;
41 private final AsyncChannel mWifiChannel;
53 mWifiChannel = new AsyncChannel(); in WifiSignalController()
127 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: in handleMessage()
128 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in handleMessage()
130 AsyncChannel.CMD_CHANNEL_FULL_CONNECTION)); in handleMessage()
/frameworks/base/services/core/java/com/android/server/
DNsdService.java43 import com.android.internal.util.AsyncChannel;
73 private AsyncChannel mReplyChannel = new AsyncChannel();
149 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: in processMessage()
150 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in processMessage()
151 AsyncChannel c = (AsyncChannel) msg.obj; in processMessage()
153 c.sendMessage(AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED); in processMessage()
160 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in processMessage()
162 case AsyncChannel.STATUS_SEND_UNSUCCESSFUL: in processMessage()
165 case AsyncChannel.STATUS_REMOTE_DISCONNECTION: in processMessage()
182 case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: in processMessage()
[all …]
DConnectivityService.java124 import com.android.internal.util.AsyncChannel;
241 new Class[] { AsyncChannel.class, ConnectivityService.class, NetworkAgent.class });
2004 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: { in maybeHandleAsyncChannelMessage()
2008 case AsyncChannel.CMD_CHANNEL_DISCONNECT: { in maybeHandleAsyncChannelMessage()
2013 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: { in maybeHandleAsyncChannelMessage()
2202 AsyncChannel ac = (AsyncChannel) msg.obj; in handleAsyncChannelHalfConnect()
2204 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in handleAsyncChannelHalfConnect()
2218 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in handleAsyncChannelHalfConnect()
2222 sendMessage(AsyncChannel.CMD_CHANNEL_FULL_CONNECTION); in handleAsyncChannelHalfConnect()
3787 public final AsyncChannel asyncChannel;
[all …]
/frameworks/base/core/java/android/net/nsd/
DNsdManager.java34 import com.android.internal.util.AsyncChannel;
220 private final AsyncChannel mAsyncChannel = new AsyncChannel();
304 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: in handleMessage()
305 mAsyncChannel.sendMessage(AsyncChannel.CMD_CHANNEL_FULL_CONNECTION); in handleMessage()
307 case AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED: in handleMessage()
310 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in handleMessage()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DRttService.java22 import com.android.internal.util.AsyncChannel;
61 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in handleMessage()
62 if (msg.arg1 == AsyncChannel.STATUS_SEND_UNSUCCESSFUL) { in handleMessage()
71 case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: in handleMessage()
72 AsyncChannel ac = new AsyncChannel(); in handleMessage()
76 ac.replyToMessage(msg, AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED, in handleMessage()
77 AsyncChannel.STATUS_SUCCESSFUL); in handleMessage()
172 private final AsyncChannel mChannel;
179 ClientInfo(AsyncChannel c, Messenger m) { in ClientInfo()
DWifiServiceImpl.java90 import com.android.internal.util.AsyncChannel;
170 private AsyncChannel mWifiStateMachineChannel;
184 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: { in handleMessage()
185 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in handleMessage()
195 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: { in handleMessage()
196 if (msg.arg1 == AsyncChannel.STATUS_SEND_UNSUCCESSFUL) { in handleMessage()
204 case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: { in handleMessage()
205 AsyncChannel ac = new AsyncChannel(); in handleMessage()
282 private AsyncChannel mWsmChannel;
286 mWsmChannel = new AsyncChannel(); in WifiStateMachineHandler()
[all …]
DWifiStateMachine.java101 import com.android.internal.util.AsyncChannel;
537 private AsyncChannel mReplyChannel = new AsyncChannel();
542 private AsyncChannel mWifiP2pChannel;
817 AsyncChannel.class, WifiStateMachine.class, DhcpClient.class };
1409 public boolean syncPingSupplicant(AsyncChannel channel) { in syncPingSupplicant()
1884 public int syncAddPasspointManagementObject(AsyncChannel channel, String managementObject) { in syncAddPasspointManagementObject()
1892 public int syncModifyPasspointManagementObject(AsyncChannel channel, String fqdn, in syncModifyPasspointManagementObject()
1904 public boolean syncQueryPasspointIcon(AsyncChannel channel, long bssid, String fileName) { in syncQueryPasspointIcon()
1914 public int matchProviderWithCurrentNetwork(AsyncChannel channel, String fqdn) { in matchProviderWithCurrentNetwork()
1926 public void deauthenticateNetwork(AsyncChannel channel, long holdoff, boolean ess) { in deauthenticateNetwork()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DConnectivityServiceMock.java116 import com.android.internal.util.AsyncChannel;
254 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: { in handleMessage()
258 case AsyncChannel.CMD_CHANNEL_DISCONNECT: { in handleMessage()
263 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: { in handleMessage()
276 AsyncChannel ac = (AsyncChannel) msg.obj; in handleAsyncChannelHalfConnect()
278 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in handleAsyncChannelHalfConnect()
293 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in handleAsyncChannelHalfConnect()
297 sendMessage(AsyncChannel.CMD_CHANNEL_FULL_CONNECTION); in handleAsyncChannelHalfConnect()
409 public final AsyncChannel asyncChannel;
411 public NetworkFactoryInfo(String name, Messenger messenger, AsyncChannel asyncChannel) { in NetworkFactoryInfo()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkAgentInfo.java33 import com.android.internal.util.AsyncChannel;
172 public final AsyncChannel asyncChannel;
177 public NetworkAgentInfo(Messenger messenger, AsyncChannel ac, Network net, NetworkInfo info, in NetworkAgentInfo()
/frameworks/base/wifi/java/android/net/wifi/
DWifiManager.java40 import com.android.internal.util.AsyncChannel;
670 private AsyncChannel mAsyncChannel;
1859 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED:
1860 if (message.arg1 == AsyncChannel.STATUS_SUCCESSFUL) {
1861 mAsyncChannel.sendMessage(AsyncChannel.CMD_CHANNEL_FULL_CONNECTION);
1870 case AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED:
1873 case AsyncChannel.CMD_CHANNEL_DISCONNECTED:
1970 private synchronized AsyncChannel getChannel() {
1978 mAsyncChannel = new AsyncChannel();
DRttManager.java18 import com.android.internal.util.AsyncChannel;
1120 private AsyncChannel mAsyncChannel;
1148 mAsyncChannel = new AsyncChannel(); in RttManager()
1154 mAsyncChannel.sendMessage(AsyncChannel.CMD_CHANNEL_FULL_CONNECTION); in RttManager()
1237 case AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED: in handleMessage()
1239 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in handleMessage()
DWifiScanner.java33 import com.android.internal.util.AsyncChannel;
1142 private AsyncChannel mAsyncChannel;
1170 mAsyncChannel = new AsyncChannel(); in WifiScanner()
1176 mAsyncChannel.sendMessage(AsyncChannel.CMD_CHANNEL_FULL_CONNECTION); in WifiScanner()
1304 case AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED: in handleMessage()
1306 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in handleMessage()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcAsyncChannel.java21 import com.android.internal.util.AsyncChannel;
32 public class DcAsyncChannel extends AsyncChannel {
89 return AsyncChannel.cmdToString(cmd + BASE); in cmdToString()
DDataConnection.java27 import com.android.internal.util.AsyncChannel;
89 private AsyncChannel mAc;
1041 case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: { in processMessage()
1044 mAc.replyToMessage(msg, AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED, in processMessage()
1045 AsyncChannel.STATUS_FULL_CONNECTION_REFUSED_ALREADY_CONNECTED); in processMessage()
1047 mAc = new AsyncChannel(); in processMessage()
1050 mAc.replyToMessage(msg, AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED, in processMessage()
1051 AsyncChannel.STATUS_SUCCESSFUL, mId, "hi"); in processMessage()
1055 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: { in processMessage()
DDcTracker.java91 import com.android.internal.util.AsyncChannel;
286 private AsyncChannel mReplyAc = new AsyncChannel();
3507 if (status == AsyncChannel.STATUS_SUCCESSFUL) { in createDataConnection()
3810 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: { in handleMessage()
/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pManager.java39 import com.android.internal.util.AsyncChannel;
666 mAsyncChannel = new AsyncChannel(); in Channel()
681 private AsyncChannel mAsyncChannel;
693 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in handleMessage()
904 == AsyncChannel.STATUS_SUCCESSFUL) { in initalizeChannel()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
DConnectionUtil.java45 import com.android.internal.util.AsyncChannel;
235 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: in handleMessage()
236 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in handleMessage()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DWifiScanningServiceImpl.java50 import com.android.internal.util.AsyncChannel;
136 case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: { in handleMessage()
140 … client.mChannel.replyToMessage(msg, AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED, in handleMessage()
141 AsyncChannel.STATUS_FULL_CONNECTION_REFUSED_ALREADY_CONNECTED); in handleMessage()
145 AsyncChannel ac = new AsyncChannel(); in handleMessage()
151 ac.replyToMessage(msg, AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED, in handleMessage()
152 AsyncChannel.STATUS_SUCCESSFUL); in handleMessage()
157 case AsyncChannel.CMD_CHANNEL_DISCONNECT: { in handleMessage()
164 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: { in handleMessage()
1902 private final AsyncChannel mChannel;
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java75 import com.android.internal.util.AsyncChannel;
114 private AsyncChannel mReplyChannel = new AsyncChannel();
115 private AsyncChannel mWifiChannel;
676 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: in processMessage()
677 if (message.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in processMessage()
679 mWifiChannel = (AsyncChannel) message.obj; in processMessage()
686 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in processMessage()
687 if (message.arg1 == AsyncChannel.STATUS_SEND_UNSUCCESSFUL) { in processMessage()
695 case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: in processMessage()
696 AsyncChannel ac = new AsyncChannel(); in processMessage()
/frameworks/base/core/java/com/android/internal/util/
DAsyncChannel.java86 public class AsyncChannel { class
207 public AsyncChannel() { in AsyncChannel() method in AsyncChannel
/frameworks/opt/telephony/
DREADME.txt16 it is then the AsyncChannel#sendMessageSynchronously is

12