summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/search
Commit message (Collapse)AuthorAgeFilesLines
* Fix breadcrumb of search results provided by SettingsYanting Yang2020-04-211-0/+4
| | | | | | | | | | | Settings Search need Settings to provide custom site map pairs to build up full breadcrumb for the search results from Gesture Settings page. Bug: 147851992 Bug: 151206664 Test: visual and robotests Change-Id: I4a61e6da48755184954c2c90834578030ffc2e10
* Fix breadcrumb for the search results of Custom restrictions pageYanting Yang2020-04-151-0/+4
| | | | | | | | | | | | | | | | | | | | Settings Search need Settings to provide the custom site map pairs to build up the full breadcrumb for the search results of Custom restrictions page. Impact search results: Don't turn on screen Don't wake for notifications Hide notification dots on app icons Hide status bar icons at top of screen Don't pop notifications on screen Hide from pull-down shade Custom restrictions Bug: 147851992 Bug: 151206664 Test: visual and robotests Change-Id: I01e359eabcdc362e2a1fde5f3bc4ae5dc6918030
* Fix breadcrumb of search results provided by SettingsYanting Yang2020-04-101-0/+15
| | | | | | | | | | | | | | | | | | 1. Settings Search need Settings to provide custom site map pairs to build up full breadcrumb for the search results from below pages. - PowerUsageAdvanced - RecentLocationRequestSeeAllFragment - UsbDetailsFragment - UserBackupSettingsActivity 2. Update the screen title of Backup raw index data from Settings to Backup to display correct breadcrumb in Settings Search. Bug: 147851992 Bug: 151206664 Fixes: 152368059 Test: visual and robotests Change-Id: Iaebab8d549bba6be7623708f9833349654e7f2a7
* Add custom site map pairs into SettingsSearchIndexablesProviderYanting Yang2020-03-262-0/+56
| | | | | | | | | | | Settings Search need Settings to provide custom site map pairs to build up full breadcrumb for the search results from ScreenLockSettings, WallpaperSuggestionActivity and WifiSettings2. Bug: 147851992 Bug: 151206664 Test: manual test with Settings Search, robotests Change-Id: Ide6e69b3336af255a388737d46147f2fc2ef9790
* Remove the index of the homepage category tilesYanting Yang2020-03-171-3/+17
| | | | | | | | | Do not index the tiles of homepage category since we would like to index their target activity for search. Fixes: 151418948 Test: visual Change-Id: I693534de006b4dbcaf192858e6f7d031bad78fef
* Receive tab info from SettingsIntelligenceRaff Tsai2019-12-101-0/+3
| | | | | | Bug: 144673633 Test: manual Change-Id: Ia28c5a43debbfcc6f6f6d465764adad0977ea319
* Merge changes from topic "query_nonpublic_slices"TreeHugger Robot2019-11-271-2/+5
|\ | | | | | | | | | | * changes: Enable Settings Search to query private Slices. Add the impl for the ability to query non-public Slices
| * Enable Settings Search to query private Slices.Yi-Ling Chuang2019-11-261-2/+5
| | | | | | | | | | | | | | | | | | | | The base Uri is now determined by whether a certain config string is set or not. When the config is set, Settings Search will then be able to query private Slices, otherwise we'll just provide public ones. Bug: 141088937 Test: rebuild Change-Id: I63b689de4491b664a2d6f88867fbbb9b1da38277
* | Make Settings self-injected toggle switch searchableJason Chiu2019-11-271-3/+10
|/ | | | | | | | | - only skip ActivityTile - skip items that has no static title Bug: 132812768 Test: robotest Change-Id: Idb3c111966c1dd96e2886aca2c7ead3b57ba119e
* Merge "Add new method to preference controller base for dynamic index."Stanley Wang2019-11-191-1/+18
|\
| * Add new method to preference controller base for dynamic index.Stanley Wang2019-11-191-1/+18
| | | | | | | | | | | | | | | | | | | | | | - Add updateDynamicRawDataToIndex method. - Implement preference controller index in BaseSearchIndexProvider. Fixes: 144545478 Test: make RunSettingsGoogleRoboTests -j make RunSettingsRoboTests ROBOTEST_FILTER= com.android.settings.search.BaseSearchIndexProviderTest Change-Id: Ibb11002227b280102b45d7c0610eae48ecf4c0f3
* | Add storage_summary_donut above ProfileSelectStorageFragmentRaff Tsai2019-11-181-1/+6
|/ | | | | | | | | | | | | | | | - Modify ProfileSelectFragment to support add preference xml in the top, and tabLayout below the preferences. Base preference layout is dummy_preference_screen.xml which contains no preference. ProfileSelectStorageFragment contains StorageSummaryDonutPreference above the tabLayout. - Make StorageSummaryDonutPreferenceController self workable without StorageDashboardFragment dependence. - Rename inactive_apps.xml to dummy_preference_screen.xml - Move ShadowPrivateStorageInfo from LowStorageSliceTest Bug: 141601408 Test: manual Change-Id: Ide12840dc81bb104f328e230ecda5d35bba01d7a
* Add dynamic injection item to site mapRaff Tsai2019-11-121-2/+9
| | | | | | | | - That will make injection able to build site map Bug: 143116297 Test: manual Change-Id: Ic07280519bb7f904a3e80e172b6cb8785b94616f
* Refactor SettingsSearchIndexablesProvider.Stanley Wang2019-11-071-37/+27
| | | | | | | | | | | - Extract the adding raw indexable columns to createIndexableRawColumnObjects method. - Refactor the getInjectionIndexableRawData method for query injection data. Test: manual Fixes: 144007045 Change-Id: I9c028818dcaff165c3b7f8d495f6002370cd30fa
* Integrated SearchIndexableResources interface in SettingsRaff Tsai2019-11-052-83/+26
| | | | | | | | | - New SearchIndexableResources interface returns SearchIndexableBundle, we don't need reflection to get SearchIndexableProvider Bug: 135053028 Test: robolectric, check database search_index.db items Change-Id: I5ed3416ccf72ef3d38db817fcb4aff7502649ed4
* Add query dynamic indexable data to SettingsSearchIndexablesProviderStanley Wang2019-11-011-37/+90
| | | | | | | | | | | | - Add getDynamicSearchIndexableRawFromProvider method. - Extract the injection indexable part to the getInjectionIndexableRawData method. - Extract the getting indexable provider part to the getIndexableProviderValues method. Test: manual Fixes: 143741131 Change-Id: Idbf5b5419c0b78e0586e9c8d611dd51013eb0971
* New method implementation of BaseSearchIndexProvider for dynamic index.Stanley Wang2019-10-311-0/+5
| | | | | | | | Implement the new method getDynamicRawDataToIndex. Test: manual Fixes: 143664054 Change-Id: I1cc68e6ef6a4e03d8dc0b00d422029627c955bdf
* Fix the inverted logic of indexing injected entriesJason Chiu2019-10-241-1/+1
| | | | | | | | | The if statement was misplaced while changing the coding style in previous CL. Bug: 132812768 Test: manual Change-Id: I01a2494bf8103c806ec9b3cbd1ff9f8b8c01aebe
* Make injected entries searchableRaff Tsai2019-10-191-0/+37
| | | | | | | | | Add a injected item in queryDynamicRawData. SettingsIntelligence will query this method in query time. Fixes: 132812768 Test: manual Change-Id: I4e2f56e86537930e3102280f7e8dc7691ea1ec4e
* Hide search box if it is called in initial setup wizardRaff Tsai2019-10-182-12/+18
| | | | | | | | | | - Search box is hidden if user set intent extra isSetupFlow true Fixes: 135717823 Test: search box is hidden in the following command adb shell am start -a android.settings.SETTINGS --ez isSetupFlow true Change-Id: Ia3d955c9390d6b0eef9391b9b35b6a483eb63d26
* Use SettingsLib IndexableRaff Tsai2019-09-255-145/+6
| | | | | | | | | - Use SettingsLib Indexable - Directly use resource id in getPreferenceScreenResId Bug: 135053028 Test: roboletric Change-Id: I05f493b55e8b6e2091301e9231ba5615215618e6
* Directly use BaseIndexableProviderRaff Tsai2019-09-242-8/+7
| | | | | | | | | | | - 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
* Merge similar BaseSearchIndexProvider code togetherRaff Tsai2019-09-121-0/+11
| | | | | | Bug: 135053028 Test: robolectric, check search_index.db contains the same items Change-Id: If3c18a170b0e671690df1fdf26e59a421d2c48cd
* Implement slices api of SettingsSearchIndexablesProviderStanley Wang2019-03-291-1/+35
| | | | | | | | add querySliceUriPairs method to provider Fixes: 129322803 Test: manual and robotests Change-Id: I9255ed6dba5b8b1fc79caa3026c8b31924c95f4b
* Fix crash on AppInfo screentmfang2019-03-182-2/+3
| | | | | | | | | | | | We start a search page with a request code which is same as "uninstall" request code. The root cause is we handle same reuqest code for different event. We redefine an unique request code for "search" feature. Fixes: 124775813 Test: Click search and back to App info screen. Change-Id: I8ab21c30b605bcb65b6d4bd9fceb749a65a49f80
* Add referrer when launching search intent.Fan Zhang2019-01-293-16/+37
| | | | | | Bug: 123294739 Test: robotests Change-Id: I600abf1d764e828d52f3b8d35ad24cdc94dfba01
* Migrate all MetricsProto enums to SettingsEnumsFan Zhang2019-01-173-6/+5
| | | | | | Bug: 122855168 Test: rebuild Change-Id: I962d9a71179f86b7cae9dc5e9a00e0aa1557dc76
* Remove obsolete logic in SettingsActivity.Fan Zhang2018-11-291-2/+4
| | | | | | | | | | | | | | | mIsShowingDashboard is always false, it used to be true when we are displaying homepage, but now homepage is hosted in a entirely different activity. so all related logic can now be removed. Test: robotests Misc clean up: remove unused colors Test: rebuild, color-lint Change-Id: I1e1628c1e9606c2b7dc40ef3c21d4ed1391a8c03
* Fix Settings crash when clicking search barRaff Tsai2018-11-152-0/+13
| | | | | | | | | | | | - When user disable settings suggestion in App Settings, click search button without leaving settings app. The search button is still existed. - Doesn't allow user to disable app in App Settings - Add check before start search intent Change-Id: Ifbc4615914678d8df734e14d63bb626403313d1e Fixes: 118805907 Test: manual
* Read SettingsIntelligence package name from resourceRaff Tsai2018-11-133-7/+8
| | | | | Test: make RunSettingsRoboTests Change-Id: I2143e1f7657cc0e01e91978e8c212ff079cec7d7
* Fix Settings crash after disabling Settings SuggestionRaff Tsai2018-11-072-3/+16
| | | | | | | | | | - Settings Suggestion App is responsible for searching, we can not prevent user disable it. Hide search feature if user disable it. Fixes: 118805907 Fixes: 117921464 Test: manual Change-Id: I61c47c52265a6efd79ef2fa60272bf6513e678b1
* Use public API to launch search UI.Fan Zhang2018-10-181-1/+2
| | | | | Test: manual Change-Id: I5527dd6de5990aed365b6e78a9492ced00b99565
* Change search fab to search bar.Fan Zhang2018-10-101-4/+15
| | | | | | | | | | | | - Remove search fab from layout xml - Change RelativeLayout to CoordinatorLayout so we can use prebuilt scrolling behavior - Minor update to theme so search bar background works in dark mode for the homepage activity. Change-Id: If7408c12684be65137e04ae3bb4137204c2d77e0 Fixes: 117508596 Test: robotests, visual
* Merge "Remove DeviceIndex feature/service."TreeHugger Robot2018-10-083-362/+0
|\
| * Remove DeviceIndex feature/service.Fan Zhang2018-10-083-362/+0
| | | | | | | | | | | | Change-Id: I8444101669aef013183842c2d13cf3960c756398 Fixes: 112587202 Test: rerun all tests
* | Log open search action in metrics.Fan Zhang2018-10-082-3/+10
|/ | | | | | Change-Id: I80ab40d0767a9e6e561690f31bd092b384095b6e Fixes: 117341899 Test: robotests
* Move search resources to settingslib-searchFan Zhang2018-09-281-0/+1
| | | | | | Bug: 113128828 Test: manual Change-Id: I2c513dd22e84d5f86bd282e10d0b0df19f9ce407
* Don't persist device index job across rebootFan Zhang2018-09-191-1/+1
| | | | | | Change-Id: I9bd25c7f266dded730918ec517e842c2b6ee9b1a Fixes: 115930605 Test: manual
* Modify Settings homepage layoutRaff Tsai2018-09-051-4/+4
| | | | | | | | | - Add BottomNavigationView which has two tabs - Remove BottomSheet in layout files Change-Id: I493290fa9dee0566c73c5c9d7fbba10b71b4e2b4 Fixes: 113266753 Test: visual
* Close searchActivity doesn't go back to previous activityRaff Tsai2018-08-291-1/+2
| | | | | | | | When requestCode is 0, we will not finish activity. Change-Id: Ib630951739031b05c83efe189875a4a41c8e51ec Fixes: 113372155 Test: make RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.password"
* Merge "Sort imports"Fan Zhang2018-08-294-11/+13
|\
| * Sort importsFan Zhang2018-08-284-11/+13
| | | | | | | | | | | | | | | | Having consistent import order will reduce chance of merge conflict between internal and external master Test: rebuild Change-Id: I0b1a170967ddcce7f388603fd521f6ed1eeba30b
* | Turn down app indexing for slices.Fan Zhang2018-08-282-6/+3
|/ | | | | | Bug: 112587202 Test: robotests Change-Id: Ice84173bd9617f58689438c460522104776c46ce
* Merge "Fix indexing after slices api changes"TreeHugger Robot2018-08-171-4/+5
|\
| * Fix indexing after slices api changesMady Mellor2018-08-151-4/+5
| | | | | | | | | | | | Test: make -j40 RunSettingsGoogleRoboTests make -j40 RunSettingsRoboTests ROBOTEST_FILTER="Slice" Change-Id: Ib599a8c814942a80d7b60fc3b40b284ce2b55775
* | Declare "searchable" attribute for preferences.Fan Zhang2018-08-161-25/+36
|/ | | | | | | | | Now we can easily mark a preference nonIndexable in xml instead of adding key into searchIndexProvider. Bug: 112608186 Test: robotests Change-Id: I0ff16d44bb7b6ad148d3d35f09ca0da0163f73f4
* Remove custom tintable check.Fan Zhang2018-08-031-2/+2
| | | | | | | Make a bunch keys private in tile and DashboardCategory Bug: 77600770 Test: robotests Change-Id: I4693e6bb71bd50cc664f578c7f8e25e67da20b67
* Disable changing lock when device is not provisioned.Doris Ling2018-08-011-0/+4
| | | | | | | | | | | When the device is not yet provisioned and settings is launched: - disable the entry point for changing device lock - remove the search panel from settings home page - remove the search menu Bug: 110034419 Test: make RunSettingsRoboTests Change-Id: Ieb7eb0e8699229ec0824ccc19d7b958ac44965a2
* Clean up: fix incorrect @VisibleForTesting importsFan Zhang2018-07-131-1/+1
| | | | | Test: rebuild and robotests Change-Id: I33d7ee1c0622c01f592920baaf01d44ad19d9a13
* Settings Fragment Migration (Build pass app)tmfang2018-07-111-2/+2
| | | | | | | | This patch focused on fixing compile errors and some runtime errors. Test: We can't test it now. But we will have an integration test later. Bug: 110259478 Change-Id: I16c471ddcd0fa1460c665b7f74d86fcace5ee67b