Commit Graph

476268 Commits

Author SHA1 Message Date
Jay Aliomer
856ec84b37 Merge "Added "waiting for screen off" flag to dump" into rvc-dev 2020-05-03 23:09:07 +00:00
Svet Ganov
38cd221d81 Updating platform SDK version for R
* Finalize resources
  * Update appt/aapt2 constants
  * Update R and SDK constants
  * Fix a crashloop bug

Test: build + boot

bug:150281259

Change-Id: Ie56e12336cd1fcf347ac7164f6988b0c2da77c7d
Merged-In: Ie56e12336cd1fcf347ac7164f6988b0c2da77c7d
2020-05-03 09:58:54 -07:00
Jeff Chang
495fd8e549 Merge "Protect against assumptions of a top focused stack." into rvc-dev 2020-05-03 15:52:07 +00:00
Suren Baghdasaryan
aeae048088 Replace direct pid writes with setting task profiles
For easy transition from SchedTune to UtilClamp, direct access to these
cgroups should be abstracted by using task profiles. Replace writepid
commands with new task_profiles command.

Bug: 155419956
Test: change .rc file and confirm task profile is applied
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I05f5a082c7e6f43ab94330aede29967e91d1aef9
Merged-In: I05f5a082c7e6f43ab94330aede29967e91d1aef9
2020-05-03 08:12:10 +00:00
Rahul Sabnis
248896bf98 Merge "BluetoothProfileConnecter now calls the ServiceListener's onServiceDisconnected method after unbinding the service" into rvc-dev 2020-05-03 05:20:48 +00:00
TreeHugger Robot
ed2789354a Merge "Remove process parameter from SystemApi" into rvc-dev 2020-05-03 01:33:30 +00:00
TreeHugger Robot
bc381f5493 Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-05-02 19:36:14 +00:00
TreeHugger Robot
cbbc9c5c21 Merge changes I82cecd20,I2b4e41a4 into rvc-dev
* changes:
  updatable-media: Set min_sdk_version
  Set min_sdk_version to be part of mainline modules
2020-05-02 15:36:33 +00:00
Jiyong Park
92514d5b71 Remove process parameter from SystemApi
SystemApi no longer has the process parameter. Fixing the last remaining
place where the parameter was still used.

Bug: 155531519
Test: m
Change-Id: I4b1395b3a6e17ff8ce634059f8787c1b6392b1b9
2020-05-02 22:05:50 +09:00
Zimuzo Ezeozue
cdb1ce47f9 Merge "Update ExternalStorageProvider volumes with StorageEventListener" into rvc-dev 2020-05-02 09:52:43 +00:00
Bill Yi
634e20e088 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: Ib9a18fed3359bc6229192d178ba6240584fe602b
2020-05-02 00:11:33 -07:00
TreeHugger Robot
a69cfa78e3 Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-05-02 05:19:18 +00:00
Bill Yi
2cd497df33 Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-05-02 03:52:08 +00:00
Winson Chung
a29ccb6fa3 Merge "Account for getDimension() also doing a pixel conversion" into rvc-dev 2020-05-02 02:38:51 +00:00
Steven Thomas
5724666853 Merge "Split refresh rate range into two ranges" into rvc-dev 2020-05-02 02:12:39 +00:00
Colin Cross
e230dd0d2e Merge "Set min_sdk_version for com.android.sdkext" into rvc-dev 2020-05-02 01:41:18 +00:00
Colin Cross
765563bea2 Merge changes from topic "sdk_version_variant" into rvc-dev
* changes:
  Make derive_sdk_prefer32 uninstallable
  Fix static dependency on libprotobuf-cpp-lite-ndk
2020-05-02 01:41:18 +00:00
Philip P. Moltmann
371634f4d0 Merge "Cache PM data in DPGP" into rvc-dev 2020-05-02 01:40:15 +00:00
Nikita Ioffe
dd6689ccf1 Merge "Collect certificates when parsing APEX packages" into rvc-dev 2020-05-02 01:08:44 +00:00
Danning Chen
d814608231 Merge "Uncache the shortcuts when Android system shuts down if the notification settings are not changed" into rvc-dev 2020-05-02 00:57:43 +00:00
Andrew Sapperstein
975ca816ec Merge changes from topic "cherrypick-ctor-refs-03y8i58ine" into rvc-dev
* changes:
  Update inner class constructor refs to use proper syntax.
  Fix broken @see tags in public documentation.
