OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Disable direct share on low ram devices" into pi-dev am: 1f597da686
Zhi An Ng [Tue, 22 May 2018 18:39:39 +0000 (11:39 -0700)]
Merge "Disable direct share on low ram devices" into pi-dev am: 1f597da686
am: f5b7a6aef5

Change-Id: Ia6271766cbdea5bce4b92ebbe6f4e08a0a3d6b74

6 years agoMerge "Fix DynamicsProcessing effect defaults and documentation typo" into pi-dev...
Ricardo Garcia [Tue, 22 May 2018 18:32:08 +0000 (11:32 -0700)]
Merge "Fix DynamicsProcessing effect defaults and documentation typo" into pi-dev am: 7d195a5a87
am: bbb7ab957c

Change-Id: I4403b485caaf5e918503ea99edf64e8c5930c55f

6 years agoMerge "Improve document for Location#setExtras(Bundle)."
TreeHugger Robot [Tue, 22 May 2018 18:29:37 +0000 (18:29 +0000)]
Merge "Improve document for Location#setExtras(Bundle)."

6 years agoMerge "Disable direct share on low ram devices" into pi-dev
Zhi An Ng [Tue, 22 May 2018 18:26:15 +0000 (11:26 -0700)]
Merge "Disable direct share on low ram devices" into pi-dev
am: 1f597da686

Change-Id: I235df9bf2495d8f133cf127f99e7175e34a74188

6 years agoMerge "Fix DynamicsProcessing effect defaults and documentation typo" into pi-dev
Ricardo Garcia [Tue, 22 May 2018 18:15:52 +0000 (11:15 -0700)]
Merge "Fix DynamicsProcessing effect defaults and documentation typo" into pi-dev
am: 7d195a5a87

Change-Id: I4d696d45f85e943c7fd738fa0f024a5a79e2b61c

6 years agoMerge "Disable direct share on low ram devices" into pi-dev
Zhi An Ng [Tue, 22 May 2018 18:08:22 +0000 (18:08 +0000)]
Merge "Disable direct share on low ram devices" into pi-dev

6 years agoMerge "Add more hidden API to light greylist" into pi-dev am: f4f5eb0802
David Brazdil [Tue, 22 May 2018 18:05:10 +0000 (11:05 -0700)]
Merge "Add more hidden API to light greylist" into pi-dev am: f4f5eb0802
am: 673a554b62

Change-Id: I12be05e87e4fb99aa7eda30d4bf8257b245cadd2

6 years agoMerge "Fix DynamicsProcessing effect defaults and documentation typo" into pi-dev
Ricardo Garcia [Tue, 22 May 2018 18:00:06 +0000 (18:00 +0000)]
Merge "Fix DynamicsProcessing effect defaults and documentation typo" into pi-dev

6 years agoMerge "Marks deprecated StatsManager APIs." into pi-dev am: 4245b12ef9
David Chen [Tue, 22 May 2018 17:55:58 +0000 (10:55 -0700)]
Merge "Marks deprecated StatsManager APIs." into pi-dev am: 4245b12ef9
am: 09889edcfb

Change-Id: I571ec092ffb9f007be812294e9c7ec47f923c141

6 years agoMerge "Initialize mPendingAutoBrightnessAdjustment to NaN." into pi-dev am: a424c79c49
Michael Wright [Tue, 22 May 2018 17:50:37 +0000 (10:50 -0700)]
Merge "Initialize mPendingAutoBrightnessAdjustment to NaN." into pi-dev am: a424c79c49
am: d1f126193d

Change-Id: I80130d84fd4db1b3e9814f95eb1eb992704e9407

6 years agoMerge "Add more hidden API to light greylist" into pi-dev
David Brazdil [Tue, 22 May 2018 17:47:03 +0000 (10:47 -0700)]
Merge "Add more hidden API to light greylist" into pi-dev
am: f4f5eb0802

Change-Id: Ied4c12b23db41a7dd425bfaf690628e3bf7bfaba

6 years agoMerge "Marks deprecated StatsManager APIs." into pi-dev
David Chen [Tue, 22 May 2018 17:41:51 +0000 (10:41 -0700)]
Merge "Marks deprecated StatsManager APIs." into pi-dev
am: 4245b12ef9

Change-Id: I665660fa8ccf68d80c1ba315772b52d38d2bc87d

6 years agoMerge "Initialize mPendingAutoBrightnessAdjustment to NaN." into pi-dev
Michael Wright [Tue, 22 May 2018 17:37:34 +0000 (10:37 -0700)]
Merge "Initialize mPendingAutoBrightnessAdjustment to NaN." into pi-dev
am: a424c79c49

Change-Id: I18787bf2c769f98ca926aec3f065083f5816d95b

6 years agoMerge "wifi.proto score experiment id" into pi-dev am: 28aa545c57
Michael Plass [Tue, 22 May 2018 17:37:21 +0000 (10:37 -0700)]
Merge "wifi.proto score experiment id" into pi-dev am: 28aa545c57
am: 380372d086

Change-Id: I70be54b6cdbe014b4ca651e795a59c8c69a3c684

