History log of /frameworks/base/core/java/android/app/Activity.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5f8e42f7f0767837f2e91ee48d97ccc8dbc626f2 17-May-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Adde back check to make sure Activity.recreate() is called on main thread." into pi-dev
0527d9129d889a1947ab6a18ad6c5b9d5adce2da 17-May-2018 Wale Ogunwale <ogunwale@google.com> Adde back check to make sure Activity.recreate() is called on main thread.

Change-Id: Id8fa7e1c17ee3d42a19c82dc8cc1fec2de1757d1
Fixes: 79703568
Test: Existing test pass.
/frameworks/base/core/java/android/app/Activity.java
d247de85bb7d36ff5d3d232d6d4d2d3d1eeedec2 15-May-2018 Felipe Leme <felipeal@google.com> Don't call setAutofillClient() on base Context if it's null.

Test: atest CtsAutoFillServiceTestCases
Test: changed activity on autofill sample to override attachBaseContext() by
calling super.attachBaseContext(null) - the activity still crashes, but
not on attachBaseContext().

Fixes: 79707861

Change-Id: Idfaa9c596cc338ab815441138ce06ba64cd3b4d2
/frameworks/base/core/java/android/app/Activity.java
320e3b546f9b87c69c553326894399ea64bd34b1 04-May-2018 Andrii Kulian <akulian@google.com> Schedule local activity relaunch

If local activity relaunch is executed immediately, and if
recreate() was called from a lifecycle callback, then existing
instance of activity will be destroyed while ActivityThread may
continue using it to finish performing a transaction item.
To remove this double lifecycle loop we now schedule local activity
relaunch on client thread instead of executing it immediately.
It worked in similar way until changes in b/30060825.

Bug: 78576150
Bug: 64610483
Bug: 30060825
Test: ActivityLifecycleTests
Change-Id: Ic0cef229f2f9df0fa40066d8540c4b29da7bdc58
/frameworks/base/core/java/android/app/Activity.java
e55b009a3d3dbdef759704e0a5fce086d2e3a76e 20-Apr-2018 Andrii Kulian <akulian@google.com> Don't require post-execution state for onActivityResult

According to the documentation, onActivityResult() should be called
immediately before onResume(). This, however, was not always the case
in previous releases and fixing this caused some app compatibility
issues.
This CL removes required post execution state for ActivityResultItem.

Bug: 77695691
Test: ActivityLifecycleTests
Change-Id: Id8c02e9b49f9758aac616e37948570722d802de8
/frameworks/base/core/java/android/app/Activity.java
9a2d959eff3bb321fa91f19cbcf5d46c186ac484 29-Mar-2018 Joshua Baxter <jbax@google.com> Merge "docs: fixed a couple of typos" into oc-mr1-dev
am: 651ffd426c

Change-Id: Ie6fb97aae76637023657d751f6ad0ebbc74ff284
9a841a65190a3b825cfe738ebcd4afaaf99e07ff 27-Mar-2018 Joshua Baxter <jbax@google.com> docs: fixed a couple of typos

Test: make ds-docs

Bug: 36948822
Bug: 36946883

Change-Id: I4de699dc7d5a69e456b0656de890f76b9787aafa
/frameworks/base/core/java/android/app/Activity.java
fdffe0a8be838afb3b0a8cc18a71e35e9631bbef 20-Mar-2018 kopriva <kopriva@google.com> docs: fixing typo, bug 36909553
am: 4dddc63ee7

Change-Id: Ib943321651422b55b928b90617145a871a0d0460
4dddc63ee7c09f5ef243591700502160c08dc337 19-Mar-2018 kopriva <kopriva@google.com> docs: fixing typo, bug 36909553

Test: make ds-docs

Bug: 36909553
Change-Id: I6e6842fe555690d97b954c370b777b25c6f5e54e
/frameworks/base/core/java/android/app/Activity.java
ee83dd2cd04387852997aa4c2cf66120612b9cb5 13-Mar-2018 Andrii Kulian <akulian@google.com> Merge "Don't throw exception for duplicate resume" into pi-dev
dfbf9716882f8237e22431b30a89d8dd6b1183fa 09-Mar-2018 Andrii Kulian <akulian@google.com> Don't throw exception for duplicate resume

A double resume request is possible when an activity receives two
consequent transactions with relaunch requests and the second is one
is omitted. We still get two resume requests for the final state.

Fixes: 74074327
Test: FrameworksCoreTests:ActivityThreadTest
Change-Id: I8bb8594948a17b7fbf595a49026ff33b54b66049
/frameworks/base/core/java/android/app/Activity.java
476edc8148a4b13b81062b51e37de7f6cabb1286 12-Mar-2018 Bryce Lee <brycelee@google.com> Update documentation for Activity#onCreate.

The current description incorrectly states #onDestroy will be called
immediately when invoking #finish during #onCreate.

Change-Id: I816a54457d7aca0b40feac9a5656d94f7e712c76
Fixes: 69144863
Test: comment update.
/frameworks/base/core/java/android/app/Activity.java
bebfcc46a249a70af04bc18490a897888a142fb8 12-Feb-2018 Adam Lesinski <adamlesinski@google.com> Refactor AssetManager

Bug: 64071469
Test: atest CtsContentTestCases
Change-Id: Ia6856157e8813856268fba003e1e591d690cb26e
/frameworks/base/core/java/android/app/Activity.java
ac5cecd85db9e1bf6e358748e9c77324978ff922 05-Dec-2017 Erik Wolsheimer <ewol@google.com> Explicitly do not support SEARCH_SERVICE on UI_MODE_TYPE_WATCH

Bug: 69950606
Change-Id: Ia195e88d8652cd7875d0ce03875034698367001c
(cherry picked from commit 980ba14b921932e85cdc0447af0398778a1c0d64)
/frameworks/base/core/java/android/app/Activity.java
6dcc9de2feebf2130f15fefd7b096b221e91bbf8 23-Feb-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "New APIs to let app developers manage autofill semantics when reusing views."
09571f89435f3639a747cf4a7a0705b494c7a93e 23-Feb-2018 Dake Gu <dake@google.com> Merge "autofill: pass keyevent from fillui to app"
9a33438cd1f86cf79c28682a25b2db515ca7dcd0 22-Feb-2018 Andrii Kulian <akulian@google.com> Merge "Improve AM lifecycle event logs"
42b9793d0ff3dbcdcb3b76cec6cdd370a63ce5c8 20-Feb-2018 Felipe Leme <felipeal@google.com> New APIs to let app developers manage autofill semantics when reusing views.

From the Autofill workflow point of view, each view has an unique AutofillId
that is used to semantically, semantically identify the view. Currently, once
the View's AutofillId is set it cannot be changed, which make it hard to reuse
views for optimization (for example, in a RecyclerView).

This change introduces 2 new APIs (View.setAutofillId() and
Activity.getNextAutofillId()) that let app developers reuse views without
breaking their logical autofill semantics.

Fixes: 73555342

Test: atest CtsAutoFillServiceTestCases:MutableAutofillIdTest
Test: atest CtsAutoFillServiceTestCases

Change-Id: I35fe07b10657f17d7b260f90f578ca7a13782a18
/frameworks/base/core/java/android/app/Activity.java
5527a50ad4f02fb2b7d57eeb942a6ee3d81b2f38 21-Feb-2018 Wale Ogunwale <ogunwale@google.com> Fixed issue with relaunching activity in the stopped state

- Cycle activity back to the stopped state if relaunched while the
activity is in the stopped state.
- Also, process Activity.recreate() request locally. After the
activity life cycler changes/clean-up we no longer need to request
the relaunch from the server since it is much easier now to cycle
the activity back to its previous state without help from the server
side.

Change-Id: Ie63420361a50d3dee2cbbcc2bbd34f3099c93996
Fixes: 64610483
Test: atest CtsActivityManagerDeviceTestCases:ActivityLifecycleTests
/frameworks/base/core/java/android/app/Activity.java
d25680cb3d7fd8384ef4576589131407ca1782bd 22-Feb-2018 Andrii Kulian <akulian@google.com> Improve AM lifecycle event logs

Add missing lifecycle event logs and provide more detailed
reasons.

Test: Open and switch between apps, observe lifecycle event logs
Change-Id: I403c8d84afec9c950ea3a8fc88600cf554e015f4
/frameworks/base/core/java/android/app/Activity.java
6a20a194dd965c66d620d6e6dd0abbabd9ca6360 08-Feb-2018 Dake Gu <dake@google.com> autofill: pass keyevent from fillui to app

Since autofill window was made to have window focus, app lost the
ability to accept physical keyboard typing. User can no longer
type on physical keyboard to filter autofill result.

This CL dispatches unhandled keyevent(e.g. A/B/C) from autofill
window to app ViewRootImpl in a similar way InputMethodService
dispatches keyevent to app's ViewRoot.

The unhandled key is sent to app window's ViewRootImpl
PreImeStage so that the keystroke could be translated to CJK by IME.

This CL does not affect fullscreen autofill window for TV where app
window is fully covered: user has to close fullscreen autofill window
first.

Bug: 72951156
Test: atest CtsAutoFillServiceTestCases:LoginActivityTest

Change-Id: I8e50cfdfe8d5691d2b248d85f924c38488ca30f4
/frameworks/base/core/java/android/app/Activity.java
47b37aa03480837a7cbbce8a1201554e102fd781 16-Feb-2018 Svet Ganov <svetoslavganov@google.com> Minor autofill changes to support compat mode CTS tests.

Bug: 72811561
Test: atest CtsAutoFillServiceTestCases:VirtualContainerActivityCompatModeTest

Change-Id: I6ec2563cea75afc77a1598805988d8e6c433c574
/frameworks/base/core/java/android/app/Activity.java
5b32ebe4df8afdee1ef3a30efbe7782aff20d3e3 15-Feb-2018 Felipe Leme <felipeal@google.com> Improved Autofill logging.

Test: manual verification
Bug: 73172668

Change-Id: I8c77f2a792f3195efa44f44a4c9888c355eaee3c
/frameworks/base/core/java/android/app/Activity.java
66f75f9ce1bd203ba2e52b2f8db51b27cdceb04a 15-Feb-2018 David Brazdil <dbrazdil@google.com> Merge "Update hidden API toast message" am: 10034d94cf am: 42ab3eeb4c
am: 0a6ca96902

Change-Id: I2cc692827716043e0f9065c9c1be932642ed5856
0a6ca96902c86d3c5ffd18347db7ee3a240cc6c1 15-Feb-2018 David Brazdil <dbrazdil@google.com> Merge "Update hidden API toast message" am: 10034d94cf
am: 42ab3eeb4c

Change-Id: I6c82dc811f3118733d3afffa7ddb6d5016d4f075
5234d559b47ed034ed0abc104a3597b5169b18db 14-Feb-2018 David Brazdil <dbrazdil@google.com> Update hidden API toast message

Change the toast message shown by an Activity when VMRuntime reports
that the app has used a private API.
(a) fix a typo: compatiblity -> compatibility
(b) change guidance from "please consult log" to "go to <url> for
more info" where devs can learn how to proceed if their app does
have compatibility issues.

Bug: 64382372
Test: make, visual
Change-Id: Idbe32a724438bb7b0826d0b4e11ef505015cb321
/frameworks/base/core/java/android/app/Activity.java
4357d119af6a070611c8a3b4bc5c3795eb6acc31 14-Feb-2018 Wale Ogunwale <ogunwale@google.com> Remove Activity#setDisablePreviewScreenshots from system API

Change-Id: Ie106fb77f4645cc0c9061f4b6f7a4546711e5cb3
Bug: 73250551
Test: N/A
/frameworks/base/core/java/android/app/Activity.java
578b3bd59dcdb04f0b3415b4c9fd806eef25a0ea 13-Feb-2018 Wale Ogunwale <ogunwale@google.com> Deprecated onCreateThumbnail

API hasn't done anything in the platform for ages and there is not plan
to make it do anything.

Change-Id: I7d433a0d45aed860659c311381bc9f356eb9f986
Fixes: 73249948
Test: builds
/frameworks/base/core/java/android/app/Activity.java
56c82be0d4075a434217a0d56be8e6544fb05a96 09-Feb-2018 Adam Lesinski <adamlesinski@google.com> Revert "Make idiomatic use of ApkAssets and AssetManager"

This reverts commit 633085456e5047e16e53da6c95e193e2a0189633.

Bug: 73134570
Change-Id: I7c5171e752dd178dcd64497a780ba0f97d03b7a0
/frameworks/base/core/java/android/app/Activity.java
633085456e5047e16e53da6c95e193e2a0189633 02-Dec-2017 Adam Lesinski <adamlesinski@google.com> Make idiomatic use of ApkAssets and AssetManager

Move away from using deprecated addAssetPath methods
and cache the instances of ApkAssets created.

Test: CTS passes
Change-Id: Ie95cd5a9e205a35806e7b142df5af02aa90d83ca
/frameworks/base/core/java/android/app/Activity.java
1bb9f29909016aa3be7ebe7ef52558d219696186 05-Feb-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Autofill compatibility mode."
24c90450fe3fe097a7bca51edd6a4cffd8fd13aa 28-Dec-2017 Svetoslav Ganov <svetoslavganov@google.com> Autofill compatibility mode.

Autofill helps users fill credentials, addresses, payment methods,
emails, etc without manually typing. When focus lands on a fillable
element the platform captures a snapshot of the screen content and
sends it to an autofill service for analysis and suggestions. The
screen snapshot is a structured representation of the screen content.
If this content is composed of standard widgets, autofill works
out-of-the-box. However, some apps do their own rendering and
the content in this case looks like a single view to the platform
while it may have semantic structure. For example, a view may render
a login page with two input test fields.

The platform exposes APIs for apps to report virtual view structure
allowing autofill services to handle apps that have virtual content.
As opposed to apps using standard widgets, this case requires the app
developer to implement the new APIs which may require a fair amount
of code and could be seen as a processes that could take some time.
The most prominent typs of apps that fall into this category are
browsers.

Until most apps rendering virtual content and specifically browsers
don't implement the virutal APIs, autofill providers need to fall-
back to using the accessibliity APIs to provide autofill support
for these apps. This requires developers to work against two sets
of APIs - autofill and accessibility - which is incovenient and error
prone. Also, users need to enable two plugins - autofill and
accessibility which is confusing. Additionally, the privacy and
perfomance impact of using the accessibility APIs cannot be addressed
while autofill providers need to use thes APis.

This change adds an autofill compatibility mode that would allow
autofill services to work with apps that don't implement the
virtual structure autofill APIs. The key idea is to locally enable
accessibility for the target package and remap accessibility to
autofill APIs and vise versa. This way an autofill provider codes
against a single set of APIs, the users enable a single plugin,
the privacy/performance implications of using the accessibility
APIs are addressed, the target app only takes a performance hit
since accessibility is enabled locally which is still more efficient
compared to the performance hit it would incur if accessibility is
enabled globally.

To enable compatibility mode an autofill service declares in its
metadata which packages it is interested in and also what is
the max version code of the package for which to enable compat
mode. Targeted versioning allows targeting only older versions of
the package that are known to not support autofill while newer
versions that are known to support autofill would work in normal
mode.

Since compatibility mode should be used only as a fallback we
have a white list setting with the packages for which this mode
can be requested. This allows applying policy to target only
apps that are known to not support autofill.

Test:
cts-tradefed run cts-dev -m CtsAutoFillServiceTestCases
cts-tradefed run cts-dev -m CtsAccessibilityServiceTestCases

bug:72811034

Change-Id: I11f1580ced0f8b4300a10b3a5174a1758a5702a0
/frameworks/base/core/java/android/app/Activity.java
ad357d1839760849fcbcb8cbdce34003e8831acd 02-Feb-2018 Jeff Sharkey <jsharkey@android.com> Pass in the user defined by Context.

The majority of Manager-style classes already use Context.getUserId()
when making calls into the OS, so clean up the remaining callers to
unify behind this strategy.

This gives @SystemApi developers a nice clean interface to interact
across user boundaries, instead of manually adding "AsUser" or
"ForUser" method variants, which would quickly become unsustainable.

Test: builds, boots
Bug: 72863821
Exempt-From-Owner-Approval: trivial changes
Change-Id: Ib772ec4438e57a2ad4950821b9432f9842998451
/frameworks/base/core/java/android/app/Activity.java
0c8a7247c83889e99607c26ebe510b710997ce19 02-Feb-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Switch order of onSaveInstanceState and onStop"
059054ff3f8ab1bf59e9eada1afc82dd94c30589 31-Jan-2018 David Brazdil <dbrazdil@google.com> Merge "Show hidden API warning once per process" am: 880839d2d1 am: 169a159207
am: 5379c4fe3a

Change-Id: Iebf487a69de640fdcd181bc2bb8e8f8dbe826b8c
5379c4fe3ad6ebddcccece30f35bbf55d4965b08 31-Jan-2018 David Brazdil <dbrazdil@google.com> Merge "Show hidden API warning once per process" am: 880839d2d1
am: 169a159207

Change-Id: I11b174f82b8a71884de6b384f9478d125ce45ab4
d960cc4a511e4f659aaae4aea9bc3b032d28c26b 31-Jan-2018 David Brazdil <dbrazdil@google.com> Show hidden API warning once per process

In order to not spam users with warning toasts, add a boolean flag
that guards the displaying of a warning message about hidden API
usage and is set after the first time a message is shown.

Bug: 64382372
Test: manual
Change-Id: If7ea995ddf4727a15eccf55dad42ef7775b1fc91
/frameworks/base/core/java/android/app/Activity.java
391161f110b916520be2455a06bdc93de548082c 29-Jan-2018 Andrii Kulian <akulian@google.com> Switch order of onSaveInstanceState and onStop

This CL switches order of onSaveInstanceState and onStop
callbacks for app that target P+. Now activity state will
be saved after onStop.

Bug: 68763258
Test: Manual
Change-Id: If0410cbfe7920bfff9e3b9fd8879646c5622cb33
/frameworks/base/core/java/android/app/Activity.java
1b24054fafa5bf5eedbd226710a54e444db97485 30-Jan-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fixed Activity.dump() to lazy load AutofillManager if needed."
9d16dff058589e76f135fe7b30fc598bcbe995b6 30-Jan-2018 Felipe Leme <felipeal@google.com> Fixed Activity.dump() to lazy load AutofillManager if needed.

Bug: N/A
Test: manual verification

Change-Id: I2ab74caab460e41ed6c08882af3d504d3322a577
/frameworks/base/core/java/android/app/Activity.java
76f0ccb5f1079040b28505e48fe8822b88d474f1 29-Jan-2018 Alison Cichowlas <asc@google.com> Revert "Security model for moving sharesheet to systemui"

This reverts commit 88f3d4dbe1dbc08316d8a9e25edce1ad16fe2eab.

Bug: 72554856
Test: repro instructions in bug
/frameworks/base/core/java/android/app/Activity.java
eeed18412794cacccf9b8e26511fb862d28b2c0b 29-Jan-2018 David Brazdil <dbrazdil@google.com> Merge "Control hidden API toast with a system property" am: 13020490be am: a9b3f91828
am: 1e1c4fc802

Change-Id: I0b2d898dbdac8ed6ac8995bab521b62adb5d0f2e
1e1c4fc8023c651a3e7b5cafd22f797e47d86b94 29-Jan-2018 David Brazdil <dbrazdil@google.com> Merge "Control hidden API toast with a system property" am: 13020490be
am: a9b3f91828

Change-Id: Iac1fdeff968b131e8f3486060dfb7cdeed446157
795cbfb1c1719fa597d9911aa4a39ad8d7dbbc3e 26-Jan-2018 David Brazdil <dbrazdil@google.com> Control hidden API toast with a system property

CL Id0a4200f912ac3303026cb26b6d8974c47332828 sets a system property
"ro.art.hiddenapi.warning" for non-release, non-user builds. This
patch reads that flag and unless the flag is set, will only ever show
the warning message if the app is debuggable.

Test: manual
Bug: 64382372
Change-Id: I9b552792779589a7a91818a82d5c86141fc0a30b
/frameworks/base/core/java/android/app/Activity.java
41234f624892d183a0a7e6d2dc195159e55e5019 26-Jan-2018 Winson Chung <winsonc@google.com> Merge "Add feature check before entering PIP."
f416008101ceed2efd98bd2d620f8765b4c0d268 26-Jan-2018 David Brazdil <dbrazdil@google.com> Merge "Show a warning toast/dialog when an app uses hidden APIs" am: fbef950d95 am: d750a7c68c
am: 61c4d63c98

Change-Id: If75eacd24b072e382042885e20434b184dc91426
61c4d63c9837c2781039c53ee027bd9723a769da 25-Jan-2018 David Brazdil <dbrazdil@google.com> Merge "Show a warning toast/dialog when an app uses hidden APIs" am: fbef950d95
am: d750a7c68c

Change-Id: I9b62537d76e4ceb7ce03ca4de5ccf5a182c4439c
80fa2d88b4465e74927f393bd73b04fc6ece7790 25-Jan-2018 Winson Chung <winsonc@google.com> Add feature check before entering PIP.

Bug: 72063615
Test: ActivityManagerPinnedStackTests
Change-Id: I4bed3a39c28c62121db47b8a61dda2516e41d245
/frameworks/base/core/java/android/app/Activity.java
0edd6454927e2289ac900807d0c374e02a5d3a4b 25-Jan-2018 Artem Iglikov <artikz@google.com> Merge "Revert "Make idiomatic use of ApkAssets and AssetManager""
16b3dff2d5e81914d1e57a09931191ff8c8aea17 25-Jan-2018 Artem Iglikov <artikz@google.com> Revert "Make idiomatic use of ApkAssets and AssetManager"

This reverts commit e70b57a659e4486d07f30ebe3b067715b53f1378.

Reason for revert: b/72482083

Bug: 72482083
Change-Id: I36b0aff6d533d7fb59d367a1cd4e96e03df5f462
/frameworks/base/core/java/android/app/Activity.java
1ccf72543da1c20e8c8a69b33d86f3d2cae5aaf3 25-Jan-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes from topic "assetmanager-refactor"

* changes:
libandroidfw: Improve performance of AssetManager2
libandroidfw: Add ApplyStyle and SetConfiguration benchmark
Make idiomatic use of ApkAssets and AssetManager
Replace AssetManager with AssetManager2 implementation
e70b57a659e4486d07f30ebe3b067715b53f1378 02-Dec-2017 Adam Lesinski <adamlesinski@google.com> Make idiomatic use of ApkAssets and AssetManager

Move away from using deprecated addAssetPath methods
and cache the instances of ApkAssets created.

Test: CTS passes
Change-Id: I257c72261a97e4aa802abb46dc1f44d80e1d42ad
/frameworks/base/core/java/android/app/Activity.java
927d6de11fa038ee78bb90933eee3ebc20b68751 24-Jan-2018 David Brazdil <dbrazdil@google.com> Show a warning toast/dialog when an app uses hidden APIs

Check VMRuntime.hasUsedHiddenApi() on each Activity start and show
a toast/dialog urging the user to check logcat.

Test: manual
Bug: 64382372
Change-Id: Ida8a6ed9ab9b56a76882501b2a3473a5f1448cb3
/frameworks/base/core/java/android/app/Activity.java
fa0bfce3efac6dd5322e90a8f4a7274147b705e8 24-Jan-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add requireViewById"
e14921216a5d03e8299f7b4ff86c9995d1c0218b 23-Jan-2018 Felipe Leme <felipeal@google.com> Merge "DO NOT MERGE - fix AFM.getComponentNameFromContext()" into oc-mr1-dev
am: 2eeab61b4c

Change-Id: Idda0d7fbc0f63bcbad44da6a46cef786770a2851
6faa9e50e531f7ea24bf0d112395d33a4d7531f4 11-Jan-2018 Chris Craik <ccraik@google.com> Add requireViewById

Bug:69461327
Test: atest android.view.cts.ViewTest android.view.cts.WindowTest android.app.cts.DialogTest
Test: make offline-sdk-docs

Didn't add require versions of #onFindViewById in
FragmentContainer/FragmentHostCallback since they're deprecated

Change-Id: I4231e318c92a39cfb82ab1ef8769ade2775d5e3e
/frameworks/base/core/java/android/app/Activity.java
88f3d4dbe1dbc08316d8a9e25edce1ad16fe2eab 22-Nov-2017 Geoffrey Pitsch <gpitsch@google.com> Security model for moving sharesheet to systemui

ResolverActivity (still in frameworks) now requests a "permission token"
that it hands to a stubbed system ui activity ChooserActivity.

This permission token allows an app (SysUI) with the signed permission
"START_ACTIVITY_AS_CALLER" to call
ActivityManagerService#startActivityAsCaller. Permission tokens are a
one-time use, limited-time offer.

Test: runtest systemui && manual testing
Bug: 69850752
Change-Id: I3600e1a8ff9eea7397f5f59853423c79b6401f98
/frameworks/base/core/java/android/app/Activity.java
68d10d00a52be904766d69acda98bc934e768e7f 23-Jan-2018 Adam Lesinski <adamlesinski@google.com> Revert "Make idiomatic use of ApkAssets and AssetManager"

This reverts commit c857766ca5aa37df0833c816922e6b3b85a742f9.
/frameworks/base/core/java/android/app/Activity.java
1f62f7c72eaa6477950d6c0bf1bde562a68f6301 23-Jan-2018 Adam Lesinski <adamlesinski@google.com> Merge changes from topic "assetmanager-refactor"

* changes:
libandroidfw: Improve performance of AssetManager2
libandroidfw: Add ApplyStyle and SetConfiguration benchmark
Make idiomatic use of ApkAssets and AssetManager
Replace AssetManager with AssetManager2 implementation
b25b4736db2ea05dce6b9f03e8a9920ab338dd5a 23-Jan-2018 Felipe Leme <felipeal@google.com> DO NOT MERGE - fix AFM.getComponentNameFromContext()

This method broke on O-MR1 when I3abf999eb6056c1df7982780bae43b58337c0668
was chery-picked from master.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases \
-t android.autofillservice.cts.AttachedContextActivityTest#testAutofill
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Also individually ran tests that failed (due to flakiness) when ran in a suite:

Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases \
-t android.autofillservice.cts.OptionalSaveActivityTest#testDontShowSaveUiWhenUserManuallyFilled_oneDatasetAllRequiredFields

Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.PreSimpleSaveActivityTest #testTapLink_tapBack_thenStartOverBySayingYesAndManualRequest

Fixes: 71960322

Change-Id: Ia093dcefe6699dc9493c46d671e48c2000214b31
Merged-In: I3abf999eb6056c1df7982780bae43b58337c0668
/frameworks/base/core/java/android/app/Activity.java
c857766ca5aa37df0833c816922e6b3b85a742f9 02-Dec-2017 Adam Lesinski <adamlesinski@google.com> Make idiomatic use of ApkAssets and AssetManager

Move away from using deprecated addAssetPath methods
and cache the instances of ApkAssets created.

Test: CTS passes
Change-Id: I9e7048bcffd6471ed6a42e5175cc678dc4ac3b96
/frameworks/base/core/java/android/app/Activity.java
1f2acb9a163b3bc5164e042f233091060fcc7419 18-Jan-2018 Jorim Jaggi <jjaggi@google.com> Merge "Add ability to register remote animation definitions per activity"
d4356fdf4b3e2005e5e69124a5fdd5724a348619 18-Jan-2018 Dake Gu <dake@google.com> Merge "autofill: support dpad/keyboard"
67decfa7f80c06f3405d1e868bc40cb18dd1460a 27-Dec-2017 Dake Gu <dake@google.com> autofill: support dpad/keyboard

To make autofill works on non-touch device such as TV, allow
fill ui window to gain window focus. Fill ui window does not
need IME. When IME and fill ui window are both shown, fill ui
window will intercept keyevent before IME.

Since autofill window will steal window focus from app window,
we no longer uses View.onWindowFocused() for enter/exit event.
Switched to use Activity onResume/onPause. When view
notifyViewEntered or notifyViewExited called when Activity is paused,
it will be ignored. Before Activity goes to pause state,
notifyViewExited() is fired on focus view, after Activity leaves
pause state, notifyViewEntered() is fired on focus view.

In CTS testDatasetAuthTwoFieldsUserCancelsFirstAttempt, the
authentication activity finishes itself in onCreate() which will not
produce onPause/onResume in app activity, but it will produce window
focus loss/gain event. Since we switch from window focus to activity
onResume/onPause, we will be missing a show fill ui when return from
the never shown authentication activity. To solve this problem,
we added special code when receive ActivityResult from authentication
activity where we check if the authenticate activity never causes
onStop event, where we should issue an extra ACTION_VIEW_ENTERED
event to show fill ui.

Test: passed all existing autofilltest CTS on sailfish
atest CtsAutoFillServiceTestCases
Bug: 70181616

Change-Id: Iafe4dca3be8f049fa6dfd34bac13ccb030c583b6
/frameworks/base/core/java/android/app/Activity.java
f84e2f60fec6f6d2ecfb3b90ddf075101f4b902f 16-Jan-2018 Jorim Jaggi <jjaggi@google.com> Add ability to register remote animation definitions per activity

This introduces a more stable way of setting a remote animation
than using overridePendingTransition: An activity can register
a set of remote animations which is broke down by transition type.
Whenever the activity is involved into such a transition, the
remote animation will be started.

Remote animations take precedence over regular animations, and
prefixOrderIndex in the hierarchy decides precedence within
multiple apps that set remote animation definitions such that
higher apps override lower apps.

Bug: 64674361
Test: go/wm-smoke
Test: Use with launcher
Change-Id: Id300ff62d9f60966ea2609168f6a02860b3de7af
/frameworks/base/core/java/android/app/Activity.java
c6f9c85f746d72a54737f8e714b190939561c28b 28-Dec-2017 Craig Donner <cdonner@google.com> Deprecate android.software.vr.mode

Bug: 71365436
Test: Build
Change-Id: I4e371dfea1823787e2e175206b34c25d872bd411
/frameworks/base/core/java/android/app/Activity.java
88e05cb84427c23bb2e23626968f2e8431b6f273 06-Dec-2017 Andrii Kulian <akulian@google.com> Add transaction executor

This adds TransactionExecutor class, that takes care of executing
a multi-stage ActivityManager client transaction in correct order.

First it executes all callbacks, while also making sure to transition
to the right pre- and post-execution state if requested.
In the end it cycles to the final requested lifecycle state.

This also switches activity launch process to use lifecycler - it
initializes activity launch and sets final desired state in the same
transaction.

Bug: 64797980
Test: android.app.servertransaction.TransactionExecutorTests
Change-Id: I306f9396fab263682f580cc8c924a3cedb40ef89
/frameworks/base/core/java/android/app/Activity.java
719c227c69ecd96be957f2ace5cbbf188dea9c03 17-Nov-2017 Ahmad Melegy <ahmad.melegy@gmail.com> Merge "Fix typo" am: 913f396c11 am: 8c7c6e3952
am: 9296c2c8c1

Change-Id: Idb98baf68132e27718c69d4b9a6bc22e8db77a0e
9296c2c8c179ca180bc6aae7dda6b709a419f082 17-Nov-2017 Ahmad Melegy <ahmad.melegy@gmail.com> Merge "Fix typo" am: 913f396c11
am: 8c7c6e3952

Change-Id: Ieed26cd7bb6be66c6084dd0fc8f0dcc05d9156d0
8c7c6e3952724f092139100b0c88dae0eae03f07 17-Nov-2017 Ahmad Melegy <ahmad.melegy@gmail.com> Merge "Fix typo"
am: 913f396c11

Change-Id: I244ccafe5bf76718cdc48b2fa7d9ce8270b0dd33
e2bfbf1348e9d482b331ef3f89dd4a3b61027533 14-Nov-2017 Ahmad Melegy <ahmad.melegy@gmail.com> Fix typo

Fix typo in Activity class in requestPermissions method

Test: Existing unit tests still pass.
Bugs: None

Change-Id: If81117a0e769bca2f303e1ebce57ecda9544e129
Signed-off-by: Ahmad Melegy <ahmad.melegy@gmail.com>
/frameworks/base/core/java/android/app/Activity.java
a4ceea026d6373e9be4b1daf3aa4ed93de4157cf 31-Oct-2017 Bryce Lee <brycelee@google.com> DO NOT MERGE Remove orientation restriction to only fullscreen activities.

This changelist removes checks that enforce that only fullscreen,
opaque activities may request orientation changes. An application
may itself be compatible with the change and update their SDK level.
However, it is possible they use a library that has not itself been
updated and still leverages this feature for non-fullscreen
activities.

Fixes: 68684796
Test: bit FrameworksServicesTests:com.android.server.wm.AppWindowTokenTests

Change-Id: I75bbda96b132694c722b0b535e33ea5e1b9a55db
/frameworks/base/core/java/android/app/Activity.java
0a1feb819234ae7fc8cc32aa1dc5929823b0a5bc 13-Nov-2017 Ian Lake <ilake@google.com> Deprecate framework Fragments and Loaders

Redirect developers to use the Support Library
versions of Fragments and Loaders to ensure that
they get consistent behavior across versions of
Android and all devices as well as access to
Lifecycle improvements.

Test: Confirmed APIs deprecated in current.txt
BUG: 68381801
Change-Id: I58ec599e557fc93c8547c45ba7c9ced96b0c8616
/frameworks/base/core/java/android/app/Activity.java
e83f34cde79c51efb66f31f2770c2e8e572e96db 01-Nov-2017 Bryce Lee <brycelee@google.com> Remove orientation restriction to only fullscreen activities.

This changelist removes checks that enforce that only fullscreen,
opaque activities may request orientation changes. An application
may itself be compatible with the change and update their SDK level.
However, it is possible they use a library that has not itself been
updated and still leverages this feature for non-fullscreen
activities.

Change-Id: Ie1d300e3531fc8c588d2124dea698e4a876713c2
Fixes: 68684796
Test: bit FrameworksServicesTests:com.android.server.wm.AppWindowTokenTests
/frameworks/base/core/java/android/app/Activity.java
a89b183ef9323f4426941b207e2378064b5c7de3 31-Oct-2017 Bryce Lee <brycelee@google.com> DO NOT MERGE Remove orientation restriction to only fullscreen activities.

This changelist removes checks that enforce that only fullscreen,
opaque activities may request orientation changes. An application
may itself be compatible with the change and update their SDK level.
However, it is possible they use a library that has not itself been
updated and still leverages this feature for non-fullscreen
activities.

Fixes: 68684796
Test: bit FrameworksServicesTests:com.android.server.wm.AppWindowTokenTests

Change-Id: Ib5a60f0b660ad145d07e953e541a0a1b801aeef2
/frameworks/base/core/java/android/app/Activity.java
11e7d7d65051ada66733f9784c9f6e2990abc506 31-Oct-2017 Charles He <qiurui@google.com> Merge "AM: make LockTask truly multi-task-aware."
ff9b4dff6c62f8b6a950edfdd2c136b697c612ad 22-Sep-2017 Charles He <qiurui@google.com> AM: make LockTask truly multi-task-aware.

LockTask was first designed to be single-task only. It was later
expanded to multi-task use cases in a rather flawed manner. Many aspects
of the implementation overlook the implications of more than one locked
tasks, and sometimes completely ignore the LockTask-unaware apps.

For example, LockTask-unaware apps are not registered in
LockTaskController's list of locked tasks, although they can be launched
in LockTask mode as long as they are whitelisted. As a consequence,
these unregistered tasks are not finished when their whitelist
authorization is removed.

In this patch, we make sure LockTask-unaware apps are also registered,
and introduce the notion of a root task, thus providing a genuine
multi-task experience with LockTask.

Bug: 66130096
Bug: 66132035
Test: bit FrameworksServicesTests:com.android.server.am.LockTaskControllerTest
Test: cts-tradefed run cts-dev -m DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testLockTask_deviceOwnerUser
Test: manual, by using TestDPC > Start kiosk mode
Change-Id: I68a26d2198fa3991f85ae1e7a6acae5981c34db5
/frameworks/base/core/java/android/app/Activity.java
17292d1a25a4d0c3910a687a4207e7ff5688be1d 24-Oct-2017 Felipe Leme <felipeal@google.com> New Autofill API: FillResponse.disableAutofill(duration)

This API is useful to improve the autofill performance for the scenarios where
the service knows it cannot autofill an app or activity.

Bug: 67867469

Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.LoginActivityTest#testFillResponseAuthWhenAppCallsCancel

Change-Id: I58e3eb5714db840104e699d614e750c03e26e8ca
/frameworks/base/core/java/android/app/Activity.java
686128ef59ccd336d923915d57d1b5efe1e6dc8c 17-Oct-2017 Felipe Leme <felipeal@google.com> Minor logging improvements on Autofill.

Test: manual verification

Fixes: 67898895

Change-Id: Ic97d51a388a426b3ff9e74520f52036257a5c1ce
/frameworks/base/core/java/android/app/Activity.java
2fe3ade8139795df9def96d44ee97bf47acec967 29-Sep-2017 Felipe Leme <felipeal@google.com> New Autofill API: SaveInfo.setTriggerId()

Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.SimpleSaveActivityTest#testExplicitySaveButton
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.SimpleSaveActivityTest#testExplicitySaveButtonWhenAppClearFields
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Bug: 65118073
Fixes: 67006548

Change-Id: Id12179086567d014f35fe4177b041745fb19bafd
/frameworks/base/core/java/android/app/Activity.java
056dd6aace31f76e635ac0befb6b02f61ca11c43 10-Oct-2017 Andrew Solovay <asolovay@google.com> Merge "docs: Tiny usage fix ("e-mail" -> "email")" into oc-mr1-dev am: c4a0b34248
am: 81643c09cc

Change-Id: Ib935716cec8ae54f83f6ad85604f97e9982cd14b
ab8ea9ff01cf728f2fdb43506d64e6d0dde65d71 07-Oct-2017 Andrew Solovay <asolovay@google.com> docs: Tiny usage fix ("e-mail" -> "email")

I needed to make an edit in this branch to verify part of our docs
process, so I found a Javadoc typo to fix. No code error, just took
out the hyphen in "e-mail" in a Javadoc comment.

Test: make ds-docs
Bug: 67515954
Change-Id: Icb9b2a9df0d7dfd697050735886adec80bc92ff8
/frameworks/base/core/java/android/app/Activity.java
e541b65c03d1aaad9b45ebf2f542f2e16b5320d0 05-Oct-2017 Felipe Leme <felipeal@google.com> Merge "Sets AutofillClient on attachBaseContext()" into oc-mr1-dev am: 6d17d9d0cf
am: 63b45a87d5

Change-Id: Ib7ae51cf0336c4cea8ff90d60995816d43b3fa36
bb567ae6c0374e5fe8d62273234cf470577133de 04-Oct-2017 Felipe Leme <felipeal@google.com> Sets AutofillClient on attachBaseContext()

When an activity overrides attachBaseContext(), the attached context must share
the same AutofillCient, otherwise it will break autofill in the activity.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.AttachedContextActivityTest
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Fixes: 67350639

Change-Id: I6b0c4c2fab5fa68eb6ee0714e107ca0816efb2cb
/frameworks/base/core/java/android/app/Activity.java
f3ee0b4c84daefae39519783be4c9eae2950f1fa 29-Aug-2017 Felipe Leme <felipeal@google.com> Merge "Hides the Save UI while handling a pending intent from CustomDescription." into oc-mr1-dev am: 55309e79cf
am: 1f9f8597e9

Change-Id: Ie57ae681b0068f4b060aa1a8c87c92cb511ca9ed
c24a56ae065bfc4b21f646d0c754b5f4db7c7be5 03-Aug-2017 Felipe Leme <felipeal@google.com> Hides the Save UI while handling a pending intent from CustomDescription.

When the AutofillService sets a PendingIntent to launch an activity when
clicking a chield view (for example, to lauch a web page displayign the terms
and conditions of saving something), the system must hide the Save UI and
restore it after the new activity is dismissed.

That sounds simple in the surface, but it requires a huge refactoring behind
the scenes, such as injecting a token in the activity intent and using that
token to hide / cancel the UI during some activity lifecycle events.

Test: lotta of brand-new shinning tests on CtsAutoFillServiceTestCases
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Change-Id: Ie8ec7aeb2c63cab68467046c1a9dcf85dbcc24ec
Fixes: 64309238
/frameworks/base/core/java/android/app/Activity.java
107cac6555ce2ebaec42604d1e3be041871da346 26-Aug-2017 Winson Chung <winsonc@google.com> Merge "Add API to disallow entering PiP when launching a new activity" into oc-mr1-dev am: 3ea1e3d57d
am: 6514dca8ee

Change-Id: Ic21c453ab216bb3d4a58542c4efd1f06ee66bc9b
f7e03e1a9e28e7f631509de4fe2c26f24b584af1 22-Aug-2017 Winson Chung <winsonc@google.com> Add API to disallow entering PiP when launching a new activity

- Use this API when launching the camera from a double tap gesture where
the user expects the camera to start for immediate use.
- Fix missing case of restoring the enter pip state.

Bug: 63916952
Test: Double tap to launch the camera, and ensure it does not trigger
the current activity to enter PiP (if it supports it)

Change-Id: I2acf44984bcc57dff75701d0e9cbd6b798a97cd8
/frameworks/base/core/java/android/app/Activity.java
3382ab1fc7cbd45194d502f18e7ea21c2b9a04ca 27-Jul-2017 Wale Ogunwale <ogunwale@google.com> Migrated some windowing methods from StackId to WindowConfiguration

First pass at transitioning away from using stack ids for windowing mode
to WindowConfiguration. Added some TODO that will require the introduction
of applicationType in WindowConfiguration before additional conversation
can be done.

Test: bit FrameworksServicesTests:com.android.server.wm.WindowConfigurationTests
Test: adb shell am instrument -w -e package com.android.server.wm com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
Test: go/wm-smoke
Change-Id: I2b315623faa16445a9f942e082089123842cb5a1
/frameworks/base/core/java/android/app/Activity.java
298f95b1ad04b2cc9f46f221dcc2d3932f532fdd 11-Aug-2017 Winson Chung <winsonc@google.com> Move PiP state check exception to the client side

- When calling enterPictureInPictureMode(), the state of the activity in
the client may be out of sync with the state of the activity in the
system, causing an exception to be thrown erroneously. Instead, fail
silently in the system if this occurs, and throw the exception in the
client when it attempts to enter PiP from an invalid state.

Bug: 63753007
Test: android.server.cts.ActivityManagerPinnedStackTests

Change-Id: Ia99cc086805edc31f997d4325f7a5ccd7c85a77e
/frameworks/base/core/java/android/app/Activity.java
56af51d67e6fe05f13c639538745ef3155d135ac 21-Aug-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Log reportFullyDrawn into TRON" into oc-mr1-dev
4d27b84d9579197875f6fbe2d0ac211b374c5a3a 17-Aug-2017 Jorim Jaggi <jjaggi@google.com> Log reportFullyDrawn into TRON

Test: AppStartTests
Change-Id: I17c511c9c4305c4cb327d52c81d97ad6d6a8c9d3
Fixes: 36093481
/frameworks/base/core/java/android/app/Activity.java
10d176009d7b0bc6758e40089b3cc50df7bdbe3d 17-Aug-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Revert "Dismiss Autofill Save UI when a new Activity is launched."" into oc-mr1-dev
cf1ff6ca3dbf90fe9c9a5e161094046394a4004d 17-Aug-2017 Felipe Leme <felipeal@google.com> Revert "Dismiss Autofill Save UI when a new Activity is launched."

This reverts commit 05ea98a3f95a2f5179c01a5bfd4901835a0c1bd8.

Bug: 64693551

Change-Id: I8e7a7b2c5f575cee28f977ae7f3c10752a15d49c
/frameworks/base/core/java/android/app/Activity.java
92a84efba1405b856661423cb133cd9d4140116b 16-Aug-2017 Bryce Lee <brycelee@google.com> Merge "Update references to O MR1 to proper codename." into oc-mr1-dev
05ea98a3f95a2f5179c01a5bfd4901835a0c1bd8 15-Aug-2017 Felipe Leme <felipeal@google.com> Dismiss Autofill Save UI when a new Activity is launched.

Test: manual verification using Settings
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -tandroid.autofillservice.cts.SimpleSaveActivityTest#testDismissSave_byLaunchingNewActivity
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -tandroid.autofillservice.cts.LoginActivityTest#testSaveGoesAwayWhenLaunchingNewActivity
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Fixes: 64693551

Change-Id: I323031c7285a4b49f9f0ca06618425a0ab7833da
/frameworks/base/core/java/android/app/Activity.java
0e7b7c96be5e61f519ab2e5a258fa17d9c32efcb 10-Aug-2017 Bryce Lee <brycelee@google.com> Update references to O MR1 to proper codename.

Bug: 38225467
Test: manual
Change-Id: I5ae29e5763967f6a752f720e043ccb1ceb57e311
/frameworks/base/core/java/android/app/Activity.java
59b9885bc8b781b6312adedd67c2c7c270f9213c 13-Jun-2017 chaviw <chaviw@google.com> Added Activity flags to show on lock screen.

Added two new flags to the Activity to turn the screen on and
show on the lock screen. These can be used instead of the Window flags
LayouParams.FLAG_TURN_SCREEN_ON and LayoutParams.FLAG_SHOW_WHEN_LOCKED
to prevent the double onStart/onResume lifecycle events.

The flags can be set as an attr for the Activity in the AndroidManifest
using android:showWhenLocked="true" and android:turnScreenOn="true".
They can also be set through methods in the Activity class using
setShowWhenLocked(true) and setTurnScreen(true).

Fixes: 36850100
Test: Created sample application, tests/ShowWhenLockedApp, that set the
flags in the manifest and code. Tested multiple scenarios to
launch the Activity with the flags set and unset.
Test: cts-tradefed run commandAndExit cts-dev --module CtsServicesHostTestCases -t android.server.cts.KeyguardTransitionTests
Test: cts-tradefed run commandAndExit cts-dev --module CtsServicesHostTestCases -t android.server.cts.ActivityManagerActivityVisibilityTests
Test: cts-tradefed run commandAndExit cts-dev --module CtsServicesHostTestCases -t android.server.cts.KeyguardTests

Change-Id: I44f0e313df4531d49c7ac56108b6bf80e41fefc1
/frameworks/base/core/java/android/app/Activity.java
c981ad5af3df9d76299aeb63232c4369fbf18628 13-Jun-2017 Wale Ogunwale <ogunwale@google.com> Remove visibleBehind functionality

The feature is no longer used by the TV team which was the only
product using it, so removing to reduce code complexity.

Test: go/wm-smoke
Change-Id: I563e30486ec4439f550b5adb94c4c617ea2a346b
/frameworks/base/core/java/android/app/Activity.java
8661c5e519ef0f5ab2122f8280364d8e90caedf7 27-Jun-2017 Robert Carr <racarr@google.com> Disable requestVisibleBehind.

As there is no caller for the SystemAPI convertToTranslucent, there is no situation
where requestVisibleBehind will actually result in the activity becoming
visible behind. However we have bugs in the requestVisibleBehind code-path,
so rather than fix them...it seems better to just prevent ourselves from
running in to them. Full deletion of the code-path is scheduled for post-O
branches.

Change-Id: I6e7c79e036986564d2d443a603e63c341de23057
Fixes: 62512584
Test: Repro from bug. go/wm-smoke.
/frameworks/base/core/java/android/app/Activity.java
e78c771cf5fdb6511635ebf56096296f13504ab0 19-Jun-2017 Philip P. Moltmann <moltmann@google.com> Correct lastId on onCreate with unexpected state

onCreate might be called with a state not produced by
onSaveInstanceState. In this case the last autofill ID is not set, so we
incorrectly restore it to NO_ID instead of LAST_APP_AUTOFILL_ID

Change-Id: Id40c06bf223c0e3c6235b2d50779e3f4532898b5
Fixes: 62296699
Test: cts-tradefed run cts-dev -m CtsAutoFillServiceTestCases
(cherry picked from commit 1266d08be53c6ee2494d18363092c68825ef449e)
/frameworks/base/core/java/android/app/Activity.java
846cda939796aef868e4bb1ae92e744c3e9d57cb 15-Jun-2017 Phil Weaver <pweaver@google.com> Separate a11y and autofill view ids

Autofill seems to need IDs to be preserved across things
like configuration changes, while accessibility will not
function without views with unique ids. Separating out the
two types of IDs. We can re-combine them once it's clear
that both demands can be satisfied.

Bug: 62301218
Test: Run a11y and autofill CTS, and verify that the play
store app functions with TalkBack after a screen rotation.

Change-Id: I17a99de2874768fc0ade3aa354130dd1f6b4cd7e
/frameworks/base/core/java/android/app/Activity.java
4d8681ff6ae8f47566fdc97264fc6b3b4f3b9e9b 24-May-2017 Winson Chung <winsonc@google.com> Workaround to ensure that PIP activities have a visible shadow.

- When the window for the activity enters PIP, update the outline provider
to override the alpha of the shadow (to be opaque) to ensure that is is
visible. Only applies to the task root activity.

Bug: 36741700
Test: Launch YT, ensure that there is a shadow when after it enters PIP
Test: go/wm-smoke
Test: android.server.cts.ActivityManagerPinnedStackTests

Change-Id: If089dae84e4916d3d0e7bbeb316215b46e522e05
/frameworks/base/core/java/android/app/Activity.java
9876a6fba92e8c1f6ce7f998b34cd72ee726c1b6 31-May-2017 Felipe Leme <felipeal@google.com> Always post AutofillManager operations in the UI thread.

Test: existing CtsAutoFillServiceTestCases pass
Fixes: 62194407

Change-Id: If878b2befc03706c000b3f31b60904072b2225f4
/frameworks/base/core/java/android/app/Activity.java
27e202208b42e78fefcece893a4bb5d8fe2eae58 19-May-2017 Felipe Leme <felipeal@google.com> Hide Autofill UI when non-savable id is gone.

AutofillManager keeps track of which views the AutofillServiec is interested to
save, so when these views are gone, the session is finished.

But when the AutofillService returns a dataset whose views it can not save,
the FillUi for these views are not hiding when the views are gone. This CL
fixes this issue by:

- Keeping track which non-savable views should be tracked.
- Pass the view (instead of it's id) when the UI on such views should be hid.

This CL also optimized some AIDL and internal calls by avoiding the creating of
unnecessary Lists.

Test: manual verification with Snapchat
Test: existing CtsAutoFillServiceTestCases pass
Test: new tests on MultipleFragmentLoginTest pass

Fixes: 38199452
Change-Id: I78fa357962dbc6667146d8e08cd6bacb63e0f337
/frameworks/base/core/java/android/app/Activity.java
3e6e3855ea10c92a0328c360fc8414e85fb3ad61 20-May-2017 Dianne Hackborn <hackbod@google.com> Fix issue #38393543: Not allowed to start service Intent

Turns out there was another path in to the activity manager
to trigger a PendingIntent, which needs to be modified to
now also pass in the whitelist token of that pending intent.

Test: manual
Change-Id: I755ff87db1b782fa6974d404dcb490786053c5e0
/frameworks/base/core/java/android/app/Activity.java
f5b6818009a70d77a272ca9b7b2aa167507dfd07 16-May-2017 Rob Carr <racarr@google.com> Merge "Preserve non-floating state when entering pinned stack." into oc-dev
e53243cb9246221cbf5e0de1f068a21b8ffa2c95 11-May-2017 Bryce Lee <brycelee@google.com> Merge "Allow for SDK 26 Activities to specify orientation when not fullscreen." into oc-dev
d1ac18c7c9eca1b07120be598dc6859b188baeb3 11-May-2017 Bryce Lee <brycelee@google.com> Allow for SDK 26 Activities to specify orientation when not fullscreen.

Change-Id: I9137a7ba7593dcd6031e1fcbcd6dcc0a287d707b
Fixes: 38221413
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerAppConfigurationTests#testNonfullscreenAppOrientationRequests
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerAppConfigurationTests#testLegacyNonFullscreenActivityPermitted
/frameworks/base/core/java/android/app/Activity.java
374cae1e61ee1f9f3e4dbe937e4c643466ed031d 10-May-2017 Svet Ganov <svetoslavganov@google.com> Properly position dataset picker UI

Test: all autofill CTS tests pass

bug:37958210
bug:37986800

Change-Id: Ic2cb3b8c6762a922bdb7c632e451772b7a006739
/frameworks/base/core/java/android/app/Activity.java
18f622f08ce84bfb1a6cf19bca33d3ef0ad4aca9 08-May-2017 Robert Carr <racarr@google.com> Preserve non-floating state when entering pinned stack.

When transitioning between the fullscreen and pinned states
we often have a situation where we go from having a navigation and
status bar in the window to not. We'd like to use the source bounds
animation to crop these out rather than a sudden jump or scaling
but in order to do so we need to ensure they last until the end
of the animation. We track this state, and return the appropriate
value from isFloating. Furthermore, we add support to the bounds
animation to use the content frame as a source bounds when there
is no source bounds present, this means that we can crop out the
navigation and status bar so they will be invisible by the end of
the animation.

Bug: 37531386
Test: Manual
Change-Id: I72c549e3a3318534428d17b68ebee5832c32e6d7
/frameworks/base/core/java/android/app/Activity.java
e59c6ef34682d06dec1ef48445ca387297182771 10-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Revert "Fixed placemente of Autofill UI for virtual views."" into oc-dev
a6de3186045522cc9cb0d1f98760e13af153b43b 10-May-2017 Svet Ganov <svetoslavganov@google.com> Revert "Fixed placemente of Autofill UI for virtual views."

This reverts commit 4745fb6b29322819fdcd21647253bfed8e508137.

Change-Id: I07c108dc53d13ff6fdd16f8f486b35d8ca9a7c58
/frameworks/base/core/java/android/app/Activity.java
8a698a17215919e6ce575ec80d091381f0482d27 10-May-2017 Bryce Lee <brycelee@google.com> Merge "Prevent non-fullscreen activities from influencing orientation" into oc-dev
a9379d0b44ca1f68a0036d2b65218e17fa348514 10-May-2017 Svetoslav Ganov <svetoslavganov@google.com> Allow null fill values to support authentication case

If a dataset needs to be authenticated the fill service
may not have the values but needs to tell the system for
which fields to show the fill UI. We now allow passing
a null value to mean the view is a part of the dataset
semantically but its value should remain unchanged.

If a dataset has no values, i.e. the related autofill ids
are mapped to null, we cannot properly filter. In this case
we always match such items regardless what the user typed.

While at this improved accessibility support for filtering
to announce when the number of items being filtered changes.

Also while at this allowed a dataset authentication to return
a response which replaces the current response and refreshes
the UI. Matching datasets with null values to any text plus
allowing a response to be returned from a dataset auth enables
the use case where there is always "Import" item at the
end of the list which when clicked can show arbitrarily more
data entries associated to other apps.

Another change is that we now provide the client state
bundle on both request and dataset auth.

Finally, this change gets rid of dataset waiting auth and
response waiting auth concepts since the reference to the
response and the dataset is piped with the auth request.

Fixed a bug where the width of the autofill UI was not
properly measured by going over all items in the adapter.
Now we measure enough height to fit the first three and the
width id the width of the widest item in the adapter.

Test: Added LoginActivityTest#testDatasetAuthTwoFieldsReplaceResponse
Added LoginActivityTest#testDatasetAuthTwoFieldsNoValues
Added LiginActivityTest#filterTextNullValuesAlwaysMatched
All autofill CTS tests pass

bug:37724701
bug:37424539

Change-Id: Ic19e5d7cbdbb7d110c9e7da0ad60b540cbf1aecf
/frameworks/base/core/java/android/app/Activity.java
39791594560b2326625b663ed6796882900c220f 26-Apr-2017 Bryce Lee <brycelee@google.com> Prevent non-fullscreen activities from influencing orientation

This changelist enforces that activities targeting O and beyond
can only specify an orientation if they are fullscreen. The
change ignores the orientation on the server side and throws an
exception when the client has an orientation set in onCreate or
invokes Activity#setRequestedOrientation.

Fixes: 33483680
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerAppConfigurationTests#testNonFullscreenActivityProhibited
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerAppConfigurationTests#testLegacyNonFullscreenActivityPermitted
Change-Id: I4f7f79744918fad6465a537633dfadec8d05c6df
/frameworks/base/core/java/android/app/Activity.java
f512575c683ff0b35b810dae1b39d8674e43e702 09-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes I7c2c9411,Ibc72c84d,Ib3968644 into oc-dev

* changes:
No need to deal with windowTokens
Persistable accessibility ID from ContextWrappers
Check callbacks when operting on UI
134cee27b8a54ff4c8bebda51c5fe4a4e6f1fd8a 06-May-2017 Philip P. Moltmann <moltmann@google.com> No need to deal with windowTokens

we have a link to the client which is enough to find the views.

Also there was some cases where the windowToken was not updated
properly. This is moot now.

Also: Read a array of views from the client to speed up the
client<->AutofillManager communication.

Fixes: 38070352
Test: CtsAutoFillServiceTestCases
1 Started autofill, saw fill UI
2 Home button
3 Kill activity in background
4 Recents -> back to activity
5 Saw fill UI restored
Change-Id: I7c2c9411204fa5d65867efae9b7296399121c3a2
/frameworks/base/core/java/android/app/Activity.java
4745fb6b29322819fdcd21647253bfed8e508137 05-May-2017 Felipe Leme <felipeal@google.com> Fixed placemente of Autofill UI for virtual views.

The PopupWindow anchoring offset should be based on the bottom of the anchor
view, but we were using top. Hence, the PopupWindow.tryFitVertical() was
failing to place it above the view in some cases, even when there was plenty
of space.

Fixes: 37991460
Test: manual verification with virtual view sample
Test: CtsAutoFillServiceTestCases pass

Change-Id: Iffdfe0d7858e865192338184d63bf5b93ba7108f
/frameworks/base/core/java/android/app/Activity.java
000ce805050f0bdbf485464b84eb2c08bca5ad72 29-Apr-2017 Jeff Sharkey <jsharkey@android.com> Updates based on API council guidance.

Test: builds, boots
Change-Id: I223faf55c1e1b4d81d11b4c8b2d93ccd131c969b
Fixes: 37775662
Fixes: 37748635
Fixes: 37673408
Fixes: 37672564
Fixes: 37672218
Fixes: 37638323
Fixes: 37637423
/frameworks/base/core/java/android/app/Activity.java
bfe5aa23e8c980a2ce0e74144cfac48f1b15f904 27-Apr-2017 Andrii Kulian <akulian@google.com> Merge "Hide onMovedToDisplay callback" into oc-dev
cadaccedac68173818b11f8d0787eeda1cc6e3b3 27-Apr-2017 Andrii Kulian <akulian@google.com> Hide onMovedToDisplay callback

There are no usages in O, so not exposing it for now.

Bug: 37638275
Test: android.server.cts.ActivityManagerDisplayTests
Change-Id: I30a8549191ac1cfad0fb1e4db71a702862c0e503
/frameworks/base/core/java/android/app/Activity.java
709904f8003a7122e185cfd32d1209e0e6975b77 25-Apr-2017 Winson Chung <winsonc@google.com> Updating PiP API and documentation.

- Renaming PictureInPictureArgs to PictureInPictureParams, making it
immutable and built with a builder class. In addition, making the
aspect ratio rational.
- Moving the check to get max number of actions to the activity to have
more flexibility going forward
- Also ensures that enterPictureInPictureMode() returns true if the
activity is already in PiP mode.
- Will follow up with CL to remove PictureInPictureArgs and related methods
once this CL drops

Bug: 35765211
Bug: 37638323
Bug: 37637423
Bug: 37636674
Bug: 36342780
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: android.app.cts.PictureInPictureParamsBuilderTest

Change-Id: I54a487d55a59c9ce8ac7bd6c80c61209c8b26224
Signed-off-by: Winson Chung <winsonc@google.com>
/frameworks/base/core/java/android/app/Activity.java
724ca14b20830de678e605e6e6665c7be7240fc5 24-Apr-2017 Wale Ogunwale <ogunwale@google.com> Continue to @hide freeform decor caption APIs

Hiding the APIs for now since we're not releasing freeform yet and it's
better not to expose them now in case we'll decide to change them later.

May you make the P release!

Test: manual
Bug: 28774476
Change-Id: Ie4b4d1bdabef9b27d2eb1442ffc9f6c46ce7dfcb
/frameworks/base/core/java/android/app/Activity.java
85d1c2d2905362b984563d9b5e8332010c272fc5 21-Apr-2017 Felipe Leme <felipeal@google.com> Minor fixes on Autofill Framework:

- Removed default implementation of onProvideAutofillVirtualStructure() that
was using accessibility API (it's useless because without the View calling
AutofillManager.notifyViewEntered(), it would never be triggered).
- Fixed obsolete TODOs.
- Removed obsolete service class name constant.
- Removed unused debug constant.

Fixes: 37078783
Fixes: 33197203
Bug: 33802548
Bug: 35956626

Test: CtsAutoFillServiceTestCases pass
Merged-In: I834d34b8af8bf0d781dc7e0ffcd6e600bfa2d183
Change-Id: I834d34b8af8bf0d781dc7e0ffcd6e600bfa2d183
/frameworks/base/core/java/android/app/Activity.java
30e06bb668f2e4b024c4ebc2a131de91c96de5eb 24-Apr-2017 Jeff Sharkey <jsharkey@android.com> Even more auto-doc work.

Update docs based on what new lint detector found. Add new @IntDef
to parameters or methods returning constants or flags, and add
@RequiresPermission to methods mentioning permissions.

Test: make -j32 offline-sdk-docs
Bug: 37526420
Change-Id: I7f640f7883fcb66b911a52ae93b83f77306571ec
/frameworks/base/core/java/android/app/Activity.java
9ea4b33f2aed9eae1678b571172997004ea3e05e 21-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Auto-generate docs based on annotations." into oc-dev
6503bd8e33dbf6e8357256d43c6e1158e32a0268 20-Apr-2017 Jeff Sharkey <jsharkey@android.com> Auto-generate docs based on annotations.

We have a handful of annotations that we've been sprinkling across
the platform APIs, such as @Nullable, @NonNull, @IntDef, etc. It
would be really helpful to surface these contracts to developers
through the SDK docs.

This change allows annotations like those mentioned above to declare
the following new javadoc fields:

@memberDoc: docs to append to a field or method definition.
@paramDoc: docs to append to a @param definition.
@returnDoc: docs to append to a @return definition.

This change also builds a docstring to describe the list of all
constants listed in an @IntDef annotation. Sadly AnnotationDesc
only passes along raw constant values, so we need the help of the
new "prefix" annotation argument to help find the field names.

Test: builds
Bug: 37526420
Change-Id: I4cfc00dd904e5dfa945b406d546e36846b7c0c28
/frameworks/base/core/java/android/app/Activity.java
8f40881e3e801e3372a738df29eefdbeea33d706 20-Apr-2017 Sudheer Shanka <sudheersai@google.com> Merge "Revert "Add new api Activity.getStartInitiatedTime."" into oc-dev
55337a831aaa9920ed52d3bc41b80c40591222f8 19-Apr-2017 Sudheer Shanka <sudheersai@google.com> Revert "Add new api Activity.getStartInitiatedTime."

This reverts commit bc308988bdcb76d67c80e85183bcfa8128f73890.

Change-Id: Ieaca7c9ec8b4affbb8ce98ebbcb663a531904bf8
/frameworks/base/core/java/android/app/Activity.java
d59629e9faa770ad9c5cd1b8a45c9df781ee9741 18-Apr-2017 Bryce Lee <brycelee@google.com> Deprecate Activity#requestVisibleBehind

The scenario in which this method was intended for is no longer in
use.

Test: documentation
Bug: 37433505
Change-Id: I9927e9a1c4a8cecc920d78abe406b77969854290
/frameworks/base/core/java/android/app/Activity.java
eef5d285f954dee81debe520762ca865e134e9d4 18-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Account for content insets in source rect hint for transition into PiP" into oc-dev
8802eac3d8831e7af867f19d0bb1df3daa603140 17-Apr-2017 Winson Chung <winsonc@google.com> Account for content insets in source rect hint for transition into PiP

- As a part of transitioning into PiP, we remove the content insets, and
as a result, we also need to adjust the source hint rect for the change
in insets as well.

Bug: 37418994
Test: Enter PiP from YT, ensure no jump at the end

Change-Id: I74219b05c91d3c8b8466dd8fff4d6dd692f08725
/frameworks/base/core/java/android/app/Activity.java
494c3f5da2c467ad07f50b4e1ad01065a8e3aa4f 11-Apr-2017 Philip P. Moltmann <moltmann@google.com> Allow to finish session when all views are gone

An service can option to finish the session once all views that it
declared as important. Views that are important are all autofillable
views of any partition and the saveable fields of the last partition.

Test: CtsAutoFillServiceTestCases
Fixes: 35708237
Change-Id: I0ccade8ebb427e5d8928697ef0007c75d3f83df0
/frameworks/base/core/java/android/app/Activity.java
2359f016e28b0eca5974606013f99bdaef57bc22 15-Apr-2017 Sudheer Shanka <sudheersai@google.com> Merge "Add new api Activity.getStartInitiatedTime." into oc-dev
bc308988bdcb76d67c80e85183bcfa8128f73890 13-Apr-2017 Sudheer Shanka <sudheersai@google.com> Add new api Activity.getStartInitiatedTime.

This api will return the timestamp at which this activity start was last
initiated by the system. Implementation is wip.

Bug: 9058261
Test: cts-tradefed run singleCommand cts-dev -m CtsAppTestCases -t \
android.app.cts.ActivityStartTimeTest

Change-Id: I396458ecefbb09108f414b95f9c0beb6d609a4e1
/frameworks/base/core/java/android/app/Activity.java
b7f0db8d89d16ed653c04f0ddf1d6513bb95c55f 14-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Update more implementations of findViewById()" into oc-dev
9d2f03ec5d288b8e8f188eff736bac10770d4741 14-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Make sure theme attributes don't get lost" into oc-dev
04fd470ce0166abb36d9be829d6e9b98a55eaf35 13-Apr-2017 Alan Viverette <alanv@google.com> Update more implementations of findViewById()

Bug: 24137209
Test: make checkbuild -j32
Change-Id: I104969fc74d6dc1d159e3d1ff5926640b124a540
/frameworks/base/core/java/android/app/Activity.java
bb14fb9acb9d172a074a9efef7e9db8a76fe2589 13-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add hidden API startActivityForResultAsUser" into oc-dev
96d26fe3c55cdf88051698a2bf908b37b8b6a187 11-Apr-2017 Tony Mak <tonymak@google.com> Add hidden API startActivityForResultAsUser

Bug: 37197930

Test: runtest -x cts/tests/app/src/android/app/cts/FragmentReceiveResultTest.java
This verified existing startActivity* public APIs are still working
Test: The new hidden API is used/verified by the CLs under the same topic.

Change-Id: I2aca2823ecf26dc8a9318b3783b6041796c02582
/frameworks/base/core/java/android/app/Activity.java
971fe468a493e8f1164ec4ae147e404505b551a0 11-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Revert "Revert "Handle case when snapshot dimensions don't match""" into oc-dev
f4156ea642f945f2a816f86b23a18d2f9f41e16e 11-Apr-2017 Jorim Jaggi <jjaggi@google.com> Make sure theme attributes don't get lost

When an app calls setTaskDescription it overrides the hidden
attributes derived from the theme. Make sure to not override these
if they aren't set in the new task description.

Test: Open Maps, go home, rotate, open maps again, make sure
navigation bar is black
Bug: 36703868

Change-Id: If3f8948fe81af324411c2e828834f5d81e3eeddd
/frameworks/base/core/java/android/app/Activity.java
30d64f3a93f5fc5aaf75eeb38d658ef04a884b41 07-Apr-2017 Jorim Jaggi <jjaggi@google.com> Revert "Revert "Handle case when snapshot dimensions don't match""

This reverts commit ba53d8ae410976709e1413b74173a791e8dead15.

Also fixes that we always had a size mismatch.

Test: TaskSnapshotSurfaceTest
Test: Open app in different orientation than snapshot, make sure
looks ok.

Bug: 36991071
Change-Id: If572b68fd72cec7679984fdff0be5905caba69f4
Fixes: 36703868
/frameworks/base/core/java/android/app/Activity.java
c2ec7bf965b00d7cbac699c25aa372a9b5f9fcc3 10-Apr-2017 Andrii Kulian <akulian@google.com> Merge "Fix activity move between displays" into oc-dev
51c1b670224fa1598644426b472d51346dd22f30 08-Apr-2017 Andrii Kulian <akulian@google.com> Fix activity move between displays

1. ActivityConfigCallback might not have been registered
because DecorView was not yet attached to window and ViewRootImpl
was not available. In this CL the callback is set as soon as a
DecorView is attached to window.
2. When private display was removed from system, its stacks were
moved to bottom in AM but moved to top in WM.
3. When reparenting stack visibility of activities should be updated
before reparenting in WM, because otherwise WM will be resizing
windows that should no longer visible and reporting it to clients.

Bug: 34164473
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testOnMovedToDisplayCallback
Test: #testContentDestroyOnDisplayRemoved
Change-Id: I6ccc27d873d0d60d7650659fb25cbfcaaeb0fd07
/frameworks/base/core/java/android/app/Activity.java
eab62baabf290ea6671577a66cfc9fdd1b145d0e 20-Mar-2017 Philip P. Moltmann <moltmann@google.com> Restore session on new window after app kill

Also:
- Give the session an integer ID as the activityToken is not stable over
restarts of the activity
- Verify that session is only accessed by one UID
- stabilize AccessibilityViewIds over activity lifecycle at least for
the IDs we can do that. This required to split the ID namespace in
"per-app" and "per-activity" views. Only the later ones can be
restored.
- Do not end session when app is killed (as it can be restarted)

Bug: 35484143
Fixes: 36392498
Test: cts-tradefed run cts-dev -m CtsAutoFillServiceTestCases --test=android.autofillservice.cts.SessionLifecycleTest
cts-tradefed run cts-dev -m CtsAutoFillServiceTestCases
Change-Id: I229acc1b3ce35fb57262da7d7466b5d4328b49d4
/frameworks/base/core/java/android/app/Activity.java
e7ac324c71fb52d4104c8d92c9cea55d334bb4f1 06-Apr-2017 Jason Monk <jmonk@google.com> Merge "Revert "Handle case when snapshot dimensions don't match"" into oc-dev
ba53d8ae410976709e1413b74173a791e8dead15 06-Apr-2017 Jason Monk <jmonk@google.com> Revert "Handle case when snapshot dimensions don't match"

This reverts commit aea6b74e17a0f7b105999adad50dd20eac17df35.
Bug: 36991071
Bug: 36703868
Change-Id: Ie71992144e78a6580bfce17dfdf20396af80eacd
/frameworks/base/core/java/android/app/Activity.java
b42d133c8b7f4af04d3a4349c952d437769f14e1 27-Mar-2017 Philip P. Moltmann <moltmann@google.com> Overlay a highlight over autofilled views

Also clear this overlay once the data changes. Some views call
notifyValueUpdated even if the value did not change. Hence remeber the
data that was autofilled and check if the data really changed.

Make the autofilledDrawable publicly accessible so that virtual views
can use the same UI.

As the activity is not aware that the views were autofilled the state
has to be explicitly persisted over activity lifecycle events as part
of the view. The lifecyle does not work yet as the AutofillIds are not
stable over activity lifecycle events.

Fixes: 34946006
Test: Autofilled and changed all supported views.
cts-tradefed run cts-dev -m CtsUiRenderingTestCases
Change-Id: I58b105bb221f1b6466dd136dfe5062d3babb5aa8
/frameworks/base/core/java/android/app/Activity.java
db7423cd8d186d06a4a657617e51d5b6f3097cd0 31-Mar-2017 Alan Viverette <alanv@google.com> Automatic casts for more findViewById implementations

Bug: 24137209
Test: make -j32
Change-Id: I423297a78e63d74eb44fd14747fc3890a9c42937
/frameworks/base/core/java/android/app/Activity.java
1edadac465f70629c66b0c9b053b8ac154133ec9 04-Apr-2017 Jorim Jaggi <jjaggi@google.com> Merge "Handle case when snapshot dimensions don't match" into oc-dev
aea6b74e17a0f7b105999adad50dd20eac17df35 21-Mar-2017 Jorim Jaggi <jjaggi@google.com> Handle case when snapshot dimensions don't match

If the snapshot starting window has different dimensions than the
snapshots we have taken, we do the following:

- Create a child Surface that has exactly the dimensions of the
snapshot.
- We fill the parent surface with the app background color, as well
as all screen background decorations (status bar background,
navigation bar background).
- We also clip of the status bar/navigation bar background in some
cases, as it looks ugly if it's not behind the system bars.
- Furthermore, we inherit all layout flags on the window and all
layout relevant SystemUI flags on the window such that it's very
likely that the size will match, and the system bars are drawn
correctly.
- In order to make the transition from the snapshot to the real
window a bit more predictable/less messy, we enforce a minimum
duration the snapshot is visible, which is slightly more than our
app transitions.

Test: TaskSnapshotSurfaceTest
Test: Open app, go home, go landscape, open app again
Test: Go to multi-window, open app from recents with a snapshot
taken in fullscreen.

Fixes: 36703868
Change-Id: Ia2d4add6971a18ab7aa2942d2b644d6e87a402af
/frameworks/base/core/java/android/app/Activity.java
5af42fc3052ecaf35c937278a986143a65f6ce5f 25-Mar-2017 Winson Chung <winsonc@google.com> Ensuring multi-window callbacks contain new configuration and are in order

- This CL has two main changes:
1) It modifies the activity multi-window and picture-in-picture mode
changed callbacks to provide the configuration of the activity with
the mode applied.
2) It modifies the order in which the multi-window and picture-in-picture
mode callbacks are made, to ensure that when going in and out of
picture-in-picture: first PiP, then MW, and then the config change.
- Previously, the ordering of the two callbacks was inconsistent. When
calling moveActivityToPinnedStack(), we reparent the task into the pinned
stack (triggering the picture-in-picture mode change), followed by the
resize animation (causes configuration changes). Inversely, when we
expand the task to fullscreen (and not just remove it), we run the
animation first, which resizes the task to the final size (causes
configuration changes) then reparent after the animation completes
(triggering the picture-in-picture mode change).

In this CL, we ensure that for both the transition in and out of PiP, we
defer to the bounds animation to trigger the PiP mode change. Normal
calls to reparent or adding a new task are unchanged. When the PiP
mode change is called from the animation, it provides the final target
bounds which we use to calculate the target configuration of the activity
for the callback. If the bounds animation is interrupted, an update will
also be scheduled if we change the fullscreen state we are animating to.

To work around the issue where we are scheduling MW/PiP mode changes in
both the animation and the configuration change, we also now keep track
of each state internally in the ActivityRecord.

Bug: 36099777
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testConfigurationChangeOrderDuringTransition

Change-Id: I03513bc3a4d4a72c250983f22f079ce9d7a2cb40
Signed-off-by: Winson Chung <winsonc@google.com>
/frameworks/base/core/java/android/app/Activity.java
c46203785ce8def37a3f3e9c63eb8304bd3caa7b 17-Feb-2017 Evan Rosky <erosky@google.com> Allow ToolbarActionBar to pass-through unhandled keyShortcuts

It was consuming all keyShortcuts which broke system hotkeys
like shift+tab.

In order to prevent the decor/phonewindow from creating menus,
this creates a dummy view in onCreatePanelView.

This also includes a change to Activity to not send KEYCODE_TAB
keystrokes to the defaulthandler. This was preventing keyboard
navigation from working on any activity that had a default
search fallback.

Bug: 32482282
Bug: 18021345
Test: Added a CTS test (ToolbarTest#testKeyShortcuts) for toolbar
keyShortcuts. Verified Tab-navigation works in Play Store.
Change-Id: I5c732a2b21219157818bed49576debd20d5a8178
(cherry picked from commit b22faf524e9339fc1f17b8c2d8a59e2a02054cb1)
/frameworks/base/core/java/android/app/Activity.java
e5c58eefb1c28d56e6b4768cf624af137a867d21 28-Mar-2017 Andrii Kulian <akulian@google.com> Add Configuration param to onMovedToDisplay

To be consistent with other multi-window callbacks adding
Configuration param to the onMovedToDisplay, so that app
developer can handle configuration change at the same time
when it receives a notification about move.

Bug: 36649499
Test: android.server.ActivityManagerDisplayTests
Test: #testOnMovedToDisplayCallback
Change-Id: I80c765473bfc09ea1fb7aa4e2e77baf3b21606b8
(cherry picked from commit 2c32a11a71e2a1602b188b710b1916d919d99edb)
/frameworks/base/core/java/android/app/Activity.java
4753bb0c34e068f57fff208529836a7688b3ef41 23-Mar-2017 Felipe Leme <felipeal@google.com> Make auto-fill UI robust

Now the autofill UI tracks the movement of the anchor view,
both real and virtual and while still preventing the filled
app from accessing the chooser UI. This was achieved by using
a popup window in the app process to determine the window
location and adding a window presenter interface to popup
window that controls the actual window addition, removal, and
update which is implemented by the system server.

Test: all autofill CTS tests pass

bug: 36392498
bug: 35708258
bug: 34943932
fixes: 36039182
fixes: 36493078

Change-Id: I0321913b2e2e759f4b17003bf85cb873e63a467c
/frameworks/base/core/java/android/app/Activity.java
9d9430e7f79b6e8b390a7e436a1fe398e0e95a11 22-Mar-2017 Evan Rosky <erosky@google.com> Merge "Hooked-up options menu closing"
0fe7ce968bc7f0eff64f08e2d51c8b1e6b4a6fc8 22-Feb-2017 Jorim Jaggi <jjaggi@google.com> Add API to disable snapshotting of activities

Test: runtest frameworks-services -c
com.android.server.wm.TaskSnapshotControllerTest
Test: Launch DisableScreenshotsActivity, go to recents, make sure
content is white.
Bug: 31339431

Change-Id: I329925d2fca389e561da3389a67fe888b5bb1033
/frameworks/base/core/java/android/app/Activity.java
41823d19b6d1749158fc1643cf0911a8e961c702 21-Mar-2017 Evan Rosky <erosky@google.com> Hooked-up options menu closing

Options menus weren't closing properly from menu-key (with
CascadingMenuPopup) or from Activity.closeOptionsMenu

Bug: 36398283
Test: Added CTS tests: app.ToolbarActionBarTest and
app.ActionBarTest#{testOptionsMenuKey, testOpenOptionsMenu}

Change-Id: I89f8ed249b505f369a85b899ca7c1b36c863f0c0
/frameworks/base/core/java/android/app/Activity.java
28afe0e1d898f8d79386042c7fae91d73b46890d 17-Mar-2017 Felipe Leme <felipeal@google.com> Batch autofill() calls to views with virtual children.

This is useful in the cases where the virtual children hierarchy is rendered
by a different process.

Test: VirtualContainerActivityTest pass
Bug: 36056207
Change-Id: Id9bf3a9e9366b616dc2a6e0a204e238a2bee3a20
/frameworks/base/core/java/android/app/Activity.java
81f01d9efdd1739807d5aa5ac4f60b276f70155f 17-Mar-2017 Felipe Leme <felipeal@google.com> Removed 'virtual' from autofill method names.

Fixes: 36126001
Test: VirtualContainerActivityTest pass

Change-Id: I3b8fe835cd7c7f39c8e2cb8f2daca71b03236a1f
/frameworks/base/core/java/android/app/Activity.java
7b7711680244108923f0dbb4ca6e35db7e659e6a 04-Mar-2017 Philip P. Moltmann <moltmann@google.com> TRON log important auto-fill events

Example log from
android.autofillservice.cts.LoginActivityTest#testAutoFill#testAutoFillOneDatasetAndSave
(translated from numbers of human readable string):

AUTOFILL_SESSION_STARTED
package=android.autofillservice.cts
AUTOFILL_REQUEST
type=TYPE_SUCCESS
package=android.autofillservice.cts
FIELD_AUTOFILL_SERVICE=android.autofillservice.cts
FIELD_AUTOFILL_NUM_DATASETS=1
AUTOFILL_FILL_UI
type=TYPE_ACTION
package=android.autofillservice.cts
FIELD_AUTOFILL_NUM_DATASETS=1
FIELD_AUTOFILL_FILTERTEXT_LEN=0
AUTOFILL_DATASET_APPLIED
package=android.autofillservice.cts
FIELD_AUTOFILL_NUM_VALUES=2
FIELD_AUTOFILL_NUM_VIEWS_FILLED=2
AUTOFILL_SAVE_UI
package=android.autofillservice.cts
FIELD_AUTOFILL_NUM_IDS=2
AUTOFILL_DATA_SAVE_REQUEST
type=TYPE_SUCCESS
package=android.autofillservice.cts
FIELD_AUTOFILL_SERVICE=android.autofillservice.cts
AUTOFILL_SESSION_FINISHED
package=android.autofillservice.cts

Test: Ran auto-fill tests and looked at event log.
Change-Id: I58aaa58e4435e7d04c8cd91878411943d3eb13de
/frameworks/base/core/java/android/app/Activity.java
2f8fb1f62f2840701e3e16497eb8191f38b72e0b 13-Mar-2017 Svet Ganov <svetoslavganov@google.com> Fix a few auto fill ussues

1. Ensure clicking on a focused view brings up autofill if needed

2. Notify the autofill manager in a couple of cases we missed

3. Renamed the AutofillManager app facing APIs to better reflect what
they do and added a API for the app to cancel the autofill interaction

4. Fix view structure dispatch where the ordering of children for autofill
was mixed with ordering of direct view children - the autofill children
may be indirect as views can be marked not important for autofill

5. Show scrollbars only if there are more fill options than want is shown

6. Show only three fill options and the rest can be accessed with a scroll

7. Remove the list divider to allow fill items to control all fill window content

8. Renamed the autofill manager internal service classes to xxAutofillxx

9. Fixed a comment that was not addressed in a previous CL

10. Showing max three fill options - rest needs a scroll

11. Make sure fill UI shown when filter with no matches is changed
to filter with some matches

12. Make sure the fill window has a shadow

Test: Autofill CTS tests pass and manual

bug:36038929
bug:36040101
bug:36149166
bug:36034681
bug:36126001
bug:36035654

Change-Id: Ic8726146fc3c0a19d3e536becdd63fb65622136e
/frameworks/base/core/java/android/app/Activity.java
640f30a7763b0a4b80c767acb84c740aac04768b 07-Mar-2017 Felipe Leme <felipeal@google.com> Replaced auto-fill by autofill to keep it consistent with API style.

This change will affects 2 types of apps: autofill service implementations
and apps that use autofill APIs.

Since just the former is known to be used at the moment, we're not trying
to keep backward compatibility with the latter.

Bug: 35956626
Test: CtsAutoFillServiceTestCases pass
Test: android.provider.SettingsBackupTest pass

Change-Id: Ia720083508716deae9e887f9faa7ae7c5a82f471
/frameworks/base/core/java/android/app/Activity.java
189796dace361bb426b8dffd9d8d167b4a4ee59b 23-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Expose isStateSaved() in FragmentManager."
27b0dc0287022ce7b644ec92d8de6f98e33a6c09 21-Feb-2017 George Mount <mount@google.com> Expose isStateSaved() in FragmentManager.

Bug 35594367

Protect the FragmentManager during onBackPressed() from
changing the state after the state was saved.

Test: I15891a70699308eddda4e55fa0eb96064ffa7b17
Change-Id: I10f823801e85ca200351a64b14975c4421b9068b
/frameworks/base/core/java/android/app/Activity.java
17db9dc38c2ac44f3156ad2fbff263aef3fe0447 22-Feb-2017 Svet Ganov <svetoslavganov@google.com> Fix a memory leak in AutoFillManager

Test: Auto-fill CTS tests pass

bug:35435080

Change-Id: I3006cd8394a04bcd64da015f392d084267646366
/frameworks/base/core/java/android/app/Activity.java
00c771dc7d8242362f1491ae4ce3efd641235b36 19-Feb-2017 Svet Ganov <svetoslavganov@google.com> Add support for remote views backed auto-fill UI

Test: CTS and manual

Change-Id: Ia09f0208d78439491052e4886a0e71c387b73370
/frameworks/base/core/java/android/app/Activity.java
b047b8bd7e363081e91ba6cbc8d09cd355624584 09-Feb-2017 Andrii Kulian <akulian@google.com> Report move to display for activities that handle config changes

When activity that is moved between displays handles all configuration
changes, it won't be restarted. This CL adds a callback to the client
to notify it about display change. Usually it will be followed by
onConfigurationChanged, except when configuration didn't actually change.
When activity is recreated, it won't receive onMovedToDisplay.

Bug: 34862802
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testOnMovedToDisplayCallback
Change-Id: I9a9501cab788623ada15a31efb53e4b2378639fe
/frameworks/base/core/java/android/app/Activity.java
782043caf81055aa1c331e9cc15b24a10e1bf17a 11-Feb-2017 Svet Ganov <svetoslavganov@google.com> Refactor auto-fill

* Fix a layering issue where auto-fill manager which is in view
depended on activity which is in app

* Moved auto-fill classes to view or service based on their
purpose and removed dependecy on the classes in view to the
classes in service

* Push state to local auto-fill manager whether auto-fill is
enabled to avoid making IPC for every focus transition if
the user did not enable the feature

* Remove unnecessary offload to messages when handling calls
to auto-fill manager service as these are made over a oneway
interface and in general they do almost no work and typically
we do these on the binder thread

* Removed id from data set and fill response as the provider
can embed everything it needs to id them in the auth pending
intent

* Enforce the auth UI to be only an activity as this will work
with multi-window, recents, and back and also does not require
draw on top of other app special permission

* Authentication also no longer requires passing a remotable
callback to the auth activity but the activity handles the
request as if called for a result

* Handling stopping of a user to clean up in-memory state as
well as handling when a user gets unlocked as a provider may
be non-direct boot aware

* User the correct context when creating an auto-fill manager

* Move the receiver that listens for requests to hide system
windows to the manager service as the UI is a singleton and
no need every per-user state to register its own

* Removed extras from dataset as the only case a provider needs
to associate state with a dataset is for auth and the provider
can embed this data in the auth pending intent

Test: manual and CTS

Change-Id: I4bc54c13cf779d7f6fdb3ab894637f9fac73f603
/frameworks/base/core/java/android/app/Activity.java
651ea36f5aaf5751b16bc98899c31fe2ef3cd5c3 09-Feb-2017 Peeyush Agarwal <apeeyush@google.com> Merge "Extend MenuItem to allow modifier keys for shortcut"
e631e32a1a771a36267af3f8af8b64e9365bc19e 19-Oct-2016 Peeyush Agarwal <apeeyush@google.com> Extend MenuItem to allow modifier keys for shortcut

Before this, CTRL was the default modifier for MenuItem shortcuts.
Now, It's possible to specify the modifier in XML or via MenuItem
methods.
The modifier list includes META, CTRL, ALT, SHIFT, SYM and FUNCTION.

WIP on support library implementation

Bug: 32165848
Test: Run the tests using following commands:
> cts-tradefed run cts-dev -m CtsViewTestCases -t
> android.view.cts.MenuTest#testPerformShortcut
> cts-tradefed run cts-dev -m CtsViewTestCases -t
> android.view.cts.MenuInflaterTest#testInflateShortcutModifiersFromXml

Change-Id: I7db4607d4657451934761914efe4c250de109653
/frameworks/base/core/java/android/app/Activity.java
bab851c7c9dfe6f3d063a1009c4d57cfa2ff005c 04-Feb-2017 Felipe Leme <felipeal@google.com> Refined session management so Save can be automatically called.

This is yet another big refactoring:

- AutoFillManager keeps track of its current AutoFillSession.
- Views call AFM.startSession(View) when they can trigger autofill.
(virtual views can call it as well). At this point, the manager
sets an AutoFillSession, gets the activity token, and passes it to
the service.
- Subsequent calls to AFM.start() will be ignored since the session
is set.
- When the Activity is gone, it calls AFM.finishSession().
- Simlilarly, virtual views could call it as well.
- Added getAutoFillValue() to View.
- Removed AFM.updateAutoFillInput(childId): virtual views should now
call startSession(childId) to start a session, and use the
VirtualViewListener callbacks for updates.
- Change AutoFillValue to use String (which is immutable) instead of
CharSequence for text values.
- Check if view is enabled before auto-filling.
- Removed 'cmd autofill fill' since it would require the appCallback
- Automatically dismiss the snack bar after 30s
- Moved the "don't change autofill value when autofilling" Inception
logic into the service side.
- Etc...

BUG: 34819567
BUG: 33269702
BUG: 31001899

Test: manual verification
Test: CtsAutoFillServiceTestCases passes

Change-Id: I5fad928d4d666701302049d142026a1efa7291cd
/frameworks/base/core/java/android/app/Activity.java
ff5659fbc3026e621bdd926e96096e2957cfd42e 02-Feb-2017 Narayan Kamath <narayan@google.com> Revert "Call ActivityCallbacks after corresponding activity methods"

This reverts commit 660cf30e2100d8ed40198c95f93b61e5d1cdb10c.

bug: 34415265
bug: 34914977
Test: chrome launches

Change-Id: I170365fd47313bafb0d722e6d55ee119336137c4
/frameworks/base/core/java/android/app/Activity.java
40c509ff0fda06c249bc6e9064dc63605f783bfc 01-Feb-2017 Sergei Vasilinetc <sergeyv@google.com> Merge "Call ActivityCallbacks after corresponding activity methods"
660cf30e2100d8ed40198c95f93b61e5d1cdb10c 24-Jan-2017 sergeyv <sergeyv@google.com> Call ActivityCallbacks after corresponding activity methods

Test: android.app.cts.ActivityCallbacksTest
bug:34415265
Change-Id: I1d8dd3a5c564c2036174a686aeb0eaf0883c0a55
/frameworks/base/core/java/android/app/Activity.java
b64e777f6c14d862f221f4da814079df22663db1 09-Dec-2016 Chet Haase <chet@google.com> Add methods to query animation state

Testing utilities want the ability to know whether things in the UI
are in flux and they need to wait before testing on-screen values.
These changes (a subset of what's needed, but will have to do for
a start) allow querying of ActivityTransitions and ProgressBar, two
common/difficult pieces in the puzzle.

Test: CTS tests at ag/1835467
Bug: 30978257 Provide view transition Api to prevent flaky tests

Change-Id: If63b3d0dde2178d826ac1dbfad0fc50e5ed9a780
/frameworks/base/core/java/android/app/Activity.java
bd00fef41ce38d2c711bd4151997c1cd8964b712 25-Jan-2017 Felipe Leme <felipeal@google.com> Moar AutoFill Framework refactoring...

* Encapsulated application-level auto-fill logic on AutoFillSession.
Currently, Activity.java directly manages the IAutoFillCallback binder
object used to auto-fill its views, but this logic need to be
extended so Views can use it to draw the auto-fill bar.

* Pass auto-fill id and boundaries to requests
So AutoFillUI can display its affordance in the right places.

* Uses a new auto-fill id on View (instead of reusing accessibility's).
That allows moving the logic on whether a new request should be made or
the existing UI moved to the service side.

* Split service methods in 2, for shell cmd and app
And applied the right permission check on both.

* Removed CancelationSignal from onSaveRequest()
Since it's not really needed.

* Etc...
¯\_(ツ)_/¯

BUG: 34637800
BUG: 31001899
Test: CtsAutoFillServiceTestCases passes
Test: manual verification

Change-Id: Ibd0cb2cfff6d0f6bb6b697a423ed5e89df687b82
/frameworks/base/core/java/android/app/Activity.java
0ce4b0e4c31a65864e0cda3c9d3fb6fe8a40f2ed 26-Jan-2017 Elliot Waite <elliotwaite@google.com> Fix @links in reference docs. am: 54de77470d am: ab978c035e am: 28ba4722a9
am: 9b21265b2c

Change-Id: If246ebdb36cf2832d5a6c42cbe752e290b6fb6e8
ab978c035eda5e6e42f3856d5edf132e76e45994 26-Jan-2017 Elliot Waite <elliotwaite@google.com> Fix @links in reference docs.
am: 54de77470d

Change-Id: Id38c30bad13d6b61ed504a06471b9f197b360f7b
d5ed3bc5f302f673f4df540073beebc8421ffc63 26-Jan-2017 Elliot Waite <elliotwaite@google.com> Fix @see tag.

Test: make ds-docs

Change-Id: Iefdc92a7139155eccca11a5393da6f31d8603322
/frameworks/base/core/java/android/app/Activity.java
54de77470de4f605eef7f4b4e01718b301fe275e 12-Jan-2017 Elliot Waite <elliotwaite@google.com> Fix @links in reference docs.

Change-Id: I40cea46efd80c448640ff69753698fe8404da40b
/frameworks/base/core/java/android/app/Activity.java
e84ad491c82168228f042644285a2581fc619baf 25-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add color mode to activity/window"
4832745b84d6a358582f2264d22acacf25e01b07 24-Jan-2017 Romain Guy <romainguy@google.com> Add color mode to activity/window

The color mode lets an application request a wide color gamut for
a specific window. This will also be used in the future to request
HDR. The color mode is currently either default (sRGB) or an undefined
wide gamut color space chosen by the platform. These attributes could
later be used to choose a specific color space if we deem this important
or useful.

This change also renames the various "colorimetry" attributes and
constants to "color mode" for consistency. These symbols were
added in O and can be safely renamed.

Test: CtsColorModeTestCases
Bug: 32984164
Change-Id: I4d4691dd12dbe3f3aa6a5cf893cff39aa16c739e
/frameworks/base/core/java/android/app/Activity.java
d339538a67b7d6bb3d7ad73f31ad20ffc932f891 13-Dec-2016 Winson Chung <winsonc@google.com> Remove dependency on resizable activity to enter PiP.

- Removing the requirement for activities to have both the
resizeableActivity and supportsPictureInPicture attribute
to enter PiP. The activity may still be resized when
entering picture-in-picture.

Bug: 34256643
Test: android.server.cts.ActivityManagerPinnedStackTests
Change-Id: If6bd4721c53072e5518f554a8c7598705517c132
/frameworks/base/core/java/android/app/Activity.java
f001fefff3745c29e2ff6903d69ad921df1ea277 05-Jan-2017 Abodunrinwa Toki <toki@google.com> Update TextAssistant interface.

Rename to TextClassifier
Move to android.view.textclassifier package
Adds getTextClassifierInfo(...)
Changes addLinks(...) to getLinks(...)

This CL also integrates this interface with framework components
and passes a context to TextClassificationManager.

Test: Tests will be added with implementation.
Bug: 34661057
Change-Id: If9e90f034ebb702c1f78e72b6a844f39eebf738f
/frameworks/base/core/java/android/app/Activity.java
c2baac059c42765351745f1e2d46b685fe889db7 11-Jan-2017 Winson Chung <winsonc@google.com> Updating picture-in-picture API.

- Consolidating to enterPictureInPictureMode(), the new method will
attempt to put the activity into picture-in-picture mode if the
activity is visible or pausing in a state that would allow us to
pip it. Also consolidate the setting of the PiP aspect ratio and
actions into setPictureInPictureArgs().
- Fixing issue with onPause not completing when moving the
paused activity between stacks while dispatching onPause

Bug: 33692987
Test: android.server.cts.ActivityManagerPinnedStackTests

Change-Id: I3af2365f31a9b95de4a92eae46b77108947b2a49
/frameworks/base/core/java/android/app/Activity.java
1abe85c867f552a5cdf50fba3f60d796284c2102 07-Jan-2017 Vadim Tryshev <vadimt@google.com> Converting action bars to clusters.

ActionBar keyboard navigation logic is now implemented via clusters.
Old implementation using setTouchscreenBlocksFocus and Ctrl+Shift+<
shortcut is removed.

Looking at the code, I can’t rule out existence of all 3 categories
(1) action bars with a nested toolbar, (2) action bars without a
nested toolbar and (3) Toolbars outside of action bars.
Because of this, I set “cluster” attribute both on action bar and
toolbar, and have code to avoid nested clusters in case (1).

Support lib’s action/tool bars aren’t converted, however, they
didn’t regress since Ctrl+Shift+< never worked for them. Will be
done after feature freeze.

Bug: 32151632
Test: Manual checks.
Change-Id: Ieb93980088c0fb385a9bc8a5d218ffc269b94dc5
/frameworks/base/core/java/android/app/Activity.java
6d553874bed06280766ae24ea605f9bbde3f5a4a 09-Dec-2016 Felipe Leme <felipeal@google.com> YAMAFFR - Yet Another Major AutoFill Framework Refactoring

- Explicitly split View methods into Assist and AutoFill methods, rather
than use an overloaded method that takes flags.
- Simarly, renamed ASSIST_FLAG_SANITIZED_TEXT and
ASSIST_FLAG_NON_SANITIZED_TEXT flags to
AUTO_FILL_FLAG_TYPE_FILL and AUTO_FILL_FLAG_TYPE_SAVE respectively.
- Created a AutoFillUI class to host the auto-fill bar and other UI
affordances.
- Moved the temporary notifications to AutoFillUI (eventually that
class will host the real UI).
- Moved FillData to android.app.view.autofill package.
- Split IAutoFillCallback in 2 (IAutoFillAppCallback and
IAutoFillServerCallback, residing at the app and system_server
respectively), so service cannot fill the app directly (which lets
the framework control the UI).
- Moved assist's IResultReceiver to AutoFillServiceImpl so
system_server can act as a mediator between the AutoFillService
implementation and the app being auto-filled.
- Replaced FillData and FillableInputFields by a bunch of new objects:
- FillResponse contains a group of Datasets, each representing
different values
that can be used to auto-fill an activity (for example, different
user accounts), optional id of fields the service is interested
to save, and an optional bundle for service-side extras.
- Dataset contains a name, Fields, and an optional bundle for
service-side extras.
- Fields contain an AutoFillId (parcelable) and a value (Bundle)
- Changed the temporary notifications to emulate the new workflow:
- Initial notification requests the auto-fill data but do not
auto-fill.
- Once service calls back, a new notification is shown with the
results.
- Then if the user selects a dataset, the activity is auto-filled
with it.
- It also shows a notification to emulate what can be saved.
- Created an VirtualViewDelegate for views that uses a virtual
hierarchy for assist data.
- Added new methods on ViewStructure to add children with virtual ids.
- Added 2 methods on View to support auto-fill:
- autoFill(Bundle) to auto-fill the view.
- getAutoFillType() to return how the view can be auto-filled.
- AutoFillType defines the input fields that support auto-fill:
- Text fields (like EditText)
- Toggle fields (like CheckBox)
- Lists (like RadioGroup)
- AutoFillType can also have a sub-type representing its semantic (for
now only text fields have it, and it's the same as getInputType()).
- etc :-)

Bug: 31001899
Test: manual verification
Change-Id: I2dd2fdedcb3ecd1e4403f9c32fa644cb914e186f
/frameworks/base/core/java/android/app/Activity.java
fb5b1477819f7ae07bd110f8e134e56c6d72d53f 10-Jan-2017 Mark Renouf <mrenouf@google.com> Merge "Update javadoc for startActivityForResult(Intent, int, Bundle)"
a29eb98d9fba99528f0809c448daf2ddae37de7e 14-Dec-2016 Winson Chung <winsonc@google.com> Adding support for PIP actions.

- Introduced generic RemoteAction to represents an action
that can be made across processes with an icon and text
description based on a Notification action.
- Modified PinnedStackController to ensure that it notifies
the listeners from the source of truth, this ensures that
SysUI is in the right state if killed and re-registers
itself.

Test: Enable menu & minimize in SystemUI tuner.
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testNumPipActions

Change-Id: I5b5d0cf9de3f06b5687337d59cfb91e17355bdb1
Signed-off-by: Winson Chung <winsonc@google.com>
/frameworks/base/core/java/android/app/Activity.java
d4f08a007d7b640c0bd046c7a8168fb93491b7e3 13-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "AutoFill Framework refactoring."
1ca634a544a47193dd9e57f9b3eb3e42ab0dbbf1 29-Nov-2016 Felipe Leme <felipeal@google.com> AutoFill Framework refactoring.

The AutoFill Framework uses the same AssitStructure provided by the Assist API
and so far it was using the same methods as well, both internally and externally
(public API).

Sharing that internal code internally is fine, but the public APIs must distinguish between the 2 cases so they can fill the assist structures accordingly (although the initial implementation still shares the same logic).

This CL also splits the original 'auto-fill' request in 2 types of requests,
which are set by View flags:

- ASSIST_FLAG_SANITIZED_TEXT
- ASSIST_FLAG_NON_SANITIZED_TEXT

It also added new methods and callbacks to handle save requests.

Bug: 31001899
Test: manual verification

Change-Id: I4eb09099dc19a43cb7e053e64d939aed3704b410
/frameworks/base/core/java/android/app/Activity.java
8158af53e81d8dc062872a682e4d415f7929a28b 23-Nov-2016 Abodunrinwa Toki <toki@google.com> Introduce TextClassificationManager.

This handles smart selection and language detection features.
This CL only contains code to integrate the TextClassificationManager.
Implementation will be added in a follow up CL.

Test: Test will be added when TextClassificationManager is added.
Bug:32503402
Change-Id: I5f22150ff998156fbc91b51c733d93478efaa51f
/frameworks/base/core/java/android/app/Activity.java
b5c41b786862618b22e532849ddcca48bdc40025 08-Dec-2016 Winson Chung <winsonc@google.com> Adding ability for an app to request auto-enter picture-in-picture.

- If an activity requests that it can auto-enter PIP, then we will trigger
it to enter PIP when the task is effectively being occluded. This does
not affect the activity when the screen is locking, or if it starts new
activities within its own task, or if it finishes itself, or if there is
already a PIP activity.
- Changed setPictureInPictureAspectRatio to also specify the aspect ratio
to use when auto-entering PIP. If the activity is not PIP'ed and has
not requested auto-enter, then the call continues to fail.

Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testAutoEnterPictureInPicture
Test: #testAutoEnterPictureInPictureLaunchActivity
Test: #testAutoEnterPictureInPictureFinish
Test: #testAutoEnterPictureInPictureAspectRatio
Test: #testAutoEnterPictureInPictureOverPip

Change-Id: I6477b6d1f160cf0219d935123bbb505f57ee7a56
/frameworks/base/core/java/android/app/Activity.java
df1710dc6e36e26bb3fb9ccd8f447e04d11c2a42 06-Dec-2016 Ned Burns <pixel@google.com> Modify SwipeDismissLayout to perform its own exit animation am: 7d6cb913de am: f9566827f2
am: 768f62aac1

Change-Id: Ibe1a8b9a7cf71b715ae7d4e0157b5cdf1d52e81d
7d6cb913de9b51dba0bae79e527b7d4fe79eb35d 02-Dec-2016 Ned Burns <pixel@google.com> Modify SwipeDismissLayout to perform its own exit animation

Instead of relying on the window animation system, in the special
case of a swipe-dismiss, disable any default window exit animation
and perform a custom animation. This bypasses some bugs in the
window animator codebase and allows us to have a nice "rebound"
animation if the user doesn't swipe far/fast enough to trigger a
dismiss.

Bug: 33041168
Change-Id: Ied45700d35a59950bacef1ba0650eaa5bc60fadb
/frameworks/base/core/java/android/app/Activity.java
cca6d05fb4f37fa6e68e9ab2236a8cfda516f1a7 02-Dec-2016 Mark Renouf <mrenouf@google.com> Update javadoc for startActivityForResult(Intent, int, Bundle)

singleTask no longer adds FLAG_ACTIVITY_NEW_TASK by default since Android 5+.
Changed to refer to the specific cause of the problem described.

Test: built for shamu-eng

Change-Id: I7a6601520370a69533a989f1c8eea0e659239777
/frameworks/base/core/java/android/app/Activity.java
d0d9ceb30c1f6fa674de98274c0684c3418d66d3 21-Nov-2016 Abodunrinwa Toki <toki@google.com> Introduce TextAssistant for Smart Text Share feature.

Bug: 30982298
Test: CTS tests to be added in a follow up CL.
Future CLs will add implementation detail.

Change-Id: Iad550447a4b3552340c0ada75fda60f97f0913aa
/frameworks/base/core/java/android/app/Activity.java
dc589ac82b5fe2063f4cfd94c8ae26d43d5420a0 11-Nov-2016 Sudheer Shanka <sudheersai@google.com> Update usage of ActivityManagerNative.

- 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
/frameworks/base/core/java/android/app/Activity.java
29a5b0d0f1cc7fd6cbfe97c816b8a687d9e438cc 25-Oct-2016 Felipe Leme <felipeal@google.com> Added a callback for AutoFillService.

So far AutoFillService only received the assist data from framework; in
this CL, it also offers a method where the auto-fill provider can send
the auto-fill data back to framework.

The workflow is:

- AFMSI calls a new AM method (requestAutoFillData(), instead
of requestAssistContextExtras()).
- The assist receiver is located in the app, not on system service.
- AM uses a new request type (ASSIST_CONTEXT_AUTOFILL) to request the
assist data to the activity.
- ViewStructure has a new setAutoFillId() method which is used to set an
unique id for the view.
- View uses the accessibility id to implement the auto-fill id.
- When the activity fullfills the request, it creates an IAutoFillCallback
remote object - that will be used to set the auto-fill fields - and
returns it in the assist bundle (using the
VoiceInteractionSession.KEY_AUTO_FILL_CALLBACK key).
- The app-visible AutoFillService class offers an onFillRequest() method,
which contains the assist data and a FillCallback used to handle it.

BUG: 31001899
Test: manually built and ran it

Change-Id: I3d208c14e81022dc96dd03f38bbe25a778b24a67
/frameworks/base/core/java/android/app/Activity.java
84a3834a0c23c4fee4f909f986ba6975a87c807b 09-Nov-2016 Winson Chung <winsonc@google.com> Adding API for apps to specify their aspect ratio when entering PIP.

Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testEnterPipAspectRatio
Test: #testEnterPipExtremeAspectRatios

Change-Id: I9efba942b9a6451dec07428fe1e428ef4a896867
/frameworks/base/core/java/android/app/Activity.java
fc46e9b643881b7b2ab76854f3a0ac077e9def8d 22-Oct-2016 Sudheer Shanka <sudheersai@google.com> Move IActivityManager to aidl.

Bug: 30977067
Test: Existing tests are passing, dump commands still working.
Change-Id: I9cf81c4d381ebce14a6c701e409cbb269f2ff1fb
/frameworks/base/core/java/android/app/Activity.java
914a8a306055185730fb318cb157b264d63ef604 30-Aug-2016 Mark Lu <marklu@google.com> docs: fix broken links in Activity reference am: fa43485910 am: 497c2907fd am: eab610d0a6 am: b03a1b8b25
am: b49a7f8602

Change-Id: Ia961100dce636cdb5aae8f4882012a50d506b6f4
497c2907fd7180fb05b3c1e9467041a206c8ab05 25-Aug-2016 Mark Lu <marklu@google.com> docs: fix broken links in Activity reference
am: fa43485910

Change-Id: I72cebe96e1ea0c1950ca316bc80c337bfdde9002
fa4348591050593753c88fc7499593837dd99c4c 12-Aug-2016 Mark Lu <marklu@google.com> docs: fix broken links in Activity reference

Bug: 30142414
Bug: 30837469
Change-Id: If370e49fee32df41b7dab93d6c89c79a9835dabb
/frameworks/base/core/java/android/app/Activity.java
49ca529a850e60482ddcc8c0762105b4aa10f35f 10-May-2016 Jeff Sharkey <jsharkey@android.com> Avoid caching services with missing binders.

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
/frameworks/base/core/java/android/app/Activity.java
717b2b9cd037ddb1a85a26ab88fe7d633c88a565 10-Aug-2016 Chong Zhang <chz@google.com> Merge "Put activity into stopped state if recreated while stopped"
fec694eca19f695556a8530bf2f8720cce94fe46 09-Aug-2016 Chong Zhang <chz@google.com> Put activity into stopped state if recreated while stopped

Move handling of recreate from client side to AMS, so that relaunch
happens at the right condition and activity goes to right state
after it's relaunched.

bug: 30060825
Change-Id: Ia475c26927b305eb25ae12be8640aab1fb7677a0
/frameworks/base/core/java/android/app/Activity.java
a3d2693e05cb80292986249b3eb09f405d99552d 15-Jul-2016 Andrei Stingaceanu <stg@google.com> Keyboard shortcuts: minor Activity broadcast refactor

Since the broadcast intents have an action, specifying an explicit
component name is not needed. Specified only the package name and
left it for the system to resolve the full component name for the
receiver that handles the action in that package. Also got rid of
warning: "Calling a method in the system process without a
qualified user" by correctly sending the broadcast as the SYSTEM
user.

Bug: 28012198
Change-Id: Ia572fb1b7f2f3c96160d16e2842d6aff3b7f10a1
/frameworks/base/core/java/android/app/Activity.java
b9d2791a653e6f4e61294f7a27dadd7601288db2 24-Jun-2016 Scott Main <smain@google.com> Merge \"Merge \\\"fix bad contrast in table links by switching to normal table cells instead of headings.\\\" into nyc-dev am: fd0eeb0379 am: 8c9bd9cb28\" into nyc-mr1-dev-plus-aosp
am: 10aee22fa1

Change-Id: I5b17cb4187ceece4adc7284534b151ec1fee8003
afd1e8e259b8dacf5a376f139358407931f84381 24-Jun-2016 Scott Main <smain@google.com> Merge \\"fix bad contrast in table links by switching to normal table cells instead of headings.\\" into nyc-dev am: fd0eeb0379
am: 8c9bd9cb28

Change-Id: I557f9300ab69486a26f30bed5a244baee43319e7
b8516f10297a857333480a6b401022b5dd3b733f 24-Jun-2016 smain@google.com <smain@google.com> Merge \"fix bad contrast in table links by switching to normal table cells instead of headings.\" into nyc-dev
am: fd0eeb0379

Change-Id: I68b578ac0bb343dff66bcbc5bd5c652c93e9864f
10e29b895e702f95163d7a8b8102b2a9e7a342f1 23-Jun-2016 smain@google.com <smain@google.com> fix bad contrast in table links by switching to normal table cells instead of headings.

Change-Id: I91139ac2f01a9e099ffb5f65f4579a0b33ced5ab
/frameworks/base/core/java/android/app/Activity.java
9c02930ea05b7c9f20032051bb3e7ef45fb0da09 09-Jun-2016 Adam Powell <adamp@google.com> Merge \\\"Make Activity.getReferrer tolerate custom Parcelables in intents\\\" into nyc-dev am: 7a37f8945f am: 64e3a6d760
am: 948b94ff2f

Change-Id: I941cabb11f6221eb8cb00487058145e6e83d4330
64e3a6d76047c460ff702e85f8d8ec77e571cbd1 09-Jun-2016 Adam Powell <adamp@google.com> Merge \"Make Activity.getReferrer tolerate custom Parcelables in intents\" into nyc-dev
am: 7a37f8945f

Change-Id: I8e14173836f153d75b9c9f29f3493335af5f2763
d3c63a66f26d2e4682eca12101c58077f6264b70 09-Jun-2016 Adam Powell <adamp@google.com> Make Activity.getReferrer tolerate custom Parcelables in intents

Referrer information is passed as an intent extra to each Activity,
therefore if that intent contains a custom parcelable unmarshaling
the intent extras will fail in a call to getReferrer. Insulate apps
from this concern and log a warning when it happens.

Bug 28972438

Change-Id: I37dbc033bfcfe816e4b58b382c012854fbed943b
/frameworks/base/core/java/android/app/Activity.java
1bcd351a9fb34b42557d35413852cd5c502d362a 09-Jun-2016 George Mount <mount@google.com> Merge \\"Fix NPE in startup wizard caused by former change.\\" into nyc-mr1-dev am: 3c35716655
am: 1d33feb8bb

Change-Id: I1653294849928e5667596c1d80ce29caecdf7c2f
963837821af3329cc3072d6c254b7b0f4fe118b2 09-Jun-2016 George Mount <mount@google.com> Fix NPE in startup wizard caused by former change.

Bug 29211438

Change-Id: I0c979c945e79a6982d97013f961b00db3c9a9f00
/frameworks/base/core/java/android/app/Activity.java
e6b23b6ab9bf5e4e88fd6b720c911424efa4f501 08-Jun-2016 George Mount <mount@google.com> Merge \\"Re-add Internal API for cross-task Activity used by assistant.\\" into nyc-mr1-dev am: 174e41b1fd
am: dff1fa4bb9

Change-Id: I76afa8d89b2ac1624a36b3114bd3891c9c734cee
174e41b1fdaf2bb64a2e0e87be8fcc1767e29672 08-Jun-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Re-add Internal API for cross-task Activity used by assistant." into nyc-mr1-dev
413739e8c62a7cd83ec519203a2628504b1b0d16 08-Jun-2016 George Mount <mount@google.com> Re-add Internal API for cross-task Activity used by assistant.

Bug: 29091742

This reverts commit 563df3b328f5488aaa33b894748029ed00d0e263.

This also fixes the problems experienced by b/29128683.

Change-Id: I8e3d485cb818ea9e03ca475cba88934f6f903f11
/frameworks/base/core/java/android/app/Activity.java
25007ec4df41abc056b66522c86b44eeac563047 08-Jun-2016 Chong Zhang <chz@google.com> Merge \"Merge \\\"Use getActivityToken() instead of mToken in isTopOfTask\\\" into nyc-dev am: 723e5afa9e am: 1895addcef\" into nyc-mr1-dev-plus-aosp
am: c6a520e090

Change-Id: If5550e5db119b201228c391e049d54f3760cca31
d9a7b1e07bc9961496d7f944222a617d438a9507 07-Jun-2016 Eino-Ville Talvala <etalvala@google.com> Merge "Revert "Internal API for cross-task Activity used by assistant."" into nyc-mr1-dev am: fe3ecdab1b
am: abb7488998

* commit 'abb74889982603f6070100033c8fa2b1eef3d8de':
Revert "Internal API for cross-task Activity used by assistant."

Change-Id: Id397afe9221e2562e096befc1b105233618ca7ef
563df3b328f5488aaa33b894748029ed00d0e263 07-Jun-2016 Eino-Ville Talvala <etalvala@google.com> Revert "Internal API for cross-task Activity used by assistant."

This reverts commit 04073dc5be4c8faad41f549617ed1c3ef999d6b2.

Bug: 29128683
Change-Id: I7d9bb7bb388f38e8e5ab159a211ee7f9f4fb7ab9
/frameworks/base/core/java/android/app/Activity.java
a9e1ad04fb27f101f62dacf35771671651204423 04-Jun-2016 George Mount <mount@google.com> Merge "Merge "Internal API for cross-task Activity used by assistant." into nyc-mr1-dev am: 3af59ef42c" into nyc-mr1-dev-plus-aosp
am: 74babe679b

* commit '74babe679b0f8e17ed73280b18bc19153764c55e':
Internal API for cross-task Activity used by assistant.

Change-Id: I985c67a465e88f74e66600709c187c3dfc9734e9
04073dc5be4c8faad41f549617ed1c3ef999d6b2 27-May-2016 George Mount <mount@google.com> Internal API for cross-task Activity used by assistant.

29091742

A new internal API has been created for use by assistant
to launch an Activity Transition from a non-Activity.

The ActivityOptions are also passed along when using
a spring board Activity so that the shared elements
can be properly synchronized.

This also fixes TransitionManager.endTransition so
that it forces Transitions to end the animations.

Change-Id: Id18d9765bfc0c7b438e17966455aa66d3fa3aeda
/frameworks/base/core/java/android/app/Activity.java
6f9ae4ffc56919cba4f44a78af4d6864ea09e7c8 03-Jun-2016 Chong Zhang <chz@google.com> Use getActivityToken() instead of mToken in isTopOfTask

mToken could be local tokan and causes IllegalArgumentException.

bug: 29072444
Change-Id: I0f889a70a848ffea31663ed80337e1605c75223e
/frameworks/base/core/java/android/app/Activity.java
6f2f02e4ae5d61111bf52dbddd105cbc0a0f5e74 27-May-2016 The Android Automerger <android-build-merger@google.com> Merge commit '93c1d3aa6e20b52a37548af0bf9f9a66948a7611'

* commit '93c1d3aa6e20b52a37548af0bf9f9a66948a7611':
docs: Refinements for testing
Fix toast with accessibility and app pinning
Updated link to material design page.
Change overdraw test to use windowbackground
Prevent callbacks during DrawableContainer child initialization
Fixing crash in SysUI due to invalid group.
Cherry pick: docs: Edited "Features Reference" section in "<uses-feature>" page.
Fix Activity Transition mess-up.
Time to #NameAndroidN!
Prevent use of a null sCallbackObj by Hardware FLP
Fixed the relative time spoken with accessibility
Use backstop timeouts on asynchronous countdown during preflight
f43ea5d4d2286a9b00435893f7528255a898d4d7 26-May-2016 George Mount <mount@google.com> Fix Activity Transition mess-up.

Bug 28610520

isTopOfTask() was returns false in onResume always because
it wasn't being made visible until after onResume. The visibility
of the window is not important for this method (older versions
didn't check it at all), so that was removed.

Change-Id: I45e506e72356cc3808e2e9340739726c99da7d97
/frameworks/base/core/java/android/app/Activity.java
5c96320e40285c4e2d5cdfec4134b707527764d9 17-May-2016 Andrii Kulian <akulian@google.com> DO NOT MERGE Hide decor caption APIs

Hiding the APIs for now since we're not releasing freeform yet and it's
better not to expose them now in case we'll decide to change them later.

Bug: 28774476
Change-Id: Ic2de33c5a611a515fc1c72535587ebf2e0a03a7f
/frameworks/base/core/java/android/app/Activity.java
d1ad65114959d77fe041fd78a581d4f395ca4014 17-May-2016 Clara Bayarri <clarabayarri@google.com> Merge "Remove "if it succeeds" wording from requestShowKeyboardShortcuts" into nyc-dev am: bee2648027 am: 60d0910dc8
am: 4cfd27f9aa

* commit '4cfd27f9aa10bcbf272935e142d1171730e7c7b9':
Remove "if it succeeds" wording from requestShowKeyboardShortcuts

Change-Id: Ia8c7ede8cf8ebd706cfdf51024c001a9538be49a
ab591ba4b6acb1161508d1bf1f58809f61462f3a 16-May-2016 Clara Bayarri <clarabayarri@google.com> Remove "if it succeeds" wording from requestShowKeyboardShortcuts

Bug: 28775576
Change-Id: Ib7bc2d78cc074c14384f5a86437c684462f1fb54
/frameworks/base/core/java/android/app/Activity.java
bec98ff68b9c8f5944ad2c4953515f04db510363 16-May-2016 Clara Bayarri <clarabayarri@google.com> Merge "Rename requestKeyboardShortcutsHelper" into nyc-dev am: d34396443e am: 8184f2e545
am: 8bccf39875

* commit '8bccf39875b479c6e09eab3b107817028d90c793':
Rename requestKeyboardShortcutsHelper

Change-Id: I83b36970bf652530797d7f383dbbbd090cd972ca
ac6f034f2a25422e852e3dc17ae4eae33ef9b05a 16-May-2016 Clara Bayarri <clarabayarri@google.com> Rename requestKeyboardShortcutsHelper

Per API council feedback

Bug: 28775576
Change-Id: I1c4f98d7ec0d848f0c387aaedf8a0ed80628c64e
/frameworks/base/core/java/android/app/Activity.java
e7ffd8086fdfc1407a06e923e5be2e02e34d1504 14-May-2016 Andrew Solovay <asolovay@google.com> docs: Updates to multi-window and related docs. am: 4d93a21980 am: 8263d6c0a3 am: c88130c572 am: d29c26073e am: f975b74c0c am: 0b15a5c94f
am: 3882169d7f

* commit '3882169d7f43e011ad77adb05aca2e5d6175c7f0':
docs: Updates to multi-window and related docs.

Change-Id: Ief8906a4c0e57229b433c4e89c23990d957a4014
f975b74c0c60160092262fbc05f42f7e2584f0bd 14-May-2016 Andrew Solovay <asolovay@google.com> docs: Updates to multi-window and related docs. am: 4d93a21980 am: 8263d6c0a3 am: c88130c572
am: d29c26073e

* commit 'd29c26073e97e4c6e7825641cf6e76720df395e3':
docs: Updates to multi-window and related docs.

Change-Id: Ic4be60debb41d074d717bfb0989125299428831a
d29c26073e97e4c6e7825641cf6e76720df395e3 14-May-2016 Andrew Solovay <asolovay@google.com> docs: Updates to multi-window and related docs. am: 4d93a21980 am: 8263d6c0a3
am: c88130c572

* commit 'c88130c5724227b3ba7ef0b5ef4476fedabca650':
docs: Updates to multi-window and related docs.

Change-Id: I308c988e3a93737a478f9f2445b512e86f218643
4d93a21980f7e82bd346ad9c3a18c0c932d09253 13-May-2016 Andrew Solovay <asolovay@google.com> docs: Updates to multi-window and related docs.

Clarified behavior when activity is resized or put in fullscreen
mode, per b/28580007 . Also (per email from o-o) removed misleading
statement about when onStop() might or might not be called.

Both changes can go live now (multiwindow update applies to DP1 & 2,
and onStop() clarification applies to all versions of API), so I'll
submit as soon as this is approved.

See first comment for doc stage location.

bug: 28580007
Change-Id: Ib008f24e5796ec7810b67c91e512e679680d4afd
/frameworks/base/core/java/android/app/Activity.java
9ac4734714348818582a1654622cffcce83cbecc 12-May-2016 Ian Rogers <irogers@google.com> Merge "Remove @Nullable from primitive/void types."
9db9897215878b1d9f24bd0432419079b6c6bba7 10-May-2016 Adam Powell <adamp@google.com> Merge "Move Activity multi-window event logic out of the public methods" into nyc-dev am: 56e2aeba8f am: 6e90b67dfa
am: 82e644de2f

* commit '82e644de2f1db76e20e676086b580e224d5d9d5b':
Move Activity multi-window event logic out of the public methods

Change-Id: I2d7e79c29cbcad62727ed701c1e7d0519deca24e
81c18e6f9985a3996df5e0f2ae3a38d78263103e 10-May-2016 Ian Rogers <irogers@google.com> Remove @Nullable from primitive/void types.

Erroneous use of @Nullable caught by error prone.
Bug: 27723540

Change-Id: Ida76b2fd221142980da5c018e57c96cc6920ebc0
/frameworks/base/core/java/android/app/Activity.java
858cf036a39e01bd35216a9194001a4536c03c80 10-May-2016 Adam Powell <adamp@google.com> Move Activity multi-window event logic out of the public methods

Move the logic for dispatching multi-window mode change events to
fragments and the activity window out of the public API onFoo methods
meant to be overridden by apps. This prevents problems if an extending
class forgets to call super.onFoo in these methods and removes the
need for doing so.

Bug 28667205

Change-Id: Ibf4c543e22b95753e1e4812bbd3e81f7648de54d
/frameworks/base/core/java/android/app/Activity.java
f9d60d034e0b78a33a401aaa1741bf25e8b676ec 05-May-2016 Ruben Brunk <rubenbrunk@google.com> Merge "Update VR API docs." into nyc-dev am: 01d232988a am: 2d1a1a4521
am: d12543c983

* commit 'd12543c9836ebae9f82045ef626d09da2654363f':
Update VR API docs.

Change-Id: Ic26060e0684b983767b399490e8d47c0420a1c11
01d232988a69dfdee7f90cebf560686e458849e4 05-May-2016 Ruben Brunk <rubenbrunk@google.com> Merge "Update VR API docs." into nyc-dev
f5b388c1ae54e2fdf451e563c09ec4fc96e3a4fd 04-May-2016 Amith Yamasani <yamasani@google.com> Merge "Clear active requests on switching voice interactor" into nyc-dev am: ec07352007 am: ae4ecce1ef
am: 5e603c6fa0

* commit '5e603c6fa0b250f5eb0212fc78840eaa1d80007d':
Clear active requests on switching voice interactor

Change-Id: Ied72a73f7c8a54ed20af91fa7e36da7ffe7c2ba2
eeed06c108e060c7bced30f29ac79bd324c01f2e 04-May-2016 Amith Yamasani <yamasani@google.com> Clear active requests on switching voice interactor

When voice interactor goes null or changes, cancel all existing
active requests and clear them so that they can be re-submitted.

Bug: 28487567
Change-Id: Ibcf024efcc81ff18ef3babfa9a169292207bc816
/frameworks/base/core/java/android/app/Activity.java
927d3453d39a9048c41eddf2418a97562757e930 03-May-2016 Ruben Brunk <rubenbrunk@google.com> Update VR API docs.

Bug: 28526281
Change-Id: Iff48d02a2fee542c5ded7fc8cd6cf74957eb738c
/frameworks/base/core/java/android/app/Activity.java
45768d4c3fcbc57e8e72d4f00eb1cef5ae1ca908 03-May-2016 Jaewan Kim <jaewan@google.com> Merge "Fix crash when device doesn\'t support picture-in-picture" into nyc-dev am: bfa0f48407 am: 550533dc29
am: ce85489d4c

* commit 'ce85489d4cf8d879cd91b539bc00806f3de6bbfb':
Fix crash when device doesn't support picture-in-picture

Change-Id: I3ea6bd8c649db86f535026888efdf61a91b012d5
d98dcab679ce477c3acba298feb8fc2302e69333 02-May-2016 Jaewan Kim <jaewan@google.com> Fix crash when device doesn't support picture-in-picture

Bug: 28512987
Change-Id: Ic8287d70fed491d7493d443ba7d9633b7d9aaea9
/frameworks/base/core/java/android/app/Activity.java
203ae48ff76c9fb9bd5d7fe091aa6e2f2faf48a3 22-Apr-2016 Andrei Stingaceanu <stg@google.com> Merge "Keyboard shortcuts: dismiss when activities start via shortcut" into nyc-dev am: 1a83df8ba7 am: 9e16d11683
am: e0ea2e06ab

* commit 'e0ea2e06abafdde2974b8976ececd727e590060c':
Keyboard shortcuts: dismiss when activities start via shortcut

Change-Id: Ic86b86c3254318d17059b4650a9c7bcb652bddf3
1a83df8ba716d027ac26c9198ed3d3b8d2b98ad1 22-Apr-2016 Andrei Stingaceanu <stg@google.com> Merge "Keyboard shortcuts: dismiss when activities start via shortcut" into nyc-dev
0bf096f1b45959e260b09b2483e79187c1991f54 14-Apr-2016 Andrei Stingaceanu <stg@google.com> Keyboard shortcuts: dismiss when activities start via shortcut

* introduced a new intent DISMISS_KEYBOARD_SHORTCUTS and
and new public API in Activity (which sends a broadcast
to KeyboardShortcutsReceiver) which applications can
use to dismiss the keyboard shortcuts.

* plumbing and implementation for a new call to dismiss
keyboard shortcuts from PhoneWindowManager and used it:
** when starting activities invoked via Search+key
** when starting activities invoked via META
** when starting activities via application launch keys

* removed unused variable in
Activity#onProvideKeyboardShortcuts

Note that for apps started via touch (aka non-shortcut)
like tapping the Settings gear icon from the notification
bar the menu is not automatically dismissed.

Bug: 28012198
Change-Id: I83a8d4f342bb8a08115a648648834d0d2bac19fd
/frameworks/base/core/java/android/app/Activity.java
4465add3e198943a23f3ad570e13516a46e8c568 21-Apr-2016 Vladislav Kaznacheev <kaznacheev@google.com> Merge "Rename DropPermissions to DragAndDropPermissions" into nyc-dev am: 729c640cc8 am: 45b1e14468
am: 0ee7fecd43

* commit '0ee7fecd437b4ba4676985e072c940a819d46114':
Rename DropPermissions to DragAndDropPermissions

Change-Id: Id978e6f65b915955d1caff4825d89373f248d168
729c640cc887da9fe7a1b57121167a7bf83fee97 21-Apr-2016 Vladislav Kaznacheev <kaznacheev@google.com> Merge "Rename DropPermissions to DragAndDropPermissions" into nyc-dev
0392182bff9ba7888aa9cd699d2e6d3018a0d742 20-Apr-2016 Trevor Johns <trevorjohns@google.com> Merge changes from topic \'merge_docs_nyc-dev\' into nyc-dev am: 59c9a93 am: 254f1b8
am: e1b5670

* commit 'e1b56701fd219227adae615fe81f03d5db4ae433':
Remove links to createAndInitializeUser() and createUser()
Resolve merge conflicts of a5060ee to nyc-dev

Change-Id: I8cf43f9ad491c6f23eb5fe0051293267ab2d03bf
377c32845bffaf68d5751d8cdf6fd60b8b3f5dc3 20-Apr-2016 Vladislav Kaznacheev <kaznacheev@google.com> Rename DropPermissions to DragAndDropPermissions

Bug: 28296057
Change-Id: Ic95cb4ae9c351d903df78628e983dec2bacd0ad5
/frameworks/base/core/java/android/app/Activity.java
59c9a93fc268e226495d4ee8cf7c507c2ea2c433 20-Apr-2016 Trevor Johns <trevorjohns@google.com> Merge changes from topic 'merge_docs_nyc-dev' into nyc-dev

* changes:
Remove links to createAndInitializeUser() and createUser()
Resolve merge conflicts of a5060ee to nyc-dev
682c24e22811d4ee17ae1cd61bf255c3f7e722b7 12-Apr-2016 Trevor Johns <trevorjohns@google.com> Resolve merge conflicts of a5060ee to nyc-dev

This undoes the automerger skip which occured in
commit e740c84dc32180214a7fd157105d6c18d30408ee and
replays it as a standard (NOT -s ours) merge.

Change-Id: If5a47be26f73d6a0735c425cd66310a3e2a89086
/frameworks/base/core/java/android/app/Activity.java
f4cfbeda87b5077761ba4d5f3a8956ab209a2e98 15-Apr-2016 Adam Powell <adamp@google.com> Merge "Retain loaders through stopped config changes" into nyc-dev am: e33901c
am: c108628

* commit 'c108628d33610975dd13564bf7750dff5eebaeaf':
Retain loaders through stopped config changes

Change-Id: Ib63609d91efae1549c61b4f5fb8f2a1b24fe7ece
cbade7f4d3ed06636cdf0f2e2317a9e49b46852a 15-Apr-2016 Adam Powell <adamp@google.com> Retain loaders through stopped config changes

Framework edition

Previously we would throw away any stopped LoaderManagers when we went
to retain instances to pass along as nonConfigurationInstances during
config changes or similar activity restarts. This causes loaders to do
more work than they need to when a calling activity starts a new
activity on top, a config change happens (e.g. screen rotation) and
then the top activity is finished, restarting the caller in a new
configuration. The loaders would go through onReset unnecessarily,
potentially throwing away data to be reloaded again after the config
change completes.

Instead of throwing away stopped LoaderManagers in this case, restart
them and retain them across the config change so they can resume where
they left off.

Bug 27176186

Change-Id: Ia52c6448d2ad41dcb25d493770d9ffae20a19d2a
/frameworks/base/core/java/android/app/Activity.java
7b02468b34ed3501ef8707e71d8017a2df952329 14-Apr-2016 Clara Bayarri <clarabayarri@google.com> Merge "Provide startIntentSenderForResult for fragments" into nyc-dev am: 6e58549
am: bdcd8dc

* commit 'bdcd8dce23ad83a696fc350374abde50ee91c6d0':
Provide startIntentSenderForResult for fragments

Change-Id: I5746132388eabcf5e29a948cb36d30745ae73887
a0c2dc3cf56bf9c90af517f4cd12ef80d375a85a 12-Apr-2016 Clara Bayarri <clarabayarri@google.com> Provide startIntentSenderForResult for fragments

Bug: 27700608
Change-Id: Ibb7689ba0527048dd5944c4315b986f16030081d
/frameworks/base/core/java/android/app/Activity.java
c4e4274d9e191980633655ed56fcefcb9a5f740d 11-Apr-2016 Clara Bayarri <clarabayarri@google.com> Merge "Expose the Keyboard Shortcuts Helper in Activity" into nyc-dev am: 738ab04
am: 3f19243

* commit '3f192435a964c2c24073d1befe0c07e7eb37ff47':
Expose the Keyboard Shortcuts Helper in Activity

Change-Id: Idaf11769a1fc78cb759ab1303a82ba1d354a3076
738ab04fd94746d47ebeffa97252b7e3fb2a8d93 11-Apr-2016 Clara Bayarri <clarabayarri@google.com> Merge "Expose the Keyboard Shortcuts Helper in Activity" into nyc-dev
8528648384d80137471b29d9acd087cafc5c8b1e 09-Apr-2016 Amith Yamasani <yamasani@google.com> Merge "Improved javadoc for onLocalVoiceInteractionStopped" into nyc-dev am: 0cc0381
am: 597965f

* commit '597965f5384b5f4f77ae4ef39e8db799529ab46d':
Improved javadoc for onLocalVoiceInteractionStopped

Change-Id: Ida3e6c5ce407007955eb1533f13d6465e194937c
d8d967e425c560c80baf63393699d05e1e4d37df 08-Apr-2016 Amith Yamasani <yamasani@google.com> Improved javadoc for onLocalVoiceInteractionStopped

Improved docs per API review: b/27365473

Change-Id: I8e2fd5291ecf3c41b4c1fa4df62b0dc69597c122
/frameworks/base/core/java/android/app/Activity.java
eb3c2d3e630825974e7275607558978252882204 01-Apr-2016 Clara Bayarri <clarabayarri@google.com> Expose the Keyboard Shortcuts Helper in Activity

This allows apps to trigger it from their own menus

Bug: 27811273
Change-Id: I028caa5a88bb0e1c51238db28bb496293b78f90b
/frameworks/base/core/java/android/app/Activity.java
a5060ee80dbb48bd7fc545d2aeeeb657b79893ea 06-Apr-2016 Trevor Johns <trevorjohns@google.com> Merge branch 'mnc-mr-docs' into mnc-ub-dev

Large merge to reconnect automerger for docs branch to mainline.

Conflicts:
docs/html-intl/intl/es/index.jd
docs/html-intl/intl/es/preview/download.jd
docs/html-intl/intl/es/preview/index.jd
docs/html-intl/intl/ja/index.jd
docs/html-intl/intl/ja/preview/download.jd
docs/html-intl/intl/ja/preview/index.jd
docs/html-intl/intl/ko/index.jd
docs/html-intl/intl/ko/preview/download.jd
docs/html-intl/intl/ko/preview/index.jd
docs/html-intl/intl/pt-br/index.jd
docs/html-intl/intl/pt-br/preview/download.jd
docs/html-intl/intl/pt-br/preview/index.jd
docs/html-intl/intl/ru/index.jd
docs/html-intl/intl/ru/preview/download.jd
docs/html-intl/intl/ru/preview/index.jd
docs/html-intl/intl/zh-cn/index.jd
docs/html-intl/intl/zh-cn/preview/download.jd
docs/html-intl/intl/zh-cn/preview/index.jd
docs/html-intl/intl/zh-tw/index.jd
docs/html-intl/intl/zh-tw/preview/download.jd
docs/html-intl/intl/zh-tw/preview/index.jd
docs/html/guide/topics/manifest/compatible-screens-element.jd
docs/html/guide/topics/manifest/uses-feature-element.jd
docs/html/preview/download.jd
docs/html/preview/features/runtime-permissions.jd
docs/html/sdk/index.jd
docs/html/tools/revisions/studio.jd
docs/html/tools/sdk/eclipse-adt.jd
docs/html/tools/support-library/features.jd
telephony/java/android/telephony/TelephonyManager.java

Bug: 28000173
Change-Id: Iacab0481175f1b32e0ac3bab98cde9e994100e94
e61d037a8726aa29f9542d88ebb0af6cdd74c005 31-Mar-2016 Andrii Kulian <akulian@google.com> Merge "Refactor usages of Picture In Picture and Multi Window (1/4)" into nyc-dev am: ac94586
am: b6ba05f

* commit 'b6ba05ffb07f5785c24de21152405ee0bd92bf3c':
Refactor usages of Picture In Picture and Multi Window (1/4)

Change-Id: I24d558529fa14f780c714d26a834306057cf7b2b
933076d80561751618f462b26309ce9e4c3ff3bf 30-Mar-2016 Andrii Kulian <akulian@google.com> Refactor usages of Picture In Picture and Multi Window (1/4)

Bug: 27365860
Change-Id: I1590e430a12ceb84cb83da295e0bf7e4378fea96
/frameworks/base/core/java/android/app/Activity.java
5f938362fc746d235190cb32c39846cebb3dbe2d 29-Mar-2016 George Mount <mount@google.com> Merge "Ensure window has been added in isTopOfTask" into nyc-dev am: e6ef0f9
am: 5659056

* commit '5659056da7fe3e1e2279752a06099ddc2f718b82':
Ensure window has been added in isTopOfTask

Change-Id: I829ba9daaa5caa547985e90a1d1a5a2e1bd51a31
d0ca0e09842221ac8c587eda8c0c25aff61dd6f2 29-Mar-2016 George Mount <mount@google.com> Ensure window has been added in isTopOfTask

Bug 27893230

When isTopOfTask is called prior to the window being added, it
will throw an IllegalArgumentException. This checks that the
window has been added before making the call.

Change-Id: Idd14c0f1051e16d96a0a1fa9f990f380a1f69911
/frameworks/base/core/java/android/app/Activity.java
d1fe045611d98afdc41f708e53ebb5221b555227 28-Mar-2016 George Mount <mount@google.com> Merge "If resume occurs, force finish of exiting activity." into nyc-dev am: fe77fdf
am: e4f870a

* commit 'e4f870a14eae83095e7ab170e9770a76b3de5475':
If resume occurs, force finish of exiting activity.
fe77fdf8b35d6893e7d96c9b8eeb77c4eb16980a 28-Mar-2016 George Mount <mount@google.com> Merge "If resume occurs, force finish of exiting activity." into nyc-dev
bdc4d8dc9635064fd67f379c341b69bdc03f8968 23-Mar-2016 George Mount <mount@google.com> If resume occurs, force finish of exiting activity.

Bug 27231404
Bug 27274246

Change-Id: Ia92fe6fdebced3e5a1fc9d165212ac1196f395bd
/frameworks/base/core/java/android/app/Activity.java
cc802819115e92318c139fddb558a1238cb5297e 24-Mar-2016 Clara Bayarri <clarabayarri@google.com> Merge "Keyboard Shortcuts: plumb deviceId through" into nyc-dev am: 3e5bf78
am: c84e36b

* commit 'c84e36b7ec77e52ab184c1328c55ee71f8ba4aa5':
Keyboard Shortcuts: plumb deviceId through
fcd7e80b21cc9db6be00e37371401ea1d0938796 10-Mar-2016 Clara Bayarri <clarabayarri@google.com> Keyboard Shortcuts: plumb deviceId through

Bug: 27673736
Change-Id: Ie72807aa8c2bfd142b081a6a915e101c16d31473
/frameworks/base/core/java/android/app/Activity.java
103b77fb4c1b1bbea670384e69bec2b2697e1a23 17-Mar-2016 Andrii Kulian <akulian@google.com> Merge "Add additional logging for incorrect activity stop" into nyc-dev am: 30b93a6
am: f01558e

* commit 'f01558e492f6be57d1cf2e7469decc2b595a1b9c':
Add additional logging for incorrect activity stop
30b93a6d9d6a2cc865b0db0c29c53fa13b29be63 17-Mar-2016 Andrii Kulian <akulian@google.com> Merge "Add additional logging for incorrect activity stop" into nyc-dev
58178f2fe4fb2fd2dba0504acff35f8ecc2e495c 16-Mar-2016 Andrii Kulian <akulian@google.com> Add additional logging for incorrect activity stop

Print ActivityClientRecord state when ActivityThread#performStopActivityInner
is called for already stopped activity.

Bug: 25267624
Change-Id: I2b044e42d0188ef9eaf15422b6a05617ade802e2
/frameworks/base/core/java/android/app/Activity.java
03d31621126d1bb9e342302f72aec8db858b31c2 15-Mar-2016 Adam Powell <adamp@google.com> Merge "Un-deprecate Activity#onRetainNonConfigurationInstance" into nyc-dev am: 421806380d
am: d2f9090c16

* commit 'd2f9090c1639f9b7460cb92a294ff67685161c3d':
Un-deprecate Activity#onRetainNonConfigurationInstance
0b68900b05352cfbed1544d207e78b522e25bf6f 14-Mar-2016 Kevin Hufnagle <khufnagle@google.com> doc change: Fixed typo in Activity class reference.

Changed word within "Process Lifecycle" section, near bottom of
Activity class overview.

Bug: 24561563
Change-Id: I4c4196a656b6ad3e412ed45382fcefc984fe9892
/frameworks/base/core/java/android/app/Activity.java
c4df6bc4dd654385f7cbd3a0f459cfec8050839a 10-Mar-2016 Adam Powell <adamp@google.com> Un-deprecate Activity#onRetainNonConfigurationInstance

This is still useful in some situations, FragmentActivity in the
support lib uses it to implement retained instance fragments, and it
really irks some people's linters.

Hi, Jake!

Bug 27642432

Change-Id: Id59f4895bdb09f7d629d081c16219e037e71bf33
/frameworks/base/core/java/android/app/Activity.java
dbd8a7ac406229f97e7d8236a2e5f8f2e13c4a30 08-Mar-2016 Ruben Brunk <rubenbrunk@google.com> Merge "Add a VR listener service." into nyc-dev am: 875825d0c1
am: f05c96989c

* commit 'f05c96989cf1bd028cc7d63d31b4cab37ad3b9f2':
Add a VR listener service.
e24b9a6cfa4d565d7f49c9ae8f3aeca737d93312 17-Feb-2016 Ruben Brunk <rubenbrunk@google.com> Add a VR listener service.

Bug: 22855417
Bug: 26724891
Bug: 27364145

- Add an API for VrListenerService, which is bound/unbound
from the framework when the system VR mode changes.
- Allow only a single bound VrListenerService at a time.
- Monitor allowed VrListenerService implementations from
VrManagerService and evict services as needed when packages,
users, or settings change.
- Remove previous VR functionality in NotificationListenerService.
- Add component target to Activity#setVrMode to allow
explicit selection of the running VrListenerService from
the current VR activity.

Change-Id: I776335f4441be0e793d3126f2d16faf86a8c621a
/frameworks/base/core/java/android/app/Activity.java
a825277f5f2379d5d8477dccfdbf1074f7d52f4f 03-Mar-2016 Adam Powell <adamp@google.com> Merge "Fix crash for showing linker errors for apps with no label" into nyc-dev am: f08b7b3698
am: d50e0e2e28

* commit 'd50e0e2e2898e938e0372e3cd4d7dd76649498ec':
Fix crash for showing linker errors for apps with no label
d93f3b10e21b225ce4ffc16c87597d594a8bc942 03-Mar-2016 Adam Powell <adamp@google.com> Fix crash for showing linker errors for apps with no label

Use ApplicationInfo#loadLabel to provide the standard fallback chain
of strings to identify an app instead of getString on the raw label
resource id, which will throw a NotFoundException if 0.

Bug 27469189

Change-Id: I344273c600f029361f3accfe5d91b0d332635b3d
/frameworks/base/core/java/android/app/Activity.java
02a9c0335f086a075337ff0d581d2a18522905a9 01-Mar-2016 Winson <winsonc@google.com> Merge "Disable extracting the bg color from the window background." into nyc-dev am: 1f3eca97b9
am: 8da4971577

* commit '8da4971577a9180b603670a1970d4916902a9147':
Disable extracting the bg color from the window background.
9eb7ca8e9da5483d3b548b72288dc039e8ad6061 01-Mar-2016 Dimitry Ivanov <dimitry@google.com> Merge "Display Toast with linker warnings after Activity.onStart()" into nyc-dev am: 1984d78330
am: 2b594cdcc7

* commit '2b594cdcc7cd6881c41f1fd39122b182d9ee0e8b':
Display Toast with linker warnings after Activity.onStart()
1f3eca97b9a929f2fae33cea930b84ddd2c5d602 01-Mar-2016 Winson Chung <winsonc@google.com> Merge "Disable extracting the bg color from the window background." into nyc-dev
1984d783304fe1ee915907d3a3c631f73d1243ff 01-Mar-2016 Dimitry Ivanov <dimitry@google.com> Merge "Display Toast with linker warnings after Activity.onStart()" into nyc-dev
073a526ba77c338e45114ea0885890336d219c47 01-Mar-2016 Winson <winsonc@google.com> Disable extracting the bg color from the window background.

Bug: 27406401
Change-Id: Id03a7d5d199d324d67301c060551db2d3a52e5ac
/frameworks/base/core/java/android/app/Activity.java
3211b9070d1b5cc7f1c8537e5d4ea03ebaa98ebd 29-Feb-2016 Ruben Brunk <rubenbrunk@google.com> Merge "Revert "DO NOT SUBMIT: Hide VR features for preview."" into nyc-dev am: b77f9ec93a
am: 0cbe76be29

* commit '0cbe76be29380cf61cc57a79021f21749751f4d4':
Revert "DO NOT SUBMIT: Hide VR features for preview."
a6b7e4418522acd0e383d50ab4a0b77b3f051d75 29-Feb-2016 Ruben Brunk <rubenbrunk@google.com> Merge "DO NOT SUBMIT: Hide VR features for preview." into nyc-dev am: 8ccb68af89
am: 420d9dae55

* commit '420d9dae551fa540876a69e747f70edd803f60c4':
DO NOT SUBMIT: Hide VR features for preview.
b77f9ec93a11841aacb72d4fecd1bf56f6253254 29-Feb-2016 Ruben Brunk <rubenbrunk@google.com> Merge "Revert "DO NOT SUBMIT: Hide VR features for preview."" into nyc-dev
e5d76e827600c44657e328599ffc9d0e8a258e58 29-Feb-2016 Ruben Brunk <rubenbrunk@google.com> Revert "DO NOT SUBMIT: Hide VR features for preview."

This reverts commit cfa66a2a45c3cec6c338d0d83806fb33d63cfd44.

Change-Id: Ibf36092205b14c29935d1f28be5f5b5f64b1d16c
/frameworks/base/core/java/android/app/Activity.java
8ccb68af89c68e32b908652436acfa339e034bcc 29-Feb-2016 Ruben Brunk <rubenbrunk@google.com> Merge "DO NOT SUBMIT: Hide VR features for preview." into nyc-dev
4449ef5b6a85ef4e16dbd5d939db7b11eac0b586 26-Feb-2016 Dimitry Ivanov <dimitry@google.com> Display Toast with linker warnings after Activity.onStart()

Displays list of problems linker encountered with app's
native code including
1. Unauthorized access to private platform libraries.
2. Text relocations
3. Invalid DT_NEEDED entires

This change is intended only for preview/beta releases and to
be reverted before the first release build.

Bug: http://b/27365747
Change-Id: I08735472059248c901ef22042682d574fb2b0c92
/frameworks/base/core/java/android/app/Activity.java
cfa66a2a45c3cec6c338d0d83806fb33d63cfd44 27-Feb-2016 Ruben Brunk <rubenbrunk@google.com> DO NOT SUBMIT: Hide VR features for preview.

Bug: 26945446
Change-Id: I37e2f9f6ffc65be60bcbef4bdf87da89561ef313
/frameworks/base/core/java/android/app/Activity.java
a0f805b885eed85b5f79f7f2448c456d05529321 26-Feb-2016 Chong Zhang <chz@google.com> Merge "Do not stop window if preserving the window" into nyc-dev am: fd3d5e92ea
am: fb3403f5f0

* commit 'fb3403f5f0655f77d75aac017bc5f9e60f221f59':
Do not stop window if preserving the window
7687f25e588a0e13a2c97cc3fc948f48aee86b90 26-Feb-2016 Chong Zhang <chz@google.com> Do not stop window if preserving the window

bug: 27350647
Change-Id: I670d2641ee7e600a6ea46f7b329afd4df10a3862
/frameworks/base/core/java/android/app/Activity.java
923ddb7527af1cfa77f0ed90a272a9c4884b6fde 25-Feb-2016 Winson Chung <winsonc@google.com> Merge changes Ib309e9de,Ia7cf8b99,I055b0825,Ie2ea4318,If92221d3 into nyc-dev am: e1c4641d6f
am: 27f2698fa4

* commit '27f2698fa46f77955d2dbe5d905796d0139b9edd':
Fixing crash when focusing tasks.
Minor tweaks to layout and visuals.
Improving transition from paging to stack.
Fixing issue with persistent screenshot notification
Updating task description when activity is visible.
b6403150af708e1a2b3e426e24005478ace0ab24 23-Feb-2016 Winson <winsonc@google.com> Updating task description when activity is visible.

Bug: 27275448
Change-Id: If92221d30c84c58b5d36db1b254d264a0ff3ec25
/frameworks/base/core/java/android/app/Activity.java
8032741bdcf4867f6cedd5dde332e1638d272df4 19-Feb-2016 Svetoslav Ganov <svetoslavganov@google.com> Merge "Improve requestPermissions API docs and throw correct exception." into nyc-dev am: 0f3431b616
am: 8a20395156

* commit '8a203951566e6e5df730c49fb35054a851eb8834':
Improve requestPermissions API docs and throw correct exception.
0f3431b616e03fe76cb52cabad209f95e1d7899c 19-Feb-2016 Svetoslav Ganov <svetoslavganov@google.com> Merge "Improve requestPermissions API docs and throw correct exception." into nyc-dev
f66381cd0df0aad41b7e4db9994483e44e0aaada 19-Feb-2016 Svet Ganov <svetoslavganov@google.com> Improve requestPermissions API docs and throw correct exception.

bug:26220898

Change-Id: Iebda3fe13b963b10829de917fb00a9a14186b72c
/frameworks/base/core/java/android/app/Activity.java
eeb25170beb4f6593340c0013f4eeeb10ff9ee51 18-Feb-2016 Dan Dascalescu <dandv@google.com> docs: Fix typo "If an activity [is] in the foreground"

At http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle

bug: https://code.google.com/p/android/issues/detail?id=4066
Change-Id: If712144a4005b6f53832316aa55dc0744fa36c4b
/frameworks/base/core/java/android/app/Activity.java
30a969b513133c5cfe3558f17322825429117438 18-Feb-2016 Winson <winsonc@google.com> Only set the task description if the colors are opaque. am: 2d47683ab9
am: 07801468b2

* commit '07801468b2b1c61e2fcb0a12516e1b3d1de5a466':
Only set the task description if the colors are opaque.
2d47683ab969a1da30209e44712ce6513e324b89 17-Feb-2016 Winson <winsonc@google.com> Only set the task description if the colors are opaque.

Bug: 27214638
Change-Id: I75e0b8871087f0b8e6acd16dc751bb6374c0f968
/frameworks/base/core/java/android/app/Activity.java
0b651a0096b90cf5bd2dc5ced9933b41139be540 12-Feb-2016 Paul Miller <paulmiller@google.com> Merge "Fail nicely in Activity.requestPermissions when requestCode < 0"
77a0e13b416df24f95034c2933bb9f34f5f9bd64 11-Feb-2016 Paul Miller <paulmiller@google.com> Fail nicely in Activity.requestPermissions when requestCode < 0

BUG:24976189
Change-Id: I0e2fbb7c075370b0ec8b1eb5b405f7a6ca8de1e9
/frameworks/base/core/java/android/app/Activity.java
1af8eda6ea1c89d44123b2bfd5fa0293bb9d68cb 05-Feb-2016 Winson Chung <winsonc@google.com> Drawing thumbnail background color for empty space in view.

Change-Id: I2e8dfbe9c11a61876956658eff0674adb26d855d

Signed-off-by: Winson <winsonc@google.com>
/frameworks/base/core/java/android/app/Activity.java
44ba79e47d6db54e5501f994880fa09eb880c185 05-Feb-2016 Adam Powell <adamp@google.com> Permit setRetainInstance(true) on nested fragments, framework edition

Save arbitrarily nested fragments across config changes as
nonconfiguration objects. This permits the use of retain-instance
child fragments as arbitrary opaque dependencies within other
fragments.

Change-Id: Ia6640b76cfcf7ec28ba252628957a0c14863e957
(cherry picked from commit 7466be66263d5ebffb786ea402d9ed6e36c254f0)
/frameworks/base/core/java/android/app/Activity.java
7466be66263d5ebffb786ea402d9ed6e36c254f0 05-Feb-2016 Adam Powell <adamp@google.com> Permit setRetainInstance(true) on nested fragments, framework edition

Save arbitrarily nested fragments across config changes as
nonconfiguration objects. This permits the use of retain-instance
child fragments as arbitrary opaque dependencies within other
fragments.

Change-Id: Ia6640b76cfcf7ec28ba252628957a0c14863e957
/frameworks/base/core/java/android/app/Activity.java
5b5bda42f04a723754d05cf11c9d6c1677876a6b 03-Feb-2016 Clara Bayarri <clarabayarri@google.com> Merge "Keyboard Shortcuts Helper: Use App name for default group"
ada88b36af4ea93336fc70adb3eff7350962e427 02-Feb-2016 Clara Bayarri <clarabayarri@google.com> Keyboard Shortcuts Helper: Use App name for default group

Change-Id: I802dd6c9dcc838b9f06b29b99dc47dd93634d98b
/frameworks/base/core/java/android/app/Activity.java
7c796811c040a3b9c189d49f138028c5e44466a4 30-Jan-2016 Wale Ogunwale <ogunwale@google.com> Added onMultiWindowChanged and onPictureInPictureChanged methods to Fragement class

Bug: 26688489
Change-Id: I611444b29199b4686c9f78dbdd33c9b71820aec4
/frameworks/base/core/java/android/app/Activity.java
3b93a4d351aeb154fba8a4b2fa66ca25a951993d 30-Jan-2016 Wale Ogunwale <ogunwale@google.com> Renamed Activity class multi-window APIs

As requested by API council.

Bug: 26507736
Change-Id: I2a87c5eb3c1b48d52703103c2a4f72c250a9a827
/frameworks/base/core/java/android/app/Activity.java
634dc42c9e16f492b015ccafffc110952cdccec8 31-Jan-2016 Jeff Sharkey <jsharkey@android.com> Throw when using deprecated file modes.

installd no longer grants o+x to private app data directories for
apps targeting N, so the long-deprecated MODE_WORLD_READABLE and
MODE_WORLD_WRITEABLE flags no longer have any effect, which may lead
to frustrating debugging sessions.

So to help clearly communicate that these flags no longer work, let's
throw when an app targeting N tries using them.

Bug: 26886867
Change-Id: I97dae6182fc3c55639ff37a39c4aae6dd0bed507
/frameworks/base/core/java/android/app/Activity.java
344744b49633a7f8aa0c8e43469bbfcf9d8e2cab 29-Jan-2016 Jeff Sharkey <jsharkey@android.com> Exposing file:// beyond your app is bad, m'kay?

For several releases now we've told developers that sharing raw files
between apps is a recipe for trouble. There are at least three major
problems with sending raw files:

-- Apps sending generic intents can't know who is at the other end,
so they may not have access to shared storage locations. This is
more likely now that runtime permissions require apps to explicitly
ask users for permission.

-- Apps making files in their private storage world-readable has been
deprecated for several releases, and now in N it's fully blocked. If
we let these intents through, the receiving app would fail to open
the file, when the real blame rests on the sending app.

-- Devices with user profiles can't share raw files when using
cross-profile intent filters, since filesystem access is fully
locked down between users.

The time has finally come to communicate clearly that if you're
sharing content between apps, you need to use content:// Uris. We
added the simple FileProvider several years ago to give apps a clean
way to migrate with minimal work on their part.

Bug: 26860922, 9069185
Change-Id: I075f627f6a0d6c7fca2c090ca133b9aae9801c64
/frameworks/base/core/java/android/app/Activity.java
c7d6c32cbed5f2aef4a2f4d9468c72ec179e2ef1 27-Jan-2016 Chris Banes <chrisbanes@google.com> Allow setActionBar() to take a null param

BUG: 26779292
Change-Id: Ifda6796bb0630041a0e494b78c341454eaab49b4
/frameworks/base/core/java/android/app/Activity.java
0af6fa7015cd9da08bf52c1efb13641d30fd6bd7 18-Jan-2016 Amith Yamasani <yamasani@google.com> Voice Interaction from within an Activity

This allows an app to show a voice search button
and invoke a voice interaction session for use
within the activity. Once the activity exits, the
session is stopped.

Test application has a new activity that
demonstrates it with the test voice interaction
service.

This initial version is functional enough for
an integration test, with some more tests
and improvements to come later.

Bug: 22791070
Change-Id: Ib1e5bc8cae1fde40570c999b9cf4bb29efe4916d
/frameworks/base/core/java/android/app/Activity.java
75e097965cc273d33192555b0e65de3dbc1753ce 29-Jul-2015 Clara Bayarri <clarabayarri@google.com> Request Keyboard Shortcuts for SysUI Dialog via Window

Keyboard shortcuts are requested via WindowManager, and
the request pipes through to the view root and the window
callback.

Bug: 22405482
Change-Id: Ic0071e91c7b554be3ac9df71e9539ee8a60e822e
/frameworks/base/core/java/android/app/Activity.java
6b99325be94d47e44a11feca1275f8851896a768 12-Jan-2016 George Mount <mount@google.com> Merge "Change access to action bar to control-<"
411c06fbf9040f20778de1ae612e6ab5d6a5a3d4 07-Jan-2016 Filip Gruszczynski <gruszczy@google.com> Only allow activities to move to full screen stack.

We allowed activities to move to any stack, but that's too much
freedom. Instead we only allow them to move from freeform stack to a
fullscreen stack.

Change-Id: I04de9bbf18cf4431d7bd34d6c727de82802661ef
/frameworks/base/core/java/android/app/Activity.java
cbe2835847c54ac23db1d3e45ed78c2c73e79685 07-Jan-2016 George Mount <mount@google.com> Change access to action bar to control-<

Bug 26423159

Changes the action bar focus change key from Alt-Up to control-<

Change-Id: I5ecac98cf56d4a24eb3cc63051022c9d5ef1f461
/frameworks/base/core/java/android/app/Activity.java
21b257717fe0c60574fe1cfaa44ed894edd21200 04-Jan-2016 Chris Banes <chrisbanes@google.com> Fix ToolbarActionBar invalidating destroyed Activities

BUG: 26375399
Change-Id: Ieae13890896b1082b51a81317760b4975aeb5dff
/frameworks/base/core/java/android/app/Activity.java
b23a757aa2f3088c9e9fd226e806aa5963b68d93 18-Dec-2015 Vladislav Kaznacheev <kaznacheev@google.com> Bind DropPermissions life cycle to Activity

Move requestDropPermissions from DragEvent to Activity.
Permissions will be granted using UriPermissionOwner
associated with this activity and revoked when the activity
is destroyed (if DropPermissions.release is not called before that).

Change-Id: Ic8f8fc3f56f57e83b9bc34ae8c96d82c2c9c4e1d
/frameworks/base/core/java/android/app/Activity.java
55bed957788e853d3ee3f674dd6eea79ad3a193b 18-Dec-2015 Ruben Brunk <rubenbrunk@google.com> Merge "Add a framework service tracking VR mode state."
69b495bdb86a82d472dbb35e5d3d2f6dc54e9104 18-Dec-2015 George Mount <mount@google.com> Merge "Alt-up moves focus to the toolbar in action bar mode."
5beb2617f91e28c45917ea48109b8350f4e62140 15-Dec-2015 George Mount <mount@google.com> Alt-up moves focus to the toolbar in action bar mode.

Bug 24811572

Change-Id: Ie065fa13ba76131e700e73984a99fc60a7aa513c
/frameworks/base/core/java/android/app/Activity.java
dd18a0b69537954d1cc34929a1386deb54f12b14 05-Dec-2015 Ruben Brunk <rubenbrunk@google.com> Add a framework service tracking VR mode state.

- Implement a "VR mode" that may be enabled by a focused Activity.
- Add a system service that tracks the current VR mode state and notifies
other core framework services of mode changes.
- Extend NotificationListenerService to allow the bind/unbind lifecycle
of specified listeners to be triggered by system events.

Bug: 22855417
Bug: 25479708

Change-Id: I1ac8692bbb5521bb6c7cfb9d2b56b98b720f8568
/frameworks/base/core/java/android/app/Activity.java
3d0267143f88cf6ec554b709d78805a9e46d06db 16-Dec-2015 Filip Gruszczynski <gruszczy@google.com> Only add noDisplay activities to freeform source tasks.

We started adding noDisplay activities to source tasks to make the
resolver activity show up within the same task bounds as what caused it
to appear. However, in other cases it might cause to add a noDisplay
activity to a task in which we don't expect anything to appear, e.g.
home task when launching from home.

Bug: 26128908
Bug: 26023670
Change-Id: I2f64e82b3c3754cdbcb4cac3f907674344e67e04
/frameworks/base/core/java/android/app/Activity.java
9c604c7c1db8f3dc5738b931805fc2d996135580 07-Dec-2015 Wale Ogunwale <ogunwale@google.com> API for an Activity to enter picture-in-picture mode.

Bug: 25580820
Change-Id: I5c1bf17dd5dd92622458a61517bc9941e4ee5277
/frameworks/base/core/java/android/app/Activity.java
eb6722c0bc87dd5419df1eb92268b824c2d29b50 08-Dec-2015 Wale Ogunwale <ogunwale@google.com> Fixed bug with caption not showing for some apps that handle config changes

We currently decide when to show the decor caption onConfigurationChanged
However, if the app handles configuration changes or the threshold isn't
big enough for the configuration change to be reported to the app, we don't
display the caption in some cases when transitioning from fullscreen mode
to freeform mode.
We now also use the onMultiWindowModeChanged call to also determine if
the caption should be visible.

Change-Id: I237437f04ad90f904912ebac0253245f547b0e3e
/frameworks/base/core/java/android/app/Activity.java
5f986095bed776c119d2f5452e0afeac3a437ea2 05-Dec-2015 Wale Ogunwale <ogunwale@google.com> APIs for activity to know when its windowing/pip modes change

Added APIs that allow activities to ask the system if they are currently
in multi-window or picture-in-picture mode and also get notified when
their modes change.

Bug: 25509834
Bug: 25683717
Change-Id: I4b8c316a49940bd6a8b31a93b345f9fd725a4721
/frameworks/base/core/java/android/app/Activity.java
63250651ca4656fc1b9e9ffb9c48d481df80454d 18-Nov-2015 Filip Gruszczynski <gruszczy@google.com> API for overlaying app content over decor caption in freeform windows.

Bug: 25486369

Change-Id: I8fba30dd690d9f0ccc48149f57ce254286b0c2ae
/frameworks/base/core/java/android/app/Activity.java
3797c22ea16e932329ebffdc7e7ce09f9ecd9545 27-Oct-2015 Wale Ogunwale <ogunwale@google.com> Added StackId object for checking what features a stack supports

Helps make the code easier to follow since we are no longer checking
multiple stack ids at various decision points.

Bug: 25282299
Change-Id: Ifa6864a1ef56ce2eca4c94f87a4e0b993de987cd
/frameworks/base/core/java/android/app/Activity.java
4215c124f9abe9383490745a558ad9b11903dcc4 21-Oct-2015 Andrew Solovay <asolovay@google.com> docs: Fixing onRequestPermissionResults() code sample

Bug b/24993310 flagged an error in the code sample, and while I had
it open, I revised it to be more like the code snippet in the
permissions training doc (which Svet approved).

See first comment for doc stage location.

bug: 24993310
Change-Id: I65336c70e086b06e28816ba8acc6435640178f9c
/frameworks/base/core/java/android/app/Activity.java
af9d635f8ea3ab5b519081c8b8e689172a7ad713 20-Oct-2015 Svetoslav Ganov <svetoslavganov@google.com> Merge "Don\'t allow concurrent permission requests." into mnc-dr-dev am: e199016a82 am: aebff7f1ad am: 2a95159d2c
am: 7fdc5d95ad

* commit '7fdc5d95ada01a378877d6a7c8be1894eb869e04':
Don't allow concurrent permission requests.
ffb32b1f243e691f67c4d373050563d9028177cd 16-Oct-2015 Svetoslav <svetoslavganov@google.com> Don't allow concurrent permission requests.

bug:24690277

Change-Id: Ie8c6eae230cd20e40d32cf688d30f6d40f9a9acd
/frameworks/base/core/java/android/app/Activity.java
c29ecc86c277ab078a2263eb382efd2ea837573e 08-Oct-2015 Filip Gruszczynski <gruszczy@google.com> Don't remove task from recents if closed by caption button.

When the user clicks X in non client decor of a freeform task, we
don't want it to be removed from recents. The task gets finished,
but it will remain in recents.

Bug: 24718309

Change-Id: I8f47e310903ee7f839ec92f5c8ff3a9f1e09118c
/frameworks/base/core/java/android/app/Activity.java
0daf2102a20d224edeb4ee45dd4ee91889ef3e0c 29-Sep-2015 Filip Gruszczynski <gruszczy@google.com> Fix leaking the first activity while preserving windows.

This is achieved by not having the decor view hold onto the activity
context. Instead, we are wrapping application context, so that we can
have theme support and also have a special instance of window manager
that is aware of the phone window (the same way as activity do).

This reverts commit a5ffea3b7d323cb57c0f9872468dd5c2e2ec66bb.

Change-Id: I924f4c7ef8f0d20e9174bd7b3e00ec00b44443b9
/frameworks/base/core/java/android/app/Activity.java
a59ac9cd645d25f03e4e488100bd99f92e83a3a7 11-Sep-2015 Filip Gruszczynski <gruszczy@google.com> Preserve window during resize triggered relaunches.

This changes application code behavior when the activity relaunches due
to configuration change. It only applies to scenarios, where the
configuration change was triggered by a user generated resize of an
activity (i.e. user drags a corner of an activity and thus changes its
size).

Preserving a window means that we will keep the decor view and non
client decor view around, but remove all children views when the
activity gets destroyed. When the activity gets created again, it will
attach its new content to the preserved view hierarchy. Mind, we
actually recreate application side Window object, since some of its
features might changed, but we retain its elevation (to not trigger
relayout with new layout params).

Preserving the window also means that we don't call the window manager
service to remove and later add the window. Instead, we continue using a
single window state throughout the resize operation.

Change-Id: Ie3d2878ed09c99ff343044bfe7a29a0ba07a265e
/frameworks/base/core/java/android/app/Activity.java
8e89b31a62fb9ec5ad33908c5e8e9c7ab2fd949f 10-Sep-2015 Chong Zhang <chz@google.com> Move window moving and resizing handling to WindowManager

- add a startMoving API to initiate a window move from app, once
the move starts WindowManager will take over the event handling.

- detect touch events along window's outside border and start
a resize if necessary

Change-Id: Ic7e8baba34e0aa27a43173e044ffb46e93e219e0
/frameworks/base/core/java/android/app/Activity.java
d7ad54e603cedcb5a927e92cd231d7e8549831ef 21-Aug-2015 Svet Ganov <svetoslavganov@google.com> Update requestPermission docs about requesting a held permission - framework

bug:23370436

Change-Id: I7c0134578f529ea698a2c237d19112d1d0a91828
/frameworks/base/core/java/android/app/Activity.java
4aef7c859459dcb52e9112444506a2db8f1a5d04 04-Sep-2015 Alan Viverette <alanv@google.com> Deprecate FEATURE_PROGRESS and related methods

Bug: 23763003
Change-Id: I4ef97e089db592e438a27657faffa1c8290f2b0e
/frameworks/base/core/java/android/app/Activity.java
f36bb0ca99ce2041b68faf650d8c807cfaa2bf95 26-Aug-2015 Skuhne <skuhne@google.com> Bring an activity to the front upon click & drag

Clicking on the control area of a window should bring it to
the top and set the focus since it might be used as a drag
operation which would move / resize it.

Bug: 23179116
Change-Id: I672bfefa42dd85e962fe343aeb89167ce125f168
/frameworks/base/core/java/android/app/Activity.java
ce2faa5871e3bf5ec8407506df18bed209dd824c 11-Aug-2015 Skuhne <skuhne@google.com> Adding API to access / change the task bounds

Bug: 21738328
Change-Id: I3aabcbe1dcc5caa70f66554157f41fbfacf4c50f
/frameworks/base/core/java/android/app/Activity.java
9bad7410e5b2235484cc550051bb8be9c671fd50 07-Aug-2015 Stefan Kuhne <skuhne@google.com> Adding missing WindowStackCallback to Window

Bug: 22984908
Change-Id: I0efe210c2e1d2efba3e3ca20e6db393a904f28b9
/frameworks/base/core/java/android/app/Activity.java
6e02fa01a023cea148e87899c9bdedf12c46075e 06-Aug-2015 Wale Ogunwale <ogunwale@google.com> Merge changes I4fc1b47e,Icc6d6b25,I8c6bb864

* changes:
Support for an activity to change and/or query it's associated stack
Support creating/launching a task with non-fullscreen bounds
Support finishing a task with any finishing activity in the task.
a1a9644529292e531d5dbccdaeac1399544aff1a 06-Aug-2015 Dianne Hackborn <hackbod@google.com> am 74423ccf: am aacc7978: am 41dfffb3: am db6a6a21: am 6b0f1e78: Merge "Fix issue #22843150: fragment transaction crash from onRequestPermisssionResult" into mnc-dev

* commit '74423ccf95c9d09a52a6a6fbe8ccedb1be88eda9':
Fix issue #22843150: fragment transaction crash from onRequestPermisssionResult
868a5e16c3f40a1c36bc2bd15891e930800e781a 03-Aug-2015 Wale Ogunwale <ogunwale@google.com> Support for an activity to change and/or query it's associated stack

Change-Id: I4fc1b47e5d6196a56a6e40f10fae97219554722c
/frameworks/base/core/java/android/app/Activity.java
ba7881c89e7dd50aa537e70f0b96273e131dd08e 02-Aug-2015 Wale Ogunwale <ogunwale@google.com> Support finishing a task with any finishing activity in the task.

Change-Id: I8c6bb864de6dc135e0fedb16ee424d7816ee3cfa
/frameworks/base/core/java/android/app/Activity.java
6bdd3a155fe380735d4108ddcc50b156c62406d0 06-Aug-2015 Dianne Hackborn <hackbod@google.com> Fix issue #22843150: fragment transaction crash from onRequestPermisssionResult

Add new Activity callback to tell it when its saved state has
been invalidated.

The problem is that delivering the permission result does not go
through a path where the compatibility code can see it first to
mark its fragment manager as no longer having saved state. So this
new callback gives it a place to do that.

Change-Id: I5a4a185d9c746bae1afb5c588aba82c8daccf079
/frameworks/base/core/java/android/app/Activity.java
a371084e29f6ef3e926b4c51aa3b518b8cee3f0a 04-Aug-2015 Ian Pedowitz <ijpedowitz@google.com> resolved conflicts for merge of d4b8064e to master

Change-Id: I3d41b5bd0ecdd97f8e563b061fc8648d2206bc31
fb81d09d359480f9e43bbf300877b60de05f4816 04-Aug-2015 Dianne Hackborn <hackbod@google.com> Fix issue #22860466: viapi security bug - rubber stamping in nested VIs

Add new Activity.isVoiceInteractionRoot() API that an activity can use
to determine whether it is the root activity of a voice interaction
session started by the user's designated voice interaction service.

This is a special new API that apps must explicitly check, because as
with visual activities the model behind an activity should usually be
that it accomplishes its task by interacting with the user (implicitly
getting their approval) rather than trusting that whoever invoked it
is telling it to do what the user once. In the voice world, however,
there are some cases where quick interactions want to allow for immediate
execution without further user involvement, so this API allows for that
without opening up security holes from other applications.

Change-Id: Ie02d2458f16cb0b12af825641bcf8beaf086931b
/frameworks/base/core/java/android/app/Activity.java
6105a30d9d5a288fae71e41832b3f404b0f04bce 28-Jul-2015 Dianne Hackborn <hackbod@google.com> am 0091e2c0: am 639fd0e9: am 025a5dc6: am 108f5493: am 3551a59b: Merge "Work on issue #21516866: Implement voice interaction in ResolverActivity" into mnc-dev

* commit '0091e2c03d1f2d212c94a3096e86407c78df6820':
Work on issue #21516866: Implement voice interaction in ResolverActivity
57dd737443a174379eb638450e4888500d8e4a23 28-Jul-2015 Dianne Hackborn <hackbod@google.com> Work on issue #21516866: Implement voice interaction in ResolverActivity

The main change here is to not allow the dialog to go in to its "focus
on the last app the user selected" when running in voice interaction mode,
instead just always giving a simple list.

This also fixes some problems with cleaning up active commands when
an activity finishes and not forcing the current session to go away
when the screen is turned off.

Also added some debug help, having activity print the state of the
voice interactor.

Change-Id: Ifebee9c74d78398a730a280bb4970f47789dadf5
/frameworks/base/core/java/android/app/Activity.java
788fc2b904add1c8b02ac62663b61ae8fd7aed5a 06-Jul-2015 Tor Norbye <tnorbye@google.com> Annotate Intent and ContentResolver params with @RequiresPermission

Change-Id: I831cd55da9c840be0f39b77a8ae868146f089326
/frameworks/base/core/java/android/app/Activity.java
78ead58df03e476d656c7e875fff9ade13b727c1 20-Jul-2015 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #22531747: Assist info should declare if user has disabled..." into mnc-dev
17f693520da8977c4a60f5b4be3be035cba7146c 18-Jul-2015 Dianne Hackborn <hackbod@google.com> Fix issue #22531747: Assist info should declare if user has disabled...

...context and/or screenshot

Added new API to find out what contextual data has been globally disabled.

Also updated various documentation to make it clear what kind of contextual
data you will get (and when it will be null).

Also added a new Activity.showAssist() API because... well, I was already
in there, it was easy to do, it is safe, and maybe people will build cool
things with it.

Change-Id: Ia553d6bcdd098dc0fce4b9237fbfaca9652fc74b
/frameworks/base/core/java/android/app/Activity.java
6f561a24c97d25a858cf98eef5c502ef8d80cfc1 17-Jul-2015 Svet Ganov <svetoslavganov@google.com> Merge "Improve documentation of onRequestPermissionsResult" into mnc-dev
0f45c7c7c40f2863560988a24bc06f395e12244d 17-Jul-2015 Svet Ganov <svetoslavganov@google.com> Improve documentation of onRequestPermissionsResult

bug:22524902

Change-Id: Ic435171fa016d8841bea432c5c39d7b0a6a7b9e9
/frameworks/base/core/java/android/app/Activity.java
a7cfbe0e548ac76f20915b65851b8bc9095aa541 16-Jul-2015 Dianne Hackborn <hackbod@google.com> Work on issue #22516282: ChooserTarget URI grants not forwarded

Add new option to startActivityAsCaller() which allows you to
specify that we should not do security checks on the target
activity being launched.

Change-Id: Ie6b28807b96fef35ccdff93b0a01066cfd8fa307
/frameworks/base/core/java/android/app/Activity.java
a04b7add4bbcb68da89427b4f82725f11d98bdc5 01-Jul-2015 Abodunrinwa Toki <toki@google.com> Let the ActionBar handle keyboard shortcuts.

Bug: 18021345
Change-Id: I5df8711dcd020f172f798745846e7b6c05c69191
/frameworks/base/core/java/android/app/Activity.java
255aece7def117c825b928f87da4cfd2d0975f0a 04-Jul-2015 Svet Ganov <svetoslavganov@google.com> Improve request permission docs

bug:22252258

Change-Id: Ife19eb6b1e17b43a824379d2a039ff1c441bebdd
/frameworks/base/core/java/android/app/Activity.java
6a166af8fd25445c1b9a4d7869d87557fcb79cf9 30-Jun-2015 Svet Ganov <svetoslavganov@google.com> Installer is a part of the system with unrevocable permissions

1. Mark the installer permissions as not revocable.

2. Make the permission result dispatch more robust to handle installer death.

bug:22012614

Change-Id: Idee30ca884b87ccf97ba1bb878d4c49912e474b8
/frameworks/base/core/java/android/app/Activity.java
601bb9921d47be42857c1fe5e1c2172e4400b756 22-Jun-2015 Chris Banes <chrisbanes@google.com> Fix leak for MenuInflater + setActionBar

Caused when there are multiple calls to
setActionBar(). getMenuInflater() will
instantiate and keep an instance to the first
Toolbar (and it's container, etc).

BUG: 21638877
Change-Id: Ic9e45bf8f810a033c31b7484244f14e08a72b9f4
/frameworks/base/core/java/android/app/Activity.java
a1e60f1f45dce19f9dc15b97cbb0821ffeb54d9d 10-Jun-2015 Svetoslav <svetoslavganov@google.com> Merge "Use who when requesting permissions" into mnc-dev
970b59cbe377e23e9c681a5cef30c01f730c7377 10-Jun-2015 Svetoslav <svetoslavganov@google.com> Use who when requesting permissions

Change-Id: Id0b231f8b74099b7877eb4441a1664416c641731
/frameworks/base/core/java/android/app/Activity.java
a3acdb33df7c7be7ff3d9f376ff833e4b0c1d897 09-Jun-2015 Dianne Hackborn <hackbod@google.com> Fix issue #21621920: VI: need mechanism to get current request

Add new APIs to associate a Request with a name, get all active
requests, and get active request by name.

Also add a new Activity.onProvideReferrer() which will allow
applications to propagate referrer information to the assistant
(and other apps they launch) in a consistent way.

Change-Id: I4ef74b5ed07447da9303a74a1bdf42e4966df363
/frameworks/base/core/java/android/app/Activity.java
b0a5e78fc06aeb67ac1f55832c9ceef5f92a0807 04-Jun-2015 Dianne Hackborn <hackbod@google.com> Merge "More API changes." into mnc-dev
9ce9a15f62232fa678596556c0e681b3024eb557 03-Jun-2015 Svetoslav <svetoslavganov@google.com> Add annotations to a new API

Change-Id: I41a87a0ba81b1123e06096db510a02a1d9e6531d
/frameworks/base/core/java/android/app/Activity.java
69c6adc96eecfde74ceb83cf9177428dc08b6067 02-Jun-2015 Dianne Hackborn <hackbod@google.com> More API changes.

Start moving Assist* stuff to android.app.assist.

Clean up some more of the VoiceInteractionSession APIs.

Clearly document that finish() is not the same as hide(),
always call hide() instead, and fix the finish() path to
also always do a hide to make sure everything is cleaned
up correctly.

Change-Id: I962d4069fcb34fe89547a95d395ae1b9fa3b4148
/frameworks/base/core/java/android/app/Activity.java
aa048b6242585dfbf35ccefdaa59036ea2e47cf8 03-Jun-2015 Svetoslav <svetoslavganov@google.com> Fix java doc

Change-Id: I927a1766e1e4cac99d0d7999fef568b82af769af
/frameworks/base/core/java/android/app/Activity.java
20770ddbd4d6f2af0093f36462a8f44a678b084b 30-May-2015 Svetoslav <svetoslavganov@google.com> Add API to hint whether to show on-board UI before a permission request.

bug:21511988

Change-Id: I9d1d7adf34b68074e65510f53b6e642cf784cf6b
/frameworks/base/core/java/android/app/Activity.java
3dec0d47215b56e3bd3e6f3287cf2c966bf8c22f 11-May-2015 George Mount <mount@google.com> Merge "Disable input during Activity Transition." into mnc-dev
41725dedc33906aaafee36b2d6523596e2a8a52e 09-Apr-2015 George Mount <mount@google.com> Disable input during Activity Transition.

Bug 19437530

While the actual Activity Transitions are running,
input is stopped, except for the "back" button.

Change-Id: I112e6252b9de05ece10a6267681fee5487e5ef6b
/frameworks/base/core/java/android/app/Activity.java
6711f3b34c2ad9c622f56a08b81e313795fe7647 07-May-2015 Adam Powell <adamp@google.com> Move PhoneWindow and friends back into internal package

PhoneWindow, PhoneLayoutInflater and PhoneFallbackEventHandler decided
to @hide out over in the android.view package after the policy jar was
disbanded. Give them a more appropriate home over in framework that
doesn't imply that they should be accessed from other internal layers
of abstraction.

Bug 19606548

Change-Id: Id07b791d178fa447010b49b24726b52208838e88
/frameworks/base/core/java/android/app/Activity.java
3266f60ba0c2a37883446cadbfc00bb8354824d0 05-May-2015 Todd Kennedy <toddke@google.com> Merge "Call Activity#onAttachFragment()" into mnc-dev
434bd65ca61ff5cec46fce9fbe866d8ee40579da 04-May-2015 Todd Kennedy <toddke@google.com> Call Activity#onAttachFragment()

This was accidentally removed during the changes to abstract a Fragment host.
Also ensure Fragment#onInflate(Activity) gets invoked

Bug: 20825263
Change-Id: I981266ae1e8817db5c82ec4609bbcf4a5e676fee
/frameworks/base/core/java/android/app/Activity.java
6b379c8a3421df32ca1b70a3cb12a095fe443fef 01-May-2015 Todd Kennedy <toddke@google.com> am 9c14b3ab: am c7e9a17a: am 10a54a79: Merge "Remove dependency upon FragmentActivity" into mnc-dev

* commit '9c14b3ab0d6e42031d0465114a979b644c6890d2':
Remove dependency upon FragmentActivity
a5fc6f006f67867417b7a427de6e7394c4312dec 15-Apr-2015 Todd Kennedy <toddke@google.com> Remove dependency upon FragmentActivity

The FragmentManagerImpl is intimately tied with a FragmentActivity. In
many cases, we want to be able to create / manage Fragments outside of
a FragmentManager. This defines a FragmentController interface that can
be used by any class to host Fragments.

Bug: 19569654
Change-Id: I6816a5c1815122d206062b9f4584ad460b3d41dd
/frameworks/base/core/java/android/app/Activity.java
83c6896cbf402623ef7d97f13ed65098df63429f 11-Mar-2015 Tor Norbye <tnorbye@google.com> Annotate some APIs with threading annotations

Change-Id: I24bda29261cdecbe78b2529866624b9313ca5c03
/frameworks/base/core/java/android/app/Activity.java
c21ae9ed221912b61306e075d3f22726ac04013c 15-Apr-2015 Craig Mautner <cmautner@google.com> Add API for putting up locktask pinning toast.

Fixes bug 18993662.

Change-Id: Ic1753285044857f8ea897784485fd1a9580acf25
/frameworks/base/core/java/android/app/Activity.java
15df08abd8190353e1430f88c2ed6462d72a5b25 01-Apr-2015 Craig Mautner <cmautner@google.com> Introduce android:lockTaskMode

The ability for tasks to be started in locktask mode or pinned is
dependent on the value of android:lockTaskMode for the root activity
of the task.

For bug 19995702

Change-Id: I514a144a3a0ff7dbdd4987da5361b94bdfe9a437
/frameworks/base/core/java/android/app/Activity.java
6a975b3c3597a4ad9202432f3c3d867a03d43fa4 10-Apr-2015 Tim Kilbourn <tkilbourn@google.com> Save search context when dispatching onSearchRequested.

The InputDevice used to trigger the search is saved in a SearchEvent
so an application implementing onSearchRequested determine the device
triggering the search.

Bug: 15374820
Change-Id: If2cd14f77ce572a5ee131697cd63145fbea63f27
/frameworks/base/core/java/android/app/Activity.java
d5bf3ed9b0138e9fd305da91386d1df03f9a75cc 27-Mar-2015 Clara Bayarri <clarabayarri@google.com> Show and trigger activities that implement Text Processing actions

This CL adds the Activities that support Intent.ACTION_PROCESS_TEXT
to the Text Selection Action Mode in Editor, and triggers an intent
with the currently selected text when they are selected.

It also adds the required mechanism to allow a View to request an
intent to be started, and return the activity result back to it.

Change-Id: I62ec618010edf01da41338c8c1a7dd4292a15227
/frameworks/base/core/java/android/app/Activity.java
c6d1c345f41cf817bf2c07c97b97107d94296064 26-Feb-2015 Svetoslav <svetoslavganov@google.com> Runtime permissions: per user permission tracking.

Before all permissions were granted at install time at once, so the user
was persented with an all or nothing choice. In the new runtime permissions
model all dangarous permissions (nomal are always granted and signature
one are granted if signatures match) are not granted at install time and
the app can request them as necessary at runtime.

Before, all granted permission to an app were identical for all users as
granting is performed at install time. However, the new runtime model
allows the same app running under two different users to have different
runtime permission grants. This change refactors the permissions book
keeping in the package manager to enable per user permission tracking.

The change also adds the app facing APIs for requesting runtime permissions.

Change-Id: Icbf2fc2ced15c42ca206c335996206bd1a4a4be5
/frameworks/base/core/java/android/app/Activity.java
484bc6e5a79af1b7b0a2eb682802006522b274fd 13-Mar-2015 Dianne Hackborn <hackbod@google.com> Merge "More work on collecting assist data."
4423d91de5300d3fd318bf5bc2d4d7e5bb856abf 02-Mar-2015 Clara Bayarri <clarabayarri@google.com> Add a type parameter to startActionMode() calls.

This requires adding a new method to View and Window.Callback to pass
down the type as a parameter.

For compatibility purposes, the new method implementations keep the
type and call the old method, in case clients have subclassed it.

Change-Id: If5d857f131e33be8cc6a8814f2e9c4e85ad2da25
/frameworks/base/core/java/android/app/Activity.java
a83ce1dd2ad3a6b71e90ff4845afc1299fe17b9d 11-Mar-2015 Dianne Hackborn <hackbod@google.com> More work on collecting assist data.

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
/frameworks/base/core/java/android/app/Activity.java
c615c6fc9caca76cd96998f86e1f1e6393aeadbb 02-Mar-2015 Tor Norbye <tnorbye@google.com> Annotate methods to be called from overrides with @CallSuper

Change-Id: Ibc587c2aaee9f3e7f448079f72a75459fe4e15e7
/frameworks/base/core/java/android/app/Activity.java
08c7116ab9cd04ad6dd3c04aa1017237e7f409ac 28-Feb-2015 John Spurlock <jspurlock@google.com> Remove unused imports in frameworks/base.

Change-Id: I031443de83f93eb57a98863001826671b18f3b17
/frameworks/base/core/java/android/app/Activity.java
7b9c912f536925ac6ec43935d6e97506851b33d6 31-May-2013 Tor Norbye <tnorbye@google.com> Add @ResourceInt annotations on APIs

Change-Id: I119cc059c2f8bd98fd585fc84ac2b1b7d5892a08
/frameworks/base/core/java/android/app/Activity.java
c051955392840cb94bd6f0b2a8107a48d2ffc8b0 12-Feb-2015 Scott Kennedy <skennedy@google.com> Mark findViewById(int) @Nullable

Change-Id: I9bf7c08a896bd9c28400ff832179abc579fd502f
/frameworks/base/core/java/android/app/Activity.java
b10e33ff804a831c71be9303146cea892b9aeb5d 04-Feb-2015 Jorim Jaggi <jjaggi@google.com> Split up android.policy into framework.jar and services.jar 1/3

Change-Id: Ifd69f1f3dd308a7e17a1442e2f3950da8b03cec4
/frameworks/base/core/java/android/app/Activity.java
a7bb6fbeab933326d58aa806d8194b7b13239d34 04-Feb-2015 Dianne Hackborn <hackbod@google.com> First quick implementation of auto assist data.

Introduce new AssistData class that contains all data
the framework automatically generates for assist. Currently
populated with a very simple tree structure representing
the app's view hierarchy.

Reworked how we populate the class name for accessibility
info, so this is provided through a new method call on View
that subclasses can override. This method is also used
to populate the class name in AssistData.

Change-Id: Ibd0acdc8354727d4291473283b5e4b70894905dc
/frameworks/base/core/java/android/app/Activity.java
43181fb72d12bbf4f89a015f5020229b6ee00aab 28-Jan-2015 Jose Lima <joselima@google.com> am 4a40f7cc: Merge "Fix crash caused by disabling the Options panel on TVs" into lmp-mr1-dev automerge: 1f81973
automerge: 485f6a6

* commit '485f6a60e0182767d57a5ab08d6438124a69439e':
Fix crash caused by disabling the Options panel on TVs
bd769a15abfcb23b16daaed10c09029bbb978eef 28-Jan-2015 Jose Lima <joselima@google.com> Fix crash caused by disabling the Options panel on TVs

Address more cases where calls to getPanelState may cause a crash when the
options panel is disabled on a platform.

Bug: 19178531
Bug: 18780696
Change-Id: Ib72bb8483e636181788ed3919c4cb9e99a94b7b1
/frameworks/base/core/java/android/app/Activity.java
783f28691e27b7b116730fad4f9fd9c083bab283 27-Jan-2015 Wale Ogunwale <ogunwale@google.com> Merge "Support activities in the same process having different resources."
ceba619e36e5770603a295e374ea01b9026c4c0f 27-Jan-2015 Jose Lima <joselima@google.com> am 445768bd: am 3fd8a433: Merge "Allow disabling the Options Pannel feature for TVs" into lmp-mr1-dev
automerge: 69fbcf1

* commit '69fbcf1f100905f5a28909d561db4753189bd717':
Allow disabling the Options Pannel feature for TVs
60454dbc4d815c90ff2713e224953d6547fc3ad5 24-Jan-2015 Wale Ogunwale <ogunwale@google.com> Support activities in the same process having different resources.

Activities can be of various sizes in a multi-window environment.
This change allows them to have override configurations that allows
different resources to the loaded if needed.

Bug: 19002213
Change-Id: Ib2c7be0b427f5ce05e7a362bcdd496ddbc9164f0
/frameworks/base/core/java/android/app/Activity.java
7a22fc62d364bba4c1604a7e88fbd321eb541f4e 24-Jan-2015 Jose Lima <joselima@google.com> Allow disabling the Options Pannel feature for TVs

- Added a config entry in velues-television to disable the options panel
feature for TVs.
- Fixed parts of the code in PhoneWindow that assumed this feature is supposed
to always be available, which was causing exceptions when it was turned off.

Bug: 18780696
Change-Id: I923bd4b5019d634e5352a6e893005133edb475f6
/frameworks/base/core/java/android/app/Activity.java
4e106cedfecd1f6026a79870c2e427853cba7491 15-Jan-2015 Dianne Hackborn <hackbod@google.com> Bring back voice interaction APIs.

Change-Id: I6039d7c0b188ac342441c56f7d19994b9a80ba17
/frameworks/base/core/java/android/app/Activity.java
23a6d889aa0cdcb244ccbe2b999a87e7ece7b7e5 16-Jan-2015 Ricardo Cervera <rcervera@google.com> am 1e59b338: am 08314642: am 90312d80: am 22878790: am 93f94c2c: resolved conflicts for merge of e8f6bd48 to lmp-dev

* commit '1e59b338e6d1a270947908e53cefd088e2e38fb3':
docs: Added info on noHistory and onActivityResult(). Bug: 13807256
90312d808f4a5181b5cb99c78e64b7e5d1465895 16-Jan-2015 Ricardo Cervera <rcervera@google.com> am 22878790: am 93f94c2c: resolved conflicts for merge of e8f6bd48 to lmp-dev

* commit '2287879039556ad3c8fce58974e2396b4a2dab45':
docs: Added info on noHistory and onActivityResult(). Bug: 13807256
2287879039556ad3c8fce58974e2396b4a2dab45 16-Jan-2015 Ricardo Cervera <rcervera@google.com> am 93f94c2c: resolved conflicts for merge of e8f6bd48 to lmp-dev

* commit '93f94c2ca5bf23533fc5a9bd70a4795584d20618':
docs: Added info on noHistory and onActivityResult(). Bug: 13807256
93f94c2ca5bf23533fc5a9bd70a4795584d20618 16-Jan-2015 Ricardo Cervera <rcervera@google.com> resolved conflicts for merge of e8f6bd48 to lmp-dev

Change-Id: Idc370182914d5060a721d34c26cd72598f2c6dff
e8f6bd484627e16fa2fd9509b0f06056ee44be94 16-Jan-2015 Ricardo Cervera <rcervera@google.com> am 98f07d90: am 92f6a747: docs: Added info on noHistory and onActivityResult(). Bug: 13807256

* commit '98f07d901492335f51258655fbfa032fa3f2d58e':
docs: Added info on noHistory and onActivityResult(). Bug: 13807256
8b6216d31415e9b9377570ebc5b0727a16e36054 17-Dec-2014 Kris Giesing <kgiesing@google.com> Fix minor spelling and grammar errors in public JavaDoc

b/18777215

Change-Id: I2403db4fb94144f0a71243c6b74076482defc9a4
/frameworks/base/core/java/android/app/Activity.java
ee8c9c6379eda460e627d64b2be21bb28b748f49 10-Dec-2014 Todd Kennedy <toddke@google.com> Add NoDisplay test when resuming Activity

When an activity has no display [i.e. it's invisible], it
must call finish() before onResume() completes

Bug: 18279655
Change-Id: I2b8562b852c05fdfff4e6a6922ce47e9e948a880
/frameworks/base/core/java/android/app/Activity.java
a83c5806ded083f51549ba4bf70e0c1f6a17fc61 21-Nov-2014 Filip Gruszczynski <gruszczy@google.com> Merge "SwipeDismissLayout makes activity opaque only after entry animation ends." into lmp-sprout-dev
automerge: 96c5d37

* commit '96c5d37fb5139465cdd3d882b5deba830497557a':
SwipeDismissLayout makes activity opaque only after entry animation ends.
6eafa902cbc15fa35f8f0dfb5e559673fa67f637 14-Nov-2014 Filip Gruszczynski <gruszczy@google.com> SwipeDismissLayout makes activity opaque only after entry animation ends.

Bug: 18340863
Change-Id: Ic60fa2463618f86b1ae23fc4a0c06cd348f28334
/frameworks/base/core/java/android/app/Activity.java
85d558cd486d195aabfc4b43cff8f338126f60a5 04-Nov-2014 Dianne Hackborn <hackbod@google.com> Add Activity API to get referrer information.

This expands the use of EXTRA_REFERRER to be relevant anywhere,
allowing apps to supply referrer information if they want. However,
if they don't explicitly supply it, then the platform now keeps
track of package names that go with Intents when delivering them
to apps, which it can be returned as the default value.

The new method Activity.getReferrer() is used to retrieve this
referrer information. It knows about EXTRA_REFERRER, it can return
the default package name tracked internally, and it also can return
a new EXTRA_REFERRER_NAME if that exists. The latter is needed
because we can't use EXTRA_REFERRER in some cases since it is a Uri,
and things like #Intent; URI extras can only generate primitive type
extras. We really need to support this syntax for referrers, so we
need to have this additional extra field as an option.

When a referrer is to a native app, we are adopting the android-app
scheme. Since we are doing this, Intent's URI creation and parsing
now supports this scheme, and we improve its syntax to be able to build
intents with custom actions and stuff, instead of being all hung up
on custom schemes.

While doing this, fixed a problem when parsing both intent: and new
android-app: schemes with a selector portion, where we were not
respecting any scheme that was specified.

Change-Id: I06e55221e21a8156c1d6ac755a254fea386917a2
/frameworks/base/core/java/android/app/Activity.java
92f6a747085b4b5ed692de4bdb0050c096eae393 04-Apr-2014 Ricardo Cervera <rcervera@google.com> docs: Added info on noHistory and onActivityResult(). Bug: 13807256

Change-Id: Iae4901a311e76401396f89c552e5b27a49c65c83
/frameworks/base/core/java/android/app/Activity.java
9797880808320e3a7bae1f59bc7e0c5a13189e5f 14-Oct-2014 Jeff Sharkey <jsharkey@android.com> Start cross profile intents as caller.

The system should always be using new startActivityAsCaller() when
starting activities on behalf of someone else, to ensure that
security checks are enforced as the original caller.

Bug: 17983737
Change-Id: Ic40816a797cfdb13c0adb48b86ed4ed7d6aae8eb
/frameworks/base/core/java/android/app/Activity.java
fdf5b35ab46639759d6389a4e2a4d5799cb6814b 09-Oct-2014 Dianne Hackborn <hackbod@google.com> Implement issue #17906468: Allow search request to fall back to global search

Change-Id: I04834b2a9f1ec4a68c6a3fed14da2f8dd93b3be7
/frameworks/base/core/java/android/app/Activity.java
64ccb7086741d520c041273610519a5c2f65b440 01-Oct-2014 Craig Mautner <cmautner@google.com> Don't clear visible-behind activity if it is top

Previously if an activity requested to keep running behind
translucent activities (Activity.requestVisibleBehind()) and then
converted itself to opaque (Activity.convertFromTranslucent()), we
would clear the visible-behind activity. This change tests to see
if the top activity is the visible-behind activity and does not
clear it in that case.

This change also clears the visible-behind activity whenever it
comes back to the front. That forces the activity to call
requestVisibleBehind() each time it is resumed.

Fixes bug 17648436.

Change-Id: Id0fc4d7e2a2b907675305d98bad1b08cb610919e
/frameworks/base/core/java/android/app/Activity.java
8f8f5f579fa6448a2ed370c5bd48af35a30f4944 19-Sep-2014 George Mount <mount@google.com> Merge "Fix exception when fragment container has no View." into lmp-dev
0b26e4d58ab1a60340dd7ab35ca6e3bddff9f760 18-Sep-2014 George Mount <mount@google.com> Fix exception when fragment container has no View.

Bug 17535259

Change-Id: I29c9ef53dd693cbb4043ebfb4750753870c9e99a
/frameworks/base/core/java/android/app/Activity.java
648f69b95ce7fc95f551f6e08a2408d6e57dbab9 18-Sep-2014 Craig Mautner <cmautner@google.com> Remove activity icon bitmaps from system process.

When a TaskDescription is sent up to the system process, the Bitmap
contained in the mIcon member is immediately flushed to disk and the
name of the file replaces it in the TaskDescription. Thereby saving
mucho RAM for better uses.

Fixes bug 17527308.

Change-Id: Ifac63ea5d12ed091d1eb03e178b8b847a827f940
/frameworks/base/core/java/android/app/Activity.java
9826f636ad4fe3714d60972acd918e09eb44d971 11-Sep-2014 George Mount <mount@google.com> Have Activity Transitions activited by a new window attribute.

Bug 17006497

Window content transitions were being enabled by default in
the Material Theme so that Activity Transitions could be
enabled by default. Unfortunately, this gave the effect that
many applications did not want -- the default transition between
window content is a fade out/in. Here, a new attribute is
added: windowActivityTransitions that is enabled by default
in the Material theme and windowContentTransitions is disabled
by default in all themes.

Change-Id: Iab453d608f00a48ff7ab7f09ce84b52cf5f20294
/frameworks/base/core/java/android/app/Activity.java
88dcd1a5f7d0109e460f8938096063d1a18224c3 05-Sep-2014 George Mount <mount@google.com> Merge "API Review: Change SharedElementListener to SharedElementCallback." into lmp-dev
6558056e8fccc32f9e1dc59e46d09f8d916b7538 29-Aug-2014 George Mount <mount@google.com> API Review: Change SharedElementListener to SharedElementCallback.

Bug 15863001
Bug 17289526

Changed SharedElementListener to SharedElementCallback
Renamed methods to use "on" prefix.
Adjusted javadoc to reflect usage in Fragments.

Change-Id: I7cc517c269a8e417cb5c3a0948bdd3b654d42472
/frameworks/base/core/java/android/app/Activity.java
7a629c2d04bb3c8fbdca6fdf3e0911f451d1880e 04-Sep-2014 Craig Mautner <cmautner@google.com> Update API per council request

A few protected => public changes and picking up another change
in ViewAnimationUtils that got missed.

Fixes bug 17389511.

Change-Id: I75027535eade6427c2d9067369426297c168e77e
/frameworks/base/core/java/android/app/Activity.java
9e18397112df0ebe49b9e4325d7040498b2afcfa 03-Sep-2014 George Mount <mount@google.com> "Back" with translucent window now sets ActivityOptions.

Also made convertToTranslucent set the canvas opacity.

Bug 16215650

Change-Id: Id4325eaed34cda1269d874f239aeb5f6f82c959f
/frameworks/base/core/java/android/app/Activity.java
d7c0395d26694c594c3e64b16ab647c971aeb422 30-Aug-2014 Dianne Hackborn <hackbod@google.com> Hide the interaction part of VoiceInteractionService.

Also the ability to start voice activities is turned off,
though for testing purposes it can be turned back on with a system
property.

Change-Id: I867704d32c53beeb851ceea9b45c28bf5c01ef61
/frameworks/base/core/java/android/app/Activity.java
fcf7083eab5b859e660e2d4a191687d03dc7de06 28-Aug-2014 Jose Lima <joselima@google.com> Renamed Activity.onVisibleBehindCancelled() to Activity.onVisibleBehindCanceled()

API review request.

Bug: 17288987
Change-Id: If63f847ce630a57e4aa1e5291befe2863cb7e0c7
/frameworks/base/core/java/android/app/Activity.java
4902a89103ede745a933186d524fb739791eba2a 27-Aug-2014 Adam Powell <adamp@google.com> Merge "Adjust toolbar/action bar title handling" into lmp-dev
af2d85973ed768e390bc2f40f255ea39cc6f6fe5 27-Aug-2014 Adam Powell <adamp@google.com> Adjust toolbar/action bar title handling

Treat activity title changes as window title changes when propagating
to action bars. This gives it lower priority if a "hard" title has
been set. Fix some lifecycle handling around this that previously
resulted in multiple calls.

Automatically detect the starting display options for a
ToolbarWidgetWrapper if we're not grabbing them from styles. This
prevents setTitle and friends from going totally out to lunch if
constructed around a Toolbar with no starting title.

Bug 17138048

Change-Id: I9f58a3d222546745c8aa873e996b8f0d52a0ad21
/frameworks/base/core/java/android/app/Activity.java
1b012d302b56b4adf950035136d1d191a1936d5a 20-Aug-2014 Jeff Hao <jeffhao@google.com> Add sample profiling option to am.

Also bundles all profiling options into a class.

Bug: 17040932
Change-Id: I85d675ee1494bdc7308caffdf94145d27c996e9d
/frameworks/base/core/java/android/app/Activity.java
89ad456ea49cb62615ebdcac83a2515743bbe5fa 25-Aug-2014 Dianne Hackborn <hackbod@google.com> Fix issue #16311398: Limit number of documents a process can open

In application processes, monitor for when we start getting close
to the Dalvik heap limit, and ask the activity manager to try to
prune old activity instances in that case.

Add an explicit API for apps to ask that they have their own
activity instances cleaned up, if they want.

Fix some bugs in launching activities that were not correctly
applying the "multi task" behavior in the appropriate situations
of document-centric recents.

Clean up the activity manager's process removal code to all share
a common path.

Add a new "Spam" option to ActivityTests, which continually creates
new tasks, checking that the activity manager will now prune old
tasks rather than letting the app run out of RAM.

And while I was was doing this, I found problems with the path
for bringing an empty task to the foreground -- it could make
a new task instead of re-starting the root activity in the
existing task. This is fixed, and some code in the recents
UI for working around the bug is removed.

And as long as I am doing that, we now have nice hooks in to
the activity manager for AppTask to give some APIs for better
managing the task, so add those along with more tests for these
APIs in ActivityTests.

We should look at also having the activity manager try to prune
old tasks when it sees app processes being killed, to better balance
memory use across multiple processes when some processes may host
many documents. That however is for another CL...

Change-Id: I2bb81c3f92819350c868c7a7470b35817eb9bea9
/frameworks/base/core/java/android/app/Activity.java
250bf41b8ee61c7b5707fefad1456634c7e73bbb 22-Aug-2014 Dianne Hackborn <hackbod@google.com> Merge "Work on issue #17011123: Hit Back/Recents button when in Recents..." into lmp-dev
a557fdcfb855f3183c687d988a56f4f9ed3b0767 22-Aug-2014 Adam Powell <adamp@google.com> Directly propagate Activity titles to action bars

Window decor action bars already inherit window title changes if no
explicit action bar title has been set but from an Activity's
perspective setting the activity title is a stronger signal. This is
especially relevant when the activity's action bar has been provided
by the application in the form of a Toolbar.

Bug 17138048

Change-Id: Ibf042cab6bbda3dc29590c09d1a0910b6ba78870
/frameworks/base/core/java/android/app/Activity.java
6f4d61ff2e3143bea37bbc1a7a2a0ab415b2c88a 22-Aug-2014 Dianne Hackborn <hackbod@google.com> Work on issue #17011123: Hit Back/Recents button when in Recents...

...without interacting with any of the Recents items should not bring
Home back to top

Up navigation needs to be smarter about multi-document and in the case
of being at the root of a document know to re-construct a task for
the app.

Change-Id: Ief874e46e9a9897379dda1010bcce4c5b03d82f1
/frameworks/base/core/java/android/app/Activity.java
8f4a21e46609527a38fbd423a8da8a45f57d84d1 19-Aug-2014 Adam Powell <adamp@google.com> Merge "Fix a bug propagating navigation button events from ToolbarActionBar" into lmp-dev
14e1afe0d86de826ae1831d64ca00da03da86b4b 19-Aug-2014 Adam Powell <adamp@google.com> Fix a bug propagating navigation button events from ToolbarActionBar

Add a simple internal wrapper for dealing with window callback events.
This should also make working with things like action modes from
ToolbarActionBar significantly easier in later changes.

Bug 16980711

Change-Id: I2c3d7525489a21847f4af9b80f6ebf9b34b4dd58
/frameworks/base/core/java/android/app/Activity.java
028ceeb472801bcfa5844fc89ed0da8463098824 18-Aug-2014 Dianne Hackborn <hackbod@google.com> Fix issue #14617210: Apps can gain access to any ContentProvider...

...with grantUriPermissions (no user interaction required)

Add a new path in to the activity manager to start an activity as
if it was directy started by the original calling activity. This
is specifically for the resolver activity and chooser activity to
be able to safely launch its data after serving as an intermediary.

Access to the new method is highly restricted -- it can only be
called by an activity that is declared in the framework apk itself,
and the execute-as-the-caller behavior will only happen if the
code is running under the system uid. (This means we could still
have these run in the client's process in some cases and still work
correctly.)

Note there is some commented out code here half-done about trying
to propagate security exceptions back to the original calling
activity. This would be really nice, especially now with the
chooser activity running in a system process so any errors made
by the app (bad permission grants, bad intents, etc) no longer
actually appear in the app so are essentially invisible. I'd
really like to figure out a way to propagate these exceptions back
to the app, but this is hard since the app's process may no
longer even be running at this point.

Also tweak activity manager dump output to split the recents
dump out from activities, since recents can now be super large.

Change-Id: I50410c4783faf9302c69290589a068a846e0973a
/frameworks/base/core/java/android/app/Activity.java
14914858a0c0d796c1ebf9bf40eba138b8e6d4da 14-Aug-2014 Jose Lima <joselima@google.com> Make TranslucentConversionListener a SystemApi

Change-Id: I59a93e1e040fdbaa9ef108b31e08e4553ba82ae1
/frameworks/base/core/java/android/app/Activity.java
4b6c6697da5a20c08b2f9f2ca40c94008477e914 13-Aug-2014 Jose Lima <joselima@google.com> Renamed "media playing" APIs to "visible behind"

- Request from API Review: rename the media playing APIs to a more
generic name, reflecting the background visibility feature these
methods actually control.
- Made the new isActivityVisibleBehind().
- Changed convertFromTranslucent() and convertToTranslucent() to be
SystemApi.

Bug: 16959028
Change-Id: I526eac22f44273b3254dd6201f89194d13e597e2
/frameworks/base/core/java/android/app/Activity.java
9a090e6dedcb1469c9293d868c7ca6409fc7774f 29-Jul-2014 Jason Monk <jmonk@google.com> Merge "Fix incorrect Activity#startLockTask doc" into lmp-dev
8863b57e89e51ae9427682ebd561a3a17a311089 29-Jul-2014 Jason Monk <jmonk@google.com> Fix incorrect Activity#startLockTask doc

It referenced a swipe down gesture that doesn't exist. This should
be more safe, and cover other devices as well.

Bug: 16626273
Change-Id: I907b25a00d903f9f36ca335d3a75c1f8f931d50e
/frameworks/base/core/java/android/app/Activity.java
8746a478abcfb3b0d73b156232051af1e8d21ce2 25-Jul-2014 Craig Mautner <cmautner@google.com> Create end of animation callback for Activity

Activities cannot draw while their entering animations are active.
This change introduces a callback, onEnterAnimationComplete() so
that activities can know when their draws will be effective.

Fixes bug 13658460.

Change-Id: Ic48540cd4c7e37538f10cb2dc0852aa3f55d11e1
/frameworks/base/core/java/android/app/Activity.java
5438e4e173c756a24061da38bfe9142765c56f9d 25-Jul-2014 Michael Wright <michaelwr@google.com> Add missing documentation for createVirtualDisplay

Fix incorrect access modifier in Activity documentation.

Change-Id: Id41da6ccbdfa8b53c89360c899f3a43aec899982
/frameworks/base/core/java/android/app/Activity.java
550116576cce028d3c435f7c3ae9f6e3b92b5cf2 10-Jul-2014 RoboErik <epastern@google.com> Add API to set a default session in Activity

We may have multiple remote sessions at once so an app needs a way
to specify a default session to route media and volume commands to
when its activity is in the foreground. This adds an api that works
in parallel with the default stream api on Activity.

bug:15727927
Change-Id: I5b67cb3e20647f9437d90aa65be63efe8c7865cf
/frameworks/base/core/java/android/app/Activity.java
83231457d351a05b6afc944eca7de833b413a123 04-Jul-2014 Alexandra Gherghina <alexgherghina@google.com> Adds hidden startActivityForResultAsUser APIs

Bug: 16056552
Change-Id: Ib50f95782748a9dfdb2ee64225971128ac78e1c8
/frameworks/base/core/java/android/app/Activity.java
b0a11172eabed683cca50f19e566ceb11aa79c86 08-Jul-2014 Craig Mautner <cmautner@google.com> Merge "Add Media Playing API"
ee2e45acbff28986c2ced636b7550d0afbb0eeb7 27-Jun-2014 Craig Mautner <cmautner@google.com> Add Media Playing API

These methods permit an activity to play or continue playing media
behind a translucent activity above it. Particularly the home
activity in Android TV. Methods exist to notify the upper activity
when playing starts or stops and for notifying the playing activity
when to stop playing and release its resources.

Methods are called when either activity's state changes or new
activities are launched.

Fixes bug 14469711.

Change-Id: I7ba10c5a4683504931cffa228488f5281e5bbf86
/frameworks/base/core/java/android/app/Activity.java
ff243289d346530a99921fd19ca35df7cea51042 08-Jul-2014 George Mount <mount@google.com> Prevent exit transition when a new task was started.

Bug 15543793

Change-Id: Id9705009e16da82fe2068f16e167c9cd07696889
/frameworks/base/core/java/android/app/Activity.java
d61dc20de10452dcc6905dcf0654f30c64762a1d 07-Jul-2014 Craig Mautner <cmautner@google.com> Add Activity.isTopOfTask() method

Used by scene transition to determine if an activity has launched the
next activity into its own task or into another task.

Fixes bug 15771895.

Change-Id: I6d350350dcf27509296d55d7b75be90a01694ac9
/frameworks/base/core/java/android/app/Activity.java
eb8abf7207aa118065999514f9248affbdd94de1 03-Jul-2014 Craig Mautner <cmautner@google.com> Introduce onNewActivityOptions for return activity

When an activity that is already translucent returns to the
previous activity using a scene transition the receiving activity
did not receive its ActivityOptions for its side of the animation.
The new method onNewActivityOptions() delivers those options.

Fixes bug 14869070.

Change-Id: I09b136b3213aae5d3521894e17a7500ac793f3d2
/frameworks/base/core/java/android/app/Activity.java
2eb983be20c84560b078aac5e18b2e5183df7fd9 27-Jun-2014 George Mount <mount@google.com> Merge "Activity Transitions: change default behavior."
abb63cb6223e4ab40a82d773d3d84bd0b3a57325 23-Jun-2014 George Mount <mount@google.com> Activity Transitions: change default behavior.

Bug 15746767

The default for activity transitions with the material theme
should be to enable them when makeSceneTransitionAnimation is
used, but disable them when no ActivityOptions is used.

Change-Id: I4c777a72e4401b367e30b9ba971f7280646d5017
/frameworks/base/core/java/android/app/Activity.java
5770f18e82ee73968f1f3da132bd1121e3ef8520 25-Jun-2014 George Mount <mount@google.com> Merge "Activity Transitions: don't require transitionName."
1fecfb2ddcdf4335ff543bdd549b8e4d36139da8 18-Jun-2014 George Mount <mount@google.com> Activity Transitions: don't require transitionName.

Bug 15585623
Bug 15607591

Exit transitions now run because exit transitions are executed
with startActivity.

Change-Id: Ie55793a9514c64d96e2cf1abdd2d39c4d2606a23
/frameworks/base/core/java/android/app/Activity.java
371a809179c843d7ae661a10bc9b4b8cfcaff566 20-Jun-2014 Adam Powell <adamp@google.com> Inflate fragments from layout into child FragmentManagers

Previously, if an app inflated a layout in a Fragment's onCreateView
that itself had fragments included, those fragments would be added to
the Activity-level FragmentManager and would not share the same
lifecycle with the fragment it was inflated for. This led to some
nasty management headaches.

If an app targets L or above, add the fragment to the child
FragmentManager of the current fragment when inflated using the
LayoutInflater passed to the parent fragment.

Bug 12763389

Change-Id: Iad4ed7d5df602aea9579bf1503e206fa894630c1
/frameworks/base/core/java/android/app/Activity.java
62515beee67307d8859beec521b7baedfa54b2b5 21-May-2014 Jason Monk <jmonk@google.com> Add lock-to-app mode

Added a dialog that shows when app has not been authorized by
DevicePolicyManager.isLockTaskAuthorized. This allows any app
to trigger lock-to-app mode. This same dialog is used when
startLockTaskOnCurrent is triggered by the recents long-press.

Can exit the mode by long-pressing recents again.

Keyguard is disabled when lock-to-app is active.

This CL also prevents apps from finishing when they are the root
task in a lock task TaskRecord.

Change-Id: Ib54d858e570cccf6bfd986958868e15f49bcef75
/frameworks/base/core/java/android/app/Activity.java
3cc716c445688228311bead8641c467e91effab9 13-Jun-2014 George Mount <mount@google.com> Don't make translucent window opaque during activity transition.

Bug 15535332

Returning transitions will continue to not work until
Bug 14869070 is fixed.

Change-Id: If0128b58eb852b037924ae6dea8e975fedbe5be7
/frameworks/base/core/java/android/app/Activity.java
43e52ed32e2d55ef4aee18c4b4bc13b7fdef9cc4 17-Jun-2014 Craig Mautner <cmautner@google.com> Fix persistent tasks and expand scope

- Fixed missing tag closure on the xml for storing Intent categories.
- Shortened timeout for flushing tasks to persistent storage from
one minute to ten seconds.
- Made persistency the default except for those tasks on the home
stack and those tasks that exclude themselves from the recent task
list.
- Fixed deletion of tasks after restoring. Tasks now survive a second
reboot, not just the first reboot.
- Fixed sort order so most recent tasks will be restored at front.

Fixes bug 15672002.

Change-Id: I16d87d58c6fd2e879cfd0c0b18b2694432a79b71
/frameworks/base/core/java/android/app/Activity.java
e089d06151481c16881f8dd941d7c0a17fa461c9 11-Jun-2014 George Mount <mount@google.com> Merge "Allow enter activity transitions to be delayed until data is ready."
8c2614ce4328640642d8e8be437859e0508a39b4 10-Jun-2014 George Mount <mount@google.com> Allow enter activity transitions to be delayed until data is ready.

Bug 15539194

Change-Id: I8de9806b0bcdf8129eb3b5a555a2433f0c7be634
/frameworks/base/core/java/android/app/Activity.java
5517ea78eb3c6fb3e9dfe3d9457533188d1f0294 10-Jun-2014 Jose Lima <joselima@google.com> Make convertToTranslucent a public method in Activity

- Changed the access level for convertToTranslucent in Activity
to public.
- Still keeping convertToTranslucent as a hidden method.

Bug: 15492979
Change-Id: I7d013541e8ed7708ce208cd4cf5d1c1d20d50e50
/frameworks/base/core/java/android/app/Activity.java
07a74548ae5c1e064508cb1c79ac34de1142b240 31-May-2014 Adam Powell <adamp@google.com> Further implementation for ToolbarActionBar

Integrate activity options menu and inline Toolbars. Fix a series of
small associated bugs.

Activities now (privately) offer several menu-related events directly
to the associated ActionBar. In the future this should help us
untangle some of the menu-based pasta in PhoneWindow.

Bug 15344598

Change-Id: I76211ad17d2bcbb58cf1d88914e855416d084ded
/frameworks/base/core/java/android/app/Activity.java
377801463ef75d7c14f3ef6a346d8ddccb2a4045 01-Jun-2014 Adam Powell <adamp@google.com> Change parameter name for Activity#setActionBar

Feedback from API review

Bug 14998253

Change-Id: Id3b87a8071d43de49847e93fd6229d48364bf55e
/frameworks/base/core/java/android/app/Activity.java
20d94749043d0851f1da10c7749fd7eb13a35081 30-May-2014 Dianne Hackborn <hackbod@google.com> More work on voice interaction visuals.

There is now a special theme for voice interaction activities
to use, so they can be a panel that is better intergrated with
the rest of the voice interaction experience. This is still
not completely working, I have some hacks in the demo app to
get it right; I'll fix that in a future change.

Also improve VoiceInteractor to be retained across activity
instances, for things like rotation.

And bump up the number of concurrent broadcasts that are allowed
on non-svelte devices, since they can handle more and this makes
the boot experience better when dispatching BOOT_COMPLETED.

Change-Id: Ie86b5fd09b928da20d645ec2200577dee3e6889d
/frameworks/base/core/java/android/app/Activity.java
a8bd9294387a415f02e9cdeb80c8215bb601dd06 21-May-2014 George Mount <mount@google.com> Use activity transitions when launched from fragments.

Bug 15118249

Change-Id: I4e6a5dc6c930828a54a855d7b580a1bbc591ece5
/frameworks/base/core/java/android/app/Activity.java
fb052926b84d69fdc4bebcb0373e33388c7bcbb7 21-May-2014 Dianne Hackborn <hackbod@google.com> Revert "Hide voice interaction APIs."

This reverts commit a677a9b9367bcf8c81c36dc59b53554cb347b438.
/frameworks/base/core/java/android/app/Activity.java
4ee35806090a5e01600c87ff12ecd041ad4586f8 21-May-2014 Craig Mautner <cmautner@google.com> Merge "Change method name per API council request"
8cab50afda0d8485436f72a93d668697f549d3b3 15-May-2014 George Mount <mount@google.com> Fix for quick "back" in Activity Transitions.

Bug 14990153

Stops two potential animators working against the background
drawable. Forces the entering views to become visible onResume.

Change-Id: I2da66b54a16c6c69533eebbeff6db7f5a7794a89
/frameworks/base/core/java/android/app/Activity.java
800d72b0e05049e4a8f90ea96ec165fc975264ce 19-May-2014 George Mount <mount@google.com> Add to activity transition API as requested by consumers.

Change-Id: Iae01d7560770bab0ff9a1728d6552b98b17108ce
/frameworks/base/core/java/android/app/Activity.java
73f843de4b65772c624ca8ebb8c976a279e37ce9 19-May-2014 Craig Mautner <cmautner@google.com> Change method name per API council request

Activity.finishWithTransition() => finishAfterTransition().

Fixes bug 14997477.

Change-Id: I517f70b3bd6df9962f4bb2acf282e4b9fa91acde
/frameworks/base/core/java/android/app/Activity.java
71dc28b11eedd0e7c99fe11b832f1301f262ce33 17-May-2014 Winson Chung <winsonc@google.com> Merge "Refactoring RecentsActivityValues into TaskDescription, and ensuring they are resolved when set. (Bug 14995928, 14832629)"
a449dc033b79775b8945d9cc5a035a6deb145065 16-May-2014 Winson Chung <winsonc@google.com> Refactoring RecentsActivityValues into TaskDescription, and ensuring they are resolved when set. (Bug 14995928, 14832629)

Change-Id: I582221468e63a96a5dfd132a31b09e72099b170f
/frameworks/base/core/java/android/app/Activity.java
dcff99598f16737e75278e8ea9dbfe92579ea234 16-May-2014 Dianne Hackborn <hackbod@google.com> Hide voice interaction APIs.

Change-Id: I961b6399a6edca239caaba9bbd1dd5e03bc612bd
/frameworks/base/core/java/android/app/Activity.java
62ab9b78b77b7dd851c47115f4d8d7611d657585 02-May-2014 George Mount <mount@google.com> Support Activity Transitions when activity stopped.

Bug 14459812
Bug 14454812
Bug 14450295

A new transport was supported for Activity Transitions
in which convertToTranslucent can now take a Bundle
to transport to the calling Activity. This also allows
waking Activities to regain the communication between
the exiting Activity and the calling Activity.

Change-Id: I29aee14b7e56d9b8b9fb656f382b2c4172b02e14
/frameworks/base/core/java/android/app/Activity.java
233ceeebab7efe6ad4783371003c4cf29b896436 10-May-2014 Craig Mautner <cmautner@google.com> Pass ActivityOptions back from finishing activity.

Adding an ActivityOptions parameter to convertToTranslucent provides
a mechanism for delivering these options to the activity that
launched the one that is returning.

Fixes bug 13032208.
Fixes bug 14469460.
Fixes bug 14597427.

Change-Id: I4115dd3c69de9d175f6df0498a6e964fca5eca29
/frameworks/base/core/java/android/app/Activity.java
77dd7ce506e67c28ab6ddd7f7821c8153036da71 10-May-2014 Winson Chung <winsonc@google.com> Merge "Fixing crash in Activity.onApplyTheme()."
4d1a434cbd1dbf03f568ecfc10b2f89affc00192 10-May-2014 Winson Chung <winsonc@google.com> Fixing crash in Activity.onApplyTheme().
/frameworks/base/core/java/android/app/Activity.java
b7a6e198fec1e5c1afa2715b37728db2328c9032 10-May-2014 Winson Chung <winsonc@google.com> Merge changes I5d21645b,I8928e357

* changes:
Fixing NPE in accessing theme attribute.
Better transition between excluded-from-recent applications to recents.
aca960204ef4e5300e95679e054802969fa7d141 10-May-2014 Winson Chung <winsonc@google.com> Fixing NPE in accessing theme attribute.

Change-Id: I5d21645b5530f13e1709021bd818de6bdb1d6544
/frameworks/base/core/java/android/app/Activity.java
d9ddf2e9d04f8a53d7445a96aa3e192fa86f08d6 09-May-2014 Craig Mautner <cmautner@google.com> Merge "Introduce persistent forms of Activity lifecycle calls."
a002604af0c9b1204556610537b85685d7055996 23-Apr-2014 Craig Mautner <cmautner@google.com> Introduce persistent forms of Activity lifecycle calls.

When an Activity is created with R.attr.persistable true different
forms of activity lifecycle methods including PersistableBundle will
be used.

Fixes bug 13736007.

Change-Id: I7e92917b300b76964257cfcc26c24e76aa19bd16
/frameworks/base/core/java/android/app/Activity.java
6e058419503910e0d5f67f9b51b84ad636ffa01f 09-May-2014 Winson Chung <winsonc@google.com> Merge "Removing the old tasks on launching recents task if they trigger a new task."
5393dff555641f5666573952498e27c90fd3edca 08-May-2014 Winson Chung <winsonc@google.com> Removing the old tasks on launching recents task if they trigger a new task.

- Only kill processes when removing tasks that are not started as documents
- Tweaking thumbnail animation
/frameworks/base/core/java/android/app/Activity.java
607562a7660a9b0eec2a8eb52388bdc7604747d2 08-May-2014 Jason Monk <jmonk@google.com> Merge "Fix Docs breakage"
41a2e337447a7d6f3e9d66af35e90429e3088be6 08-May-2014 Jason Monk <jmonk@google.com> Fix Docs breakage

This depends on another API which evidently has not been merged
yet, this change should be reverted once the API is available
to be linked.

Change-Id: I59cb76e158fc0fac68ebd1c0de48b55e52274805
/frameworks/base/core/java/android/app/Activity.java
01d1d907530e23f5e86edabada9c354420277df0 07-May-2014 Jason Monk <jmonk@google.com> Merge "Make Lock Task API public."
a57e5e006bb7c60d0eb77d4ecf43d658b80f9d1f 07-May-2014 Jason Monk <jmonk@google.com> Make Lock Task API public.

Change-Id: Ieaf944dc69e206e091d8257e0f92013b082ceaac
/frameworks/base/core/java/android/app/Activity.java
5f97930fc5dd44fcf1864acd53401c00b4de3a24 06-May-2014 Adam Powell <adamp@google.com> am c41fa708: am a0516e7a: Merge "onWindowDismissed API cleanup" into klp-modular-dev

* commit 'c41fa708271e204a7983aba291389ea1554227b2':
onWindowDismissed API cleanup
c41fa708271e204a7983aba291389ea1554227b2 06-May-2014 Adam Powell <adamp@google.com> am a0516e7a: Merge "onWindowDismissed API cleanup" into klp-modular-dev

* commit 'a0516e7ad12a647cc40fb5651e8d14cd39571c7a':
onWindowDismissed API cleanup
117b695222135cc684e891d4126116b97a64bc9e 06-May-2014 Adam Powell <adamp@google.com> onWindowDismissed API cleanup

Move the window swipe to dismiss plumbing off of Window.Callback into
its own internal interface implemented by Activity and Dialog. Make it
internal API instead of public. Apps should control this via the
window feature setting.

Change-Id: I64cd237fa7eab08719b2c34e31dac7d34f02563a
/frameworks/base/core/java/android/app/Activity.java
03a9baedc9b933bb6a550c0cb84649b1b45b872c 02-May-2014 Winson Chung <winsonc@google.com> Refactoring activity method to update recents values.

Change-Id: Ic525be207714d34abe0c2d26091c3e46abcd9bad
/frameworks/base/core/java/android/app/Activity.java
18f0d357f9693fe787a3e3777d8fdf01357a6e3f 26-Apr-2014 Dianne Hackborn <hackbod@google.com> Rework some of the voice interaction APIs.

On the app side, requests are now composed by subclassing
from various types of Request objects.

On the service side, starting a voice interaction session
involves starting another service that will then manage the
session. This leads the service design much more to what
we want, where the long-running main service is very tiny
and all the heavy-weight transient session work is elsewhere
in another process.

Change-Id: I46c074c6fe27b6c1cf2583c6d216aed1de2f1143
/frameworks/base/core/java/android/app/Activity.java
91097de49b0f683b00e26a75dbc0ac6082344137 05-Apr-2014 Dianne Hackborn <hackbod@google.com> Initial implementation of new voice interaction API.

This gives a basic working implementation of a persist
running service that can start a voice interaction when
it wants, with the target activity(s) able to go through
the protocol to interact with it. It may even work when
the screen is off by putting the activity manager in the
correct state to act like the screen is on.

Includes a sample app that is a voice interation service
and also has an activity it can launch.

Now that I have this initial implementation, I think I
want to rework some aspects of the API.

Change-Id: I7646d0af8fb4ac768c63a18fe3de43f8091f60e9
/frameworks/base/core/java/android/app/Activity.java
3b3f464445d1d369c8e87f526deba606ca62f76c 22-Apr-2014 Winson Chung <winsonc@google.com> Piping through ability for an Activity to remove its own task. (Bug 13735914)

Change-Id: Iefcd4fbe68748195de8ee37ee2b6edef55276603
/frameworks/base/core/java/android/app/Activity.java
31a217290cf376d0573fc36e21c8940987485019 25-Mar-2014 George Mount <mount@google.com> Split Activity Transitions out of PhoneWindow.

Bug 13622834
Made it possible to use shared elements without making
Views invisible.

Change-Id: I1e85c6bc19e634a9af225ad7f0309b4f003ea462
/frameworks/base/core/java/android/app/Activity.java
cb4b7d999e7bcba608726188421772e313e67163 25-Feb-2014 George Mount <mount@google.com> Implement "Back" for Activity Transitions.

Change-Id: Iceaf888f57f2c7598f9291687ac9ad76d55bd82c
/frameworks/base/core/java/android/app/Activity.java
e43340c80dc66c45edc793ecd0343774aa34d108 18-Mar-2014 Adam Powell <adamp@google.com> android.widget.Toolbar

Add the new Toolbar widget for use in app layouts.

ActionBar can now be used as a point of control for either a
traditional window decor action bar or for a Toolbar that appears
inline in an Activity's layout.

ToolbarActionBar is currently WIP.

Change-Id: I0da093e5645840f4fd032aa34efa0ae5f1825ff2
/frameworks/base/core/java/android/app/Activity.java
529a43f7194958178055313254cc43a4f73f58b9 04-Apr-2014 Craig Mautner <cmautner@google.com> Fix build due to bad javadoc link.

Change-Id: I83ca32611fb72b79be271dc3a5bd848934e9174f
/frameworks/base/core/java/android/app/Activity.java
688b5105d665a56e6f2f040f3ca89ca3006801df 28-Mar-2014 Craig Mautner <cmautner@google.com> Implement setActivityLabelAndIcon().

Replaces Activity.setRecentsLabel and Activity.setRecentsIcon.
Simple top-down traversal to find the highest activity with a
specified label and icon. Adds the Intent of that activity to
RecentTaskInfo as well so that Recents can get the launcher
icon if UX desires it.

Fixes bug 13675322.

Change-Id: I62d7d8f4df4dc81012f451e0cdea8a2943aedeec
/frameworks/base/core/java/android/app/Activity.java
2fbd7541804f816171849413b095fcfc70e06c1e 21-Mar-2014 Craig Mautner <cmautner@google.com> Add Activity methods for icons and labels.

New Activity methods setRecentsLabel(CharSequence) and
setRecentsIcon(Bitmap) have been added. The topmost
activity with either of these set will be returned in
RecentTaskInfo members activityLabel and activityIcon.

Fixes bug 13562992.

Change-Id: Ic15d1d27b733b892a2a940063b105ac48f1ffee5
/frameworks/base/core/java/android/app/Activity.java
aea74a5977ca9f1054926eb24f247562c3a4a6ba 08-Mar-2014 Craig Mautner <cmautner@google.com> Add Lock Task Mode.

When in lock task mode only the specified task may run. All
attempts to switch to another task are ignored until the task
finishes or a call to stopLockTaskMode() is made.

Change-Id: I6cfe92fe1bcf22cd47b5398c08e23c52a4092dda
/frameworks/base/core/java/android/app/Activity.java
fc558d56c2040220853d9912d765cfc535463689 10-Mar-2014 John Spurlock <jspurlock@google.com> Fix compiler warning in Activity.java.

Otherwise appears in frameworks/base build output.

Change-Id: Id4ee4f01ba8026b2629f4c3b30c7152d9bdcfc64
/frameworks/base/core/java/android/app/Activity.java
568628dc2cb92b3ec3a87cae9de3203fbdc5968c 05-Mar-2014 Will Haldean Brown <haldean@google.com> Manually merge commit '2faf28cf' into master

Original commit message:

Add swipe-to-dismiss support to PhoneWindow.

This adds a new window feature -- FEATURE_SWIPE_TO_DISMISS -- and a
theme attribute to activate that feature. When the feature is
activated, a SwipeDismissLayout is inflated as the DecorView layout.
SwipeDismissLayout intercepts touch events and steals ones that are
large swipes to the right if its children don't. PhoneWindow
registers handlers that listen for these swipe events, translate the
window when necessary, and finish the activity at the end of the
gesture.

Conflicts:
core/java/android/view/Window.java
core/res/res/values/attrs.xml

Change-Id: I943290b436864ca4a1bd401b88d696e08c921cdd
11c51608ee1c368dd38b134603e85943629c6f44 04-Mar-2014 Will Haldean Brown <haldean@google.com> am bd79652a: Merge "Add swipe-to-dismiss support to PhoneWindow." into klp-modular-dev

* commit 'bd79652a9afeee1e81f0f51d11e5869091f58af9':
Add swipe-to-dismiss support to PhoneWindow.
ca6234e084a71e0c968cff404620298bcd971fcc 12-Feb-2014 Will Haldean Brown <haldean@google.com> Add swipe-to-dismiss support to PhoneWindow.

This adds a new window feature -- FEATURE_SWIPE_TO_DISMISS -- and a
theme attribute to activate that feature. When the feature is
activated, a SwipeDismissLayout is inflated as the DecorView layout.
SwipeDismissLayout intercepts touch events and steals ones that are
large swipes to the right if its children don't. PhoneWindow registers
handlers that listen for these swipe events, translate the window when
necessary, and finish the activity at the end of the gesture.

Change-Id: I512e758f3c3ffd3b353dba3b911c0e80a88d6f5f
/frameworks/base/core/java/android/app/Activity.java
e180337ee99b9155fe441ea55451f4d2167b5d9a 26-Feb-2014 George Mount <mount@google.com> Change Activity Scene Transitions to be more automatic redo.

This reverts commit 206e30cd93afe3eb72ec94178324417db5424ed2
along with removing the additional startActivity* methods
and replaces them with ActivityOptions makeSceneTransitionAnimation
methods.

Change-Id: I52bec31ae3c4cea6d549810ae5a7acd8aea176d8
/frameworks/base/core/java/android/app/Activity.java
206e30cd93afe3eb72ec94178324417db5424ed2 26-Feb-2014 George Mount <mount@google.com> Revert "Change Activity Scene Transitions to be more automatic."

This reverts commit f10587faadb9080a7bf9991cbe04bac5525da482.

Change-Id: I2785a3d2d6b667cad6d61dcbbc1c624161735fa4
/frameworks/base/core/java/android/app/Activity.java
121e25dcf0d4da5c1c97fad2bd27dbd361db4153 26-Feb-2014 George Mount <mount@google.com> Merge "Change Activity Scene Transitions to be more automatic."
f10587faadb9080a7bf9991cbe04bac5525da482 06-Feb-2014 George Mount <mount@google.com> Change Activity Scene Transitions to be more automatic.

Shared element transitions are enabled by default
when the Window has a TransitionManager.

Shared element location and size are captured and
transferred to the target Activity.

ActionBar is treated as a shared element.

Change-Id: I0f22ea4e5cbe80254e848444e3f235cb742684f4
/frameworks/base/core/java/android/app/Activity.java
8a985d24ce9a38f40ed88fecbdcd0e75e3a68f44 25-Feb-2014 John Spurlock <jspurlock@google.com> Tabs -> spaces in frameworks/base.

Change-Id: I5a84e8e93ac99b5ed0212b37bf66efa5e53864be
/frameworks/base/core/java/android/app/Activity.java
449e46600f75a21975ceb1c991f768f833ed7fbf 21-Feb-2014 Elliott Hughes <enh@google.com> am 0047d3e0: am e253b514: am 29d60b95: am 8d41e653: Merge "Miscellaneous small documentation fixes."

* commit '0047d3e025b43fd2dc05734f7ea6229291445046':
Miscellaneous small documentation fixes.
0a778eda690a66173733a63622886e888d405c45 13-Dec-2013 George Mount <mount@google.com> Cross-Activity Scene transition API.

First pass at API for cross-Activity Scene transitions.
Remaining work:
Transition back
Automatically capture hero element info
Transfer of surface texture to synchronize between Activities
Possibly use scene names to indicate preferred transition

Change-Id: I59d07de1fae694a46b92b1c82525daa301ec1377
/frameworks/base/core/java/android/app/Activity.java
9525f2a72e2786f1b53927878dd8234859ea5c39 02-Jan-2014 Mark Doliner <markdoliner@google.com> Miscellaneous small documentation fixes.

Most of these I noticed on my own. The change to docs/html/tools/testing/testing_ui.jd is mentioned in a bug report:
https://code.google.com/p/android/issues/detail?id=56324

Signed-off-by: Mark Doliner <markdoliner@google.com>
/frameworks/base/core/java/android/app/Activity.java
cfbe9be5b3b701d95fb24fa0f7c8d9be43eec776 06-Nov-2013 Adam Powell <adamp@google.com> Add support for cross-activity scenes and transitions

* Add theme attributes for specifying a top-level TransitionManager
for an activity window.

* Add window feature for automatic content transitions. This
automatically assigns/creates a Scene for setContentView calls.

* Add named transitions. This allows apps to define APIs for
handshake-agreements about which exit/entrance transitions to play.

* Add new transition type for ActivityOptions. This lets the system
use ActivityOptions to communicate transition specifics and
arguments to the called activity.

* Have ActivityManager pass appropriate ActivityOptions through to the
called Activity. Have the called activity call back into the caller
to let it know which transition of a possible requested set was
chosen.

Still to do:

* Define and pass arguments for transitions. This will require
defining a Parcelable version of TransitionValues and deciding how
much leeway apps should have for these things.

* Determine how to appropriately filter the ActivityOptions bundle so
that only appropriate data reaches the target.

* Determine if generalizing the auto-Scenes functionality to
ViewGroups is appropriate.

Change-Id: I10684b926129ab2fbc1adec9ef31767237acae79
/frameworks/base/core/java/android/app/Activity.java
2525d9c8437c34440e4df0583f333a06a5c4fc10 15-Nov-2013 Alan Viverette <alanv@google.com> Deprecate Activity.setTitleColor()

BUG: 11712103
Change-Id: Id34ffb59d3f848c591a98880c6cdd9058e5a38dc
/frameworks/base/core/java/android/app/Activity.java
943345f92a4465b16a3592c21f50f7f3d6f488b9 01-Nov-2013 Michael Wright <michaelwr@google.com> am d35e94a3: am 6be8dde6: am 4846a93b: Merge "Only call dump when a ViewRoot actually exists" into klp-dev

* commit 'd35e94a3cbd27f08430c593930c989a36f17a833':
Only call dump when a ViewRoot actually exists
5f48dc7409669c78ad923b370c885e1d01919cfb 01-Nov-2013 Michael Wright <michaelwr@google.com> Only call dump when a ViewRoot actually exists

Bug: 11446494
Change-Id: I47e35d7b4d49d6893ba0c9f8ad05b31f91be85d2
/frameworks/base/core/java/android/app/Activity.java
b1eb620219de034b28a0130b07ca05140c4ff830 18-Oct-2013 Jeff Brown <jeffbrown@google.com> am 83bf4404: am 3e3296e5: am 82f31701: Merge "Log view root, input and looper state in bug reports." into klp-dev

* commit '83bf440440309a394f792e3d8a6acb98197d9d7c':
Log view root, input and looper state in bug reports.
5182c780a8b42acd46a06d693ab63a0dd78c6d70 16-Oct-2013 Jeff Brown <jeffbrown@google.com> Log view root, input and looper state in bug reports.

Bug: 10948648
Change-Id: I956cce2a0fb516c02f9bbbc021f6238bcb226891
/frameworks/base/core/java/android/app/Activity.java
0fae349f19e2f4738c12f4849054c72a007770b0 10-Oct-2013 Dianne Hackborn <hackbod@google.com> am 353ec474: am 8029493f: am f012b777: Merge "Fix some doc issues." into klp-dev

* commit '353ec47422cbd1bb40f19e7ec9ec6b4f300ee3ab':
Fix some doc issues.
ebc15ef80ff1b4354be99a45d348537f094d6b59 10-Oct-2013 Dianne Hackborn <hackbod@google.com> Fix some doc issues.

Bug: 11079621
Bug: 10461610
Bug: 10461369
Bug: 10461417
Change-Id: I7fd966f3cda0660ba20fa15d7164dcac95efadd3
/frameworks/base/core/java/android/app/Activity.java
ebcb9ecf2b534c1a27b72c66bad05903e9e9b233 13-Sep-2013 Chet Haase <chet@google.com> am 9501a452: am e850c973: Merge "Hide translucent activity conversion API" into klp-dev

* commit '9501a452af30dd15559804193c8183bbaa42a669':
Hide translucent activity conversion API
d9273d6f289d9b55da3fd0db2f659fdfb48106a8 31-May-2013 Tor Norbye <tnorbye@google.com> Add typedefs and nullness annotations.

This changeset adds in typedef annotations (custom annotations
marked with @IntDef) for various int parameters and return values
in the API. It also adds nullness annotations for cases where the
documentation explicitly mentioned null policy, or where it was
blindingly obvious from the context. Also fixed some typos in the
documentation.

Change-Id: Ica27c01368895818e26237544edd8483007155bb
/frameworks/base/core/java/android/app/Activity.java
abd3d778e591fab03177936e216dce52642eb211 11-Sep-2013 Chet Haase <chet@google.com> Hide translucent activity conversion API

This API and functionality is not yet completely baked. It's worth
thinking more about this mechanism before exposing it as public API.

Issue #10461415 KLP API Review: Activity convert to translucent

Change-Id: I94d986b62443b3bfa7a9a19807ecebe36bf57e07
/frameworks/base/core/java/android/app/Activity.java
1487466dc2ce14cccf0ff2bd2f824238aaa0044e 19-Jul-2013 Adam Powell <adamp@google.com> Add View#cancelPendingInputEvents API

This API allows an application to cancel deferred high-level input
events already in flight. It forms one tool of several to help apps
debounce input events and prevent things like multiple startActivity
calls, FragmentTransactions, etc. from executing when only one was
desired since it's otherwise not desirable for things like click
events to fire synchronously.

Change-Id: I60b12cd5350898065f0019d616e24d779eb8cff9
/frameworks/base/core/java/android/app/Activity.java
bc57cd1b248bf23e443581f9fe44167c94699ce8 20-Aug-2013 Craig Mautner <cmautner@google.com> Notify ViewRootImpl when it's safe to modify Canvas.

When Activity.convert{To|From}Translucent() is called the
ViewRootImpl is now notified when it is safe to convert the Canvas
from translucent to opaque and back to translucent. This will make
it possible to save resources when compositing opaque layers.

Fixes bug 10349536.

Change-Id: I7282aee1d54601fb00611d20be204bf164d873f6
/frameworks/base/core/java/android/app/Activity.java
3e82ba1a67b0c756ab6a289985f4cfc53725b311 16-Jul-2013 Dianne Hackborn <hackbod@google.com> Make ArrayMap public! :)

Also do some tweaking of the various container classes
to synchronize them with the support lib and make it
easier to copy code between the two.

And update activity/fragment to use ArrayMap.

Change-Id: I3cfe82392a17119dfc72c3d9961f64e1914f42be
/frameworks/base/core/java/android/app/Activity.java
5eda9b330120f75964cd78b29f6101cc273c2a7e 02-Jul-2013 Craig Mautner <cmautner@google.com> Add convertToTranslucent to API.

Rename convertToOpaque to convertFromTranslucent. Add the
counterpart to Activity.convertFromTranslucent() for returning from
opaque to a translucent Activity. The caller should wait until
TranslucentConversionListener.onTranslucentConversionComplete() is
called before actually changing the background to translucent.

Change-Id: Id04b026bcc4dd8bad9a33a7af126e1bb28fb9c03
/frameworks/base/core/java/android/app/Activity.java
2286cdc0cab77e61b75e6fe9a45b91f6e57cd46d 02-Jul-2013 Dianne Hackborn <hackbod@google.com> Misc memory stuff.

- New Activity.reportFullyDrawn() method that applicatins can call
when they know they are fully drawn, allowing us to have better
app launch time info. This data is also included in usage stats.
- Added total and free memory data "dumpsys meminfo".
- Tuned the moderate memory levels to be more aggressive about
considering the device getting low on RAM, and thus starting
to prune RAM from processes.
- Fixed issues in processstats when reading old data as well as
resetting and other various fixes.

Change-Id: I20efe7451afb4edfa1aeec448328ba601c24d869
/frameworks/base/core/java/android/app/Activity.java
4addfc5f3998e3d7fc0a2ed9a9051c034da2ea3d 25-Jun-2013 Craig Mautner <cmautner@google.com> Add API to convert translucent Activity to opaque.

Fixes bug 9298778.

Change-Id: If6198f42bdea8aa727a2abc672eb0062aaf63ca3
/frameworks/base/core/java/android/app/Activity.java
04fe6ebb9f919f196ec06a19bebc09b8e943f95b 31-May-2013 Adam Powell <adamp@google.com> Fix a bug resolving the correct icon/logo in action bars

Remove some abstraction-breaking magic in ActionBarView and replace it
with proper resolution of the icon/logo when creating a window. The
old implementation relied on the ActionBarView's context being an
Activity.

Bug 9171554

Change-Id: Idbbb1942622195dcb55e8119f2d64287b07bb509
/frameworks/base/core/java/android/app/Activity.java
4e0eb22fdf56b8f3fd1bff09c4064b35b80751c1 19-Apr-2013 Ying Wang <wangying@google.com> Fix doc build.

Change-Id: Ibf0d998721a2851c31529d5b44bf86b1b3df5791
/frameworks/base/core/java/android/app/Activity.java
7b924671792787d0dd367dd0d0fede56e2d2b940 12-Apr-2013 Dianne Hackborn <hackbod@google.com> Fix issue #7643046: Activity.getCallingPackage() bogusly returns null...

...after having to recreate the task stack

Change-Id: Ia354240f3650ddb578f2116a2aa4584e9ffe8508
/frameworks/base/core/java/android/app/Activity.java
a14acd20b8d563319ea1a5974dca0e9a29f0aaef 03-Apr-2013 Jeff Sharkey <jsharkey@android.com> Warn when exposing file:// Uris beyond a process.

Check for file:// Uris inside Intents, ClipData, Notifications and
RemoteViews when StrictMode option is enabled.

Also introduces Intent.prepareToLeaveProcess() to uniformly handle
Intents about to leave an app process.

Bug: 8529070
Change-Id: I8efb43877cbc5f21eb029fc6492b3ee1415059ef
/frameworks/base/core/java/android/app/Activity.java
f265ea9d8307282ff1da3915978625a94fc2859e 01-Feb-2013 Dianne Hackborn <hackbod@google.com> App ops: vibration, neighboring cells, dialing, etc.

Improve handling of vibration op, so that apps are
better blamed (there is now a hidden vibrator API that
supplies the app to blame, and the system now uses this
when vibrating on behalf of an app).

Add operation for retrieving neighboring cell information.

Add a new op for calling a phone number. This required
plumbing information about the launching package name through
the activity manager, which required changing the internal
startActivity class, which required hitting a ton of code that
uses those internal APIs.

Change-Id: I3f8015634fdb296558f07fe654fb8d53e5c94d07
/frameworks/base/core/java/android/app/Activity.java
f9c5e0fe837a3090820da502ecaabc5accc00ace 23-Jan-2013 Dianne Hackborn <hackbod@google.com> Add new API to propagate contextual data to the assist action

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
/frameworks/base/core/java/android/app/Activity.java
b484f8e1a4f07e35a194ee43676da8eb4e9d50ef 09-Jan-2013 Scott Main <smain@google.com> am 782b0f71: am 4459827f: am 25505f95: am cdf5106a: docs: a few doc bugs

* commit '782b0f7141972e0535f1e905d650073f4e7f55dd':
docs: a few doc bugs
782b0f7141972e0535f1e905d650073f4e7f55dd 09-Jan-2013 Scott Main <smain@google.com> am 4459827f: am 25505f95: am cdf5106a: docs: a few doc bugs

* commit '4459827f7db379031e658b2153aac1f7c882adc6':
docs: a few doc bugs
cdf5106aafb77d17584d5401b207cbcc7a20f5f3 09-Jan-2013 Scott Main <smain@google.com> docs: a few doc bugs

Change-Id: I20d2ff2f3abfe674ca20f713c7213ee031c9bb1d
/frameworks/base/core/java/android/app/Activity.java
b7de79d02743cc3b5372be27be818d3227a34e2b 04-Jan-2013 Adam Powell <adamp@android.com> am 41bb82be: Merge "Fix NullpointException problem in onMenuItemSelected"

* commit '41bb82becea5dd1f995dbca5bf5a719f559102de':
Fix NullpointException problem in onMenuItemSelected
686a805ef99b0fe53574c7110331cd91650f9999 14-Dec-2012 zobject <zbjection@gmail.com> Fix NullpointException problem in onMenuItemSelected

If both title and condensed title is null,
item.getTitleCondensed() could be return null value
in onMenuItemSelected. therefore need to check
whether retun value is null or not.

Change-Id: Ib08f52b949a794aa7bd6cc25414041e820f62969
/frameworks/base/core/java/android/app/Activity.java
1de623939090993d03a7c398d09e2d13950d682b 12-Dec-2012 Christopher Tate <ctate@google.com> am 534de491: Merge "Make immersive mode public & imply update locking" into jb-mr1-aah-dev

* commit '534de491e6522465a7ad12d7cba9b2f80deab364':
Make immersive mode public & imply update locking
73c2aee40a0e0ab2e8bd2bbbc560aa31c38eaac2 16-Mar-2012 Christopher Tate <ctate@google.com> Make immersive mode public & imply update locking

Activity.setImmersive(boolean) / android:immersive="bool" are now public.
In addition, if the foreground activity is immersive then an update lock
will be held on its behalf. This lets applications such as movie players
suppress the display of intrusive notifications, OTA-availability dialogs,
and the like while they are displaying content that ought not to be
rudely interrupted.

The update lock aspect of this mode is *advisory*, not binding -- the
update mechanism is not actually constrained; it simply uses this information
in deciding whether/when to prompt the user. It's more a guideline than
a rule.

Bug 7681380

Change-Id: I3c412a84cbf3933e3bf0168f2c71c54a86e4b7e5
/frameworks/base/core/java/android/app/Activity.java
332944f8a0a001c1754ce3298edbb4246e53c8fb 10-Dec-2012 zobject <zbjection@gmail.com> Fix EventLog string class problem in onOptionMenuSelected

EventLog function can handle string,integer class and long class. (in android_util_EventLog.cpp)
If menu title string are used bold tag(like <b>test</b>), it'll be android.text.SpannedString.
In onOptionMenuSelected, it is using item.getTitleCondensed() function for writing event log.
therefore any android activity using tag menu string(like <b></b>) can be crashed by IllegalArgumentException.

I found this crash on GMS Application.
change locale chinese -> launch Google+ -> hangout -> menu key -> Invite(expressed chinese) click -> Google+ crash

Change-Id: I0437be81699925e29bf4510eb615ef2424432763
/frameworks/base/core/java/android/app/Activity.java
6d9dcbccec126d9b87ab6587e686e28b87e5a04d 03-Oct-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7273573: Need API to find out if activity is destroyed

Also update 17.txt with all of the recent API additions.

Change-Id: I21fc669267935261a741c19e22b0bf35c3a76b81
/frameworks/base/core/java/android/app/Activity.java
5a4010c054a4449156df885ad0f46f8db3263d87 17-Sep-2012 Adam Powell <adamp@google.com> Create main activity intents as needed for TaskStackBuilder/Up nav

If a generated parent intent targets an Activity that itself has no
parent specified, generate the intent using Intent.makeMainActivity
to gather the correct flags for the root intent of a task.

Bug 6457058

Change-Id: I8d4a3823eda752306da18c2c38fa7e57f0a33bf3
/frameworks/base/core/java/android/app/Activity.java
62bea2f1710be0d1a42c07109fd4307ded660d3b 05-Sep-2012 Dianne Hackborn <hackbod@google.com> Nested fragments.

Change-Id: I79acc19b391352c16b06afee2ca543223c38e364
/frameworks/base/core/java/android/app/Activity.java
4120375d46091df8527bb701882e056fbb0e6b06 31-Aug-2012 Dianne Hackborn <hackbod@google.com> Remove Binder.getOrigCallingUid().

Replaced all remaining places that used it with explicit user
specification.

While doing this, I ran into stuff that was creating PendingIntent
objects (that now need to specify the explicit user they are for),
which are also posting notifications... but have no way to specify
the user for the notification.

So the notification manager in the system process now also gets a
formal concept of a user associated with the notification, which
is passed in to all the necessary aidl calls. I also removed the
old deprecated aidl interface for posting/cancelling notifications,
since we now always need a user supplied.

There is more work that needs to be done here, though. For example
I think we need to be able to specify USER_ALL for a notification that
should be shown to all users (such as low storage or low battery).
Along with that, the PendingIntent creation needs to be tweaked to
be able to handle USER_CURRENT by evaluating the user at the point the
pending intent is sent.

That's for another change, however.

Change-Id: I468e14dce8def0e13e0870571e7c31ed32b6310c
/frameworks/base/core/java/android/app/Activity.java
f1c26e2fd03e9765fde519e238fc23d4e3d06df2 23-Aug-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7016987: Unable to attach a picture in gmail/emaill composer action.

Change-Id: I0c9336bb072b4622a5eab6d3ec104c4cc38e367a
/frameworks/base/core/java/android/app/Activity.java
98365d7663cbd82979a5700faf0050220b01084d 20-Aug-2012 Jeff Brown <jeffbrown@google.com> Refactor for multi-display support.

Split WindowManagerImpl into two parts, the WindowManager
interface implementation remains where it is but the global
communications with the window manager are now handled by
the WindowManagerGlobal class. This change greatly simplifies
the challenge of having separate WindowManager instances
for each Context.

Removed WindowManagerImpl.getDefault(). This represents the
bulk of this change. Most of the usages of this method were
either to perform global functions (now handled by WindowManagerGlobal)
or to obtain the default display (now handled by DisplayManager).

Explicitly associate each new window with a display and make
the Display object available to the View hierarchy.

Add stubs for some new display manager API features.

Start to split apart the concepts of display id and layer stack.
since they operate at different layers of abstraction.
While it's true that each logical display uniquely corresponds to a
surface flinger layer stack, it is not necessarily the case that
they must use the same ids. Added Display.getLayerStack()
and started using it in places where it was relatively easy to do.

Change-Id: I29ed909114dec86807c4d3a5059c3fa0358bea61
/frameworks/base/core/java/android/app/Activity.java
4702a856973a553deb82f71b1d3b6c3db5dbf4ba 18-Aug-2012 Dianne Hackborn <hackbod@google.com> More view hierarchy, fragment debugging.

Add a View.toString() method.

Rename all of the View private flags to have a PFLAG prefix to
avoid going insane trying to figure out which constant goes with
which flag.

Activity.dump() now includes a summary of the activity's view
hierarchy, using the View.toString() method.

All exceptions thrown by FragmentManager now perform a dump of
the owning activity state, where appropriate.

Change-Id: I6482e397e10cb5a0612ab02ce6ed5131823437a6
/frameworks/base/core/java/android/app/Activity.java
0fc5b2bea09a6d320884c5b12577caf426f547c1 19-Jul-2012 Adam Powell <adamp@google.com> Fun with Up navigation

For activities with a null taskAffinity, simply finish the current task.
(They probably shouldn't have specified a parentActivityName anyway.)

When launching into app info from ResolverActivity, launch the app info
page in the current task with FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET. Back
will return to the resolver, and Up will jump to Settings.

When launching into app info from RecentsPanelView or BaseStatusBar,
since this is a system affordance akin to notifications or widgets,
build the full task stack for the app info activity with
TaskStackBuilder and launch it as a new task.

Change-Id: I73b1941d0f52bd8b30382b5e17edd8ceb058c70d
/frameworks/base/core/java/android/app/Activity.java
9275197d35a99c3f187d18d0eda6ead3b8a32603 19-May-2012 Dianne Hackborn <hackbod@google.com> Add aapt support for generating proguard rules for onClick methods.

Also fix Activity menu inflater when using the dark on light
theme wrapper to still be able to find onClick listeners.

Change-Id: Ie206db26d1df96041bc477804e476b02ad99dc9d
/frameworks/base/core/java/android/app/Activity.java
5320eb8938098c9824093f7f842a0a97bbc190a4 18-May-2012 Dianne Hackborn <hackbod@google.com> Fix activity resolver, issues #6519130 and #6507239

6519130: Starting ResolverActivity with no arguments crashes system_server
6507239: ResolverActivity may bypass signature permissions

Change-Id: I64534f781bc6b7eb45e85dbe3a55d351ee28e85c
/frameworks/base/core/java/android/app/Activity.java
3d193d92f601569bb99fe011bb6e104a492a0a71 16-May-2012 Adam Powell <adamp@google.com> Handle returning a result from automatic up navigation from another
task.

When navigating up from a different task, if the current activity has
a result set only finish the current activity instead of trying
finishAffinity. Log this so that developers know why this behavior is
happening.

Bug 6465336

Change-Id: Ic7cec6f0c0d5861296091e2aea9344309f5fc600
/frameworks/base/core/java/android/app/Activity.java
ef31e7cab57c82083c41adf2d2a056ab159a4f51 08-May-2012 Adam Powell <adamp@google.com> Fix for toggling menu item visibility outside of create/prepare menu

Allow applications to transition from 0=>1+ visible menu items outside
of onCreatePanelMenu/onPreparePanel. Previously, having 0 visible items
at this point would require an invalidation of the options menu.

Bug 6452605

Change-Id: I6cbfc46d0e5ec42b8d78ee516e9b57fdeaf1a890
/frameworks/base/core/java/android/app/Activity.java
07304f5299c6bccf84bd993239fbb3b87a0d46e6 08-May-2012 Adam Powell <adamp@google.com> Fix a bug in Activity Up navigation dispatching

Propagate the return value from onNavigateUp as the result of
onMenuItemSelected. This fixes a bug where the action bar Up nav
button clicks would not be propagated to support lib FragmentActivity
or other activity subclasses that rely on processing otherwise
unhandled onMenuItemSelected events.

Change-Id: Id879dd1756ed06b8a7b720ebf0eae2a8ddc66ca8
/frameworks/base/core/java/android/app/Activity.java
d0c66f6a8f15bb95648b4306d2583575d0bb9935 06-May-2012 Pin Ting <pinting@google.com> Merge "Fix javadoc." into jb-dev
f0195951519a5d7ce26ff2d88228af13642fc292 03-May-2012 Adam Powell <adamp@google.com> Clarify documentation about when Activity#onCreateNavigateUpTaskStack
will be called.

Bug 6427237

Change-Id: I5c41e4a694b39c03fd642586472838e2f9a0281d
/frameworks/base/core/java/android/app/Activity.java
35c064b2e895328022f7ac02587ec9bb69895c74 02-May-2012 Adam Powell <adamp@google.com> Fix documentation of Activity#navigateUpTo() to describe its actual
behavior.

Change-Id: I804fcef5df6f5885b47b7a1c7703ed301bea09b0
/frameworks/base/core/java/android/app/Activity.java
f78a8444a9b21b0d1daca8667d580dd0ec04a310 02-May-2012 Adam Powell <adamp@google.com> API modifications for TaskStackBuilder

Change-Id: Ic9e11caa4541962d32b2c197f4f7b19ee67a0eda
/frameworks/base/core/java/android/app/Activity.java
897b1dd61063dbd41eeffa228eef9dc8e4f6b687 27-Apr-2012 Adam Powell <adamp@google.com> Use finishAffinity for automatic up navigation

Change-Id: I2ac1971e82c499e8bafe13fcc113c5594c34864b
/frameworks/base/core/java/android/app/Activity.java
ecc5a9cca000b62d2a649b795460fd791a206a89 27-Apr-2012 Dianne Hackborn <hackbod@google.com> Add new Activity.finishAffinity() method.

It's cool!

Change-Id: I9fdcd9535b7f1ca2b311d3a1b23e5d058977b095
/frameworks/base/core/java/android/app/Activity.java
14a9310efd936149c82ecfcc37c7c8308968f67c 25-Apr-2012 Pin Ting <pinting@google.com> Fix javadoc.

Change-Id: Ibbfee452cae76a379dcd360412de962e90f29da5
/frameworks/base/core/java/android/app/Activity.java
8f05a120c9ac8fc899317af2a947db9a49622c67 19-Apr-2012 Quddus Chong <quddusc@google.com> am 0691f70a: am 13bb0791: Merge "docs: Added missing comma in code snippet. Bug: 6322757" into ics-mr1

* commit '0691f70ad8833e9a2b042d7a56b07ad0ee561f87':
docs: Added missing comma in code snippet. Bug: 6322757
0691f70ad8833e9a2b042d7a56b07ad0ee561f87 19-Apr-2012 Quddus Chong <quddusc@google.com> am 13bb0791: Merge "docs: Added missing comma in code snippet. Bug: 6322757" into ics-mr1

* commit '13bb0791a1cec6a678db3bd7ab23060b3bb911ae':
docs: Added missing comma in code snippet. Bug: 6322757
3fa98cb02c8f748b82869cd784db82094e950e4b 13-Apr-2012 Quddus Chong <quddusc@google.com> docs: Added missing comma in code snippet.
Bug: 6322757

Change-Id: I32cbd89493287cbb5d76b59647a8ddbd59209132
/frameworks/base/core/java/android/app/Activity.java
aa0a453a7ae0ee1f588298bf78a8fac16b5aae38 12-Apr-2012 Jeff Sharkey <jsharkey@android.com> DO NOT MERGE: Make component names visible in javadoc.

Change-Id: I3770ea6616b8425c387bcd27d668e3114b14335d
/frameworks/base/core/java/android/app/Activity.java
b990893ffc591bc7de9d5fd54dbe1707388717a8 12-Apr-2012 Jeff Sharkey <jsharkey@android.com> Merge "Make component names visible in javadoc."
5554b7082220d37496e30f39a0d9146afc177ab4 12-Apr-2012 Jeff Sharkey <jsharkey@android.com> Make component names visible in javadoc.

Change-Id: I3770ea6616b8425c387bcd27d668e3114b14335d
/frameworks/base/core/java/android/app/Activity.java
162bc0ea0d7862b92f18d0ce47310a85304205f7 09-Apr-2012 Dianne Hackborn <hackbod@google.com> Some small tweaks to improve memory management.

We now allow processes that currently have stopping activities to
be managed as if they were done stopping, so that memory trimming
can be done before the process goes to the background. Hopefully
this will reduce cases where the processes goes to the background
and immediately gets killed, but wouldn't have had to be killed if
it had a chance to trim its memory.

Also change window memory trimming to always do the aggressive
trimming when memory is critical, even if not on a low-end device.

And tweak web view trimming to not trim for foreground UI events.

Change-Id: I241b3152b52d09757bd14a202477cf69c9b78786
/frameworks/base/core/java/android/app/Activity.java
04d5811500874d44010df2b4ce37a0b21095168f 09-Apr-2012 Adam Powell <adamp@google.com> Tweaks to Activity up navigation

Be more explicit in docs about getParentActivityIntent and guard against
calls when a parent has not been declared in the manifest.

Move automatic up navigation to happen after dispatch of the menu
selection event of id android.R.id.home to fragments. (Last.)

Fixes bug 6305357

Change-Id: I944e5c40774121f9a28250d8d98da6aa646f9357
/frameworks/base/core/java/android/app/Activity.java
dd8fab2629131b09367df747afd9a61e42dd1992 23-Mar-2012 Adam Powell <adamp@google.com> TaskStackBuilder and Activity navigation features for framework

Promote navigation helpers from the support library to the core
platform.

The support library's meta-data element has been replaced with a
first-class parentActivityName attribute. This attribute is valid
on both activity and activity-alias elements. An activity-alias
will inherit the target activity's parentActivityName if one is
not explicitly specified.

Automatic Up navigation for Activities

Add the public method onNavigateUp() to Activity. The default
implementation will use the metadata supplied in the manifest about an
activity's hierarchical parent (parentActivityName) to do the right
thing.

If any activities in the parent chain require special Intent
arguments, the Activity subclass should override onNavigateUp() to
properly implement Up navigation for the app, supplying such arguments
as needed.

If automatic Up navigation within the same task can't find an activity
matching the supplied intent in the current task stack, it will act as
an in-app "home" and return to the root activity (presumably the app's
front page) in that task. (From this state, pressing "back" with
default behavior will return to the launcher.)

Change-Id: If163e27e59587f7af36975a09c986cb117ec3bc6
/frameworks/base/core/java/android/app/Activity.java
8078d8c8a282ca81344febe7256f63b1e805e3aa 20-Mar-2012 Dianne Hackborn <hackbod@google.com> Add new thumbnail animation.

Use it for recent tasks switching.

Not perfect yet by far, but something.

Also fix issue #6186758: Twitter crashes after tapping on a tweet on JRM75D

Change-Id: I49bf6c94aafde875ac652dedaf96d6c08cc9e7d2
/frameworks/base/core/java/android/app/Activity.java
9ce685b934b36cc57631e10f7c1e3609e91e3f9c 16-Mar-2012 Christopher Tate <ctate@google.com> Make immersive mode public & imply update locking

Activity.setImmersive(boolean) / android:immersive="bool" are now public.
In addition, if the foreground activity is immersive then an update lock
will be held on its behalf. This lets applications such as movie players
suppress the display of intrusive notifications, OTA-availability dialogs,
and the like while they are displaying content that ought not to be
rudely interrupted.

The update lock aspect of this mode is *advisory*, not binding -- the
update mechanism is not actually constrained; it simply uses this information
in deciding whether/when to prompt the user. It's more a guideline than
a rule.

Bug 6154438

Change-Id: Ibd3491fc437077f3fa0d9708ed91955121e8c877
/frameworks/base/core/java/android/app/Activity.java
7a2195cdd33f27c79eda343defc1f7ccf59cc8ac 20-Mar-2012 Dianne Hackborn <hackbod@google.com> Start using the new activity options argument.

New class lets you make an options bundle defining a custom animation,
as an alternative to Activity.overridePendingTransition().

Change-Id: I8e209bf52398a98ab9f1bcafa1ec0a580dae57c0
/frameworks/base/core/java/android/app/Activity.java
a4972e951bf2bdb7afdafee95b3ab0c15b8bacae 14-Mar-2012 Dianne Hackborn <hackbod@google.com> Add new "options" argument to all startActivity APIs.

This will be used to allow new features to be requested... such as,
say, a special kind of animation. Right now there are no options
defined.

Change-Id: I4eb6f27275cdd4bf186f6da316ab93a2372ad4b7
/frameworks/base/core/java/android/app/Activity.java
4faaed97ab331b322afeef8055d740dc7673e1b2 13-Mar-2012 Siva Velusamy <vsiva@google.com> Merge "ActivityManager: add option to allow OpenGL trace."
92a8b22e7410e74e1cba1b856333116652af8a5c 10-Mar-2012 Siva Velusamy <vsiva@google.com> ActivityManager: add option to allow OpenGL trace.

This patch adds an option to enable tracing of OpenGL functions.
OpenGL tracing can be enabled by passing "--opengl-trace" option
to am start. This option requires either a device in debug mode,
or that the application itself has debug permission set.

Change-Id: I77788bfe97c9108943b1f947ce81afe8293d78a0
/frameworks/base/core/java/android/app/Activity.java
f76a50ce8fdc6aea22cabc77b2977a1a15a79630 09-Mar-2012 Ken Wakasa <kwakasa@google.com> Fix obvious typos under frameworks/base/core

Change-Id: Ia5fc3db1bb51824e7523885553be926bcc42d736
/frameworks/base/core/java/android/app/Activity.java
21c241e061de29a538008ca42df9c878184bcfb8 08-Mar-2012 Dianne Hackborn <hackbod@google.com> Add new Intent API for associating a ClipData with an Intent.

Allows applications to propagate multiple URI grants through an
Intent.

Later on, we should probably redefine the share actions to be
based on this ClipData with the old extras-based approach only
there for compatibility. Even if we don't do that, though, this
allows you to do a multi-select share that grants multiple URI
permissions by stuffing the URIs in a ClipData.

Also add some documentation in various places telling people how
they can grant URI permissions.

Change-Id: Id4ba8e72c11caf7e1f1f438cb7af058d1586a37c
/frameworks/base/core/java/android/app/Activity.java
cac15eb21cab68e5b76fe06f9aff273978c92054 04-Oct-2011 Joe Fernandez <joefernandez@google.com> Merge "docs: add developer guide cross-references, Project ACRE"
b54e7a3d9f60ac605f404f9eb3c5e92ca51bbd23 04-Oct-2011 Joe Fernandez <joefernandez@google.com> docs: add developer guide cross-references, Project ACRE

Change-Id: I5df1c4e13af67ff4c4a5b22f3cb1247bf0103b09
/frameworks/base/core/java/android/app/Activity.java
9ecebbfbf768fd63e9a6c9a09c86d81c7737ee2d 29-Sep-2011 Dianne Hackborn <hackbod@google.com> Add mechanism for Parcel to not allow FDs to be written to it.

This is to help implement issue #5224703.

Change-Id: I026a5890495537d15b57fe61227a640aac806d46
/frameworks/base/core/java/android/app/Activity.java
8ef6970cf5b779a5a69502cb07fd94d9190bccfd 02-Sep-2011 Joe Fernandez <joefernandez@google.com> docs: adding warning to managedQuery() JavaDoc about cursor.close()

Change-Id: I31ba29f1781f7d83342582e25cf6aad0c72aa103
/frameworks/base/core/java/android/app/Activity.java
a5445d3bbd7985ffeeeabc3813bec3d1e0463cea 01-Sep-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5039287: Listen dies on back key on ICS but not on Gingerbread

Change-Id: I77c63a8c372ff7a8459a1e8cf6fd1b37f320e3ce
/frameworks/base/core/java/android/app/Activity.java
6c285977a0dc9605348bd9530282c7d006cbf8bd 30-Aug-2011 Dianne Hackborn <hackbod@google.com> Fix issues 5158104 and 4981556 (fragment problems)

5158104: com.android.contacts: java.lang.IllegalStateException:
Can not perform this action after onSaveInstanceState at
android.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1201)

The ViewPager can just commit without worrying about a state loss,
since it can correctly reconstruct its state later.

4981556: Fragment.mImmediateActivity doesn't get restored on orientation change

I am giving up on this thing; I just don't see how it can actually
be correct. So now instead of getting an exception about a dup
add/remove at point of the add/remove call, this will happen later when
processing the transaction.

Also add an API for controlling the visibility of menus, which ViewPager
can use to have the correct menus shows. And add a method to get the
name of a back stack entry.

Change-Id: Idcba14cfa2a172545a7a2a2c466cb49ceb789619
/frameworks/base/core/java/android/app/Activity.java
62f20ecf492d2b29881bba307c79ff55e68760e6 16-Aug-2011 Dianne Hackborn <hackbod@google.com> Add new am option to profile the launching of an activity.

Change-Id: Ie71a8043eafe41f53a0b3dbb5170276d87acbc9b
/frameworks/base/core/java/android/app/Activity.java
271c2fe0eb36fbf872535bedf3ee8156e3087847 10-Aug-2011 Dianne Hackborn <hackbod@google.com> New extended Intent protcols for installing/uninstalling apps.

Change-Id: I13be1cc58c91f51d521a1f0f734d2b2db7b2980b
/frameworks/base/core/java/android/app/Activity.java
269248d112e35fe8e9f0d5d11c96dcb2ac1118b0 02-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5098288 - Rethink the suite of new themes

Cut down the list of new themes for ICS. Holo apps now have
Theme.Holo, Theme.Holo.Light, and Theme.Holo.Light.DarkActionBar to
choose from.

Add manifest attribute android:uiOptions to express
splitActionBarWhenNarrow. Other options may move into this later as
well. (DialogWhenLarge?) This attribute is valid on both activity and
application tags; application settings will serve as the default for
activities that do not explicitly set uiOptions.

uiOptions are not currently reflected in the startup window for new
activities.

Change-Id: Iffdc2ce4cc69f79c9bd4e541b7923286e6936c1e
/frameworks/base/core/java/android/app/Activity.java
c68c913d357e2955d4bd7ca52829071e531c7825 29-Jul-2011 Dianne Hackborn <hackbod@google.com> Various work on out of memory managment.

- Improve how we handle processes that have shown UI, to take care
of more cases where we want to push them into the background LRU
list.
- New trim memory level for when an application that has done UI
is no longer visible to the user.
- Add APIs to get new trim memory callback.
- Add a host of new bind flags to tweak how the system will adjust
the OOM level of the target process.

Change-Id: I23ba354112f411a9f8773a67426b4dff85fa2439
/frameworks/base/core/java/android/app/Activity.java
45c0b1954d7dfa6e2590ed76b915a98ae971414c 29-Jul-2011 Adam Powell <adamp@google.com> Fix bug 5079507 - ICS (phone) : ActionBar tabs don't correctly resize
if activity handles orientation change

Make sure that bar content height and sizing/layout parameters are
properly updated after a configuration change.

Change-Id: I886df5cd9a655ba1bd34fab2b48e8b5be67fcc32
/frameworks/base/core/java/android/app/Activity.java
88ab69780f58e4b32d497266b2ad646a4d74827b 28-Jul-2011 Adam Powell <adamp@google.com> Fix bug 5087752 - Maintain correct contrast against action bars in
inverse-bar themes

Add the actionBarWidgetTheme theme attribute. This lets a theme
specify a wrapper theme that can be used to create views that will
end up in the action bar so that the rest of the code can ignore
differences in contrast. (e.g. the inverse action bar themes.)

Apps can use ActionBar#getThemedContext() to obtain a Context with a
proper theme for views that will end up in the action
bar. MenuInflaters generated by Activities will automatically use this
to properly theme inflated action views.

Change-Id: Ib28c82bf47c25d446cca2a63f617b8a4a0afa6b2
/frameworks/base/core/java/android/app/Activity.java
d04ad541def2bca8fc2d810514ee15ab97893d35 26-Jul-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5063010: Loaders don't seem to be properly...

...retained with compatibility library

Yikes, and also in the main platform...! :(

Change-Id: I76ee3a9a5ba4a220c2f54d0af9cf49e3a736e7bd
/frameworks/base/core/java/android/app/Activity.java
27e4266a4d63f1b20c632a665e65350bb1eac681 11-Jun-2011 Dianne Hackborn <hackbod@google.com> Merge "resolved conflicts for merge of ed1a9c77 to master"
7b1c0f679e2fbc697a00253733c2200cd4817adf 11-Jun-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of ed1a9c77 to master

Change-Id: I0ecf8ca6deaee165eea3cc9012f8ae139f52ea0c
afc4b283fdaedec9bf32492a019b43cc33edc9b6 11-Jun-2011 Dianne Hackborn <hackbod@google.com> Fix some problems with moving in and out of detached state.

Loaders were not being re-initialized correctly when coming back
(this would also impact the back stack). The ListView also wasn't
working correctly, and there were also problems with simply
re-using a Fragment instance after it had been removed.

Change-Id: I534b091ae09c0ef7ffffe9d68049e6840e8926b3
/frameworks/base/core/java/android/app/Activity.java
7e442837702a6e026c73a01fedb62c222b63cfc9 11-Jun-2011 Jeff Brown <jeffbrown@google.com> Optimize StrictMode activity instance count check.

This change attempts to avoid a periodic and costly 110ms
explicit GC and instance count operation when StrictMode
activity leak checking is enabled.

Change-Id: Ia90289ac3352c01c797ab3cc25456e3db68f220a
/frameworks/base/core/java/android/app/Activity.java
29bf3307277973ad4d148340c20aa7b32038c8af 04-Jun-2011 Dianne Hackborn <hackbod@google.com> am e826feb6: am dddd6b15: am 185e3e24: Fix when managed cursors are required.

* commit 'e826feb66c2a3690716136c24926606eafe827dc':
Fix when managed cursors are required.
185e3e243ee1da136bcace854026b8abaf0c4c86 04-Jun-2011 Dianne Hackborn <hackbod@google.com> Fix when managed cursors are required.

Only do this when we are actually restarting, not when we
are just resuming after a pause.

Change-Id: I32fd263917b03776efca8e096d0343107721398d
/frameworks/base/core/java/android/app/Activity.java
f8ac6b7394cfd37f01471bb35475ff2930eee140 24-May-2011 Adam Powell <adamp@google.com> Action bar tab layout

Sync with UX on action bar tab layout behavior.

Make action bar tabs behave better with configuration changes.

LinearLayout now supports largest child measurement in unspecified
mode.

Change-Id: Id520641715a61c07e64124a0c5a70912996c98a0
/frameworks/base/core/java/android/app/Activity.java
ac8dea12c17aa047e03a358110aeb60401d36aa2 21-Apr-2011 Dianne Hackborn <hackbod@google.com> DO NOT MERGE. Integrate from master: Rework display size access.

Applications now get the display size from the window manager. No
behavior should be changed yet, this is just prep for some real
changes.

Change-Id: I47bf8b55ecd4476c25ed6482494a7bcc5fae45d2
/frameworks/base/core/java/android/app/Activity.java
f9dd34f4d3203fd50363b3b0247c5d0db6fe2c8f 20-Apr-2011 Dianne Hackborn <hackbod@google.com> DO NOT MERGE: Integrate from main - Deprecate a bunch of APIs.

And clean up some documentation.

Change-Id: I8f06e2fc3bb6c552581b64657e82ba690d524232
/frameworks/base/core/java/android/app/Activity.java
ba4990c77cbc643809f1d0e74fabe5a1d1d1c3dc 14-May-2011 Dianne Hackborn <hackbod@google.com> am 71da3207: am 7d87c37b: am 6121f06e: Merge "Fix a bug where an action bar could be created when it should not be." into honeycomb-mr2

* commit '71da32074ce729fe170de2d6c348b110fb6625cc':
Fix a bug where an action bar could be created when it should not be.
a593d9852f3807305763c3f1fe1ac5c59f1fef92 13-May-2011 Adam Powell <adamp@google.com> Fix a bug where an action bar could be created when it should not be.

Change-Id: I9ca1038accdb6d0a539750ed8ab068a41612f6ae
/frameworks/base/core/java/android/app/Activity.java
9b4bee0f14bbd137b0797127aff2df46a6321ec5 28-Apr-2011 Adam Powell <adamp@google.com> Introducing the split action bar.

Apply (or extend) the theme Theme.Holo.SplitActionBarWhenNarrow or
Theme.Holo.Light.SplitActionBarWhenNarrow to enable splitting the
action bar across both the top and bottom of the screen. This places
the action menu along the bottom, leaving more room at the top for
titles, navigation, and custom views and more room at the bottom for
menu items.

TODO: Refine layout of the action menu when placed at the bottom of
the screen. Make action modes split as well.

Change-Id: I92c91f99c533f26aecf6b828ed041386c4f16922
/frameworks/base/core/java/android/app/Activity.java
44bc17c6b517aef35a390c81b5aa79c4f284f744 21-Apr-2011 Dianne Hackborn <hackbod@google.com> Rework display size access.

Applications now get the display size from the window manager. No
behavior should be changed yet, this is just prep for some real
changes.

Change-Id: I2958a6660895c1cba2b670509600014e55ee9273
/frameworks/base/core/java/android/app/Activity.java
9567a66a5e6f49dd8495fb5f6e2efb9f32e84b35 20-Apr-2011 Dianne Hackborn <hackbod@google.com> Deprecate a bunch of APIs.

And clean up some documentation.

Change-Id: I7882183b3daf883b7ac6098d19f88dc7cfbcdf61
/frameworks/base/core/java/android/app/Activity.java
43a17654cf4bfe7f1ec22bd8b7b32daccdf27c09 07-Apr-2011 Joe Onorato <joeo@google.com> Remove the deprecated things from Config.java. These haven't been working since before 1.0.

Change-Id: Ic2e8fa68797ea9d486f4117f3d82c98233cdab1e
/frameworks/base/core/java/android/app/Activity.java
e3a7f628c6d9fef42be24999b3137ebe5c6f3525 04-Mar-2011 Dianne Hackborn <hackbod@google.com> Fix Fragment.onInflate() to actually work correctly.

Like, um, it needs to be given the Activity since this is called before
the activity is attached.

And it was called after the entire fragment and its *view* was created
when being restored from saved state.

And the documentation was whacked.

Also fix the IME selector to dismiss when you tap outside of it.

Change-Id: Icbcafe7558965a570bdef9cda3441b1f0f7a317c
/frameworks/base/core/java/android/app/Activity.java
606ecf3e9f27c8f69a398ea4d83d842df50d094f 02-Mar-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #3495749: Crash on choosing to open the downloaded images"
ce418e661ab52a08a2a2c3b2f10a4dd9adf33305 01-Mar-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3495749: Crash on choosing to open the downloaded images

This is due to the window doing a relayout after its activity is
stopped, at which point it may need to interact with the adapter
to load data.

The fix here is to tell ViewRoot about an activity being stopped
and, if in this state, hold off on doing any new measurements and
layouts of the hierarchy until it is no longer stopped.

In this case the relayout was happening due to the cursor
being deactivated, with causes the adapter to invalidate
its data. Because this is now in a dialog window, this
allows the window to actually be resized smaller (unlike when
in a full screen activity), and boom.

Change-Id: I26442b4679819b4a4e6bc56289afd3445526750b
/frameworks/base/core/java/android/app/Activity.java
763cbb134f40fa1e555c0a945a2a651f69193505 01-Mar-2011 Adam Powell <adamp@google.com> Fix a bug where the lazy-initialized ActionBar object was being too lazy.

Change-Id: I80dc06deffd1df8cc8ae96fd878d66a101a17086
/frameworks/base/core/java/android/app/Activity.java
33bbfd2232ea9eaae9a9d87a05a95a430f09bd83 25-Feb-2011 Jeff Brown <jeffbrown@google.com> Add support for mouse hover and scroll wheel.

Dispatch ACTION_HOVER_MOVE and ACTION_SCROLL through the View
hierarchy as onGenericTouchEvent. Pointer events dispatched
this way are delivered to the view under the pointer. Non-pointer
events continue to be delivered to the focused view.

Added scroll wheel support to AbsListView, ScrollView,
HorizontalScrollView and WebView. Shift+VSCROLL is translated
to HSCROLL as appropriate.

Added logging of new pointer events in PointerLocationView.

Fixed a problem in EventHub when a USB device is removed that
resulted in a long stream of ENODEV errors being logged until INotify
noticed the device was gone.

Note that the new events are not supported by wallpapers at this time
because the wallpaper engine only delivers touch events.

Make all mouse buttons behave identically. (Effectively we only
support one button.)

Change-Id: I9ab445ffb63c813fcb07db6693987b02475f3756
/frameworks/base/core/java/android/app/Activity.java
5c40f3fcc966ecde3347cd7ddbe965440318c35a 15-Feb-2011 Daisuke Miyakawa <dmiyakawa@google.com> Fix typo.

Change-Id: I32bbe182d51d5fe0289c8939fbadb57336ddd98a
/frameworks/base/core/java/android/app/Activity.java
a1ea2c8457e860ba0637d95dfc2076e77d8f2fe3 09-Feb-2011 Adam Powell <adamp@google.com> Merge "Fix bug 3345948 - ActionBar.show()/hide() shouldn't animate if called before first layout"
50efbed668a9410cdec51f7c8604fa44ed267fed 09-Feb-2011 Adam Powell <adamp@google.com> Fix bug 3345948 - ActionBar.show()/hide() shouldn't animate if called
before first layout

Enable/disable the action bar show/hide animation as part of the
activity/dialog lifecycle. This allows apps to set action bar
visibility state as the activity first becomes visible or returns to
visibility without the associated animation.

Change-Id: I85ff9268d2cb2c8fcd3364dd275597fe90529224
/frameworks/base/core/java/android/app/Activity.java
121370d25c7c7113fb7913ab90f45c667b26af57 09-Feb-2011 Scott Main <smain@google.com> am 3c565377: am b508d6e2: Merge "docs: fix links to revised fundamentals documents" into honeycomb

* commit '3c5653773d6b48f27aa52d746a7a6f8728d5ba36':
docs: fix links to revised fundamentals documents
7aee61f5a96e94e158bf5ad3d8e192c4d4f7eff6 08-Feb-2011 Scott Main <smain@google.com> docs: fix links to revised fundamentals documents

Change-Id: Ie2a660cce1d00f924c9fde5c6a00776307e5e1c7
/frameworks/base/core/java/android/app/Activity.java
b2abd8c424a68eb6a5e3615a99f66c0bd46e6063 30-Jan-2011 The Android Open Source Project <initial-contribution@android.com> Mass merge from gingerbread - do not merge

Change-Id: I45dc3596bf4211d8f91c64f2d1d00588878df629
f2a8b3c450f0570c1ad0ee6e0fae3cfb85bfb4de 28-Jan-2011 Dianne Hackborn <hackbod@google.com> am 8691b724: am 10e4148b: Merge "Fix issue #3291173: Problem report for NewsRoom - RSS News Reader" into honeycomb

* commit '8691b7243d40d5ef0ab94b8d5f204635d36bf1c4':
Fix issue #3291173: Problem report for NewsRoom - RSS News Reader
8691b7243d40d5ef0ab94b8d5f204635d36bf1c4 28-Jan-2011 Dianne Hackborn <hackbod@google.com> am 10e4148b: Merge "Fix issue #3291173: Problem report for NewsRoom - RSS News Reader" into honeycomb

* commit '10e4148b62c9bfed945c1bcea9dd5eea2a17b0d0':
Fix issue #3291173: Problem report for NewsRoom - RSS News Reader
420829ef78c5d86e470fc445279c7c10be6b5dbe 28-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3291173: Problem report for NewsRoom - RSS News Reader

The framework had started using the LayoutInflator's factory
for itself, which breaks apps that want to use it. Add a hack for
the framework to insert its own private factory.

Also fix a deadlock in the system process.

Change-Id: Iaf80186a5d7e4029faf89e968e184abdaabe514a
/frameworks/base/core/java/android/app/Activity.java
7ef536ad2e817e4cf81127f2dbf1f13b386beff4 27-Jan-2011 Jeff Hamilton <jham@android.com> resolved conflicts for merge of 52d3203e to honeycomb-merge

Change-Id: Icb56943bc4cd6a93e4e2ff13fd2be6e5b7ca161b
e3e6a157dff68d17d274fc2196b0675bd3d0258f 22-Jan-2011 Dianne Hackborn <hackbod@google.com> am 8a0f1756: am 5503d803: Merge "Fix issue #3377999: Activities need to be stopped when sleeping" into honeycomb

* commit '8a0f17560080077b972c97bf9d5b68961f148fe3':
Fix issue #3377999: Activities need to be stopped when sleeping
8a0f17560080077b972c97bf9d5b68961f148fe3 22-Jan-2011 Dianne Hackborn <hackbod@google.com> am 5503d803: Merge "Fix issue #3377999: Activities need to be stopped when sleeping" into honeycomb

* commit '5503d803ecee63d417128d3849717b59b971fc08':
Fix issue #3377999: Activities need to be stopped when sleeping
4eba96bb314d8ff773ea33d6cb3179f25751ecce 21-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3377999: Activities need to be stopped when sleeping

This is a band-aid over the existing kludgy stopping mechanism
where the semantics of stop are different in the activity manager
than in the clients.

This change is intended to be as unobtrusive as possible, only
impacting the sleep case. I have a different change that
completely reworks how we stop activities to simply this all
a lot by unifying the semantics between the server and client.
However, it is too late in HC for such an extensive change. Later
I'll revert this one and put in the better solution.

Change-Id: Id77f2db1ec83469cdd888acb8fbc4679daa7766e
/frameworks/base/core/java/android/app/Activity.java
9e9d886b272181cfc101ef6d49019dabf550a882 21-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> am 7204528e: am 9358bd39: Merge "Fixes for StrictMode instance count checking." into honeycomb

* commit '7204528e71145e34bedd6cfb13110eb872d8a968':
Fixes for StrictMode instance count checking.
7204528e71145e34bedd6cfb13110eb872d8a968 21-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> am 9358bd39: Merge "Fixes for StrictMode instance count checking." into honeycomb

* commit '9358bd39dc8829ef8413294da70d44cd928ca878':
Fixes for StrictMode instance count checking.
5f8b5c191cae77f536ee64f0b625e4a7f8596787 21-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> Fixes for StrictMode instance count checking.

Misc stuff found after looking at the first day of data, Jesse's
review, and comments from Dianne about tracking Activity counts
better.

Change-Id: Ifee1ef8f59f41061d4aac8c02765627dbf3cd8e4
/frameworks/base/core/java/android/app/Activity.java
e23cae2335c217191ec35e5c9f3ec296f877145a 20-Jan-2011 Romain Guy <romainguy@google.com> am 1eaac21e: am 68c56a51: Merge "Documentation fix." into honeycomb

* commit '1eaac21e6f4056fd582a7e58fb9a553f37f7820a':
Documentation fix.
1eaac21e6f4056fd582a7e58fb9a553f37f7820a 20-Jan-2011 Romain Guy <romainguy@google.com> am 68c56a51: Merge "Documentation fix." into honeycomb

* commit '68c56a51b32b5f5322c4f0f7dbba918712ad6473':
Documentation fix.
482b34a6f8aebe620cf815cdc689726ef5cf437e 20-Jan-2011 Romain Guy <romainguy@google.com> Documentation fix.

Activity's documentation wasn't clear on what would happen when
calling setContentView(View).

Change-Id: I37be6565ba897694460c80a39562346293faa8ea
/frameworks/base/core/java/android/app/Activity.java
28d5206519b1c14553a745cc1f4f5df98fa3176a 20-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> am bd80a12c: resolved conflicts for merge of 9240f16d to honeycomb-plus-aosp

* commit 'bd80a12cba480a0dbb2e9073f35c758d8b396b94':
StrictMode: class instance limits (track object "leaks")
bd80a12cba480a0dbb2e9073f35c758d8b396b94 20-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of 9240f16d to honeycomb-plus-aosp

Change-Id: I6e595bb11a5a692ccd730b9d1d2aa367063a61f5
bfbe5771106a07f9c8e8685e402b1003db40526f 19-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> StrictMode: class instance limits (track object "leaks")

Change-Id: I2db5a19060c2013078feb88a91caf655469b2f98
/frameworks/base/core/java/android/app/Activity.java
7fc5d4b8e7145413411da3320495388f09fab536 19-Jan-2011 Dianne Hackborn <hackbod@google.com> am 2ec5a716: am 36c84403: Merge "Fix issue #3362484: Can\'t dismiss activity picker by tapping outside dialog" into honeycomb

* commit '2ec5a7160b3d32887b2428edef7a751ee3700809':
Fix issue #3362484: Can't dismiss activity picker by tapping outside dialog
aef99bbc696974af436c0987492cbd7a57c693d1 19-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> am 7adf8481: am b4f655d5: Merge "StrictMode class instance limit interface." into honeycomb

* commit '7adf848183b39ac4d0b8b67435ace94909ca3076':
StrictMode class instance limit interface.
2ec5a7160b3d32887b2428edef7a751ee3700809 19-Jan-2011 Dianne Hackborn <hackbod@google.com> am 36c84403: Merge "Fix issue #3362484: Can\'t dismiss activity picker by tapping outside dialog" into honeycomb

* commit '36c84403ec07439d11ed284ac5f9a9db807fbf92':
Fix issue #3362484: Can't dismiss activity picker by tapping outside dialog
36c84403ec07439d11ed284ac5f9a9db807fbf92 19-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #3362484: Can't dismiss activity picker by tapping outside dialog" into honeycomb
cfaf8878de83b6bb7a24aee3c240259f428e6e4a 18-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3362484: Can't dismiss activity picker by tapping outside dialog

Change-Id: Idc2fe5a86c61e8f94fe9d902a0087a05f6f7918e
/frameworks/base/core/java/android/app/Activity.java
7adf848183b39ac4d0b8b67435ace94909ca3076 18-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> am b4f655d5: Merge "StrictMode class instance limit interface." into honeycomb

* commit 'b4f655d5912869078cb7be29d108ebfea06019fc':
StrictMode class instance limit interface.
758035757f11a085a12b54daa9467f1d6bb251ef 13-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> StrictMode class instance limit interface.

Change-Id: Ic5eea539586e5d4965d83364bf9f623d1d89f2b1
/frameworks/base/core/java/android/app/Activity.java
cb1404e45639d20439d7700b06d57ca1a1aad1fa 16-Jan-2011 Jeff Brown <jeffbrown@google.com> Add joystick support to framework.

Change-Id: I95374436708752e1a9cff3f85c5b9bc3e0987961
/frameworks/base/core/java/android/app/Activity.java
93ec68e6a9ef0c6031db506dbd035a7ade6350ad 14-Jan-2011 Jeff Hamilton <jham@android.com> resolved conflicts for merge of 06bb3aef to honeycomb-plus-aosp

Change-Id: Ia7071ca07d917bd79e7697f4b0c0640ebb5f6a6f
52d3203ef69d4babbc4dd030a15c08c0b8d1d226 08-Jan-2011 Jeff Hamilton <jham@android.com> Add dispatching overrides for foreground apps.

Apps can register to override the default dispatching
but only when they're in the foreground.

Change-Id: I8e9a9254d3f79f097fb3c8c677d806043574ba4d
/frameworks/base/core/java/android/app/Activity.java
247fe74c934cb3fba85aae7e051a8044f460fb11 09-Jan-2011 Dianne Hackborn <hackbod@google.com> Implement issue # 3255887 could CursorLoader offer...

...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
/frameworks/base/core/java/android/app/Activity.java
64da12ab1f472e01325b6c6d094153ac110eaf7b 05-Jan-2011 Jeff Brown <jeffbrown@google.com> Add dispatch key shortcut window callback.

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
/frameworks/base/core/java/android/app/Activity.java
4f3867e3ce92101224ad79b8f2ff446bb4f99108 15-Dec-2010 Dianne Hackborn <hackbod@google.com> Time to remove some old APIs!

Change-Id: I73ca23b0d5c7971a00dfa05357f9b630d9b6ebc8
/frameworks/base/core/java/android/app/Activity.java
30d7189067524000c738c188c4ff91f84f474d25 11-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3274841: Orientation change problem with a paused activity

Plus a bunch of debug output improvements.

And some new Intent helpers for dealing with restarting an app.

Change-Id: I50ec56bca6a86c562156b13fe8a6fdf68038a12e
/frameworks/base/core/java/android/app/Activity.java
9d0718042f7c0a50d825c621f82ce9a92071f07a 08-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix issues #3257701 and #3267312

3257701 Preference headers have duplicated "title" and "summary" if
title is not loaded from a resource
3267312 Fragment.onConfigurationChanged doesn't get called

Change-Id: I76e346ba88aa632ebb9aa413a2ce2645ebf357cd
/frameworks/base/core/java/android/app/Activity.java
0aae2d4e0075fd699cf40b26dca0eb2c3b3e37d2 08-Dec-2010 Dianne Hackborn <hackbod@google.com> Rework activity lifecycle so onSaveInstanceState() is after onPause().

The goal is to fix a bunch of fragment-related bugs caused by various
things trying to do fragment transactions after onPause()... which
currently throws an exception, since this is after the activity's state
has been saved so the new fragment state can be lost.

The basic change is relatively simple -- we now consider processes
hosting paused or stopping activities to be unkillable, and the client
code now does the onSaveInstanceState() as part of stopping the
activity.

For compatibility, if an app's targetSdkVersion is < HONEYCOMB, the
client side will still call onSaveInstanceState() prior to onPause()
and just hold on to that state until it needs to report it in once
being stopped.

Also included here is a change to generate thumbnails by taking
screenshots. The code for generating thumbnails by re-rendering
the view hierarchy is thus removed.

Change-Id: Iac1191646bd3cadbfe65779297795f22edf7e74a
/frameworks/base/core/java/android/app/Activity.java
049dd3d4a4869e0c65d370e2538fcfb55bacef52 02-Dec-2010 Adam Powell <adamp@google.com> Fix bug 3248786 - silly monkeys.

Change-Id: I41306cae06a7b4fd3852e0760ae668c8d6eacc5d
/frameworks/base/core/java/android/app/Activity.java
30c9bd89556137157b2f686637ece961454ccabe 02-Dec-2010 Dianne Hackborn <hackbod@google.com> Implement issue #3189564: New API to create an activity.

Change-Id: I7aef83324d653130eb3b2a148ba089d7347e6ba6
/frameworks/base/core/java/android/app/Activity.java
8515ee846bd76aee86ec5ddfcc4dd1e626dd999c 30-Nov-2010 Adam Powell <adamp@google.com> Fix bug 3240444 - add OnMenuVisibilityListener for action bar.

Fix bug 3180015 - leaking window handles on configuration change for
action bar dropdown menus

Rename ActionBar.NavigationCallback to something more consistent with
the rest of the API.

Change-Id: Ic1fb4c07484c57a72649b30e27d220b18cda6cdf
/frameworks/base/core/java/android/app/Activity.java
621e17de87f18003aba2dedb719a2941020a7902 23-Nov-2010 Dianne Hackborn <hackbod@google.com> Implement issue #3221502: New APIs to support new back stack / task navigation

What this adds:

- A new Intent activity flag to completely replace an existing task.
- A new Intent activity flag to bring the current home task up behind
a new task being started/brought to the foreground.
- New versions of startActivity() that take an array of Intents to be
started, allowing applications to start a task in a specific state.
- A public moveTaskToFront() method on ActivityManager, with a new flag
that allows the caller to have the task moved to the front with the
current home task immediately behind it.

Change-Id: Ie8028d09acffb5349d98043c67676daba09f75c8
/frameworks/base/core/java/android/app/Activity.java
3a57fb9e9c4f205ca6bd4f036b3080f92588d16d 16-Nov-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3191573: PreferenceFragment.onActivityResult cannot
launch a new fragment on the same call.

There were some problems with the API design where you could do
things in such a way that a back stack entry that was not at the
top would get popped. Ouch. Hopefully this change prevents that
from being able to happen.

Change-Id: I8cbc952e12ddd231ff6c84b6e9bbf5125f449f04
/frameworks/base/core/java/android/app/Activity.java
debf3bed9ea913ac55c80e1f9f7f33217054a943 16-Nov-2010 Adam Powell <adamp@google.com> Fix bug 2948913 - provide lifecycle notifications for action modes

Change-Id: I432e29a7bddb18bc32dfbe21a8ecd7d83158e3a0
/frameworks/base/core/java/android/app/Activity.java
e71df8fa166eb2de7fcdecc14d958d3e3b796531 28-Oct-2010 Dianne Hackborn <hackbod@google.com> am 96abb48d: am aa93bcd6: Fix issue #3138926: App\'s preferences can be lost after onPause()
aa93bcd62482719c146a411008e1eac94135b6a4 27-Oct-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3138926: App's preferences can be lost after onPause()

Change-Id: Icea3d37fab5e47c89c5cbc0adff7bbec898fa93e
/frameworks/base/core/java/android/app/Activity.java
fb3cffeb35368da22f99b85d45039c4e6e471c06 26-Oct-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3130426: Finsky crash in switching from window carousel

Need to note that we no longer have saved state before delivering
results or new intents to an activity.

Also do some work on loaders to prevent apps from making fragment
changes as a result of receiving loader data. This makes apps
consistent crash in a case that they would previously sometimes
crash (if they got the loader data after onPause).

Change-Id: I46e9e46d0aa05d9d7d6a275a2a488a18a20a5747
/frameworks/base/core/java/android/app/Activity.java
d7dccd26115851c49c91db204f88db7a7973b2f6 09-Oct-2010 Dianne Hackborn <hackbod@google.com> am 55f1b0b8: am 9d6824cd: Merge "Make Activity.removeDialog() less strict." into gingerbread

Merge commit '55f1b0b82f0d9f6d43b9b2e246d9de0c810e7a7f'

* commit '55f1b0b82f0d9f6d43b9b2e246d9de0c810e7a7f':
Make Activity.removeDialog() less strict.
a1b0d6966e45e847aa47cc35eac8ea4e624d6a99 08-Oct-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of efa4f7f8 to master

Change-Id: I00dff76594326a6f6e69515a9cba673602ed269d
d2ce8bbb84607b1f456b9af00d8d7b84a4610a79 07-Oct-2010 Dianne Hackborn <hackbod@google.com> Make Activity.removeDialog() less strict.

It was extremely annoying not being able to do this.

Change-Id: I9a13b4fdd984a5e9d8f9ac49c7ede218c4481c2b
/frameworks/base/core/java/android/app/Activity.java
3c4c2b7e6f0674068d13b42d4dcf0fd009df0c49 06-Oct-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3001368: API REVIEW: android.app.Activity

Bye bye, lots of junk.

Change-Id: Idd72fc525851277362b2a1ff3bb0f7865fe655fd
/frameworks/base/core/java/android/app/Activity.java
625ac271f80777668f832a344486a6fcdc06d0ae 18-Sep-2010 Dianne Hackborn <hackbod@google.com> Work on fragments in layouts.

- Change semantics if IDs associated with these fragments, to
work correctly when placed in a container. If the container
has an ID or you have supplied a tag, the fragment's ID is
optional.

- To do this, there is a new LayoutInflater API that allows code
creating views to access the parent container that view will
be in.

- Fix issues with state management around these fragments. Now
correctly retains state when switching to a layout that doesn't
include the fragment.

Also:

- Add new simple list layouts for items that want to show an
activated state.
- Add new Activity.dump() that can be invoked with adb shell
dumpsys; the default implementation dumps fragment state.

Change-Id: I192f35e3ea8c53fbd26cf909095f2a994abfc1b6
/frameworks/base/core/java/android/app/Activity.java
48a781a0a5f83da7c81cf0e7230151a751740a09 21-Sep-2010 Dianne Hackborn <hackbod@google.com> am 4b187e80: am 8e1b84e7: Merge "Some battery improvements:" into gingerbread

Merge commit '4b187e804fdfdbc825e17646e82e0218e316a339'

* commit '4b187e804fdfdbc825e17646e82e0218e316a339':
Some battery improvements:
ce2ef766cad1bb186ea522f76c4ac6a8bb3dfa87 20-Sep-2010 Dianne Hackborn <hackbod@google.com> Some battery improvements:

- New API for iterating over history that will allow a better implementation
in the future.
- Now do writes asynchronously.

Also improve the documentation for Activity.onRetainNonInstanceState().

Change-Id: Idf67f2796a8868eb62f288bcbb2bad29876c8554
/frameworks/base/core/java/android/app/Activity.java
a21e3da55940e239addd80bf379091a1d85d006f 13-Sep-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2967969: Crash rotating screen on "delete account" dialog

- Have PreferenceActivity save and restore its header state.
- Keep track of the current header selection.
- When headers are updated, try to retain the current header selection.

Also fix issue #2995541: Cannot add new contact. We were not allowing
fragment transactions in some cases.

Change-Id: I4aa4c703ed5f4ecf9f425cd7eeea4740c6360ce9
/frameworks/base/core/java/android/app/Activity.java
3e449ce00ed2d3b271e50bc7a52798f630973bf1 12-Sep-2010 Dianne Hackborn <hackbod@google.com> Some fragment stuff:

Fix issue #2975886: Make getTargetFragment() survive rotation events with
retained fragments. We now fix up the fragment pointer when restoring state.

Fix issue #2919928: In PreferenceFragment, addPreferencesFromResources() is
not effective when called after onActivityCreated(). Note to self: do not use
a what code of 0. Maybe that should be documented (I'll do it in gingerbread).

Hopefully implement #2992753: DialogFragment.dismiss will NPE if called too soon
(before attached to activity). We now keep track of the FragmentManager
separately from the activity, and set that as soon as the fragment is part of a
transaction.

Investigate issue #2988876: NPE when device orientation is changed. The NPE is
because of the app trying to do a fragment transaction in onPause(). This is
fundamentally not viable, since (a) the activity will be gone before we ever
have a chance to process the message to commit the transaction, and (b) even if
we did try to commit the transaction earlier, this would be done after
onSaveInstanceState() and thus not work in cases where the activity gets killed
in the background. So instead, we'll just throw an immediate exception if you
try to do this.

Change-Id: Iea62b50eb79f066af2471fce86836d073398f4f7
/frameworks/base/core/java/android/app/Activity.java
a14c8e0c67223fdc9a0746b370ae594a92530e78 04-Sep-2010 Romain Guy <romainguy@google.com> Bring back instances counts to dumpsys meminfo.

Change-Id: Idd846e137e8e87cb93551ba13751df60a8046eed
/frameworks/base/core/java/android/app/Activity.java
8f5edc93b622bbdc33db24d348480fd7d55afb41 02-Sep-2010 Dianne Hackborn <hackbod@google.com> am 840f0fec: am d3efa392: Clean up some permissions.

Merge commit '840f0fecd87357cadf4b2a0ae96d30b457f89729'

* commit '840f0fecd87357cadf4b2a0ae96d30b457f89729':
Clean up some permissions.
d3efa3924407da6d38aa5931ac29aa088d9eb986 02-Sep-2010 Dianne Hackborn <hackbod@google.com> Clean up some permissions.

Note that WRITE_OWNER_DATA and READ_OWNER_DATA don't actually appear
to be associated with anything or used by anyone, so they are just
deleted.

Also deprecate the activity API to go in the foreground. I didn't
realize that was released in the SDK. It needs to go away.

Change-Id: I96f53702c2c79e4999b6b2c498abb770bd27e03a
/frameworks/base/core/java/android/app/Activity.java
d02bdaab495641ab50e2123fdfd99a819cc40540 26-Aug-2010 Daniel Sandler <dsandler@android.com> Remove experimental immersive mode support. DO NOT MERGE

Bug: 2949215

Change-Id: I7d998ef571ef7e149bb96261430e92150b80b77d
/frameworks/base/core/java/android/app/Activity.java
7f7ce40f90cf00dc046fb9520d77d29e96b474d6 28-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of 28130bae to master

Change-Id: I13df8dc12092c3d2536e12216df9130d5914380a
41bfa37cb2ca244432061bddb1c8bf802545ae6e 27-Aug-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 409b7120 to master

Change-Id: I1741e205b5ff5ae62a38ab3b096bcc3d96883538
333b8cba996c8ebb8ca55ebfc5cc536bdd64af94 26-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> SharedPreferences$Editor.startCommit()

Adds a fire-and-forget save method (startCommit) to the
SharedPreferences.Editor, which is the way most people use it anyway.

This commit adds the implementation. The previous commit added the
interface and docs:

previous change: Idf9934b445da1fb72b79f0192218b47c0a7f5a34
git commit: edf32d01316bd3432c023f17747461b08ae36375

In addition, this change:

-- adds a generic "runPendingWorkFinishers" mechanism to
ActivityThread to wait on async operations that are still
in flight and use it for this.

-- ties runPendingWorkFinishers into Activity.onPause,
BroadcastReceiver, and Service.

-- makes sSharedPreferences keyed on name, not File, to avoid
unnnecessary allocations

-- documents and guarantees what thread
OnSharedPreferenceChangeListener callbacks run on

-- makes a few things in frameworks/base use startCommit(), notably
Preference.java (which was ignoring the return value anyway)

Change-Id: I1c8db60ad45643226fe6d246d3e513eeb7bd0ebd
/frameworks/base/core/java/android/app/Activity.java
6ed50de6d1e5e27d11304cce226fefeee3105bd7 25-Aug-2010 Jason parks <jparks@google.com> Deprecated the managed cursor API's on Activity. Loaders are the new world order.

Change-Id: I0c7d403e9e6c0fcdf6fea886d8c284341e2f6c88
/frameworks/base/core/java/android/app/Activity.java
02486b1327e3007c62d253dd89ba9db1852b87f8 26-Aug-2010 Dianne Hackborn <hackbod@google.com> Hide heavy-weight API.

And give it a better name, for when it is later un-hidden.

Change-Id: Iae0d3054d44f873b9f953bc41d175a47802a185e
/frameworks/base/core/java/android/app/Activity.java
cf44040d93396e285fd064b1d452da249fea27f0 25-Aug-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of d3cd2596 to master

Change-Id: I61a37a3be8b8115b225da272903ca917c33ae4a6
e794e9f9b7599c1ad6b8760e601c81b19ecc80c6 24-Aug-2010 Dianne Hackborn <hackbod@google.com> Verify that onPause() calls its superclass.

Change-Id: Ibf48992b4445bfc726ade307aad26f3e9577c5fb
/frameworks/base/core/java/android/app/Activity.java
291905e34a7f0ae03c68fb2c1b8c34b92d447fbf 18-Aug-2010 Dianne Hackborn <hackbod@google.com> Maybe fix #2925641: calling onCreateOptionsMenu before attached activity

Also add some APIs to PreferenceActivity.

Change-Id: I85894a3eb9cd3e5adb78b82e85454c0d74773178
/frameworks/base/core/java/android/app/Activity.java
def1537e9e8d0dd190cde5310ddae8b921088c9b 15-Aug-2010 Dianne Hackborn <hackbod@google.com> More fragment work:

- Introduce FragmentManager as a public API, deprecating the fragment
APIs on Activity. (They will be removed soon.)
- Add APIs to write a fragment reference to a bundle and later retrieve
it.
- Add Fragment API to set another fragment as its target, for delivering
results.
- Change when onInflate() is called and formalize its meaning in relation
to the fragment arguments that were previously introduced.
- Change onDestroyView() to always be called, regardless of when
onCreateView() returns. It now also is called slightly differently,
after the view hierarchy's state is saved.
- Fix some issues with DialogFragment's lifecycle with its associated
Dialog and state save/restore.
- Preference can now have a Bundle associated with it to provide
arguments to a fragment. The data for this Bundle call be supplied
via <extra> tags under a PreferenceScreen.
- PreferenceActivity's header XML tags are now <preference-headers>
and <header>, and you can supply <extra> tags under a <header> to set
arguments for the header's fragment.

Change-Id: I22c212c9fa862d50840201ca16e51f9de5ef0031
/frameworks/base/core/java/android/app/Activity.java
b7a2e4772220c4b41df1260cedaf8912f4b07547 13-Aug-2010 Dianne Hackborn <hackbod@google.com> Fragment and PreferenceFragment and FragmentManager, oh my!

- Introduce FragmentManager public API, for all Fragment management
needs. Will in the future allow the removal of the (growing number
of) fragment APIs on Activity.

- Fragment now has a concept of arguments. This can be supplied
immediately after creation, and are retained across instances.

- PreferenceActivity now has an API to have it update its headers (note
not tested). Headers now have arguments. Keys for controlling
when PreferenceActivity shows at launch have been added to the SDK.

- Fixes to back stack handling and state saving/restoring.

Change-Id: Ib9d07ae2beb296c4eb3a4d9e1b3b59544675e819
/frameworks/base/core/java/android/app/Activity.java
2cceaaae3480254bc72708ce01ca3870e2dbe863 12-Aug-2010 Dianne Hackborn <hackbod@google.com> Fix back popping the back stack too much.

Change-Id: I18a3d0f3546e51411771d49a68a97108e00b1cea
/frameworks/base/core/java/android/app/Activity.java
42c0fe86521af507f597af6159f63879cb5be73e 11-Aug-2010 Adam Powell <adamp@google.com> Fix bug 2908851 - ActionBar does not get initialized if
set/addContentView is never called.

Fix bugs around lazy initialization of ActionBar in Activities.

Change-Id: I39a4216a7f6b0051adc4a669b8f921f94148e1db
/frameworks/base/core/java/android/app/Activity.java
9b4c804b9856d732e461bc7505d40aa4ea1f7bf7 11-Aug-2010 Adam Powell <adamp@google.com> Fix bug 2908823

Change-Id: Ia20d47ff4e2a09cc0e1ac47cd02a5f152f57073c
/frameworks/base/core/java/android/app/Activity.java
6dd73b45a4b21eba4d1035346cc7870bb01ab621 06-Aug-2010 Adam Powell <adamp@google.com> Fix some lifecycle issues with populating the action bar's menu

Change-Id: I5f63df3260392b09fbb7120986702d01dac5906c
/frameworks/base/core/java/android/app/Activity.java
5e0d59547c4042037e23a42ba4e2521721e9c7d3 05-Aug-2010 Dianne Hackborn <hackbod@google.com> Fix some Loader bugs.

- Weren't re-attaching to the current loader manager after retaining
instance state.
- Ensure loaders are being destroyed.
- Fix a bug if you call restartLoader() inside of onLoadFinished().

Change-Id: I89df53db49d8e09047bf55216ebeb0f133c059e7
/frameworks/base/core/java/android/app/Activity.java
a7dd5eab33d1a87135ae5bd40a02f2e3c564f5de 04-Aug-2010 Vasu Nori <vnori@google.com> requery() return value should be checked

if not checked and if the cursor continues to be used, it will result in
bug:2529736

Change-Id: I920f665643561374c2211acded6cc31fa8931909
/frameworks/base/core/java/android/app/Activity.java
529b60a3b16ac3dff24f2403d760ab8ebc9670ff 04-Aug-2010 Romain Guy <romainguy@google.com> Add android:hardwareAccelerated to Activity.

Hardware acceleration can now be enabled/disabled locally on each activity
declared in the manifest. It can also be enabled/disabled directly on a
window through the WindowManager.LayoutParams.

Change-Id: I91dd0b26c4e7eb8cd7288e523ed6b7bda6d0990b
/frameworks/base/core/java/android/app/Activity.java
b3cf10ffa8ff9cac0da8b23a0d84076b3f501400 03-Aug-2010 Dianne Hackborn <hackbod@google.com> Add facility to switch to new fragments from preferences.

Change-Id: I009315b59cf81b4962e9c5a4490f0f82743ed64a
/frameworks/base/core/java/android/app/Activity.java
5d27977f9da482627ceb19317a2cd70467aff046 28-Jul-2010 Adam Powell <adamp@google.com> Action modes without action bar

Change-Id: I0367ab35e598a17980bd373b30828175f6283acc
/frameworks/base/core/java/android/app/Activity.java
005cb6de0727c0b03b92d32f153d8b81caeab8f0 27-Jul-2010 Jean-Baptiste Queru <jbq@google.com> Fix build

Change-Id: Iac31df396eaadd711088c149e4f7b616ff599a29
/frameworks/base/core/java/android/app/Activity.java
6e34636749217654f43221885afb7a29bb5ca96a 23-Jul-2010 Adam Powell <adamp@google.com> Moved context modes into view, renamed to action modes

ContextualMode renamed to ActionMode. Adds a reference to the action
bar and reduces confusion around things named "Context".

Change-Id: Ia5098b1d0799a0ece0810c34e6696eda039fb005
/frameworks/base/core/java/android/app/Activity.java
7cd83428f196c0474d12687c718d3f16bf620a49 23-Jul-2010 Ben Komalo <benkomalo@google.com> Ensure that creating a Loader/LoaderManager after the Activity has
started will kick off startLoading() as expected.

Change-Id: I8ec76d39665aab0dc72fb083b6b3751a45b51fce
/frameworks/base/core/java/android/app/Activity.java
dd913a50cd72d6dd23c4ea437f0ebe2be05ca2e8 22-Jul-2010 Dianne Hackborn <hackbod@google.com> Add new DialogFragment class.

For all your Dialog needs.

Change-Id: I36c602ca253488d34a55c8f0be610b9752c33264
/frameworks/base/core/java/android/app/Activity.java
ac695c608ba620e2362f57126d7be453cf5b7e1b 21-Jul-2010 Adam Powell <adamp@google.com> Refactored contextual modes out of action bar.

Change-Id: I1fc1c9383e5ee90f135b92a5afa8eadbf1c13d20
/frameworks/base/core/java/android/app/Activity.java
4911b783aa9f4af5ac919db861751d350471f5ef 15-Jul-2010 Dianne Hackborn <hackbod@google.com> Fix bug where loader listener would be registered twice.

Also change LoaderManager to an interface.

Change-Id: Ife6d123e56cc6f63b6fe902afac35b2673761e60
/frameworks/base/core/java/android/app/Activity.java
839458d8d4dbf44cd1778a23471cf8f948a2012c 15-Jul-2010 Jim Miller <jaggies@google.com> resolved conflicts for merge of e03952c0 to master

Change-Id: I414d934101d452a2c2500e539f0b0aff1e1b3ff0
9e14e9f33a66b864b98c6ff9517988bafbca3301 14-Jul-2010 Dianne Hackborn <hackbod@google.com> Fix fragment index expunging.

Change-Id: If37e58dfa998575530305584d3aa756bb5a61d7b
/frameworks/base/core/java/android/app/Activity.java
0b2a6d0773211449fbde9d2706388714beeffebb 14-Jul-2010 Jim Miller <jaggies@google.com> Fix 2797185: Re-enable thumbnail generation in framework

This re-enables thumbnail generation code in the framework
with a few improvements.

In addition to enabling the system to capture thumbnails,
it removes padding from the borders to account for space
overlapped by system widgets (status bar, etc.). Thus,
the contents of the bitmap are only those pixels unique to
the activity.

It also maximizes resolution of the bitmap by capturing the
image in the application's current orientation. In landscape
mode, it captures a bitmap with dimensions w x h. In portrait,
it captures a bitmap with dimensions h x w. Where w and h are
thumbnail_width and thumbnail_height as defined in dimens.xml.

Though enabled, the change is not currently used in this
branch. The work is being checked in here to avoid
complicated downstream merges.

Change-Id: Ifc8a4e0075d7d0697d8159589be3816ace31d70c
/frameworks/base/core/java/android/app/Activity.java
2707d6026240bcca6f0e35e2e1138958882e90ce 10-Jul-2010 Dianne Hackborn <hackbod@google.com> Implement instance passing in LoaderManager.

Activity now propagates loaders across instances when retaining
state. Adjusted APIs to make it better for apps to deal with this.

Change-Id: I8a6448cff1132e66207f9223eb29ccfc0decf2ca
/frameworks/base/core/java/android/app/Activity.java
c801768e4d29667a2608695449ebc2833ba0f200 06-Jul-2010 Dianne Hackborn <hackbod@google.com> Integrate Loader support in to Activity/Fragment.

Introduces a new LoaderManager class that takes care of
most of what LoaderManagingFragment does. Every Fragment
and Activity can have one instance of this class. In the
future, the instance will be retained across config changes.

Also various other cleanups and improvement.

Change-Id: I3dfb406dca46bda7f5acb3c722efcbfb8d0aa9ba
/frameworks/base/core/java/android/app/Activity.java
661c908e4e26c99adc2cab7558a02129eaee059d 02-Jul-2010 Adam Powell <adamp@google.com> ActionBar tab mode using fragments; needs styles.

Change-Id: I8f931dae447e7b64de827d3c17766e5f8ad794e2
/frameworks/base/core/java/android/app/Activity.java
3c80a4a044865bdf1289c7896baffa1c082d835c 30-Jun-2010 Dianne Hackborn <hackbod@google.com> Implement default key handling for native code.

The native code now maintains a list of all keys that may use
default handling. If the app finishes one of these keys
without handling it, the key will be passed back off to Java
for default treatment.

Change-Id: I6a842a0d728eeafa4de7142fae573f8c11099e18
/frameworks/base/core/java/android/app/Activity.java
89e0645b4157961e8c465eb9c819f965fdb453d8 24-Jun-2010 Adam Powell <adamp@google.com> Added context modes to ActionBar API.

Change-Id: I7c3e782cbf01be7bc671b377fb4d706040888833
/frameworks/base/core/java/android/app/Activity.java
445646c52128a763b56ed7bb3bd009e2f33e3e4f 26-Jun-2010 Dianne Hackborn <hackbod@google.com> Improvements to ListFragment.

Now deals correctly with a content view containing just a list,
and adds a lot more built-in functionality: ability to show
custom text for an empty list, and indeterminant progress while
populating the list.

In addition, reworks transaction committing to be more aggressive
about committing the transactions as the containing activity
moves between its states (rather than waiting for the activity's
handler to process the transaction message whenever that may
finally happen). And fixed a bug with saving/restoring state of
transaction replace operations.

Change-Id: I9617a0c4f248b50a61b319910323639b6de24f73
/frameworks/base/core/java/android/app/Activity.java
4ecdad302f6f775468b0c4d71afde7397c5b3c2a 23-Jun-2010 Daniel Sandler <dsandler@android.com> am c82b4e80: am 69a4817e: Immersive activity API.

Merge commit 'c82b4e80b8211851963929b33592bbc50358525b'

* commit 'c82b4e80b8211851963929b33592bbc50358525b':
Immersive activity API.
69a4817e3e1e368e758ff8c238deb5ee26963c04 23-Jun-2010 Daniel Sandler <dsandler@android.com> Immersive activity API.

An Activity can declare itself to be "immersive" either by
setting android:immersive="true" in AndroidManifest or by
calling setImmersive(true).

Immersive activities "should" not be interrupted, for
example by Notifications with an associated
fullScreenIntent. (In the future we may even prevent any
non-system application from successfully calling
startActivity() if the foreground activity is immersive.)
Notifications with FLAG_HIGH_PRIORITY set will be shown to
the user in some less-obtrusive way if the frontmost
activity is immersive.

Change-Id: I8d0c25cc4e22371c27cbf2bb6372d2c95d57b2d7
/frameworks/base/core/java/android/app/Activity.java
96675b1df3969f2d313b68f60ed9fa36805db8ce 11-Jun-2010 Adam Powell <adamp@google.com> Merging ActionBar menu with options menu.

Options menu items may now specify if they would like to appear in the
action bar. Menu items defined in xml may set the showAsAction
attribute to one of "never"(default), "ifRoom", or "always". Action
buttons are populated as follows:

* All showAsAction="always" items become action buttons, even if it
would crowd the navigation area of the action bar.

* If there is space remaining, showAsAction="ifRoom" items are added
until no more will fit comfortably.

Action button click events are now handled by the
onOptionsItemSelected method used by the standard options menu.

The construction of options menus now happens earlier in order to
provide data to the action bar. Activities with an action bar can now
expect to have onCreateOptionsMenu called when activity start-up is
complete.

Activity#invalidateOptionsMenu can be used to force a refresh of menu
items where the previous API would use ActionBar#updateActionMenu.

Change-Id: If52ddf1cf9f6926206bcdeadf42072ea2c24fab9
/frameworks/base/core/java/android/app/Activity.java
5ddd127d5a38d80c0d8087d1770f41f61f84f048 12-Jun-2010 Dianne Hackborn <hackbod@google.com> Implement ListFragment and Fragment context menus.

Also fix the docs build.

Change-Id: I96f24cc03e6debd897171e503957284b140a9f27
/frameworks/base/core/java/android/app/Activity.java
b31e84bc4513e46bac4be8f8d0513f78e360fb11 09-Jun-2010 Dianne Hackborn <hackbod@google.com> Add Fragment option menu APIs.

Also fix up how transactions are handled so that a series of transactions
can correctly be created and committed.

Change-Id: I948ba47d49e9b2246a1958bd9eac9dd36dc5a855
/frameworks/base/core/java/android/app/Activity.java
c39a5dcbe151e2a55bf8d6c40b56ec875c8715d5 04-Jun-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2733766: Crash in Gallery onDestroy: java.lang.RuntimeException

Change-Id: I1c67a6603c23d15fef9a6912c86ffdf77aaa8654
/frameworks/base/core/java/android/app/Activity.java
5ae74d6e89a30e79ea85c487b32223ef55314985 20-May-2010 Dianne Hackborn <hackbod@google.com> More fragment work.

Clean up FragmentTransaction API, add more animation control, add new
Fragment APIs for hiding and showing.

Change-Id: Iffe31351024a7a63d164270b8a955a499076600e
/frameworks/base/core/java/android/app/Activity.java
6e8304e57ec533e257a2496183125f257be1ff60 14-May-2010 Dianne Hackborn <hackbod@google.com> More fragment stuff:

- New startActivityForResult() API.
- Fragments now should have the correct lifecycle while hanging around
in the back stack (not being destroyed and re-created).
- Rework of state save/restore to make it simpler and better. In theory
now any fragment (including layout and others in the hierarchy) can
now be retained across config changes, though this hasn't been tested.

Change-Id: I2a7fe560e14e567f5675a2f172a23fca67b3e97f
/frameworks/base/core/java/android/app/Activity.java
7cd51efcbd2d083bf577696591ef1769034f7e2f 13-May-2010 Jeff Hamilton <jham@android.com> Remove the deprecated cursor methods.

Change-Id: Ie3571fea9f36996c31c327240b11086f8cc487f0
/frameworks/base/core/java/android/app/Activity.java
b4bc78b16a05554c57508b488e21dd8eca4e13e6 13-May-2010 Dianne Hackborn <hackbod@google.com> Further work on fragments:

- Implement all of the state saving and restoring machinery. This
caused some flux in the API.
- Add ability to have fragments that are retained across activity
instances.
- Fix some bugs.

Change-Id: Ib6b5b0752d7f8d667cfdcd3e76d127cc9b6d901b
/frameworks/base/core/java/android/app/Activity.java
33b974393b6fadcefc896ec4a0f9b66724f61e9f 20-Apr-2010 Adam Powell <adamp@google.com> ActionBar added to framework, integrated with Activity and styles.
Added onClick attribute support to menus in MenuInflater.

Change-Id: I739771b4f249d87a0d8b15969f3d526b099067a1
/frameworks/base/core/java/android/app/Activity.java
3d32f6e5228e5dfbfe88b24f6df64406628a3e0c 01-Apr-2010 Jeff Hamilton <jham@android.com> Add Activity.isChangingConfiguration().

This allows activities to know if they're being
torn down due to a configuration change.

Bug: 2557550
Change-Id: Ibd9bf5a06c92dbe3789049b84133cf4754381873
/frameworks/base/core/java/android/app/Activity.java
f121be737c59390d97e21a92be8e166001534c7d 06-May-2010 Dianne Hackborn <hackbod@google.com> Improvements to fragment API:

- Remove names associated with fragments (we'll use ids). They may
come back for other uses.
- Add method to replace a fragment, to help in doing back stacks.
- Add names to back stack states, to allow for jumping back to
known states.
- Add ability to set animations associated with fragments being
added or removed.

Change-Id: Ic2799f06947b1511fb1df5965ca32568b860b3c3
/frameworks/base/core/java/android/app/Activity.java
ba51c3d02d08709e933de6f6c76dee3fd2f4bfa1 06-May-2010 Dianne Hackborn <hackbod@google.com> New fragment stuff: back stack, and layout integration.

You can now have fragment transactions pushed on to a local back
stack, which will automatically be popped when the user pressed
back in the activity.

Fragments can also now be inserted into layouts.

Change-Id: Id1c9ae3fbc54f696cd8bb5ca5957bec4d3eabf18
/frameworks/base/core/java/android/app/Activity.java
2dedce6e84679ead961a485c7fe4b0f77c713b6a 15-Apr-2010 Dianne Hackborn <hackbod@google.com> Introducing Fragment.

Basic implementation of an API for organizing a single activity into separate,
discrete pieces. Currently supports adding and removing fragments, and
performing basic lifecycle callbacks on them.

Change-Id: I6ea8e6bdb04d93f8105c2e983fe9b6532422de34
/frameworks/base/core/java/android/app/Activity.java
4986044fd3bce877247e425374b47967775081a8 18-Mar-2010 Amith Yamasani <yamasani@google.com> Fix window leak and receiver leak. Bug: 2520143 and Bug: 2517390

In Activity.onDestroy close any open SearchDialog to avoid a window leak.

Register/unregister broadcast receiver in onStart/onStop of the dialog.
/frameworks/base/core/java/android/app/Activity.java
305de9dbda4e40d60ca99dda307ccd5e3c23e0a0 11-Mar-2010 Mike LeBeau <mlebeau@android.com> Fix a variable name reference in Activity docs.

Change-Id: Ib0fd1c6b75f73a4470d2cb790884490a3efa8716
/frameworks/base/core/java/android/app/Activity.java
82fe564267f276151063b2aa0d26075c3210d75f 24-Feb-2010 Carl Shapiro <cshapiro@google.com> Comment out the finalize() methods defined on the Activity,
ContextImpl, View and ViewRoot classes. This allows instances of
subclasses to be collected without the additional latency of
finalization.
/frameworks/base/core/java/android/app/Activity.java
2f6a01858bea6c669039b0b1e10aa65fc73c7256 22-Feb-2010 Makoto Onuki <omakoto@google.com> Fix bug 2183276: Synchronize all mManagedCursors accesses.
/frameworks/base/core/java/android/app/Activity.java
d47c6ed4a9f2b5bd31f6c806b74701428efe458b 28-Jan-2010 Dianne Hackborn <hackbod@google.com> Bite the bullet and add support for multiple device admins.
/frameworks/base/core/java/android/app/Activity.java
8ea138cbf12b140d43fd81f4f12fe1a9234f1f25 27-Jan-2010 Dianne Hackborn <hackbod@google.com> More work on device admins:

- You can now show a dynamic message to the user when asking to
have your DeviceAdmin added.
- A DeviceAdmin can now provide a warning message that is displayed
before a user disables it.
- Better ordering (and text) of the policy warnings.
- New API to set the maximum failed password attempts before the device
wipes itself.
- We now store the number of failed unlock attempts in persistent
storage.
- New managed dialog APIs that will be used by the settings app.

Also a little bit of cleanup as I was working on this - removed the
long unused MailboxNotAvailableException, fixed a java doc in Messenger.
/frameworks/base/core/java/android/app/Activity.java
e9ce3f01d42769f03f10e70c3244500e92d7eee1 25-Jan-2010 Amith Yamasani <yamasani@google.com> Move Search dialog out of system process into current activity.

SearchManager now manages the SearchDialog, in-process.
Nuked SearchDialogWrapper
SearchManagerService now just holds the Searchables information.
Hitting Search when in the local Search dialog will launch the QSB.
/frameworks/base/core/java/android/app/Activity.java
980a938c1c9a6a5791a8240e5a1e6638ab28dc77 09-Jan-2010 Romain Guy <romainguy@android.com> Deprecate fill_parent and introduce match_parent.
Bug: #2361749.
/frameworks/base/core/java/android/app/Activity.java
b782a2f4f0a3072f2677f6f10fb255c77468ae66 01-Oct-2009 Bjorn Bringert <bringert@android.com> Remove globalSearch argument from triggerSearch()

API council says:

"In reviewing the new triggerSearch API, we are concerned that
applications could use the option to perform a global search to spam
the user with frequent searches. We would like the global search
option to be removed for now (not just hidden, but removed from the
internal IPC API so that nobody can find this and abuse it). The rest
of the API should be fine as long as it is restricted to local
searches."

Fixes http://b/editIssue?id=2158785

Change-Id: Ie69a9c0ab6373cc4427aab50606885bdede40585
/frameworks/base/core/java/android/app/Activity.java
8b571a817cc953ce96750f440645f104c7f55157 26-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix Activity.overridePendingTransition().

Change-Id: I4ce995bd58efbbedbe4d0d1e9e0d0f4a8e261843
/frameworks/base/core/java/android/app/Activity.java
81d84c0cb244290a58bf8e78a3d638750cf7dd3f 25-Sep-2009 Bjorn Bringert <bringert@android.com> am 6266e40a: Better JavaDoc for Activity.onSearchRequested().

Merge commit '6266e40a754d82afa717ef068898c8418a0bb5c3' into eclair

* commit '6266e40a754d82afa717ef068898c8418a0bb5c3':
Better JavaDoc for Activity.onSearchRequested().
6266e40a754d82afa717ef068898c8418a0bb5c3 25-Sep-2009 Bjorn Bringert <bringert@android.com> Better JavaDoc for Activity.onSearchRequested().

Fixes http://b/issue?id=1248721
/frameworks/base/core/java/android/app/Activity.java
3b3e145d3c41fd68974e08f799b1fd1f8f060cf0 25-Sep-2009 Dianne Hackborn <hackbod@google.com> A variety of work on animations.

- The lock screen now fades in and out.
- Fixed a bug where we would accidentally freeze the screen when switching
to an activity with a different orientation than the current (but
the screen itself is in the current orientation). This would mess up
the animations on the car dock.
- New API to force a particular animation for an activity transition
(untested).
- New wallpaper animations.
- Resources now uses the next API version when in a development build,
to help applications being developed against such builds.

Change-Id: I2d9998f8400967ff09a04d693dc4ce55f0dbef5b
/frameworks/base/core/java/android/app/Activity.java
bfe319e06aa56c081d0d94d64a8181291d7f7388 21-Sep-2009 Dianne Hackborn <hackbod@google.com> Turn animations on by default.

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
/frameworks/base/core/java/android/app/Activity.java
ae22c05b91d1e7a458066792eb5cfc0974c1be9e 18-Sep-2009 Dianne Hackborn <hackbod@google.com> Try to fix docs build.

Change-Id: I331e128fa95c3bc0b8bc4ab2537cc2ea92e310e7
/frameworks/base/core/java/android/app/Activity.java
fa82f22f1d8c4c828bdf9b670006be4f4fec772e 18-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2093608: Calendar widget takes a few seconds to launch

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
/frameworks/base/core/java/android/app/Activity.java
8d37426c754e9822feaa8c6cc0b7c13e8523e217 15-Sep-2009 Dianne Hackborn <hackbod@google.com> Various fixed for back key handling.

My last change was far from perfect. Hopefully this gets us
a little closer.

Change-Id: I413e55b6af42400b565de3040859d25d668bc9d2
/frameworks/base/core/java/android/app/Activity.java
83fe3f559249451706957b1a5f660b2b8272f114 13-Sep-2009 Dianne Hackborn <hackbod@google.com> Last big work on #1991910: Make swipes work with capacitive keys

This takes care of allowing us to cancel the back button. The
back button is a bear because it is strewn all over the place --
everywhere you can close something, there is some code looking
for the back button that now needs to deal with being canceled.

The main things changed are activity (of course), dialog,
input method, search dialog. There are some other misc places
in the framework (and some I missed here that I will get in a
second pass).

To facility all of this, the key dispatching APIs now provide
a lot more support for dealing with looking for cancelled keys,
and incidentally also provide an actual API for catching long
key presses. This also helped clean up the code in PhoneWindow
where it deals with all of the combinations of key pressed and
releases. (And also allows people to override
Activity.onKeyLongPress() to provide a different long press
action for a standard key like search.)

And while I was doing this, I reworked how we detect long
presses by having this be part of the key event delivered by
the window manager. This should greatly reduce (hopefully
outright eliminate) the problems with long presses being
mis-detected when an application is being slow.

Change-Id: Ia19066b8d588d573df3eee6d96e1c90fdc19f57d
/frameworks/base/core/java/android/app/Activity.java
bcbcaa7edd32ba67c6290d79f7e7821c4b5b39ac 10-Sep-2009 Dianne Hackborn <hackbod@google.com> Wallpapers, animations, pending intent.

Some more tweaks and fixes to wallpapers. Make sure wallpapers are
told they are not visible when the screen is off. Add some new animations
for transitions across tasks, and fiddle with many of the existing
animations. Clean up the relationship between translucent activities
and animations. Add new API to start a PendingIntent from an
activity.

Change-Id: Ie0bf45fe44081bb6982c75361257a55d9cd9d863
/frameworks/base/core/java/android/app/Activity.java
3be63c09309b21c01b535271625d4c39045690e5 21-Aug-2009 Dianne Hackborn <hackbod@google.com> Infrastructure for supporting wallpaper previews.

Various things that will allow us to show previews of wallpapers.
Also some fixes to animations across wallpapers.
/frameworks/base/core/java/android/app/Activity.java
93df578638418ef2f05efdf58331d847f41b17b5 18-Aug-2009 Mike LeBeau <mlebeau@android.com> am cfa419b7: Correct comments for startSearch in Activity and SearchManager to explain Donut behavior correctly.

Merge commit 'cfa419b754332e12f8cd45244c2f3bee9d6a74bb' into eclair

* commit 'cfa419b754332e12f8cd45244c2f3bee9d6a74bb':
Correct comments for startSearch in Activity and SearchManager to explain
d2d6014f715f12f6263f61ba3eeb6f8cba6d0fa6 17-Aug-2009 krosaen <krosaen@android.com> NEW API for SearchManager and Activity to 'triggerSearch'.

This is pretty much the same thing as startSearch, except it also launches the
query. We enforce that this can only be done for the package of the app that is
associated with the search mananger (e.g you can't trigger a contacts search
from anywhere).
/frameworks/base/core/java/android/app/Activity.java
cfa419b754332e12f8cd45244c2f3bee9d6a74bb 17-Aug-2009 Mike LeBeau <mlebeau@android.com> Correct comments for startSearch in Activity and SearchManager to explain
Donut behavior correctly.
/frameworks/base/core/java/android/app/Activity.java
37296dc4edae8d1383179e956dff2ecf806ac166 01-Aug-2009 Joe Onorato <joeo@android.com> Update docs.
/frameworks/base/core/java/android/app/Activity.java
b06ea706530e6d19eb2a1a9a7ae6c5dd77d80af0 13-Jul-2009 Dianne Hackborn <hackbod@google.com> Add reporting of activity movement for search manager.

This adds a new API with the activity manager to find out about movement between
activities. For my sanity, the old IActivityWatcher is now renamed to
IActivityController, and the new activity movement interface is named
IActivityWatcher.

This changes the search manager itself to use the new API to manage its state.
Note that there are still problems when going back to the search dialog after
it was hidden -- the suggestions window no longer appears until you explicitly
dismiss and re-show it.
/frameworks/base/core/java/android/app/Activity.java
6de4aed1c67263269f83f579ec5b06263d173ef3 08-Jul-2009 Romain Guy <romainguy@android.com> Fixes #1933428. Call onPrepareDialog() on managed dialogs after their onCreate() is finished.
/frameworks/base/core/java/android/app/Activity.java
444c727e0eecf83e9d0b9c4e7af5cbf5fc4135f8 06-Jul-2009 Bjorn Bringert <bringert@android.com> Run search UI on its own thread.

Details:

- Add a new SearchDialogWrapper class that makes sure
all access to the SearchDialog is run one a single thread
other than the main ServerThread.
- Don't save/restore seach dialog state in Activity.
This resulted in lots of calls to the SearchManager
throughout the life cycle of all activities, for
the questionable benefit of restoring the search dialog
in a few cases.
- Remove search UI state save/restore, and the isVisible()
method from SearchManagerService. They are no longer used,
and were tricky to implement since they return values from
the search UI thread to the service.
- Handle configuration changes in searchDialogWrapper instead
of calling through from Activity.

Fixes http://b/issue?id=1938101

TODO:
- Activity.performPause() calls stopSearch(). This call may not happen
until the new activity has been started. If the new activity starts a
search immediately, this search could be cancelled by the old activity's
call top stopSearch().
/frameworks/base/core/java/android/app/Activity.java
e35c23514592efe07d54fdbed7e7ec0b717e8bbe 19-Jun-2009 Romain Guy <romainguy@android.com> Fixes #1928566. Prevents runtime restart upon configuration change.

Managed dialogs could cause dispatchOnCreate() to be called twice, which
would cause an exception.
/frameworks/base/core/java/android/app/Activity.java
764d5331d15c19162c938e617777b4bf15a6314d 18-Jun-2009 Romain Guy <romainguy@android.com> Fixes #1924909. When restoring managed dialogs, do exactly the same thing as when showing a dialog.
/frameworks/base/core/java/android/app/Activity.java
1ccac75e1f1b97eccb916a8de04fc1012b30f6e5 12-Jun-2009 Suchi Amalapurapu <asuchitra@google.com> Remove circular dependency in PackageManager. api freeStorage uses PendingIntent from android.app
Create a new public IntentSender class that can be used by PackageManager instead.
This new class uses IIntentSender internally and can only be created by PendingIntent for now.
Provide a new getIntentSender api in PendingIntent to create an instance of this class.
Move IIntentSender and IIntentReceiver from android.app to android.content
Change imports of IIntentSender and IIntentReceiver to reflect the new package name
The PackageManager api has been named as freeStorageWithIntent and will be renamed as freeStorage
once the older api(which has been deprecated) will be removed shortly.
/frameworks/base/core/java/android/app/Activity.java
8d17f3f24bbda9a9cd7ea08c5925508dc2c011be 05-Jun-2009 Bjorn Bringert <bringert@android.com> Run search dialog in the system process.

Fixes http://b/issue?id=1905863

This is needed to address two security issues with global search:
http://b/issue?id=1871088 (Apps can read content providers through GlobalSearch)
http://b/issue?id=1819627 (Apps can use GlobalSearch to launch arbirtrary intents)

This also fixes http://b/issue?id=1693153 (SearchManager.OnDismissListener
never gets called)

To fix the security issues, GlobalSearch also needs to require
a non-app permission to access its content provider and launch intents.
/frameworks/base/core/java/android/app/Activity.java
75986cf9bc57ef11ad70f36fb77fbbf5d63af6ec 15-May-2009 svetoslavganov <svetoslavganov@google.com> Accessibility feature - framework changes (replacing 698, 699, 700, 701 and merging with the latest Donut)
/frameworks/base/core/java/android/app/Activity.java
b70f3dff01e7e1e85f77cf0b0b2eaba8200eb82c 08-Apr-2009 Christopher Tate <ctate@google.com> Preserve an Activity's setIntent() state across relaunches

Previously any Intent designated by setIntent() would be lost when
the Activity was shut down and restarted due to orientation change.
Now the custom intent is preserved across the relaunch.

Bug: b/1743425
/frameworks/base/core/java/android/app/Activity.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/app/Activity.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/app/Activity.java
15ab3eae2ec3d73b3e8aa60b33ae41445bf83f4b 20-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132569
/frameworks/base/core/java/android/app/Activity.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/frameworks/base/core/java/android/app/Activity.java
f1e484acb594a726fb57ad0ae4cfe902c7f35858 22-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127436
/frameworks/base/core/java/android/app/Activity.java
b798689749c64baba81f02e10cf2157c747d6b46 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
/frameworks/base/core/java/android/app/Activity.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/frameworks/base/core/java/android/app/Activity.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/core/java/android/app/Activity.java