Commit Graph

15636 Commits

Author SHA1 Message Date
Winson Chung
2d181c2f41 Merge "Ensure we only remove messages for the same app info" into qt-dev
am: a69375ec2e

Change-Id: I7b0de9f5b74c65fadac202835633a2f53e2b2a3b
2019-05-07 21:26:38 -07:00
Winson Chung
a69375ec2e Merge "Ensure we only remove messages for the same app info" into qt-dev 2019-05-08 03:52:59 +00:00
Winson Chung
6ee17428b6 Ensure we only remove messages for the same app info
Bug: 130151718
Bug: 132179354
Test: Switch between gesture nav modes, ensure that system and sysui are
      in the right state

Change-Id: I364d155292fc378af552b6ce9e6acca879224693
2019-05-07 13:32:23 -07:00
Mark Renouf
5efa4f6a8b Merge "Adds OnBackPressedOnTaskRoot" into qt-dev
am: 1eb6476824

Change-Id: Ida2fb1f127e9693788882fe90e094473ddbd3ffa
2019-05-07 09:24:47 -07:00
Mark Renouf
1eb6476824 Merge "Adds OnBackPressedOnTaskRoot" into qt-dev 2019-05-07 16:10:12 +00:00
Mark Renouf
446251dc52 Adds OnBackPressedOnTaskRoot
This allows Bubbles to be collapsed instead of finished
when there is only one activity in the stack.

Bug: 126852149
Test: launch activity, press back
Change-Id: Iad8db0549853e3f385d54fc6b6cea5e502d37139
2019-05-07 10:00:07 -04:00
Tim Murray
9f0fd8c1ce Revert "Add optional reasons why permissions were denied"
am: d06c6d2932

Change-Id: I5f0d60ebdea3170f0c0769c8909e91b56b2848d9
2019-05-07 02:36:00 -07:00
Tim Murray
d06c6d2932 Revert "Add optional reasons why permissions were denied"
This reverts commit 3623f3219e.

Reason for revert: 40% startup perf regression

Test: revert
Bug 132129453
Exempt-From-Owner-Approval: critical revert

Change-Id: I19dc33e6a71c9254b4096154f4089c059fe408dd
2019-05-07 07:10:30 +00:00
Makoto Onuki
6b58683047 Merge "Remove (old) STOPSHIP" into qt-dev
am: 772c69bdd3

Change-Id: I857068d07d1cc984e8e447789fee6dbf97f9b1de
2019-05-06 10:17:46 -07:00
TreeHugger Robot
772c69bdd3 Merge "Remove (old) STOPSHIP" into qt-dev 2019-05-06 16:56:28 +00:00
Leland Miller
5df2e3e7ec Merge changes from topic "permissions" into qt-dev
* changes:
  Add calling package parameter to IRcs methods
  Use injected instance of RcsControllerCall
  Create new RcsMessageQueryResultParcelable
  Create new RcsParticipantQueryResultParcelable
  Create new RcsThreadQueryResultParcelable
2019-05-06 16:35:06 +00:00
Philip P. Moltmann
104cf9c862 Merge "Add optional reasons why permissions were denied" into qt-dev
am: dd82c4513b

Change-Id: Iba294f338743c86d126eb4c4d92eb4c3d1c31cf0
2019-05-05 23:40:52 -07:00
TreeHugger Robot
dd82c4513b Merge "Add optional reasons why permissions were denied" into qt-dev 2019-05-06 06:21:23 +00:00
Philip P. Moltmann
3623f3219e Add optional reasons why permissions were denied
Currently only for the ContextImpl.enforcePermission code paths and only
when 'secure debug_package_permission_check' is set.

This feature is disabled on user-builds.

Test: Enabled permission checking for my app and
      - checked runtime permision denial
      - permission denial because app is instant
Bug: 111075456
Change-Id: Ib85777db69ee490608e9dac32a3b97971c0ba215
2019-05-05 21:05:13 -07:00
Julia Reynolds
6553e65446 Merge "Remove separate recent app tracking" into qt-dev
am: 165ac85b33