6 years agoMerge "Add more hidden API to light greylist" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 17:28:38 +0000 (17:28 +0000)]
Merge "Add more hidden API to light greylist" into pi-dev

6 years agoMerge "wifi.proto score experiment id" into pi-dev
Michael Plass [Tue, 22 May 2018 17:26:16 +0000 (10:26 -0700)]
Merge "wifi.proto score experiment id" into pi-dev
am: 28aa545c57

Change-Id: I9544c6cc8a010a5ea10b6cbb5b65901db0eb929c

6 years agoMerge "Marks deprecated StatsManager APIs." into pi-dev
TreeHugger Robot [Tue, 22 May 2018 17:20:34 +0000 (17:20 +0000)]
Merge "Marks deprecated StatsManager APIs." into pi-dev

6 years agoMerge "Fix issue with home activity started with standard activity type" into pi...
Winson Chung [Tue, 22 May 2018 17:18:09 +0000 (10:18 -0700)]
Merge "Fix issue with home activity started with standard activity type" into pi-dev am: 25a1d9d898
am: e485fe13be

Change-Id: Icf66b31509133ce4d26f91751082c872bab4ec41

6 years agoMerge "Initialize mPendingAutoBrightnessAdjustment to NaN." into pi-dev
TreeHugger Robot [Tue, 22 May 2018 17:17:51 +0000 (17:17 +0000)]
Merge "Initialize mPendingAutoBrightnessAdjustment to NaN." into pi-dev

6 years agoMerge "wifi.proto score experiment id" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 17:15:01 +0000 (17:15 +0000)]
Merge "wifi.proto score experiment id" into pi-dev

6 years agoMerge "Fix issue with home activity started with standard activity type" into pi-dev
Winson Chung [Tue, 22 May 2018 17:07:47 +0000 (10:07 -0700)]
Merge "Fix issue with home activity started with standard activity type" into pi-dev
am: 25a1d9d898

Change-Id: If0ebf8ac3100dbef8b97c4c8eba50857f483d74e

6 years agoMerge "Fix issue with home activity started with standard activity type" into pi-dev
Winson Chung [Tue, 22 May 2018 16:50:00 +0000 (16:50 +0000)]
Merge "Fix issue with home activity started with standard activity type" into pi-dev

6 years agoAdd more hidden API to light greylist
David Brazdil [Tue, 22 May 2018 16:04:58 +0000 (17:04 +0100)]
Add more hidden API to light greylist

Bug: 64382372
Bug: 73996629
Bug: 79871934
Bug: 79576591
Bug: 78034693
Bug: 74355140
Bug: 79580933
Bug: 79560744
Bug: 79560739
Bug: 79571047
Test: make
Change-Id: I5606cd3f1649a5cbb9a47484c22c88d3f57a463f

6 years agoMerge "Do not throw IllegalArgumentException in slice manager." into pi-dev am: 1a315...
Steven Wu [Tue, 22 May 2018 15:38:08 +0000 (08:38 -0700)]
Merge "Do not throw IllegalArgumentException in slice manager." into pi-dev am: 1a31586918
am: b37470ff6d

Change-Id: I57791d3bb1ba5d22bde6d15adad54ba79b97552f

6 years agoMerge "Do not throw IllegalArgumentException in slice manager." into pi-dev
Steven Wu [Tue, 22 May 2018 15:27:58 +0000 (08:27 -0700)]
Merge "Do not throw IllegalArgumentException in slice manager." into pi-dev
am: 1a31586918

Change-Id: If200a6f4ca5556c367fb427b93e580d3bb2a39a6

6 years agoMerge "Do not throw IllegalArgumentException in slice manager." into pi-dev
TreeHugger Robot [Tue, 22 May 2018 15:16:26 +0000 (15:16 +0000)]
Merge "Do not throw IllegalArgumentException in slice manager." into pi-dev

6 years agoMerge "GM2 Icons (3 of (?3?))" into pi-dev am: 6433ac13bd
Evan Laird [Tue, 22 May 2018 15:12:24 +0000 (08:12 -0700)]
Merge "GM2 Icons (3 of (?3?))" into pi-dev am: 6433ac13bd
am: 147025feb6

Change-Id: Id936a2bfec1d92a7196a1c9f7392e2ee0d710c3a

6 years agoMerge "Override getDrawingRect for wifi and mobile views" into pi-dev am: f6837ffba0
Evan Laird [Tue, 22 May 2018 15:07:46 +0000 (08:07 -0700)]
Merge "Override getDrawingRect for wifi and mobile views" into pi-dev am: f6837ffba0
am: 221ff9454b

Change-Id: I288f6e66b2174be108946d71e10aac47a9570403

6 years agoMerge "Merge "PacProcessor: Include libpac as a JNI_SHARED_LIBRARY." am: 00c0a5bb23...
Narayan Kamath [Tue, 22 May 2018 15:00:12 +0000 (08:00 -0700)]
Merge "Merge "PacProcessor: Include libpac as a JNI_SHARED_LIBRARY." am: 00c0a5bb23 am: 1d33d10cda" into pi-dev-plus-aosp
am: 06867af8ab

Change-Id: I2c9ffe4f64771308522fb639903fe12a1b580711

