/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/ |
D | BidirectionalAsyncChannelServer.java | 26 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 …]
|
D | BidirectionalAsyncChannel.java | 27 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/ |
D | NsdService.java | 41 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 …]
|
D | ConnectivityService.java | 191 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/ |
D | NsdManager.java | 37 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/ |
D | NetworkAgent.java | 36 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/ |
D | WifiAsyncChannel.java | 23 import com.android.internal.util.AsyncChannel; 31 public class WifiAsyncChannel extends AsyncChannel {
|
/frameworks/opt/telephony/ |
D | jarjar-rules-shared.txt | 9 rule com.android.internal.util.AsyncChannel* com.android.internal.telephony.AsyncChannel@1
|
/frameworks/base/tests/net/java/android/net/nsd/ |
D | NsdManagerTest.java | 40 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/ |
D | OWNERS | 1 per-file AsyncChannel* = lorenzo@google.com, satk@google.com, etancohen@google.com
|
D | AsyncChannel.java | 88 public class AsyncChannel { class 214 public AsyncChannel() { in AsyncChannel() method in AsyncChannel
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ClientModeImpl.java | 108 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 …]
|
D | WifiServiceImpl.java | 114 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/ |
D | NetworkAgentInfo.java | 44 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/ |
D | WifiScanningServiceImpl.java | 48 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/ |
D | WifiScanner.java | 37 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()
|
D | WifiManager.java | 61 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/ |
D | WifiP2pManager.java | 48 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/ |
D | ConnectionUtil.java | 45 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/ |
D | ClientModeImplTest.java | 101 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 …]
|
D | WifiServiceImplTest.java | 130 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/ |
D | README.txt | 16 it is then the AsyncChannel#sendMessageSynchronously is
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImpl.java | 90 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/ |
D | WifiAwareDataPathStateManagerTest.java | 82 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/ |
D | WifiScanningServiceTest.java | 73 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()
|