Change-Id: I1cf0fffca50537bc2a114d6efa6c894b976ac747
2019-05-04 07:40:20 -07:00
TreeHugger Robot
165ac85b33 Merge "Remove separate recent app tracking" into qt-dev 2019-05-04 14:30:29 +00:00
Julia Tuttle
82d9177340 Merge "Clarify FLAG_BUBBLE semantics." into qt-dev
am: e9e58774dc

Change-Id: I18f7836c855e51812424abb95862d7c6364cd674
2019-05-03 21:27:11 -07:00
Yohei Yukawa
6d28fb9943 Merge "Reenable CursorAnchorInfo API with ActivityView" into qt-dev
am: 23d047ab15

Change-Id: I18cccf69c6e904d96e79b842f784bbaa94fc1a3d
2019-05-03 15:18:25 -07:00
Julia Tuttle
28fb1a9430 Clarify FLAG_BUBBLE semantics.
Bug: 129995314
Test: no code changes
Change-Id: I10b01a4e060217a793a39468e9d2788654ef3446
2019-05-03 18:08:35 -04:00
Julia Reynolds
8bd8fdf506 Remove separate recent app tracking
Just use UsageStats

Test: atest
Bug: 131641848
Change-Id: I40c0f3dd3a2b67ed1f52062b3cbadec6bed0f189
2019-05-03 20:50:07 +00:00
Felipe Leme
763536a513 Merge "Inject session id on all AutofillIds kept in the service." into qt-dev
am: b5112587de

Change-Id: Ida7b144c346a5a6fb57b0ec7c14871aafc07c6a9
2019-05-03 10:56:52 -07:00
Adam He
4f8759216f Merge "ContentCaptureManager is notified when FLAG_SECURE is set dynamically on windows." into qt-dev
am: 0459aaab3b

Change-Id: I1d1eb7d988a0f815e4551f95a7044beeac203bf0
2019-05-03 10:29:19 -07:00
TreeHugger Robot
23d047ab15 Merge "Reenable CursorAnchorInfo API with ActivityView" into qt-dev 2019-05-03 17:07:35 +00:00
Winson Chung
108ab1c01c Merge "Preemptively clear buffer reference if snapshot is unused" into qt-dev
am: d2ff5562a4

Change-Id: I5a7f471d014ef515d6448d6fe3cb2bbad8799b85
2019-05-03 09:53:59 -07:00
Patrick Baumann
640481365f Merge "Avoid unnecessary badging" into qt-dev
am: 501152f974

Change-Id: I5e5ae90d4ac1cacf952f66d29333c3ca25b7f515
2019-05-03 05:20:11 -07:00
Leon Scroggins
e6034a30f0 Merge "Pass ColorSpace along with HardwareBuffers" into qt-dev
am: 6e5efabcfd

Change-Id: Icd1b07906441304aaa97fd3e7b8228e19eeef09b
2019-05-03 03:53:26 -07:00
TreeHugger Robot
b5112587de Merge "Inject session id on all AutofillIds kept in the service." into qt-dev 2019-05-03 02:17:37 +00:00
Tiger Huang
29d6767ee0 Merge "Refine getTransformationMatrix for windows in a re-parented display" into qt-dev
am: 090cb13600

Change-Id: I747cbbc4a06a2beedf0a9e620ef4fc7e46639cc4
2019-05-02 16:43:40 -07:00
Adam He
43c0699042 ContentCaptureManager is notified when FLAG_SECURE is set dynamically on
windows.

Fixes: 130377514
Test: # manual verification
Change-Id: I18126de8284a0c95ff61107031ffff941ca26be7
2019-05-02 16:22:50 -07:00
Winson Chung
d2ff5562a4 Merge "Preemptively clear buffer reference if snapshot is unused" into qt-dev 2019-05-02 23:01:42 +00:00
Michael Wachenschwanz
9ddd631f9a Merge "Elevate standby bucket on first foreground service start" into qt-dev
am: 8189440785

Change-Id: I9452b66c6cf53dbae78f7a0ed2a41aff1f9a2a0e
2019-05-02 15:54:44 -07:00
Ian Pedowitz
81320d1253 Merge "Revert "RESTRICT AUTOMERGE Remove deprecated System APIs added in Q."" into qt-dev
am: 8b3b7771c1