6 years agoMerge "GM2 Icons (3 of (?3?))" into pi-dev
Evan Laird [Tue, 22 May 2018 14:54:58 +0000 (07:54 -0700)]
Merge "GM2 Icons (3 of (?3?))" into pi-dev
am: 6433ac13bd

Change-Id: I29d49b190afa0e5309b1af956216cee0fd22592b

6 years ago[automerger skipped] Merge "Update light greylist from bug scrape." into pi-dev am...
Mathew Inwood [Tue, 22 May 2018 14:47:13 +0000 (07:47 -0700)]
[automerger skipped] Merge "Update light greylist from bug scrape." into pi-dev am: 16a3af9370
am: 4e82c50e15  -s ours

Change-Id: Id3397c49e4ee0370b4f04cc697fa94dc07fc18cd

6 years agoMerge "Override getDrawingRect for wifi and mobile views" into pi-dev
Evan Laird [Tue, 22 May 2018 14:46:42 +0000 (07:46 -0700)]
Merge "Override getDrawingRect for wifi and mobile views" into pi-dev
am: f6837ffba0

Change-Id: Ifcfdff129a94d00b82ce9522d68dc92f0875ddf4

6 years agoInitialize mPendingAutoBrightnessAdjustment to NaN.
Michael Wright [Tue, 22 May 2018 14:35:05 +0000 (15:35 +0100)]
Initialize mPendingAutoBrightnessAdjustment to NaN.

It currently defaults to 0 which is a valid adjustment, so if you have
a pre-existing adjustment it will get reset at every reboot and look
like a user adjustment.

Also, go ahead and set the pending adjustment to NaN if we've seen it
before so we don't try to apply it again in the future.

Bug: 80119319
Test: manual
Change-Id: I206f6d631ec2977a2c1a44f91e0c6c6a09ccd7ec

6 years agoMerge "GM2 Icons (3 of (?3?))" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 14:42:17 +0000 (14:42 +0000)]
Merge "GM2 Icons (3 of (?3?))" into pi-dev

6 years agoMerge "Merge "PacProcessor: Include libpac as a JNI_SHARED_LIBRARY." am: 00c0a5bb23...
Android Build Merger (Role) [Tue, 22 May 2018 14:39:20 +0000 (14:39 +0000)]
Merge "Merge "PacProcessor: Include libpac as a JNI_SHARED_LIBRARY." am: 00c0a5bb23 am: 1d33d10cda" into pi-dev-plus-aosp

6 years agoMerge "PacProcessor: Include libpac as a JNI_SHARED_LIBRARY." am: 00c0a5bb23
Narayan Kamath [Tue, 22 May 2018 14:38:49 +0000 (07:38 -0700)]
Merge "PacProcessor: Include libpac as a JNI_SHARED_LIBRARY." am: 00c0a5bb23
am: 1d33d10cda

Change-Id: I45bbdc5504dd9bce8a99b085a0dda4e51af3d6e2

6 years agoMerge "Override getDrawingRect for wifi and mobile views" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 14:38:27 +0000 (14:38 +0000)]
Merge "Override getDrawingRect for wifi and mobile views" into pi-dev

6 years agoMerge "Update light greylist from bug scrape." into pi-dev
Mathew Inwood [Tue, 22 May 2018 14:37:52 +0000 (07:37 -0700)]
Merge "Update light greylist from bug scrape." into pi-dev
am: 16a3af9370

Change-Id: I9498800ba8d3792536c046d4f6e693104e5442fc

6 years agoMerge "Cheaper crash check post smart selection animation"
TreeHugger Robot [Tue, 22 May 2018 14:33:28 +0000 (14:33 +0000)]
Merge "Cheaper crash check post smart selection animation"

6 years agoMerge "PacProcessor: Include libpac as a JNI_SHARED_LIBRARY."
Narayan Kamath [Tue, 22 May 2018 14:29:24 +0000 (07:29 -0700)]
Merge "PacProcessor: Include libpac as a JNI_SHARED_LIBRARY."
am: 00c0a5bb23

Change-Id: I976e0c64ee6000a053449b3e41a03f37fe79403c

6 years agoMerge "Update light greylist from bug scrape." into pi-dev
Mathew Inwood [Tue, 22 May 2018 14:25:36 +0000 (14:25 +0000)]
Merge "Update light greylist from bug scrape." into pi-dev

6 years agoMerge "End the TC session on terminal selection event actions" into pi-dev am: d0a4dddb9b
Abodunrinwa Toki [Tue, 22 May 2018 14:15:32 +0000 (07:15 -0700)]
Merge "End the TC session on terminal selection event actions" into pi-dev am: d0a4dddb9b
am: 6826a4ab53

Change-Id: Ifca422285ca1faa681e0b761efedc0a2bfb31561

6 years agoMerge "End the TC session on terminal selection event actions" into pi-dev
Abodunrinwa Toki [Tue, 22 May 2018 14:07:23 +0000 (07:07 -0700)]
Merge "End the TC session on terminal selection event actions" into pi-dev
am: d0a4dddb9b

Change-Id: I81e90afd13d03846e240fc1fe5bef49bc01a668c

6 years agoMerge "End the TC session on terminal selection event actions" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 13:56:22 +0000 (13:56 +0000)]
Merge "End the TC session on terminal selection event actions" into pi-dev

