Commit Graph

9500 Commits

Author SHA1 Message Date
Adam Lesinski
18ac1a74ae Fix regression with defaultDisplay adjustments am: f02523bf4b am: be75a58447
am: cc903f425a

Change-Id: Id954c20f9d014cf26a4177f350f8941e6324adf3
2016-10-18 23:16:13 +00:00
Adam Lesinski
cc903f425a Fix regression with defaultDisplay adjustments am: f02523bf4b
am: be75a58447

Change-Id: I748eaefa1a99b9af5101177090cf906267620f0b
2016-10-18 23:03:51 +00:00
Adam Lesinski
f02523bf4b Fix regression with defaultDisplay adjustments
ag/1542219 introduced a regression where if the display was the default
display, the configuration would still be adjusted as if it were
a non-default display. This fixes that logic to only adjust the
configuration if the display is non-default.

Bug:32133693
Test: cts-tradefed run cts --module CtsServicesHostTestCases --test android.server.cts.ActivityManagerAppConfigurationTests#testConfigurationUpdatesWhenRotatingToSideFromDocked
Change-Id: Ib2fda8c1651609efa9d20b3e2dace8a122864916
2016-10-18 20:13:57 +00:00
Adam Lesinski
5dc0782254 Update DisplayMetrics even on default display am: 4309721843 am: dab7950d80
am: d7ec1ea697

Change-Id: Iad9907c77fb1b7b81073150807d6f18a75a24d6e
2016-10-14 22:49:40 +00:00
Adam Lesinski
d7ec1ea697 Update DisplayMetrics even on default display am: 4309721843
am: dab7950d80

Change-Id: I8bb2c9c303380abd3e1a54af68b8a8f7da3225f7
2016-10-14 22:41:35 +00:00
Adam Lesinski
4309721843 Update DisplayMetrics even on default display
Fix a bug where the DisplayMetrics wouldn't be updated for a Resources
object on the default display. Since multi-window, we want to update
all Resources.

This didn't always manifest itself due to recreation of assets, which
would force an update of DisplayMetrics. Re-use of an AssetManager from
the cache would expose the bug.

Bug:32133693
Bug:31998629
Test: cts-tradefed run cts --module CtsServicesHostTestCases
Change-Id: Ic51ab82710517b87eb995ccf982085dba876ad58
2016-10-14 18:16:18 +00:00
Julia Reynolds
3752e50766 Merge "Add support for snoozing notifications" 2016-10-14 12:38:17 +00:00
Michal Karpinski
fd0d22750f Don't expose default strong auth timeout as constant am: 6dbf67fc48
am: bc755da55c

Change-Id: Idb118df5cf1a763645f4187bcddfa4bb9b8b42ee
2016-10-13 23:00:24 +00:00
Michal Karpinski
bc755da55c Don't expose default strong auth timeout as constant
am: 6dbf67fc48

Change-Id: Iacbe9a2de7024e29e9c2c98594ebca828b855a43
2016-10-13 22:52:38 +00:00
TreeHugger Robot
a6b3caf58e Merge "Don't expose default strong auth timeout as constant" into nyc-mr1-dev 2016-10-13 22:47:30 +00:00
Christopher Tate
7cfcf2d1b3 Only full-data back up regular files + directories am: da2018efeb am: 0d816b8f69
am: 86208efdc9

Change-Id: I3e39c52cf9895de9b893b7ec6c8d3287af7693b0
2016-10-13 21:23:58 +00:00
Christopher Tate
86208efdc9 Only full-data back up regular files + directories am: da2018efeb
am: 0d816b8f69

Change-Id: I3b28c373c58ebebf27b1297e770d2023767e6396
2016-10-13 21:17:09 +00:00
Julia Reynolds
72f1cbb3b9 Add support for snoozing notifications
To a notification listener, snoozing will appear as a cancel
(with reason snoozed) followed by a post (when the snooze period
ends).

Apps can repost a snoozed notification, but the updates will not be shown
to the user until the snooze period ends.

Snoozing is canceled if the posting app or a notification listener
cancels the notification.

Any notification listener can snooze a notification. Technically apps
can snooze their own notifications also, though that's not public.

In this iteration snoozed notifications will be lost on device reboot.

Test: included. Also, various post, snooze, update, cancel tests with
a listener.

Bug: 30997603
Change-Id: I568a6448196f0992a17d20a4dac296321ec5092b
2016-10-13 16:18:11 -04:00
Christopher Tate
da2018efeb Only full-data back up regular files + directories
Ignore every filesystem entity that is not a regular file or directory.
In particular, we now ignore not only symlinks but also sockets, pipes,
et cetera.

Bug 32143362

