Commit Graph

89781 Commits

Author SHA1 Message Date
John Reck
f8c0d70f3e Revert "Add view inflation device config property"
This reverts commit 86076a7cbe.

Reason for revert: Requires apps to have READ_DEVICE_CONFIG permission which they cannot possibly get. Also breaks instant apps (which don't have & can't get that permission)

Bug: 123524494
Test: CtsAccelerationTestCases[instant] passes.
Change-Id: I789a2c9007780331c510802a9f807cc24174be2d
2019-02-07 18:31:50 +00:00
Mathieu Chartier
86076a7cbe Add view inflation device config property
Added runtime namespace and corresponding device config property. If
the property is enabled, it overrides the system property.

Bug: 123524494
Bug: 111895153

Test: manual
Change-Id: I97f094e3a8471b72255b27fd0f10160040d49175
2019-02-04 08:55:43 -08:00
Jorim Jaggi
0c573ea5c6 Merge "Apply visibility at the beginning of the animation" 2019-02-04 11:54:45 +00:00
Dario Freni
1108886bd2 Merge "Add STAGED_SESSION_ prefix to error codes." 2019-02-04 10:34:09 +00:00
Gavin Corkery
6db967fe33 Merge "Renaming plsCertsNoVerifyOnlyCerts to unsafeGetCertsWithoutVerification." 2019-02-04 10:08:00 +00:00
Olivier Gaillard
fcfdaced63 Merge "Fix a bug with worksource propagation." 2019-02-04 09:54:37 +00:00
junyulai
e413528700 [KA02] internal cleanup and refactor for SocketKeepalive
In previous change, the new SocketKeepalive API was exported.
But internally, old PacketKeepalive names and structures are
still used.

This change rename them properly for code consistency and also
refactor KeepalivePacketData to support different types of
KeepalivePacketData.

(clean cherry-pick from aosp/860394)

Bug: 114151147
Test: 1. atest FrameworksNetTests
      2. atest FrameworksWifiTests
      3. atest FrameworksTelephonyTests

Change-Id: Ia9917d12987e91e87e34ffb3f126e7bc7c9c187e
2019-02-04 04:06:22 +00:00
Yohei Yukawa
ca9376cc4b Make Editor.SuggestionsPopupWindow private again
Editor.SuggestionsPopupWindow was originally introduced as a private
class [1], then we made it public [2] so that a test class can access
it, but that test was later updated [3] and now doesn't have any
direct dependency on Editor.SuggestionsPopupWindow.

In short, we can make Editor.SuggestionsPopupWindow a private class
again without losing anything.  This actually addresses the following
warning from doclava.

   Public class android.widget.Editor.SuggestionsPopupWindow
   extends private class android.widget.Editor.PinnedPopupWindow

There should be no behavior change.

 [1]: If863107681ce82a1639f21315878f830c2991fb7
      6934044fd7
 [2]: Idf166cbecb3e33be213e4104cf1afd827906f2ad
      a60160b30b
 [3]: I12e522436a83fa264cd22176d054877eec411708
      31eb74fb2b

Fix: 117519592
Test: No doclava warning regarding SuggestionsPopupWindow during full build
Change-Id: Ie722156d3819d05d3cd479527abb8b4750b332f7
2019-02-01 23:38:30 -08:00
TreeHugger Robot
721578426c Merge "Better handling of DB corruption in SQLiteDatabase.open()" 2019-02-02 01:34:58 +00:00
TreeHugger Robot
ecc418c4cb Merge "Fix acquire comments" 2019-02-02 00:49:51 +00:00
Jorim Jaggi
67684881cf Apply visibility at the beginning of the animation
Such that elements are more in sync, and this is also how it was
handled previously.

Furthermore we ensure that surface visibility is correct after the
animation for both show and hide.

Test: Show/hide IM
Bug: 111084606
Change-Id: I47b3d3b430fa38f80203276b9984df1f71008f6e
2019-02-01 15:52:01 -08:00
Peiyong Lin
dd4b22e66c Merge "[Color] Make setColorMode togglable." 2019-02-01 23:20:30 +00:00
Eugene Susla
b8543da969 Merge "Revert "Log a warning if non-role holder attempts to read sms"" 2019-02-01 21:50:45 +00:00
Philip P. Moltmann
180a0e1305 Merge "Add PermissionGrantRequestResultReported atom" 2019-02-01 21:48:00 +00:00
TreeHugger Robot
7d62125f75 Merge "Small fixes in PermissionControllerManager/Service" 2019-02-01 21:27:32 +00:00
Beverly Tai
131ffc4b92 Merge "Use default zen policy's callers/messages" 2019-02-01 21:10:15 +00:00
Makoto Onuki
7a8261dce2 Better handling of DB corruption in SQLiteDatabase.open()
Bug: 123750718
Test: manual test with test code
Change-Id: I80a9d35f7ad6589b3de0a506780cfe956295dcda
2019-02-01 12:54:55 -08:00
Aurimas Liutikas
ce37d9027d Merge "Update TypedArray and TypedValue to store source layouts." 2019-02-01 20:35:23 +00:00
Philip P. Moltmann
9b12e37a4f Small fixes in PermissionControllerManager/Service
- better names
- broken javadoc
- missing input paramter checks

