Searched refs:mWindowCallback (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/core/tests/coretests/src/com/android/internal/policy/ |
D | PhoneWindowActionModeTest.java | 45 private MockWindowCallback mWindowCallback; field in PhoneWindowActionModeTest 56 mWindowCallback = new MockWindowCallback(); in setUp() 57 mPhoneWindow.setCallback(mWindowCallback); in setUp() 62 mWindowCallback.mShouldReturnOwnActionMode = true; in testStartActionModeWithCallback() 67 assertEquals(mWindowCallback.mLastCreatedActionMode, mode); in testStartActionModeWithCallback() 72 mWindowCallback.mShouldReturnOwnActionMode = true; in testStartActionModePrimaryFinishesPreviousMode() 86 mWindowCallback.mShouldReturnOwnActionMode = true; in testStartActionModeFloatingFinishesPreviousMode() 100 mWindowCallback.mShouldReturnOwnActionMode = true; in testStartActionModePreservesPreviousModeOfDifferentType1() 114 mWindowCallback.mShouldReturnOwnActionMode = true; in testStartActionModePreservesPreviousModeOfDifferentType2() 127 mWindowCallback.mShouldReturnOwnActionMode = true; in testWindowCallbackModesLifecycleIsNotHandled() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
D | ToolbarActionBar.java | 50 private Window.Callback mWindowCallback; field in ToolbarActionBar 69 return mWindowCallback.onMenuItemSelected(Window.FEATURE_OPTIONS_PANEL, item); 75 mWindowCallback = new ToolbarCallbackWrapper(callback); in ToolbarActionBar() 76 mDecorToolbar.setWindowCallback(mWindowCallback); in ToolbarActionBar() 82 return mWindowCallback; in getWrappedWindowCallback() 454 if (!mWindowCallback.onCreatePanelMenu(Window.FEATURE_OPTIONS_PANEL, menu) || in populateOptionsMenu() 455 !mWindowCallback.onPreparePanel(Window.FEATURE_OPTIONS_PANEL, null, menu)) { in populateOptionsMenu() 603 if (mWindowCallback != null) { in onOpenSubMenu() 604 mWindowCallback.onMenuOpened(AppCompatDelegate.FEATURE_SUPPORT_ACTION_BAR, subMenu); in onOpenSubMenu() 618 if (mWindowCallback != null) { in onCloseMenu() [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ToolbarActionBar.java | 50 private Window.Callback mWindowCallback; field in ToolbarActionBar 68 return mWindowCallback.onMenuItemSelected(Window.FEATURE_OPTIONS_PANEL, item); 74 mWindowCallback = new ToolbarCallbackWrapper(windowCallback); in ToolbarActionBar() 75 mDecorToolbar.setWindowCallback(mWindowCallback); in ToolbarActionBar() 81 return mWindowCallback; in getWrappedWindowCallback() 452 if (!mWindowCallback.onCreatePanelMenu(Window.FEATURE_OPTIONS_PANEL, menu) || in populateOptionsMenu() 453 !mWindowCallback.onPreparePanel(Window.FEATURE_OPTIONS_PANEL, null, menu)) { in populateOptionsMenu() 539 if (mWindowCallback != null) { in onOpenSubMenu() 540 mWindowCallback.onMenuOpened(Window.FEATURE_ACTION_BAR, subMenu); in onOpenSubMenu() 554 if (mWindowCallback != null) { in onCloseMenu() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ToolbarWidgetWrapper.java | 82 private Window.Callback mWindowCallback; field in ToolbarWidgetWrapper 182 if (mWindowCallback != null && mMenuPrepared) { in ToolbarWidgetWrapper() 183 mWindowCallback.onMenuItemSelected(Window.FEATURE_OPTIONS_PANEL, mNavItem); in ToolbarWidgetWrapper() 237 mWindowCallback = cb; in setWindowCallback()
|
D | ActionBarView.java | 137 Window.Callback mWindowCallback; field in ActionBarView 153 mWindowCallback.onMenuItemSelected(Window.FEATURE_OPTIONS_PANEL, mLogoNavItem); 265 mWindowCallback = cb; in setWindowCallback()
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | ToolbarWidgetWrapper.java | 80 private Window.Callback mWindowCallback; field in ToolbarWidgetWrapper 184 if (mWindowCallback != null && mMenuPrepared) { in ToolbarWidgetWrapper() 185 mWindowCallback.onMenuItemSelected(Window.FEATURE_OPTIONS_PANEL, mNavItem); in ToolbarWidgetWrapper() 234 mWindowCallback = cb; in setWindowCallback()
|