Change-Id: If51b54df1f7a643af145eb15bf12d389d19f8780
2016-10-13 12:19:45 -07:00
Adrian Roos
d92272138d Fix Notification.Action.Builder copy constructor am: 7af5362571 am: 342bc437bf
am: 7bc84b803d

Change-Id: Ice60b61b4868d775b04423e7166182db382d28b2
2016-10-12 23:33:11 +00:00
Adrian Roos
7bc84b803d Fix Notification.Action.Builder copy constructor am: 7af5362571
am: 342bc437bf

Change-Id: I0387ab66ec3d44e34a884fb2f92f32af35e2883c
2016-10-12 23:25:20 +00:00
Adrian Roos
7af5362571 Fix Notification.Action.Builder copy constructor
The copy constructor of Notification.Action.Builder did not copy
the mAllowGeneratedReplies field.

Change-Id: I40fbe8950ee2232e2589ab3930a32bfbebe9fc89
Fixes: 31766718
Test: runtest --path $T/cts/tests/app/src/android/app/cts/NotificationTest.java
2016-10-12 15:19:55 -07:00
Michal Karpinski
6dbf67fc48 Don't expose default strong auth timeout as constant
The admin can instead use the value of 0 to reset to default.

Test: runtest --path frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/DevicePolicyManagerTest.java

Bug: 31430135
Change-Id: I0d6b29ca4eca65d7ca72a8975a0c28c9050a946c
(cherry picked from commit 943aabd11c)
2016-10-12 09:34:12 +00:00
TreeHugger Robot
d227a66aad Merge "Don't expose default strong auth timeout as constant" 2016-10-11 18:34:08 +00:00
Michal Karpinski
943aabd11c Don't expose default strong auth timeout as constant
The admin can instead use the value of 0 to reset to default.

Test: runtest --path frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/DevicePolicyManagerTest.java

Bug: 31430135
Change-Id: I0d6b29ca4eca65d7ca72a8975a0c28c9050a946c
2016-10-11 10:12:30 +01:00
Alex Hills
30e45f5de4 Updates documentation for MessagingStyle constructor am: fd590441c1 am: d86df31497
am: 21863add46

Change-Id: I1ab5b5f60df0c946040ed069a99e2b775bbee9a9
2016-10-10 15:27:37 +00:00
Robert Carr
6f10b511a9 When adding dialog window but not creating update the configuration. am: d7dbec7e4c am: 7696b0d06b
am: 3d2783c82b

Change-Id: Iaf8dd88bbbb63c7ebc5b5963f1e30a23d6df0909
2016-10-08 21:33:16 +00:00
Alex Hills
21863add46 Updates documentation for MessagingStyle constructor am: fd590441c1
am: d86df31497

Change-Id: I6bdc90b7fde47569823b49c556f3bca9b50b0e48
2016-10-07 20:50:26 +00:00
Alex Hills
d86df31497 Updates documentation for MessagingStyle constructor
am: fd590441c1

Change-Id: I341c9a18c5a64e8cb63ad277611b9e55f61047c1
2016-10-07 20:43:57 +00:00
TreeHugger Robot
67c70a263c Merge "Updates documentation for MessagingStyle constructor" into nyc-mr1-dev 2016-10-07 20:34:50 +00:00
Robert Carr
3d2783c82b When adding dialog window but not creating update the configuration. am: d7dbec7e4c
am: 7696b0d06b

Change-Id: I536f02e97cb0969859454fd6250703056bca0b93
2016-10-07 19:29:56 +00:00
Robert Carr
7696b0d06b When adding dialog window but not creating update the configuration.
am: d7dbec7e4c

Change-Id: I137783f64cec9f9134e1c66b123993d65397deb5
2016-10-07 19:21:51 +00:00
Rob Carr
93becf5148 Merge "When adding dialog window but not creating update the configuration." into nyc-mr1-dev 2016-10-07 19:16:02 +00:00
Alex Hills
fd590441c1 Updates documentation for MessagingStyle constructor
MessagingStyle expects the field userReplyName to be non-null, but the
documentation doesn't describe it as such. This updates the documentation
to say the field is required, and adds a NonNull annotation.

This has no behavior changes.

BUG:31747744
Change-Id: If832d059c276e856fba366dabfa8a5821bb63054
2016-10-07 15:44:23 +00:00
Christopher Tate
44cf2b869a Explicitly close FD binder parameters in backup/restore API calls am: 91bb0e5cca am: 3fa99a6d11
am: 79a3ee5a98

Change-Id: Idc4ae96cf8237bd6439604476d7f5e7887cb8655
2016-10-07 00:56:11 +00:00
Christopher Tate
79a3ee5a98 Explicitly close FD binder parameters in backup/restore API calls am: 91bb0e5cca
am: 3fa99a6d11

