Commit Graph

64601 Commits

Author SHA1 Message Date
TreeHugger Robot
1fb9d1a848 Merge "Let Rotary encoder events skip IME" into cw-f-dev 2016-07-29 23:48:55 +00:00
Makoto Onuki
5ec63fc3c7 LauncherApps should also throw when user is locked
am: bc4ad85d29

Change-Id: Ic7bc111861634f2a38cd262a93f56976924c64ba
2016-07-29 18:21:53 +00:00
Makoto Onuki
bc4ad85d29 LauncherApps should also throw when user is locked
otherwise it'd be racy.

Bug 30406401

Change-Id: Id6b0295933c5639fa23c56d737a7f0199cbd7497
2016-07-29 09:40:40 -07:00
Hugo Benichi
384818b99d Fix missing IpConnectivity metrics
am: 90cbc5b444

Change-Id: I636a187e94428f6974a3dc4e9588ea95f3293da8
2016-07-29 09:42:13 +00:00
Hugo Benichi
90cbc5b444 Fix missing IpConnectivity metrics
The IpConnectivityLog class looks up MetricsLoggerService once only
at creation. If a IpConnectivityLog user instantiates this class too
early during the boot process, the MetricsLoggerService is not found
and no event can be recorded.

This patch makes IpConnectivityLog attempt to look up
MetricsLoggerService as long as it hasn't found it yet.

This allows IpManager and ConnectivityService to upload
android.net.metrics events.

Bug: 30490301
Change-Id: I97102b95a775ea9e90351b9887ae4661fddc2af9
2016-07-29 17:07:38 +09:00
Fyodor Kupolov
65d5e75895 Set secure setting when all preloaded apps are installed
am: 51ce8ee3b1

Change-Id: I8f2f0f9c2f8db92231e5da100634bfebb8ae6455
2016-07-28 21:58:05 +00:00
Fyodor Kupolov
51ce8ee3b1 Set secure setting when all preloaded apps are installed
Bug: 30280710
Change-Id: Id87b51c53b1e553a6ab0a257be93baf7d31b6fe5
2016-07-28 13:22:26 -07:00
Jorim Jaggi
ffb289c7b3 Follow up for I420bee8a11d430b1e52ded050536e56a85a48800
am: 8d4f5f52a1

Change-Id: I9b5c7d18520d57c355f3c8ea76e2dfc0e6d6ff39
2016-07-28 20:03:58 +00:00
Adam Lesinski
52d7fd62a4 DO NOT MERGE Change KernelUidCpuTimeReader Slog.wtf to Slog.e
am: 82a4d6f93b

Change-Id: I5e3b406b7a3f9a7f367dccaed0094ab5b7a78d2e
2016-07-28 19:23:16 +00:00
Adam Lesinski
82a4d6f93b DO NOT MERGE Change KernelUidCpuTimeReader Slog.wtf to Slog.e
There is a known issue in the kernel uidcputime module that triggers
the WTF, which has a cost to the system. Convert to a regular log
instead.

Bug:28950306
Change-Id: I7cbb3138f644075f0d9d65ce8b52bd835eb270fd
2016-07-28 19:08:04 +00:00
Chris Banes
be3daf6947 Fix CascadingMenuPopup width if background has padding DO NOT MERGE
am: f9e2c1b326

Change-Id: I1997cde48524dc5c040311f4f9e7824485b55c7d
2016-07-28 08:47:15 +00:00
Chris Banes
7f37f2693f Merge "Fix CascadingMenuPopup width if background has padding DO NOT MERGE" into nyc-mr1-dev 2016-07-28 08:38:40 +00:00
Prashant Malani
fecbc67e0d Let Rotary encoder events skip IME
Rotary Encoder input events don't need to go through the IME, and hence
should skip it. This will save IPC round trip time, and cut down on
latency.

Bug: 29207649
Change-Id: I8b5062b9c409b338b2254232a2e0f7819d9b71de
2016-07-28 06:24:31 +00:00
Aga Madurska
9bafa17869 Ignore padding for drawing round scrollbars.
am: c283507246

Change-Id: Ia60e140beaa24b445d7f9949de8dbc946c05d828
2016-07-27 22:05:42 +00:00
Andrii Kulian
5b637aed1c Don\'t delay child pressed state in freeform mode
am: a6aea9876e

Change-Id: I68c9d42ca9b3bda6a2ea823db27f8a11046b0e50
2016-07-27 22:01:07 +00:00
Agnieszka Madurska
9801935b95 Merge "Ignore padding for drawing round scrollbars." into nyc-mr1-dev 2016-07-27 21:36:55 +00:00
Andrii Kulian
671bc2052a Merge "Don't delay child pressed state in freeform mode" into nyc-mr1-dev 2016-07-27 21:29:46 +00:00
Makoto Onuki
cab2462e38 Prevent shortcut access when user is locked
am: 9c850012ca

Change-Id: I0aac4593da85c26107a2ba333b6af9477d5f3983
2016-07-27 21:24:14 +00:00
Aga Madurska
c283507246 Ignore padding for drawing round scrollbars.
This change is needed to correctly cope eg. with list views
which introduce header and footer view through additional
list view padding.

