Searched refs:mWindowCallback (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/core/tests/coretests/src/com/android/internal/policy/ |
D | PhoneWindowActionModeTest.java | 41 private MockWindowCallback mWindowCallback; field in PhoneWindowActionModeTest 52 mWindowCallback = new MockWindowCallback(); in setUp() 53 mPhoneWindow.setCallback(mWindowCallback); in setUp() 58 mWindowCallback.mShouldReturnOwnActionMode = true; in testStartActionModeWithCallback() 63 assertEquals(mWindowCallback.mLastCreatedActionMode, mode); in testStartActionModeWithCallback() 68 mWindowCallback.mShouldReturnOwnActionMode = true; in testStartActionModePrimaryFinishesPreviousMode() 82 mWindowCallback.mShouldReturnOwnActionMode = true; in testStartActionModeFloatingFinishesPreviousMode() 96 mWindowCallback.mShouldReturnOwnActionMode = true; in testStartActionModePreservesPreviousModeOfDifferentType1() 110 mWindowCallback.mShouldReturnOwnActionMode = true; in testStartActionModePreservesPreviousModeOfDifferentType2() 123 mWindowCallback.mShouldReturnOwnActionMode = true; in testWindowCallbackModesLifecycleIsNotHandled() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/app/ |
D | ToolbarActionBar.java | 54 private Window.Callback mWindowCallback; field in ToolbarActionBar 73 return mWindowCallback.onMenuItemSelected(Window.FEATURE_OPTIONS_PANEL, item); 79 mWindowCallback = new ToolbarCallbackWrapper(callback); in ToolbarActionBar() 80 mDecorToolbar.setWindowCallback(mWindowCallback); in ToolbarActionBar() 86 return mWindowCallback; in getWrappedWindowCallback() 448 if (!mWindowCallback.onCreatePanelMenu(Window.FEATURE_OPTIONS_PANEL, menu) || in populateOptionsMenu() 449 !mWindowCallback.onPreparePanel(Window.FEATURE_OPTIONS_PANEL, null, menu)) { in populateOptionsMenu() 591 if (mWindowCallback != null) { in onOpenSubMenu() 592 mWindowCallback.onMenuOpened(AppCompatDelegate.FEATURE_SUPPORT_ACTION_BAR, subMenu); in onOpenSubMenu() 606 if (mWindowCallback != null) { in onCloseMenu() [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ToolbarActionBar.java | 45 private Window.Callback mWindowCallback; field in ToolbarActionBar 63 return mWindowCallback.onMenuItemSelected(Window.FEATURE_OPTIONS_PANEL, item); 69 mWindowCallback = new ToolbarCallbackWrapper(windowCallback); in ToolbarActionBar() 70 mDecorToolbar.setWindowCallback(mWindowCallback); in ToolbarActionBar() 76 return mWindowCallback; in getWrappedWindowCallback() 447 if (!mWindowCallback.onCreatePanelMenu(Window.FEATURE_OPTIONS_PANEL, menu) || in populateOptionsMenu() 448 !mWindowCallback.onPreparePanel(Window.FEATURE_OPTIONS_PANEL, null, menu)) { in populateOptionsMenu() 519 if (mWindowCallback != null) { in onOpenSubMenu() 520 mWindowCallback.onMenuOpened(Window.FEATURE_ACTION_BAR, subMenu); in onOpenSubMenu() 534 if (mWindowCallback != null) { in onCloseMenu() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
D | ToolbarWidgetWrapper.java | 82 private Window.Callback mWindowCallback; field in ToolbarWidgetWrapper 195 if (mWindowCallback != null && mMenuPrepared) { in ToolbarWidgetWrapper() 196 mWindowCallback.onMenuItemSelected(Window.FEATURE_OPTIONS_PANEL, mNavItem); in ToolbarWidgetWrapper() 261 mWindowCallback = cb; in setWindowCallback()
|
/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 | 135 Window.Callback mWindowCallback; field in ActionBarView 151 mWindowCallback.onMenuItemSelected(Window.FEATURE_OPTIONS_PANEL, mLogoNavItem); 263 mWindowCallback = cb; in setWindowCallback()
|