Home | History | Annotate | Download | only in stk

Lines Matching full:menu

39 import com.android.internal.telephony.cat.Menu;
44 * ListActivity used for displaying STK menus. These can be SET UP MENU and
46 * menu content.
51 private Menu mStkMenu = null;
132 // ONLY set SECONDARY menu. It will be finished when the following command is comming.
191 CatLog.d(LOG_TAG, "menu is null");
196 //Set main menu instance here for clean up stack by other SIMs
199 CatLog.d(LOG_TAG, "set main menu instance.");
245 //The menu should stay in background, if
247 //2. the menu activity enters Stop state (e.g pressing HOME key) but mIsResponseSent is false.
249 // ONLY finish SECONDARY menu. MAIN menu should always stay in the root of stack.
291 public boolean onCreateOptionsMenu(android.view.Menu menu) {
292 super.onCreateOptionsMenu(menu);
293 menu.add(0, StkApp.MENU_ID_END_SESSION, 1, R.string.menu_end_session);
294 menu.add(0, StkApp.MENU_ID_HELP, 2, R.string.help);
299 public boolean onPrepareOptionsMenu(android.view.Menu menu) {
300 super.onPrepareOptionsMenu(menu);
311 menu.findItem(StkApp.MENU_ID_END_SESSION).setVisible(mainVisible);
312 menu.findItem(StkApp.MENU_ID_HELP).setVisible(helpVisible);
347 public void onCreateContextMenu(ContextMenu menu, View v,
355 CatLog.d(this, "add menu");
356 menu.add(0, CONTEXT_MENU_HELP, 0, R.string.help);
390 outState.putParcelable("MENU", mStkMenu);
398 mStkMenu = savedInstanceState.getParcelable("MENU");
436 // create an array adapter for the menu list
439 // Bind menu list to the new adapter.
465 CatLog.d(LOG_TAG, "IOOBE Invalid menu");
469 CatLog.d(LOG_TAG, "NPE Invalid menu");