OSDN Git Service

android-x86/frameworks-base.git
4 years agoMerge "aw: Correct doc of addJavascriptInterface()" into qt-dev am: 62c764e29b
Shimi Zhang [Wed, 28 Aug 2019 02:11:45 +0000 (19:11 -0700)]
Merge "aw: Correct doc of addJavascriptInterface()" into qt-dev am: 62c764e29b
am: a4604013ae

Change-Id: I443bdb67a8e99508788f88f5c377da8dac1aca0d

4 years agoMerge "aw: Correct doc of addJavascriptInterface()" into qt-dev
Shimi Zhang [Wed, 28 Aug 2019 01:59:46 +0000 (18:59 -0700)]
Merge "aw: Correct doc of addJavascriptInterface()" into qt-dev
am: 62c764e29b

Change-Id: Ib1d1aa6262c3571c4c4f284b12dfe1ec5b40e3c8

4 years agoMerge "aw: Correct doc of addJavascriptInterface()" into qt-dev
TreeHugger Robot [Wed, 28 Aug 2019 01:39:59 +0000 (01:39 +0000)]
Merge "aw: Correct doc of addJavascriptInterface()" into qt-dev

4 years agoUse mContext directly am: dd3737611c
Daniel Rosenberg [Wed, 28 Aug 2019 01:23:39 +0000 (18:23 -0700)]
Use mContext directly am: dd3737611c
am: 6cc5076442

Change-Id: I0d7a49fe556e0b23640aac5546cb2590c790caf2

4 years agoMerge "Clear binder references and flush operations when destroying NativeInputWindow...
TreeHugger Robot [Wed, 28 Aug 2019 01:11:01 +0000 (01:11 +0000)]
Merge "Clear binder references and flush operations when destroying NativeInputWindowHandle" into qt-qpr1-dev

4 years agoUse mContext directly
Daniel Rosenberg [Wed, 28 Aug 2019 01:10:41 +0000 (18:10 -0700)]
Use mContext directly
am: dd3737611c

Change-Id: Icf6e6216a789f8f7899eeae39cd253e285d7c98e

4 years agoMerge "5GE Icon: Show 5G subscript E (italics)" into qt-r1-dev
Jayachandran Chinnakkannu [Tue, 27 Aug 2019 22:37:12 +0000 (15:37 -0700)]
Merge "5GE Icon: Show 5G subscript E (italics)" into qt-r1-dev
am: 7a1f8da2fb

Change-Id: Ie2430ea545952ed3630012bbb618332de9e51194

4 years agoMerge "Ignore hidden views when computing exclusion rects" into qt-qpr1-dev
TreeHugger Robot [Tue, 27 Aug 2019 21:54:09 +0000 (21:54 +0000)]
Merge "Ignore hidden views when computing exclusion rects" into qt-qpr1-dev

4 years agoMerge "5GE Icon: Show 5G subscript E (italics)" into qt-r1-dev
Jayachandran Chinnakkannu [Tue, 27 Aug 2019 21:46:01 +0000 (21:46 +0000)]
Merge "5GE Icon: Show 5G subscript E (italics)" into qt-r1-dev

4 years agoUse mContext directly
Daniel Rosenberg [Tue, 27 Aug 2019 02:29:45 +0000 (19:29 -0700)]
Use mContext directly

We already have the context saved, so we can just use that.

Test: Edited code to force expection path to be called, confirmed
      reboot happens
Bug: 138952436
Bug: 140111727

Change-Id: I40e95d72c63f864131f0028c47f121463d0f6dff

4 years agoClear binder references and flush operations when destroying NativeInputWindowHandle
Vishnu Nair [Tue, 20 Aug 2019 16:12:26 +0000 (09:12 -0700)]
Clear binder references and flush operations when destroying NativeInputWindowHandle

NativeInputWindowHandle is the native object associated with InputWindowHandle. The object is lazily
initialized and destroyed when the java object is finalized, running in the finalizer thread. The
native object stores a weak reference to the layer handle and if the layer handle is destroyed before
the reference can be cleaned up, we end up leaking the reference. This is because the ref count
operations do not seem to be flushed. Fix this by explicitly flushing the commands.

Bug: 139375469
Test: Run app launch scripts from bug. Check for startup time regressions and node count increases
between launches

Change-Id: I837f7cd23f94bbcf59910664aec242fcf9c43986

4 years agoMerge "docs: Added content desc in ImageView example." into qt-dev am: eba5156095
Kevin Hufnagle [Tue, 27 Aug 2019 09:13:09 +0000 (02:13 -0700)]
Merge "docs: Added content desc in ImageView example." into qt-dev am: eba5156095
am: 230a23e8d2

Change-Id: Ibf9c2193db824ffd49022d9139b520a6d0986c52

4 years agoAdd SocketUtils CTS tests am: 0141ef0948
Paul Hu [Tue, 27 Aug 2019 09:09:04 +0000 (02:09 -0700)]
Add SocketUtils CTS tests am: 0141ef0948
am: f770a59ba2

Change-Id: I5306bd2ac124927e45526319b61907634efb5dba

