Lines Matching refs:mStkContext

170     private StkContext[] mStkContext = null;  field in StkAppService
314 mStkContext = new StkContext[maxSimCount]; in onCreate()
319 mStkContext[i] = new StkContext(); in onCreate()
320 mStkContext[i].mSlotId = i; in onCreate()
321 mStkContext[i].mCmdsQ = new LinkedList<DelayedCmd>(); in onCreate()
354 CatLog.d(LOG_TAG, "mStkService is: " + mStkContext[slotId].mStkServiceState); in onStart()
355 mStkContext[slotId].mStkServiceState = STATE_NOT_EXIST; in onStart()
361 && (mStkContext[i].mStkServiceState == STATE_UNKNOWN in onStart()
362 || mStkContext[i].mStkServiceState == STATE_EXIST)) { in onStart()
367 mStkContext[slotId].mStkServiceState = STATE_EXIST; in onStart()
441 mStkContext[slotId].mMenuIsVisible = visibility; in indicateMenuVisibility()
450 mStkContext[slotId].mDisplayTextDlgIsVisibile = visibility; in setDisplayTextDlgVisibility()
456 CatLog.d(LOG_TAG, "isInputFinishBySrv: " + mStkContext[slotId].mIsInputPending); in isInputPending()
457 return mStkContext[slotId].mIsInputPending; in isInputPending()
464 CatLog.d(LOG_TAG, "isMenuPending: " + mStkContext[slotId].mIsMenuPending); in isMenuPending()
465 return mStkContext[slotId].mIsMenuPending; in isMenuPending()
472 CatLog.d(LOG_TAG, "isDialogPending: " + mStkContext[slotId].mIsDialogPending); in isDialogPending()
473 return mStkContext[slotId].mIsDialogPending; in isDialogPending()
481 return (mStkContext[slotId].lastSelectedItem == null) ? true : false; in isMainMenuAvailable()
492 return mStkContext[slotId].mCurrentMenu; in getMenu()
503 if (slotId >=0 && slotId < mSimCount && (mStkContext[slotId].mMainCmd != null)) { in getMainMenu()
504 Menu menu = mStkContext[slotId].mMainCmd.getMenu(); in getMainMenu()
565 if (slotId >= mStkContext.length || mStkContext[slotId] == null) { in handleMessage()
570 mStkContext[slotId].mOpCode = opcode; in handleMessage()
573 if (mStkContext[slotId].mMainCmd == null) { in handleMessage()
579 mStkContext[slotId].mCmdInProgress + "]"); in handleMessage()
586 mStkContext[slotId].mCurrentCmd.getCmdType()); in handleMessage()
604 if (!mStkContext[slotId].mCmdInProgress) { in handleMessage()
605 mStkContext[slotId].mCmdInProgress = true; in handleMessage()
609 mStkContext[slotId].mCmdsQ.addLast(new DelayedCmd(OP_CMD, in handleMessage()
617 if (mStkContext[slotId].mCmdsQ.size() != 0) { in handleMessage()
620 mStkContext[slotId].mCmdInProgress = false; in handleMessage()
624 if (!mStkContext[slotId].mCmdInProgress) { in handleMessage()
625 mStkContext[slotId].mCmdInProgress = true; in handleMessage()
628 mStkContext[slotId].mCmdsQ.addLast( in handleMessage()
645 if (mStkContext[slotId].mActivityInstance != act) { in handleMessage()
647 Activity previous = mStkContext[slotId].mActivityInstance; in handleMessage()
648 mStkContext[slotId].mActivityInstance = act; in handleMessage()
658 Activity dialog = mStkContext[slotId].getPendingDialogInstance(); in handleMessage()
661 mStkContext[slotId].mDialogInstance = null; in handleMessage()
666 if (mStkContext[slotId].mDialogInstance != dal) { in handleMessage()
668 mStkContext[slotId].mDialogInstance = dal; in handleMessage()
674 mStkContext[slotId].mImmediateDialogInstance = immedDal; in handleMessage()
689 if (mStkContext[slot] != null) { in handleMessage()
710 if (mStkContext[slot] != null) { in handleMessage()
726 mStkContext[slotId].mCurrentMenu = null; in handleCardStatusChangeAndIccRefresh()
727 mStkContext[slotId].mMainCmd = null; in handleCardStatusChangeAndIccRefresh()
730 if (mStkContext[slotId].mCurrentCmd != null in handleCardStatusChangeAndIccRefresh()
731 && mStkContext[slotId].mCurrentCmd.getCmdType().value() in handleCardStatusChangeAndIccRefresh()
762 mStkContext[i] = new StkContext(); in handleMultiSimConfigChanged()
763 mStkContext[i].mSlotId = i; in handleMultiSimConfigChanged()
764 mStkContext[i].mCmdsQ = new LinkedList<DelayedCmd>(); in handleMultiSimConfigChanged()
773 mStkContext[i] = null; in handleMultiSimConfigChanged()
825 if (mStkContext[slotId].mIsSessionFromUser || mHomeKeyEventReceiver != null) { in startToObserveHomeKeyEvent()
860 if (!mStkContext[slotId].mIsSessionFromUser) { in handleHomeKeyPressed()
861 Activity dialog = mStkContext[slotId].getPendingDialogInstance(); in handleHomeKeyPressed()
862 Activity activity = mStkContext[slotId].getPendingActivityInstance(); in handleHomeKeyPressed()
865 mStkContext[slotId].mDialogInstance = null; in handleHomeKeyPressed()
868 mStkContext[slotId].mActivityInstance = null; in handleHomeKeyPressed()
879 if (mStkContext[slotId].mIdleModeTextCmd != null in handleIdleScreen()
880 && !mStkContext[slotId].mIdleModeTextVisible) { in handleIdleScreen()
886 if (mStkContext[slotId].mCurrentCmd == null) { in sendScreenBusyResponse()
889 CatResponseMessage resMsg = new CatResponseMessage(mStkContext[slotId].mCurrentCmd); in sendScreenBusyResponse()
893 if (mStkContext[slotId].mCmdsQ.size() != 0) { in sendScreenBusyResponse()
896 mStkContext[slotId].mCmdInProgress = false; in sendScreenBusyResponse()
948 if (mStkContext[slotId].mCmdsQ.size() != 0) { in handleDelayedCmd()
949 DelayedCmd cmd = mStkContext[slotId].mCmdsQ.poll(); in handleDelayedCmd()
952 mStkContext[slotId].mCmdsQ.size() + in handleDelayedCmd()
980 mStkContext[slotId].mCurrentCmd = mStkContext[slotId].mMainCmd; in handleSessionEnd()
982 mStkContext[slotId].mCurrentMenuCmd = mStkContext[slotId].mMainCmd; in handleSessionEnd()
984 mStkContext[slotId].mMenuState); in handleSessionEnd()
986 mStkContext[slotId].mIsInputPending = false; in handleSessionEnd()
987 mStkContext[slotId].mIsMenuPending = false; in handleSessionEnd()
988 mStkContext[slotId].mIsDialogPending = false; in handleSessionEnd()
989 mStkContext[slotId].mNoResponseFromUser = false; in handleSessionEnd()
991 if (mStkContext[slotId].mMainCmd == null) { in handleSessionEnd()
994 mStkContext[slotId].lastSelectedItem = null; in handleSessionEnd()
995 mStkContext[slotId].mIsSessionFromUser = false; in handleSessionEnd()
998 if (mStkContext[slotId].mCurrentMenu != null && mStkContext[slotId].mMainCmd != null) { in handleSessionEnd()
999 mStkContext[slotId].mCurrentMenu = mStkContext[slotId].mMainCmd.getMenu(); in handleSessionEnd()
1001 CatLog.d(LOG_TAG, "[handleSessionEnd][mMenuState]" + mStkContext[slotId].mMenuIsVisible); in handleSessionEnd()
1003 if (StkMenuActivity.STATE_SECONDARY == mStkContext[slotId].mMenuState) { in handleSessionEnd()
1004 mStkContext[slotId].mMenuState = StkMenuActivity.STATE_MAIN; in handleSessionEnd()
1012 if (mStkContext[slotId].mCmdsQ.size() != 0) { in handleSessionEnd()
1015 mStkContext[slotId].mCmdInProgress = false; in handleSessionEnd()
1018 if (mStkContext[slotId].launchBrowser) { in handleSessionEnd()
1019 mStkContext[slotId].launchBrowser = false; in handleSessionEnd()
1020 launchBrowser(mStkContext[slotId].mBrowserSettings); in handleSessionEnd()
1077 mStkContext[slotId].mCurrentCmd = cmdMsg; in handleCmd()
1080 mStkContext[slotId].mIsInputPending = false; in handleCmd()
1081 mStkContext[slotId].mIsMenuPending = false; in handleCmd()
1082 mStkContext[slotId].mIsDialogPending = false; in handleCmd()
1095 if (!(msg.isHighPriority || mStkContext[slotId].mMenuIsVisible in handleCmd()
1096 || mStkContext[slotId].mDisplayTextDlgIsVisibile || isTopOfStack())) { in handleCmd()
1109 mStkContext[slotId].mCurrentMenuCmd = mStkContext[slotId].mCurrentCmd; in handleCmd()
1110 mStkContext[slotId].mCurrentMenu = cmdMsg.getMenu(); in handleCmd()
1114 mStkContext[slotId].mCmdInProgress = false; in handleCmd()
1115 mStkContext[slotId].mMainCmd = mStkContext[slotId].mCurrentCmd; in handleCmd()
1116 mStkContext[slotId].mCurrentMenuCmd = mStkContext[slotId].mCurrentCmd; in handleCmd()
1117 mStkContext[slotId].mCurrentMenu = cmdMsg.getMenu(); in handleCmd()
1121 mStkContext[slotId].mCurrentMenu = null; in handleCmd()
1122 mStkContext[slotId].mMainCmd = null; in handleCmd()
1130 if (mStkContext[slotId].mMenuIsVisible) { in handleCmd()
1140 mStkContext[slotId].mIdleModeTextCmd = mStkContext[slotId].mCurrentCmd; in handleCmd()
1141 TextMessage idleModeText = mStkContext[slotId].mCurrentCmd.geTextMessage(); in handleCmd()
1145 mStkContext[slotId].mCurrentCmd = mStkContext[slotId].mMainCmd; in handleCmd()
1146 if (mStkContext[slotId].mIdleModeTextCmd != null) { in handleCmd()
1147 if (mStkContext[slotId].mIdleModeTextVisible || isScreenIdle()) { in handleCmd()
1182 mStkContext[slotId].mBrowserSettings = in handleCmd()
1183 mStkContext[slotId].mCurrentCmd.getBrowserSettings(); in handleCmd()
1184 if (!isUrlAvailableToLaunchBrowser(mStkContext[slotId].mBrowserSettings)) { in handleCmd()
1188 TextMessage alphaId = mStkContext[slotId].mCurrentCmd.geTextMessage(); in handleCmd()
1194 mStkContext[slotId].launchBrowser = true; in handleCmd()
1202 TextMessage mesg = mStkContext[slotId].mCurrentCmd.getCallSettings().confirmMsg; in handleCmd()
1218 TextMessage m = mStkContext[slotId].mCurrentCmd.geTextMessage(); in handleCmd()
1248 if (mStkContext[slotId].mCmdsQ.size() != 0) { in handleCmd()
1251 mStkContext[slotId].mCmdInProgress = false; in handleCmd()
1286 if (mStkContext[slotId].mCurrentCmd == null) { in handleCmdResponse()
1301 CatResponseMessage resMsg = new CatResponseMessage(mStkContext[slotId].mCurrentCmd); in handleCmdResponse()
1309 CatLog.d(LOG_TAG, "MENU_SELECTION=" + mStkContext[slotId]. in handleCmdResponse()
1312 switch(mStkContext[slotId].mCurrentMenuCmd.getCmdType()) { in handleCmdResponse()
1314 mStkContext[slotId].mIsSessionFromUser = true; in handleCmdResponse()
1317 mStkContext[slotId].lastSelectedItem = getItemName(menuSelection, slotId); in handleCmdResponse()
1321 resMsg.setResultCode(mStkContext[slotId].mCurrentCmd.hasIconLoadFailed() ? in handleCmdResponse()
1331 if (input != null && (null != mStkContext[slotId].mCurrentCmd.geInput()) && in handleCmdResponse()
1332 (mStkContext[slotId].mCurrentCmd.geInput().yesNo)) { in handleCmdResponse()
1340 resMsg.setResultCode(mStkContext[slotId].mCurrentCmd.hasIconLoadFailed() ? in handleCmdResponse()
1349 switch (mStkContext[slotId].mCurrentCmd.getCmdType()) { in handleCmdResponse()
1352 resMsg.setResultCode(mStkContext[slotId].mCurrentCmd.hasIconLoadFailed() ? in handleCmdResponse()
1362 mStkContext[slotId].launchBrowser = true; in handleCmdResponse()
1363 mStkContext[slotId].mBrowserSettings = in handleCmdResponse()
1364 mStkContext[slotId].mCurrentCmd.getBrowserSettings(); in handleCmdResponse()
1372 mStkContext[slotId].mCurrentCmd.getCallSettings().callMsg); in handleCmdResponse()
1394 if ((mStkContext[slotId].mCurrentCmd.getCmdType().value() == in handleCmdResponse()
1396 && (mStkContext[slotId].mCurrentCmd.geTextMessage().userClear == false)) { in handleCmdResponse()
1415 if (mStkContext[slotId].mCurrentCmd.getCmdType().value() == in handleCmdResponse()
1422 switch (mStkContext[slotId].mCurrentCmd.getCmdType()) { in handleCmdResponse()
1440 mStkContext[slotId].mNoResponseFromUser = false; in handleCmdResponse()
1444 mStkContext[slotId].mNoResponseFromUser = true; in handleCmdResponse()
1451 if (null != mStkContext[slotId].mCurrentCmd && in handleCmdResponse()
1452 null != mStkContext[slotId].mCurrentCmd.getCmdType()) { in handleCmdResponse()
1454 mStkContext[slotId].mCurrentCmd.getCmdType().name() + "]"); in handleCmdResponse()
1471 return ((userAction == InitiatedByUserAction.yes) | mStkContext[slotId].mMenuIsVisible) in getFlagActivityNoUserAction()
1479 Activity activity = mStkContext[slotId].getPendingActivityInstance(); in cleanUpInstanceStackBySlot()
1480 Activity dialog = mStkContext[slotId].getPendingDialogInstance(); in cleanUpInstanceStackBySlot()
1483 if (mStkContext[slotId].mCurrentCmd != null) { in cleanUpInstanceStackBySlot()
1485 mStkContext[slotId].mCurrentCmd.getCmdType()); in cleanUpInstanceStackBySlot()
1486 if (mStkContext[slotId].mCurrentCmd.getCmdType().value() in cleanUpInstanceStackBySlot()
1488 || mStkContext[slotId].mCurrentCmd.getCmdType().value() in cleanUpInstanceStackBySlot()
1490 mStkContext[slotId].mIsInputPending = true; in cleanUpInstanceStackBySlot()
1491 } else if (mStkContext[slotId].mCurrentCmd.getCmdType().value() in cleanUpInstanceStackBySlot()
1493 || mStkContext[slotId].mCurrentCmd.getCmdType().value() in cleanUpInstanceStackBySlot()
1495 mStkContext[slotId].mIsMenuPending = true; in cleanUpInstanceStackBySlot()
1500 mStkContext[slotId].mActivityInstance = null; in cleanUpInstanceStackBySlot()
1504 mStkContext[slotId].mIsDialogPending = true; in cleanUpInstanceStackBySlot()
1506 mStkContext[slotId].mDialogInstance = null; in cleanUpInstanceStackBySlot()
1513 AppInterface.CommandType cmdType = mStkContext[slotId].mCurrentCmd.getCmdType(); in restoreInstanceFromStackBySlot()
1522 mStkContext[slotId].mMenuIsVisible = true; in restoreInstanceFromStackBySlot()
1528 launchConfirmationDialog(mStkContext[slotId].mCurrentCmd.geTextMessage(), in restoreInstanceFromStackBySlot()
1535 launchConfirmationDialog(mStkContext[slotId].mCurrentCmd.getCallSettings(). in restoreInstanceFromStackBySlot()
1553 Activity dialog = mStkContext[slotId].getImmediateDialogInstance(); in startActivity()
1570 uriData.toString() + " , " + mStkContext[slotId].mOpCode + ", " in launchMenuActivity()
1571 + mStkContext[slotId].mMenuState); in launchMenuActivity()
1580 if (mStkContext[slotId].mOpCode == OP_LAUNCH_APP && in launchMenuActivity()
1581 mStkContext[slotId].mMenuState == StkMenuActivity.STATE_SECONDARY) { in launchMenuActivity()
1585 mStkContext[slotId].mMenuState = StkMenuActivity.STATE_MAIN; in launchMenuActivity()
1591 mStkContext[slotId].mMenuState = StkMenuActivity.STATE_SECONDARY; in launchMenuActivity()
1593 if (mStkContext[slotId].mMenuState == StkMenuActivity.STATE_SECONDARY) { in launchMenuActivity()
1608 Input input = mStkContext[slotId].mCurrentCmd.geInput(); in launchInputActivity()
1633 TextMessage textMessage = mStkContext[slotId].mCurrentCmd.geTextMessage(); in launchTextDialog()
1649 if (!mStkContext[slotId].mCurrentCmd.geTextMessage().responseNeeded) { in launchTextDialog()
1659 if (mStkContext[slotId].mNoResponseFromUser) { in notifyUserIfNecessary()
1701 mStkContext[slotId].mNotificationOnKeyguard = true; in launchNotificationOnKeyguard()
1712 mStkContext[slotId].mNotificationOnKeyguard = false; in cancelNotificationOnKeyguard()
1720 if (mStkContext[slotId].mSetupEventListSettings != null) { in replaceEventList()
1721 for (int current : mStkContext[slotId].mSetupEventListSettings.eventList) { in replaceEventList()
1724 if ((mStkContext[slotId].mCurrentCmd.getSetEventList() == null) in replaceEventList()
1725 || !findEvent(current, mStkContext[slotId].mCurrentCmd in replaceEventList()
1732 mStkContext[slotId].mSetupEventListSettings in replaceEventList()
1733 = mStkContext[slotId].mCurrentCmd.getSetEventList(); in replaceEventList()
1734 mStkContext[slotId].mCurrentSetupEventCmd = mStkContext[slotId].mCurrentCmd; in replaceEventList()
1735 mStkContext[slotId].mCurrentCmd = mStkContext[slotId].mMainCmd; in replaceEventList()
1749 if (mStkContext[slot].mSetupEventListSettings != null) { in unregisterEvent()
1750 if (findEvent(event, mStkContext[slot].mSetupEventListSettings.eventList)) { in unregisterEvent()
1775 if (mStkContext[slotId].mSetupEventListSettings == null) { in registerEvents()
1778 for (int event : mStkContext[slotId].mSetupEventListSettings.eventList) { in registerEvents()
1852 if (mStkContext[slot].mIdleModeTextCmd != null in unregisterHomeVisibilityObserver()
1853 && !mStkContext[slot].mIdleModeTextVisible) { in unregisterHomeVisibilityObserver()
1860 if (mStkContext[slot].mSetupEventListSettings != null) { in unregisterHomeVisibilityObserver()
1862 mStkContext[slot].mSetupEventListSettings.eventList)) { in unregisterHomeVisibilityObserver()
1906 if (mStkContext[slotId].mCurrentSetupEventCmd == null){ in sendSetUpEventResponse()
1911 … CatResponseMessage resMsg = new CatResponseMessage(mStkContext[slotId].mCurrentSetupEventCmd); in sendSetUpEventResponse()
1924 if (mStkContext[slotId].mSetupEventListSettings != null) { in checkForSetupEvent()
1927 for (int i : mStkContext[slotId].mSetupEventListSettings.eventList) { in checkForSetupEvent()
1968 if (mStkContext[slotId].mSetupEventListSettings != null) { in removeSetUpEvent()
1972 for (int i = 0; i < mStkContext[slotId].mSetupEventListSettings.eventList.length; i++) { in removeSetUpEvent()
1973 if (event == mStkContext[slotId].mSetupEventListSettings.eventList[i]) { in removeSetUpEvent()
1974 mStkContext[slotId].mSetupEventListSettings.eventList[i] = INVALID_SETUP_EVENT; in removeSetUpEvent()
1997 launchEventMessage(slotId, mStkContext[slotId].mCurrentCmd.geTextMessage()); in launchEventMessage()
2025 if (mStkContext[slotId].mCurrentCmd.hasIconLoadFailed() || in launchEventMessage()
2037 msg.title = mStkContext[slotId].lastSelectedItem; in launchConfirmationDialog()
2110 mStkContext[slotId].mIdleModeTextCmd = null; in cancelIdleText()
2111 mStkContext[slotId].mIdleModeTextVisible = false; in cancelIdleText()
2115 TextMessage msg = mStkContext[slotId].mIdleModeTextCmd.geTextMessage(); in launchIdleText()
2134 if (mStkContext[slotId].mIdleModeTextCmd.hasIconLoadFailed() || in launchIdleText()
2152 mStkContext[slotId].mIdleModeTextVisible = true; in launchIdleText()
2206 newIntent.putExtra("TEXT", mStkContext[slotId].mCurrentCmd.geTextMessage()); in launchToneDialog()
2207 newIntent.putExtra("TONE", mStkContext[slotId].mCurrentCmd.getToneSettings()); in launchToneDialog()
2214 TextMessage toneMsg = mStkContext[slotId].mCurrentCmd.geTextMessage(); in handlePlayTone()
2257 ToneSettings settings = mStkContext[slotId].mCurrentCmd.getToneSettings(); in playTone()
2286 newIntent.putExtra("TEXT", mStkContext[slotId].mCurrentCmd.geTextMessage()); in playTone()
2333 TextMessage msg = mStkContext[slotId].mCurrentCmd.geTextMessage(); in launchOpenChannelDialog()
2379 TextMessage msg = mStkContext[slotId].mCurrentCmd.geTextMessage(); in launchTransientEventMessage()
2419 Menu menu = mStkContext[slotId].mCurrentCmd.getMenu(); in getItemName()
2433 if (mStkContext[slotId].mCurrentMenu.items.size() == 1 && in removeMenu()
2434 mStkContext[slotId].mCurrentMenu.items.get(0) == null) { in removeMenu()
2446 if (mStkContext[slot].mMainCmd != null) { in uninstallIfUnnecessary()
2457 return mStkContext[slotId]; in getStkContext()