Commit Graph

423158 Commits

Author SHA1 Message Date
Bill Yi
0079161fcd [automerger skipped] Import translations. DO NOT MERGE
am: 3447b7b66c -s ours
am skip reason: subject contains skip directive

Change-Id: I27f768b2628d15630a15159e642fd89d51be8b83
2019-10-26 20:33:35 -07:00
Bill Yi
9ee6503731 Import translations. DO NOT MERGE
Change-Id: I4f4a4c0efd8c96693ec5700c13a95e4dc0fa4240
Auto-generated-cl: translation import
2019-10-26 17:48:31 -07:00
Bill Yi
3447b7b66c Import translations. DO NOT MERGE
Change-Id: I2407d77349f697484f62cf943f5960381ffc76ae
Auto-generated-cl: translation import
2019-10-26 17:38:28 -07:00
Philip P. Moltmann
06a28b0655 Merge "[DO NOT MERGE] Split access-media-storage from read-external-storage" into qt-dev am: 3b050525e4
am: c6ef7c0e79

Change-Id: I4c61e048169c42d27cdb72d2050b81c65defc415
2019-10-25 11:33:56 -07:00
Philip P. Moltmann
14358ee4d9 [DO NOT MERGE] Split access-media-storage from read-external-storage am: f3ff750f29
am: 6f0fe03b7d

Change-Id: I5e92a710d55d91f66be9e1f7dda7fa92b59534fd
2019-10-25 11:33:51 -07:00
Philip P. Moltmann
c6ef7c0e79 Merge "[DO NOT MERGE] Split access-media-storage from read-external-storage" into qt-dev
am: 3b050525e4

Change-Id: Ie40f68f660e579cf9c2b1cbd446a4e3996bfa34d
2019-10-25 11:22:34 -07:00
Philip P. Moltmann
6f0fe03b7d [DO NOT MERGE] Split access-media-storage from read-external-storage
am: f3ff750f29

Change-Id: I0f37950a78df7d503a830ec5eff77acad7382fb8
2019-10-25 11:22:30 -07:00
TreeHugger Robot
3b050525e4 Merge "[DO NOT MERGE] Split access-media-storage from read-external-storage" into qt-dev 2019-10-25 18:08:22 +00:00
TreeHugger Robot
75166c8426 Merge "Revert "Import translations. DO NOT MERGE"" into qt-qpr1-dev 2019-10-25 01:46:48 +00:00
Bill Yi
184adf9dfc Revert "Import translations. DO NOT MERGE"
This reverts commit d7554f399f.

Reason for revert: May have caused phone_max regression

BUG:143316720

Change-Id: I592acd7f9f47ee2be06508236927a77b11185ace
2019-10-25 00:52:34 +00:00
Beverly
d2d3de6cf0 Fix zen alarms only mode check am: 51563b5ffe
am: a9b1fc617d

Change-Id: If606c81739741eed5d2f3fe9520130e148de55e4
2019-10-24 14:31:37 -07:00
Beverly
a9b1fc617d Fix zen alarms only mode check
am: 51563b5ffe

Change-Id: I577da2d70a3ca8a9f2af0d574cb4406db25439f2
2019-10-24 13:28:26 -07:00
Philip P. Moltmann
f3ff750f29 [DO NOT MERGE] Split access-media-storage from read-external-storage
And also pre-grant it to all apps that currently get any storage
permission pre-granted

Test: atest SplitPermissionTest
      m -j gts && gts-tradefed run commandAndExit gts-dev -m GtsPermissionTestCases --test=com.google.android.permission.gts.DefaultPermissionGrantPolicyTest#testDefaultGrantsWithRemoteExceptions
      Manual testing:
         All combinations of
           - App targetSdk = 28 and 29 (and 22 for extra credit)
           - App having the <uses-permission> tag for
             ACCESS_MEDIA_LOCATION or not
           - Upgrade from P->Q-QPR and from vanilla Q->Q-QPR
         Further upgrade of targetSdk from 28->29 while on Q-QPR
         ==> All permission behavior should make sense. Sometimes there
             are weird, but expected behaviors. Hence we need to
             collect the results and then look at the unexpected ones.
             See SplitPermissionTest for some tests I added for the
             location-background permission which was split from
             the fine/coarse-location permissions
