Commit Graph

60863 Commits

Author SHA1 Message Date
Hugo Benichi
9ecb72151b Fix missing IpConnectivity metrics am: 90cbc5b444
am: 384818b99d

Change-Id: I62f174cc615f40e450ba72f8c6f86d46ed5fc096
2016-07-29 09:47:21 +00: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
892f55e7ad Set secure setting when all preloaded apps are installed am: 51ce8ee3b1
am: 65d5e75895

Change-Id: I0413cdb3dd7139066712caab59a5593d866ac2a7
2016-07-28 22:03:04 +00: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
f878d518c1 Follow up for I420bee8a11d430b1e52ded050536e56a85a48800 am: 8d4f5f52a1
am: ffb289c7b3

Change-Id: Ia0befac114b3e1f534c477300d5875c2c6f0e588
2016-07-28 20:13:44 +00:00
Jorim Jaggi
ffb289c7b3 Follow up for I420bee8a11d430b1e52ded050536e56a85a48800
am: 8d4f5f52a1

Change-Id: I9b5c7d18520d57c355f3c8ea76e2dfc0e6d6ff39
2016-07-28 20:03:58 +00:00
Aga Madurska
498ad9a370 Ignore padding for drawing round scrollbars. am: c283507246
am: 9bafa17869

Change-Id: Icd0e134b0b596dae3300829a121caa903d828523
2016-07-27 22:55:11 +00:00
Makoto Onuki
890f85d70f Prevent shortcut access when user is locked am: 9c850012ca
am: cab2462e38

Change-Id: I66faccf78500d057957fb4a7bc361ff8907811b5
2016-07-27 22:28:30 +00:00
Aga Madurska
9bafa17869 Ignore padding for drawing round scrollbars.
am: c283507246

Change-Id: Ia60e140beaa24b445d7f9949de8dbc946c05d828
2016-07-27 22:05:42 +00:00
Agnieszka Madurska
9801935b95 Merge "Ignore padding for drawing round scrollbars." into nyc-mr1-dev 2016-07-27 21:36:55 +00:00
Adrian Roos
e616a42716 ViewRootImpl: Initialize sysui visibility
am: 1b2bf00098

Change-Id: I5d206d031a193777b67cb44af5b70bbc4997c2f3
2016-07-27 21:24:39 +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
Jeff Davidson
19af77d2cb Add support for carrier \"associated\" apps.
am: 24b9d96007

Change-Id: I1de92977f3a0635d88e6517210f6bbb06ab3d0f0
2016-07-27 21:18:07 +00: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
Michael Wright
7b17faad2c Actually compare supported color modes.
am: 16ae042351

Change-Id: If33235e3debdca951856fcc74c5189cd936b6129
2016-07-27 13:23:47 +00: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
George Mount
7c129f5635 Check for target SDK version for out-of-order fragment creation.
am: 00b7846b1e

Change-Id: If8ff087abfccdf1ff5868c2d9bbffbbaf00a23d5
2016-07-27 01:18:17 +00:00
Christopher Tate
ac2f0b2c51 Fix wallpaper restore from pre-N devices
am: ebadfb17e7

Change-Id: I4f88e555929bd9e48983dce64dc66f9e7fd46dc9
2016-07-27 01:18:05 +00: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
f704097df4 Add titles to PreferenceFragments and PreferenceScreens for watches.
am: 744be16ffa

Change-Id: I54847a5ef3ddb4e09cc835433d80e121cf32b725
2016-07-26 21:11:47 +00: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
d09c33f32c Update ShortcutManager javadoc
am: fe9c9669a4

Change-Id: I4bfaca9ce475e91ec0dae45739b1623ceac8a43c
2016-07-26 20:50:00 +00:00
Makoto Onuki
3858c4704c Merge "Update ShortcutManager javadoc" into nyc-mr1-dev 2016-07-26 20:40:04 +00:00
Aga Madurska
f4b8e7d969 Use correct bounds for scroll bar rendering.
am: 8cc883de9e

Change-Id: Ie82427a678241e7237144bbe76493c055a17bc2d
2016-07-26 18:08:47 +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
Chris Craik
5fbbcdcd32 Avoid destroying TextureView surfaces for onStop
am: 391d560402

Change-Id: I6e1e5a5f024410e7e0288910386cbc439b8a9039
2016-07-26 00:29:44 +00:00
TreeHugger Robot
eaa6d6b2c9 Merge "Avoid destroying TextureView surfaces for onStop" into nyc-mr1-dev 2016-07-26 00:06:45 +00:00
Justin Klaassen
705e2fb40c Fix NPE in ValueAnimator
am: 543a7ed7af

Change-Id: Ib049d75f8c8460c3e7498080bbe502e67078e6ac
2016-07-25 22:50:07 +00:00
Raph Levien
878346cb07 Enforce consistent sizes for arrays in SpannableStringInternal
am: 83549088c6

Change-Id: I6fd3b65dd388abcce6f8b7062f396a6fcf8fdf7a
2016-07-25 22:49:14 +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
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
Aga Madurska
009fab6070 Add support for round scroll bars to View.java
am: b19d0f9800

Change-Id: I23faff9b31a9a71c767aaabca69774f8582bfdb2
2016-07-25 16:39:58 +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