summaryrefslogtreecommitdiffstats
path: root/core/java/android/content/Intent.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix issue #2438980: Implement package watcher for voice recognizer service ↵Dianne Hackborn2010-02-221-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | setting I am getting tired of writing package monitor code, realized this is missing in a number of places, and at this point it has gotten complicated enough that I don't think anyone actually does it 100% right so: Introducing PackageMonitor. Yes there are no Java docs. I am still playing around with just what this thing is to figure out what makes sense and how people will use it. It is being used to fix this bug for monitoring voice recognizers (integrating the code from the settings provider for setting an initial value), to replace the existing code for monitoring input methods (and fix the bug where we wouldn't remove an input method from the enabled list when it got uninstalled), to now monitor live wallpaper package changes (now allowing us to avoid reverting back to the default live wallpaper when the current one is updated!), and to monitor device admin changes. Also includes a fix so you can't uninstall an .apk that is currently enabled as a device admin. Also includes a fix where the default time zone was not initialized early enough which should fix issue #2455507 (Observed Google services frame work crash). In addition, this finally introduces a mechanism to determine if the "force stop" button should be enabled, with convenience in PackageMonitor for system services to handle it. All services have been updated to support this. There is also new infrastructure for reporting battery usage as an applicatin error report.
* Show car mode notification in status bar.Tobias Haamel2010-02-181-5/+22
| | | | The notification is an ongoing event and can be used to get out of car mode.
* Switch from REMOTE_INTENT to the new push messaging, add the required ↵Costin Manolache2010-02-161-1/+1
| | | | permission.
* Introduce special UI modes for night and car usage.Tobias Haamel2010-02-111-1/+9
| | | | | | | | | | | | | | | | | | The device mode is now called ui mode. Furthermore is the order of precedence for the resources now in such a way that the ui mode needs to be specified after the orientation and before the density. The ui mode can be set, like it is done for the locale, as follows: IActivityManager am = ActivityManagerNative.getDefault(); Configuration config = am.getConfiguration(); config.uiMode = Configuration.UI_MODE_TYPE_CAR | Configuration.UI_MODE_NIGHT_ANY; am.updateConfiguration(config); To allow users to disable the car mode and set the night mode the IUiModeManager interface is used. The automatic night mode switching will be added in a separate change.
* Rename media resource broadcastsSuchi Amalapurapu2010-02-081-8/+8
| | | | | | Add checks for fwdlocked and updated system apps add more tests remove duplicate adds
* Apps on sdcard: Add new broadcastsSuchi Amalapurapu2010-02-021-1/+76
| | | | | | | | | | | | | Add new broadcasts ACTION_MEDIA_RESOURCES_AVAILABLE and ACTION_MEDIA_RESOURCES_UNAVAILABLE that get broadcast by PackageManagerService when sdcard gets mounted/unmounted by MountService so that packages on sdcard get recognized by various system services as being installed/available or removed/unavailable by the system. The broadcasts are sent before the actual package cleanup which includes mounting/unmounting the packages and we force a gc right after so that any lingering file references to resources on sdcard get released.
* Remove Intent.ACTION_GLOBAL_SEARCHBjorn Bringert2010-01-131-10/+0
| | | | | | | | | | I added Intent.ACTION_GLOBAL_SEARCH a little while ago, since I thought we needed it to be different from the old SearchManager.INTENT_ACTION_GLOBAL_SEARCH. Since GlobalSearch is no longer built, reusing SearchManager.INTENT_ACTION_GLOBAL_SEARCH should be fine. Change-Id: If3a11a77a8e1d9940cf2b20817a60888cdd9d69f
* resolved conflicts for merge of ad2fa35d to masterTom Taylor2009-12-221-46/+46
|\ | | | | | | Change-Id: Ia4362cd48ac0689b91003943a4cd9660da72ff90
| * Update imports to android-commonTom Taylor2009-12-211-46/+46
| | | | | | | | | | Several files were moved to android-common. Update all the references to import those files from the new location.
* | Fix issue #1154972: clone defined, but class doesn't implement CloneableDianne Hackborn2009-12-211-1/+1
|/
* Implement API to have new broadcasts replace existing broadcasts.Dianne Hackborn2009-12-141-3/+17
| | | | | | Use this in various places where it should serve no purpose to deliver both broadcasts. This is intended to reduce somewhat the flurry of broadcasts that we churn through during boot.
* Use unbundled QSB for global searchBjorn Bringert2009-12-091-0/+10
| | | | | | | | | | | | This obsoletes the following: - The need to run SearchDialog in the system process. - The global search mode code in SearchDialog. - The GlobalSearch package. - The search widget built into Launcher. I will remove these in future changes. Change-Id: I154386b1d6be73cfeab8376b6959a1dc5483e5f0
* Updating list of standard Intents in android.content.IntentTrevor Johns2009-12-071-1/+24
| | | | documentation.
* Add a new field to Intent that allows you to give a hint about what on ↵Joe Onorato2009-12-021-1/+68
| | | | | | screen caused the intent to be sent.
* Fix issue #2249821: Unable to start passion in safe modeDianne Hackborn2009-11-181-2/+2
| | | | | | | | Holding down the trackball now works. Also fix a little API check warning from Intent. Change-Id: Icb1f901535cb521917bf7f847a93c4ff7861d20e
* Fix issue 2242614: Wired headset not recognized: bogus "state" in ↵Eric Laurent2009-11-121-0/+1
| | | | | | | | | | | | ACTION_HEADSET_PLUG broadcast. The headset state indicated by HeadsetObserver in the broadcast intent ACTION_HEADSET_PLUG was not 0 or 1 as specified in the java doc but contained a bit field indicating the type of headset connected. Modified HeadsetObserver to broacast a state conforming to java doc. Added an extra to intent ACTION_HEADSET_PLUG to indicate if headset has a microphone or not. Removed handling of non standard headset indications from HeadsetObserver. Removed platform specific devices from output devices defined in AudioSystem. Modified AudioService to use new ACTION_HEADSET_PLUG intent extra instead of bitfield in state.
* Fix issue #2256270: Package manager sends bad broadcasts when components changeDianne Hackborn2009-11-111-7/+16
| | | | | | | Also reworks this intent protocol a little bit to be much more efficient, only requiring one broadcast per package. Change-Id: I580de4843ebd3c7f2e6df7295a2f80d2937cef7c
* Fix issue #2256032: Change CONFIGURATION_CHANGED and add a locale changed ↵Dianne Hackborn2009-11-111-0/+14
| | | | | | | | | | broadcast You can no longer receive CONFIGURATION_CHANGED in a manifest, which is really really bad (launching apps every time the screen is rotated!). A new LOCALE_CHANGED broadcast is sent that you can receive in a manifest. Change-Id: I80022375f0716db2e672382a29db3cea1af74702
* add class description and revise descriptions forScott Main2009-09-301-1/+1
| | | | | get*Drawable and peek*Drawable methods for clarity. also fix some links.
* Various fixes and improvements to window, activity.Dianne Hackborn2009-09-221-2/+8
| | | | | | | | | | | | | | | | | | | - New meta-data you can add to a dock activity to have it launched by the home key when the device is in that dock. - Fix a deadlock involving ActivityThread's internal content provider lock. - New window flag to have a non-secure keyguard entirely dismissed when a window is displayed. - New WindowManagerPolicy APIs to allow the policy to tell the system when a change it makes during layout may cause the wall paper or overall configuration to change. - Fix a bug where an application token removed while one of its windows is animating could cause the animating window to get stuck on screen. Change-Id: I6d33fd39edd796bb9bdfd9dd7e077b84ca62ea08
* Turn animations on by default.Dianne Hackborn2009-09-211-0/+12
| | | | | | | | | | | | | | | Add API to skip the animation for a particular start activity, so that a latter better one can be used. Fix Theme.NoDisplay to actually work. Fiddle with various animations: don't do a different animation for task switching, try a scale animation for switching in/out of the wallpaper. Adjust the animation duration so that at normal speed we have something more like the slower animation option (so slow is now the default). Change-Id: Ieba9f3db0bd9a762a19b327a3ecccbc7b547893d
* Fix issue #1862317: Browser does not appear to honor anchors (#es) in linksDianne Hackborn2009-09-201-5/+16
| | | | | | Also a little improved debugging output of bad resource identifiers. Change-Id: I054064ef22855608ffd722e4ccf12ce57d1992b2
* Add better APIs for the battery status, and other cleanup.Dianne Hackborn2009-09-191-14/+24
| | | | | | | Also add new configs for keeping screen on while docked, which will be used elsewhere. Change-Id: Ifaa1118f14fd850ac809895f9a5c9e8c413259b8
* Fix issue #2093608: Calendar widget takes a few seconds to launchDianne Hackborn2009-09-171-0/+7
| | | | | | | | | | | Avert your eyes! The key change here is that RemoteViews can now call a Context API to start its pending intent, which inside of the activity manager we can use to determine to cancel the timeout delay for external entities to disrupt the home screen. Change-Id: If097cf7478cbed7a3c04a304050bd7fd5703d197
* Add support for launching activities when attaching to a car or desk dock.Mike Lockwood2009-09-161-5/+20
| | | | | | | | | Categories CATEGORY_CAR_DOCK and CATEGORY_DESK_DOCK can be assigned to activities to make them launchable on docked events. This is a better mechanism than listening for ACTION_DOCK_EVENT with a broadcast receiver. Change-Id: Ic5f3ab3555ce02ca922bc31ebba41978cefe8bda Signed-off-by: Mike Lockwood <lockwood@android.com>
* Implement all of the infrastructure for configuring wallpapers.Dianne Hackborn2009-09-071-1/+11
| | | | | | | | | | Actually being able to configure a wallpaper relies on additional work in the launcher and wallpapers that will be in another change. Also note that this breaks all existing wallpapers, since they now need to include a meta-data item about themselves. This also will be fixed in another change. Change-Id: I97d2c2bd07237abc32f92b9147c32530a2f73c71
* Add more documents on the ACTION_SEND_MULTIPLE intent.Chih-Chung Chang2009-09-041-0/+10
| | | | Change-Id: Ic3d7b74299611158470b729be654fbadde1691ff
* Add better service reporting.Dianne Hackborn2009-09-031-0/+18
| | | | | | This will be used elsewhere. Change-Id: Id561fa7fed5eb65446312cb697813483903d33a6
* Make new attribute EXTRA_CHANGED_COMPONENT_NAME inSuchi Amalapurapu2009-09-021-1/+1
| | | | | | broadcast intent ACTION_PACKAGE_CHANGED public so that apps like launcher can find out the changed component name when loading changes made in components.
* For intent ACTION_PACKAGE_CHANGED, there could be a lot of broadcasts ↵Suchi Amalapurapu2009-09-021-0/+10
| | | | | | | | | | | | | | | | related to enabling/disabling components by apps which could result in thrashing on the PackageManager. For apps that do not want to be restarted when such a broadcast is sent, we can just aggregate these broadcasts and handle them at one go. Changes include: New structure to hold pending broadcasts by class name. If a component is enabled or disabled frequently aggregate component enabled/disabled settings in this structure in a 10 second window and then send out the accumulated list of broadcasts to the ActivityManager. A new Handler implementation handles this message Add new attribute name EXTRA_CHANGED_COMPONENT_NAME in broadcast intent Intent.ACTION_PACKAGE_CHANGED for additional information for apps like Launcher. Rename a couple of parameters, the names were too jarring.
* Make SINGLE_TOP work with CLEAR_TOP.Dianne Hackborn2009-08-271-3/+5
| | | | Change-Id: Ie98b491dc4b1a2ae5e8fc8452c6410597bc9676b
* Change these string constants back to match donut.Dianne Hackborn2009-08-271-3/+3
| | | | | | | Unfortunately we are stuck with the donut ones, can't change these in Eclair to be the more correct names. Change-Id: Id8aaa2e90cd21631b18a36bea3755a63d0e6d577
* Implement issue #2071750: add a pre-boot upgrade step.Dianne Hackborn2009-08-251-1/+19
| | | | Change-Id: I7133a03a6bf302dbac00c5f8b0420071d2453f89
* Fix some Javadoc typos.Mike Lockwood2009-08-241-3/+3
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* Dock changes:Docking station intentsDan Murphy2009-08-171-0/+39
| | | | | | | | | | | | | | | | | | Docking station intents for dock switch driver. Add DockObserver and updated Intent.java and systemserver.jave Signed-off-by: Dan Murphy <D.Murphy@motorola.com> modified: core/java/android/content/Intent.java new file: services/java/com/android/server/DockObserver.java modified: services/java/com/android/server/SystemServer.java Docking station updates Add constants for the dock Signed-off-by: Dan Murphy <D.Murphy@motorola.com> Signed-off-by: Mike Lockwood <lockwood@android.com>
* Add Activity Intent.ACTION_REQUEST_SHUTDOWN for requesting a system shutdown.Mike Lockwood2009-07-301-0/+19
| | | | | | | The Intent.EXTRA_KEY_CONFIRM extra can be set to require user confirmation before shutting down. The ACTION_REQUEST_SHUTDOWN Intent is protected by android.permission.SHUTDOWN. Signed-off-by: Mike Lockwood <lockwood@android.com>
* am 2bad713f: Merge change 8860 into donutAndroid (Google) Code Review2009-07-301-46/+0
|\ | | | | | | | | | | | | Merge commit '2bad713f31d642d5350949b90b3abe00fbd9ca55' * commit '2bad713f31d642d5350949b90b3abe00fbd9ca55': Fix bug 2017664
| * Fix bug 2017664Jean-Michel Trivi2009-07-291-46/+0
| | | | | | | | | | | | | | | | | | Removed the TTS_ prefix in the TextToSpeech class to follow the standard naming convention. Moved the TTS-related intents from the Intent class to TextToSpeech and TextToSpeech.Engine. Renamed the TextToSpeech.Engine constants that are used as extras for the ACTION_TTS_CHECK_TTS_DATA intent to prefix them with EXTRA_. Cleaned up the other TextToSpeech.Engine constant to remove superfluous mentions of "TTS" in the name.
* | resolved conflicts for merge of f0d83fd9 to masterDianne Hackborn2009-07-281-1/+1
|\ \ | |/
| * Updates from API review.Dianne Hackborn2009-07-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * AccessibilityService -- document onBind() to not be implemented. * GestureLibrary.getLearner() -- needs to be hidden. * IntentSender -- remove protected constructors, document that it is retrieved from a PendingIntent. * Hide permissions: SHUTDOWN, STOP_APP_SWITCHES. * Context -- hide BACKUP_SERVICE. * ContextWrapper -- hide getSharedPrefs bla h blah * Intent.parseUri() -- fix docs. * ApplicationInfo.FLAG_TEST_ONLY?!? * Hide MockContext.getSharedPrefs blah blah
* | am 43f8d2e5: Merge change 8106 into donutAndroid (Google) Code Review2009-07-211-0/+3
|\ \ | |/ | | | | | | | | | | Merge commit '43f8d2e58ce75d1705ad3ee347ae4eaee5dc9b6a' * commit '43f8d2e58ce75d1705ad3ee347ae4eaee5dc9b6a': Add note to Intent.fillIn javadoc to describe component copying behavior.
| * Add note to Intent.fillIn javadoc to describe component copying behavior.Brett Chabot2009-07-211-0/+3
| |
* | resolved conflicts for merge of 3e522c45 to masterCharles Chen2009-07-171-10/+47
|\ \ | |/
| * Adding public intents for TTS to enable checking for TTS data,Charles Chen2009-07-161-2/+39
| | | | | | | | | | installing TTS data, and finding out when the TTS queue has finished processing.
* | Merge commit 'goog/readonly-korg-master' into merge_korg_masterJean-Baptiste Queru2009-07-161-7/+7
|\ \ | | | | | | | | | | | | | | | * commit 'goog/readonly-korg-master': Fixed Android issue #400, where the Intent documentation was inaccurate in a number of places, undoubtedly causing untold grief to innumerable masses. Bug Fixed for libagl.
| * | Fixed Android issue #400, where the Intent documentation was inaccurate in a ↵Yusuf T. Mobile2009-07-101-7/+7
| | | | | | | | | | | | number of places, undoubtedly causing untold grief to innumerable masses.
| * | Merge commit 'korg/cupcake'The Android Open Source Project2009-04-141-1/+31
| |\ \
| | * | AI 145561: Fix issue #1710534 (documentation doesn't mention that activity ↵Dianne Hackborn2009-04-091-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | resolver (and others) handle MIME types as case-sensitive). BUG=1710534 Automated import of CL 145561
| | * | AI 145383: API review: clean up a bunch of @hides that have been pending API ↵Dianne Hackborn2009-04-091-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | review. Either expose them, or official hide them with an explanation for why. BUG=1779439 Automated import of CL 145383
* | | | am cf29e116: Merge change 6867 into donutAndroid (Google) Code Review2009-07-121-3/+0
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | Merge commit 'cf29e116129f38309c18ba14b9893b079a712289' * commit 'cf29e116129f38309c18ba14b9893b079a712289': CLOSE_SYSTEM_DIALOGS can't be protected.