Lines Matching defs:msg

57  * hen the operation completes. The <code>msg.obj</code> will contain an AsyncResult
58 * object and <code>AsyncResult.userObj</code> is the original <code>msg.obj</code>. if successful
378 Message msg = dp.onCompletedMsg;
379 if (msg.obj instanceof ApnContext) {
380 alreadySent = (ApnContext)msg.obj;
384 log(String.format("msg=%s msg.obj=%s", msg.toString(),
385 ((msg.obj instanceof String) ? (String) msg.obj : "<no-reason>")));
387 AsyncResult.forMessage(msg);
388 msg.sendToTarget();
394 Message msg = mDataConnectionTracker.obtainMessage(
396 AsyncResult.forMessage(msg);
397 msg.sendToTarget();
653 public boolean processMessage(Message msg) {
657 switch (msg.what) {
661 mAc.replyToMessage(msg, AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED,
665 mAc.connected(null, getHandler(), msg.replyTo);
667 mAc.replyToMessage(msg, AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED,
680 mAc.replyToMessage(msg, DataConnectionAc.RSP_IS_INACTIVE, val ? 1 : 0);
685 mAc.replyToMessage(msg, DataConnectionAc.RSP_GET_CID, cid);
690 mAc.replyToMessage(msg, DataConnectionAc.RSP_GET_APNSETTING, mApn);
696 mAc.replyToMessage(msg, DataConnectionAc.RSP_GET_LINK_PROPERTIES, lp);
700 ProxyProperties proxy = (ProxyProperties) msg.obj;
703 mAc.replyToMessage(msg, DataConnectionAc.RSP_SET_LINK_PROPERTIES_HTTP_PROXY);
707 DataCallState newState = (DataCallState) msg.obj;
714 mAc.replyToMessage(msg,
722 mAc.replyToMessage(msg, DataConnectionAc.RSP_GET_LINK_CAPABILITIES, lc);
726 if (VDBG) log("DcDefaultState: msg.what=REQ_RESET");
727 mAc.replyToMessage(msg, DataConnectionAc.RSP_RESET);
732 mAc.replyToMessage(msg, DataConnectionAc.RSP_GET_REFCOUNT, mRefCount);
736 ApnContext apnContext = (ApnContext) msg.obj;
741 mAc.replyToMessage(msg, DataConnectionAc.RSP_ADD_APNCONTEXT);
745 ApnContext apnContext = (ApnContext) msg.obj;
748 mAc.replyToMessage(msg, DataConnectionAc.RSP_REMOVE_APNCONTEXT);
753 mAc.replyToMessage(msg, DataConnectionAc.RSP_GET_APNCONTEXT_LIST,
758 PendingIntent intent = (PendingIntent) msg.obj;
761 mAc.replyToMessage(msg, DataConnectionAc.RSP_SET_RECONNECT_INTENT);
766 mAc.replyToMessage(msg, DataConnectionAc.RSP_GET_RECONNECT_INTENT,
771 if (DBG) log("DcDefaultState: msg.what=EVENT_CONNECT, fail not expected");
772 ConnectionParams cp = (ConnectionParams) msg.obj;
778 log("DcDefaultState deferring msg.what=EVENT_DISCONNECT" + mRefCount);
780 deferMessage(msg);
785 log("DcDefaultState deferring msg.what=EVENT_DISCONNECT_ALL" + mRefCount);
787 deferMessage(msg);
791 ar = (AsyncResult)msg.obj;
795 log("DcDefaultState: msg.what=EVENT_RIL_CONNECTED mRilVersion=" +
806 log("DcDefaultState: shouldn't happen but ignore msg.what=0x" +
807 Integer.toHexString(msg.what));
869 public boolean processMessage(Message msg) {
872 switch (msg.what) {
875 log("DcInactiveState: msg.what=RSP_RESET, ignore we're already reset");
877 mAc.replyToMessage(msg, DataConnectionAc.RSP_RESET);
882 ConnectionParams cp = (ConnectionParams) msg.obj;
885 log("DcInactiveState msg.what=EVENT_CONNECT." + "RefCount = "
895 if (DBG) log("DcInactiveState: msg.what=EVENT_DISCONNECT");
896 notifyDisconnectCompleted((DisconnectParams)msg.obj, false);
901 if (DBG) log("DcInactiveState: msg.what=EVENT_DISCONNECT_ALL");
902 notifyDisconnectCompleted((DisconnectParams)msg.obj, false);
908 log("DcInactiveState nothandled msg.what=0x" +
909 Integer.toHexString(msg.what));
924 public boolean processMessage(Message msg) {
929 switch (msg.what) {
931 if (DBG) log("DcActivatingState deferring msg.what=EVENT_CONNECT refCount = "
933 deferMessage(msg);
938 if (DBG) log("DcActivatingState msg.what=EVENT_SETUP_DATA_CONNECTION_DONE");
940 ar = (AsyncResult) msg.obj;
984 ar = (AsyncResult) msg.obj;
989 if (DBG) log("DcActivatingState msg.what=EVENT_GET_LAST_FAIL_DONE");
1010 log("DcActivatingState not handled msg.what=0x" +
1011 Integer.toHexString(msg.what));
1056 public boolean processMessage(Message msg) {
1059 switch (msg.what) {
1062 if (DBG) log("DcActiveState msg.what=EVENT_CONNECT RefCount=" + mRefCount);
1063 if (msg.obj != null) {
1064 notifyConnectCompleted((ConnectionParams) msg.obj, FailCause.NONE);
1070 if (DBG) log("DcActiveState msg.what=EVENT_DISCONNECT RefCount=" + mRefCount);
1073 DisconnectParams dp = (DisconnectParams) msg.obj;
1078 if (msg.obj != null) {
1079 notifyDisconnectCompleted((DisconnectParams) msg.obj, false);
1087 log("DcActiveState msg.what=EVENT_DISCONNECT_ALL RefCount=" + mRefCount);
1090 DisconnectParams dp = (DisconnectParams) msg.obj;
1099 log("DcActiveState not handled msg.what=0x" +
1100 Integer.toHexString(msg.what));
1115 public boolean processMessage(Message msg) {
1118 switch (msg.what) {
1120 if (DBG) log("DcDisconnectingState msg.what=EVENT_CONNECT. Defer. RefCount = "
1122 deferMessage(msg);
1127 if (DBG) log("DcDisconnectingState msg.what=EVENT_DEACTIVATE_DONE");
1128 AsyncResult ar = (AsyncResult) msg.obj;
1144 log("DcDisconnectingState not handled msg.what=0x" +
1145 Integer.toHexString(msg.what));
1160 public boolean processMessage(Message msg) {
1163 switch (msg.what) {
1165 AsyncResult ar = (AsyncResult) msg.obj;
1170 " msg.what=EVENT_DEACTIVATE_DONE");
1189 log("DcDisconnectionErrorCreatingConnection not handled msg.what=0x"
1190 + Integer.toHexString(msg.what));
1208 * @param onCompletedMsg is sent with its msg.obj as an AsyncResult object.
1209 * With AsyncResult.userObj set to the original msg.obj,
1220 * @param onCompletedMsg is sent with its msg.obj as an AsyncResult object.
1221 * With AsyncResult.userObj set to the original msg.obj.
1231 * @param onCompletedMsg is sent with its msg.obj as an AsyncResult object.
1232 * With AsyncResult.userObj set to the original msg.obj.
1240 * @return the string for msg.what as our info.