Simplify the logic, and instead only enable it for gms-core
Test: Manual test with a test app
Bug: 185177290
Bug: 221248960
Change-Id: If75cc3ef8e56469b384d9431f53bcacce638f23c
Update it to make it clear that it is valid for only
explicit intents.
Bug: 206518114
Test: treehugger
Change-Id: I94ee73bb8050f4d4d6171b7d1c7f8053b43310f1
- Add JavaDocs for all methods in SubItemLoggingInfo;
- Add packageName field to SubItemLoggingInfo;
- Add BaseTemplateCard.SubItemInfo to warp a subitem's related info;
- Override Object.toString for Smartspace Text.
Fixes: 220129097
Test: atest CtsSmartspaceServiceTestCases
Change-Id: I459c9a229d05d328833de1b9264b4cf64b2b5813
Revert "Disable per-process app class to investigate (disabling CTS)"
Revert submission 16804724-disable-per-proc-app
Reason for revert: The revert has reached weekly. Now I'll revert it to see what change it made.
Reverted Changes:
I87f16857b:Disable per-process app class to investigate
I87f16857b:Disable per-process app class to investigate (disa...
Change-Id: Ib84035c7819acc347e0bbba8bfada66300778c63
Test: treehugger
Bug: 185177290
Changed the resource type extra to be an int value to indicate the
resource type instead of having individual boolean extras for each
resource type.
Bug: 218875965
Test: N/A
Change-Id: Ic734c4d0e0a769dd981ef214e1be41f62d74705c
And remove all the code whose only effect is modifying this unused
variable.
Bug: 219944571
Test: compiles
Change-Id: Ie484c4dcd3691e427365382b447e6d5a86f95cf4
Merged-In: Ie484c4dcd3691e427365382b447e6d5a86f95cf4
(cherry picked from commit 8a168e8a40)
- Add the 3rd-line data in BaseTemplateData to support new Android T
use case;
- Remove the optional constructor from Text for API review comments in
b/218860086;
- Add SubItemLoggingInfo to support the sub-card logging on the base
card.
Fixes: 218860086
Test: atest CtsSmartspaceServiceTestCases
Change-Id: I39d7014f4f5b36719f54e191ed5af1fa45429a53
Right now signature check is unconditionally bypassed on debuggable
builds, which makes things a little bit confusing - instrumentation will
succeed on debuggable build, but fail on the user build.
Bug: 209061624
Test: adb shell am --always-check-signature com.android.tests.supplemental.process/androidx.test.runner.AndroidJUnitRunner
Change-Id: I66d6331156d4503e147141872cbe73a9330ea701
Terms
- Host activity, the activity that the content-pip is originated from.
There should be some UI affordance on Host activity user can tap to
enter content-pip
- Container activity, the activity that carries the content from Host
Activity and transits to PiP mode
Workflow in brief
- Container activity is defined in the same application as Host activity
- A new ActivityOptions#makeLaunchIntoPip API is added, Host activity
uses this API to construct ActivityOptions to launch the Container
activity directly into pip mode.
- ActivityStarter sets a reference on Container activity pointing to
Host activity upon creation and moves the activity to pinned task
- WMShell transits Container activity to pinned mode
- When user taps on `Expand` button in PiP menu, WMShell calls
WCT#startTask with the task id to bring the Host task to front
Content hand-off
- Since Host activity is the one starts Container activity, it can
replace its content with some placeholder right after startActivity
- This CL also makes the assumption that Host activity can establish a
communication channel with the Container activity, such as using the
ResultReceiver parcelable. Therefore it's out of scope to provide
extra callback to Host activity on lifecycle events of Container activity.
See also the design doc go/content-pip-v2 and the end-to-end demo in
ApiDemos `App > Activity > Picture in Picture`
Bug: 165793661
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/e9Mp5rvxYBrNOdGSUoSXHO
Test: manual, see Video
Test: atest WmTests:ActivityOptionsTest \
WmTests:ActivityRecordTests \
WmTests:ActivityStarterTests \
PinnedStackTests
Change-Id: I2bebfea8d1930b0b7e495d91cfd5ddc7c347da68
Adds option to set a custom remote action to the PiP params to be used
instead of the system provided close action.
Although PipParamsBuilder gets a new setter, we do *not* add any new
getters to PipParams since the convention for this class has been to
not have any getters at all. The only existing public APIs are from
Parcelable: describeContents, writeToParcel, and CREATOR.
Bug: 218487423
Test: atest PinnedStackTests#testCloseActionIsSet
Change-Id: I04f1cc6177744e43236876cebbfc80cced1637ff