2020-05-02 00:21:33 +00:00
Garfield Tan
abe5a4f3f5 Merge changes I702d89c9,Id7bfc3e6 into rvc-dev
* changes:
  Remove TaskRecordFactory.
  Notify when task changes requested orientation.
2020-05-02 00:10:29 +00:00
Dheeraj Shetty
21b6e912c2 Merge "Revert^2 "hwui: remove FatVector"" into rvc-dev 2020-05-01 23:27:43 +00:00
Evan Severson
7714a18236 Merge "Check permission for soundtrigger detection service" into rvc-dev 2020-05-01 23:26:45 +00:00
Jay Aliomer
a12b35e67d Added "waiting for screen off" flag to dump
Bug: 153923873
Test: test dump manually
Change-Id: I290ae190a00cff9ab1243ff7c45846f4421e8d2c
2020-05-01 23:22:16 +00:00
Adam He
954c18bd5e Merge "Don't start new inline autofill flow if one started already." into rvc-dev 2020-05-01 23:07:38 +00:00
Darryl Johnson
ceb2befc1b Merge "Don't override activity display adjustments with app config" into rvc-dev 2020-05-01 23:05:10 +00:00
Adam Bookatz
5b94d36275 Merge "TalkBack user switch" into rvc-dev 2020-05-01 22:50:33 +00:00
Varun Shah
abe1037650 Merge "Update how UsageStats timestamps are written to disk." into rvc-dev 2020-05-01 22:50:28 +00:00
Rahul Sabnis
ee31c78cb8 BluetoothProfileConnecter now calls the ServiceListener's
onServiceDisconnected method after unbinding the service

Bug: 155120232
Test: atest BluetoothHostTest#testMapClose
Change-Id: I324b4ea6654261eb67d5ec184f6b3456ba3d1aa4
2020-05-01 15:39:47 -07:00
Nikita Ioffe
e568e0f5df Collect certificates when parsing APEX packages
This is a smallest possible change to fix the breakage.

This change will introduce a boot time regression, but unfortunately
there is no easy way around it. Will try to address the regression in a
follow-up CL.

Test: atest PackageManagerTest
Test: atest android.security.cts.PackageSignatureTest#testPackageSignatures
Bug: 155396683
Change-Id: If92b8ce6236a0ef38d228d0705ae4f5345066e64
2020-05-01 23:33:33 +01:00
Songchun Fan
ec60726cb4 Merge changes from topics "v2_metrics_add_size", "v2_metrics_optional_package_name" into rvc-dev
* changes:
  [pm/metrics] add apk size in the log
  [pm/metrics] do not log package name for adb installations
2020-05-01 22:27:59 +00:00
Winson Chung
4ef84183e7 Account for getDimension() also doing a pixel conversion
Change-Id: Ie35eb98d6063a0747851e06f6da17b86ede19b41
Bug: 148104018
Test: Ensure edge swipe thresholds match resources
2020-05-01 15:24:49 -07:00
Feng Cao
4e20f2b97c Merge "Support receiving touch event in the inline suggestion view" into rvc-dev 2020-05-01 22:07:39 +00:00
Bill Yi
d4258bb9be Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I61b9e96e20f0c892b216eff4d48d7ef3a1a4ce50
2020-05-01 14:58:29 -07:00
Robert Snoeberger
3779310359 Merge "Update progress without binder calls" into rvc-dev 2020-05-01 21:38:32 +00:00
Garfield Tan
5044a154f8 Remove TaskRecordFactory.
Bug: 150409355
Test: Builds and boots.
Change-Id: I702d89c973001482ffcb3d26500c8ef477392c1e
2020-05-01 14:25:01 -07:00
Patrick Baumann
9f9ffca0c2 Merge "Skip post install if package was deleted" into rvc-dev 2020-05-01 21:07:43 +00:00
Josh Tsuji
a48a152c84 Merge "Only notify the floating coordinator of new bounds if we're in PIP." into rvc-dev 2020-05-01 20:59:53 +00:00
Winson Chiu
2728af853a Merge "Add skip functionality to package parsing" into rvc-dev 2020-05-01 20:20:49 +00:00
Matt Pietal
7405357b53 Merge "Controls UI - Global actions enter/exit animations" into rvc-dev 2020-05-01 20:19:21 +00:00
Matt Pietal
e389091b2d Merge "Controls a11y - Various fixes" into rvc-dev 2020-05-01 20:16:21 +00:00
Julia Reynolds
479962ed01 Merge "Make ManagedServices intents immutable" into rvc-dev 2020-05-01 20:01:40 +00:00
Garfield Tan
afa0de8a91 Notify when task changes requested orientation.
This allows listener know task's orientation request change before
handling display rotation through IDisplayWindowRotationController if
they can register a local TaskStackListener.