6 years agoMerge "Update light greylist from bug scrape."
Mathew Inwood [Tue, 22 May 2018 13:25:58 +0000 (13:25 +0000)]
Merge "Update light greylist from bug scrape."

6 years agoDo not throw IllegalArgumentException in slice manager.
Steven Wu [Tue, 22 May 2018 13:08:22 +0000 (09:08 -0400)]
Do not throw IllegalArgumentException in slice manager.

Test: manual
Bug: 80087497
Change-Id: Ic05c812f41d0153c8745b08718513d4e095ab27b

6 years agoMerge "Merge "Fix slider interaction collection." into pi-dev am: 051664eb6d am:...
Android Build Merger (Role) [Tue, 22 May 2018 12:36:36 +0000 (12:36 +0000)]
Merge "Merge "Fix slider interaction collection." into pi-dev am: 051664eb6d am: af5463aea8"

6 years agoMerge "Fix slider interaction collection." into pi-dev am: 051664eb6d
Kenny Guy [Tue, 22 May 2018 12:36:11 +0000 (05:36 -0700)]
Merge "Fix slider interaction collection." into pi-dev am: 051664eb6d
am: af5463aea8

Change-Id: Ie7937c7c0d6a9aef5d6ff81e07ffc61cdeffd38f

6 years agoMerge "[SystemUI] To plumb down ColorStateList all the way down instead of int colors...
TreeHugger Robot [Tue, 22 May 2018 12:35:00 +0000 (12:35 +0000)]
Merge "[SystemUI] To plumb down ColorStateList all the way down instead of int colors in KeyguardHostView.java and its collaborative files."

6 years agoMerge "Unify behavior of various cases of "no underlying networks"" into pi-dev am...
Chalard Jean [Tue, 22 May 2018 12:27:35 +0000 (05:27 -0700)]
Merge "Unify behavior of various cases of "no underlying networks"" into pi-dev am: 468fdc3dd2
am: d829e18d9a

Change-Id: If19b85325e7d684e645470293b3c8a674084c641

6 years agoMerge "PacProcessor: Include libpac as a JNI_SHARED_LIBRARY."
Treehugger Robot [Tue, 22 May 2018 12:24:33 +0000 (12:24 +0000)]
Merge "PacProcessor: Include libpac as a JNI_SHARED_LIBRARY."

6 years agoMerge "Fix slider interaction collection." into pi-dev
Kenny Guy [Tue, 22 May 2018 12:24:17 +0000 (05:24 -0700)]
Merge "Fix slider interaction collection." into pi-dev
am: 051664eb6d

Change-Id: Ibfff6e6a2491580498c589884d61ce5edf068629

6 years agoMerge "Unify behavior of various cases of "no underlying networks"" into pi-dev
Chalard Jean [Tue, 22 May 2018 12:19:52 +0000 (05:19 -0700)]
Merge "Unify behavior of various cases of "no underlying networks"" into pi-dev
am: 468fdc3dd2

Change-Id: I22f80a6a39d4a19ff74aa61fcbd66f1a041b1003

6 years agoMerge "Fix slider interaction collection." into pi-dev
TreeHugger Robot [Tue, 22 May 2018 12:09:17 +0000 (12:09 +0000)]
Merge "Fix slider interaction collection." into pi-dev

6 years agoMerge "Unify behavior of various cases of "no underlying networks"" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 12:07:53 +0000 (12:07 +0000)]
Merge "Unify behavior of various cases of "no underlying networks"" into pi-dev

6 years agoUpdate light greylist from bug scrape.
Mathew Inwood [Tue, 22 May 2018 09:54:53 +0000 (10:54 +0100)]
Update light greylist from bug scrape.

This now includes APIs seen during linking (from logcat messages from
dex2oat) as well as those seen at runtime using reflection.

Test: m
Bug: 64382372
Bug: 72979236
Bug: 74002300
Bug: 74240254
Bug: 77276180
Bug: 77533294
Bug: 77612705
Bug: 77638233
Bug: 78439615
Bug: 78441094
Bug: 78442580
Bug: 78482621
Bug: 78484047
Bug: 78484886
Bug: 79265613
Bug: 79780657
Bug: 79847479
Bug: 79885782
Bug: 79898172
Bug: 80029535
Bug: 80058256
Bug: 80060295
Bug: 80106076
Merged-In: I030fbea87730dbab7362581d4559f838e38e86d3
Change-Id: I2ff01b8163f436c337079c9d0de5b2680a6fd7be

6 years agoUpdate light greylist from bug scrape.
Mathew Inwood [Tue, 22 May 2018 11:50:43 +0000 (12:50 +0100)]
Update light greylist from bug scrape.

This now includes APIs seen during linking (from logcat messages from
dex2oat) as well as those seen at runtime using reflection.

Test: m
Bug: 64382372
Bug: 72979236
Bug: 74002300
Bug: 74240254
Bug: 77276180
Bug: 77533294
Bug: 77612705
Bug: 77638233
Bug: 78439615
Bug: 78441094
Bug: 78442580
Bug: 78482621
Bug: 78484047
Bug: 78484886
Bug: 79780657
Bug: 79847479
Bug: 79885782
Bug: 79898172
Bug: 80029535
Bug: 80058256
Bug: 80060295
Bug: 80106076
Change-Id: I030fbea87730dbab7362581d4559f838e38e86d3

