Commit Graph

92109 Commits

Author SHA1 Message Date
TreeHugger Robot
8e69adbd07 Merge "Fix TextView#setText misplaced documentation" 2018-05-17 17:21:29 +00:00
TreeHugger Robot
da84578750 Merge "(Behind flag) Wireless charging vibration feedback" 2018-05-17 17:15:20 +00:00
Robert Benea
1dda2f4e40 Merge "Replace HashMap with ArrayMap for services" 2018-05-17 16:02:08 +00:00
Mihai Popa
5b3a42319c Fix TextView#setText misplaced documentation
In Ifaddb46d156c495a371789c6f32cfd67ffaaaef2, we improved the
documentation of TextView#setText to state an assumption that should
hold when subclasses override the method. However, the new phrase was
put in the wrong place. This CL fixes this.

Bug: none
Test: none
Change-Id: I918a6c533b9e4b34b3977a20e979a10db9741ebc
2018-05-17 16:42:22 +01:00
Beverly
69721d647c (Behind flag) Wireless charging vibration feedback
- to turn vibration feedback on wireless charging:
    adb shell settings put global charging_vibration_enabled 1

Test: manual
Bug: 74505795
Change-Id: I177bc05e75bb9e66a88b45432eee778ab619e28f
2018-05-17 15:39:49 +00:00
Abodunrinwa Toki
cfb880c6e0 Merge "Use FLAG_UPDATE_CURRENT for TC PendingIntents." into pi-dev am: 2085646c7d
am: 402a57bac2

Change-Id: Ia8bb7755472d05b74a9d9efb6b4e6df7b4d52b8a
2018-05-17 03:36:59 -07:00
Abodunrinwa Toki
402a57bac2 Merge "Use FLAG_UPDATE_CURRENT for TC PendingIntents." into pi-dev
am: 2085646c7d

Change-Id: I9d1e0082911fcad4d729c8eace3b960bf6af0d2d
2018-05-17 03:24:22 -07:00
TreeHugger Robot
2cbfebd67b Merge "Add TextLayout.measure test cases" 2018-05-17 10:23:30 +00:00
TreeHugger Robot
2085646c7d Merge "Use FLAG_UPDATE_CURRENT for TC PendingIntents." into pi-dev 2018-05-17 10:11:19 +00:00
Dieter Hsu
6ce3db4976 Merge "Trigger action for app ops icon for keyboard navigation" into pi-dev am: 7f91c59b3e
am: a30db99a93

Change-Id: I230703ca8de3ca0e7949f212cc2af1c95ffcc38c
2018-05-16 23:22:11 -07:00
Dieter Hsu
a30db99a93 Merge "Trigger action for app ops icon for keyboard navigation" into pi-dev
am: 7f91c59b3e

Change-Id: I8f03a5ed789794ac7825654e11aba9d438cfa005
2018-05-16 23:14:20 -07:00
Dieter Hsu
7f91c59b3e Merge "Trigger action for app ops icon for keyboard navigation" into pi-dev 2018-05-17 06:04:13 +00:00
Dieter Hsu
3a9b5a98dc Trigger action for app ops icon for keyboard navigation
Bug: 79671932
Test: manually check talkback, switch access and kb navigation
Change-Id: I8a2ed0fc8e6b565e923954fa87e61a20c83438c0
2018-05-17 06:03:58 +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
Seigo Nonaka
32afe26a00 Add TextLayout.measure test cases
Bug: 78464361
Test: atest android.text.TextLineTest
Change-Id: I62e05d4fe18c115060da918a2c9105f0e94fe4b0
2018-05-16 22:20:57 -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
lpeter
d62e8f174f Merge "[IdleController] Support dock scenario on idle or active judgement" into pi-dev am: 86b2581c16
am: 2fdc1b8b13

Change-Id: I0d6e38e4cc8a7f24874956a1382f476c8021e838
2018-05-16 20:27:18 -07:00
lpeter
2fdc1b8b13 Merge "[IdleController] Support dock scenario on idle or active judgement" into pi-dev
am: 86b2581c16