Change-Id: Id0a6dbf04d575a644017c69c15a85189d6e13ff2
2019-05-02 15:11:28 -07:00
Ian Pedowitz
a266df5220 Merge "RESTRICT AUTOMERGE Remove deprecated System APIs added in Q." into qt-dev
am: 3f38719b74

Change-Id: Iccd685618d79b3357944fc5278e072448a58376d
2019-05-02 14:28:52 -07:00
Winson Chung
67b090243d Preemptively clear buffer reference if snapshot is unused
- Normally this will be picked up in the next GC, but there is no reason
  to wait

Bug: 129295298
Test: Manual
Change-Id: I945336e86d0980f926586cfba6327c8c6c142ce8
2019-05-02 14:00:51 -07:00
TreeHugger Robot
501152f974 Merge "Avoid unnecessary badging" into qt-dev 2019-05-02 16:59:19 +00:00
Yohei Yukawa
b4f328a2f3 Reenable CursorAnchorInfo API with ActivityView
With my previous CL [1], CursorAnchorInfo API was globally disabled
for cross-display scenario including ActivityView scenario.

This CL slightly relaxes the above condition so that IMEs can rely on
CursorAnchorInfo APIs again to interact with apps running inside
ActivityView.

The basic idea here is keeping reporting relevant information from
ActivityView to InputMethodManagerService (IMMS) so that IMMS can take
the display hierarchy because of ActivityView into account.  As long
as IMMS has the up-to-date hierarchical information, IMMS can tell
InputMethodManager (IMM) running in the IME client process about the
missing coordinate transformation information from the virtual display
space to the outer display space where the IME is actually shown.

Note that there was a similar fix for AccessibilityService that keeps
reporting ActivityView location to WindowManagerService (WMS) [2].
Ideally we should be able to share the logic, but to do so we need to
introduce a generalized callback mechanism into WMS so that IMMS can
be notified when a cetain coordinate transform matrix has changed.
For Q, this CL implements IMMS's own mechanism to keep track of
ActivityView hierarchy instead of introducing a direct dependency from
WMS to IMMS.

For R+, most likely we may want to reconsider how ActivityView should
be implemented.

There should be no behavior change in this CL if ActivityView is not
involved.

 [1]: Ie2f7a5117cff3a13ad5c5806fd4b3abef7569549
      3d2cc0fffd
 [2]: I38da5b84a11890bf0f4a57eb9d5b7e71bdcc16a9
      d8ec938609

Fix: 115693908
Test: atest CtsWindowManagerDeviceTestCases:ActivityViewTest#testInputMethod
Change-Id: Id0411a80456182111bb5b681c6d1230b58e7ec2e
2019-05-02 08:41:27 -07:00
Leon Scroggins
6e5efabcfd Merge "Pass ColorSpace along with HardwareBuffers" into qt-dev 2019-05-02 15:15:02 +00:00
Tiger Huang
d8ec938609 Refine getTransformationMatrix for windows in a re-parented display
Currently, the translation of the transformation matrix computed by
WindowState.getTransformationMatrix is related to its own display.
However, if the display has been re-parented, the translation might
be misplaced to the visual result. This CL makes it return the global
transformation matrix.

Bug: 129098348
Test: atest WindowStateTests
Change-Id: I38da5b84a11890bf0f4a57eb9d5b7e71bdcc16a9
2019-05-02 12:53:55 +08:00
TreeHugger Robot
8189440785 Merge "Elevate standby bucket on first foreground service start" into qt-dev 2019-05-02 01:55:12 +00:00
Felipe Leme
785777bb05 Inject session id on all AutofillIds kept in the service.
Android Q introduce the FLAG_DELAY_SAVE, which allows the autofill service to delay the SAVE UI by
keeping the session open. But this approach introduces a new problem, as fields from different
activities could have the same AutofillId.

Test: atest MultiScreenLoginTest#testSaveBothFieldsCustomDescription_sameIds
Test: atest AutofillIdTest
Test: atest CtsAutoFillServiceTestCases # sanity check

Fixes: 113593220

