summaryrefslogtreecommitdiff
path: root/src/com/android/settings/display/AmbientDisplayNotificationsPreferenceController.java
AgeCommit message (Collapse)Author
2021-11-01Add highlight menu keys for all toggle pref controllers and custom slicesJason Chiu
Bug: 204695404 Test: manual, robotest build pass, unit Change-Id: Iad2e28ada8ddb766ffa7eff2c8dc581250cbd6f8
2019-11-28Make some display related slices public.Yi-Ling Chuang
Only PreferenceControllers with isPublicSlice() set to true are exposed to other apps. Others will be Settings only. Bug: 141088937 Test: robotests Change-Id: I2a36da4ac4bb14a4d2ac7b89ab2bb3ebf8e655f7
2019-02-27Move AmbientDisplayConfiguration class out of internal package.Issei Suzuki
Test: m droid (run full build) Bug: 126327497 Change-Id: Idc07c811864edb4f88151051e25d6e05e4caf3b2
2019-01-17Migrate all MetricsProto enums to SettingsEnumsFan Zhang
Bug: 122855168 Test: rebuild Change-Id: I962d9a71179f86b7cae9dc5e9a00e0aa1557dc76
2018-08-28Sort importsFan Zhang
Having consistent import order will reduce chance of merge conflict between internal and external master Test: rebuild Change-Id: I0b1a170967ddcce7f388603fd521f6ed1eeba30b
2018-07-09Fix NPE when querying AmbientDisply through ExternalSetingFan Zhang
Bug: 110403709 Test: manual Change-Id: I5c037b010e296cbd011f8c141932e6befd341c99
2018-06-21Remove search indexing pipeline from SettingsFan Zhang
Index is already handled by SettingsIntelligenec. No longer needed in Settings. Change-Id: Id43fb3100dc2759185744441cff8cb9cd2d2da20 Fixes: 69808376 Test: robotests
2018-05-22Add isSliceable API to BasePrefControllerMatthew Fritze
Only support explicitly approved Settings Slices, dictated by controllers which return true for the new method isSliceable. Updating the supported settings to a whitelist means that the method to return all available slices must be updated, and checking slicability when we index slices. Test: robotests Bug: 79779103 Change-Id: Ib2b9690cdd0036b5cc4a1cb846c52bce7c824ab9
2018-05-16Merge Ambient display into Lockscreen settings.Fan Zhang
And remove the entry point from security page. Now we only have 1 entry point from Display page. Change-Id: I06bc15a6fd8802a4918d8772af2722d5aafa332e Fixes: 71892510 Test: robotests
2018-05-09Establish permanently unavailable settingsMatthew Fritze
Distinguish between settings which are permanently unavailable on the device, and temporarily unavailable. This enables us to restrict which setting slices are exposed in onSliceGetDescendants. The primary changes in this CL are renaming: "DISABLED_UNSUPPORTED" -> "UNSUPPORTED_ON_DEVICE" to be more clear the the setting will cannot be accessed on the device, and, adding a new enum to encapsulate settings which are currently unavailable, but could be enabled in the future. Also remove UNAVAILABLE_UNKNOWN. Devs should never need this enum. Bug: 78910582 Bug: 79245656 Test: robotests Change-Id: I58821a6cfd6134b3b351657b6edf5f74ead00643
2018-04-20Migrate Settings to androidx.Aurimas Liutikas
Test: make Settings Bug: 76692459 Change-Id: I941dea40562170649bf056e675cc32e5163c0e39
2018-04-09GesturesSettingPreferenceController to ToggleHJ ChangLiao
Convert GesturesSettingPreferenceController to TogglePreferenceController, All of its children need follow the change, add setter and robotest for them: AssistGestureSettingsPreferenceController DoubleTapPowerPreferenceController DoubleTapScreenPreferenceController DoubleTwistPreferenceController PickupGesturePreferenceController SwipeToNotificationPreferenceController Change-Id: I792b2d370eea828bf345fb2b1cc3eac260eb66f4 Fixes: 74913806 Fixes: 67998110 Fixes: 67998098 Fixes: 67998048 Fixes: 67998069 Fixes: 67997452 Test: make RunSettingsRoboTests
2018-04-04Fix crash in non-indexable keys collectionMatthew Fritze
Some of the AmbientDisplay preference controllers were crashing when their isAvailable methods were being called by their fragment's search index providers, which meant that the entire collection of non-indexable keys failed. Thus, all search results were showing up. In the case of a secondary user, they were able to see developer options which crashed settings when clicked. There are two issues addressed in this cl. 1. Fix the crashes so the non-indexable keys collection works 2. Contain each fragment's collection, so that if a fragment does crash, the damage is minimized. Part 1 is checking that the config in isAvailable is not null, and creating one if so. Part 2 is fixed by surrounding the collection of non-indexable keys in a try-catch, with an option in the catch to re-throw the error if a system property is set. Thus, in a new pre-submit instrumentation test, we can and docheck if any of the fragments crash when collecting non-indexable keys. Change-Id: I820bd9cb2649aa6faff7f82fcf575a62e41dc4fc Fixes: 77486668 Test: atest NonIndexableCrashTest, robotests
2018-03-31Wake notifications to TogglePreferenceControllerHJ ChangLiao
Convert Wake for new notifications to TogglePreferenceController Because Slice controller only support Constructor(context) Move other parameter to setAmbientDisplayConfiguration Change-Id: I01042b84217ad9592fece966374140dffaf813e4 Fixes:67997460 Test: make RunSettingsRoboTests -j
2018-01-24Migrate to use instrumentation classes from settingslib.Leif Hendrik Wilden
Test: Compiles. Manually tested. Change-Id: I70a6e76cc8440547746ecc008c32bd06a7de8161
2018-01-22Revert "Migrate to use instrumentation classes from settingslib."Leif Wilden
This reverts commit 1546cca529bf56430332e15b05ceb6efb37e57bf. Reason for revert: Broke fingerprint setup flow. b/72267201 Change-Id: I8321265ae64732c526325882ddea51080decddf5
2018-01-18Migrate to use instrumentation classes from settingslib.Leif Hendrik Wilden
Test: Compiles. Manually tested. Change-Id: Ie5515bb0fe3e621fc7723a9b04ba23e4bfa9c401
2017-10-24Only allow Settings app launch search result pageFan Zhang
Bug: 68199963 Test: robotest Change-Id: I0018e9c60b0dd46fc2420a563a93b706bf252dc4
2017-07-26Add ambient notifications as inline setting.Andrew Sapperstein
Bug: 62022517 Test: robotest and manual Change-Id: If245f541ec3c8a1627d082b97bba9b325438cfeb
2017-06-26Make PreferenceController a mixinTony Mantler
Bug: 62912136 Test: Existing tests in BaseSearchIndexProviderTest Change-Id: Ieda359806c09a019840b2005446c7ec8b61fdb00
2017-05-30AOD: Ambient display settings to dedicated settings screenAdrian Roos
Bug: 33279975 Test: make RunSettingsRoboTests Change-Id: I5f3ddf3b3abfc989907293b4a47b78568c01cf9b