Commit Graph

9448 Commits

Author SHA1 Message Date
Richard Uhler
047754bd1e Add count of WebView instances to meminfo am: 2c0361986b am: 8f61c5fe59
am: 780ba35aa9

Change-Id: I36fe9a9502a9352981d0e1756a86086f872e707d
2016-09-26 14:47:39 +00:00
Richard Uhler
780ba35aa9 Add count of WebView instances to meminfo am: 2c0361986b
am: 8f61c5fe59

Change-Id: I797b6e09c1cff5a92a135c9ad0dc06fec97e3e36
2016-09-26 14:43:10 +00:00
Richard Uhler
8f61c5fe59 Add count of WebView instances to meminfo
am: 2c0361986b

Change-Id: I6b33039e70a20e7aaf0613081e8e64ee7e56873a
2016-09-26 14:38:38 +00:00
Nicolas Prévot
c2932692a0 Merge "Mention that setMasterVolumeMuted has no effect when set on a managed profile." 2016-09-26 10:22:59 +00:00
Andreas Gampe
50309b4644 resolve merge conflicts of 6e37f8a to master
Change-Id: I4fdcce7554977a56fd0f7e4ad4804929112d5599
2016-09-25 15:13:06 -07:00
Sudheer Shanka
42ed497416 Merge "Add usermanager related perf tests - part2" 2016-09-24 01:12:01 +00:00
Christopher Tate
8ce80762b1 Fix crash in clearWallpaper() am: a2bd512034 am: 2a8f8f008c
am: 150b5dbcc2

Change-Id: If5d9eb503d6ba8d126c4cdc5e7ba065e6244b5b9
2016-09-23 21:51:44 +00:00
Christopher Tate
8acd2d4939 Add hidden intent extra about service availability am: 38c9c30640 am: 588729f07d
am: fd2173ed83

Change-Id: Id87a15097a80ca252d88307ab9b23df6ed830eb3
2016-09-23 21:44:14 +00:00
Alan Viverette
6e37f8a077 Allow developer to override Material-style modes in picker dialogs am: 8817aa9339
am: 010ab618af

Change-Id: I0d68842adb7097f4d32977f31d80a10bc166c045
2016-09-23 19:43:39 +00:00
Alan Viverette
010ab618af Allow developer to override Material-style modes in picker dialogs
am: 8817aa9339

Change-Id: I4733798d4785459ea36a75cddfeb7358912fe9d6
2016-09-23 19:36:42 +00:00
Shuo Gao
304c720d4a Enable shader cache for applications that shared UID with multiple packages too
am: 1e6d77e836

Change-Id: I1d90470f85a632417845e961ef75b8c5a2703b50
2016-09-23 17:36:09 +00:00
Nicolas Prevot
aef3ce21db Mention that setMasterVolumeMuted has no effect when set on a managed profile.
BUG:27262893
Change-Id: Ibbcf4f222e47e9e0b723ec4b0335f100e904bca1
2016-09-23 16:05:07 +01:00
Svetoslav Ganov
74cdd684b1 Merge "Add a missing app op string name" 2016-09-23 14:30:17 +00:00
Michal Karpinski
6f81529e28 Fingerprint Strong auth timeout am: 0b72a722ed
am: 369672b8bb

Change-Id: Id152e63ba4b378ea10787198c3f6cd58d2f07495
2016-09-23 07:13:34 +00:00
Michal Karpinski
369672b8bb Fingerprint Strong auth timeout
am: 0b72a722ed

Change-Id: I70a4c0288aa2d98c02706a055a5dda710ace2ae2
2016-09-23 07:09:59 +00:00
Svet Ganov
824ad6ed51 Add a missing app op string name
Change-Id: Ic9ef1e7d2a2bda163c425e58a37c60577af6ca11
2016-09-22 19:43:30 -07:00
Adam Powell
3e26092975 Null check for restoring LoaderManagers am: 100ba76d7a am: bb2011a2e0
am: 22766c9a14

Change-Id: I7763de030c7e43262649337a4770e6b55e39bb36
2016-09-23 00:28:44 +00:00
Wale Ogunwale
049a03ebfe Save activity state before stopping acitivity when device sleeps am: b5066fe307 am: 3adb9d9318
am: 0f82e46fb6

Change-Id: Ic3b40cd3bb7df5f80c73b1a2ee88b42770c5f2c8
2016-09-23 00:25:44 +00:00
Christopher Tate
150b5dbcc2 Fix crash in clearWallpaper() am: a2bd512034
am: 2a8f8f008c

Change-Id: Ia73abd24d04d68c4895da8861a42af8f5887ef4c
2016-09-23 00:01:30 +00:00
Christopher Tate
fd2173ed83 Add hidden intent extra about service availability am: 38c9c30640
am: 588729f07d