6 years ago[automerger skipped] Merge "Fix crash after smart selection animation" into pi-dev...
Mihai Popa [Tue, 22 May 2018 11:34:48 +0000 (04:34 -0700)]
[automerger skipped] Merge "Fix crash after smart selection animation" into pi-dev am: 6df95fa087
am: 3fa9bdb193  -s ours

Change-Id: I6d082254c3ff1dbd35f7531119e01eec33ce722e

6 years agoMerge "Fix crash after smart selection animation" into pi-dev
Mihai Popa [Tue, 22 May 2018 11:26:56 +0000 (04:26 -0700)]
Merge "Fix crash after smart selection animation" into pi-dev
am: 6df95fa087

Change-Id: Ie37f7c1809c71c6ffa44bc20090493d90b4a8c41

6 years agoMerge "Reduce LoadedApkAssets LRU cache size." into pi-dev am: 31ec39297c
Richard Uhler [Tue, 22 May 2018 11:26:45 +0000 (04:26 -0700)]
Merge "Reduce LoadedApkAssets LRU cache size." into pi-dev am: 31ec39297c
am: ce72108f43

Change-Id: I3af270fb97fb1c92d1bae697df0c4164d9afa5f6

6 years agoMerge "Fix crash after smart selection animation" into pi-dev
Mihai Popa [Tue, 22 May 2018 11:19:24 +0000 (11:19 +0000)]
Merge "Fix crash after smart selection animation" into pi-dev

6 years agoMerge "Reduce LoadedApkAssets LRU cache size." into pi-dev
Richard Uhler [Tue, 22 May 2018 11:18:05 +0000 (04:18 -0700)]
Merge "Reduce LoadedApkAssets LRU cache size." into pi-dev
am: 31ec39297c

Change-Id: I7a8163ca451f1d930746233dfb2b6add18dc5bb3

6 years agoEnd the TC session on terminal selection event actions
Abodunrinwa Toki [Thu, 17 May 2018 16:36:25 +0000 (17:36 +0100)]
End the TC session on terminal selection event actions

This regressed when introducing TC sessions in
I3c9ceea0863099fc4f0a5ce5e823c648ee9c4521
When the user triggers a terminal selection event such as "Copy",
we should immediately end the session instead of waiting for the
"Abandon" event (i.e. selection dismissed) to be included in the
logs. Terminal selection events implicitly dismiss a selection and
we'd rather distiguish between an actual "selection dismiss" from
one that happened because of a "terminal" selection event.

This cl also removes the "*" marker used to distinguish the new
logging from the old ones. The code for the old logging has already
been deleted so no more need for a marker.

Bug: 78541105
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Change-Id: Iac7d45dbc63e7076683742bd045766a1d927cfc9

6 years agoMerge changes Ic8231b18,I30009f88 into pi-dev am: 200cad09c7
Chalard Jean [Tue, 22 May 2018 11:14:02 +0000 (04:14 -0700)]
Merge changes Ic8231b18,I30009f88 into pi-dev am: 200cad09c7
am: 53fa1d8542

Change-Id: I89208f224b43102a8fd27c84f02ea11a134885c6

6 years agoMerge "Reduce LoadedApkAssets LRU cache size." into pi-dev
TreeHugger Robot [Tue, 22 May 2018 11:09:18 +0000 (11:09 +0000)]
Merge "Reduce LoadedApkAssets LRU cache size." into pi-dev

6 years agoMerge changes Ic8231b18,I30009f88 into pi-dev
Chalard Jean [Tue, 22 May 2018 11:06:35 +0000 (04:06 -0700)]
Merge changes Ic8231b18,I30009f88 into pi-dev
am: 200cad09c7

Change-Id: I12c948ebeb2b74290908f8320ff77220dc4a9fb9

6 years agoMerge changes Ic8231b18,I30009f88 into pi-dev
TreeHugger Robot [Tue, 22 May 2018 10:57:27 +0000 (10:57 +0000)]
Merge changes Ic8231b18,I30009f88 into pi-dev

* changes:
  Fix: VPNs update caps upon underlying network disconnect.
  Add tests for setUnderlyingNetworks.

6 years agoFix slider interaction collection.
Kenny Guy [Tue, 22 May 2018 10:41:17 +0000 (11:41 +0100)]
Fix slider interaction collection.

Brightness changes were always considered temporary
so we skipped notifying the tracker.

Bug: 79990855
Test: atest android.display.cts.BrightnessTest
Change-Id: I5702694218c9811f9f1413d8aed3cb57063ea1c8

6 years agoMerge "Check settings validators for NPE" into pi-dev am: 3a95d0bb94
Annie Meng [Tue, 22 May 2018 10:10:33 +0000 (03:10 -0700)]
Merge "Check settings validators for NPE" into pi-dev am: 3a95d0bb94
am: 0b653bc5e4

Change-Id: I5afb8ce11e978bc2290cb1ef266b6b68e638fce1