See ag/1221005 for details.

Bug:30420573
Change-Id: I7c9c0ce2b5ba85429b7921c42e4f97e139814e17
2016-07-27 22:22:11 +01:00
TreeHugger Robot
831dd7542f Merge "Prevent shortcut access when user is locked" into nyc-mr1-dev 2016-07-27 20:55:16 +00:00
Makoto Onuki
9c850012ca Prevent shortcut access when user is locked
Also add some test utility methods that'll be used by CTS.

Bug 30406401

Change-Id: I9396acebbdb3cbe64f6e85877ee62a2131cd6e61
2016-07-27 12:01:46 -07:00
Adrian Roos
25582f21cd Merge "ViewRootImpl: Initialize sysui visibility" into nyc-mr1-dev 2016-07-27 18:39:17 +00:00
Jeff Davidson
94ae1e739f Merge "Add support for carrier "associated" apps." into nyc-mr1-dev 2016-07-27 17:57:39 +00:00
Chris Banes
f9e2c1b326 Fix CascadingMenuPopup width if background has padding DO NOT MERGE
Happens because CascadingMenuPopup calls setWidth() rather
than setContentWidth() like StandardMenuPopup does.

BUG: 30365568
Change-Id: Id850baaf1d9c5664220766e5e37869e2ec361a2d
2016-07-27 14:53:38 +01:00
Michael Wright
1df0020f2d Merge "Actually compare supported color modes." into nyc-mr1-dev 2016-07-27 13:14:04 +00:00
Jorim Jaggi
8d4f5f52a1 Follow up for I420bee8a11d430b1e52ded050536e56a85a48800
- Log when hasTopUi state changes
- Add hasTopUi to dumpstate
- Only allow persistent processes to honor this flag

Bug: 30292998
Change-Id: Ifb481c8d50b102ea4cac3078ea3eb39e45c08259
2016-07-27 11:35:05 +02:00
Andrii Kulian
a6aea9876e Don't delay child pressed state in freeform mode
DecorCaptionView is used in app view hierarchy in freeform mode
and it inherits default ViewGroup#shouldDelayChildPressedState
implementation, which returns true by default for compatibility
reasons.
This results in touch not delivered to child views in some cases
until there is movement or up action. E.g. touch on SeekBar will
not change the position of control instantly in freeform, while
it does in other modes.
This CL disables delaying child pressed state for DecorCaptionView.

Bug: 30037893
Change-Id: I4917143610b6c0d404d2395670de9525c10f2a6c
2016-07-26 18:42:46 -07:00
Adam Powell
4e00581e6b Merge "Check for target SDK version for out-of-order fragment creation." into nyc-mr1-dev 2016-07-26 23:24:59 +00:00
Chris Tate
9fd44ef954 Merge "Fix wallpaper restore from pre-N devices" into nyc-mr1-dev 2016-07-26 23:05:29 +00:00
George Mount
00b7846b1e Check for target SDK version for out-of-order fragment creation.
Bug 30230667

Ensure that pre-N applications initialize in the proper order,
but allow N and above applications to be created prior to
asking for a Transition.

Change-Id: I859f22a7c5518e4b496cbd7ee58ef1d3206a5c86
(cherry picked from commit 78d38fc839)
2016-07-26 14:59:23 -07:00
Jeff Davidson
24b9d96007 Add support for carrier "associated" apps.
The platform currently supports the notion of default carrier apps.
These apps are set to DISABLED_UNTIL_USED until a SIM is inserted
which grants them carrier privileges, at which point they are enabled.
Apps are not touched if they have been updated from the version on
/system or if their state has been modified externally (e.g. by the
user).

This CL extends this notion to associated apps, which may not have
carrier privileges themselves, but should be enabled/disabled
alongside a particular carrier app. This should include helper apps
that should not be visible to users who don't use the given carrier
unless the user explicitly enables the app.

As additional protection, we add a check to ensure that we never
disable apps after the first time we've run. Since we need to store
this information in secure settings, we also move the call site from
PackageManagerService#main() to PackageManagerService#systemReady(),
which enables use of secure settings but still occurs before
third-party apps can be started.

Bug: 30141427
Change-Id: Iee72ba4e70e5ca97999c9147a65af82c670a23e8
2016-07-26 14:54:53 -07:00
Adrian Roos
1b2bf00098 ViewRootImpl: Initialize sysui visibility
Fixes a bug where the sysui visibility flags
were not dispatched when they changed if the
visibility changes the first time to a zero
value.

Change-Id: I4d6c990ca493b144f24c75e95b4ff18c4c0a029c
Fixes: 30259249
2016-07-26 14:27:37 -07:00
Michael Kwan
9f3930d3f7 Merge "Add titles to PreferenceFragments and PreferenceScreens for watches." into nyc-mr1-dev 2016-07-26 20:58:47 +00:00
Makoto Onuki
3858c4704c Merge "Update ShortcutManager javadoc" into nyc-mr1-dev 2016-07-26 20:40:04 +00:00
Michael Kwan
744be16ffa Add titles to PreferenceFragments and PreferenceScreens for watches.
Preferences lack a title on watch type devices due to lack of ActionBar
support. A custom ListView was added to use a custom wrapper adapter to
add a persistent header view at the top of the ListView that developers
would not be able to remove via the ListView API.