Fixes: 141048840,140961754
Change-Id: Ib9f50d25c002036f13cf2d42fc4d1b214f20920c
(cherry picked from commit ac7b10c135)
2019-10-24 16:02:01 +00:00
Beverly
51563b5ffe Fix zen alarms only mode check
Also fixes setting the consolidated zen policy logging.

Fixes: 140329813
Test: android.app.cts.NotificationManagerTest#testTotalSilenceOnlyMuteStreams
Test: android.app.cts.NotificationManagerTest#testAlarmsOnlyMuteStreams
Change-Id: I43d503ac23d7b0b141930d77cb76f1f589b22525
(cherry picked from commit dcc5cfc561)
2019-10-24 15:51:37 +00:00
TreeHugger Robot
15b780d108 Merge "Resolver: Modernize layout" into qt-qpr1-dev 2019-10-24 12:56:39 +00:00
Beverly Tai
cafc138898 Merge "Add motion sense tap gesture + touch counts" into qt-qpr1-dev 2019-10-23 18:03:12 +00:00
TreeHugger Robot
4ede0d9f33 Merge "DO NOT MERGE Remove use of Dependency in SliceProvider" into qt-qpr1-dev 2019-10-22 03:18:00 +00:00
Kevin Hufnagle
d6105c8316 Merge "docs: App doesn't receive "first launch" broadcast" into qt-dev am: 0823f1b508
am: e7832d514b

Change-Id: Ib2590dc07f3aa284c993bd4c65772277ea457727
2019-10-21 15:51:06 -07:00
Kevin Hufnagle
e7832d514b Merge "docs: App doesn't receive "first launch" broadcast" into qt-dev
am: 0823f1b508

Change-Id: I1e775265df7964f4eb5a41d5e228308aad29ee22
2019-10-21 15:44:08 -07:00
Kevin Hufnagle
7bdc0815ac Merge "docs: Added consent notice re. getAccounts()" into qt-dev am: 3b6bbed3af
am: a7cca253ea

Change-Id: I217e6e62724fb00b41c1ed34f631980f5bd4a24c
2019-10-21 15:38:08 -07:00
Kevin Hufnagle
0823f1b508 Merge "docs: App doesn't receive "first launch" broadcast" into qt-dev 2019-10-21 22:33:05 +00:00
Kevin Hufnagle
a7cca253ea Merge "docs: Added consent notice re. getAccounts()" into qt-dev
am: 3b6bbed3af

Change-Id: I0a32519c272af7fc21b1544a77b6bde86843d1e7
2019-10-21 15:32:07 -07:00
Kevin Hufnagle
3b6bbed3af Merge "docs: Added consent notice re. getAccounts()" into qt-dev 2019-10-21 22:14:54 +00:00
Bill Yi
2811abbe8f Import translations. DO NOT MERGE
Change-Id: I7aef87e95f92cf77c097ae971759ed55020e2bf2
Auto-generated-cl: translation import
2019-10-21 13:17:49 -07:00
Heemin Seog
e9c5f9625d DO NOT MERGE Remove use of Dependency in SliceProvider
SliceProviders seem to be created before onCreate is called on the
application which causes some issues with using Dependency in Car System
UI.

Bug: 142974942
Test: manual for car sys ui and atest KeyguardSliceProviderTest on sdk_gphone_x86 emulator
Change-Id: I18d14d51c6b0b3219923b640d9f2145ed9b02b94
2019-10-21 17:57:49 +00:00
Beverly
1742455882 Add motion sense tap gesture + touch counts
AWARE_TAP_PAUSE_GESTURE_COUNT is the number of times the user
has used the Motion Sense tap gesture to pause media.  This number
is used to determine whether to show the "Tap to pause media"
contextual tooltip.

AWARE_TAP_PAUSE_TOUCH_COUNT is the number of times the user has
touched the device to pause media instead of using the Motion Sense
tap gesture (Motion Sense and tap gesture must be active for this value
to increment). This number is also used to determine whether to show the
"Tap to pause media" contextual tip.

We back up these counts so that users moving to new devices with Motion
Sense will not be given these contextual tips again if they already know
how to use the feature.