6 years agoMerge "Check settings validators for NPE" into pi-dev
Annie Meng [Tue, 22 May 2018 10:03:21 +0000 (03:03 -0700)]
Merge "Check settings validators for NPE" into pi-dev
am: 3a95d0bb94

Change-Id: I75fe10196f29f10f80631f2a11ceda9e8a6d5d87

6 years agoMerge "Add more hidden API usages into greylist" into pi-dev am: 9b2938d253
David Brazdil [Tue, 22 May 2018 09:59:36 +0000 (02:59 -0700)]
Merge "Add more hidden API usages into greylist" into pi-dev am: 9b2938d253
am: e3614bdd76

Change-Id: I9ef28ca450c82ce94e42e2ccb34754f17812123f

6 years agoMerge "Check settings validators for NPE" into pi-dev
Annie Meng [Tue, 22 May 2018 09:55:48 +0000 (09:55 +0000)]
Merge "Check settings validators for NPE" into pi-dev

6 years agoReduce LoadedApkAssets LRU cache size.
Richard Uhler [Mon, 21 May 2018 09:37:24 +0000 (10:37 +0100)]
Reduce LoadedApkAssets LRU cache size.

The cached apk assets can take up multiple megabytes of .apk mmap and
native memory for associated data structures. Reduce the cache size
for potential multi-megabyte memory savings with hopefully no
noticeable performance impacts.

In particular, rough estimates of the memory and performance impacts
of this change were evaluated by starting the launcher app,
sampling system server PSS with dumpsys meminfo and cache stats using
dumpsys activity for a few different cache sizes:

LRU Size   1: cached apks: total= 1 created=0 evicted=33 hit= 0 miss=34 max=1    TOTAL PSS=187542
LRU Size   3: cached apks: total= 3 created=0 evicted=12 hit=19 miss=15 max=3    TOTAL PSS=190606
LRU Size  15: cached apks: total=15 created=0 evicted= 0 hit=19 miss=15 max=15   TOTAL PSS=199350
LRU Size 100: cached apks: total=15 created=0 evicted= 0 hit=19 miss=15 max=100  TOTAL PSS=201416

Comparing cache stats after launching the settings app:

LRU Size   3: cached apks: total=3 created=0 evicted=5 hit=14 miss=8 max=3
LRU Size  15: cached apks: total=6 created=0 evicted=0 hit=18 miss=6 max=15

Running performance tests locally to ensure no clear regression in app
startup:

app-startup/benchmark-app-hermetic/cold-dropcache-test:
LRU                15        3        3
activityStart:    40.47    38.53    39.27
bindApplication:  24.40    24.53    24.93
draw:              4.27     4.33     4.07
layout:            0.73     1.07     0.73
onCreate:          9.40     9.00     8.53
totalLaunchTime: 183.13   183.27   187.07

app-startup/hermetic-apps/cold-dropcache-test:

LRU                   15       15          3         3
Calculator_avg:      333.9    333.1      343.3      334.6
Calculator_max:      345.0    360.0      370.0      363.0
Calculator_median:   333.5    331.5      343.5      333.5
Calculator_min:      320.0    317.0      320.0      311.0
Calculator_std_dev:    6.62    13.26      18.22      16.51
Clock_avg:           510.0    511.2      509.2      512.6
Clock_max:           529.0    528.0      530.0      529.0
Clock_median:        510.5    509.0      503.5      512.0
Clock_min:           498.0    495.0      487.0      492.0
Clock_std_dev:         7.70    11.71      15.25      11.07
Contacts_avg:        457.7    527.3      507.3      543.9
Contacts_max:        602.0    622.0      591.0      588.0
Contacts_median:     410.5    568.5      568.0      580.0
Contacts_min:        390.0    374.0      366.0      394.0
Contacts_std_dev:     85.64    96.80      88.80      72.97
Phone_avg:          6073.1    6109.7    6110.8     6115.8
Phone_max:          6196.0    6208.0    6180.0     6222.0
Phone_median:       6070.0    6117.5    6100.0     6133.5
Phone_min:          5982.0    5990.0    6061.0     5994.0
Phone_std_dev:        61.49     67.35     34.55      60.17
Settings_avg:        457.9     446.6     451.6      428.7
Settings_max:        487.0     468.0     494.0      449.0
Settings_median:     460.0     450.0     444.5      424.0
Settings_min:        423.0     421.0     431.0      420.0
Settings_std_dev:     21.21     12.02     20.46       9.71

Bug: 79115008
Test: Device boots.
Test: dumpsys activity all shows ResourcesManager max cache size of 3.

Change-Id: I7225b6978fac6197c27bec23d2b477fb1f5aee43

6 years agoMerge "Add more hidden API usages into greylist" into pi-dev
David Brazdil [Tue, 22 May 2018 09:50:58 +0000 (02:50 -0700)]
Merge "Add more hidden API usages into greylist" into pi-dev
am: 9b2938d253

Change-Id: Ie09f6aea0754247d9f94f4c356bae1e254a08cd7

6 years agoUnify behavior of various cases of "no underlying networks"
Chalard Jean [Mon, 21 May 2018 06:30:56 +0000 (15:30 +0900)]
Unify behavior of various cases of "no underlying networks"

