OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Prevent INTERACT_ACROSS_USERS exception in DefaultDialerManager." am: 6d0f1eff8b
Tyler Gunn [Fri, 27 Oct 2017 21:53:12 +0000 (21:53 +0000)]
Merge "Prevent INTERACT_ACROSS_USERS exception in DefaultDialerManager." am: 6d0f1eff8b
am: dbd2972e6c  -s ours

Change-Id: I0af5402a8854d87b20fc920a7432322222c4ade1

6 years agoMerge "Enable HID Device Profile Service (2/2)" am: 7e3fbd59d1
Hansong Zhang [Fri, 27 Oct 2017 21:38:51 +0000 (21:38 +0000)]
Merge "Enable HID Device Profile Service (2/2)" am: 7e3fbd59d1
am: 21bb474cc3

Change-Id: I84377e882c77b16862b1e049c54e36dc94c78883

6 years agoMerge "Prevent INTERACT_ACROSS_USERS exception in DefaultDialerManager."
Tyler Gunn [Fri, 27 Oct 2017 21:37:34 +0000 (21:37 +0000)]
Merge "Prevent INTERACT_ACROSS_USERS exception in DefaultDialerManager."
am: 6d0f1eff8b

Change-Id: I55e7f4684f8160f70548e662cd030fce565b16a9

6 years agoMerge "Enable HID Device Profile Service (2/2)"
Hansong Zhang [Fri, 27 Oct 2017 21:27:03 +0000 (21:27 +0000)]
Merge "Enable HID Device Profile Service (2/2)"
am: 7e3fbd59d1

Change-Id: I993b08e37f0ebcc7bca0b2b536348c41dd548861

6 years agoMerge "Handle alternate status values." am: b728e56959
Tyler Gunn [Fri, 27 Oct 2017 21:25:06 +0000 (21:25 +0000)]
Merge "Handle alternate status values." am: b728e56959
am: 0f6a2f350d  -s ours

Change-Id: If6fef3f4e0c2e178d8715e0bb739404691e18fc8

6 years agoMerge "Handle alternate status values."
Tyler Gunn [Fri, 27 Oct 2017 21:13:30 +0000 (21:13 +0000)]
Merge "Handle alternate status values."
am: b728e56959

Change-Id: I1c82dd103b03eecba025a7638e06906699429c74

6 years agoMerge "Prevent INTERACT_ACROSS_USERS exception in DefaultDialerManager."
Treehugger Robot [Fri, 27 Oct 2017 21:12:24 +0000 (21:12 +0000)]
Merge "Prevent INTERACT_ACROSS_USERS exception in DefaultDialerManager."

6 years agoMerge "Enable HID Device Profile Service (2/2)"
Treehugger Robot [Fri, 27 Oct 2017 21:06:44 +0000 (21:06 +0000)]
Merge "Enable HID Device Profile Service (2/2)"

6 years agoMerge "Handle alternate status values."
Treehugger Robot [Fri, 27 Oct 2017 20:55:53 +0000 (20:55 +0000)]
Merge "Handle alternate status values."

6 years agoPrevent INTERACT_ACROSS_USERS exception in DefaultDialerManager.
Tyler Gunn [Fri, 1 Sep 2017 22:17:05 +0000 (15:17 -0700)]
Prevent INTERACT_ACROSS_USERS exception in DefaultDialerManager.

When TelecomManager methods perform a read phonestate check from a work
profile user, it is possible to get an INTERACT_ACROSS_USERS exception.
This is due to the fact that the filterByIntent method was not calling
queryIntentActivitiesAsUser.

Test: Manual
Bug: 31304557
Merged-In: I6bc7419ba260050281d83e33f7f328ec5ccb3cd8
Change-Id: I2a1869162e5a52aed986a99cc378a6c630af4a70

6 years agoHandle alternate status values.
Tyler Gunn [Fri, 25 Aug 2017 22:01:00 +0000 (15:01 -0700)]
Handle alternate status values.

Some carriers use sendrecv to indicate a call in a conference is active,
and sendonly to indicate that the remote party has held the call.
Adding support for these status values.

This ensures that remotely held calls for these carriers are set to held.

Test: Manual
Bug: 33272103
Merged-In: Ie386bdb4c77df1305d80f604f48174794c3ee0c1
Change-Id: I4a950c4e143d5ac396b30569dbda0b1cf4e92a3e

6 years agoMerge "Ensure CallId is not null when connection creation is complete." am: 47b23176bd
Tyler Gunn [Fri, 27 Oct 2017 19:35:54 +0000 (19:35 +0000)]
Merge "Ensure CallId is not null when connection creation is complete." am: 47b23176bd
am: 5458f38518  -s ours

Change-Id: I9152a42c8e0bbb766a22f69480748a6534e993bc

6 years agoMerge "Ensure CallId is not null when connection creation is complete."
Tyler Gunn [Fri, 27 Oct 2017 19:26:07 +0000 (19:26 +0000)]
Merge "Ensure CallId is not null when connection creation is complete."
am: 47b23176bd

Change-Id: Ifddd99f22edfa787a3447cbaa66dd4e70a430ba3

