Commit Graph

13795 Commits

Author SHA1 Message Date
Jorim Jaggi
da6e14bc53 Merge "Schedule trimMemory after drawing the frame" into pi-dev am: 6b8014f5c8
am: 7b7d830f5a

Change-Id: I7b56dc55c46db0dff80b3d0ace439f5e83599100
2018-05-18 12:24:55 -07:00
Jorim Jaggi
7b7d830f5a Merge "Schedule trimMemory after drawing the frame" into pi-dev
am: 6b8014f5c8

Change-Id: I72c7feccb531f2a19aa2b19ea860802e0d779578
2018-05-18 11:57:44 -07:00
Jorim Jaggi
6b8014f5c8 Merge "Schedule trimMemory after drawing the frame" into pi-dev 2018-05-18 18:26:03 +00:00
Selim Cinek
bb04645502 Merge "Keep notification when sending smart reply." into pi-dev am: f75019b810
am: 8cfe436bb1

Change-Id: I9868acc1aa75a4389890634abdec18cef286ab5d
2018-05-18 09:42:56 -07:00
Selim Cinek
8cfe436bb1 Merge "Keep notification when sending smart reply." into pi-dev
am: f75019b810

Change-Id: Idb981e0977880c6bf47267b4ecef793adad3e6d3
2018-05-18 09:32:18 -07:00
Jorim Jaggi
b29e318e03 Schedule trimMemory after drawing the frame
Fixes jank issues where trimMemory gets scheduled during an
animation. trimMemory likely hits code that is not in the
page cache anymore, leading to high execution time because of page
misses. Scheduling it after the next frame has been drawn
minimizes the risk that this page miss actually causes jank.

Test: Boot, switch between a couple of apps.
Bug: 78611607
Change-Id: Ia1fc411fbe6ca07861183ae484124406681118e5
2018-05-18 18:26:30 +02:00
Kenny Guy
8cc15d2ebf Keep notification when sending smart reply.
If an app cancels a notification while we are
sending a smart reply then don't dismiss the
notification.

Bug: 79120026
Test: atest NotificationEntryManagerTest
Test: atest SmartReplyControllerTest
Test: atest statusbar.NotificationListenerTest
Test: atest NotificationRemoteInputManagerTest

Change-Id: Ibbc0014ae0aeb12b58be13c041d720903251490f
2018-05-17 20:16:25 +01:00
Robert Benea
1dda2f4e40 Merge "Replace HashMap with ArrayMap for services" 2018-05-17 16:02:08 +00:00
Wale Ogunwale
5ab2be0941 Merge "Adde back check to make sure Activity.recreate() is called on main thread." into pi-dev am: 5f8e42f7f0
am: a0f7325823

Change-Id: Ib0e04145df03616a1b0109634d55ea6972a76b6d
2018-05-16 22:23:26 -07:00
Wale Ogunwale
a0f7325823 Merge "Adde back check to make sure Activity.recreate() is called on main thread." into pi-dev
am: 5f8e42f7f0

Change-Id: I9c110947941b4ccb9404b350eb507ec30e701ffc
2018-05-16 22:10:57 -07:00
TreeHugger Robot
5f8e42f7f0 Merge "Adde back check to make sure Activity.recreate() is called on main thread." into pi-dev 2018-05-17 05:01:33 +00:00
Shaowei Shen
59b814ff67 Merge "Update javadoc of BackupObserver" 2018-05-17 01:45:21 +00:00
Wale Ogunwale
0527d9129d Adde back check to make sure Activity.recreate() is called on main thread.
Change-Id: Id8fa7e1c17ee3d42a19c82dc8cc1fec2de1757d1
Fixes: 79703568
Test: Existing test pass.
2018-05-16 17:23:48 -07:00
Dianne Hackborn
dab58f3b55 Merge "More app ops fg/bg tuning" into pi-dev am: cd835ba418
am: 863d2a46db

Change-Id: I8f5756cbecc59297d252f87de1829087b67c2575
2018-05-16 13:17:51 -07:00
Dianne Hackborn
863d2a46db Merge "More app ops fg/bg tuning" into pi-dev
am: cd835ba418

Change-Id: Id6a026dabee96a175aac5b40b80487c8ed1ab511
2018-05-16 13:06:47 -07:00
Dianne Hackborn
cd835ba418 Merge "More app ops fg/bg tuning" into pi-dev 2018-05-16 19:48:54 +00:00
Robert Benea
1901a5b483 Replace HashMap with ArrayMap for services
The number of services is pretty limited (100ish), use the more
memory efficient Map.

Test: tested on android go
Change-Id: I092c6816afba77fde4195c68a211804d4a561b77
2018-05-16 12:06:41 -07:00
Jason Monk
44aaa2a034 Merge "Add some null checks to slices" into pi-dev am: 0689312acb
am: 9473edd1da