Bug: 27962897
Change-Id: I6bccecf85592d9507e0c7a04c9a035617001e9ef
2016-07-26 10:57:56 -07:00
Michael Wright
16ae042351 Actually compare supported color modes.
Also, provide an equals implemenation for HdrCapabilities.

Bug: 30311415
Bug: 30367543
Change-Id: Ib8b9c9283519ae9baa48ecfecb8035848a9b29f0
2016-07-26 18:18:53 +01:00
Aga Madurska
8cc883de9e Use correct bounds for scroll bar rendering.
Bug:30001373
Change-Id: I20c77a2d97096bda451c3a871fd6be7ad699b047
2016-07-26 17:07:28 +01:00
Christopher Tate
ebadfb17e7 Fix wallpaper restore from pre-N devices
The previous path "worked" but left the wallpaper bookkeeping with
incorrect SELinux labeling, which led to cascade failures later on
when apps tried to set new system wallpaper imagery or read the
current image for the picker UI.

We now (a) explicitly label wallpaper files in all change cases,
(b) let the restored imagery flow through the full crop path, as
should have been done in the first place, and as a result (c) lift
the size restrictions on the source image, because now we are doing
a device-appropriate scaling operation on the image.

The "when to crop/scale" test has been slightly relaxed such that
a restored image of exactly the right size now longer triggers a
superfluous factor-1.0 scaling operation.

Bug 30361282

Change-Id: I9a305eea2227952493f64ab78862648cafb816ff
2016-07-25 18:11:47 -07:00
Makoto Onuki
fe9c9669a4 Update ShortcutManager javadoc
Bug 30359231

Change-Id: I01f1987416fa1ac3f0669afa1f15f88ff2dd1631
2016-07-25 17:56:09 -07:00
TreeHugger Robot
eaa6d6b2c9 Merge "Avoid destroying TextureView surfaces for onStop" into nyc-mr1-dev 2016-07-26 00:06:45 +00:00
Chris Craik
391d560402 Avoid destroying TextureView surfaces for onStop
bug:30238922

TextureViews will hold onto their backing surfaces, which will allow
them to resume gracefully when the app's surfaces are saved.

Now only resources that are destroyed for onStop are DisplayLists.

Change-Id: Ia768ba9ffc4497c26aa3a5b101a0f5fa1a258b9c
2016-07-25 15:30:00 -07:00
Michael Kwan
ad74941699 Merge "Add top and bottom panel overlay to lists in AlertDialog for watch." into nyc-mr1-dev 2016-07-25 22:15:39 +00:00
TreeHugger Robot
65dfc2a3e5 Merge "Fix NPE in ValueAnimator" into nyc-mr1-dev 2016-07-25 21:01:48 +00:00
Justin Klaassen
543a7ed7af Fix NPE in ValueAnimator
- Reset mAnimationEndRequested to false in ValueAnimator#start(boolean)
  so that previously canceled animated (with a start delay) can be
  canceled again.
- In ObjectAnimator#animateValue(float) check if target == null
  regardless of mTarget == null since it's possible the target was
  explicitly set to null prior to the animator being cancelled.

Bug: 30190459
Change-Id: I6da55737df30a28f48355fc7a41ab91d05979deb
2016-07-25 12:40:09 -07:00
Raph Levien
83549088c6 Enforce consistent sizes for arrays in SpannableStringInternal
The grow logic in SpannableStringInternal#setSpan assumes that the
size of mSpanData is consistent with that of mSpans, in particular
that if the latter doesn't need to grow, neither does the former.
The copySpans() method didn't enforce this, creating an mSpanData
array only big enough to hold the data.

This patch documents the invariant in a comment and enforces it.

Bug: 30359314
Change-Id: Ie25db70a76836e97af8476a7f5c10cb4b976c1cf
2016-07-25 18:19:00 +00:00
Agnieszka Madurska
8ec317e220 Merge "Add support for round scroll bars to View.java" into nyc-mr1-dev 2016-07-25 16:31:36 +00:00
Aga Madurska
b19d0f9800 Add support for round scroll bars to View.java
Change-Id: If94a29d68cee504f7d31519b96f7b4b8a3af6bfa
2016-07-25 16:14:55 +01:00
Tony Mak
0df1d34e6e Merge "Persist master volume mute across reboot" into nyc-mr1-dev 2016-07-25 10:31:01 +00:00
Daniel Chapin
adc51e460c Merge "Move SysUI to top app scheduling if panel expanded" into nyc-mr1-dev 2016-07-22 22:49:37 +00:00
Jorim Jaggi
f6782ee1c8 Move SysUI to top app scheduling if panel expanded
Also fixes a bug which didn't set the correct renderThreadTid
when restarting an app (for example, when SystemUI gets killed).

Bug: 30292998
Change-Id: I420bee8a11d430b1e52ded050536e56a85a48800
2016-07-23 00:12:39 +02:00