Test: manual
Bug: 138296598
Change-Id: I702719fb7cec8b6be9dff91d212a00fb26129957
Merged-In: I702719fb7cec8b6be9dff91d212a00fb26129957
(cherry picked from commit a6e468831a)
2019-10-21 17:36:15 +00:00
Jian-Yang Liu
7006565a52 Merge "Do not cancel car volume dialog dismiss anim" into qt-qpr1-dev 2019-10-21 17:04:25 +00:00
Kevin Hufnagle
c665fedfe1 docs: Added consent notice re. getAccounts()
Test: make ds-docs -j32

Bug: 32704758
Change-Id: Id5e5c00840f2bde6c31a4f95f365b8bc8857884d
2019-10-21 14:04:55 +00:00
TreeHugger Robot
305a6bd1d9 Merge "Dump the system UI components config, so we can check if OEM redefines them." into qt-qpr1-dev 2019-10-18 22:19:10 +00:00
Felipe Leme
5284336dec Fix UserInfo Parcel
ag/9372503 put the order of reading preCreated from a UserInfo parcel
in the wrong spot. We fix it here.

Test: none
Merged-In: I4502e901ff2aac977c584fa8c5a3d1263be33572
Change-Id: I4502e901ff2aac977c584fa8c5a3d1263be33572
(cherry picked from commit e80af14d33)
2019-10-18 13:07:13 -07:00
TreeHugger Robot
8959c2dd6b Merge changes from topic "user_templates" into qt-qpr1-dev
* changes:
  Added new (hidden) UserManager API to get all users, including pre-created ones.
  Added option to pre-create user templates to optimize first user creation time.
2019-10-18 19:49:43 +00:00
Bill Yi
ce1184da3f [automerger skipped] Import translations. DO NOT MERGE
am: 3c7cd66c75 -s ours
am skip reason: subject contains skip directive

Change-Id: If05a618e489d85f0d325573806cff90150515b31
2019-10-18 11:18:01 -07:00
Felipe Leme
0b3863f4ac Added new (hidden) UserManager API to get all users, including pre-created ones.
Bug: 140750212
Test: manual verification

Merged-In: Iaef9db6216a7b18bf6f1f3e19f4a7428ec99f1da
Change-Id: Iaef9db6216a7b18bf6f1f3e19f4a7428ec99f1da
(cherry picked from commit 09a7f2df68)
2019-10-18 11:05:09 -07:00
Felipe Leme
7ad2f6bdad Added option to pre-create user templates to optimize first user creation time.
Initial user creation is slow because the system must prepare per-user data (like storage and
permissions) whose cost is proportional to the number of pre-installed apps. On automovive's
reference implementation, it can take more than 10s, which is a bad user experience.

This change lets OEMs pre-create some users , so that high initial-creation cost is "paid" during
the initial boot. On automotive, it improves the creation of an additional user (or guest user)
in about 7s (from ~17s to 9s).

Bug: 111451156
Bug: 132111956
Bug: 140750212
Bug: 140868593

Test: manual verification
Test: atest FrameworksServicesTests:UserControllerTest#testStartTemplateUser_background