Change-Id: I4f87ba2997047e0721a0c1e9ce3f4047af17c709
2018-05-16 07:59:22 -07:00
Daniel Sandler
d5aec11050 Merge "Improved notification interruptiveness calculation." into pi-dev am: 4da6e1f3b0
am: 63257f50b5

Change-Id: Ia8f3ef78d801759c8fae8e76f2838609ef861e55
2018-05-16 07:51:27 -07:00
Jason Monk
9473edd1da Merge "Add some null checks to slices" into pi-dev
am: 0689312acb

Change-Id: Id936f04e9b54b565547b612cc341f9b7672bb186
2018-05-16 07:46:41 -07:00
Daniel Sandler
63257f50b5 Merge "Improved notification interruptiveness calculation." into pi-dev
am: 4da6e1f3b0

Change-Id: Iab0568f6dde4b247480b1fc259d3e65e50074cd9
2018-05-16 07:41:39 -07:00
TreeHugger Robot
0689312acb Merge "Add some null checks to slices" into pi-dev 2018-05-16 14:27:42 +00:00
Daniel Sandler
4da6e1f3b0 Merge "Improved notification interruptiveness calculation." into pi-dev 2018-05-16 14:23:38 +00:00
Dan Sandler
7d67bd4fd7 Improved notification interruptiveness calculation.
Apparently comparing Spannables is dangerous because
the various Span classes do not implement .equals() in any
meaningful way, so all CharSequences must be converted to
flat Strings before being compared.

Lots of additional debug code remains, for the next time we
don't understand why an innocuous notification update
appears to be interruptive.

Test: atest com.android.server.notification.NotificationManagerServiceTest
      atest com.android.server.notification.NotificationTest
Bug: 78643290
Change-Id: I1c282238687f28b5b197e28a4b878dc697049f4d
2018-05-16 08:32:09 -04:00
shaoweishen
71f6a351a3 Update javadoc of BackupObserver
Update javadoc description of IBackupObserver.We report failure to
backupFinished only if transport failure.

Bug: 79235996

Test: none
Change-Id: I1286b5fdda5e1448b9daff93508a01d63e1b12ea
2018-05-16 09:57:54 +08:00
Jason Monk
8938932a0a Add some null checks to slices
It'll make developer debugging experience sooo much nicer.

Test: manual
Bug: 79773776
Change-Id: Ie0a826c5572752e2bb50db7669374a1698333770
2018-05-15 21:13:16 -04:00
Jason Monk
77fe017cc1 Merge "Add shell command to get slice permissions" into pi-dev am: 33da7043af
am: fb9ecfc861

Change-Id: I00c55d4bf46985dbd4a638cac897ed2465b702bf
2018-05-15 17:58:11 -07:00
Jason Monk
fb9ecfc861 Merge "Add shell command to get slice permissions" into pi-dev
am: 33da7043af

Change-Id: I14985fc75c6066cc0c21df870300d435d5127299
2018-05-15 17:47:41 -07:00
TreeHugger Robot
33da7043af Merge "Add shell command to get slice permissions" into pi-dev 2018-05-16 00:12:32 +00:00
Jason Monk
7f01f3b619 Add shell command to get slice permissions
Lets shell/root get a list of pkgs that have access to any slices
within an authority.

Test: manual
Bug: 78136892
Change-Id: Id33fd458ed5ad73b30f69b3a464676428344e446
2018-05-15 18:55:49 -04:00
Kodlee Yin
f020d13008 Merge "Update RemoteInput#setChoices documentation" into pi-dev am: bef37f23d6
am: f4a2505e3e

Change-Id: I8490319bf518be784fa73902bc4535f22e96727a
2018-05-15 15:14:54 -07:00
Kodlee Yin
f4a2505e3e Merge "Update RemoteInput#setChoices documentation" into pi-dev
am: bef37f23d6

Change-Id: Ibecefb1b3dcf0350190cb2d0de5bed149786d294
2018-05-15 14:28:26 -07:00
Kodlee Yin
4b3a547107 Update RemoteInput#setChoices documentation
The behavior that #setChoices didn't render on mobile devices from apps
that target SDK < P went undocumented. Because this is changing in P and
above, this documentation needs to point out this behavior.

Also updated formatting and style of docs to improve interop with
kotlin.

Test: none
Bug: 79244189
Change-Id: Iabfe3b2ddcc369e5ec15f9773481468cbc48dabb
2018-05-15 19:46:57 +00:00
Amith Yamasani
aa8724bc31 Merge "Rethrow SecurityExceptions in UsageStatsManager" into pi-dev am: c1eddaed6e
am: 92e2dadc0d