Before this change, VPNs having no underlying networks would be
marked as metered as the safe option, but VPNs having only
disconnected underlying networks would be marked as unmetered.
Fix this discrepancy.

Bug: 79748782
Test: runtest frameworks-net
Change-Id: I51c3badde29f43f692f383553bd98327d2da8dd1

6 years agoFix: VPNs update caps upon underlying network disconnect.
Chalard Jean [Fri, 18 May 2018 13:02:56 +0000 (22:02 +0900)]
Fix: VPNs update caps upon underlying network disconnect.

Bug: 79748782
Test: ConnectivityServiceTests still pass
Change-Id: Ic8231b18a17e6feb5ebafe8d5688fb59f9d4d58e

6 years agoFix crash after smart selection animation
Mihai Popa [Tue, 8 May 2018 18:18:43 +0000 (19:18 +0100)]
Fix crash after smart selection animation

At the end of the smart selection animation, we run a callback that sets
the selection on the TextView (subsequently starting the action mode
toolbar and showing the handles). However, when the text changes before
the animation finishes, the selection might not be valid, and might get
out of the text bounds, which was producing a crash. This was observed
in a monkey crash. This CL fixes this bug by refusing to set the
selection when it goes outside the text bounds, corresponding to the
case when text has changed between the time the animation has started
and the time it ended.

Bug: 69919777
Test: manual testing before and after the fix
Change-Id: Iea043f320004d45ad16dd7e9e5b47e5256e6d9fa
(cherry picked from commit cce6e82d35b5a6c8eb29e76fbae53eae8b70e99a)
Merged-in: Iea043f320004d45ad16dd7e9e5b47e5256e6d9fa

6 years agoMerge "Add more hidden API usages into greylist" into pi-dev
David Brazdil [Tue, 22 May 2018 09:41:15 +0000 (09:41 +0000)]
Merge "Add more hidden API usages into greylist" into pi-dev

6 years ago[SystemUI] To plumb down ColorStateList all the way down instead of int colors in...
Jason Chang [Tue, 22 May 2018 09:30:19 +0000 (17:30 +0800)]
[SystemUI] To plumb down ColorStateList all the way down instead of int colors in KeyguardHostView.java and its collaborative files.

To plumb down ColorStateList all the way down instead of int colors in KeyguardHostView.java and its collaborative files.

Bug: 79721803
Test: manually test for UI
Change-Id: I69df1a13db5153ca36cf39f7b818d6c3d27ee107

6 years agoAdd tests for setUnderlyingNetworks.
Chalard Jean [Fri, 18 May 2018 12:47:45 +0000 (21:47 +0900)]
Add tests for setUnderlyingNetworks.

Fixes come later. This is complex enough as it is.

Bug: 79748782
Test: new test passes, old tests still pass
Change-Id: I30009f88e68a534c332ca88bae517cacc39a60bb

6 years agoMerge "Shared lib def for org.apache.http.legacy comes from java_sdk_library"
TreeHugger Robot [Tue, 22 May 2018 09:20:17 +0000 (09:20 +0000)]
Merge "Shared lib def for org.apache.http.legacy comes from java_sdk_library"

6 years agoMerge "Move CaptivePortalProbeResult to its own file" into pi-dev am: fd12af848a
Remi NGUYEN VAN [Tue, 22 May 2018 08:14:13 +0000 (01:14 -0700)]
Merge "Move CaptivePortalProbeResult to its own file" into pi-dev am: fd12af848a
am: adfb78afdc

Change-Id: I5df7ee9f16bc6be4f02353d40a843a383dd4cbd9

6 years agoMerge "Fix setCapabilities." into pi-dev am: d1d4cc94ba
Chalard Jean [Tue, 22 May 2018 08:09:11 +0000 (01:09 -0700)]
Merge "Fix setCapabilities." into pi-dev am: d1d4cc94ba
am: c60a252b87

Change-Id: Ia5bebf8a233775367bbf1b788870528934ecbcfb

6 years agoMerge "Move CaptivePortalProbeResult to its own file" into pi-dev
Remi NGUYEN VAN [Tue, 22 May 2018 08:09:08 +0000 (01:09 -0700)]
Merge "Move CaptivePortalProbeResult to its own file" into pi-dev
am: fd12af848a

Change-Id: Ia48b32307a51a66f2672d7112f71166dd6db41b1

6 years agoMerge "Fix setCapabilities." into pi-dev
Chalard Jean [Tue, 22 May 2018 08:01:39 +0000 (01:01 -0700)]
Merge "Fix setCapabilities." into pi-dev
am: d1d4cc94ba

Change-Id: I13d7782a6c0c7b1f94137995bbb0d257a58d89c1

6 years agoMerge "Move CaptivePortalProbeResult to its own file" into pi-dev
Remi NGUYEN VAN [Tue, 22 May 2018 08:00:56 +0000 (08:00 +0000)]
Merge "Move CaptivePortalProbeResult to its own file" into pi-dev

6 years agoMerge "Fix setCapabilities." into pi-dev
Chalard Jean [Tue, 22 May 2018 07:51:09 +0000 (07:51 +0000)]
Merge "Fix setCapabilities." into pi-dev