Change-Id: I9b3a2f4713a23954fa5a7b01e0d0d8297325180a
2016-09-22 23:56:05 +00:00
Christopher Tate
2a8f8f008c Fix crash in clearWallpaper()
am: a2bd512034

Change-Id: I1ad7ef3676fab348022ee5b2a90ca144e44b06b8
2016-09-22 23:11:12 +00:00
Christopher Tate
588729f07d Add hidden intent extra about service availability
am: 38c9c30640

Change-Id: If626d4081621a5eee358bd7dfb86ae8349c67ef1
2016-09-22 23:08:21 +00:00
Adam Powell
22766c9a14 Null check for restoring LoaderManagers am: 100ba76d7a
am: bb2011a2e0

Change-Id: I8afc2a6f4808d1b36c1f2651617793854e799d11
2016-09-22 22:06:38 +00:00
Wale Ogunwale
0f82e46fb6 Save activity state before stopping acitivity when device sleeps am: b5066fe307
am: 3adb9d9318

Change-Id: Ic18fbf92fe029a0eea3d886450a97c9877db7020
2016-09-22 22:04:36 +00:00
Vladislav Kuzkokov
5d25d52900 Add DevicePolicyManager.setBackupServiceEnabled as hidden API. am: 5a122a1ce9
am: 8a48085267

Change-Id: I0dc9c4492dfac2a72fc976a1e5204c2c14ec14c4
2016-09-22 21:59:49 +00:00
Adam Powell
bb2011a2e0 Null check for restoring LoaderManagers
am: 100ba76d7a

Change-Id: I7b5eecf24d73fd62abaa2825374bd936f15425e5
2016-09-22 20:38:00 +00:00
Wale Ogunwale
3adb9d9318 Save activity state before stopping acitivity when device sleeps
am: b5066fe307

Change-Id: I95e897de48a9f5b10728110b5b3c9d379f86f695
2016-09-22 20:36:32 +00:00
Christopher Tate
a2bd512034 Fix crash in clearWallpaper()
The underlying clearWallpaper() service method demands that only a
single kind of wallpaper be specified as the target; but a recent
patch attempted to expand the client-side legacy method to apply to
all kinds of wallpaper, incorrectly.  This patch corrects that client-
side code to do things properly.

Bug 30456015

Change-Id: I0a881957b881206e5eb775c6879ba90f10f9ffb0
2016-09-22 13:18:05 -07:00
Vladislav Kuzkokov
8a48085267 Add DevicePolicyManager.setBackupServiceEnabled as hidden API.
am: 5a122a1ce9

Change-Id: I134891f0b24cc666c34ae54cb3c937ba2f16648e
2016-09-22 20:03:40 +00:00
TreeHugger Robot
6b87569b4c Merge "Null check for restoring LoaderManagers" into nyc-mr1-dev 2016-09-22 19:29:25 +00:00
TreeHugger Robot
8da796d0b8 Merge "Save activity state before stopping acitivity when device sleeps" into nyc-mr1-dev 2016-09-22 19:27:27 +00:00
Adam Powell
100ba76d7a Null check for restoring LoaderManagers
Bug 31671195
Test: core/tests/coretests/src/android/app/LoaderLifecycleTest.java

Change-Id: Ib553f7611814cc6759488aec505fd126ee664a9d
2016-09-22 10:53:45 -07:00
Shuo Gao
1e6d77e836 Enable shader cache for applications that shared UID with multiple packages too
Bug: 31224514

Frameworks supported a mature mechanism for shader cache per each package already,
but as a special case such as Settings APP, if there are several packages in this
application which means that multiple packages shared the same SharedUserID with it,
it won't initialize the graphics disk caches, thereby APP like Settings have to
rebuild and relink shader every time during launch, which cause a bad launching
performance, so here to enable the GFX and RS cache initialization for multiple
shared packages case too.

Change-Id: If0f927e3399b775804abf1d9a868887951f471c5
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
(cherry picked from commit 7c69a669a5)
2016-09-22 10:46:49 -07:00
Vladislav Kuzkokov
dd6230d466 Merge "Add DevicePolicyManager.setBackupServiceEnabled as hidden API." into nyc-mr1-dev 2016-09-22 17:09:06 +00:00
Alan Viverette
8817aa9339 Allow developer to override Material-style modes in picker dialogs
A recent fix prevented developers from specifying Holo-style mode when
displaying a date or time picker dialog. This CL also cleans up unused
code in TimePickerDialog and documents how themeResId will be used.

Adds hidden @TestApi methods for use in CTS tests. These may be made
public later, but it's too late in MR1 for API changes.

Bug: 31586821
Test: Ice2e203983769f1ea1cfa93105eb97b6fa5176b9
Change-Id: I1b7512b7647ddd7ab987beac2c0aef4fe7cc16bc
2016-09-22 11:16:22 -04:00
John Reck
be12cb08b0 Merge "Fix a bunch of repeated reads of a ro.* property" 2016-09-22 15:15:08 +00:00
Wale Ogunwale
b5066fe307 Save activity state before stopping acitivity when device sleeps
Makes it consistent with the regular stop code path and allows
for the activity to be relaunched with the right state if a
relaunch happens after stop due to sleep.

