Commit Graph

420831 Commits

Author SHA1 Message Date
TreeHugger Robot
a58013ae18 Merge "Don't send HOME intent twice when booting from non-system user." into qt-qpr1-dev 2019-08-26 20:57:28 +00:00
Felipe Leme
0639751675 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
2019-08-26 11:49:42 -07:00
Bill Yi
8e24ea2b4c Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I360dde2e3d4eb2abc98c8bd3163ff8d9f7e41112
2019-08-25 01:08:16 -07:00
Santos Cordon
23cdf1a48c Merge "Hold Display suspend blocker until doze starts" into qt-r1-dev
am: 48a86feefe

Change-Id: I15d47b96d0b937c720eca379d34a73da5f00a6d2
2019-08-23 20:09:37 -07:00
Lucas Dupin
56b04b1721 [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
2019-08-23 20:09:10 -07:00
Bill Yi
5c56a5e691 [automerger skipped] Import translations. DO NOT MERGE
am: 1c99d77a36 -s ours
am skip reason: subject contains skip directive

Change-Id: I3d6e4749aeae39286b21e7fb6021c84cc16c40d2
2019-08-23 20:08:37 -07:00
Long Ling
6060198534 Merge changes from topic "device_config_for_display_90" into qt-r1-dev
am: 36da9bb9ff

Change-Id: Ifd67f0360cd4c4b7d48c097af3254b54384f5a6a
2019-08-23 20:08:11 -07:00
Long Ling
318adae023 [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
2019-08-23 20:03:00 -07:00
Long Ling
8da4630093 DO NOT MERGE DeviceConfig: Add Name space and keys for Display Manager
am: 66e9298ac6

Change-Id: Id3f8518db5a906aeb626494309c7bb70fdf57d24
2019-08-23 20:02:56 -07:00
TreeHugger Robot
1d20f2096c Merge "Fix integer overflow in make_timestamp_ns_locked" into qt-qpr1-dev 2019-08-24 02:40:41 +00:00
Pengquan Meng
b55bf00418 Merge "Support WAC decoding in UMTS format" into qt-qpr1-dev 2019-08-23 21:53:13 +00:00
TreeHugger Robot
0c06bd1122 Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev 2019-08-23 18:30:39 +00:00
Neil Fuller
3684678602 Merge "[DO NOT MERGE]Daggerize Android Auto" into qt-qpr1-dev 2019-08-23 14:17:49 +00:00
Govinda Wasserman
8d49d0d63f [DO NOT MERGE]Daggerize Android Auto
Test: tested locally
BUG:139865326
Change-Id: I38c6f3bf8a8c43997251b1f13b3f2fb4533d15f2
Merged-In: I38c6f3bf8a8c43997251b1f13b3f2fb4533d15f2
2019-08-23 14:14:25 +00:00
Long Ling
dde6248065 DO NOT MERGE DeviceConfig: Add Name space and keys for Display Manager
Bug: 139138964
Change-Id: I077380583f0daf650b17832a6cec4919b41ac155
2019-08-23 13:00:53 +00:00
Pengquan Meng
1f64582bdf 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)
2019-08-23 09:36:46 +00:00
Bill Yi
2582943cce Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I1da61e9093dbc1b2f19b3f11848190cbe3fe2254
2019-08-23 02:29:52 -07:00
Nate Jiang
a43b5f2d6c Merge "change network suggestion notification content string" into qt-qpr1-dev 2019-08-23 04:22:26 +00:00
TreeHugger Robot
a8de0ae9da Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev 2019-08-23 00:34:20 +00:00
Peiyong Lin
bc80fff0a4 Merge "Add manifest flag to enable prerelease driver." into qt-qpr1-dev 2019-08-22 22:59:39 +00:00
Bill Yi
b0595644f4 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Iba60f442bfce52a602590b2eaa7bf42ca7f79445
2019-08-22 15:55:01 -07:00
Roman Kiryanov
9872a4d42b 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 e9db937f40)
2019-08-22 22:46:54 +00:00
Ram Periathiruvadi
f4fc3e2693 Merge "Fix Handling of user switching for headless user 0 model." into qt-qpr1-dev 2019-08-22 22:00:51 +00:00
TreeHugger Robot
8247b5f5a6 Merge "Hold a strong reference to the callback in TextClassifierService" into qt-qpr1-dev 2019-08-22 21:16:59 +00:00
Nate Jiang
e6bd365da0 change network suggestion notification content string
Change the notify String apply to suggestion logic