6 years agoMerge "Ensure CallId is not null when connection creation is complete."
Treehugger Robot [Fri, 27 Oct 2017 19:09:47 +0000 (19:09 +0000)]
Merge "Ensure CallId is not null when connection creation is complete."

6 years agoMerge "Fix: AccountManagerService crashed by accessing closed db" am: 6ac8f42d9e
Tetsutoki Shiozawa [Fri, 27 Oct 2017 19:03:32 +0000 (19:03 +0000)]
Merge "Fix: AccountManagerService crashed by accessing closed db" am: 6ac8f42d9e
am: 741736cafa

Change-Id: Ic7ae1006f1650653d75685b5a6d5b22e74b8f950

6 years agoMerge "Fix: AccountManagerService crashed by accessing closed db"
Tetsutoki Shiozawa [Fri, 27 Oct 2017 18:53:20 +0000 (18:53 +0000)]
Merge "Fix: AccountManagerService crashed by accessing closed db"
am: 6ac8f42d9e

Change-Id: I35f289e43a7406087a13258b5e6cbf5e179dc529

6 years agoMerge "Fix: AccountManagerService crashed by accessing closed db"
Treehugger Robot [Fri, 27 Oct 2017 18:41:59 +0000 (18:41 +0000)]
Merge "Fix: AccountManagerService crashed by accessing closed db"

6 years agoMerge "Fixed NullPointerException in IpSecService-Netd binder layer" am: bf74a93eb2
Manoj Boopathi Raj [Fri, 27 Oct 2017 18:06:09 +0000 (18:06 +0000)]
Merge "Fixed NullPointerException in IpSecService-Netd binder layer" am: bf74a93eb2
am: a096e8d177

Change-Id: I23ea94140ac3e34fc92fdc6a2c0d694396489e03

6 years agoEnsure CallId is not null when connection creation is complete.
Tyler Gunn [Sat, 17 Jun 2017 03:20:34 +0000 (20:20 -0700)]
Ensure CallId is not null when connection creation is complete.

When calling "get" on the mConnectoinById map, a null callId will result
in an NPE.

In findConnectionForAction, defaulting to returning the "null" connection
which is the same behavior as if it isn't found.
In notifyCreateConnectionComplete, specifically checking if the callId
is null and skipping the onCreateConnectionComplete callback.
This scenario is possible if the connection is remove from the
ConnectionService before the connection complete callback comes back from
Telecom.

Test: Manual
Fixes: 62588734
Merged-In: I1de7a0a4cc9c630019e38b8154bfc1d470f56ae3
Change-Id: Ie610c51155ed417e0f916000fe20e4484bdb6603

6 years agoMerge "Add the operator name and MCC/MNC in string format into the CellIdentity....
Cassie Han [Fri, 27 Oct 2017 17:54:36 +0000 (17:54 +0000)]
Merge "Add the operator name and MCC/MNC in string format into the CellIdentity." am: 1565803cd2
am: e64d907a49

Change-Id: I0f145a458bff20dd9e6484120331bcc59b2dd8d3

6 years agoMerge "Fixed NullPointerException in IpSecService-Netd binder layer"
Manoj Boopathi Raj [Fri, 27 Oct 2017 17:47:08 +0000 (17:47 +0000)]
Merge "Fixed NullPointerException in IpSecService-Netd binder layer"
am: bf74a93eb2

Change-Id: Ia73c6bda7cb265f91648139e15f4bd2668e6c531

6 years agoMerge "Don't allocate GlobalRefs for BinderProxy" am: 1455a1d0c0
Hans Boehm [Fri, 27 Oct 2017 17:38:31 +0000 (17:38 +0000)]
Merge "Don't allocate GlobalRefs for BinderProxy" am: 1455a1d0c0
am: b4210d8160

Change-Id: Ida801a358acab13e8515db98b37165179cf5135a

6 years agoMerge "Add the operator name and MCC/MNC in string format into the CellIdentity."
Cassie Han [Fri, 27 Oct 2017 17:36:52 +0000 (17:36 +0000)]
Merge "Add the operator name and MCC/MNC in string format into the CellIdentity."
am: 1565803cd2

Change-Id: Ie0a1305eb73256f358a853d87778f755d3b9e4d0

6 years agoMerge "Fixed NullPointerException in IpSecService-Netd binder layer"
Manoj Boopathi Raj [Fri, 27 Oct 2017 17:32:56 +0000 (17:32 +0000)]
Merge "Fixed NullPointerException in IpSecService-Netd binder layer"

6 years agoMerge "Don't allocate GlobalRefs for BinderProxy"
Hans Boehm [Fri, 27 Oct 2017 17:28:39 +0000 (17:28 +0000)]
Merge "Don't allocate GlobalRefs for BinderProxy"
am: 1455a1d0c0

Change-Id: Id971af4742bb26790449c78f9520b9a7744df39a

6 years agoMerge "Add the operator name and MCC/MNC in string format into the CellIdentity."
Cassie Han [Fri, 27 Oct 2017 17:17:54 +0000 (17:17 +0000)]
Merge "Add the operator name and MCC/MNC in string format into the CellIdentity."

6 years agoMerge "Don't allocate GlobalRefs for BinderProxy"
Hans Boehm [Fri, 27 Oct 2017 17:15:41 +0000 (17:15 +0000)]
Merge "Don't allocate GlobalRefs for BinderProxy"