Change-Id: I11655b619b9ac5bce4819d20f550eb75769d5630
2018-05-16 20:16:38 -07:00
lpeter
318abc9324 [IdleController] Support dock scenario on idle or active judgement
In the current design, IdleController of Job service considers devices as ‘idle’ after 71 minutes of screen off. But under docking use scenario, devices screen might remain on for a very long time and it’s not necessary implying the device being interactive with users.
So create a mechanism for device to enter the ‘idle’ state that JobScheduler can kick off idle tasks.

Bug: 79183658
Test: atest DeviceStatesTest
Change-Id: I5b307ca51e28ffca63f79a9c43984c3b76e51629
2018-05-17 02:23:02 +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
Tony Mak
25e3969ccf Merge "TextSelection.Builder.setId should take null as well" into pi-dev am: 10f8ed0cf8
am: ed8e0f6fe6

Change-Id: Ie518095729244f18e9c5cebb2616b98be1b33ce1
2018-05-16 17:15:38 -07:00
Tony Mak
ed8e0f6fe6 Merge "TextSelection.Builder.setId should take null as well" into pi-dev
am: 10f8ed0cf8

Change-Id: I4ebb83d6fc174ad3bb68cfded32505dc29327ee3
2018-05-16 17:02:41 -07:00
TreeHugger Robot
10f8ed0cf8 Merge "TextSelection.Builder.setId should take null as well" into pi-dev 2018-05-16 23:52:14 +00:00
Olivier Gaillard
9429bf57d1 Track exception count using BinderCallStats.
Test: manual

Change-Id: I0ba876ff89749c67c7f422690ec45a18ffa1303e
2018-05-16 22:37:37 +01: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
Olivier Gaillard
5484e08ac6 Merge "Tracks binder call latencies in a similar way to cpu time." 2018-05-16 20:03:40 +00: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
Jeff Sharkey
39e3d378d7 Merge "Q." 2018-05-16 16:08:48 +00:00
Pete Gillin
24e959cc6b Merge "Merge "Stop using Arrays.checkOffsetAndCount. am: 60f55a255f" into stage-aosp-master am: 72629d9999" into pi-dev-plus-aosp
am: cb45faa86e

Change-Id: Ibabe1fec3050f26e0a3182077180009ccd3271ad
2018-05-16 08:44:56 -07:00
Pete Gillin
306481a63b Merge "Stop using Arrays.checkOffsetAndCount. am: 60f55a255f" into stage-aosp-master
am: 72629d9999

Change-Id: Ia8f5ce41c654cb6522c6ea5f2863d97f282ce268
2018-05-16 08:27:27 -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
Pete Gillin
a9d6a27a2e Stop using Arrays.checkOffsetAndCount.
am: 60f55a255f

Change-Id: Ic9f894d8fe813d0bb6e3776790ff113d2826d881
2018-05-16 07:11:54 -07: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
TreeHugger Robot
2147cfe02f Merge "Apply surface parameters in sync with RenderThread" 2018-05-16 01:42:30 +00: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
Sanry Huang
313120b2e3 Merge "Fix odd avatar when message sender is a number" into pi-dev am: cd5ca7e618
am: f975ab3bd6

Change-Id: I8dbc1d80b5b3c02167b5c306fa428b3c45edd732
2018-05-15 18:07:00 -07:00
Tony Mak
84368781ec TextSelection.Builder.setId should take null as well
TextSelection#Id is nullable, so the builder should take null as well.

Bug: 79779551
Test: Build
Change-Id: Iacabcab2befcbd4cb1c8674c253fe9a26cb877bf
2018-05-16 01:05:35 +00: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
Sanry Huang
f975ab3bd6 Merge "Fix odd avatar when message sender is a number" into pi-dev
am: cd5ca7e618

Change-Id: Iba352138169c6c916662230e14de62f2d8f77a87
2018-05-15 17:53:33 -07:00
Santos Cordon
a52be7cefa Merge "Add SCREEN_BRIGHTNESS_FOR_VR to set of public settings." into pi-dev am: 7830cd820b
am: 9cb0a9f1aa

Change-Id: If36f69de41e1caaaf6ec5adf47cca7b4935b222e
2018-05-15 17:51:18 -07:00