385745 Commits

Author SHA1 Message Date
Andreas Gampe
91a6b8bfa9 Merge "Framework: Ensure important fdsan function is compiled" am: d5af15ee91 am: c21378ea83
am: 45564930be

Change-Id: I4250b2b874b1f4ee88dc6a4e4005ce3f9f808164
2018-09-10 16:03:33 -07:00
Andreas Gampe
45564930be Merge "Framework: Ensure important fdsan function is compiled" am: d5af15ee91
am: c21378ea83

Change-Id: Id50f503044727695c58420ae83393918d7f720e1
2018-09-10 15:52:41 -07:00
Andreas Gampe
c21378ea83 Merge "Framework: Ensure important fdsan function is compiled"
am: d5af15ee91

Change-Id: Ia2474df14688b5937b5aaad59aebf26af8188a6a
2018-09-10 15:42:28 -07:00
TreeHugger Robot
6c1c842dc7 Merge "Frameworks: Annotate trivial @GuardedBy in services" 2018-09-10 22:18:40 +00:00
TreeHugger Robot
4d349d8dc2 Merge "Fix unpacking of default IME package" 2018-09-10 22:13:31 +00:00
Andreas Gampe
d5af15ee91 Merge "Framework: Ensure important fdsan function is compiled" 2018-09-10 21:27:38 +00:00
Andreas Gampe
350694ad10 Framework: Ensure important fdsan function is compiled
Compile ForwardingOs fdsan-using functions. Follow-up to commit
5625660c650a0923d4c7f020f2eb7eef7d5962d4.

The function is relatively hot now, and importantly part of the
'abort' stack for fdsan issues.

Test: m
Change-Id: Iad9883b8fd85fc362bb3252739e3e3acc45373af
2018-09-10 21:27:20 +00:00
TreeHugger Robot
33b632e415 Merge "Frameworks: Annotate trivial @GuardedBy in packages" 2018-09-10 21:26:44 +00:00
Lucas Dupin
dfa94e444c Merge "Do not allow apps to set night mode" 2018-09-10 20:48:16 +00:00
Philip P. Moltmann
04cec0a84c Merge "Expose the ability to resolve icon as a different app" 2018-09-10 20:45:19 +00:00
TreeHugger Robot
1ae324d31d Merge "Exposes {start,stop}AudioSource to JAVA layer" 2018-09-10 20:29:32 +00:00
Seigo Nonaka
abd11b27a1 Merge "Introduce new Typeface.Builder2 for creating Typeface from FontFamily" 2018-09-10 19:59:56 +00:00
TreeHugger Robot
2f1e32fff5 Merge "Refactor HWUI readback code to be backend independent" 2018-09-10 19:22:57 +00:00
TreeHugger Robot
7ec926dac4 Merge "Enable hyphenation by default on watches." 2018-09-10 19:14:58 +00:00
Dongwon Kang
1941814f8e Merge "MediaPlayer2: use protobuf instead of parcel in invoke()" 2018-09-10 18:32:32 +00:00
Fabian Kozynski
6dc673b8fa Merge "State of QSSecurityFooter refreshes early." 2018-09-10 18:21:22 +00:00
TreeHugger Robot
b299070edf Merge "Remove dimension fields in GaugeMetric output" 2018-09-10 17:47:30 +00:00
TreeHugger Robot
2ba884df65 Merge "Add metric id for Mobile network page" 2018-09-10 17:37:17 +00:00
Stan Iliev
1a025a7163 Refactor HWUI readback code to be backend independent
Implement readback from Surface, TextureView and HW Bitmap
for Vulkan pipeline by wrapping the graphics buffer in an SkImage.
Refactor both Vulkan and GL readback to use common code.
TextureView readback is moved from IRenderPipeline interface to
Readback class. Refactor all 3 readback flows to use common
implementation.

Test: Passed all view, uirendering and graphics CTS tests with GL
Test: Passed many CTS test with Vulkan, that require readback
Bug: 113673613
Change-Id: Ifbfd8170a5401f87a709b4b1b9fa058e8e11768d
2018-09-10 13:18:04 -04:00
TreeHugger Robot
77e36b7ba7 Merge "Import translations. DO NOT MERGE" 2018-09-10 17:13:25 +00:00
Adrian Roos
d3ee26b616 Merge changes Ieda9c99d,I3e6777ac,I6c4d0a52,Ie7912c05
* changes:
  Revert "Add null check for vrManager"
  Revert "Add null check for vrManager"
  Revert "Add null check for vrManager"
  Revert "Do not start VrManagerService if VR is not supported"
