Home
last modified time | relevance | path

Searched refs:mActionBar (Results 1 – 10 of 10) sorted by relevance

/frameworks/opt/photoviewer/activity/src/com/android/ex/photo/
DActionBarWrapper.java11 private final ActionBar mActionBar; field in ActionBarWrapper
28 mActionBar = actionBar; in ActionBarWrapper()
33 mActionBar.setDisplayHomeAsUpEnabled(showHomeAsUp); in setDisplayHomeAsUpEnabled()
38 mActionBar.addOnMenuVisibilityListener(new MenuVisiblityListenerWrapper(listener)); in addOnMenuVisibilityListener()
43 mActionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_TITLE, ActionBar.DISPLAY_SHOW_TITLE); in setDisplayOptionsShowTitle()
48 return mActionBar.getTitle(); in getTitle()
53 mActionBar.setTitle(title); in setTitle()
58 mActionBar.setSubtitle(subtitle); in setSubtitle()
63 mActionBar.show(); in show()
68 mActionBar.hide(); in hide()
[all …]
DPhotoViewActivity.java35 private ActionBarWrapper mActionBar; field in PhotoViewActivity
124 if (mActionBar == null) { in getActionBarInterface()
125 mActionBar = new ActionBarWrapper(getActionBar()); in getActionBarInterface()
127 return mActionBar; in getActionBarInterface()
/frameworks/opt/photoviewer/appcompat/src/com/android/ex/photo/
DActionBarWrapper.java12 private final ActionBar mActionBar; field in ActionBarWrapper
29 mActionBar = actionBar; in ActionBarWrapper()
34 mActionBar.setDisplayHomeAsUpEnabled(showHomeAsUp); in setDisplayHomeAsUpEnabled()
39 mActionBar.addOnMenuVisibilityListener(new MenuVisiblityListenerWrapper(listener)); in addOnMenuVisibilityListener()
44 mActionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_TITLE, ActionBar.DISPLAY_SHOW_TITLE); in setDisplayOptionsShowTitle()
49 return mActionBar.getTitle(); in getTitle()
54 mActionBar.setTitle(title); in setTitle()
59 mActionBar.setSubtitle(subtitle); in setSubtitle()
64 mActionBar.show(); in show()
69 mActionBar.hide(); in hide()
[all …]
DPhotoViewActivity.java35 private ActionBarWrapper mActionBar; field in PhotoViewActivity
124 if (mActionBar == null) { in getActionBarInterface()
125 mActionBar = new ActionBarWrapper(getSupportActionBar()); in getActionBarInterface()
127 return mActionBar; in getActionBarInterface()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DFrameworkActionBar.java53 @NonNull private FrameworkActionBarWrapper mActionBar; field in FrameworkActionBar
66 mActionBar = FrameworkActionBarWrapper.getActionBarWrapper(context, getCallBack(), in FrameworkActionBar()
83 mActionBar.inflateMenus(); in FrameworkActionBar()
106 mActionBar.setupActionBar(); in setupActionBar()
111 mActionBar.setHomeAsUp(homeAsUp); in setHomeAsUp()
116 mActionBar.setTitle(title); in setTitle()
121 mActionBar.setSubTitle(subtitle); in setSubtitle()
126 mActionBar.setIcon(icon); in setIcon()
140 MenuBuilder menu = mActionBar.getMenuBuilder(); in createMenuPopup()
141 OverflowMenuAdapter adapter = new OverflowMenuAdapter(menu, mActionBar.getPopupContext()); in createMenuPopup()
[all …]
DFrameworkActionBarWrapper.java56 @NonNull protected ActionBar mActionBar; field in FrameworkActionBarWrapper
83 mActionBar = actionBar; in FrameworkActionBarWrapper()
94 mActionBar.setTitle(title); in setTitle()
99 mActionBar.setSubtitle(subTitle); in setSubTitle()
104 mActionBar.setDisplayHomeAsUpEnabled(homeAsUp); in setHomeAsUp()
139 return mActionBar.getThemedContext(); in getActionMenuContext()
244 @NonNull private final WindowDecorActionBar mActionBar; field in FrameworkActionBarWrapper.WindowActionBarWrapper
254 mActionBar = (WindowDecorActionBar) super.mActionBar; in WindowActionBarWrapper()
263 mActionBar.setNavigationMode(navMode); in setupActionBar()
283 if (!mActionBar.hasIcon() && icon != null) { in setIcon()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DActionBarShadowControllerTest.java57 private ActionBar mActionBar; field in ActionBarShadowControllerTest
65 when(mActivity.getActionBar()).thenReturn(mActionBar); in setUp()
77 verify(mActionBar).setElevation(ActionBarShadowController.ELEVATION_LOW); in attachToView_shouldAddScrollWatcherAndUpdateActionBar()
86 verify(mActionBar).setElevation(ActionBarShadowController.ELEVATION_LOW); in attachToView_scrollView_shouldAddScrollWatcherAndUpdateActionBar()
/frameworks/base/core/java/android/app/
DDialog.java110 private ActionBar mActionBar; field in Dialog
249 return mActionBar; in getActionBar()
326 if (mActionBar == null && mWindow.hasFeature(Window.FEATURE_ACTION_BAR)) { in show()
330 mActionBar = new WindowDecorActionBar(this); in show()
441 if (mActionBar != null) mActionBar.setShowHideAnimationEnabled(true); in onStart()
448 if (mActionBar != null) mActionBar.setShowHideAnimationEnabled(false); in onStop()
953 mActionBar.dispatchMenuVisibilityChanged(true); in onMenuOpened()
972 mActionBar.dispatchMenuVisibilityChanged(false); in onPanelClosed()
1122 if (mActionBar != null && mActionModeTypeStarting == ActionMode.TYPE_PRIMARY) { in onWindowStartingActionMode()
1123 return mActionBar.startActionMode(callback); in onWindowStartingActionMode()
DActivity.java869 /*package*/ ActionBar mActionBar = null; field in Activity
1459 if (mActionBar == null) { in onCreate()
1462 mActionBar.setDefaultDisplayHomeAsUpEnabled(true); in onCreate()
1834 if (mActionBar != null) mActionBar.setShowHideAnimationEnabled(true); in onPostResume()
2463 if (mActionBar != null) mActionBar.setShowHideAnimationEnabled(false); in onStop()
2550 if (mActionBar != null) { in onDestroy()
2551 mActionBar.onDestroy(); in onDestroy()
2837 if (mActionBar != null) { in onConfigurationChanged()
2840 mActionBar.onConfigurationChanged(newConfig); in onConfigurationChanged()
3251 return mActionBar; in getActionBar()
[all …]
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt1340 Landroid/app/Activity;->mActionBar:Landroid/app/ActionBar;
4745 Landroid/app/Dialog;->mActionBar:Landroid/app/ActionBar;