6 years agoEnable HID Device Profile Service (2/2)
Hansong Zhang [Wed, 27 Sep 2017 21:17:20 +0000 (14:17 -0700)]
Enable HID Device Profile Service (2/2)

Add Profile Proxy for HID Device Profile.

* Add a helper method doUnbind() to deal with unbinding to Bluetooth HID
Service.

* Fix docstrings.

Bug: 63384609
Test: SL4A Bluetooth HID test
Change-Id: I168c21c3b010baac9889c556635b914c0ba3f267

6 years agoMerge "Give fg services a shelf life before they go bad." into oc-mr1-dev
Daniel Sandler [Fri, 27 Oct 2017 14:57:59 +0000 (14:57 +0000)]
Merge "Give fg services a shelf life before they go bad." into oc-mr1-dev
am: 17efe6be85

Change-Id: Idc2dccabb41e26296b8cd6ffa31d42c811fff5fe

6 years agoMerge "Give fg services a shelf life before they go bad." into oc-mr1-dev
Daniel Sandler [Fri, 27 Oct 2017 14:39:01 +0000 (14:39 +0000)]
Merge "Give fg services a shelf life before they go bad." into oc-mr1-dev

6 years agoGive fg services a shelf life before they go bad.
Dan Sandler [Fri, 27 Oct 2017 03:27:57 +0000 (23:27 -0400)]
Give fg services a shelf life before they go bad.

When a fg service starts (as indicated by its presence in a
NOTE_FOREGROUND_SERVICES notification), we note the service
start time (as encoded in Notification.when in ActivityMgr).

SysUI will suppress the dungeon (foreground service
disclosure) notification until 5 seconds have elapsed since
the earliest service start time. After that, if the service
is still running, the disclosure will be shown.

Bug: 67819284
Test: runtest -x frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ForegroundServiceControllerTest.java
Change-Id: I5b6df95eb673e2f551aaa3ecc5a7df617f815a90

6 years agoMerge "Remove unused method on VersionedBroadcastListener" am: 536d241fb2
Erik Kline [Fri, 27 Oct 2017 13:15:41 +0000 (13:15 +0000)]
Merge "Remove unused method on VersionedBroadcastListener" am: 536d241fb2
am: 0ce85f8c51

Change-Id: Id310aee1633c0167be297422db02d206877390eb

6 years agoMerge "Remove unused method on VersionedBroadcastListener"
Erik Kline [Fri, 27 Oct 2017 13:04:47 +0000 (13:04 +0000)]
Merge "Remove unused method on VersionedBroadcastListener"
am: 536d241fb2

Change-Id: I63c8ad050330dd4e938388d03fa9cf270b108e56

6 years agoMerge "Remove unused method on VersionedBroadcastListener"
Treehugger Robot [Fri, 27 Oct 2017 12:47:45 +0000 (12:47 +0000)]
Merge "Remove unused method on VersionedBroadcastListener"

6 years agoMerge changes from topic "am-bd8937297d1b4d4295c6ad984c3fd2c7" into oc-mr1-dev-plus...
Android Build Merger (Role) [Fri, 27 Oct 2017 10:38:17 +0000 (10:38 +0000)]
Merge changes from topic "am-bd8937297d1b4d4295c6ad984c3fd2c7" into oc-mr1-dev-plus-aosp

* changes:
  Merge changes from topic "tz_catchup1" am: 4e0a02ce1f am: 60bc26e3e2
  Be more explicit about users am: b755291e65 am: 8f57711f2f

6 years agoMerge changes from topic "tz_catchup1" am: 4e0a02ce1f
Neil Fuller [Fri, 27 Oct 2017 10:32:48 +0000 (10:32 +0000)]
Merge changes from topic "tz_catchup1" am: 4e0a02ce1f
am: 60bc26e3e2