Merged-In: I81de1b5376dc9c42b63be8853d7204c88826401f
Change-Id: I81de1b5376dc9c42b63be8853d7204c88826401f
(cherry picked from commit c1ca4410e1)
2019-10-18 11:05:06 -07:00
TreeHugger Robot
8a201f0442 Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev 2019-10-18 17:45:41 +00:00
Lucas Dupin
fd6f170e31 Merge "Use unique Handler for media, and synchronize it" into qt-qpr1-dev 2019-10-18 16:30:11 +00:00
Pinyao Ting
9d7a54238c Merge "fix the issue slice cannot be triggered from uri" into qt-qpr1-dev 2019-10-18 16:14:24 +00:00
Pinyao Ting
8deca19926 fix the issue slice cannot be triggered from uri
Bug: 122879432
Change-Id: Id36a45bbbdb858b5b8d9fd6f1b3f5f97eb84e9fd
Test:
1. install SliceViewer (https://github.com/android/user-interface-samples/releases)
2. adb shell am start -d "slice-https://sliceviewer.android.example.com/hello"
(cherry picked from commit 09b91e6027)
2019-10-18 16:12:47 +00:00
TreeHugger Robot
7c1a8a42ed Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev 2019-10-18 15:09:52 +00:00
Bill Yi
133b15feca Import translations. DO NOT MERGE
Change-Id: I0e4248100b05c1418d522a4ff19d7285ab0901b0
Auto-generated-cl: translation import
2019-10-18 07:51:22 -07:00
Bill Yi
3c7cd66c75 Import translations. DO NOT MERGE
Change-Id: I2206c0e454eb10858fa687a469d06c61230539b2
Auto-generated-cl: translation import
2019-10-18 07:41:12 -07:00
Felipe Leme
bc06a47cd6 Merge "Dump isPrimaryUser() / isSplitSystemUser() on 'user' service." into qt-qpr1-dev 2019-10-18 06:28:44 +00:00
Bill Yi
d7554f399f Import translations. DO NOT MERGE
Change-Id: Ie325a852dabdafb0a01527c911d4b16f011e3931
Auto-generated-cl: translation import
2019-10-17 22:36:12 -07:00
Lucas Dupin
52ee5a584e Use unique Handler for media, and synchronize it
Otherwise other classes can end up cancelling messages on this Handler

Test: atest KeyguardSliceProviderTest
Fixes: 142179390
Change-Id: I48568cabac8f2170d83687ac532f357f7afea9f2
2019-10-17 15:14:56 -07:00
JianYang Liu
ffe020a093 Do not cancel car volume dialog dismiss anim
A burst of ACTION_OUTSIDE events would cause the dialog
dismiss animation to repeatedly cancel and restart before
it could finish.

Add a flag to keep track of the dismissing state, and let
the animation finish once it has started.

Change made based on proposal from partner.

Bug: 142877093
Test: manual
Change-Id: I16a76bd7a65313027751f8f0e223d0346626c37b
(cherry picked from commit c8d3ef17af781731b558302efada5c1e7bebd096)
2019-10-17 17:38:39 +00:00
Jeff Vander Stoep
dadd2112f0 InetDiagSocketTest: ignore test that times out
Test: atest InetDiagSocketTest
Change-Id: Ieef0ca291924c0d81b1110bd25020d57fa9f0fec
Merged-In: Ieef0ca291924c0d81b1110bd25020d57fa9f0fec
Bug: 141870193
Bug: 141459241
(cherry picked from commit 69b83c9b3c)
Clean cherry pick.
2019-10-17 10:25:49 +00:00
Jeffrey Vander Stoep
b3c533768d Merge "Fix FD leak in ConnectivityManager.getConnectionOwnerUid" into qt-qpr1-dev 2019-10-17 10:25:36 +00:00
Jeff Vander Stoep
cc7e09cbc2 Fix FD leak in ConnectivityManager.getConnectionOwnerUid
Add unit tests to verify that bug has been fixed.

Re-enable testGetConnectionOwnerUid() unit tests in presubmit. These
were disabled due to test flakiness caused by expected failures passing
as a result of other sockets on the system. This is fixed by checking
that failures do not have the UID of the calling process instead of
INVALID_UID since previously some Qualcomm telephony sockets were
causing lookup successes.

Test: atest InetDiagSocketTest#testGetConnectionOwnerUid
Test: ls -1 /proc/<pid of system_server>/fd | wca
Test: atest --generate-new-metrics 200 InetDiagSocketTest#testGetConnectionOwnerUid
   To verify flakes have been cleaned up.
Bug: 141603906
Bug: 141459241
Change-Id: Ib76674f10e4bd24952c557bac7b9c65fba42fdb2
Merged-In: Ib76674f10e4bd24952c557bac7b9c65fba42fdb2
(cherry picked from commit 59940afb16)
Clean cherry pick.
2019-10-17 09:22:24 +00:00
Seigo Nonaka
438e082801 [automerger skipped] Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into oc-mr1-dev am: 9f7fb87dc4 -s ours am: aa76cf3da5 -s ours am: 9c6d7fe4bb
am: 8e6b03f424

Change-Id: I0e24fafa9eda227d06e1a66d2924bd25b53ffd71
2019-10-16 22:00:33 -07:00
Seigo Nonaka
1552561f83 [automerger skipped] Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into pi-dev am: d7f6ede261 -s ours am: 8d016ab4ff
am: 5181402566

Change-Id: Ia6d2cbc42f1a682eae9c98cf8f05c10239f2ef12
2019-10-16 21:51:07 -07:00