Bug: 116738135
Test: Built
Change-Id: I6056b46776cf32937a113b99584d138ff423f039
2019-02-01 11:43:08 -08:00
Rob Carr
4d1a60d70f Merge "Prevent reallocation of Surface object in copyFrom" 2019-02-01 19:38:22 +00:00
Beverly
877d5193c4 Use default zen policy's callers/messages
Change-Id: I57674466af56cc45aa28b72bd6b346f3e0a1555c
Fixes: 123406095
Test: atest ZenModeConfigTest
2019-02-01 14:14:09 -05:00
James O'Leary
991761a424 Merge "Only selected VoiceInteractionService can call methods" 2019-02-01 19:00:41 +00:00
Eugene Susla
c0826a6434 Revert "Log a warning if non-role holder attempts to read sms"
This reverts commit e865b9d9bf.

Reason for revert: caused b/123709320, also non needed any more

Fixes: 123709320
Change-Id: I2afa0a60133a490ab433cd04dd03a5e26fb3fc14
2019-02-01 18:26:30 +00:00
Philip P. Moltmann
e0cf4e6087 Add PermissionGrantRequestResultReported atom
Also add a prototype for a future system-api accessible metrics file
that will be auto-generated from atoms.proto

Test: - ./out/host/linux-x86/bin/statsd_testdrive -p com.google.android.permissoncontroller 170
      - triggered permission request
Bug: 123594188, 123663448
Change-Id: Icede6ff1f12ca79ebad6267c045a4fb3a9955402
2019-02-01 10:22:37 -08:00
TreeHugger Robot
20b6426f48 Merge "Flags instead of booleans for countPermissionApps" 2019-02-01 18:21:33 +00:00
Mihai Popa
88fbed49af [Magnifier-77] Show it on long press selection
Before this CL, the TextView magnifier was shown when selecting text,
but only when a selection handle was explicitly grabbed. This CL also enables
the magnifier when selection is performed by dragging after long press.

Bug: 119819194
Test: manual testing
Change-Id: I415a9c4a91da765db83a3755264b2b19679d0878
2019-02-01 18:13:01 +00:00
Kevin DuBois
a28aa5e6ec Merge "Pipe through color sampling to BrightnessChangeEvent" 2019-02-01 17:42:00 +00:00
Dario Freni
b6d2896a4b Add STAGED_SESSION_ prefix to error codes.
Fix: 123661418
Test: m
Change-Id: I013af7699f0d0225cdcdde232e54e2ee3f615257
2019-02-01 16:26:14 +00:00
Ricky Wai
922698a90b Merge "Make AppDetailsActivity to be transparent" 2019-02-01 15:15:13 +00:00
Annie Meng
f021dc766c Merge changes Ie9c8934d,Iea747394
* changes:
  Create "android" backup agent in the system process for all users
  [Multi-user] Pass userId on backup agent creation
2019-02-01 14:09:14 +00:00
Olivier Gaillard
bab444a731 Fix a bug with worksource propagation.
It is properly added to the parcel when Binder.setCallingWorkSource is
called manually, however it does not work when we call
Binder.setCallingWorkSource in Binder#ProxyTransactListener. The problem
is that we are adding the worksource to the parcel too early. It is
called before we add the work source to the thread local
(ThreadLocalWorkSource.setUid)...

What currently happens
- Client code calls an AIDL method
- AIDL generated code calls writeInterfaceToken which add the headers to the parcel (including the worksource)
- AIDL generated code calls Binder#transact
- Binder#transact calls ProxyTransactListener#onTransactStarted --> this code is calling Binder.setCallingWorkSource too late. After writeInterfaceToken is called which is where the code calls Binder.getCallingWorkSource and add it to the parcel.

To fix it, we udpate the parcel request headers if the work source has
been fixed when the listener is called.