Test: acts WifiNetworkSuggestionTest
Bug: 139037269

Change-Id: I951a7b9b10abf8801bcd2f313798bf9fb0043864
2019-08-22 13:26:05 -07:00
TreeHugger Robot
d4c175c156 Merge "Fix legacy role holder resolution for assistant, dialer and SMS." into qt-qpr1-dev 2019-08-22 19:11:38 +00:00
Pengquan Meng
455fc80450 Merge "Add fields to Cellbroadcast" into qt-qpr1-dev 2019-08-22 18:31:05 +00:00
Julia Reynolds
f842f7fdcc Merge "Limit the number of Notif Channels per app" into qt-qpr1-dev 2019-08-22 18:31:02 +00:00
Pengquan Meng
02cfb3bdc8 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)
2019-08-22 18:24:38 +00:00
Peiyong Lin
7797b4de46 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
2019-08-22 10:38:41 -07:00
Pengquan Meng
e20726a2eb Merge "Add geo targeting implementation" into qt-qpr1-dev 2019-08-22 17:13:14 +00:00
Tony Mak
7ba3fd4546 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
2019-08-22 14:19:23 +00:00
Julia Reynolds
198282aea1 Limit the number of Notif Channels per app
Fixes: 139111963
Test: atest
Change-Id: I0f0d442e9f5cc5bb1d73a638e00726807ef9fb48
(cherry picked from commit c29370a294)
2019-08-22 13:38:36 +00:00
SongFerng Wang
c1a2db2320 Merge "Create carrier config to define specific default value of APN types." into qt-qpr1-dev 2019-08-22 09:49:27 +00:00
Hai Zhang
dbffb693a5 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
2019-08-22 05:08:22 +00:00
TreeHugger Robot
48a86feefe Merge "Hold Display suspend blocker until doze starts" into qt-r1-dev 2019-08-22 00:22:43 +00:00
TreeHugger Robot
255777af56 Merge "Only delay bouncer if bypass is off" into qt-r1-dev 2019-08-21 23:54:25 +00:00
Nazanin Bakhshi
65371b27c8 add checking for carrierConfigs certificates for psim
Test: utests
Bug: 139133814
Change-Id: I2d5cf7ee4e516ff16a67a5fbef6674a380095888
2019-08-21 21:45:23 +00:00
Nazanin Bakhshi
e6e214e227 Merge "add certs to carrier configs and store them as UiccAccessRules" into qt-qpr1-dev 2019-08-21 21:42:24 +00:00
Santos Cordon
93e164726f 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
2019-08-21 21:38:25 +00:00
Pengquan Meng
5429676131 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)
2019-08-21 14:34:58 -07:00
Sarah Chin
cb97705a1c Merge "Changed regex matching for MCC and MNC" into qt-qpr1-dev 2019-08-21 21:26:53 +00:00
TreeHugger Robot
05b2c6883e Merge "[DO NOT MERGE] qt-qpr1-sysui-dev @ build 5814791" into qt-qpr1-dev 2019-08-21 21:19:19 +00:00
Lucas Dupin
04ec6df597 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 d969b76224)
2019-08-21 21:01:45 +00:00
Bill Yi
1c99d77a36 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: If6e4358b08995e5caaaaa90bba9fff23f4e4a486
2019-08-21 13:53:24 -07:00
Alexey Kuzmin
323b7e6f9c Merge "Mark USAGE_NOTIFICATION_EVENT vibrations as notifications" into qt-r1-dev
am: 8e70a2826e

Change-Id: I89fb24a3a3384f677786db4e7cc016bc2c5009d1
2019-08-21 12:47:17 -07:00
Long Ling
36da9bb9ff 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
2019-08-21 19:35:12 +00:00
TreeHugger Robot
ab45e744e6 Merge "Move processing off of HIDL Binder" into qt-qpr1-dev 2019-08-21 19:17:48 +00:00
TreeHugger Robot
8e70a2826e Merge "Mark USAGE_NOTIFICATION_EVENT vibrations as notifications" into qt-r1-dev 2019-08-21 19:04:49 +00:00
Sarah Chin
e3228ca3fd Changed regex matching for MCC and MNC
Bug: 137942727
Test: atest CellIdentityTest
Change-Id: Iaeb9ff9e2a5a82be66855378831cd52ee49e3c5c
(cherry picked from commit cb76b14fdf)
Merged-In: Iaeb9ff9e2a5a82be66855378831cd52ee49e3c5c
2019-08-21 18:37:51 +00:00