/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/ |
D | BidirectionalAsyncChannelServer.java | 26 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 …]
|
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/core/java/android/net/ |
D | NetworkAgent.java | 28 import com.android.internal.util.AsyncChannel; 49 private volatile AsyncChannel mAsyncChannel; 218 case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: { in handleMessage() 223 AsyncChannel ac = new AsyncChannel(); in handleMessage() 225 ac.replyToMessage(msg, AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED, in handleMessage() 226 AsyncChannel.STATUS_SUCCESSFUL); in handleMessage() 237 case AsyncChannel.CMD_CHANNEL_DISCONNECT: { in handleMessage() 242 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: { in handleMessage()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | WifiSignalController.java | 32 import com.android.internal.util.AsyncChannel; 43 private final AsyncChannel mWifiChannel; 61 mWifiChannel = new AsyncChannel(); in WifiSignalController() 143 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: in handleMessage() 144 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in handleMessage() 146 AsyncChannel.CMD_CHANNEL_FULL_CONNECTION)); 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 | 136 import com.android.internal.util.AsyncChannel; 273 new Class[] { AsyncChannel.class, ConnectivityService.class, NetworkAgent.class, 2156 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: { in maybeHandleAsyncChannelMessage() 2160 case AsyncChannel.CMD_CHANNEL_DISCONNECT: { in maybeHandleAsyncChannelMessage() 2165 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: { in maybeHandleAsyncChannelMessage() 2408 AsyncChannel ac = (AsyncChannel) msg.obj; in handleAsyncChannelHalfConnect() 2410 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in handleAsyncChannelHalfConnect() 2424 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in handleAsyncChannelHalfConnect() 2428 sendMessage(AsyncChannel.CMD_CHANNEL_FULL_CONNECTION); in handleAsyncChannelHalfConnect() 4194 public final AsyncChannel asyncChannel; [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | OWNERS | 1 per-file AsyncChannel*=lorenzo@google.com 2 per-file AsyncChannel*=satk@google.com 3 per-file AsyncChannel*=silberst@google.com
|
D | AsyncChannel.java | 86 public class AsyncChannel { class 207 public AsyncChannel() { in AsyncChannel() method in AsyncChannel
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ |
D | ConnectivityServiceMock.java | 55 import com.android.internal.util.AsyncChannel; 177 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: { in handleMessage() 181 case AsyncChannel.CMD_CHANNEL_DISCONNECT: { in handleMessage() 186 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: { in handleMessage() 199 AsyncChannel ac = (AsyncChannel) msg.obj; in handleAsyncChannelHalfConnect() 201 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in handleAsyncChannelHalfConnect() 216 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in handleAsyncChannelHalfConnect() 220 sendMessage(AsyncChannel.CMD_CHANNEL_FULL_CONNECTION); in handleAsyncChannelHalfConnect() 332 public final AsyncChannel asyncChannel; 334 public NetworkFactoryInfo(String name, Messenger messenger, AsyncChannel asyncChannel) { in NetworkFactoryInfo() [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 | 41 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/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DcAsyncChannel.java | 26 import com.android.internal.util.AsyncChannel; 32 public class DcAsyncChannel extends AsyncChannel { 91 return AsyncChannel.cmdToString(cmd + BASE); in cmdToString()
|
D | DataConnection.java | 69 import com.android.internal.util.AsyncChannel; 110 private AsyncChannel mAc; 1257 case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: { in processMessage() 1260 mAc.replyToMessage(msg, AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED, in processMessage() 1261 AsyncChannel.STATUS_FULL_CONNECTION_REFUSED_ALREADY_CONNECTED); in processMessage() 1263 mAc = new AsyncChannel(); in processMessage() 1266 mAc.replyToMessage(msg, AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED, in processMessage() 1267 AsyncChannel.STATUS_SUCCESSFUL, mId, "hi"); in processMessage() 1271 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: { in processMessage()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiStateMachine.java | 91 import com.android.internal.util.AsyncChannel; 392 private AsyncChannel mReplyChannel = new AsyncChannel(); 395 private AsyncChannel mWifiP2pChannel; 643 AsyncChannel.class, WifiStateMachine.class, DhcpClient.class }; 1494 public boolean syncQueryPasspointIcon(AsyncChannel channel, long bssid, String fileName) { in syncQueryPasspointIcon() 1504 public int matchProviderWithCurrentNetwork(AsyncChannel channel, String fqdn) { in matchProviderWithCurrentNetwork() 1516 public void deauthenticateNetwork(AsyncChannel channel, long holdoff, boolean ess) { in deauthenticateNetwork() 1564 public int syncAddOrUpdateNetwork(AsyncChannel channel, WifiConfiguration config) { in syncAddOrUpdateNetwork() 1578 public List<WifiConfiguration> syncGetConfiguredNetworks(int uuid, AsyncChannel channel) { in syncGetConfiguredNetworks() 1589 public List<WifiConfiguration> syncGetPrivilegedConfiguredNetwork(AsyncChannel channel) { in syncGetPrivilegedConfiguredNetwork() [all …]
|
D | WifiServiceImpl.java | 102 import com.android.internal.util.AsyncChannel; 186 private AsyncChannel mWifiStateMachineChannel; 255 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: { in handleMessage() 256 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in handleMessage() 266 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: { in handleMessage() 267 if (msg.arg1 == AsyncChannel.STATUS_SEND_UNSUCCESSFUL) { in handleMessage() 275 case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: { in handleMessage() 276 AsyncChannel ac = mFrameworkFacade.makeWifiAsyncChannel(TAG); in handleMessage() 403 private AsyncChannel mWsmChannel; 405 WifiStateMachineHandler(String tag, Looper looper, AsyncChannel asyncChannel) { in WifiStateMachineHandler() [all …]
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | NetworkAgentInfo.java | 37 import com.android.internal.util.AsyncChannel; 237 public final AsyncChannel asyncChannel; 248 public NetworkAgentInfo(Messenger messenger, AsyncChannel ac, Network net, NetworkInfo info, in NetworkAgentInfo()
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiManager.java | 53 import com.android.internal.util.AsyncChannel; 960 private AsyncChannel mAsyncChannel; 2841 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: in dispatchMessageToListeners() 2842 if (message.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in dispatchMessageToListeners() 2843 mAsyncChannel.sendMessage(AsyncChannel.CMD_CHANNEL_FULL_CONNECTION); in dispatchMessageToListeners() 2852 case AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED: in dispatchMessageToListeners() 2855 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in dispatchMessageToListeners() 2922 private synchronized AsyncChannel getChannel() { in getChannel() 2930 mAsyncChannel = new AsyncChannel(); in getChannel()
|
D | WifiScanner.java | 36 import com.android.internal.util.AsyncChannel; 1177 private AsyncChannel mAsyncChannel; 1205 mAsyncChannel = new AsyncChannel(); in WifiScanner() 1211 mAsyncChannel.sendMessage(AsyncChannel.CMD_CHANNEL_FULL_CONNECTION); in WifiScanner() 1339 case AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED: in handleMessage() 1341 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in handleMessage()
|
/frameworks/base/wifi/java/android/net/wifi/p2p/ |
D | WifiP2pManager.java | 41 import com.android.internal.util.AsyncChannel; 677 mAsyncChannel = new AsyncChannel(); in Channel() 734 private AsyncChannel mAsyncChannel; 746 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in handleMessage() 961 == AsyncChannel.STATUS_SUCCESSFUL) { in initalizeChannel()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
D | WifiScanningServiceImpl.java | 51 import com.android.internal.util.AsyncChannel; 143 case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: { in handleMessage() 152 … client.mChannel.replyToMessage(msg, AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED, in handleMessage() 153 AsyncChannel.STATUS_FULL_CONNECTION_REFUSED_ALREADY_CONNECTED); in handleMessage() 157 AsyncChannel ac = mFrameworkFacade.makeWifiAsyncChannel(TAG); in handleMessage() 163 ac.replyToMessage(msg, AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED, in handleMessage() 164 AsyncChannel.STATUS_SUCCESSFUL); in handleMessage() 168 case AsyncChannel.CMD_CHANNEL_DISCONNECT: { in handleMessage() 175 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: { in handleMessage() 177 if (client != null && msg.arg1 != AsyncChannel.STATUS_SEND_UNSUCCESSFUL in handleMessage() [all …]
|
/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 | WifiStateMachineTest.java | 92 import com.android.internal.util.AsyncChannel; 328 AsyncChannel mWsmAsyncChannel; 329 AsyncChannel mNetworkFactoryChannel; 471 private void registerAsyncChannel(Consumer<AsyncChannel> consumer, Messenger messenger) { in registerAsyncChannel() 472 final AsyncChannel channel = new AsyncChannel(); in registerAsyncChannel() 477 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: in registerAsyncChannel() 478 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in registerAsyncChannel() 484 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in registerAsyncChannel() 1305 AsyncChannel.CMD_CHANNEL_HALF_CONNECTED)); in smToString() 1462 AsyncChannel channel = mock(AsyncChannel.class); in testGetSupportedFeaturesCase()
|
/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 | 78 import com.android.internal.util.AsyncChannel; 120 private AsyncChannel mReplyChannel = new WifiAsyncChannel(TAG); 121 private AsyncChannel mWifiChannel; 808 case AsyncChannel.CMD_CHANNEL_HALF_CONNECTED: in processMessage() 809 if (message.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in processMessage() 811 mWifiChannel = (AsyncChannel) message.obj; in processMessage() 819 case AsyncChannel.CMD_CHANNEL_DISCONNECTED: in processMessage() 820 if (message.arg1 == AsyncChannel.STATUS_SEND_UNSUCCESSFUL) { in processMessage() 829 case AsyncChannel.CMD_CHANNEL_FULL_CONNECTION: in processMessage() 830 AsyncChannel ac = new WifiAsyncChannel(TAG); in processMessage()
|