summaryrefslogtreecommitdiff
path: root/core/java/android/widget/ActionMenuView.java
Commit message (Collapse)AuthorAgeFilesLines
* Add maxTargetSdk restriction to unused APIs.Mathew Inwood2020-10-291-8/+9
| | | | | | | | | | | | | | | | | | | These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. This is a resubmit of ag/12929664 with some APIs excluded that caused test failures; see bugs 171886397, 171888296, 171864568. APIs excluded: Landroid/bluetooth/le/ScanRecord;->parseFromBytes([B)Landroid/bluetooth/le/ScanRecord; Landroid/os/Process;->myPpid()I Landroid/os/SharedMemory;->getFd()I Landroid/hardware/input/InputManager;->INJECT_INPUT_EVENT_MODE_WAIT_FOR_FINISH:I Bug: 170729553 Test: Treehugger Change-Id: I8285daa8530260251ecad6f3f38f98e263629ca7
* Revert "Add maxTargetSdk restriction to unused APIs."Hongwei Wang2020-10-281-9/+8
| | | | | | | | | This reverts commit 72f07d6a8a32db4a0dedd7682a0b3385be2b9cd6. Reason for revert: Droidcop-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?testMethod=testAppZygotePreload&testClass=android.app.cts.ServiceTest&atpConfigName=suite%2Ftest-mapping-presubmit-retry_cloud-tf&testModule=CtsAppTestCases&fkbb=6936597&lkbb=6936969&lkgb=6936551&testResults=true&branch=git_master&target=cf_x86_phone-userdebug>, bug b/171886397 Bug: 171886397 Change-Id: Ibe0f0430a3451477c1ee8ef56a596e91ea1e7672
* Add maxTargetSdk restriction to unused APIs.Mathew Inwood2020-10-271-8/+9
| | | | | | | | | | These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. Bug: 170729553 Test: Treehugger Change-Id: I4c8fd0006f950de9955242e93968fb0996ceb372
* Use new UnsupportedAppUsage annotation.Artur Satayev2019-12-181-1/+1
| | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I5be7335b23a92b8ac80d2fd890198273b66ad644
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-211-0/+14
| | | | | | | | | | | | | | | | For packages: android.widget This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: Ic61019b1df85448a158fc2ba55c326353222c6b9
* Fix import statements in android.widget package.Aurimas Liutikas2016-10-111-3/+4
| | | | | | | Additionally this CL removes spaces at the end of the line. Test: code still compiles. Change-Id: I1ce98b4e70aa3ae614f87966c3bc6181fa4389a4
* Avoid NPE when ActionMenuPresenter is intialized with null MenuBuilderAlan Viverette2016-01-041-1/+1
| | | | | | | Also adds annotations to accurately reflect nullability. Bug: 26318920 Change-Id: Ia3b170dd301edfc0088a11ee5764c24bab2f10aa
* API council review feedback for ActionMenuViewChris Banes2015-06-101-27/+23
| | | | | | | | | | Reverts "MenuItem, navigation and overflow icon tinting" CL, and adds getter and setter for the overflow icon to ActionMenuView and Toolbar. BUG: 21571899 Change-Id: I591f43650356443fa3256e4d74e28b6ddd8c2b33
* Use new hierarchy viewer protocol in all View subclassesSiva Velusamy2015-05-071-0/+14
| | | | | | | | | A previous CL introduced a new way of encoding view properties for use by heirarchy viewer. This CL updates all views using the old @ExportedProperty annotation to use this new method. The older mechanism will be removed in a subsequent CL. Change-Id: I6cc23b90cd9da1c6ce89b4caffe54874db203452
* Add resource type annotations to some APIsTor Norbye2015-03-131-1/+2
| | | | Change-Id: I37c8afdaea455aa92bc8270bb2dfd60616c5f9bc
* MenuItem, navigation and overflow icon tintingChris Banes2015-02-271-0/+27
| | | | | | | | | | | | | | | - iconTint and iconTintMode attrs for MenuItem, with associated setters. - navigationTint and navigationTintMode attrs for Toolbar with associated setters. - overlflowTint and overflowTintMode attrs for Toolbar with associated setters. BUG: 18126050 BUG: 19148351 BUG: 19305408 Change-Id: Ibd1fae7cdbc7a7c42809e52541fae5d8beb18e92
* Fix NPE in ActionMenuView when there isn't a presenterChris Banes2015-01-191-4/+7
| | | | | BUG: 19060917 Change-Id: I5d63aa6e85238ea7cec6faf60d444c98bc583293
* Fix accessibility delegationAlan Viverette2015-01-071-1/+2
| | | | | | | | | | | | | | | Ensures that delegate code is run last. Previously, calling the super method from an accessibility delegate set on a widget would only run code in the widget's parent. Next, the delegate code would run. Finally, the widget's code would run. As a result, the widget code would override any data supplied by the delegate. By moving all overridden code to internal methods, we ensure that the call chain for super includes the widget's parent code followed by the widget's code. The delegate code will always run last. BUG: 17641433 Change-Id: Ib9d403156c1fc4fb04f65f3c126d1277a44b3740
* Fix ActionMenuView vertical alignment of itemsChris Banes2014-10-291-1/+1
| | | | | BUG: 18066203 Change-Id: I2a34f5b8b33e1e0f32c54acf79b281290fc047f1
* ActionMenuViews always reserve overflow when creating their own menusAdam Powell2014-09-091-0/+1
| | | | | | | | | | | | | | | | | ActionMenuViews work in two modes: hosting another Menu instance or creating their own. The former is used when an action bar is displaying a window's options menu. The latter is used when an ActionMenuView (or Toolbar) is placed within an arbitrary layout and the getMenu method is called. When showing a window's options menu, ActionMenuPresenter calls into the ActionBarPolicy to determine if we should reserve an overflow button or if overflow will be presented by the window instead. Always reserve overflow if the ActionMenuView is presenting its own menu. Bug 17381966 Change-Id: I17c495986994d421bf6276ae39ba233243432e97
* Menu callbacks for ToolbarActionBars, part 2Adam Powell2014-09-041-2/+7
| | | | | | | | | Pass through the menu mode change events and make sure Activities get prepare/open/close events properly. Bug 17326424 Change-Id: I0ac2f56e4d0054ef01720b2ff1c41ded053750c7
* Dispatch more menu events to window callbacks from ToolbarActionBarAdam Powell2014-09-041-1/+12
| | | | | | | | | Wire through the callbacks that result in onPrepareOptionsMenu being called properly when an activity overflow menu is opened. Bug 17326424 Change-Id: Ifc5b67af0d215f210bb00326f82f60ba55a36d52
* API for inflating action bar menus against a different themeAlan Viverette2014-07-101-3/+41
| | | | | BUG: 16162344 Change-Id: I5bf9f133de56a1830028bca6326cc2c50888a052
* Further implementation for ToolbarActionBarAdam Powell2014-06-011-1/+6
| | | | | | | | | | | | | Integrate activity options menu and inline Toolbars. Fix a series of small associated bugs. Activities now (privately) offer several menu-related events directly to the associated ActionBar. In the future this should help us untangle some of the menu-based pasta in PhoneWindow. Bug 15344598 Change-Id: I76211ad17d2bcbb58cf1d88914e855416d084ded
* Toolbar factoring and ActionBar functionality integrationAdam Powell2014-05-281-1/+52
| | | | | | | | Toolbars now can act in the role of ActionBar with the exception of navigation modes. Expandable action views are now supported as well as populating menu items from a host window. Change-Id: If477db9c7ad9f95723f28cf73cbf03a07ce9d6ad
* android.widget.ToolbarAdam Powell2014-04-041-3/+51
| | | | | | | | | | | | Add the new Toolbar widget for use in app layouts. ActionBar can now be used as a point of control for either a traditional window decor action bar or for a Toolbar that appears inline in an Activity's layout. ToolbarActionBar is currently WIP. Change-Id: I0da093e5645840f4fd032aa34efa0ae5f1825ff2
* Move ActionMenuView into android.widget and make it publicAdam Powell2014-01-081-0/+648
Expose ActionMenuView as a way for applications to present ActionBar-style menus in other embedded or repeating contexts. Change-Id: I54b7ccd9b2116ca68bc72956da9262bca9d5085f