Test: atest binderLibTest BinderWorkSourceTest BinderCallsStatsServiceTest android.os.ParcelTest BinderProxyTest
Bug: 123744028
Change-Id: Id1a4565c1f096d38bf1e423bea897da77ff84005
2019-02-01 13:43:43 +00:00
TreeHugger Robot
2c13539844 Merge "Revert "Minimum viable TimeZoneDetectorService"" 2019-02-01 12:57:32 +00:00
Narayan Kamath
bd01149b62 Merge "ModuleInfo: Address API council feedback." 2019-02-01 12:00:44 +00:00
Ricky Wai
6229250736 Make AppDetailsActivity to be transparent
Test: It's transparent and no flash/action bar when it starts
Bug: 119484208
Change-Id: Iddbe80d017d652884f5bfb7bb7420739e00b855d
2019-02-01 11:22:47 +00:00
TreeHugger Robot
c01a03bf80 Merge "Only check isTopOfTask() when needed" 2019-02-01 11:15:58 +00:00
Po-Chien Hsueh
5380a5adf9 Merge "Add DynamicAndroidClient" 2019-02-01 10:56:42 +00:00
Misha Wagner
3bca79c932 Merge "Add settings for KernelCpuThreadReader" 2019-02-01 10:44:12 +00:00
James O'Leary
596708b973 Only selected VoiceInteractionService can call methods
- Extract current code for checking caller into a private method
- Replace occurrences of that code with a call to the private method
- Add method call to setTranscription/clearTranscription/setVoiceState

Test: Verified Milford can't call setTranscription/clearTranscription
when it is no longer the active service.
Bug: b/123412646

Change-Id: I2c428c6c65b62f6a83264286df4f44fb5d1c249e
2019-02-01 02:21:58 -05:00
Peiyong Lin
a94f3221da [Color] Make setColorMode togglable.
Previously setColorMode must be called before view is set, and has no effect
after that. The state of WCG on Android when this patch was written, was that
most hardware out there can not handle mixed color spaces composition well
which results in GPU composition. And this situation will remain true for a
long time.

Despite photography applications want to have WCG, it's a power cost especially
during video playback. In order to mitigate this fact and the desire to move
the ecosystem forward in WCG, we make setColorMode togglable such that in the
next app vsync, when color mode is changed we issue a surface update which
results in the old EGLSurface or VkSurface being destroyed and new EGLSurface
or VkSurface being created with the target color space being set. As a result,
applications can now togglable WCG on/off.

BUG: 120288123
Test: Build, flash and boot. Verify with SurfaceFlinger dumpsys on demo app.
Change-Id: I09bf8c380a01f4dde364873d37b248cedc6ccfd3
2019-01-31 21:34:50 -08:00
TreeHugger Robot
3bed6481d6 Merge "Update BiometricPrompt documentation" 2019-02-01 04:28:46 +00:00
TreeHugger Robot
8a72d5a9d5 Merge "Add a new "appPredictor" protection flag." 2019-02-01 03:48:32 +00:00
TreeHugger Robot
ccd5c4896c Merge "StatsManager setActiveConfigsChangedOperation API" 2019-02-01 02:19:11 +00:00
Andy Hung
dd45d82911 Merge "Add master audio balance" 2019-02-01 01:53:28 +00:00
TreeHugger Robot
f973460248 Merge "Implement getting displayId from ActivityManager" 2019-02-01 01:41:31 +00:00
Kevin Chyn
39ebee41d4 Update BiometricPrompt documentation
Test: Builds
Change-Id: Ic4d9505d63f6d5e3885a1de86d1e704e0e7a7cc8
2019-01-31 16:24:46 -08:00
Kevin Chyn
2446ea7a01 Fix acquire comments
Bug: 123262389

Test: Builds
Change-Id: I3337aa596db01be964ec35881feddf548e526757
2019-01-31 16:18:43 -08:00
TreeHugger Robot
f995dbadd6 Merge "Move multiplier to ViewConfiguration" 2019-02-01 00:06:38 +00:00
Aurimas Liutikas
949b05dbdc Update TypedArray and TypedValue to store source layouts.
In ag/5859897 we started tracking source styles for each TypedValue.
It is also useful to keep track of source layouts if the attribute
was resolved against a layout (attribute set in XML layout inside
of <View> tag).

Test: atest CtsContentTestCases:android.content.res.cts.TypedArrayTest
Bug: 111439551
Change-Id: Ie6bc6ecd9a22b536a2f3288263b896f9cec67d38
2019-01-31 15:44:51 -08:00
Adam He
bb82c6a9f0 Implement getting displayId from ActivityManager
Change-Id: Ib8659062e5dd58b49c1e1fdee03f5f6a65e00971
Fixes: 121260224
Test: atest CtsContentCaptureServiceTestCases
2019-01-31 15:33:36 -08:00
Edward Savage-Jones
35c292f57a Add master audio balance
Test: Change Balance through Settings, play audio
Bug: 28390736
Change-Id: I6cebd3fa448239999c5d624f10902152d0db679b
2019-01-31 15:30:42 -08:00