Change-Id: I4789534da734abbce9ec52fcbe9a754bd7bd9fa0
2016-10-06 20:36:26 +00:00
Christopher Tate
3fa99a6d11 Explicitly close FD binder parameters in backup/restore API calls
am: 91bb0e5cca

Change-Id: Ibdba35d9c4e17180a7593966b4d54d6fb9c03f02
2016-10-06 20:10:56 +00:00
Wale Ogunwale
02896ab713 Fixed issue with screen rotation not working for landscape<->seascape
Problem as introduced in the refactor to change how configuration works
in activity manager in ag/1460784. With the new change we don't call back
into window manager to set new configuration if there are no changes.
The new change is correct, however window manager was relying on this to
unfreeze the display since the rotation changed.
We now have activity manager return if it updated the configuration to
window manager when the rotation changes do window manager can decide
if it needs to perform additional actions like unfreezing the display.

Bug: 31916697
Test: CTS and Manual testing.
CTS: cts-tradefed run commandAndExit cts-dev --module CtsServicesHostTestCases --test android.server.cts.ActivityManagerDockedStackTests
Manual: Launch an app that suports all orientations and rotate it from
landscape to seascape.
Change-Id: I36ddeff1ccc9f6089227147b117a865571b8571e
2016-10-05 16:57:47 -07:00
Robert Carr
d7dbec7e4c When adding dialog window but not creating update the configuration.
When we dismiss the dialog as opposed to hide it, it is removed
from the local WindowManagerGlobal's list of ViewRoots. Thus it stops
receiving configuration changes. When first adding a ViewRoot it will
pull the configuration from the context, but in this case
we are reusing one which has already been added and removed
and no such action will occur.

Bug: 31004614
Change-Id: Ie247bcf1a14caf4a42413c6813e337aa4c88e3e4
2016-10-05 13:44:36 -07:00
Chris Tate
ee28c8c22c Merge "Explicitly close FD binder parameters in backup/restore API calls" into nyc-mr1-dev 2016-10-03 21:06:22 +00:00
Hemal Patel
1c2e1e5e0a Docs: Fixed the Service link am: 1918214589 am: e361f735d4
am: 417e4e4609

Change-Id: If4c8d3d91c199f3d9818514f507844bab8e38507
2016-10-01 02:00:13 +00:00
Hemal Patel
63b5e3ddd1 Docs: Fixed the Service link am: 1918214589
am: eb21088b67

Change-Id: Ia687d1ba27eee87abe412e8a8dd11e49e5f02100
2016-10-01 01:54:45 +00:00
Hemal Patel
417e4e4609 Docs: Fixed the Service link am: 1918214589
am: e361f735d4

Change-Id: If7fc70c876f999c8a1d6635a3d39bbcc85708dc9
2016-10-01 01:53:53 +00:00
Hemal Patel
e361f735d4 Docs: Fixed the Service link
am: 1918214589

Change-Id: I52410cb0cccf0c1c99b13504672acdb0eadb9bc5
2016-10-01 01:46:01 +00:00
Hemal Patel
eb21088b67 Docs: Fixed the Service link
am: 1918214589

Change-Id: Icfd4e033b7ef9bd915f106abc789f11fb4ede301
2016-10-01 01:45:58 +00:00
Christopher Tate
91bb0e5cca Explicitly close FD binder parameters in backup/restore API calls
CloseGuard is grateful.

Bug 30893100

Change-Id: Ia6bd4d88204839add59d9d245aad673d67b11bea
2016-09-30 17:52:19 -07:00
Hemal Patel
1918214589 Docs: Fixed the Service link
Bug: 29086415
Change-Id: Id9505ade39c19eb817f556d72f689568148e1782
2016-09-30 14:59:23 -07:00
TreeHugger Robot
c2370dfdd6 Merge "Add app op name string for a runtime permission" 2016-09-29 19:11:46 +00:00
TreeHugger Robot
bf2e4a3855 Merge "Set the Intent class loader for onActivityReenter." 2016-09-28 17:13:32 +00:00
George Mount
88f6bc82f9 Set the Intent class loader for onActivityReenter.
Bug 29992842

This is the same thing we do in ActivityThread#deliverResults
before calling Activity#dispatchActivityResult.

Test: Ic5510f1b3c3c453ca9035b167ce5379e9023be20

Change-Id: I3bb94572f13d8c9a7537dfa51e436702c00f5701
2016-09-27 15:37:59 -07:00
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
TreeHugger Robot
b0216412a2 Merge "Add count of WebView instances to meminfo" into nyc-mr1-dev 2016-09-26 14:33:31 +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