2018-09-10 17:04:21 +00:00
Raj Mojumder
302019d97d Merge "Add timeout to usb_device_get_string_ucs2 invocation to prevent potential unbounded stuck state." 2018-09-10 16:56:48 +00:00
Fabian Kozynski
b7199c4dbf State of QSSecurityFooter refreshes early.
QSSecurityFooter refreshes its state and listens regardless of the
expansion of QSPanel. It now knows its size before expansion animation
starts and is reported properly.

Change-Id: I66e29b4b14c2fbc663704255649515f68f41bd48
Fixes: 80219694
Test: Manual & runtest
2018-09-10 12:36:37 -04:00
Adrian Roos
122d844516 Revert "Add null check for vrManager"
This reverts commit 7a5a757c2b548411de77063e2eaf0b10e678bcde.
Bug: 112064298
Change-Id: Ieda9c99dcaf3d577e385015bd42b93d36630ee0c
2018-09-10 16:11:01 +00:00
Adrian Roos
ae8fd62fbe Revert "Add null check for vrManager"
This reverts commit ecf80f0e7ea5448efe4dcd43c1cefce201ce90ee.
Bug: 112064298
Change-Id: I3e6777ac47f666671bf43e22f485dc94865a369b
2018-09-10 16:10:42 +00:00
Adrian Roos
e19a4540ff Revert "Add null check for vrManager"
This reverts commit ddf1b4b476d6872a27f5e47d5816ab0e1db6b4c6.
Bug: 112064298
Change-Id: I6c4d0a52b28d0d09f37bd5c9c8da5f6c2b4791cb
2018-09-10 16:10:24 +00:00
Adrian Roos
f5d99fa7d9 Revert "Do not start VrManagerService if VR is not supported"
This reverts commit af1eda2654cad6aecfbd8fcc02075c01c505c737.
Bug: 112064298
Change-Id: Ie7912c055e8e27250b0404e337813c0ee670b1de
2018-09-10 16:09:59 +00:00
Lucas Dupin
9f4132fa4d Do not allow apps to set night mode
Only privileged or signed apps should be able to do so.

Change-Id: I1b7878510de91c1e1a6c67d153ef8eb80bfe487a
Fixes: 113605757
2018-09-10 16:01:52 +00:00
Marcin Oczeretko
7bd671e11f Merge "Publish a binder service from LooperStatsService" 2018-09-10 13:11:17 +00:00
TreeHugger Robot
82254ae30b Merge "Set a min width on 'ok' touch target" 2018-09-10 13:05:43 +00:00
TreeHugger Robot
944dca780e Merge "[KV] Refactor clean-up" 2018-09-10 11:56:20 +00:00
Marcin Oczeretko
1d5d0ec528 Publish a binder service from LooperStatsService
Moved out of change I9cd4c819297ea34ab59c3cf9cfd11136987acc22 because
this part needs the SE Policy to be updated first.

Test: manual
Change-Id: Id6efed69394a34c41a7e6f9b73cb54dac8b5aeb5
2018-09-10 11:52:56 +00:00
TreeHugger Robot
00ebba4f98 Merge "Disable preview on volume change" 2018-09-10 11:47:22 +00:00
TreeHugger Robot
dab9d744bf Merge "Do not start VrManagerService if VR is not supported" 2018-09-10 11:21:24 +00:00
TreeHugger Robot
0cef692ad0 Merge changes If834d0f0,I3c1d7824
* changes:
  Add null check for vrManager
  Add null check for vrManager
2018-09-10 11:20:52 +00:00
Luke Huang
de6b9dbeb7 Merge "Netd unconditionally enable bandwidth control" am: 75fb51b0ec am: b4b2155fc2
am: 46346fc883

Change-Id: Ib33a0bfc0cff462f2f47e3446c67fa678d713359
2018-09-10 04:03:05 -07:00
Luke Huang
46346fc883 Merge "Netd unconditionally enable bandwidth control" am: 75fb51b0ec
am: b4b2155fc2

