summaryrefslogtreecommitdiff
path: root/core/java/android/app/SearchManager.java
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Update language to comply with Android's inclusive language guidanceJeff Sharkey2020-09-141-1/+1
| | | | | | | | | See https://source.android.com/setup/contribute/respectful-code for reference Test: none Bug: 168334533 Exempt-From-Owner-Approval: docs updates Change-Id: I245b8d9cac722da76ea67983738a3cbb9deb68df
* 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: I8789f8499d4dca08580672e9e45ed9a7026dd686
* Delete SearchManager.launchAssistService and convertskill2019-11-211-23/+10
| | | | | | | | | | | SearchManager.launchAssist into @SystemApi method that handles both phone and TV devices. That allows apps to start Assistant. Bug: 128538467 Test: manual Change-Id: Ie05c910768062c00717df66e35b4118805458999
* Merge "docs: fixing errors found with lint check" into pi-dev am: 8c7d2142f6kopriva2018-10-091-3/+3
|\ | | | | | | | | | | am: 4d12f4c42b Change-Id: I96a6dab05b6d4ea40950fe2ddc0948adf1b4e48f
| * Merge "docs: fixing errors found with lint check" into pi-devkopriva2018-10-091-3/+3
| |\ | | | | | | | | | | | | | | | am: 8c7d2142f6 Change-Id: Ief137b64e798b4b5bb6be5e6d25a35e08037abe5
| | * docs: fixing errors found with lint checkkopriva2018-10-091-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This covers directories through /app. removed unused import in KeyguardManager.java Test: make ds-docs Bug: 117494359 Change-Id: Ie2536676ae8d3ab9349aa43dc3e3248b618dd143 Exempt-From-Owner-Approval: Docs-only change
| * | Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-141-0/+10
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For packages: android.app.usage android.app.trust android.app.timezonedetector android.app.timezone android.app.timedetector android.app.job android.app.backup android.app.assist android.app.admin android.app 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: I5d15d50344d7178617418846917f693cfabf006b Merged-In: I618c5dc4462ae990d9df45c3e9ed3f092cc5138c
* | Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-141-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For packages: android.app.usage android.app.trust android.app.timezonedetector android.app.timezone android.app.timedetector android.app.job android.app.backup android.app.assist android.app.admin android.app 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: I618c5dc4462ae990d9df45c3e9ed3f092cc5138c
* | Moved some activities implementation to ActivityTaskManagerService (2/n)Wale Ogunwale2018-06-121-1/+1
|/ | | | | | | | | | | | | Second step in unifying the window hierarchy that is currently split within AM and WM packages. We move some of the API implementation for activities from ActivityManagerService.java to ActivityTaskManagerService.java. Test: Existing tests pass Test: go/wm-smoke-auto Bug: 80414790 Change-Id: I23dcd924493d8ad1e0b6e3a55386fd72b0146605
* Update javadoc for SearchManager api on TV.Leif Hendrik Wilden2018-02-281-1/+6
| | | | | | Bug: 35391427 Test: Looks good. Change-Id: I19da978a60895aa2c3850d0ccf37c6e54414e7f3
* Explicitly do not support SEARCH_SERVICE on UI_MODE_TYPE_WATCHErik Wolsheimer2018-02-231-0/+3
| | | | | | Bug: 69950606 Change-Id: Ia195e88d8652cd7875d0ce03875034698367001c (cherry picked from commit 980ba14b921932e85cdc0447af0398778a1c0d64)
* Annotate @SystemApi with required permissions.Jeff Sharkey2017-06-051-6/+3
| | | | | | | | | | | | | | | | | Most @SystemApi methods should be protected with system (or higher) permissions, so annotate common methods with @RequiresPermission to make automatic verification easier. Verification is really only relevant when calling into system services (where permissions checking can happen on the other side of a Binder call), so annotate managers with the new @SystemService annotation, which is now automatically documented. This is purely a docs change; no logic changes are being made. Test: make -j32 update-api && make -j32 offline-sdk-docs Bug: 62263906 Change-Id: I2554227202d84465676aa4ab0dd336b5c45fc651
* Update usage of ActivityManagerNative.Sudheer Shanka2016-11-141-1/+1
| | | | | | | | | | | - Remove references to ActivityManagerProxy. - Add isSystemReady to ActivityManager. Bug: 30977067 Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test android.server.cts adb shell am instrument -e class com.android.server.am.ActivityManagerTest,com.android.server.am.TaskStackChangedListenerTest \ -w com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner Change-Id: I07390b6124fb1515821f5c0b37baf6ae74adc8fa
* Avoid caching services with missing binders.Jeff Sharkey2016-08-111-4/+5
| | | | | | | | | | | | | | | | When fetching system services early during boot, if the underlying binder interface hasn't been published yet, we end up caching a manager class that is broken for the remainder of the process lifetime, and innocent downstream callers end up using the broken cached manager. Fix this by using an explicit exception to quickly abort manager creation when the underlying binder is missing. The exception is only used to skip the remainder of the manager creation, and it doesn't actually crash the process. Bug: 28634953 Change-Id: I0cb62261e6d6833660704b93a11185aa11a2ac97
* When system server goes down, crash apps more.Jeff Sharkey2016-03-011-15/+8
| | | | | | | | | | | | | Apps making calls into the system server may end up persisting internal state or making security decisions based on the perceived success or failure of a call, or the default values returned. The reality is that if the system process just died, init will be along shortly to kill all running apps, so we should have no problem rethrowing the RemoteException as a RuntimeException. Bug: 27364859 Change-Id: Ife0bcb079636c88d54c44d17eb580409fd79028b
* Fix assist for hardware long-pressJorim Jaggi2015-07-081-23/+26
| | | | | | | | | Activating the assistant will now route through SysUI, so we have the logic whether to start an activity or to start a voice interaction session in one single place. Bug: 22201770 Change-Id: I0f4699533aea2a1e595ee25a844434c82f548c01
* Pass an args bundle to launchAssistAction.Tim Kilbourn2015-06-051-2/+2
| | | | | | | | | | In order to track the input device that was used to trigger assist, the input device id is sent as an extra in the assist intent whenever it is available. This is particularly useful on TVs, when an app may want to know whether the input device has a microphone. Bug: 21666123 Change-Id: I0f8c09e2f617606bef481bdff924cb6b9b47dd12
* More work on collecting assist data.Dianne Hackborn2015-03-121-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Optimize parceling of AssistData (which is now renamed to AssistStructure) by pooling duplicated class name strings. Change text associated with a view node to a CharSequence, so styling information comes along. Include global text attributes -- size, colors, etc. Introduce a new AssistContent structure, which allows us to propagate information about the intent and data the activity is looking at. This further allows us to propagate permission grants, so the assistant can dig in to that data. The default implementation propagates the base intent of an activity, so if for example you bring up the assistant while doing a share the assistant itself has the same information and access that was given to the share activity (so it could for example share it in another way if it wanted to). Did some optimization of loading PersistableBundle from xml, to avoid duplicating hash maps and such. Changed how we dispatch ACTION_ASSIST to no longer include the more detailed AssistStructure (and new AssistContent) data when launching; now the example code that intercepts that needs to be sure to ask for assist data when it starts its session. This is more like it will finally be, and allows us to get to the UI more quickly. Change-Id: I88420a55761bf48d34ce3013e81bd96a0e087637
* Merge "NPE in SearchManager.triggerSearch"Amith Yamasani2015-01-071-9/+0
|\
| * NPE in SearchManager.triggerSearchYou Kim2013-08-291-9/+0
| | | | | | | | | | | | mAssociatedPackage field is never initialized and cause NPE. Change-Id: Ibf0d44b2170b7cbfe4a883008254a086e03579c5
* | Implement issue #17906468: Allow search request to fall back to global searchDianne Hackborn2014-10-091-0/+16
| | | | | | | | Change-Id: I04834b2a9f1ec4a68c6a3fed14da2f8dd93b3be7
* | Don't start SearchDialog on television.Tim Kilbourn2014-10-081-2/+7
| | | | | | | | | | Bug: 17654744 Change-Id: Ie76405d648b7ac34a70465e275315f9cf277a3fe
* | Add constants to Android TV On Device Search.Xiaolei Wang2014-06-091-0/+106
| | | | | | | | Change-Id: I7b5780f8c4c0367d198607ad2780cf6ec6a96d3a
* | Remove unused imports from frameworks/base.John Spurlock2013-11-201-2/+0
| | | | | | | | Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
* | Extend assist context to foreground servicesAdam Skory2013-08-071-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | Add Service.onProvideAssistData(Bundle) which will be called on foreground Services that have the new attr in their manifest of provideAssistData = true; Rename private reference to e.g. "getTopActivityExtras" as "getAssistContextExtras" - do not rename the relevant permission, since it is already public. In ActivityManagerService, request extras both from the top activity and from any foreground services with the above attribute. Extend PendingActivityExtras as PendingAssistExtras with a list of Services from which extras are expected. Reduce the timeout to or reporting extras from 4 sec to just 500 ms. Bug: 9526331 Change-Id: Ia03b96e8189033a68ae9c514c8cea0199a19bce8
* Add new API to propagate contextual data to the assist actionDianne Hackborn2013-01-231-3/+10
| | | | | | | | | When launching an assist, we have a new API allowing the current foreground activity/application to provide additional arbitrary contextual information that is stuffed in the assist intent before it is launched. Change-Id: I0b2a6f5a266dc42cc0175327fa76774f814af3b4
* Disable navbar searchlight if search assist not available.John Spurlock2012-11-091-0/+3
| | | | | Bug:7506441 Change-Id: I55c740d4c3a45b9f7fdfa38346d1bc3fb1299153
* Rename UserId to UserHandle.Dianne Hackborn2012-08-161-2/+2
| | | | | | This is the start of turning this into a formal public API. Change-Id: I5786d2c320f1de41a06ed5d0f65adb68967287a0
* Launch ASSIST intent on the current userAmith Yamasani2012-08-141-7/+22
| | | | | | | | | Lockscreen and statusbar now launch the intent on the current user. Make sure that the intent resolution is made to the package manager for the specific user, as the app could have been disabled for that user or may have an alternative app installed. Change-Id: I93b0f972d6c7e8880b146da83dc3d08a68fe7e51
* Fix 6667238: allow market apps to support ACTION_ASSISTJim Miller2012-06-191-19/+7
| | | | | | | | | | This change allows market apps and 3rd parties to supply an activity that responds to ACTION_ASSIST (e.g. market apps). It also adds a test app to respond to the ASSIST intent and force the intent disambiguation dialog to appear. Change-Id: I5a78863c6a9546d18c66275187d178f6a1c9ee17
* Add new ASSIST key and map it to the global assist intent.Jeff Brown2012-06-141-0/+30
| | | | | | | | | Moved some duplicate code from SearchPanelView and LockScreen over to SearchManager to avoid creating yet another copy of it in PhoneWindowManager. Bug: 6594275 Change-Id: Ib4ebcd6817639d17548952ab2ce7cb876c05777c
* Make APIs to get global search provider publicMichael Jurka2012-04-271-7/+1
|
* docs: Add developer guide cross-references, Project ACRE, round 4Joe Fernandez2011-12-221-4/+5
| | | | Change-Id: I1b43414aaec8ea217b39a0d780c80a25409d0991
* Allow setting of source bounds on global search intents.Mathew Inwood2011-10-141-2/+20
| | | | | | | | | | This is to allow the launcher to include the source bounds of the search affordance on the homescreen when launching the global search app. Bug: 5235747 Change-Id: I7af1a651d593b6d946aa2fe42d900a9c4470b4e2
* Fix typo in SearchManager javadoc.Mark Brophy2011-09-161-1/+1
| | | | Change-Id: I40e1879779e51414f9a5b937209b9decbfb11693
* Add PendingIntent extra for WEB_SEARCH intentsBjorn Bringert2011-08-101-0/+8
| | | | | | | | | | | This allos apps (e.g. browsers) that launch web searches to control how the search results page is opened. For example, the Android Browser will use this to make sure that searches typed in the browser address bar open in the Andorid Browser, and not somewhere else. Bug: 4988580 Change-Id: I4665c9812ca8d704adbaea22a3812188bb48d1d2
* Merge "Add a global-search column for last access."Dan Morrill2011-06-301-0/+9
|\
| * Add a global-search column for last access.Mark Brophy2011-06-171-0/+9
| | | | | | | | | | | | | | | | | | | | NEW_API This new column may be set in Cursors returned to global search. QSB will may use this to help sorting results when presenting them to the user. Change-Id: Id5bc87dcb50f3e3a55b0a54a8c90057e60fd0e9e
* | Make the system global search provider a user setting.Narayan Kamath2011-06-281-0/+27
|/ | | | | | | Also, modify Searchables / SearchManagerService to honour the setting when it's set. Change-Id: Ia63351fff4fe28ee79ac8b9e30fdb8edc43f5534
* New flag to open intent in a new tab.Leon Scroggins2011-02-231-0/+6
| | | | | | Bug:3405773 Change-Id: I363bfbfee90e98cd1e6a57452e599a79637a8555
* Query refinement feature in SearchView.Amith Yamasani2010-09-161-71/+61
| | | | | | New method : setQueryRefinementEnabled() which will either enable all suggestions to have the little query refinement icon in the right or just the ones that have a bit set in the new SUGGEST_FLAGS column of the suggestion provider cursor.
* Add an option to hide the Voice Search icon.Leon Scroggins III2010-09-141-0/+8
| | | | | | | Some search engines do not support voice search, so provide a flag to disable showing the icon in the SearchDialog. Change-Id: I7ef4ad5d382edb86c08014260defa4af6d5eca0a
* docs: remove documenation about the search dialog from SearchManagerScott Main2010-03-171-1167/+9
| | | | | | | | and point to the new developer guide. Also update the searchable config doc with a few comments about action keys because they're not documented anywhere else. Change-Id: I66d43881daf03a3ffe30b3e5aa6857c8829a6d72
* Set SOURCE to app package name when starting QSB (if not set)Bjorn Bringert2010-03-161-3/+10
| | | | | | | | | If QSB is started by SearchManager.startSearch(globalSearch=true) from some app that doesn't set SOURCE, it will be set to the package name of that app. Bug: http://b/issue?id=2315234 Change-Id: Ic07a143b27b658dea8b081b973ac24349a18b9f1
* When context is voice, show the microphone.Leon Scroggins2010-03-101-0/+9
| | | | | | Part of fix for http://b/issue?id=2501400 Change-Id: Ibdf364942bcdc8ec837fb8bb30a33c1af2ba5b06
* Feature to return an extra in the cursor that keeps the spinny going.Amith Yamasani2010-03-031-0/+8
| | | | | | | | | If a search provider returns an extra in the cursor with the key SearchManager.CURSOR_EXTRA_KEY_IN_PROGRESS, and the value true, then the spinny in the search dialog will not stop, but the cursor contents will still be used to update the results. This way, partial search results can be sent while the user is informed that the search is still in progress.
* Add SearchManager.SUGGEST_COLUMN_TEXT_2_URLBjorn Bringert2010-03-031-0/+10
| | | | | | | | | | This column overrides SUGGEST_COLUMN_TEXT_2. SearchDialog and QuickSearchBox render the value of this column as a URL in green. Part of the fix for http://b/issue?id=2380681 Change-Id: I6735e0eba90e24c81f9e72520f257e5e61796d7a