summaryrefslogtreecommitdiff
path: root/core/java/android/view/NotificationHeaderView.java
Commit message (Collapse)AuthorAgeFilesLines
* Remove padding logic designed for old position of the expand buttonJeff DeCew2021-05-191-25/+0
| | | | | | Fixes: 188095319 Test: Manual testing of minimized notifications. Change-Id: I92ba63ec0266089a4af630afb202b279dbe294ed
* Show minimized header text with the correct text weightJeff DeCew2021-05-111-0/+23
| | | | | | Fixes: 184863420 Test: visual Change-Id: Ic16f9e88e118e7ea5fe14054cf1c35318d4a6ddd
* Change groups to use number in the expander.Jeff DeCew2021-03-031-4/+7
| | | | | | | | | | | * Old codepath is maintained; switch with config_showNotificationGroupCountInExpander. * Use the default expander colors for low priority header. * Uses the correct color for the old group overflow. * Fixes the header view to correctly accomodates growing expander. Bug: 181048615 Test: manual, visual inspection of groups and notification types that use headers Change-Id: Ia314a6028645016df39d3e948fdc4eb194ed9ff2
* Show LargeIcon as wide for apps targeting S.Jeff DeCew2021-01-071-2/+13
| | | | | | | | | * This does not inhibit the grouping behavior which demotes this image and shows it in a smaller square area on the left. * This also converts the Notification class to calculate margins and sizes in DIP instead of PX, as that is more resilient. Fixes: 175409684 Test: atest NotificationTemplateTest Change-Id: I35d28c8df341dbbac2774026c6ca749e296c0482
* Allow tapping notification icon to expand/contract.Jeff DeCew2020-11-201-4/+10
| | | | | | Bug: 163626038 Test: manual Change-Id: Ie8bf816b0acfc3f078dd1d0583d325de4b625764
* Notification template redesign; part 1.Jeff DeCew2020-11-131-117/+26
| | | | | | | | | | | | | | | | Known issues: * Sub-par dyson animation * Sub-par animation of text in the title * Notification height limits not yet adjusted * Decorated custom view height limits not yet updated * HUNs may need to get their own headerless template * Messaging style notifications are not yet headerless * Possible [de]colorization bug for grouped icons * Some notifications still not always expandable Bug: 163626038 Test: Manual, visual testing Change-Id: I9e7e2fd689938a13e042c8f6319bd7d0d2252781
* Add maxTargetSdk restriction to unused APIs.Mathew Inwood2020-10-291-1/+2
| | | | | | | | | | | | | | | | | | | 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-2/+1
| | | | | | | | | 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-1/+2
| | | | | | | | | | 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
* Split NotificationHeaderView's text content into NotificationTopLineViewJeff DeCew2020-10-231-41/+16
| | | | | | Test: atest SystemUITests Test: manual testing of various notification types Change-Id: I80173501b2c5902bab83c2f620daabbd943fc473
* Remove unused gravity customizationJeff DeCew2020-10-231-14/+0
| | | | | Test: atest SystemUITests Change-Id: I4995288d5844a2a5da782a46149def8d902a89cc
* Remove unused flag in NotificationHeaderViewJeff DeCew2020-10-231-11/+0
| | | | | Test: SystemUITests Change-Id: Ie21b0d9d113c8356279b4ae1b1dc7787c1a95d02
* Remove Settings.Secure.NOTIFICATION_NEW_INTERRUPTION_MODEL flagJeff DeCew2020-10-221-32/+24
| | | | | | Fixes: 160886843 Test: SystemUITests Change-Id: I88a10b370d9022bbc226eabce3b41293e55c7f96
* Minimize use of header in adjusting notification colors.Jeff DeCew2020-10-211-10/+0
| | | | | | | | Also adds support for 'inverted' icons. Test: atest SystemUITests Test: manual testing of numerous notification configurations Change-Id: I6fd9aeec9f5971495d514add2bbb30b50db7d3c1
* Remove setExpanded from the NotificationHeaderViewJeff DeCew2020-10-211-22/+0
| | | | | Test: atest SystemUITests Change-Id: I296e9d530d2c0ba581828dee0dc2026df0e38c3c
* Minimize exposure of NotificationHeaderView; prefer NotificationViewWrapper.Jeff DeCew2020-10-201-13/+0
| | | | | | Test: atest SystemUITests Test: manual testing with notify APK Change-Id: I91ed49411f29f42ce6708fdb816ebe650a6d7e8b
* Remove the old seamless chipJeff DeCew2020-10-161-7/+2
| | | | | Test: manual - play audio, use the real seamless chip Change-Id: I0cc93c222dd6ae7bc3a823f27967d98fb39e8cd9
* Fix parenthesis to prevent hidden feedback icon from calling clickAlex Mang2020-08-251-2/+2
| | | | | | | | listener Bug: 165338901 Test: manually on device Change-Id: I09c022e3ad86485f249874892b7bc4996405f5e1
* Remove app ops indicators from notificationsJulia Reynolds2020-08-131-22/+2
| | | | | | Test: atest Bug: 163076432 Change-Id: I5b7514f765811ffd3b0aca63d0108591755974ab
* Adding notification guts to feedback iconAlex Mang2020-06-141-1/+18
| | | | | | | Feedback icon is now tappable and opens up notification guts Test: manually on device Change-Id: I7c19d612fa90980a274e8c48561333fc1131c688
* Add notification feedback indicator icon.Alex Mang2020-06-131-0/+4
| | | | | | | | | This icon will be used to indicate an adjustment was made for this notification and to solicit feedback. Currently it's not tappable. Will add this in a later commit. Test: manually on device Change-Id: I730953a0d1286cd1ee2686fe4603f9642fa5d958
* Remove click listeners from app op iconsBeverly2020-04-161-2/+1
| | | | | | | | | | | Instead, the click listener is set on the app opp container since clicking on the app opp container results in the same action as clickng on the individual app icons. As per a11y guidance, only set the click listener on the container. Test: manual Fixes: 153281363 Change-Id: Ic1c2bdb2f77fc459a3a3e997ed494b4bab36a273
* Added back the recently alerted indicator to conversationsSelim Cinek2020-04-011-7/+0
| | | | | | | | Previously this was dropped, it's now reintroduced. Fixes: 150905003 Test: atest SystemUITests Change-Id: Ia152bc4117fa9c656b3d477ef8e50708e1056148
* Reintroduced app ops for conversation notificationsSelim Cinek2020-04-011-26/+0
| | | | | | | | | | Previously app ops weren't showing in conversation notifications Also made sure that they show in case the app name is long. Additionally this fixes the coloring of the sender name. Fixes: 150905003 Test: atest SystemUITests Change-Id: Iae8026e7efdec8c207d1984dac4ee089abe116b9
* Adapted Shelf algorithm to also use conversation iconsSelim Cinek2020-03-301-7/+1
| | | | | | | | | | Previously the algorithm would only work with a header and the icon wouldn't transform into the shelf. This is now fixed. Bug: 150905003 Test: add conversation notification, observe normal transition Change-Id: I533b8f06bee29ee93888d748808b4313fef338e8
* Baseline for the new ConversationLayoutSelim Cinek2020-03-111-9/+4
| | | | | | | | | | Introduced a new Layout for Conversation Notifications. There are still various open issues that will be fixed in follow up Cls Bug: 150905003 Test: Add conversations, obverve visuals Change-Id: I8ab2e2988d3205a4491006df68ec14235109466f
* 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
* Output switch button in media notification headerBeth Thibodeau2019-09-181-2/+9
| | | | | | | | | | Adds a chip-like button to the header of media notifications which will open the media output slice. This was previously implemented as an action button behind the feature flag and can be enabled by toggling settings_seamless_transfer Test: manual Change-Id: I447b0add9d9de378fa09b5cf087518a81ec941e5
* Fix position of expand/collapse buttonBeth Thibodeau2019-03-061-4/+36
| | | | | | | | | | Example screenshots at https://drive.google.com/open?id=1rKBY9uj54KbeSr-M4Rd4aKG9FQQYL8qm Bug: 124522176 Test: verified that button does not move between collapsed and expanded layouts Change-Id: Ic7cbe3b78aa439cec8f10b532b80f863bb6c283c
* Fixes NotificationHeaderView layout.Gus Prevas2018-12-271-5/+8
| | | | | | | | | | | The layout method in NotificationHeaderView was incorrectly adding the margins, width, etc. of views laid out on the right side to the position it was tracking for views being laid out on the left side. This change fixes that error. Test: manual Change-Id: I747b318c621e6cf518e0752020ca8909c36c2ed7 Fixes: 122036911
* Fixes layout of icons in notification header.Gus Prevas2018-12-171-15/+9
| | | | | | | | | | | | This change resolves a discrepancy between onMeasure() and onLayout() in NotificationHeaderView. Icons were measured with their defined margins in order to figure out how much to truncate the header text, but during layout potentially multiple icons used the container's end padding as their end margin (and their start margin was ignored). Change-Id: I513efe2723fc78dd81bbe07aa40a3ed5fd1182d1 Fixes: 120893622 Test: manual
* Hides audibly alerted icon after 30 seconds.Gus Prevas2018-12-141-1/+1
| | | | | | Bug: 116622974 Test: atest SystemUITests FrameworksUiServicesTests Change-Id: I9074e46b5e557c7c65f601ee118dfa7e3751652a
* Swaps position of expand button and bell icon.Gus Prevas2018-11-151-5/+0
| | | | | | | | | | This change puts the expand caret at the end of the notification header if the new interruption model is turned on, and moves the bell icon on noisy notifications from the end of the header to directly after the header text. Test: manually Change-Id: I2a97f80920598f5f99f2d9c3b14d58858e1de1bb
* Adds an icon to noisy notifications.Gus Prevas2018-11-091-0/+12
| | | | | | Test: manually Bug: 116622974 Change-Id: I657e81eed9c650f1613caffaea96e6445c2105ef
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | For packages: android.view.textservice android.view.textclassifier.logging android.view.textclassifier android.view.inputmethod android.view.autofill android.view.accessibility android.view 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: I4147b038ed7adf0311ee9918b44766f82a057eaf
* Trigger action for app ops icon for keyboard navigationDieter Hsu2018-05-171-0/+3
| | | | | | Bug: 79671932 Test: manually check talkback, switch access and kb navigation Change-Id: I8a2ed0fc8e6b565e923954fa87e61a20c83438c0
* Show app ops guts when tap app ops iconsJulia Reynolds2018-03-081-9/+30
| | | | | | Test: runtest systemui Bug: 64085448 Change-Id: Ia51044f77311ab705ffb9dd1ae204d0131316396
* Tag foreground notis that use certain servicesJulia Reynolds2018-02-281-0/+31
| | | | | | | | | | | | | | - Draw over other apps - Camera - Microphone The icons are not yet clickable, and the system 'drawing over other apps' notification still appears even when the app's notification is tagged. Test: runtest systemui Bug: 64085448 Change-Id: Ib3b0cdd9adced82f562f256cb81af80dc395440d
* Changing messaging style and overall visual adoptionSelim Cinek2018-01-101-20/+26
| | | | | | | | | The messaging style is changed to a bubble-less design. In addition are we also updating a few spacings in order for it to look nicer / more balanced. Test: manual Change-Id: I43326bd8a23cd1f1d5964d2d6740fde99d29c7e4
* Center align AoD2 notificationsLucas Dupin2017-10-261-1/+13
| | | | | | | | Hides app name, and centralizes all notification data. Bug: 64155983 Test: send aod notification, observe Change-Id: Ifbf35570ad3177422c7dd5db053b7708016841b2
* Removing contents hidden string for public notificationsSelim Cinek2017-07-201-2/+16
| | | | | | | | | | We're now only showing the notification header instead of the repetitive contents hidden string. On Aod, we're still showing a string however, since without it, it looked too empty. Test: manual, set sensitive setting on lockscreen, observe notifications Change-Id: If2bb66b9b3b366715aa68087e5c35cf1cdff3693 Fixes: 63741232
* Modifications to allow notification header to be customized.Anthony Chen2017-04-201-20/+44
| | | | | | | | | | | | | | | | | Changes include: - Allowing the margins between header items to be customized. - Allow expand button to be laid out at the end of the header view. - Ensure the media header height can be customized. - Allow entire header to be clicked to expand the notification rather than just the notification button. Also, fix how the color is resolved from the header. It currently checks the color directly on the expand button. However, this color can simply be retrieved by the header's getOriginalNotificationColor() method. Test: booted on phone and Android Auto headunit Bug: 33210494 Change-Id: I4bb3ff42d23b44de28dc1196799a7c3bda40bbac
* Remove unnecessary casts on calls to findViewByIdAlan Viverette2017-04-141-2/+2
| | | | | | | | Just frameworks/ this time. More paths to come. Bug: 24137209 Test: make -j32 Change-Id: Iff27abd26fa43296ac2fff8f534fc6742d2ae80c
* Improved expand accessibility experienceSelim Cinek2017-03-031-33/+7
| | | | | | | | | | | | The expand action is now on the notification itself instead of the expand button, this way a user immediately know if it is expanded. It also improves the click feedback of the expand button Test: add notifications, observe accessibility feedback Change-Id: I9c397d839df52d5354d7ae16725ce3e595da19c7 Fixes: 32322410 Fixes: 35064589
* All touches to low priority headers should be acceptedSelim Cinek2017-03-031-2/+11
| | | | | | | | | Since there is no conflicting touch target, we now accept all touches there. Test: add low-pririty notification, click below text Fixes: 35851799 Change-Id: Iae36fc6b950a0dbb569bfae43a5505588d9e0ace
* Further improved the coloring optimizationSelim Cinek2017-02-031-1/+2
| | | | | | | | | | | | Fixes a few follow up bugs from the colorized notification CL. This also allows media notifications with a media session to be colorized by default. Test: existing tests pass Bug: 34469375 Change-Id: I36348591a84fcd39d103d0ae3f64720f2fca2cf2
* Adapted the icon transformation into the shelfSelim Cinek2016-11-211-3/+5
| | | | | | | | The transformation is now more refined. Test: Add notifications, scroll Bug: 32437839 Change-Id: I2d553b2305fae508d2eb94ca4cee18faa41815a1
* Introduced the Notification shelfSelim Cinek2016-11-211-0/+4
| | | | | | | | | | Started the implementation of a new notification scrolling model that dynamically transforms notifications into a new icon shelf. Test: Add notifications, scroll! Bug: 32437839 Change-Id: Ic28cc1c82f2cda2ffa7a312648903b5bc2408820
* Added dismiss, expand, and collapse accessibility actionsSelim Cinek2016-06-151-14/+32
| | | | | | Fixes: 20343017 Fixes: 29368014 Change-Id: Ib571242aac04c67aea2f3c3ce76139eaedc1f3f1
* Fixed a few accessibility issues with notifications and groupsSelim Cinek2016-05-271-1/+15
| | | | | Change-Id: I78fa62884eaa0efe825b5eb1e6cac7d88fc05a7f Fixes: 28069681