Home
last modified time | relevance | path

Searched refs:AsyncChannel (Results 1 – 25 of 31) 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,
2713 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: { in maybeHandleAsyncChannelMessage()
2717 case AsyncChannel.CMD_CHANNEL_DISCONNECT: { in maybeHandleAsyncChannelMessage()
2722 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: { in maybeHandleAsyncChannelMessage()
3262 final AsyncChannel ac = (AsyncChannel) msg.obj; in handleAsyncChannelHalfConnect()
3264 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in handleAsyncChannelHalfConnect()
3275 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in handleAsyncChannelHalfConnect()
3279 sendMessage(AsyncChannel.CMD_CHANNEL_FULL_CONNECTION); in handleAsyncChannelHalfConnect()
5268 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;
428 case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: { in handleMessage()
433 AsyncChannel ac = new AsyncChannel(); in handleMessage()
435 ac.replyToMessage(msg, AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED, in handleMessage()
436 AsyncChannel.STATUS_SUCCESSFUL); in handleMessage()
447 case AsyncChannel.CMD_CHANNEL_DISCONNECT: { in handleMessage()
452 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.txt10 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/scanner/
DWifiScanningServiceImpl.java53 import com.android.internal.util.AsyncChannel;
252 case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: { in handleMessage()
261 … client.mChannel.replyToMessage(msg, AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED, in handleMessage()
262 AsyncChannel.STATUS_FULL_CONNECTION_REFUSED_ALREADY_CONNECTED); in handleMessage()
266 AsyncChannel ac = mFrameworkFacade.makeWifiAsyncChannel(TAG); in handleMessage()
272 ac.replyToMessage(msg, AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED, in handleMessage()
273 AsyncChannel.STATUS_SUCCESSFUL); in handleMessage()
277 case AsyncChannel.CMD_CHANNEL_DISCONNECT: { in handleMessage()
284 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: { in handleMessage()
286 if (client != null && msg.arg1 != AsyncChannel.STATUS_SEND_UNSUCCESSFUL in handleMessage()
[all …]
/frameworks/base/wifi/java/android/net/wifi/
DWifiScanner.java43 import com.android.internal.util.AsyncChannel;
1423 private AsyncChannel mAsyncChannel;
1454 mAsyncChannel = new AsyncChannel(); in WifiScanner()
1460 mAsyncChannel.sendMessage(AsyncChannel.CMD_CHANNEL_FULL_CONNECTION); in WifiScanner()
1606 case AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED: in handleMessage()
1608 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in handleMessage()
/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/base/wifi/java/android/net/wifi/p2p/
DWifiP2pManager.java50 import com.android.internal.util.AsyncChannel;
858 mAsyncChannel = new AsyncChannel(); in Channel()
917 private AsyncChannel mAsyncChannel;
929 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in handleMessage()
1180 == AsyncChannel.STATUS_SUCCESSFUL) { in initalizeChannel()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DClientModeImpl.java110 import com.android.internal.util.AsyncChannel;
440 private AsyncChannel mReplyChannel = new AsyncChannel();
443 private AsyncChannel mWifiP2pChannel;
635 AsyncChannel.class, ClientModeImpl.class };
1653 public boolean syncQueryPasspointIcon(AsyncChannel channel, long bssid, String fileName) { in syncQueryPasspointIcon()
1668 public void deauthenticateNetwork(AsyncChannel channel, long holdoff, boolean ess) { in deauthenticateNetwork()
1728 IProvisioningCallback callback, AsyncChannel channel) { in syncStartSubscriptionProvisioning()
1744 public long syncGetSupportedFeatures(AsyncChannel channel) { in syncGetSupportedFeatures()
1755 public WifiLinkLayerStats syncGetLinkLayerStats(AsyncChannel channel) { in syncGetLinkLayerStats()
1806 public Network syncGetCurrentNetwork(AsyncChannel channel) { in syncGetCurrentNetwork()
[all …]
DWifiServiceImpl.java111 import com.android.internal.util.AsyncChannel;
200 AsyncChannel mClientModeImplChannel;
232 private AsyncChannel mCmiChannel;
234 ClientModeImplHandler(String tag, Looper looper, AsyncChannel asyncChannel) { in ClientModeImplHandler()
244 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: { in handleMessage()
245 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in handleMessage()
253 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: { in handleMessage()
294 public WifiServiceImpl(Context context, WifiInjector wifiInjector, AsyncChannel asyncChannel) { in WifiServiceImpl()
3728 final AsyncChannel channel = mClientModeImplChannel;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DREADME.txt16 it is then the AsyncChannel#sendMessageSynchronously is
/frameworks/base/wifi/
Djarjar-rules.txt78 # AsyncChannel in com.android.internal.util) from these packages which are not
121 rule com.android.internal.util.AsyncChannel* com.android.wifi.x.@0
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java88 import com.android.internal.util.AsyncChannel;
141 private AsyncChannel mReplyChannel = new WifiAsyncChannel(TAG);
142 private AsyncChannel mWifiChannel;
960 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: in processMessage()
961 if (message.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in processMessage()
965 mWifiChannel = (AsyncChannel) message.obj; in processMessage()
972 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in processMessage()
973 if (message.arg1 == AsyncChannel.STATUS_SEND_UNSUCCESSFUL) { in processMessage()
981 case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: in processMessage()
982 AsyncChannel ac = new WifiAsyncChannel(TAG); in processMessage()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/vendor/dataconnection/
DVendorDcTracker.java40 import com.android.internal.util.AsyncChannel;
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DClientModeImplTest.java124 import com.android.internal.util.AsyncChannel;
358 AsyncChannel mCmiAsyncChannel;
359 AsyncChannel mNetworkAgentAsyncChannel;
413 @Mock AsyncChannel mNullAsyncChannel;
572 private void registerAsyncChannel(Consumer<AsyncChannel> consumer, Messenger messenger, in registerAsyncChannel()
574 final AsyncChannel channel = new AsyncChannel(); in registerAsyncChannel()
579 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: in registerAsyncChannel()
580 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in registerAsyncChannel()
586 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in registerAsyncChannel()
589 case AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED: in registerAsyncChannel()
[all …]
DWifiServiceImplTest.java151 import com.android.internal.util.AsyncChannel;
238 private AsyncChannel mAsyncChannel;
325 mAsyncChannel = spy(new AsyncChannel()); in setUp()
2196 AsyncChannel.CMD_CHANNEL_HALF_CONNECTED, AsyncChannel.STATUS_SUCCESSFUL, 0)); in testStartLocalOnlyHotspotAt6Ghz()
2225 AsyncChannel.CMD_CHANNEL_HALF_CONNECTED, AsyncChannel.STATUS_SUCCESSFUL, 0)); in testStartLocalOnlyHotspotAt5Ghz()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareDataPathStateManagerTest.java81 import com.android.internal.util.AsyncChannel;
537 endNetworkUsageMsg.what = AsyncChannel.CMD_CHANNEL_DISCONNECTED; in testMultipleNdpsOnSingleNdi()
683 endNetworkUsageMsg.what = AsyncChannel.CMD_CHANNEL_DISCONNECTED; in testMultipleIdenticalRequests()
1480 endNetworkUsageMsg.what = AsyncChannel.CMD_CHANNEL_DISCONNECTED; in testDataPathInitiatorUtilityMore()
1596 endNetworkUsageMsg.what = AsyncChannel.CMD_CHANNEL_DISCONNECTED; in testDataPathResponderUtility()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DWifiScanningServiceTest.java77 import com.android.internal.util.AsyncChannel;
2454 controlChannel.sendMessage(Message.obtain(null, AsyncChannel.CMD_CHANNEL_DISCONNECTED, in processSingleScanRequestAfterDisconnect()
2455 AsyncChannel.STATUS_REMOTE_DISCONNECTION, 0, null)); in processSingleScanRequestAfterDisconnect()
2506 controlChannel.sendMessage(Message.obtain(null, AsyncChannel.CMD_CHANNEL_DISCONNECTED, in sendScanRequestAfterUnsuccessfulSend()
2507 AsyncChannel.STATUS_SEND_UNSUCCESSFUL, 0, null)); in sendScanRequestAfterUnsuccessfulSend()

12