Bug: 150409355
Test: atest WmTests:TaskStackChangedListenerTest#testNotifyTaskRequestedOrientationChanged
Change-Id: Id7bfc3e63329ce26d454b7e9c143e084e04dd365
2020-05-01 12:52:46 -07:00
Varun Shah
b924b1fe09 Merge "Ensure SyncManager PendingIntent is immutable." into rvc-dev 2020-05-01 19:51:38 +00:00
Philip P. Moltmann
be11ab634c Cache PM data in DPGP
DefaultPermissionGrantPolicy is run on user startup but also in other
cases. On user creation it loads a lot of data from the PackageManager
and applies a lot of permission state.

This change adds an abstraction layer to the
DefaultPermissionGrantPolicy that caches and delays the PackageManager
calls on user creation. As a side-effect it also duplicates the state by
UID as all runtime permission state is by UID.

If this is not for user creation NO_PM_CACHE is used which just forwards
the calls directly to PackageManager.

This carries around the PackageManagerWrapper to all methods which
causes a lot of trivial churn. Other options considered:
- Make it a field in DefaultPermissionGrantPolicy but this would require
  outside code to create multiple DefaultPermissionGrantPolicy for
  different use cases
- Make it a Thread-Local. This is brittle and causes overhead

Also: All app-op setting was removed as this is automatically handled by
PermissonPolicyService

Test: Created user: Before 800 to 1200 ms after ~450 ms spent in
      DefaultPermissionGrantPolicy on sargo-userdebug
Fixes: 150405484
Change-Id: If77214a193a39fec2f311a3aea324ef07c2dfb42
Merged-In: If77214a193a39fec2f311a3aea324ef07c2dfb42
2020-05-01 19:46:03 +00:00
Adam He
ce5c8023d6 Don't start new inline autofill flow if one started already.
Also fixes missing lock in regular autofill inline callback in
getRendererInfo().

Fixes: 154150263
Test: atest CtsAutofillServiceTestCases
Change-Id: I475e4e8f23f41b51702a4d3dd819777938694447
2020-05-01 12:37:48 -07:00
Feng Cao
c23bfc7819 Support receiving touch event in the inline suggestion view
* Before this change, the suggestionRoot would intercept all touch
  events so that it can optionally forward them to the IME process
  to support scrolling, no touch event will be sent to the child
  view through the regular event dispatching process.
* With this change, we move the touch event transferring (to IME)
  logic from SuggestionRoot's onTouchEvent to dispatchTouchEvent.
  Now the touch events before a scroll is detected will be sent to
  the child chip view, and only the touch events after a scroll is
  detected will be sent to the IME.
* This patch also move the OnClickListener and OnLongClickListener
  from the root view to the chip view, since the touch events now
  either goes to the chip view or to the IME process.
* Note that in order to achieve this, given that we can't change
  the API, and there is existing OnLongClickListener registered
  to the chip view, we have to add a @hide API to the View to
  get the existing OnLongClickListener and attach a new one to the
  chip view, such that we can do the additional work of sending
  the long click event to IME, when the view is long clicked.
* This patch should also fix the a11y talkback mode bug where
  double-tapping on the view doesn't autofill the value.
  Double-tap and hold also works that it triggers the attribution
  dialog.

Test: atest CtsAutoFillServiceTestCases (sanity test)
Bug: 155245913
Bug: 154149807

Change-Id: I6f7be1ea5c0955969abb4ccae0cb421423095c4d
2020-05-01 12:36:51 -07:00
Patrick Baumann
24070a6c95 Merge "Adds new activity flags to the @Flags annotation." into rvc-dev 2020-05-01 19:32:49 +00:00
Adam Bookatz
96654be734 TalkBack user switch
If TalkBack (accessibility speach) is enabled, then
when a user switch is performed (by clicking on the
user switch buttons), the device will announce that
it is switching users.

Test: manual (enable TalkBack, create a Guest)
Bug: 151669162
Change-Id: Ifa4a7b13f9a423d1dfa55873879fce71ca3a1673
2020-05-01 19:32:03 +00:00