Bug: 30241363
Change-Id: I92edfe6e0e3f5c7ce3b56d49df31e601a798cd4f
2016-09-22 07:32:40 -07:00
Adam Powell
4dadd95b54 Don't hold old host callback for fragments on the back stack am: 180202f221 am: 5254ef7bd3
am: d10cf26137

Change-Id: Ia02f0612f1665c412e0eedf1a2172d9919e0bd28
2016-09-22 06:48:37 +00:00
TreeHugger Robot
9e4a6401d0 Merge "Use separate switch ops for runtime permissions" 2016-09-22 05:04:41 +00:00
Adam Powell
d10cf26137 Don't hold old host callback for fragments on the back stack am: 180202f221
am: 5254ef7bd3

Change-Id: I067c4fc441b34a7f9edfdbfee0995e91054fb890
2016-09-22 05:00:40 +00:00
Chris Tate
fe4252db76 Merge "Fix WallpaperManager APIs" am: 73e89cd290 am: 6e1400f43f am: 2cc80a362a
am: a03b5be55c

Change-Id: I275ff3e8b133084af043e36d20f3cbd2b91f161f
2016-09-22 04:56:11 +00:00
Adam Powell
5254ef7bd3 Don't hold old host callback for fragments on the back stack
am: 180202f221

Change-Id: I7f2c4c8d340b1b54d3e9ded5819e19fa3e4bc83e
2016-09-22 03:52:35 +00:00
Svet Ganov
99e4d51584 Use separate switch ops for runtime permissions
If permissions review is enabled we allow individual
control of fine graned permissions in the SMS group.
This change ensures these permissions use the
corresponding app op as a switch to allow indifidual
control.

Change-Id: I83cd78a78a8266df8324b8a10cd9e36c04ff3112
2016-09-21 19:56:27 -07:00
TreeHugger Robot
33c9713bdd Merge "Don't hold old host callback for fragments on the back stack" into nyc-mr1-dev 2016-09-22 00:50:00 +00:00
Christopher Tate
38c9c30640 Add hidden intent extra about service availability
Backup has some subsidiary UI needs that are vendor specific,
and policy state is not readily observable from there.  We
therefore inform the sublaunched UI explicitly about the state
via an intent extra in the launch intent (rather than requiring
an API call from the launched UI).

Bug 30126678

Change-Id: I37f9530edbc00eea6c96f2c9fd67e878c07068c9
2016-09-21 17:18:10 -07:00
John Reck
aa67f684ff Fix a bunch of repeated reads of a ro.* property
SystemProperties.get() is not particularly fast,
especially if a string is returned. Since ro.* values
are unable to be changed, there's no need to
continously re-query them. Cache the value at
static init time to trivially fix this.

Test: refactoring CL.
Change-Id: Iccb021d3cb2ba3a4a1d0048ddec6811bb7409eec
2016-09-21 16:10:54 -07:00
Adam Powell
180202f221 Don't hold old host callback for fragments on the back stack
LoaderManagers configure their host callback lazily as their
associated fragment is brought up through its lifecycle states. In the
case of fragments on the fragment back stack this could happen very
late, if at all. As a LoaderManager's host callback references the
host Activity, this means that a LoaderManager could keep a destroyed
Activity reference alive.

Update the host callbacks of all LoaderManagers eagerly during the
restore non-configuration instance phase.

Bug: 30653222
Test: core/tests/coretests/src/android/app/LoaderLifecycleTest.java
Change-Id: I5d2b81daae5e7cae429fcf4934e64b3ce281140c
2016-09-21 15:47:06 -07:00
Edward Savage-Jones
6009d9db88 Fix WallpaperManager APIs
When support for lockscreen wallpapers was added in API level 24 the
behaviour for earlier API versions changed. Calls to the old 'set' APIs
no longer affect the overall device wallpaper, and can result in an end
user not being able to change their lockscreen wallpaper.

This upload restores the original API behaviour.

Bug: 31204228
Bug: 30456015
Change-Id: Ia16d2e2e379c54d798eef8f5c653099c2c581d78
2016-09-21 15:13:39 -07:00
Chris Tate
a03b5be55c Merge "Fix WallpaperManager APIs" am: 73e89cd290 am: 6e1400f43f
am: 2cc80a362a

Change-Id: I57bc74595d92a6c1bfe0d2c9cc75e442723c4f4c
2016-09-21 20:47:24 +00:00
Chris Tate
2cc80a362a Merge "Fix WallpaperManager APIs" am: 73e89cd290
am: 6e1400f43f

Change-Id: I1b220d887daefe160472fb41959a03eb20e1b98e
2016-09-21 20:39:56 +00:00