Change-Id: Ibf195d4adf91d4c4f16474a4d2ac5bfe7f54c17e
2018-09-10 03:54:11 -07:00
Luke Huang
b4b2155fc2 Merge "Netd unconditionally enable bandwidth control"
am: 75fb51b0ec

Change-Id: I58af9d801bae5e5128ba2debbb5fe865366ae77f
2018-09-10 03:45:03 -07:00
Luke Huang
75fb51b0ec Merge "Netd unconditionally enable bandwidth control" 2018-09-10 10:33:29 +00:00
Mathew Inwood
da6d8f1bb8 Merge "Include dark greylist entries from annotations." am: 50adb3213b am: aa59a907ae
am: 4d4f863553

Change-Id: I3dc022d9c86481e9086311a0face3d9ad68d700e
2018-09-10 03:07:17 -07:00
Andrey Kulikov
33d0507ea6 Merge "Fix IntDef's usages in the platform Transitions" 2018-09-10 09:56:14 +00:00
Mathew Inwood
4d4f863553 Merge "Include dark greylist entries from annotations." am: 50adb3213b
am: aa59a907ae

Change-Id: I4be633109e0f372bc553f3853f0386407490f23a
2018-09-10 02:53:21 -07:00
Mathew Inwood
aa59a907ae Merge "Include dark greylist entries from annotations."
am: 50adb3213b

Change-Id: I076f48929056c8528b559dc3b73bcd10b71f54bf
2018-09-10 02:39:24 -07:00
Mathew Inwood
50adb3213b Merge "Include dark greylist entries from annotations." 2018-09-10 08:25:46 +00:00
Yohei Yukawa
41b094f785 Use correct @*Res annotation for updateStatusIcon()
There was a small mistake in my previous CL [1].

What updateStatusIcon() takes is a resource ID for Drawable, not ID
for an integer value.

These @*Res annotations are still just hints for IDE and lint tools.
They are actually all @Retention(SOURCE) hence this kind of mistake
has no impact at run time actually.

This CL also adds the right annotation for corresponding methods in
InputMethodManager and InputMethodManagerService.

 [1]: I995c4b922f91b94438c1292392b2c3030598594f
      c7ca36845edb9937f7f9d09d50505ade3c8abf9f

Bug: 114418674
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Change-Id: Id7fd610c07643c79b8ec03efbda24b3dc0686844
2018-09-09 23:58:45 -07:00
TreeHugger Robot
d172e22a6a Merge "Allow IMM to forward API calls to IMS" 2018-09-10 06:13:52 +00:00
TreeHugger Robot
5d42542130 Merge "Stop relying on IMM in IMS for token-guarded IME APIs" 2018-09-10 05:53:25 +00:00
TreeHugger Robot
8aadce5633 Merge "Add a wrapper for IInputMethodPrivilegedOperations" 2018-09-10 05:34:13 +00:00
TreeHugger Robot
cbf1df8eb3 Merge "Remove redundant synchronized blocks" 2018-09-10 05:01:36 +00:00
Yohei Yukawa
eec552e9e9 Allow IMM to forward API calls to IMS
This is one further step towards deprecating 8 IME APIs that were
accidentally defined InputMethodManager (IMM) instead of
InputMethodService (IMS).

With this CL, API calls to those 8 deprecated ones in IMM will be
forwarded to IMS so that we can completely remove corresponding IPC
methods from IInputMethodManager.aidl.  This guarantees that processes
that have no InputMethodService running there become unable to access
IPC methods behind such IME APIs that are intended to be used only
from IMEs.

One tricky thing is that the following 4 public APIs have been allowed
to processes that have WRITE_SECURE_SETTINGS permission, even if such
a process does not have active InputMethodService.

 * InputMethodManager.setInputMethod
 * InputMethodManager.setInputMethodAndSubtype
 * InputMethodManager.switchToLastInputMethod
 * InputMethodManager.switchToNextInputMethod

In general, user mode apps should not have WRITE_SECURE_SETTINGS
permission.  Thus it might be not that difficult for us to simply
deprecate such a special rule.  Bug 114488811 is tracking that effort.

For now, this CL preserves the existing behavior when a null IME token
is specified to those 4 APIs.

Bug: 114418674
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Change-Id: If762714b2003fa6477e1318110f63e13968c1d7e
2018-09-09 20:48:41 -07:00