Change-Id: Id72c4cb572051e3898d2f432918feb0875b104c3

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev
Bill Yi [Fri, 27 Oct 2017 10:31:07 +0000 (10:31 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev
am: c0ac6fb4e3  -s ours

Change-Id: I588474eb1a4e5d96fa9a104603c7f172bdba6100

6 years agoBe more explicit about users am: b755291e65
Neil Fuller [Fri, 27 Oct 2017 10:29:07 +0000 (10:29 +0000)]
Be more explicit about users am: b755291e65
am: 8f57711f2f

Change-Id: Ic949dce3ed9b6102eb780981166a0f6b09b43d94

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev
TreeHugger Robot [Fri, 27 Oct 2017 10:20:09 +0000 (10:20 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev

6 years agoMerge changes from topic "tz_catchup1"
Neil Fuller [Fri, 27 Oct 2017 10:13:15 +0000 (10:13 +0000)]
Merge changes from topic "tz_catchup1"
am: 4e0a02ce1f

Change-Id: I629930379afd2e3037bbd460ebc83726a8bb0008

6 years agoBe more explicit about users
Neil Fuller [Fri, 27 Oct 2017 10:08:35 +0000 (10:08 +0000)]
Be more explicit about users
am: b755291e65

Change-Id: I0dd17273997adc207b5e389624b820e80ccaaa89

6 years agoMerge changes from topic "tz_catchup1"
Neil Fuller [Fri, 27 Oct 2017 09:54:15 +0000 (09:54 +0000)]
Merge changes from topic "tz_catchup1"

* changes:
  Add newly available version information to dumpsys
  Be more explicit about users

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 27 Oct 2017 06:27:26 +0000 (23:27 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

Bug: 64712476
Change-Id: I752d240f2a039f727edac641136078ddee540e34

6 years agoRemove unused method on VersionedBroadcastListener
Erik Kline [Fri, 27 Oct 2017 05:16:56 +0000 (14:16 +0900)]
Remove unused method on VersionedBroadcastListener

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
    - manually enabling USB tethering toward Wi-Fi worked
Bug: 32163131

Change-Id: I38e4b77a7d59584ebeb450ebe5a9dcbcb36f4fa1

6 years agoMerge "Merge "Merge "Support native and srgb for night display" into oc-dr1-dev am...
Android Build Merger (Role) [Fri, 27 Oct 2017 04:02:09 +0000 (04:02 +0000)]
Merge "Merge "Merge "Support native and srgb for night display" into oc-dr1-dev am: 37082aa53e  -s ours" into oc-mr1-dev am: 074ecca5e0  -s ours" into oc-mr1-dev-plus-aosp

6 years agoMerge "Convert Binder & BinderProxy to NativeAllocationRegistry" am: bd6d3c5743
Hans Boehm [Fri, 27 Oct 2017 03:58:59 +0000 (03:58 +0000)]
Merge "Convert Binder & BinderProxy to NativeAllocationRegistry" am: bd6d3c5743
am: a177c5c9d2

Change-Id: I087b9b3374fc51fa5ded63fbd999f4398f564628

6 years agoMerge "Merge "Support native and srgb for night display" into oc-dr1-dev am: 37082aa5...
Christine Franks [Fri, 27 Oct 2017 03:58:49 +0000 (03:58 +0000)]
Merge "Merge "Support native and srgb for night display" into oc-dr1-dev am: 37082aa53e  -s ours" into oc-mr1-dev
am: 074ecca5e0  -s ours

Change-Id: I6ec817c51f26332cc0c903d932513aca93e3b823

6 years agoMerge "Allow internal services access to instant apps" into oc-mr1-dev
Chad Brubaker [Fri, 27 Oct 2017 03:51:11 +0000 (03:51 +0000)]
Merge "Allow internal services access to instant apps" into oc-mr1-dev
am: d70982ad7e

Change-Id: Ic799df1e5abbbe113ddc0d54f79140e952f8d314

6 years agoMerge "Convert Binder & BinderProxy to NativeAllocationRegistry"
Hans Boehm [Fri, 27 Oct 2017 03:47:51 +0000 (03:47 +0000)]
Merge "Convert Binder & BinderProxy to NativeAllocationRegistry"
am: bd6d3c5743

Change-Id: Iae1e438cc9595efe1dd68c579d42ae129ac53e5e

6 years agoMerge changes from topic "b-68279369" into oc-dr1-dev am: 885bf1302e -s ours
Jason Monk [Fri, 27 Oct 2017 03:30:28 +0000 (03:30 +0000)]
Merge changes from topic "b-68279369" into oc-dr1-dev am: 885bf1302e  -s ours
am: 74fc763fc8

Change-Id: Ib90ed41698e308d53a2619abe2fa6f028eeaf07a

6 years agoMerge "Convert Binder & BinderProxy to NativeAllocationRegistry"
Hans Boehm [Fri, 27 Oct 2017 03:27:29 +0000 (03:27 +0000)]
Merge "Convert Binder & BinderProxy to NativeAllocationRegistry"

6 years agoMerge "Merge "Support native and srgb for night display" into oc-dr1-dev am: 37082aa5...
Android Build Merger (Role) [Fri, 27 Oct 2017 03:25:38 +0000 (03:25 +0000)]
Merge "Merge "Support native and srgb for night display" into oc-dr1-dev am: 37082aa53e  -s ours" into oc-mr1-dev

6 years agoMerge "Support native and srgb for night display" into oc-dr1-dev
Christine Franks [Fri, 27 Oct 2017 03:23:01 +0000 (03:23 +0000)]
Merge "Support native and srgb for night display" into oc-dr1-dev
am: 37082aa53e  -s ours

Change-Id: I6a7d3864db78ac95a175cc9097a821daa6ea6658

6 years agoMerge "Allow internal services access to instant apps" into oc-mr1-dev
Chad Brubaker [Fri, 27 Oct 2017 03:22:39 +0000 (03:22 +0000)]
Merge "Allow internal services access to instant apps" into oc-mr1-dev

6 years agoMerge changes from topic "b-68279369" into oc-dr1-dev
Jason Monk [Fri, 27 Oct 2017 03:15:58 +0000 (03:15 +0000)]
Merge changes from topic "b-68279369" into oc-dr1-dev
am: 885bf1302e  -s ours

Change-Id: Ia35e09b9935da7bd63f08afd82dac950a9acd344

6 years agoFix: AccountManagerService crashed by accessing closed db
Tetsutoki Shiozawa [Tue, 24 Oct 2017 09:44:00 +0000 (18:44 +0900)]
Fix: AccountManagerService crashed by accessing closed db

Symptom:
When a current user was switched, AccountManagerService crashed with
IllegalStateException.

Root cause:
accountsDb was closed when user was stopped. AccountManagerService
tried to insert a log record to the closed db and it failed.

Solution:
It catches the exception if it's failed to insert a log record.

Bug: 68233592
Change-Id: I97b63e4777bf7f8a1d38d96e494f6a21847d374b

6 years agoMerge "Merge "ActivityManager: Change documentation of low RAM" into oc-mr1-dev am...
Android Build Merger (Role) [Fri, 27 Oct 2017 01:28:00 +0000 (01:28 +0000)]
Merge "Merge "ActivityManager: Change documentation of low RAM" into oc-mr1-dev am: c1158f762a" into oc-mr1-dev-plus-aosp

6 years agoMerge "ActivityManager: Change documentation of low RAM" into oc-mr1-dev
Greg Kaiser [Fri, 27 Oct 2017 01:24:56 +0000 (01:24 +0000)]
Merge "ActivityManager: Change documentation of low RAM" into oc-mr1-dev
am: c1158f762a

Change-Id: Ifd4c56b13f3bdbc0ef12a9fac335203fa471ac50

6 years agoMerge "IMMS should preserve enabled/selected IMEs upon boot" am: 171c82acb4
Yohei Yukawa [Fri, 27 Oct 2017 01:21:20 +0000 (01:21 +0000)]
Merge "IMMS should preserve enabled/selected IMEs upon boot" am: 171c82acb4
am: 9e5c77c194

Change-Id: I75ba9b67eb8c88931788c869d0ff5a25c950693e

6 years agoMerge "IMMS should preserve enabled/selected IMEs upon boot"
Yohei Yukawa [Fri, 27 Oct 2017 01:10:36 +0000 (01:10 +0000)]
Merge "IMMS should preserve enabled/selected IMEs upon boot"
am: 171c82acb4

Change-Id: I13b12269eb1cd29bb28bd6a1dadac59a2d539380

6 years agoMerge "ActivityManager: Change documentation of low RAM" into oc-mr1-dev
TreeHugger Robot [Fri, 27 Oct 2017 01:07:19 +0000 (01:07 +0000)]
Merge "ActivityManager: Change documentation of low RAM" into oc-mr1-dev

6 years agoMerge "IMMS should preserve enabled/selected IMEs upon boot"
Treehugger Robot [Fri, 27 Oct 2017 00:49:19 +0000 (00:49 +0000)]
Merge "IMMS should preserve enabled/selected IMEs upon boot"

6 years agoAdd color mode setting am: af5e11245d -s ours
Romain Guy [Fri, 27 Oct 2017 00:22:56 +0000 (00:22 +0000)]
Add color mode setting am: af5e11245d  -s ours
am: 9d8c5f626a  -s ours

Change-Id: I3f2491bc5822f00a2cc80abfc203a1bc5da752c0

6 years agoAdd color mode setting
Romain Guy [Fri, 27 Oct 2017 00:07:58 +0000 (00:07 +0000)]
Add color mode setting
am: af5e11245d  -s ours

Change-Id: I57d6a2503f28fb8c26ac0e5e644306bbe812a347

6 years agoMerge "Support native and srgb for night display" into oc-dr1-dev
TreeHugger Robot [Thu, 26 Oct 2017 22:47:34 +0000 (22:47 +0000)]
Merge "Support native and srgb for night display" into oc-dr1-dev

6 years agoMerge changes from topic "b-68279369" into oc-dr1-dev
TreeHugger Robot [Thu, 26 Oct 2017 22:17:40 +0000 (22:17 +0000)]
Merge changes from topic "b-68279369" into oc-dr1-dev

* changes:
  Auto-dim refinements
  Refinement of auto-dimming nav
  Don't touch auto dim on app change
  Auto dim the nav bar to help prevent diff aging

6 years agoIMMS should preserve enabled/selected IMEs upon boot
Yohei Yukawa [Thu, 26 Oct 2017 22:00:59 +0000 (15:00 -0700)]
IMMS should preserve enabled/selected IMEs upon boot

This is a follow up CL to my refactoring CL [1], which unintentionally
changed the condition to reset default enabled IMEs when the device
boots up.

Previously, InputMethodManagerService (IMMS) resets default enabled
IMEs upon device boot only for the first boot scenario, by checking
whether Settings.Secure.DEFAULT_INPUT_METHOD is already set or not.

My refactoring CL accidentally replaced that check with unconditional
"true", which means now IMMS always resets default enabled IMEs every
time the device boots up.  This behavior change is of course
unintentional but has no effect after the user unlocks the device
because IMMS also discard all the settings change made while
UserManager.isUserUnlocked() returns false [2].  Hence the above
behavior change is completely hidden on direct-boot disabled devices,
where the system behaves as if the user unlocked the device
immediately after the boot is completed.  The behavior change is
observable only on direct-boot devices.

Anyway, IMMS should try to do its best to keep the last used IME and
user selected IMEs even in user locked state as long as those IMEs
are compatible with direct-boot.  This CL revives the previous
behavior by adding the same condition check again.

 [1]: I5b37c450db4b25b3e635b6d634293a34eec8b9d4
      7924782c000733b2d7a180701b74988f0154adee
 [2]: Ifa2225070bf8223f8964cf063c86889e312c5e9a
      ed4952ad0f76a70549777472cd9cefcbc8705917

Fixes: 67093433
Fixes: 67491290
Test: Manually verified as follows
      1. Check out AOSP master
      2. Build an OS image for a direct-boot aware device then
         flash it.
      3. Open
            development/samples/SoftKeyboard/AndroidManifest.xml
         then add
            android:directBootAware="true"
         to the IME service.
      4. Open
            development/samples/SoftKeyboard/res/xml/method.xml
         then add
            android:isAsciiCapable="true"
         to "en_US" IME subtype.
      5. tapas SoftKeyboard
      6. make -j
      7. adb install -r $OUT/system/app/SoftKeyboard/SoftKeyboard.apk
      8. Open system settings:
           System -> Languages & input -> Virtual keyboard
     -> Manage keyboards
      9. Enable Sample Soft keyboard
     10. Disable Android Keyboard (AOSP)
     11. Open system settings:
           Security -> Screen lock -> Password
         then set up a device password "aaaa".
     12. Reboot the device.
     13. Make sure that
          * Sample Soft keyboard is shown in the unlock screen.
          * AOSP Keyboard is not enabled in the unlock screen.
Change-Id: Id624d577d941245cca944498dc6935eb364865cf

6 years agoDon't allocate GlobalRefs for BinderProxy
Hans Boehm [Wed, 4 Oct 2017 01:01:20 +0000 (18:01 -0700)]
Don't allocate GlobalRefs for BinderProxy

This removes all GlobalRef allocation as part of building BinderProxys.
Previously these were used to map IBinders to the corresponding
Java object, so the Java objects could be reused. We now keep
that mapping at the Java level.

This means we often need to call into Java to look up or allocate
a BinderProxy. But this replaces a prior call to Java to dereference
a WeakReference. The Java custom Java map-to-WeakReference data
structure is probably not terribly efficient, but the original
attachement mechanism did not seem to be either. And this
avoids potentially even more catastrophic issues when the number
of GlobalRefs approaches its limit.

We decrease GC triggering frequency from 200 to 1000 allocated
references. This now only applies to other kinds of JNI References
allocated by Binder.

I saw a maximum bucket size of 16 for the ProxyMap data structure
while briefly exercising a freshly booted device. That occurred
in system_server.

Bug: 65760710

Test: Built and booted master with some debugging output. Looks sane.
Change-Id: I322c4d8e9c8e198586d591580c2cdbb094906677

6 years agoSupport native and srgb for night display
Christine Franks [Wed, 25 Oct 2017 02:04:22 +0000 (19:04 -0700)]
Support native and srgb for night display

Bug: 68159303
Test: make -j100

Merged-In: Iea4b38bd8c9037f50b7ffa6e3c4f12b0e536a8ce
Change-Id: Iea4b38bd8c9037f50b7ffa6e3c4f12b0e536a8ce

6 years agoFixed NullPointerException in IpSecService-Netd binder layer
Manoj Boopathi Raj [Thu, 26 Oct 2017 18:49:02 +0000 (11:49 -0700)]
Fixed NullPointerException in IpSecService-Netd binder layer

Replaced null with empty byte array in createTransportModeTransform
for null auth.getKey, crypt.getKey() and authCrypt.getKey()

Test: Ran CTS test
Bug: 68052730
Change-Id: I5110b1297b4bfbb5766e8ecfd3d64f8110b52945

6 years agoAuto-dim refinements
Jason Monk [Fri, 13 Oct 2017 14:34:40 +0000 (10:34 -0400)]
Auto-dim refinements

 - Don't auto-dim while wallpaper is showing
 - Up alpha to 60%

Change-Id: Ie5fc33279ca46f7de37befacbbd7b42b7d4e5d15
Fixes: 67735001
Test: manual

6 years agoRefinement of auto-dimming nav
Jason Monk [Mon, 18 Sep 2017 14:31:37 +0000 (10:31 -0400)]
Refinement of auto-dimming nav

 - Make dimming only happen for interaction with nav
 - Extend time to dim
 - Shorten time to start dimming by same amount.

Test: visual
Change-Id: Ieb5b31bacdde9ce1952601ad65cff2d54386dd0f
Fixes: 65694001

6 years agoDon't touch auto dim on app change
Jason Monk [Wed, 30 Aug 2017 20:17:19 +0000 (16:17 -0400)]
Don't touch auto dim on app change

Test: manual
Bug: 63630024
Change-Id: I134aa2695bad36606588ca3e52685826f25ea306

6 years agoAuto dim the nav bar to help prevent diff aging
Jason Monk [Tue, 29 Aug 2017 22:58:00 +0000 (18:58 -0400)]
Auto dim the nav bar to help prevent diff aging

Test: runtest systemui
Bug: 63630024
Change-Id: If2a6c0934f8751f82c027dbb3b5f103a34dc78d4

6 years agoAdd color mode setting
Romain Guy [Tue, 24 Oct 2017 20:37:34 +0000 (21:37 +0100)]
Add color mode setting

The new setting appears on devices that support color management
and wide color gamut rendering. The setting allows the user to
choose between natural (sRGB), boosted (sRGB + 10% saturation)
and saturated (unmanaged colors; colors are remapped to the device's
native gamut).

This change adds a metric constant for analytics in Settings
and uses a persistent system property to know when to suppress
color management.

Bug: 68159303
Test: manual
Merged-In: I83cc972fc3a2290ff106eae0e76a3ee799503813
Change-Id: I83cc972fc3a2290ff106eae0e76a3ee799503813
(cherry picked from commit 62e8c175257d25c64ed19e5ccccd4e3cd987b8ad)

6 years agoActivityManager: Change documentation of low RAM
Greg Kaiser [Thu, 26 Oct 2017 17:36:37 +0000 (10:36 -0700)]
ActivityManager: Change documentation of low RAM

With OC-MR1, for Android Go, we're considering the definition of
"low RAM" to be <= 1GB of RAM.  So we update the definition in
this documentation.  Additionally, we remove the comments about
screen resolution, as various devices might make trade-offs in
terms of modem stack carveout vs. screen resolution, and those
don't concern us as much as just the total amount of RAM.

Bug: 68277942
Test: None.  This is a documentation change.
Change-Id: Ib02024a3e543f8fec11a1735de32ec58278db6e4

6 years agoMerge changes I59b6e04f,I55694d89 am: 9009eabbfe
Hugo Benichi [Thu, 26 Oct 2017 06:23:31 +0000 (06:23 +0000)]
Merge changes I59b6e04f,I55694d89 am: 9009eabbfe
am: 93134fea64

Change-Id: I923fe9cc37463e695182c7a279d201ba7e9d6518

6 years agoMerge changes I59b6e04f,I55694d89
Hugo Benichi [Thu, 26 Oct 2017 06:13:39 +0000 (06:13 +0000)]
Merge changes I59b6e04f,I55694d89
am: 9009eabbfe

Change-Id: I217e32a7ab25fd73f3361015efae9bbbd1fde0f4

6 years agoMerge changes I59b6e04f,I55694d89
Hugo Benichi [Thu, 26 Oct 2017 06:01:06 +0000 (06:01 +0000)]
Merge changes I59b6e04f,I55694d89

* changes:
  Remove Parcelable interface from DefaultNetworkEvent
  Extract logging of default network events

6 years agoMerge "HwBinder: Clean up code, add logging" am: 28ed91161d
Andreas Gampe [Thu, 26 Oct 2017 02:14:56 +0000 (02:14 +0000)]
Merge "HwBinder: Clean up code, add logging" am: 28ed91161d
am: 09cd361d2d

Change-Id: I02c31f8ac340c241fbf9b0ffc07c126c8812fb34

6 years agoMerge "HwBinder: Clean up code, add logging"
Andreas Gampe [Thu, 26 Oct 2017 02:03:47 +0000 (02:03 +0000)]
Merge "HwBinder: Clean up code, add logging"
am: 28ed91161d

Change-Id: Ie7d511812c6dc419ca793c28a4cee1150a90bd66

6 years agoMerge "HwBinder: Clean up code, add logging"
Treehugger Robot [Thu, 26 Oct 2017 01:52:40 +0000 (01:52 +0000)]
Merge "HwBinder: Clean up code, add logging"

6 years agoMerge "Convert framework-protos to Android.bp" am: d4609af986
Colin Cross [Thu, 26 Oct 2017 01:25:56 +0000 (01:25 +0000)]
Merge "Convert framework-protos to Android.bp" am: d4609af986
am: d78b46eb63

Change-Id: I8721f2f3182c0d5a7b1717bde0c840c7e1864a41

6 years agoMerge "Convert framework-protos to Android.bp"
Colin Cross [Thu, 26 Oct 2017 01:11:13 +0000 (01:11 +0000)]
Merge "Convert framework-protos to Android.bp"
am: d4609af986

Change-Id: I6ebf88a0931b7f9f49ac8044deb46b100129bb9f

6 years agoMerge "Convert framework-protos to Android.bp"
Colin Cross [Thu, 26 Oct 2017 01:01:08 +0000 (01:01 +0000)]
Merge "Convert framework-protos to Android.bp"

6 years agoMerge "Fix issue #64224738: Document return value of IBinder.transact()" am: ceb336fc8a
Hans Boehm [Thu, 26 Oct 2017 00:23:15 +0000 (00:23 +0000)]
Merge "Fix issue #64224738: Document return value of IBinder.transact()" am: ceb336fc8a
am: 05c93f1793  -s ours

Change-Id: I2a3e9b0a1a2e331fd0fa3063597fa450b624a473

6 years agoConvert Binder & BinderProxy to NativeAllocationRegistry
Hans Boehm [Fri, 29 Sep 2017 01:16:50 +0000 (18:16 -0700)]
Convert Binder & BinderProxy to NativeAllocationRegistry

Change the Java BinderProxy to only contain a single native pointer,
so that we can get by with a single NativeAllocationRegistry
registration. This adds some indirections and a new allocation. But it
marginally reduces the number of (expensive) JNI field lookups from
native code, and the extra allocation involves significantly less
overhead than registering each object twice. This also cleans up the
code a little by avoiding some explicit reference count adjustments.

Change BinderProxy Binder to use NativeAllocationRegistry instead of
finalize().

Change the mObject field in Binder to hold a non-reference-counted
but owning pointer to JavaBBinderHolder. Have JavaBBinderHolder no
longer inherit from RefBase.

Make it clear that neither Binder.mObject, not BinderProxy.mNativeData
can be null. Remove null checks.

Avoid checking for null returns from C++ new. It would throw
anyway, which would cause the process to abort.

Test: Booted master.

Bug: 65760710

Change-Id: I323d4bdc7e25f8c27b847b6fe2c073eac3f2efe5

6 years agoMerge "Fix issue #64224738: Document return value of IBinder.transact()"
Hans Boehm [Thu, 26 Oct 2017 00:12:52 +0000 (00:12 +0000)]
Merge "Fix issue #64224738: Document return value of IBinder.transact()"
am: ceb336fc8a

Change-Id: Ibcd3386a93a3bb5de8fb84a178678dab67beb464

6 years agoMerge "Fix issue #64224738: Document return value of IBinder.transact()"
Hans Boehm [Thu, 26 Oct 2017 00:01:12 +0000 (00:01 +0000)]
Merge "Fix issue #64224738: Document return value of IBinder.transact()"

6 years agoMerge "android.os.HwBinder: fix native static method signature" am: 65944e79b2
Yifan Hong [Wed, 25 Oct 2017 22:39:22 +0000 (22:39 +0000)]
Merge "android.os.HwBinder: fix native static method signature" am: 65944e79b2
am: 21347cf052

Change-Id: I6ee75f8c697a46105a30d68a8ad79f00f543f9ac

6 years agoMerge "android.os.HwBinder: fix native static method signature"
Yifan Hong [Wed, 25 Oct 2017 22:29:45 +0000 (22:29 +0000)]
Merge "android.os.HwBinder: fix native static method signature"
am: 65944e79b2

Change-Id: I09295da4a6021bd02c5c5e89d1d4ce3a8be82c96

6 years agoMerge "android.os.HwBinder: fix native static method signature"
Treehugger Robot [Wed, 25 Oct 2017 22:08:36 +0000 (22:08 +0000)]
Merge "android.os.HwBinder: fix native static method signature"

6 years agoHwBinder: Clean up code, add logging
Andreas Gampe [Wed, 25 Oct 2017 20:03:24 +0000 (13:03 -0700)]
HwBinder: Clean up code, add logging

Used ScopedUtfChars to handle lifetime, and correctly throw NPE. It
is illegal to call JNI String functions with a null argument.

Output the service name when starting a thread pool to aid debugging.

Bug: 68217725
Test: m
Test: Device boots
Change-Id: Ie40d3e77a63918330ef1a8a9e0c294f2c451a52a

6 years agoFix issue #64224738: Document return value of IBinder.transact()
Dianne Hackborn [Tue, 1 Aug 2017 00:38:53 +0000 (17:38 -0700)]
Fix issue #64224738: Document return value of IBinder.transact()

Also add appropriate @NonNull and @Nullable annotations.

Test: built

Change-Id: I22de48105ef685baf594cfc004dd3e27e2ba09e9
Merged-In: I22de48105ef685baf594cfc004dd3e27e2ba09e9
(cherry picked from commit 4cd650c0085e6dd20d3f46c5b668e54537f887cf)

6 years agoMerge "Fix dial emergency call redial issue by China Unicom." am: 3ab81b9694
Brad Ebinger [Wed, 25 Oct 2017 21:00:36 +0000 (21:00 +0000)]
Merge "Fix dial emergency call redial issue by China Unicom." am: 3ab81b9694
am: 136c475d20

Change-Id: If5700f3ffe35e898b47a8e9a9b7886f68dc7eeb8

6 years agoMerge "Fix dial emergency call redial issue by China Unicom."
Brad Ebinger [Wed, 25 Oct 2017 20:50:54 +0000 (20:50 +0000)]
Merge "Fix dial emergency call redial issue by China Unicom."
am: 3ab81b9694

Change-Id: I3895caab83c75a8f0d0251da6154d5a93fe09694

6 years agoMerge "Fix dial emergency call redial issue by China Unicom."
Brad Ebinger [Wed, 25 Oct 2017 20:36:17 +0000 (20:36 +0000)]
Merge "Fix dial emergency call redial issue by China Unicom."

6 years agoMerge "DO NOT MERGE - Support native and srgb for night display" into oc-mr1-dev
Christine Franks [Wed, 25 Oct 2017 20:28:07 +0000 (20:28 +0000)]
Merge "DO NOT MERGE - Support native and srgb for night display" into oc-mr1-dev
am: 2d110e6829

Change-Id: I0e805b480a3317548c219eb282fcf399b41b4ff1

6 years agoandroid.os.HwBinder: fix native static method signature
Yifan Hong [Wed, 25 Oct 2017 20:19:22 +0000 (13:19 -0700)]
android.os.HwBinder: fix native static method signature

Test: pass
Change-Id: I54c384abaad7c7aafab31836f34edee5c7c75aac

6 years agoMerge "DO NOT MERGE - Support native and srgb for night display" into oc-mr1-dev
Christine Franks [Wed, 25 Oct 2017 20:15:17 +0000 (20:15 +0000)]
Merge "DO NOT MERGE - Support native and srgb for night display" into oc-mr1-dev