6 years ago[automerger skipped] Merge "Add new hidden-for-now AppOpsManager APIs to greylist...
Dianne Hackborn [Tue, 22 May 2018 07:46:07 +0000 (00:46 -0700)]
[automerger skipped] Merge "Add new hidden-for-now AppOpsManager APIs to greylist." into pi-dev am: 7b8ac80db5
am: 7425f704ea  -s ours

Change-Id: I26fb5d97a08ef448366e3985554db35fcb5149d2

6 years agoMerge "Add new hidden-for-now AppOpsManager APIs to greylist." into pi-dev
Dianne Hackborn [Tue, 22 May 2018 07:35:07 +0000 (00:35 -0700)]
Merge "Add new hidden-for-now AppOpsManager APIs to greylist." into pi-dev
am: 7b8ac80db5

Change-Id: I6ae9e668f5c3df80e1017b45c7e02299ed35cfb1

6 years agoMerge "Add new hidden-for-now AppOpsManager APIs to greylist." into pi-dev
TreeHugger Robot [Tue, 22 May 2018 07:18:27 +0000 (07:18 +0000)]
Merge "Add new hidden-for-now AppOpsManager APIs to greylist." into pi-dev

6 years agoMerge "Add new hidden-for-now AppOpsManager APIs to greylist."
TreeHugger Robot [Tue, 22 May 2018 07:14:03 +0000 (07:14 +0000)]
Merge "Add new hidden-for-now AppOpsManager APIs to greylist."

6 years agoClock notification text was cut off am: e8a3536660
felkachang [Tue, 22 May 2018 06:19:32 +0000 (23:19 -0700)]
Clock notification text was cut off am: e8a3536660
am: bc72e3a15e

Change-Id: I2ebcf9434ec34158ab2febd326e00b3c404b678a

6 years agoClock notification text was cut off
felkachang [Tue, 22 May 2018 06:14:41 +0000 (23:14 -0700)]
Clock notification text was cut off
am: e8a3536660

Change-Id: Ieab07607cf1379704dadecad8fbd60eafe7fc005

6 years agoClock notification text was cut off
felkachang [Fri, 18 May 2018 12:11:38 +0000 (20:11 +0800)]
Clock notification text was cut off

The root cause is that HeadsUpStatusBarView doesn't considerate the
Cut Out situation. The Cut Out situation can use
getRootWindowInsets().getDisplayCutout().getSafeInsetLeft() to get
the the value.

There are two parts need to handle Cut out.
The one part is to handle the padding. It needs to considerate both of
mLeftInset and mLeftCutOutInset because it use getLocationOnScreen to
count the location.

The other part is to handle the HeadsUpStatusBarView.translationX.
It only needs to considerate mLeftCutOutInset because landscape
degree 90 has the left side cut out and translationX by the distance
between screen left boundary and scroller's left boundary. The
distance include Cut Out so it need minus mCutOutInsetLeft in the
setPanelTranslation.

Cut Out has 4 mode: Disable, Corner, Double, and Tall. Disable and
Double are handled by the same way. Corner and Tall are handled
by the same way.

Bug: 78113562
Test: atest SystemUITests
Change-Id: Ic2a272c43f65eed8c4b3749787637f5fb848bb8a
Fix: 78113562

6 years agoMerge "Add content description to zenmode" into pi-dev am: adc1534453
Lucas Dupin [Tue, 22 May 2018 06:01:15 +0000 (23:01 -0700)]
Merge "Add content description to zenmode" into pi-dev am: adc1534453
am: c320298e81

Change-Id: I4822d26b1cf5667ae67131422d8f41da6b2ad28b

6 years agoMerge "Add content description to zenmode" into pi-dev
Lucas Dupin [Tue, 22 May 2018 05:53:27 +0000 (22:53 -0700)]
Merge "Add content description to zenmode" into pi-dev
am: adc1534453

Change-Id: I5cd398157fb641b88145a0f90766161e5b8124f0

6 years agoMerge "Add content description to zenmode" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 05:44:33 +0000 (05:44 +0000)]
Merge "Add content description to zenmode" into pi-dev

6 years agoMerge "Bugfix: PIN keyguard is clipped in Car" into pi-dev am: 90101793e5
Jian Jin [Tue, 22 May 2018 05:01:20 +0000 (22:01 -0700)]
Merge "Bugfix: PIN keyguard is clipped in Car" into pi-dev am: 90101793e5
am: 14fe430904

Change-Id: I68e02822b787c7397117ab6d14e2fe6d1db9b98f

6 years agoMerge "Bugfix: PIN keyguard is clipped in Car" into pi-dev
Jian Jin [Tue, 22 May 2018 04:52:31 +0000 (21:52 -0700)]
Merge "Bugfix: PIN keyguard is clipped in Car" into pi-dev
am: 90101793e5

Change-Id: I19579cada6c7505a4691e81e693f1f1cabc45259

6 years agoMerge "Bugfix: PIN keyguard is clipped in Car" into pi-dev
Jian Jin [Tue, 22 May 2018 04:43:21 +0000 (04:43 +0000)]
Merge "Bugfix: PIN keyguard is clipped in Car" into pi-dev