4 years ago[automerger skipped] Import translations. DO NOT MERGE
Bill Yi [Tue, 27 Aug 2019 09:01:34 +0000 (02:01 -0700)]
[automerger skipped] Import translations. DO NOT MERGE
am: 693e8cb402 -s ours
am skip reason: subject contains skip directive

Change-Id: I8edc4e192c0b6eed5667611df754216dee16250d

4 years ago[automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-r1-dev
Bill Yi [Tue, 27 Aug 2019 08:42:53 +0000 (01:42 -0700)]
[automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-r1-dev
am: b7ad07adad -s ours
am skip reason: subject contains skip directive

Change-Id: Ic727e25a1c2975c797a6425fb662d2f5575ad19c

4 years agoMerge "Revert "Hold Display suspend blocker until doze starts"" into qt-r1-dev
Adrian Salido [Tue, 27 Aug 2019 08:15:00 +0000 (01:15 -0700)]
Merge "Revert "Hold Display suspend blocker until doze starts"" into qt-r1-dev
am: c5441b2894

Change-Id: I9877fb4970735e21d31d644602e8e766ef0cf45e

4 years agoMerge "DO NOT MERGE DMD: Support minimum refresh rate" into qt-r1-dev
Adrian Salido [Tue, 27 Aug 2019 07:44:15 +0000 (00:44 -0700)]
Merge "DO NOT MERGE DMD: Support minimum refresh rate" into qt-r1-dev
am: 9b94c35a54

Change-Id: I9b2c633e3565c63ca9c8232d1c45d4baaad6e73d

4 years ago[automerger skipped] DO NOT MERGE DMD: Support minimum refresh rate
Long Ling [Tue, 27 Aug 2019 06:45:39 +0000 (23:45 -0700)]
[automerger skipped] DO NOT MERGE DMD: Support minimum refresh rate
am: 86ce8f764b -s ours
am skip reason: SHA1 86ce8f764b skipped by user salidoa

Change-Id: I419108f6dcd50404aa298cd9bd29bda765cf9725

4 years agoMerge changes from topic "device_config_for_display_qpr1" into qt-qpr1-dev
Long Ling [Tue, 27 Aug 2019 04:50:03 +0000 (04:50 +0000)]
Merge changes from topic "device_config_for_display_qpr1" into qt-qpr1-dev

* changes:
  DMD: Support minimum refresh rate
  Allow DeviceConfig to change display settings

4 years agoMerge "docs: Added content desc in ImageView example." into qt-dev
Kevin Hufnagle [Mon, 26 Aug 2019 22:10:39 +0000 (15:10 -0700)]
Merge "docs: Added content desc in ImageView example." into qt-dev
am: eba5156095

Change-Id: I08a66c2da26833978d2ed4b77de175b3bfe78931

4 years agoMerge "docs: Added content desc in ImageView example." into qt-dev
Kevin Hufnagle [Mon, 26 Aug 2019 21:05:37 +0000 (21:05 +0000)]
Merge "docs: Added content desc in ImageView example." into qt-dev

4 years agoMerge "Don't send HOME intent twice when booting from non-system user." into qt-qpr1-dev
TreeHugger Robot [Mon, 26 Aug 2019 20:57:28 +0000 (20:57 +0000)]
Merge "Don't send HOME intent twice when booting from non-system user." into qt-qpr1-dev

4 years agoaw: Correct doc of addJavascriptInterface()
Shimi Zhang [Mon, 26 Aug 2019 18:01:12 +0000 (11:01 -0700)]
aw: Correct doc of addJavascriptInterface()

The Javadoc of addJavascriptInterface() mentioned that the injected
Java object will be injected to main frame, but this is not telling
a full picture. The current implementation will inject the Java
object to all the frames actually.

This CL corrected the misleading wording and add a new warning to
explicitly call it out as a security risk.

Bug: 113336656
Test: make ds-docs
Change-Id: Ia79381d1ab38afa963ea7365526749c14e25238c

4 years agoDMD: Support minimum refresh rate
Long Ling [Sun, 18 Aug 2019 01:02:46 +0000 (18:02 -0700)]
DMD: Support minimum refresh rate

Bug: 139685237
Change-Id: Ib41dee351276d70733fffa18620455e4e6f9ddfc

4 years agoAllow DeviceConfig to change display settings
Long Ling [Thu, 8 Aug 2019 23:05:44 +0000 (16:05 -0700)]
Allow DeviceConfig to change display settings

Allow DeviceConfig to change default refresh rate and 60 hz only
thresholds.

Bug: 139138964
Change-Id: I3bf5f8cf7a99e4723265138004fbbd08102119d9

4 years agoDon't send HOME intent twice when booting from non-system user.
Felipe Leme [Thu, 22 Aug 2019 23:32:21 +0000 (16:32 -0700)]
Don't send HOME intent twice when booting from non-system user.

When Automotive boots, CarServiceHelperService "restarts" the system user in the background, so it
can be unlocked. Consequently, some boot tasks will be executed twice (triggered from
UserController.startUser() and ActivityManager.systemReady()).

Test: manual verification
Bug: 139502237

Merged-In: Idd8beedf1ea034b47b9756b91404c5a043965c23
Change-Id: Idd8beedf1ea034b47b9756b91404c5a043965c23

4 years agoAdd SocketUtils CTS tests
Paul Hu [Mon, 26 Aug 2019 03:21:52 +0000 (20:21 -0700)]
Add SocketUtils CTS tests
am: 0141ef0948

Change-Id: I92a6b3e5cb1fa993dfaeacb442cbf6b401dd5996

4 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 25 Aug 2019 08:08:16 +0000 (01:08 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I360dde2e3d4eb2abc98c8bd3163ff8d9f7e41112

4 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 25 Aug 2019 07:48:06 +0000 (00:48 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ida726221a394a3d372b293f4023dfe53658ab926

4 years agoMerge "Hold Display suspend blocker until doze starts" into qt-r1-dev
Santos Cordon [Sat, 24 Aug 2019 03:09:37 +0000 (20:09 -0700)]
Merge "Hold Display suspend blocker until doze starts" into qt-r1-dev
am: 48a86feefe

Change-Id: I15d47b96d0b937c720eca379d34a73da5f00a6d2

4 years ago[automerger skipped] Merge "Only delay bouncer if bypass is off" into qt-r1-dev
Lucas Dupin [Sat, 24 Aug 2019 03:09:10 +0000 (20:09 -0700)]
[automerger skipped] Merge "Only delay bouncer if bypass is off" into qt-r1-dev
am: 255777af56 -s ours
am skip reason: change_id I5ca00ebacda2c893bf62d5c882fe0a244b77f4fc with SHA1 d969b76224 is in history

Change-Id: Iba1881c5ec53168ee0352eb0ebd4b7ab689e52bc

4 years ago[automerger skipped] Import translations. DO NOT MERGE
Bill Yi [Sat, 24 Aug 2019 03:08:37 +0000 (20:08 -0700)]
[automerger skipped] Import translations. DO NOT MERGE
am: 1c99d77a36 -s ours
am skip reason: subject contains skip directive

Change-Id: I3d6e4749aeae39286b21e7fb6021c84cc16c40d2

4 years agoMerge changes from topic "device_config_for_display_90" into qt-r1-dev
Long Ling [Sat, 24 Aug 2019 03:08:11 +0000 (20:08 -0700)]
Merge changes from topic "device_config_for_display_90" into qt-r1-dev
am: 36da9bb9ff

Change-Id: Ifd67f0360cd4c4b7d48c097af3254b54384f5a6a

4 years ago[automerger skipped] DO NOT MERGE Move device config key high_refresh_rate_blacklist...
Long Ling [Sat, 24 Aug 2019 03:03:00 +0000 (20:03 -0700)]
[automerger skipped] DO NOT MERGE Move device config key high_refresh_rate_blacklist to display_manager
am: 6f13f12213 -s ours
am skip reason: SHA1 6f13f12213 skipped by user longling

Change-Id: I86d6aecba73b729a4292669a24d56b89c27645c6

4 years agoDO NOT MERGE DeviceConfig: Add Name space and keys for Display Manager
Long Ling [Sat, 24 Aug 2019 03:02:56 +0000 (20:02 -0700)]
DO NOT MERGE DeviceConfig: Add Name space and keys for Display Manager
am: 66e9298ac6

Change-Id: Id3f8518db5a906aeb626494309c7bb70fdf57d24

4 years agoMerge "Fix integer overflow in make_timestamp_ns_locked" into qt-qpr1-dev
TreeHugger Robot [Sat, 24 Aug 2019 02:40:41 +0000 (02:40 +0000)]
Merge "Fix integer overflow in make_timestamp_ns_locked" into qt-qpr1-dev

4 years agoMerge "Support WAC decoding in UMTS format" into qt-qpr1-dev
Pengquan Meng [Fri, 23 Aug 2019 21:53:13 +0000 (21:53 +0000)]
Merge "Support WAC decoding in UMTS format" into qt-qpr1-dev

4 years agoMerge "Import translations. DO NOT MERGE" into qt-qpr1-dev
TreeHugger Robot [Fri, 23 Aug 2019 18:30:39 +0000 (18:30 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev

4 years agoMerge "[DO NOT MERGE]Daggerize Android Auto" into qt-qpr1-dev
Neil Fuller [Fri, 23 Aug 2019 14:17:49 +0000 (14:17 +0000)]
Merge "[DO NOT MERGE]Daggerize Android Auto" into qt-qpr1-dev

4 years ago[DO NOT MERGE]Daggerize Android Auto
Govinda Wasserman [Thu, 22 Aug 2019 20:51:48 +0000 (16:51 -0400)]
[DO NOT MERGE]Daggerize Android Auto

Test: tested locally
BUG:139865326
Change-Id: I38c6f3bf8a8c43997251b1f13b3f2fb4533d15f2
Merged-In: I38c6f3bf8a8c43997251b1f13b3f2fb4533d15f2

4 years agoDO NOT MERGE DeviceConfig: Add Name space and keys for Display Manager
Long Ling [Thu, 8 Aug 2019 23:05:19 +0000 (16:05 -0700)]
DO NOT MERGE DeviceConfig: Add Name space and keys for Display Manager

Bug: 139138964
Change-Id: I077380583f0daf650b17832a6cec4919b41ac155

4 years agoSupport WAC decoding in UMTS format
Pengquan Meng [Tue, 13 Aug 2019 06:09:34 +0000 (23:09 -0700)]
Support WAC decoding in UMTS format

This add a decoder for WAC information. WAC is appended to the UMTS
cell broadcast message. The encoding is defined in ATIS-0700041.

Bug: 123096618
Test: build & manual test
Merged-In: I73dc22c27c2cfd47000ae65448fbc857ed9aa42f
Change-Id: I73dc22c27c2cfd47000ae65448fbc857ed9aa42f
(cherry picked from commit 14df7e3845369e7254e6aae13160c7e1caa1d28a)

4 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 23 Aug 2019 09:29:52 +0000 (02:29 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I1da61e9093dbc1b2f19b3f11848190cbe3fe2254

4 years agoMerge "change network suggestion notification content string" into qt-qpr1-dev
Nate Jiang [Fri, 23 Aug 2019 04:22:26 +0000 (04:22 +0000)]
Merge "change network suggestion notification content string" into qt-qpr1-dev

4 years agoAdd SocketUtils CTS tests
Paul Hu [Tue, 18 Jun 2019 11:26:29 +0000 (04:26 -0700)]
Add SocketUtils CTS tests

Test APIs below:
makeNetlinkSocketAddress(int, int)
makePacketSocketAddress(short, int)
makePacketSocketAddress(int, byte[])
closeSocket(java.io.FileDescriptor)

Bug:129200596
Test: atest FrameworksNetTests
      atest CtsNetTestCases --instant
Merged-In: I36252fdf516cf4a9d4506b615cdb38f5413739e5
(cherry picked from commit 93a53224d3a1cd6fc1de7d94955e03116b744e4a)

Change-Id: I0963acaf00c5bdd93db0503c426f190f409ca076

4 years agoMerge "Import translations. DO NOT MERGE" into qt-r1-dev
TreeHugger Robot [Fri, 23 Aug 2019 00:38:24 +0000 (00:38 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-r1-dev

4 years agoMerge "Import translations. DO NOT MERGE" into qt-qpr1-dev
TreeHugger Robot [Fri, 23 Aug 2019 00:34:20 +0000 (00:34 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev

4 years agoIgnore hidden views when computing exclusion rects
Winson Chung [Thu, 22 Aug 2019 23:36:18 +0000 (16:36 -0700)]
Ignore hidden views when computing exclusion rects

Bug: 138806473
Test: atest SystemGestureExclusionRectsTest
Change-Id: I43629546af641d2b6347889e3ea10bd2cbbe9070

4 years ago5GE Icon: Show 5G subscript E (italics)
vagdevi [Thu, 22 Aug 2019 19:02:47 +0000 (12:02 -0700)]
5GE Icon: Show 5G subscript E (italics)

URL: https://screenshot.googleplex.com/SpTnerVCnQZ.png

Bug: 139776677
Test: manual using PARIS Override for
show_carrier_data_icon_pattern_string
Change-Id: I69e32c89558fba884bb12d29cb8ff81470591bb0

4 years agoMerge "Add manifest flag to enable prerelease driver." into qt-qpr1-dev
Peiyong Lin [Thu, 22 Aug 2019 22:59:39 +0000 (22:59 +0000)]
Merge "Add manifest flag to enable prerelease driver." into qt-qpr1-dev

4 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 22 Aug 2019 22:55:01 +0000 (15:55 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Iba60f442bfce52a602590b2eaa7bf42ca7f79445

4 years agoMerge "Revert "Hold Display suspend blocker until doze starts"" into qt-r1-dev
Adrian Salido [Thu, 22 Aug 2019 22:53:56 +0000 (22:53 +0000)]
Merge "Revert "Hold Display suspend blocker until doze starts"" into qt-r1-dev

4 years agoFix integer overflow in make_timestamp_ns_locked
Roman Kiryanov [Wed, 21 Aug 2019 18:01:39 +0000 (11:01 -0700)]
Fix integer overflow in make_timestamp_ns_locked

timespec::tv_sec is time_t which is 32bit wide on
32bit platforms. Multipliyng 32bit integers (tv_sec and
1000) produces another 32bit integer which overflows
in this case and turns into a negative value which
confuses the logic downstream. This change makes the
multiplication to be 64bit which prevent the overflow.

Bug: 139320584
Bug: 139538727
Test: GtsIncidentManagerTestCases
Change-Id: Ie956074961c7c1f08e2519920f7ce69d5c9e12d3
Signed-off-by: Roman Kiryanov <rkir@google.com>
(cherry picked from commit e9db937f4008f097f4ee9dc341a3afc219a96fd9)

4 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 22 Aug 2019 22:35:19 +0000 (15:35 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I10ae69007f380648f07514a5ffb7de97bb7471d5

4 years agoMerge "Fix Handling of user switching for headless user 0 model." into qt-qpr1-dev
Ram Periathiruvadi [Thu, 22 Aug 2019 22:00:51 +0000 (22:00 +0000)]
Merge "Fix Handling of user switching for headless user 0 model." into qt-qpr1-dev

4 years agoMerge "Hold a strong reference to the callback in TextClassifierService" into qt...
TreeHugger Robot [Thu, 22 Aug 2019 21:16:59 +0000 (21:16 +0000)]
Merge "Hold a strong reference to the callback in TextClassifierService" into qt-qpr1-dev

4 years agoRevert "Hold Display suspend blocker until doze starts"
Adrian Salido [Thu, 22 Aug 2019 20:41:15 +0000 (20:41 +0000)]
Revert "Hold Display suspend blocker until doze starts"

This reverts commit 93e164726f2d243eb75351b4e52d683573f9f802.

Reason for revert: This is causing wake lock to remain held
while screen is off

Bug: 139875245
Change-Id: I0ff714a0cf2496d141d355de68761ab720a09539

4 years agochange network suggestion notification content string
Nate Jiang [Wed, 21 Aug 2019 00:21:47 +0000 (17:21 -0700)]
change network suggestion notification content string

Change the notify String apply to suggestion logic

Test: acts WifiNetworkSuggestionTest
Bug: 139037269

Change-Id: I951a7b9b10abf8801bcd2f313798bf9fb0043864

4 years agoMerge "Fix legacy role holder resolution for assistant, dialer and SMS." into qt...
TreeHugger Robot [Thu, 22 Aug 2019 19:11:38 +0000 (19:11 +0000)]
Merge "Fix legacy role holder resolution for assistant, dialer and SMS." into qt-qpr1-dev

4 years agoMerge "Add fields to Cellbroadcast" into qt-qpr1-dev
Pengquan Meng [Thu, 22 Aug 2019 18:31:05 +0000 (18:31 +0000)]
Merge "Add fields to Cellbroadcast" into qt-qpr1-dev

4 years agoMerge "Limit the number of Notif Channels per app" into qt-qpr1-dev
Julia Reynolds [Thu, 22 Aug 2019 18:31:02 +0000 (18:31 +0000)]
Merge "Limit the number of Notif Channels per app" into qt-qpr1-dev

4 years agoAdd fields to Cellbroadcast
Pengquan Meng [Fri, 19 Jul 2019 00:30:04 +0000 (17:30 -0700)]
Add fields to Cellbroadcast

This add some fields to CellBroadcasts in order to support the WEA 3.0
geo-fencing.

Bug: 123096618
Test: atest TelephonyProviderTests
Merged-In: Ied0780cb1b9993e6d8cdb80131ba2f8b8affcb54
Change-Id: Ied0780cb1b9993e6d8cdb80131ba2f8b8affcb54
(cherry picked from commit 5c6e975ce4a973619f20167644475b04e663ee4e)

4 years agoAdd manifest flag to enable prerelease driver.
Peiyong Lin [Fri, 9 Aug 2019 17:34:39 +0000 (10:34 -0700)]
Add manifest flag to enable prerelease driver.

Add manifest flag to prevent applications from using prerelease driver
accidentally. In this patch we also allow any debuggable device build to load
prerelease driver for all non-system and non-privileged applications.

BUG: 138132808
Test: Verified with prerelease driver.
Change-Id: If0abc89f709c8e34bd83a5c09c3c2047300b5ef2

4 years agoMerge "Add geo targeting implementation" into qt-qpr1-dev
Pengquan Meng [Thu, 22 Aug 2019 17:13:14 +0000 (17:13 +0000)]
Merge "Add geo targeting implementation" into qt-qpr1-dev

4 years agoHold a strong reference to the callback in TextClassifierService
Tony Mak [Wed, 14 Aug 2019 19:38:06 +0000 (20:38 +0100)]
Hold a strong reference to the callback in TextClassifierService

Issue:
TextClassifierService failed to invoke the callback to send the result back to client
occasionally because  the callback object may be GCed.
And thus smart selection failed occasionally, as the client doesn't get a response
back when it hits this issue. It won't fallback to local textclassifier due to the
timeout specified in TextView.

Cause:
We thought that ITextClassifierCallback is a "cross process" reference, and
so we only store a weak reference of it to avoid leak.
And it turns out that it is wrong. As soon as the weak ref gets GCed in
the service, that counts as dropping the callback. The service doesn't
know about any strong references the client has.

Bug: 138865849

Test: Try smart selection over 30 times, make sure smart action is shown
for every single time.

Merged-In: Ia9218cf67e8d67697a0fdff22c7918a55efc39ca

Change-Id: I4d89518dfff777ba5d999d9ba89d7f4cf7598e75

4 years agoLimit the number of Notif Channels per app
Julia Reynolds [Tue, 20 Aug 2019 20:08:42 +0000 (16:08 -0400)]
Limit the number of Notif Channels per app

Fixes: 139111963
Test: atest
Change-Id: I0f0d442e9f5cc5bb1d73a638e00726807ef9fb48
(cherry picked from commit c29370a294cd2aec9536d97e81f74931396b6fd9)

4 years agoMerge "Create carrier config to define specific default value of APN types." into...
SongFerng Wang [Thu, 22 Aug 2019 09:49:27 +0000 (09:49 +0000)]
Merge "Create carrier config to define specific default value of APN types." into qt-qpr1-dev

4 years agoFix legacy role holder resolution for assistant, dialer and SMS.
Hai Zhang [Wed, 21 Aug 2019 23:35:18 +0000 (16:35 -0700)]
Fix legacy role holder resolution for assistant, dialer and SMS.

The legacy settings for them can actually remain null and it was
handled specially to use the system default instead. If the legacy
role holders aren't resolved correctly, role implementation will do a
fallback grant which overrides permission state, whereas if they are
resolved correctly the normal fix up won't do an override.

Fixes: 139752137
Test: manual
Change-Id: I5cc301c3b7b459bdfaece0117bcacd984d1cb78f

4 years agoMerge "DO NOT MERGE DMD: Support minimum refresh rate" into qt-r1-dev
Adrian Salido [Thu, 22 Aug 2019 02:09:34 +0000 (02:09 +0000)]
Merge "DO NOT MERGE DMD: Support minimum refresh rate" into qt-r1-dev

4 years agoMerge "Hold Display suspend blocker until doze starts" into qt-r1-dev
TreeHugger Robot [Thu, 22 Aug 2019 00:22:43 +0000 (00:22 +0000)]
Merge "Hold Display suspend blocker until doze starts" into qt-r1-dev

4 years agoMerge "Only delay bouncer if bypass is off" into qt-r1-dev
TreeHugger Robot [Wed, 21 Aug 2019 23:54:25 +0000 (23:54 +0000)]
Merge "Only delay bouncer if bypass is off" into qt-r1-dev

4 years agoadd checking for carrierConfigs certificates for psim
Nazanin Bakhshi [Mon, 19 Aug 2019 23:36:07 +0000 (16:36 -0700)]
add checking for carrierConfigs certificates for psim

Test: utests
Bug: 139133814
Change-Id: I2d5cf7ee4e516ff16a67a5fbef6674a380095888

4 years agoMerge "add certs to carrier configs and store them as UiccAccessRules" into qt-qpr1-dev
Nazanin Bakhshi [Wed, 21 Aug 2019 21:42:24 +0000 (21:42 +0000)]
Merge "add certs to carrier configs and store them as UiccAccessRules" into qt-qpr1-dev

4 years agoHold Display suspend blocker until doze starts
Santos Cordon [Wed, 21 Aug 2019 21:25:44 +0000 (22:25 +0100)]
Hold Display suspend blocker until doze starts

When transitioning to DOZE, there is a race condition between the
release of the display suspend blocker and calling startDream. This
creates a gap where the device can suspend before the dream actually
starts.  In practice, this can cause gestures, which are nitialized
from the Dream Service, to not function until something else
temporarily wakes up the device enough for the CPU to run a few
cycles.

This change delays the release of the display suspend blocker if
there is a pending recalculation of the sleep/doze state.

Bug: 138828701
Test: Manual testing - was 1 in 5 chance of reproing.  Tested up to
0 out of 50 after the fix.
Test: atest PowerManagerServiceTest

Change-Id: Ic6df469972dc5765a8c4507404d1dc33f13ec0c3

4 years agoAdd geo targeting implementation
Pengquan Meng [Thu, 15 Aug 2019 00:57:33 +0000 (17:57 -0700)]
Add geo targeting implementation

This CL adds support for geo targeting, including determining whether a
point is inside a simple polygon and circle.

For the judgment of the point in the polygon, the algorithm implemented
here simply considers the spherical polygon as a 2d plane polygon, which
may be not precisely. However, according to the test of real geographical
coordinates data i.e state/city/stree boundary data, this error is less than
10 meters that within 160 meters requires by the spec.

Bug: 123096618
Test: atest GeoUtils
Merged-In: I51e1fad3b48c1a58fa0510f97d9f5f9335779c30
Change-Id: I51e1fad3b48c1a58fa0510f97d9f5f9335779c30
(cherry picked from commit 7fbc74b66b58dd57deedb7336c5c1e2f0f9e2064)

4 years agoMerge "Changed regex matching for MCC and MNC" into qt-qpr1-dev
Sarah Chin [Wed, 21 Aug 2019 21:26:53 +0000 (21:26 +0000)]
Merge "Changed regex matching for MCC and MNC" into qt-qpr1-dev

4 years agoMerge "[DO NOT MERGE] qt-qpr1-sysui-dev @ build 5814791" into qt-qpr1-dev
TreeHugger Robot [Wed, 21 Aug 2019 21:19:19 +0000 (21:19 +0000)]
Merge "[DO NOT MERGE] qt-qpr1-sysui-dev @ build 5814791" into qt-qpr1-dev

4 years agoOnly delay bouncer if bypass is off
Lucas Dupin [Thu, 15 Aug 2019 18:41:52 +0000 (11:41 -0700)]
Only delay bouncer if bypass is off

Test: pull up bouncer with bypass on and off
Test: atest KeyguardBouncerTest
Fixes: 137563419
Change-Id: I5ca00ebacda2c893bf62d5c882fe0a244b77f4fc
Merged-In: I5ca00ebacda2c893bf62d5c882fe0a244b77f4fc
(cherry picked from commit d969b7622420482a4836378a8ad5d61b38e6755c)

4 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 21 Aug 2019 20:53:24 +0000 (13:53 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: If6e4358b08995e5caaaaa90bba9fff23f4e4a486

4 years agoDO NOT MERGE DMD: Support minimum refresh rate
Long Ling [Sun, 18 Aug 2019 01:02:46 +0000 (18:02 -0700)]
DO NOT MERGE DMD: Support minimum refresh rate

Bug: 139685237
Change-Id: Ib41dee351276d70733fffa18620455e4e6f9ddfc

4 years agoMerge "Mark USAGE_NOTIFICATION_EVENT vibrations as notifications" into qt-r1-dev
Alexey Kuzmin [Wed, 21 Aug 2019 19:47:17 +0000 (12:47 -0700)]
Merge "Mark USAGE_NOTIFICATION_EVENT vibrations as notifications" into qt-r1-dev
am: 8e70a2826e

Change-Id: I89fb24a3a3384f677786db4e7cc016bc2c5009d1

4 years agoMerge changes from topic "device_config_for_display_90" into qt-r1-dev
Long Ling [Wed, 21 Aug 2019 19:35:12 +0000 (19:35 +0000)]
Merge changes from topic "device_config_for_display_90" into qt-r1-dev

* changes:
  DO NOT MERGE Move device config key high_refresh_rate_blacklist to display_manager
  DO NOT MERGE Allow DeviceConfig to change display settings
  DO NOT MERGE DeviceConfig: Add Name space and keys for Display Manager

4 years agoMerge "Move processing off of HIDL Binder" into qt-qpr1-dev
TreeHugger Robot [Wed, 21 Aug 2019 19:17:48 +0000 (19:17 +0000)]
Merge "Move processing off of HIDL Binder" into qt-qpr1-dev

4 years agoMerge "Mark USAGE_NOTIFICATION_EVENT vibrations as notifications" into qt-r1-dev
TreeHugger Robot [Wed, 21 Aug 2019 19:04:49 +0000 (19:04 +0000)]
Merge "Mark USAGE_NOTIFICATION_EVENT vibrations as notifications" into qt-r1-dev

4 years agoChanged regex matching for MCC and MNC
Sarah Chin [Mon, 5 Aug 2019 17:24:04 +0000 (10:24 -0700)]
Changed regex matching for MCC and MNC

Bug: 137942727
Test: atest CellIdentityTest
Change-Id: Iaeb9ff9e2a5a82be66855378831cd52ee49e3c5c
(cherry picked from commit cb76b14fdfbb8e074bc3d319ae7d8d29e47ec1fc)
Merged-In: Iaeb9ff9e2a5a82be66855378831cd52ee49e3c5c

4 years agoMerge "Add carrier config for ignoring user RTT setting" into qt-r1-dev
Hall Liu [Wed, 21 Aug 2019 18:37:35 +0000 (11:37 -0700)]
Merge "Add carrier config for ignoring user RTT setting" into qt-r1-dev
am: 5ca4cef9b5

Change-Id: I15a0dc85d3a2c9be599deed826696e4a1c542fce

4 years agoMerge "Add carrier config for ignoring user RTT setting" into qt-r1-dev
Hall Liu [Wed, 21 Aug 2019 18:28:20 +0000 (18:28 +0000)]
Merge "Add carrier config for ignoring user RTT setting" into qt-r1-dev

4 years agoadd certs to carrier configs and store them as UiccAccessRules
Nazanin Bakhshi [Fri, 2 Aug 2019 23:43:44 +0000 (16:43 -0700)]
add certs to carrier configs and store them as UiccAccessRules

Bug: 138388637
Test: tested with local override and made sure they are read and parsed
Change-Id: I50fb11444f0da33ae48683b834e6ca50941ad1b7
Merged-In: I50fb11444f0da33ae48683b834e6ca50941ad1b7

4 years agoDO NOT MERGE Move device config key high_refresh_rate_blacklist to display_manager
Long Ling [Tue, 13 Aug 2019 23:07:14 +0000 (16:07 -0700)]
DO NOT MERGE Move device config key high_refresh_rate_blacklist to display_manager

high_refresh_rate_blacklist belongs to smooth display feature. Move the
key from namespace window_manager to display_manager.

Bug: 139138964
Test: atest WmTests:HighRefreshRateBlacklistTest
Test: Manual adb shell device_config/dumpsys window
Change-Id: I3ae8ecce80ef97c4683a1c18ad81dc78456e9d57

4 years agoDO NOT MERGE Allow DeviceConfig to change display settings
Long Ling [Thu, 8 Aug 2019 23:05:44 +0000 (16:05 -0700)]
DO NOT MERGE Allow DeviceConfig to change display settings

Allow DeviceConfig to change default refresh rate and 60 hz only
thresholds.

Bug: 139138964
Change-Id: I3bf5f8cf7a99e4723265138004fbbd08102119d9

4 years agoDO NOT MERGE DeviceConfig: Add Name space and keys for Display Manager
Long Ling [Thu, 8 Aug 2019 23:05:19 +0000 (16:05 -0700)]
DO NOT MERGE DeviceConfig: Add Name space and keys for Display Manager

Bug: 139138964
Change-Id: I077380583f0daf650b17832a6cec4919b41ac155

4 years agoMerge "Treat SENSOR_DIRTY as user not detected" into qt-r1-dev
Ilya Matyukhin [Wed, 21 Aug 2019 17:41:12 +0000 (10:41 -0700)]
Merge "Treat SENSOR_DIRTY as user not detected" into qt-r1-dev
am: a4a02a7854

Change-Id: I55bc333472b742d5b6edd06456dfe14193fd0779

4 years agoMerge "Treat SENSOR_DIRTY as user not detected" into qt-r1-dev
TreeHugger Robot [Wed, 21 Aug 2019 17:25:15 +0000 (17:25 +0000)]
Merge "Treat SENSOR_DIRTY as user not detected" into qt-r1-dev

4 years ago[DO NOT MERGE] qt-qpr1-sysui-dev @ build 5814791
Hyunyoung Song [Tue, 20 Aug 2019 07:53:24 +0000 (00:53 -0700)]
[DO NOT MERGE] qt-qpr1-sysui-dev @ build 5814791

Test: presubmit setup on source branch

Bug: 130289146 Create a Gradle build for SystemUI
Bug: 136279712 Daggerize FalsingManager
Bug: 137324767 "Unable to instantiate service com.android.systemui.doze.DozeService" exception breaks launcher tests
Bug: 137563419 Remove Bouncer reveal delay from bypass flow
Bug: 138787339 Allow Services and Activities to be injected into directly.
Bug: 139128921 [AS 3.5 RC2, SDK API 29 rev 2] Overload resolution ambiguity: while removing element from HashMap
Bug: 64712476 Import translations for dev branches

Change-Id: Ib7fd4706c070907fd556c3532957f3b1b046de6d

4 years agoTreat SENSOR_DIRTY as user not detected
Ilya Matyukhin [Tue, 20 Aug 2019 22:38:57 +0000 (15:38 -0700)]
Treat SENSOR_DIRTY as user not detected

Bug: 139620163
Test: no double vibration on authentication timeout while the sensor
is covered.

Change-Id: I26ec9ca0f911fb029eb9175fe1923c8e9a27e693

4 years agoMerge "To modify 5G icon carrier config's comment: 5GPlus to 5G_Plus" into qt-qpr1-dev
SongFerng Wang [Wed, 21 Aug 2019 03:16:52 +0000 (03:16 +0000)]
Merge "To modify 5G icon carrier config's comment: 5GPlus to 5G_Plus" into qt-qpr1-dev

4 years agoMerge "Remove the Phone registration error notification" into qt-qpr1-dev
James Lin [Wed, 21 Aug 2019 03:14:05 +0000 (03:14 +0000)]
Merge "Remove the Phone registration error notification" into qt-qpr1-dev

4 years agoFix Handling of user switching for headless user 0 model.
Ram Periathiruvadi [Wed, 31 Jul 2019 22:47:47 +0000 (15:47 -0700)]
Fix Handling of user switching for headless user 0 model.

For headless user 0 models we don't start Bluetooth Service in user 0.
We wait for the first user switch to start - call
BluetoothManagerService.handleBootPhase().  However, we also call
BluetoothManagerService.handleOnUserSwitch() which ends up restarting
the service that was started in handleBootPhase().  This leads to the
Bluetooth service not being available due to the extra restart.

Changing the loigc to
1. Handle boot phase on User switch if not done before.
2. Handle on switch user otherwise.

This saves 6-7 seconds of the time it takes for something like BLE to be
available in the automotive builds.

Bug: 137289703
Test: Make sure Bluetooth comes up only once with no restarts on boot up
and also ensure Bluetooth is restarted when manually switching to
another user.

Change-Id: I30179f4c2a3f81940258c70045a6ba8b32f315e1
(cherry picked from commit 2097d6a33125fe64556c28e707e67bff3b56662e)

4 years ago[automerger skipped] Merge "DO NOT MERGE: Fixed an issue where the notification icons...
Selim Cinek [Wed, 21 Aug 2019 00:27:18 +0000 (17:27 -0700)]
[automerger skipped] Merge "DO NOT MERGE: Fixed an issue where the notification icons wouldn't show while docked" into qt-dev am: cceea08cc7 -s ours
am: 776d0367b0 -s ours
am skip reason: change_id I8f7bd7a6a0562942ed3e12f28705043722d177e8 with SHA1 65c96f2fd4 is in history

Change-Id: I581e414b3e50377facc94d1145c6976f4779da05

4 years agoMerge "EglDisplay may be null and cause Null point exception" into qt-r1-dev
Selim Cinek [Wed, 21 Aug 2019 00:22:20 +0000 (17:22 -0700)]
Merge "EglDisplay may be null and cause Null point exception" into qt-r1-dev
am: aec6b61816

Change-Id: Ie20c919bb28fb365d249c173786117519c4db973