Change-Id: I61d7a43cc80a41ef2681f4c51ceedef538933a4b
2018-05-15 11:53:02 -07:00
Amith Yamasani
92e2dadc0d Merge "Rethrow SecurityExceptions in UsageStatsManager" into pi-dev
am: c1eddaed6e

Change-Id: I3a8bdfe2858c88854ab15aba6a619aac1fd66945
2018-05-15 11:00:25 -07:00
TreeHugger Robot
c1eddaed6e Merge "Rethrow SecurityExceptions in UsageStatsManager" into pi-dev 2018-05-15 17:40:32 +00:00
Dianne Hackborn
e93ab41d2a More app ops fg/bg tuning
- Only report that something has changed when a uid changes between
  the restricted and unrestricted states.  (Adds new constant that
  defines this important division point.)

- Have different settle times for different key transitions: (a)
  out of the top state, (b) out of any other unrestricted state,
  (c) down to a lower background state.

- But, don't apply any settle time when transitioning from top to
  another unrestricted state...  there is no need to.

Bug: 78480444
Test: manual
Change-Id: Ife772858009a6da5c286e285a4059aea3ad3f6c7
2018-05-15 10:27:40 -07:00
Jason Monk
5364b63a51 Merge "Fix crash when loading resources without code" into pi-dev am: c46279aa98
am: 2af66fb30f

Change-Id: Ib5d396772eef78971a1c4750bebe72ba49fdaef2
2018-05-15 10:00:29 -07:00
Jason Monk
2af66fb30f Merge "Fix crash when loading resources without code" into pi-dev
am: c46279aa98

Change-Id: I3af4a66f050380c507ec59b9136f2ef6a4f41848
2018-05-15 09:52:15 -07:00
TreeHugger Robot
c46279aa98 Merge "Fix crash when loading resources without code" into pi-dev 2018-05-15 16:33:20 +00:00
Jason Monk
2544c6917a Fix crash when loading resources without code
Should use default appComponentFactory, not the actual one from the
app because we have no code.

Test: manual
Change-Id: I982967543c4cf5c28b19b36b6d183a30052bf602
Fixes: 78883500
2018-05-15 11:30:09 -04:00
Felipe Leme
ef2b5b8a9a Merge "Don't call setAutofillClient() on base Context if it's null." into pi-dev am: 6d0842154b
am: aae288a6a5

Change-Id: I8f543b2e8066d8f54baf3bf846de585f8a7631da
2018-05-14 23:09:16 -07:00
Felipe Leme
aae288a6a5 Merge "Don't call setAutofillClient() on base Context if it's null." into pi-dev
am: 6d0842154b

Change-Id: Ifc971e81483b5bcf08c6f0af9789b88905dc17ad
2018-05-14 23:01:10 -07:00
TreeHugger Robot
6d0842154b Merge "Don't call setAutofillClient() on base Context if it's null." into pi-dev 2018-05-15 05:47:51 +00:00
Felipe Leme
d247de85bb Don't call setAutofillClient() on base Context if it's null.
Test: atest CtsAutoFillServiceTestCases
Test: changed activity on autofill sample to override attachBaseContext() by
      calling super.attachBaseContext(null) - the activity still crashes, but
      not on attachBaseContext().

Fixes: 79707861

Change-Id: Idfaa9c596cc338ab815441138ce06ba64cd3b4d2
2018-05-14 18:03:15 -07:00
Amith Yamasani
fd44f27b51 Rethrow SecurityExceptions in UsageStatsManager
Some of the newer methods were not rethrowing the system server
exceptions. When not returning a default value, rethrow the
RemoteException from the system server.

Bug: 79692228
Test: atest CtsUsageStatsTestCases:UsageStatsTest
Change-Id: I7b2ae735fc97f3e1903903ed5c98ce914aeaa84a
2018-05-14 14:47:19 -07:00
Dianne Hackborn
2b8336f241 Merge "Allow device/profile owners to change app ops modes." into pi-dev am: adaca2146d
am: 82a87674ce

Change-Id: Id4a52aaca3d94075ff179141e96fba5c7326d4ee
2018-05-14 14:32:23 -07:00
Dianne Hackborn
82a87674ce Merge "Allow device/profile owners to change app ops modes." into pi-dev
am: adaca2146d

Change-Id: I23dc01f573266a182fff2106318b867920a3f91a
2018-05-14 14:22:38 -07:00
Dianne Hackborn
adaca2146d Merge "Allow device/profile owners to change app ops modes." into pi-dev 2018-05-14 20:43:31 +00:00
Dianne Hackborn
d52544183e Allow device/profile owners to change app ops modes.
This allows them to continue to have this capability the
same as before we locked down access to it.

Bug: 78480444
Test: manual
Change-Id: If2b0722945235eb67676ace3f54efaa71a64bcde
2018-05-14 11:29:43 -07:00