summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/gestures/GestureSettings.java
Commit message (Collapse)AuthorAgeFilesLines
* Make the fragment title can’t searchableEdgar Wang2020-02-061-20/+1
| | | | | | | | | | we shouldn't take users so deep into the settings IA because it's easy to feel lost in settings after clicking on a result without additional context. Bug: 143055215 Test: robotest & manual Change-Id: I337cb5ead31e1e4e7bf9be78132e90630f83ee43
* Revert "Settings search - Navigate user to exact page"Edgar Wang2020-01-161-0/+7
| | | | | | | | | | | | This reverts commit 08f2a58459610afe052a0abcce25afd53197032b. Reason for revert: design changed, we decide to take the user to the entry after clicking on a search result. It's opposite with what we did, so we revert related CL first. Test: robotest Change-Id: Iadb9a94a7ef7838be34a54499e2d934d6396c336
* Settings search - Navigate user to exact pageEdgar Wang2019-12-241-7/+0
| | | | | | | | | | | - remove duplicate index preference - default set searchable = false when the preference has fragment - make some fragments indexable Bug: 143057584 Test: robotest & manual Change-Id: I4d64f6106d2f92f0a45e8c7e26388677f593f412
* Directly use BaseIndexableProviderRaff Tsai2019-09-241-1/+1
| | | | | | | | | | | - Add function getXmlResourceId, Fragments don't need to write xml resource id twice. - Remove getPreferenceControllers from Indexable.java. Because it will move to SettingsLib later for other apps which don't need this function Bug: 135053028 Test: robolectric Change-Id: I1e74519aecdea3dde64a5aea79f08d766dbc0003
* Move AmbientDisplayConfiguration class out of internal package.Issei Suzuki2019-02-271-1/+1
| | | | | | Test: m droid (run full build) Bug: 126327497 Change-Id: Idc07c811864edb4f88151051e25d6e05e4caf3b2
* Migrate all MetricsProto enums to SettingsEnumsFan Zhang2019-01-171-2/+2
| | | | | | Bug: 122855168 Test: rebuild Change-Id: I962d9a71179f86b7cae9dc5e9a00e0aa1557dc76
* Clean up some search nonIndexableKeys.Fan Zhang2018-06-041-28/+4
| | | | | | | | | | | | | - Make the entire gesture setting page unsearchable. This is safe because each row in gesture setting page lead to a child page, we are only removing duplicates. - Make the pref controller for System -> gesture return AVILABLE_UNSEARCHABLE so it's also suppressed. - Suppres the parent page for adaptive brightness. Bug: 72748524 Test: manual Change-Id: Id7317f5f126af88b1bde8d87b8a206d9909df904
* Migrate Settings to androidx.Aurimas Liutikas2018-04-201-2/+2
| | | | | | Test: make Settings Bug: 76692459 Change-Id: I941dea40562170649bf056e675cc32e5163c0e39
* Adds the Swipe Up settings page under gesturesMehdi Alizadeh2018-04-111-0/+2
| | | | | | | | The illusteration video is not included yet. Bug: 77549883 Test: Unit tests and Manual test Change-Id: I7f2b2f3251a795dfd74dbbb442692e42a5a2966e
* Merge "Prevent ringing updates" into pi-dev am: dbffb1812dJulia Reynolds2018-04-101-19/+1
|\ | | | | | | | | | | am: 8176af9610 Change-Id: I880b80215cfec3897b18200b18bedbb6c899e241
| * Prevent ringing updatesJulia Reynolds2018-04-101-19/+1
| | | | | | | | | | | | | | | | | | | | | | | | - Add video - Update text - Link from Sound settings - Inherit from BasePreferenceController Test: make -j RunSettingsRoboTests Change-Id: If8cd9efd4e6034e6f6864a142a86cbc23bf59dc3 Fixes: 76832936 Fixes: 74410634
| * GesturesSettingPreferenceController to ToggleHJ ChangLiao2018-04-091-20/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Merged-In: I792b2d370eea828bf345fb2b1cc3eac260eb66f4 Fixes: 74913806 Fixes: 67998110 Fixes: 67998098 Fixes: 67998048 Fixes: 67998069 Fixes: 67997452 Test: make RunSettingsRoboTests
* | GesturesSettingPreferenceController to ToggleHJ ChangLiao2018-04-091-20/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Autogenerate SearchIndexableResources subclassTony Mantler2018-04-031-0/+2
|/ | | | | | Bug: 77148954 Test: RunSettingsLibRoboTests RunSettingsRoboTests RunSettingsGoogleRoboTests RunArcSettingsRoboTests Change-Id: I842c42c55014c3310070ef22bd4f0d9a70dfd804
* Add a setting for the volume hush gestureJulia Reynolds2018-03-211-0/+3
| | | | | | Bug: 75252670 Test: make -j20 RunSettingsRoboTests Change-Id: I699aeec54eb516931b6d7c5b3fc864b169015c2f
* More renaming in DashboardFragmentFan Zhang2018-02-231-1/+1
| | | | | | | | | getPreferenceControllers() -> createPreferenceControllers() for the same reason as in ag/3647936 Bug: 73668763 Test: robotests Change-Id: I97670a91a2a38d1c844d1b9d37f4222c5e6f45a0
* Rename Indexable::getAllPreferenceControllers.Fan Zhang2018-02-231-1/+1
| | | | | | | | | | | To getPreferenceControllers. "all" is redundant. Then internally, the old getPreferenceControllers() is renamed to createPreferenceControllers() to emphasize the controllers are created from code (versus the ones created from xml). Bug: 73668763 Test: robotest Change-Id: Ifec46aefdc2a418031c8e152028b30bdcd396fc7
* Clean up AssistGesturePreferenceControllerKevin Chyn2017-08-111-2/+2
| | | | | | | | | | The preference controller shouldn't be shared between the "Assist Gesture" parent setting, and the child setting within Fixes: 64318213 Test: manual test of settings && make -j RunSettingsRoboTests Change-Id: I2d2437e2036881a08977924dc1386aa1fab67070
* Move Gesture settings up one level.Doris Ling2017-07-201-0/+123
| | | | | | | | | Move System->Languages, input & gestures->Gestures to System->Gestures. Change-Id: Ie81876208383f69ebf1a0465d76c760d7dd9d95d Fix: 62276882 Test: make RunSettingsRoboTests (cherry picked from commit 55ce7de7d06d9fd8ec153c4b6f5300fbe9349990)
* Remove old code relating to SystemSettings not used in new IA.Doris Ling2017-02-281-148/+0
| | | | | | | | | | | | | | | - remove activity alias: DevelopmentSettingsDashboardAlias, DateTimeDashboardAlias, AboutDeviceDashboardAlias, BackupResetDashboardAlias, EnterprisePrivacyDashboardAlias, and AccessibilityDashboardAlias and updated the corresponding target activities with the alias metadata. - remove InputMethodAndLanguageSettingsActivity and GestureSettingsActivity and the associated xml. Bug: 35764802 Test: make RunSettingsRoboTests Change-Id: I7d4922f8dfaac40e8ad077a68008185cd9fe3304
* Merge "Add settings for the assist gesture."TreeHugger Robot2017-02-171-0/+2
|\
| * Add settings for the assist gesture.Philip Quinn2017-02-141-0/+2
| | | | | | | | | | | | | | | | | | Availability of the gesture is gated by a new FeatureProvider. Test: make -j RunSettingsRoboTests; manual test on supported/unsupported configurations. Change-Id: I3529367a73e33370d5112b91d5144293ffa7fa22
* | Remove extra IndexProviders that provided bad data.Matthew Fritze2017-02-151-47/+0
|/ | | | | | | | | | Gesture Settings and Wireless settings were indexing duplicate results that only added complexity to Search. PowerUsageDetail was never supposed to be indexed. Bug:33701673 Test: make RunSettingsRoboTests Change-Id: I45d1fa4bd412c3418acec24f8c98eb4736f220ab
* Remove getCategoryKey() from DashboardFragment children.Fan Zhang2017-01-241-6/+1
| | | | | | | | Use the centralized registry to look up category key instead. Bug: 32936784 Test: make RunSettingsRoboTests -j40 Change-Id: I0b8c72d70f93e4b5c58871ac90de41f69ad15653
* Add first inline switch result.Matthew Fritze2016-12-211-13/+24
| | | | | | | | Adds gestures as Inline switch results to Settings Search. Change-Id: Ie9b69ac2a54756d5b756401e348cae0a02c907c9 Fixes: 33669037 Test: make RunSettingsRoboTests
* Add video to each gesture preference screen.Fan Zhang2016-11-101-10/+12
| | | | | | | | | | | | | - Refactor GesturePreference to a generic VideoPreference. - The old video_preference.xml is only for magnification video, so renamed. - And use VideoPreference in gesture setting pages. - Refactor common logic into GesturePreferenceController. Bug: 32637613 Test: RunSettingsRoboTests Change-Id: I58580b01a32873cb32c5dc5bf2ec021d5b1400cc
* Merge "Add more gesture setting pages."TreeHugger Robot2016-11-091-124/+50
|\
| * Add more gesture setting pages.Fan Zhang2016-11-091-124/+50
| | | | | | | | | | | | Bug: 32637613 Test: make -j40 RunSettingsRoboTests Change-Id: I77f90b8b7e3348ed717ee78693860f48e13070f2
* | Update package names to work with the proto3 compilerTamas Berghammer2016-11-081-1/+1
|/ | | | | Bug: b/28974522 Change-Id: I5f3adf4946ee4ba1e09e4f40afe83c151405972a
* Add swipe to see notification to "Notification preferences"Fan Zhang2016-10-241-56/+47
| | | | | | Bug: 31799948 Test: RunSettingsRoboTests Change-Id: Ib892ca4d5596c1c89e1efaf636a3eefd7cee371a
* Ensure that the gesture animation video is paused properly. am: 4245ad4771 ↵Doris Ling2016-10-211-0/+8
|\ | | | | | | | | | | | | | | am: 5e4fce04fb am: 12ffd7aaa7 Change-Id: I5c063fc4c1644a9d7e5360e91c1d79375f92986a
| * Ensure that the gesture animation video is paused properly.Doris Ling2016-10-211-0/+8
| | | | | | | | | | | | | | | | | | | | | | Add the handling to pause the animation video when user navigates away from the gesture settings. Test: Manual - play gesture animation videos, then switch to another app in recents. Verifies from logcat that NuPlayerDriver is not active. Fix: 32064123 Change-Id: I3d0fb3946e4d0d77a686aa97cfabe667862cac17
* | Separate ambient display triggers am: 82829ee0b1 am: 5ba2074e31Adrian Roos2016-10-181-30/+15
|\| | | | | | | | | | | am: c0dfa153f4 Change-Id: I2eed4a8bfbc8ded0f5d12b3284d8ae5a0cfb1823
| * Separate ambient display triggersAdrian Roos2016-10-171-30/+15
| | | | | | | | | | | | | | | | | | | | | | Allows configuring notification and sensor triggers separately. Introduces a helper class that hosts the logic for determining what kinds of triggers a device supports. Bug: 32073185 Change-Id: Ie7e8eb6b895dcc54e6f972e70642c7248b9e223a Test: disable "ambient display", sensor triggers should still work
| * Merge "Add static preview images to gesture settings." into nyc-mr1-devDoris Ling2016-10-171-13/+6
| |\
* | \ Add static preview images to gesture settings. am: 12e4bebabf am: df7b815980Doris Ling2016-10-171-13/+6
|\ \ \ | | | | | | | | | | | | | | | | | | | | am: fccee6adae Change-Id: Ia745f80fa47a7316cb462918f900de001b1ecf03
| * \ \ Add static preview images to gesture settings.Doris Ling2016-10-171-13/+6
| |\ \ \ | | |/ / | |/| / | | |/ | | | | | | am: 12e4bebabf Change-Id: I4f5f16b109c4997b15b93320945bbb3ccab06735
| | * Add static preview images to gesture settings.Doris Ling2016-10-111-13/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set the animation preview image view to the newly added preview image instead of loading it from animation video. Test: manual - launch gesture settings and visually check the animation preview images. Bug: 31636637 Change-Id: If25a0e3501bea0c6343326a143d665ec79e3d7c7
* | | Remove pickup gesture settings if sensor is not found. am: 94e0da52fc am: ↵Doris Ling2016-10-121-6/+16
|\| | | | | | | | | | | | | | | | | | | | | | | 79aa718669 am: ef980e4dd1 Change-Id: I6d5ee494b26838f0c508f297a28a18ccc1867422
| * | Remove pickup gesture settings if sensor is not found.Doris Ling2016-10-111-6/+16
| |/ | | | | | | | | | | | | | | | | | | | | | | Update gesture settings to check for available pickup sensor before showing pickup gesture settings. Test: manual - launch gesture settings on different device and check for pickup preference. Auto test pending. Bug: 32072298 Change-Id: Iaab0290dcfeb2b0c9195df685f225d092a658347
* | Add condition check for double tap gesture settings. am: c8b7555fc9 am: ↵Doris Ling2016-10-071-3/+14
|\| | | | | | | | | | | | | | | 7f62890cad am: a5eb66eb01 Change-Id: I0d56e0b1e3b25bd589fcfd4ba2301d51369f217e
| * Add condition check for double tap gesture settings.Doris Ling2016-10-041-3/+14
| | | | | | | | | | | | | | | | | | | | Only shows the double tap gesture preference if the config is enabled. Test: manual - launch gesture settings on different devices and check for double tap preference. Auto test pending. Bug: 31930457 Change-Id: Id972f60035d0c74f0832395f0229691cd3296d60
* | Split Ambient Display settings. am: 1ad58d0abf am: f89766dbabDoris Ling2016-09-241-28/+19
|\| | | | | | | | | | | am: 0dfe46fe58 Change-Id: I33ffaa71c09cff7a4df496c42371519367e1772c
| * Split Ambient Display settings.Doris Ling2016-09-231-28/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Reverting the changes for Display->Ambient Display; this setting will control incoming notification pulse. 2. Added 2 separate entries in gestures settings to control pick up and double tap gestures-triggered pulsing for Ambient Display. 3. Added automated tests to verify the preference initializes to the correct default value, and also verify that toggling the preference updates the corresponding settings correctly. Test: make SettingsTests Bug: 30595437 Change-Id: I125bf75fc4ccfea126a00ffae4207fcb789f487a
* | Re-enable Ambient Display double tab. am: fec320324c am: 6bc8858379Doris Ling2016-08-271-3/+47
|\| | | | | | | | | | | am: 5d4c701707 Change-Id: I01c2e3a4a207f0338744228171a0cee7ff6bfbab
| * Re-enable Ambient Display double tab.Doris Ling2016-08-261-3/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | Restoring the changes to move Display->Ambient Display to Moves->Quick screen This reverts commit 9b3000d8ac256093bbf62d04c518b67df244c311, except for the removal of res/raw/gesture_ambient_move_lift.mp4 Test: Manual - Go to Settings->Display->Quick screen check and verify the preference is restored. Bug: 30595437 Change-Id: Ie50bcebd119714d49422b7139d0d0234f27584e2
* | Merge "Use isOemUnlockEnabled to drive oem unlocking toggle." into ↵Fan Zhang2016-08-241-0/+8
|\| | | | | | | | | | | | | | | nyc-mr1-dev am: 2c8178db3a am: a9d2aa8dfa am: 77ba0620ea Change-Id: I7a557b4ce9923b7d9b3bd2add8c02fdbadfe589d
| * Fix animation video render issue when Settings->Moves is resumed fromDoris Ling2016-08-231-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | screen off. Re-initialize the animation video if necessary when the preference is visible to the user. Fixes: 31023261 Test: manual - 1. Go to Settings -> Moves and verify that the animation video are displayed correctly on load. 2. Press power button to turn screen off, then on again. Verify when Moves settings resumes, the animation video is displayed correctly. 3. Repeat #2 above but let display time out instead of turning off screen by power button. Change-Id: I0ee21d23a4c402b3a8463dca3b36fce67d651993
* | Log visibility change for all fragments.Fan Zhang2016-08-181-1/+1
|/ | | | | | | | | | Bug: 30681771 Test: SettingsUnitTests Refactor visibility logging from InstrumentedFragment into a mixin. And apply mixin in remaining fragments. Change-Id: Ibbb59904336254a3e4bb9e8c7d0b36e5a6bc2622
* Revert change to move Display->Ambient Display to Moves->Quick screenDoris Ling2016-08-051-47/+3
| | | | | | | | | | | | check. 1. Add back original toggle for Display->Ambient Display and revert summary text. 2. Remove Moves->Quick screen check preference and related scroll logic. 3. Remove ambient display related animation videos Bug: 30686297 Change-Id: Ie01a201f0a8deb0a858bc2a7f9cc607b749ab6e4