Home
last modified time | relevance | path

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

12

/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/
DBidirectionalAsyncChannelServer.java26 import com.android.internal.util.AsyncChannel;
41 private final Map<Messenger, AsyncChannel> mClients = new HashMap<>();
50 AsyncChannel channel = mClients.get(msg.replyTo); in BidirectionalAsyncChannelServer()
52 case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: in BidirectionalAsyncChannelServer()
56 AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED, in BidirectionalAsyncChannelServer()
57 AsyncChannel.STATUS_FULL_CONNECTION_REFUSED_ALREADY_CONNECTED); in BidirectionalAsyncChannelServer()
59 channel = new AsyncChannel(); in BidirectionalAsyncChannelServer()
62 channel.replyToMessage(msg, AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED, in BidirectionalAsyncChannelServer()
63 AsyncChannel.STATUS_SUCCESSFUL); in BidirectionalAsyncChannelServer()
66 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()
/frameworks/base/services/core/java/com/android/server/
DNsdService.java41 import com.android.internal.util.AsyncChannel;
79 private final AsyncChannel mReplyChannel = new AsyncChannel();
126 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: in processMessage()
127 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in processMessage()
128 AsyncChannel c = (AsyncChannel) msg.obj; in processMessage()
130 c.sendMessage(AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED); in processMessage()
137 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in processMessage()
139 case AsyncChannel.STATUS_SEND_UNSUCCESSFUL: in processMessage()
142 case AsyncChannel.STATUS_REMOTE_DISCONNECTION: in processMessage()
159 case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: in processMessage()
[all …]
DConnectivityService.java191 import com.android.internal.util.AsyncChannel;
354 new Class[] { AsyncChannel.class, ConnectivityService.class, NetworkAgent.class,
2705 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: { in maybeHandleAsyncChannelMessage()
2709 case AsyncChannel.CMD_CHANNEL_DISCONNECT: { in maybeHandleAsyncChannelMessage()
2714 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: { in maybeHandleAsyncChannelMessage()
3254 final AsyncChannel ac = (AsyncChannel) msg.obj; in handleAsyncChannelHalfConnect()
3256 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in handleAsyncChannelHalfConnect()
3267 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in handleAsyncChannelHalfConnect()
3271 sendMessage(AsyncChannel.CMD_CHANNEL_FULL_CONNECTION); in handleAsyncChannelHalfConnect()
5249 private final AsyncChannel mAsyncChannel;
[all …]
/frameworks/base/core/java/android/net/nsd/
DNsdManager.java37 import com.android.internal.util.AsyncChannel;
256 private final AsyncChannel mAsyncChannel = new AsyncChannel();
351 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: in handleMessage()
352 mAsyncChannel.sendMessage(AsyncChannel.CMD_CHANNEL_FULL_CONNECTION); in handleMessage()
354 case AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED: in handleMessage()
357 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in handleMessage()
/frameworks/base/core/java/android/net/
DNetworkAgent.java36 import com.android.internal.util.AsyncChannel;
103 private volatile AsyncChannel mAsyncChannel;
429 case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: { in handleMessage()
434 AsyncChannel ac = new AsyncChannel(); in handleMessage()
436 ac.replyToMessage(msg, AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED, in handleMessage()
437 AsyncChannel.STATUS_SUCCESSFUL); in handleMessage()
448 case AsyncChannel.CMD_CHANNEL_DISCONNECT: { in handleMessage()
453 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: { in handleMessage()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiAsyncChannel.java23 import com.android.internal.util.AsyncChannel;
31 public class WifiAsyncChannel extends AsyncChannel {
/frameworks/opt/telephony/
Djarjar-rules-shared.txt9 rule com.android.internal.util.AsyncChannel* com.android.internal.telephony.AsyncChannel@1
/frameworks/base/tests/net/java/android/net/nsd/
DNsdManagerTest.java40 import com.android.internal.util.AsyncChannel;
351 public AsyncChannel chan;
371 if (msg.what == AsyncChannel.CMD_CHANNEL_FULL_CONNECTION) { in handleMessage()
372 chan = new AsyncChannel(); in handleMessage()
374 chan.sendMessage(AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED); in handleMessage()
/frameworks/base/core/java/com/android/internal/util/
DOWNERS1 per-file AsyncChannel* = lorenzo@google.com, satk@google.com, etancohen@google.com
DAsyncChannel.java88 public class AsyncChannel { class
214 public AsyncChannel() { in AsyncChannel() method in AsyncChannel
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DClientModeImpl.java108 import com.android.internal.util.AsyncChannel;
416 private AsyncChannel mReplyChannel = new AsyncChannel();
419 private AsyncChannel mWifiP2pChannel;
652 AsyncChannel.class, ClientModeImpl.class };
1541 public boolean syncQueryPasspointIcon(AsyncChannel channel, long bssid, String fileName) { in syncQueryPasspointIcon()
1558 public int matchProviderWithCurrentNetwork(AsyncChannel channel, String fqdn) { in matchProviderWithCurrentNetwork()
1570 public void deauthenticateNetwork(AsyncChannel channel, long holdoff, boolean ess) { in deauthenticateNetwork()
1638 public int syncAddOrUpdateNetwork(AsyncChannel channel, WifiConfiguration config) { in syncAddOrUpdateNetwork()
1652 public List<WifiConfiguration> syncGetConfiguredNetworks(int uuid, AsyncChannel channel, in syncGetConfiguredNetworks()
1669 public List<WifiConfiguration> syncGetPrivilegedConfiguredNetwork(AsyncChannel channel) { in syncGetPrivilegedConfiguredNetwork()
[all …]
DWifiServiceImpl.java114 import com.android.internal.util.AsyncChannel;
202 AsyncChannel mClientModeImplChannel;
267 case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: { in handleMessage()
268 AsyncChannel ac = mFrameworkFacade.makeWifiAsyncChannel(TAG); in handleMessage()
408 private AsyncChannel mCmiChannel;
410 ClientModeImplHandler(String tag, Looper looper, AsyncChannel asyncChannel) { in ClientModeImplHandler()
420 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: { in handleMessage()
421 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in handleMessage()
429 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: { in handleMessage()
452 public WifiServiceImpl(Context context, WifiInjector wifiInjector, AsyncChannel asyncChannel) { in WifiServiceImpl()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkAgentInfo.java44 import com.android.internal.util.AsyncChannel;
255 public final AsyncChannel asyncChannel;
271 public NetworkAgentInfo(Messenger messenger, AsyncChannel ac, Network net, NetworkInfo info, in NetworkAgentInfo()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DWifiScanningServiceImpl.java48 import com.android.internal.util.AsyncChannel;
205 case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: { in handleMessage()
214 … client.mChannel.replyToMessage(msg, AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED, in handleMessage()
215 AsyncChannel.STATUS_FULL_CONNECTION_REFUSED_ALREADY_CONNECTED); in handleMessage()
219 AsyncChannel ac = mFrameworkFacade.makeWifiAsyncChannel(TAG); in handleMessage()
225 ac.replyToMessage(msg, AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED, in handleMessage()
226 AsyncChannel.STATUS_SUCCESSFUL); in handleMessage()
230 case AsyncChannel.CMD_CHANNEL_DISCONNECT: { in handleMessage()
237 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: { in handleMessage()
239 if (client != null && msg.arg1 != AsyncChannel.STATUS_SEND_UNSUCCESSFUL in handleMessage()
[all …]
/frameworks/base/wifi/java/android/net/wifi/
DWifiScanner.java37 import com.android.internal.util.AsyncChannel;
1235 private AsyncChannel mAsyncChannel;
1263 mAsyncChannel = new AsyncChannel(); in WifiScanner()
1269 mAsyncChannel.sendMessage(AsyncChannel.CMD_CHANNEL_FULL_CONNECTION); in WifiScanner()
1397 case AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED: in handleMessage()
1399 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in handleMessage()
DWifiManager.java61 import com.android.internal.util.AsyncChannel;
1148 private AsyncChannel mAsyncChannel;
3575 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: in dispatchMessageToListeners()
3576 if (message.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in dispatchMessageToListeners()
3577 mAsyncChannel.sendMessage(AsyncChannel.CMD_CHANNEL_FULL_CONNECTION); in dispatchMessageToListeners()
3586 case AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED: in dispatchMessageToListeners()
3589 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in dispatchMessageToListeners()
3656 private synchronized AsyncChannel getChannel() { in getChannel()
3664 mAsyncChannel = new AsyncChannel(); in getChannel()
/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pManager.java48 import com.android.internal.util.AsyncChannel;
838 mAsyncChannel = new AsyncChannel(); in Channel()
896 private AsyncChannel mAsyncChannel;
908 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in handleMessage()
1159 == 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/tests/wifitests/src/com/android/server/wifi/
DClientModeImplTest.java101 import com.android.internal.util.AsyncChannel;
338 AsyncChannel mCmiAsyncChannel;
339 AsyncChannel mNetworkAgentAsyncChannel;
391 @Mock AsyncChannel mNullAsyncChannel;
518 private void registerAsyncChannel(Consumer<AsyncChannel> consumer, Messenger messenger, in registerAsyncChannel()
520 final AsyncChannel channel = new AsyncChannel(); in registerAsyncChannel()
525 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: in registerAsyncChannel()
526 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in registerAsyncChannel()
532 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in registerAsyncChannel()
535 case AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED: in registerAsyncChannel()
[all …]
DWifiServiceImplTest.java130 import com.android.internal.util.AsyncChannel;
196 private AsyncChannel mAsyncChannel;
300 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: in connect()
301 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in connect()
302 mChannel.sendMessage(AsyncChannel.CMD_CHANNEL_FULL_CONNECTION); in connect()
308 case AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED: in connect()
311 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in connect()
337 mAsyncChannel = spy(new AsyncChannel()); in setUp()
1745 when(mClientModeImpl.syncGetSupportedFeatures(any(AsyncChannel.class))) in testStartLocalOnlyHotspotAt5Ghz()
1751 AsyncChannel.CMD_CHANNEL_HALF_CONNECTED, AsyncChannel.STATUS_SUCCESSFUL, 0)); in testStartLocalOnlyHotspotAt5Ghz()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DREADME.txt16 it is then the AsyncChannel#sendMessageSynchronously is
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java90 import com.android.internal.util.AsyncChannel;
136 private AsyncChannel mReplyChannel = new WifiAsyncChannel(TAG);
137 private AsyncChannel mWifiChannel;
946 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: in processMessage()
947 if (message.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in processMessage()
951 mWifiChannel = (AsyncChannel) message.obj; in processMessage()
958 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in processMessage()
959 if (message.arg1 == AsyncChannel.STATUS_SEND_UNSUCCESSFUL) { in processMessage()
967 case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: in processMessage()
968 AsyncChannel ac = new WifiAsyncChannel(TAG); in processMessage()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareDataPathStateManagerTest.java82 import com.android.internal.util.AsyncChannel;
579 endNetworkUsageMsg.what = AsyncChannel.CMD_CHANNEL_DISCONNECTED; in testMultipleNdpsOnSingleNdi()
725 endNetworkUsageMsg.what = AsyncChannel.CMD_CHANNEL_DISCONNECTED; in testMultipleIdenticalRequests()
1444 endNetworkUsageMsg.what = AsyncChannel.CMD_CHANNEL_DISCONNECTED; in testDataPathInitiatorUtilityMore()
1560 endNetworkUsageMsg.what = AsyncChannel.CMD_CHANNEL_DISCONNECTED; in testDataPathResponderUtility()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DWifiScanningServiceTest.java73 import com.android.internal.util.AsyncChannel;
2309 controlChannel.sendMessage(Message.obtain(null, AsyncChannel.CMD_CHANNEL_DISCONNECTED, in processSingleScanRequestAfterDisconnect()
2310 AsyncChannel.STATUS_REMOTE_DISCONNECTION, 0, null)); in processSingleScanRequestAfterDisconnect()
2361 controlChannel.sendMessage(Message.obtain(null, AsyncChannel.CMD_CHANNEL_DISCONNECTED, in sendScanRequestAfterUnsuccessfulSend()
2362 AsyncChannel.STATUS_SEND_UNSUCCESSFUL, 0, null)); in sendScanRequestAfterUnsuccessfulSend()

12