Change-Id: Ibd187f5c58c150f820972fcab6d88217294ffe2d
2019-05-01 18:10:00 -07:00
Ian Pedowitz
8b3b7771c1 Merge "Revert "RESTRICT AUTOMERGE Remove deprecated System APIs added in Q."" into qt-dev 2019-05-02 00:59:09 +00:00
Ian Pedowitz
79a19effee Revert "RESTRICT AUTOMERGE Remove deprecated System APIs added in Q."
This reverts commit 02014297fd.

Reason for revert: QT SDK Finalization. Will be merged again on/after May 13th

Bug: 129975435
Change-Id: Ia054b193a982dee669630555974d2d7831fe2b50
2019-05-02 00:54:39 +00:00
Ian Pedowitz
3f38719b74 Merge "RESTRICT AUTOMERGE Remove deprecated System APIs added in Q." into qt-dev 2019-05-02 00:53:29 +00:00
Svetoslav Ganov
52b1903aa2 Merge "Address API conucil feedback" into qt-dev
am: ec0bd2981f

Change-Id: I9f4c5a328699358e57f20372e7aa39ca26910195
2019-05-01 14:28:18 -07:00
Leland Miller
4137a85cd9 Use injected instance of RcsControllerCall
Instead of static methods, create an instance of RcsControllerCall that
holds a reference to the Context and inject it where it is used.

This will be used in a follow up commit that will require the calling
package name be passed when calling IRcs methods.

This change will allow passing a calling package name to an
RcsServiceCall or an RcsServiceCallWithNoReturn, so uses of the call
method might look something like:

```
mRcsControllerCall.call((iRcs, callingPackage) ->
        iRcs.getFileTransferContentUri(mId, callingPackage));
```

Alternatives to storing the context here would have been:

1. To store the context everywhere the RcsControllerCall is injected and
   get the calling package name at each RcsControllerCall call

2. To store the calling package name everywhere that the
   RcsControllerCall instance is injected

Compared to solution 1, the implemented solution avoids repeating the
logic of retrieving the calling package.

Compared to solution 2, the implemented solution does not introduce any
complexity. In addition, the individual classes do not care about the
calling package name outside of the need to pass it to an IRcs method.
In the future, the implemented solution may also provide a useful point
to provide logic involving calls and the context (or other injected
dependencies). Though this future concern is not alone enough to justify
the solution, since the solution adds no additional complexity against
other solutions, it seems like a nice benefit.

Note, to avoid polluting this commit, a follow-up issue (b/128029441)
has been created to adjust the name of RcsControllerCall to reflect that
an instance of RcsControllerCall does not represent a single call to
RcsController.

Bug: 123699565
Test: Existing tests pass
Change-Id: Ib0f55f14397e5eb1e5a55864094c0be0c4e37c06
Merged-In: Ib0f55f14397e5eb1e5a55864094c0be0c4e37c06
2019-05-01 13:37:03 -07:00
Makoto Onuki
350ed67bf4 Remove (old) STOPSHIP
Change-Id: I1de9adbab1f75973fe4ed330c742153ec846063f
Fix: 37809561
Test: build
2019-04-30 14:34:08 -07:00
Patrick Baumann
e34a75dfd0 Avoid unnecessary badging
This change attempts to fetch the unbadged icon from ApplicationInfo for
a given PackageInfo before falling back to the default (badged) icon.

Test: manual; verify that TestDPC is only badged once when viewing device admins
Fixes: 112254944
Change-Id: I55026af543ff71ac0d947159bc6aeb3b33f31271
2019-04-30 12:21:10 -07:00
Svetoslav Ganov
c260897739 Merge "Address API council feedback" into qt-dev
am: 1a5d1728af

Change-Id: Ife0cafa6a2e6eff902ce4b1439c9d002eb4ed643
2019-04-30 11:55:25 -07:00
Mady Mellor
67350795a5 Merge "Remove bubble API added & deprecated in Q" into qt-dev
am: 02d6277b95

Change-Id: Ie77a56ba27168d33aaad4af3a8749fa10fa8ed0a
2019-04-30 11:20:30 -07:00
Svet Ganov
07e5fb253c Address API conucil feedback
Test: compiles

bug:131683068

Change-Id: I02afd0cc392e4fadd60de0d9802748452262543b
2019-04-30 11:16:21 -07:00