summaryrefslogtreecommitdiffstats
path: root/core/java/android/app
Commit message (Collapse)AuthorAgeFilesLines
* Add manifest API to request a large heap.Dianne Hackborn2011-01-162-2/+8
| | | | | | | | | | | | You can now do android:largeHeap="true" on an application. Doesn't yet do anything, waiting for Dalvik API. Also tweak package parsing so that the SDK API level is set in the configuration, allowing manifest resource value selection based on that. Change-Id: I6e035f9702a97b055416743b88f83a22ba4a9584
* cherrypick Change-Id: I1365c6c45f8e1f75ee4afbc52c32778d21b97be4 from masterScott Main2011-01-141-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | docs: Rewrite of App Fundamentals.. Part 2. This introduces three new docs: Services: Provides an introduction to using services and describes the service lifecycle (previously in the "Component Lifecycles" section of the fundamentals.jd document) Bound Services: A guide for services that offer binding. AIDL: A doc about using AIDL (primarily for creating a service interface) Also includes edits to IntentService javadocs to clarify different behaviors for some callback methods Includes a new version of the services lifecycle diagram and an additional diagram for determining onRebind() These files are orphaned for now---they're not linked in the sidenav, until I get the last couple documents submitted for the app fundamentals. Change-Id: I7fb0a8faff1f18b7d6b9a7b59f66f55a1b6168f1
* Merge "Add the {get,set}PackageObbPaths calls to API" into honeycombKenny Root2011-01-141-2/+12
|\
| * Add the {get,set}PackageObbPaths calls to APIKenny Root2011-01-141-2/+12
| | | | | | | | | | | | | | Add getPackageObbPaths() and setPackageObbPaths() to the public API. Bug: 3214719 Change-Id: I8627b5f674a795d5780eb5c08911419110670a41
* | Add Holo theme for IMEs.Dianne Hackborn2011-01-141-26/+6
|/ | | | | | Also clean up theme selection code to get rid of duplication. Change-Id: Idf7b21db70ee83fce24756ead877169bd08b77a9
* API changes to support encryption in DPMAndy Stadler2011-01-123-2/+123
| | | | | | | | | | | | | | * New uses-policies value * Definitions for storage domain and encryption status * API to get and set encryption status * Intent to launch encryption changes * Both new calls bottom out in the DPM service and are suitable for a device that does not support encryption. NOTE: Nobody should use ACTION_START_ENCRYPTION yet. It needs a receiver to be built in Settings (different CL). Change-Id: I2ae193bedbec59f6ba46c0ec7de12ecf321e5803
* Fix null crash when fragments go away during animationsChet Haase2011-01-121-1/+3
| | | | Change-Id: I239cabce3ce322fcc3f1246486b4bf05f0dd322b
* Merge "Possibly fix bad notification updates." into honeycombJoe Onorato2011-01-121-1/+9
|\
| * Possibly fix bad notification updates.Joe Onorato2011-01-121-1/+9
| | | | | | | | | | | | | | | | | | I think what was happening is that it was using a different layout but we were trying to reapply the RemoveViews because of some bad boolean logic. This fixes that, and adds some better debugging that might show us what else is happening. Bug: 3298062 Change-Id: I0984f24cb2960166c79b9f2cc7c6a98bd75e17ba
* | Make ProgressDialog a little less lame.Dianne Hackborn2011-01-121-16/+45
|/ | | | Change-Id: Ic3f1dd8ba32dd02d422ee6f05fff5541e54bb8a1
* Add "min size" facility to the Window class.Dianne Hackborn2011-01-121-10/+0
| | | | | | | | | | | | | | | | | | | | | | | This allows us to have a new dialog theme that behaves like an alert dialog for both Dialog and Activity versions. Very useful with so many more things being displayed as dialogs on our nice large screen. Note I didn't change the existing dialog themes to have this behavior, since it will probably break things. Instead there is a new variation. And the DialogWhenLarge variations now use this for their dialog form, to fix many of the real new dialogs we have that need this behavior. Removed the public definition of the one alert dialog theme. None of the others have ever been public, this one shouldn't be. Added new .Panel versions of the Holo themes, like we already had for the original themes. Changed the alert dialog layout to no longer use WeightedLinearLayout, since the window now takes care of that. This allowed for the removal of the xlarge version of those layouts. Change-Id: I0c8372bde25eb9af47404a719b3f07230baf73bf
* Add ActivityManager#isRunningInTestHarness() public API.Brett Chabot2011-01-091-0/+7
| | | | | | | | | Replaces use of ro.monkey system property. This new API is controlled by ro.test_harness. Bug 3329873 Change-Id: Idb5bbbd9ca691976ef842eec681be34c29915976
* Implement issue # 3255887 could CursorLoader offer...Dianne Hackborn2011-01-084-41/+10
| | | | | | | | | | | | | | | | | | ...to throttle contentobserver-based requeries Why yes, I guess it could. This also reworks AsyncTaskLoader to not generate multiple concurrent tasks if it is getting change notifications before the last background task is complete. And removes some of the old APIs that had been deprecated but need to be gone for final release. And fixes a few little problems with applying the wrong theme in system code. Change-Id: Ic7a665b666d0fb9d348e5f23595532191065884f
* Fix bug 3245465 - Themed dialog iconsAdam Powell2011-01-081-1/+24
| | | | | | | | | Added light/dark versions of holo dialog icons. Apps using AlertDialogs that wish to use the system dialog icon should use setIconAttribute(android.R.attr.alertDialogIcon) instead of setIcon(android.R.drawable.ic_alert_dialog). Change-Id: I40793a3164478be5ffa045ededfcab8210753a4b
* Add dispatch key shortcut window callback.Jeff Brown2011-01-052-2/+63
| | | | | | | | Enables Activities and Dialogs to implement key shortcut behavior. Useful for global key shortcuts that are not bound to the focused view or to a menu. Change-Id: If377d20b227ee1c5cac84c47c9630b2d77f67e2c
* resolved conflicts for merge of 3a2c6bf0 to masterBrad Fitzpatrick2011-01-051-1/+1
|\ | | | | | | Change-Id: I1963d8fc391bb84de1054f2b20ce4e082d764cbe
| * am 69ea4e15: Documentation fixes found over vacation hacking.Brad Fitzpatrick2011-01-051-1/+1
| |\ | | | | | | | | | | | | * commit '69ea4e15e52c456537575d21443ac1efdb03a902': Documentation fixes found over vacation hacking.
| | * Documentation fixes found over vacation hacking.Brad Fitzpatrick2011-01-051-1/+1
| | | | | | | | | | | | Change-Id: I28900026465d66d950cf4f05f0c202b46c3c2d43
* | | Revisiting ActionBar API and layout.Adam Powell2011-01-051-1/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix several bugs where ActionBar was ignoring LayoutParams in action views. Add convenience methods for toggling display options flags. Add layout resource version of ActionBar#setCustomView Fix a bug preventing actionViewClasses from being loaded properly in menu xml. Change-Id: I0d9a0b635fd9cfc020bac69369c0c7749c226349
* | | Notification.Builder.setAutoCancel() was setting the wrong flag.Joe Onorato2011-01-041-1/+1
| | | | | | | | | | | | | | | Bug: 3306725 Change-Id: I84908fd3ac2cf9a4ce164179620c33df907d018f
* | | When the number field on a notifications is >100, just say "100+" instead of ↵Joe Onorato2011-01-041-2/+7
| | | | | | | | | | | | | | | | | | | | | listing the number. Bug: 3271445 Change-Id: Id5704cc5cba770b918c974eeec8f9ffb3f294450
* | | Some new API cleanup.Dianne Hackborn2011-01-041-15/+17
| | | | | | | | | | | | | | | | | | | | | | | | - Tweak Fragment docs to match new sample code. - Make some new attributes public. - Hide all of the XmlAdapter stuff, since it is not actually being used. Change-Id: Iae2062f91d1ca0c6b1d656ae948417d3d048482f
* | | Merge "Few little fragment, wm tweaks."Dianne Hackborn2011-01-042-1/+5
|\ \ \
| * | | Few little fragment, wm tweaks.Dianne Hackborn2011-01-042-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Deal with fragments being restored when their containing view is gone. Try to put in a black background during rotation. Currently commented out because it appears to cause surface flinger to hang. Change-Id: I150d061e64488356d17513f4e2d124d7c3d04f6b
* | | | Again maybe fix issue #3169193...Dianne Hackborn2011-01-031-2/+5
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | ...com.google.android.youtube: java.lang.NullPointerException at com.google.android.youtube.async.UserAuthorizer$3.onCancel(UserAuthorizer.java:324) Only perform one cancel callback for a particular start of the dialog. Change-Id: Ib448fcae2489a63c9b63affdc518658447e90920
* | | Minor fix to previous fragment change: non-animating caseChet Haase2010-12-281-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | The previous change only hid the fragment when the transition animation ended. But if there is no animation, the fragment would never be hidden. This change adds an else clause that handles the non-animating case. Change-Id: Ie35b2ae98cb5c21193dadefbef71b8542fcf5f7d
* | | Delay hiding fragments until transition finishesChet Haase2010-12-281-1/+9
| | | | | | | | | | | | Change-Id: I616de20e7e161fe1a53cd5e72912cec48f078df5
* | | Fix NPE pointed out by Chet.Dianne Hackborn2010-12-281-1/+2
| | | | | | | | | | | | Change-Id: Id421476aa6f6ff281054b435ecd09f932966305c
* | | Possible fix to issue #3213749: NPE at...Dianne Hackborn2010-12-282-30/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...android.app.Fragment.startActivityForResult(Fragment.java) Make sure to remove all pending messages when AbsListView is detached from its window. But... that's not enough. It turns out that when a fragment's views are animating away, they of course don't get detached until after the animation is done. However the fragment itself is immediately destroyed, leaving its live views still going after that. Here's a possible solution: when fragment manager initiates an animation on a fragment whose views are being removed, it makes note of that so it can hold off on destroying the fragment until the animation is over. There are a lot of interesting race conditions here, if further operations happen on the fragment while it is being animated. I think the code here does something sensible, and it does seem to work for the situations I have tested, but it is hard to know all of the edge cases that may happen. Change-Id: I4490ce8862a9bb714c7ea54baca3072c62126388
* | | Adding APIs for setting whether to show week number and setting the start ↵Svetoslav Ganov2010-12-281-10/+4
| | | | | | | | | | | | | | | | | | day of week. Cleaned up the code a bit. Change-Id: Iaa7154c6912a68cd91df3ac881c324096394ea24
* | | Add some standard definitions for device heaps.Dianne Hackborn2010-12-231-0/+22
| | | | | | | | | | | | | | | | | | | | | These can be included as desired by particular devices to configure their Dalvik heap in a standard way. Change-Id: I487c751d7c583b0e93552f16ab43a93314219778
* | | Correctly save Activity's state in saveInstanceStateMartin Hibdon2010-12-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this change, saveInstanceState would call directly to Activity.onSaveInstanceState(), rather than performSaveInstanceState(). This meant that saveManagdDialogs() was not called, so Activities running under a LocalActivityManager do not get their dialogs restored on configuration changes. Change-Id: Id45110a8716a86958c14f4b1ea5a84c9cdf107f1
* | | 3298147 DatePicker dialog does not provide mechanism for specifying range ↵Svetoslav Ganov2010-12-221-1/+22
| | | | | | | | | | | | | | | | | | from which to select Change-Id: Ib5dd7db90ccc5b4d984914c481118049ac3648fe
* | | Fix issue #3301572: onCreateLoader must not be a member class: ↵Dianne Hackborn2010-12-211-14/+20
| | | | | | | | | | | | | | | | | | | | | | | | VolumeMetadataLoader Also some various cleanup. Change-Id: I8e8616a86c50c86817f7ec9bb02a5954c1ccd84f
* | | More cleanup of Loader APIs.Dianne Hackborn2010-12-203-50/+90
| | | | | | | | | | | | | | | | | | | | | | | | - Remove old method names. - Introduce onXxx() hooks to Loader. - Improve debugging. Change-Id: I3fba072a05c7023aa7d2c3eb4e126feb514ab6d8
* | | if a download dir doesn't exist, create it or fail fastVasu Nori2010-12-191-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in HC, using DownloadManager public API, download directories named by the constants Environment.DOWNLOAD_* may ot exist. theyneed to be created or the download request should fail ASAP. bug:3297328 Change-Id: Ic87023d8fe98bd240744f66607a5400b7825e17e
* | | Merge "Some fixes to the new loader management."Dianne Hackborn2010-12-171-2/+12
|\ \ \
| * | | Some fixes to the new loader management.Dianne Hackborn2010-12-171-2/+12
| | | | | | | | | | | | | | | | Change-Id: Ib882be5762b0ebeed9b027754159f401232718e9
* | | | Bug 3191746. atePicker TimePicker: Dark theme is used in a Light theme appSvetoslav Ganov2010-12-173-11/+2
|/ / / | | | | | | | | | Change-Id: I20d0cca3b78af9db80854a57c88d6cab3b00f555
* | | Fixes for when onLoaderReset() is called.Dianne Hackborn2010-12-161-1/+6
| | | | | | | | | | | | Change-Id: Iab479926f11fa579757904032ada46c41686d560
* | | Fix issue #3272082: Contacts: when going back from edit view,Dianne Hackborn2010-12-162-223/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | list UI is not ready yet This involves some reworking of Loaders. Loaders, in particular CursorLoader, are now expected to retain their current data after being stopped. This allows applications to keep that data across onStop() -> onStart(), so when the user returns to the app it doesn't have to wait for the data to reload and thus cause flicker. This includes various API changes to better reflect the new semantics, plus a new LoaderCallbacks method to tell the application when it is actually time to stop their use of a loader's data. Note this is somewhat half-done, to help checking in the extensive application changes that are required without causing build breakage. Change-Id: Ib4b3bf8185a6da46e7f06ca125521d65e2e380a1
* | | Fix launching of activities that I broke.Dianne Hackborn2010-12-151-7/+6
| | | | | | | | | | | | Change-Id: I39f4189bad6bdecdc7f9362410f36453fd816121
* | | Time to remove some old APIs!Dianne Hackborn2010-12-142-1/+4
| | | | | | | | | | | | Change-Id: I73ca23b0d5c7971a00dfa05357f9b630d9b6ebc8
* | | Merge "bug:3264401 changes to support usage of new downloads dir in /data"Vasu Nori2010-12-141-1/+24
|\ \ \
| * | | bug:3264401 changes to support usage of new downloads dir in /dataVasu Nori2010-12-141-1/+24
| | | | | | | | | | | | | | | | Change-Id: I209a624523f727d47a4a8f758c13df5d4eac614f
* | | | Merge "Fix Dialog generating multiple onCancel()."Dianne Hackborn2010-12-142-3/+3
|\ \ \ \
| * | | | Fix Dialog generating multiple onCancel().Dianne Hackborn2010-12-142-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #3169193: com.google.android.youtube: java.lang.NullPointerException at com.google.android.youtube.async.UserAuthorizer$3.onCancel(UserAuthorizer.java:324) A little protection against calling onCancel() after a dialog has been dismissed. Change-Id: I7a64c94703da012ce303308563e4a8ed3cb125d3
* | | | | Merge "Work around issue #3241701: crash in ↵Dianne Hackborn2010-12-141-0/+6
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | ActivityThread.handleWindowVisibility"
| * | | | | Work around issue #3241701: crash in ActivityThread.handleWindowVisibilityDianne Hackborn2010-12-141-0/+6
| |/ / / / | | | | | | | | | | | | | | | Change-Id: I9d5df3605f3d216e651e0a294409f82dea3968ad
* | | | | Add MODE_MULTI_PROCESS flag to Context.getSharedPreferences()Brad Fitzpatrick2010-12-141-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, changes to make this testable with CTS: -- special PENALTY_DEATH StrictMode fast path that doesn't use the Looper idling to "time" the violation. Only used when death is the only violation, -- make PENALTY_DEATH throw a RuntimeException instead of killing its process with a signal. this means we can catch it in CTS tests, but it's also more consistent with PENALTY_NETWORK_DEATH in Honeycomb. -- make FileUtils.getFileStatus() invoke StrictMode, which isn't (yet?) aware of I/O in native code. so help it out. CTS test for MODE_MULTI_PROCESS is in I6154edab Change-Id: Icf93f9dfb0ece06b16781e4803dd2c17df3cf1b3