/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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ |
D | ConnectivityServiceMock.java | 43 import com.android.internal.util.AsyncChannel; 158 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: { in handleMessage() 162 case AsyncChannel.CMD_CHANNEL_DISCONNECT: { in handleMessage() 167 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: { in handleMessage() 180 AsyncChannel ac = (AsyncChannel) msg.obj; in handleAsyncChannelHalfConnect() 182 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in handleAsyncChannelHalfConnect() 197 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in handleAsyncChannelHalfConnect() 201 sendMessage(AsyncChannel.CMD_CHANNEL_FULL_CONNECTION); in handleAsyncChannelHalfConnect() 313 public final AsyncChannel asyncChannel; 316 NetworkFactoryInfo(String name, Messenger messenger, AsyncChannel asyncChannel, in NetworkFactoryInfo() [all …]
|
/frameworks/base/core/java/android/net/ |
D | NetworkAgent.java | 29 import com.android.internal.util.AsyncChannel; 50 private volatile AsyncChannel mAsyncChannel; 256 case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: { in handleMessage() 261 AsyncChannel ac = new AsyncChannel(); in handleMessage() 263 ac.replyToMessage(msg, AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED, in handleMessage() 264 AsyncChannel.STATUS_SUCCESSFUL); in handleMessage() 275 case AsyncChannel.CMD_CHANNEL_DISCONNECT: { in handleMessage() 280 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: { in handleMessage()
|
D | NetworkFactory.java | 30 import com.android.internal.util.AsyncChannel; 127 private AsyncChannel mAsyncChannel; 169 case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: { in handleMessage() 175 AsyncChannel ac = new AsyncChannel(); in handleMessage() 177 ac.replyToMessage(msg, AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED, in handleMessage() 178 AsyncChannel.STATUS_SUCCESSFUL); in handleMessage() 186 case AsyncChannel.CMD_CHANNEL_DISCONNECT: { in handleMessage() 194 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: { in handleMessage()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NsdService.java | 49 import com.android.internal.util.AsyncChannel; 81 private final AsyncChannel mReplyChannel = new AsyncChannel(); 128 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: in processMessage() 129 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in processMessage() 130 AsyncChannel c = (AsyncChannel) msg.obj; in processMessage() 132 c.sendMessage(AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED); in processMessage() 139 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in processMessage() 141 case AsyncChannel.STATUS_SEND_UNSUCCESSFUL: in processMessage() 144 case AsyncChannel.STATUS_REMOTE_DISCONNECTION: in processMessage() 161 case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: in processMessage() [all …]
|
D | ConnectivityService.java | 167 import com.android.internal.util.AsyncChannel; 333 new Class[] { AsyncChannel.class, ConnectivityService.class, NetworkAgent.class, 2532 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: { in maybeHandleAsyncChannelMessage() 2536 case AsyncChannel.CMD_CHANNEL_DISCONNECT: { in maybeHandleAsyncChannelMessage() 2541 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: { in maybeHandleAsyncChannelMessage() 2933 AsyncChannel ac = (AsyncChannel) msg.obj; in handleAsyncChannelHalfConnect() 2935 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in handleAsyncChannelHalfConnect() 2939 AsyncChannel.CMD_CHANNEL_FULL_CONNECTION); in handleAsyncChannelHalfConnect() 2961 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in handleAsyncChannelHalfConnect() 2965 sendMessage(AsyncChannel.CMD_CHANNEL_FULL_CONNECTION); in handleAsyncChannelHalfConnect() [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/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/base/tests/net/java/android/net/nsd/ |
D | NsdManagerTest.java | 42 import com.android.internal.util.AsyncChannel; 352 public AsyncChannel chan; 376 if (msg.what == AsyncChannel.CMD_CHANNEL_FULL_CONNECTION) { in handleMessage() 377 chan = new AsyncChannel(); in handleMessage() 379 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 | 102 import com.android.internal.util.AsyncChannel; 406 private AsyncChannel mReplyChannel = new AsyncChannel(); 409 private AsyncChannel mWifiP2pChannel; 645 AsyncChannel.class, ClientModeImpl.class }; 1524 public boolean syncQueryPasspointIcon(AsyncChannel channel, long bssid, String fileName) { in syncQueryPasspointIcon() 1541 public int matchProviderWithCurrentNetwork(AsyncChannel channel, String fqdn) { in matchProviderWithCurrentNetwork() 1553 public void deauthenticateNetwork(AsyncChannel channel, long holdoff, boolean ess) { in deauthenticateNetwork() 1621 public int syncAddOrUpdateNetwork(AsyncChannel channel, WifiConfiguration config) { in syncAddOrUpdateNetwork() 1635 public List<WifiConfiguration> syncGetConfiguredNetworks(int uuid, AsyncChannel channel, in syncGetConfiguredNetworks() 1652 public List<WifiConfiguration> syncGetPrivilegedConfiguredNetwork(AsyncChannel channel) { in syncGetPrivilegedConfiguredNetwork() [all …]
|
D | WifiServiceImpl.java | 113 import com.android.internal.util.AsyncChannel; 201 AsyncChannel mClientModeImplChannel; 266 case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: { in handleMessage() 267 AsyncChannel ac = mFrameworkFacade.makeWifiAsyncChannel(TAG); in handleMessage() 407 private AsyncChannel mCmiChannel; 409 ClientModeImplHandler(String tag, Looper looper, AsyncChannel asyncChannel) { in ClientModeImplHandler() 419 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: { in handleMessage() 420 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in handleMessage() 428 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: { in handleMessage() 451 public WifiServiceImpl(Context context, WifiInjector wifiInjector, AsyncChannel asyncChannel) { in WifiServiceImpl() [all …]
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | NetworkAgentInfo.java | 38 import com.android.internal.util.AsyncChannel; 242 public final AsyncChannel asyncChannel; 258 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 | 60 import com.android.internal.util.AsyncChannel; 1117 private AsyncChannel mAsyncChannel; 3512 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: in dispatchMessageToListeners() 3513 if (message.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in dispatchMessageToListeners() 3514 mAsyncChannel.sendMessage(AsyncChannel.CMD_CHANNEL_FULL_CONNECTION); in dispatchMessageToListeners() 3523 case AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED: in dispatchMessageToListeners() 3526 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in dispatchMessageToListeners() 3593 private synchronized AsyncChannel getChannel() { in getChannel() 3601 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 | 95 import com.android.internal.util.AsyncChannel; 331 AsyncChannel mCmiAsyncChannel; 332 AsyncChannel mNetworkAgentAsyncChannel; 384 @Mock AsyncChannel mNullAsyncChannel; 507 private void registerAsyncChannel(Consumer<AsyncChannel> consumer, Messenger messenger, in registerAsyncChannel() 509 final AsyncChannel channel = new AsyncChannel(); in registerAsyncChannel() 514 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: in registerAsyncChannel() 515 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in registerAsyncChannel() 521 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in registerAsyncChannel() 524 case AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED: in registerAsyncChannel() [all …]
|
D | WifiServiceImplTest.java | 127 import com.android.internal.util.AsyncChannel; 191 private AsyncChannel mAsyncChannel; 294 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: in connect() 295 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in connect() 296 mChannel.sendMessage(AsyncChannel.CMD_CHANNEL_FULL_CONNECTION); in connect() 302 case AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED: in connect() 305 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in connect() 331 mAsyncChannel = spy(new AsyncChannel()); in setUp() 1594 when(mClientModeImpl.syncGetSupportedFeatures(any(AsyncChannel.class))) in testStartLocalOnlyHotspotAt5Ghz() 1600 AsyncChannel.CMD_CHANNEL_HALF_CONNECTED, AsyncChannel.STATUS_SUCCESSFUL, 0)); in testStartLocalOnlyHotspotAt5Ghz()
|
/frameworks/opt/telephony/ |
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 | 87 import com.android.internal.util.AsyncChannel; 132 private AsyncChannel mReplyChannel = new WifiAsyncChannel(TAG); 133 private AsyncChannel mWifiChannel; 927 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: in processMessage() 928 if (message.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in processMessage() 932 mWifiChannel = (AsyncChannel) message.obj; in processMessage() 939 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in processMessage() 940 if (message.arg1 == AsyncChannel.STATUS_SEND_UNSUCCESSFUL) { in processMessage() 948 case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: in processMessage() 949 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; 578 endNetworkUsageMsg.what = AsyncChannel.CMD_CHANNEL_DISCONNECTED; in testMultipleNdpsOnSingleNdi() 724 endNetworkUsageMsg.what = AsyncChannel.CMD_CHANNEL_DISCONNECTED; in testMultipleIdenticalRequests() 1440 endNetworkUsageMsg.what = AsyncChannel.CMD_CHANNEL_DISCONNECTED; in testDataPathInitiatorUtilityMore() 1556 endNetworkUsageMsg.what = AsyncChannel.CMD_CHANNEL_DISCONNECTED; in testDataPathResponderUtility() 1831 fullConnectionMessage.what = AsyncChannel.CMD_CHANNEL_FULL_CONNECTION; in initOobDataPathEndPoint()
|