Commit Graph

424299 Commits

Author SHA1 Message Date
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
Torne (Richard Coles)
22a92de6d5 Clarify CookieManager RFC reference.
RFC2109 has been obsolete for a long time, and the docs aren't very
clear what exactly the RFC has to do with CookieManager; the RFC is
about HTTP and it's not immediately clear how this would apply to a Java
API.

Update the reference to the current cookie spec (and hyperlink it), and
clarify the text to explain that the HTTP header formats from the RFC
are the formats used to get/set set cookies.

Fixes: 143086151
Test: make ds-docs
Change-Id: I5e5838d3435b74516847b63e485fdd93810284aa
2019-10-21 14:58:17 -04: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
Kim Van Den Eeckhaut
38012613c9 Fix MediaCodec FLAC Javadoc
Make the Javadoc about the data expected in CSD buffer #0 for FLAC
consistent with the code.

Bug: 140613717
Test: javadoc-only fix
Change-Id: Ic2a35c6bd308a4f79215d920a88ccc2dd6f8cd12
2019-10-17 13:42:35 +01: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
Seigo Nonaka
b20967c79b [automerger skipped] RESTRICT AUTOMERGE Revive runLimit check logic am: b730f1984f am: 2af4f537ff am: 709e9e6855 -s ours am: 37c65a3e5c -s ours am: ac663b4595
am: 56a72fccf4

Change-Id: I052c9a2058001a18084697bde408246807ee30db
2019-10-16 21:48:23 -07:00
Seigo Nonaka
8e6b03f424 [automerger skipped] Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into oc-mr1-dev am: 9f7fb87dc4 -s ours am: aa76cf3da5 -s ours
am: 9c6d7fe4bb

Change-Id: I1e21b2703948ee70d1f678680dd6daaa58905512
2019-10-16 21:44:24 -07:00
Seigo Nonaka
9c6d7fe4bb [automerger skipped] Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into oc-mr1-dev am: 9f7fb87dc4 -s ours
am: aa76cf3da5 -s ours
am skip reason: subject contains skip directive

Change-Id: I1681d85652afe4fb20fa3d76f2f9483303e3d429
2019-10-16 21:37:26 -07:00
Seigo Nonaka
5181402566 [automerger skipped] Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into pi-dev am: d7f6ede261 -s ours
am: 8d016ab4ff

Change-Id: I32ea97ed0a26a07a741c61ddb40a0a4292a3320a
2019-10-16 21:34:17 -07:00
Seigo Nonaka
56a72fccf4 [automerger skipped] RESTRICT AUTOMERGE Revive runLimit check logic am: b730f1984f am: 2af4f537ff am: 709e9e6855 -s ours am: 37c65a3e5c -s ours
am: ac663b4595

Change-Id: I8f11c57d4706f03291099be5d9d2d244ed354b78
2019-10-16 21:31:25 -07:00
Seigo Nonaka
8d016ab4ff [automerger skipped] Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into pi-dev
am: d7f6ede261 -s ours
am skip reason: subject contains skip directive

Change-Id: I1f761fe6c5336996407892ebae25eb34a8d83538
2019-10-16 21:11:44 -07:00
Seigo Nonaka
ac663b4595 [automerger skipped] RESTRICT AUTOMERGE Revive runLimit check logic am: b730f1984f am: 2af4f537ff am: 709e9e6855 -s ours
am: 37c65a3e5c -s ours
am skip reason: subject contains skip directive

Change-Id: Id5cce5424c5e712de76143a301e26e823d3df249
2019-10-16 21:08:47 -07:00
Seigo Nonaka
aa76cf3da5 [automerger skipped] Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into oc-mr1-dev
am: 9f7fb87dc4 -s ours
am skip reason: subject contains skip directive

Change-Id: If95365aeca3f84f75f571dcf705f477b01425a0c
2019-10-16 21:07:12 -07:00
TreeHugger Robot
d7f6ede261 Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into pi-dev 2019-10-17 02:33:30 +00:00
TreeHugger Robot
9f7fb87dc4 Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into oc-mr1-dev 2019-10-17 01:46:22 +00:00
Seigo Nonaka
37c65a3e5c [automerger skipped] RESTRICT AUTOMERGE Revive runLimit check logic am: b730f1984f am: 2af4f537ff
am: 709e9e6855 -s ours
am skip reason: subject contains skip directive

Change-Id: Ib2c5674e2cf4442fe10d3dd5eb7ae7906e432254
2019-10-16 17:38:11 -07:00
Seigo Nonaka
709e9e6855 RESTRICT AUTOMERGE Revive runLimit check logic am: b730f1984f
am: 2af4f537ff

Change-Id: Ia671d3f5a7fa62c80dd3c2468d199ce66fe734f1
2019-10-16 17:26:09 -07:00
Seigo Nonaka
2af4f537ff RESTRICT AUTOMERGE Revive runLimit check logic
am: b730f1984f

Change-Id: I329515d36c12ee5e12a63262ff7db8daff350832
2019-10-16 17:14:15 -07:00
Seigo Nonaka
b730f1984f RESTRICT AUTOMERGE
Revive runLimit check logic

The runLimit check logic was accidentally removed by
I7089ed9b711dddd7de2b27c9c2fa0fb4cb53a735

Bug: 142134328
Bug: 140632678
Test: Manually done with reported step
Test: StaticLayoutTest passes
Change-Id: Ib1d5efdcb9adcc18a6a43370dc016ea464f48148
2019-10-16 22:12:04 +00:00
Seigo Nonaka
fd1a7e8663 RESTRICT AUTOMERGE
Revive runLimit check logic

The runLimit check logic was accidentally removed by
I7089ed9b711dddd7de2b27c9c2fa0fb4cb53a735

Bug: 142134328
Bug: 140632678
Test: Manually done with reported step
Test: StaticLayoutTest passes
Change-Id: Ib1d5efdcb9adcc18a6a43370dc016ea464f48148
2019-10-16 22:11:25 +00:00
Seigo Nonaka
7b05578d9c RESTRICT AUTOMERGE
Revive runLimit check logic

The runLimit check logic was accidentally removed by
I7089ed9b711dddd7de2b27c9c2fa0fb4cb53a735

Bug: 142134328
Bug: 140632678
Test: Manually done with reported step
Test: StaticLayoutTest passes
Change-Id: Ib1d5efdcb9adcc18a6a43370dc016ea464f48148
2019-10-16 22:11:01 +00:00
Jian-Yang Liu
e6e2319970 Merge "Changed car status bar to show or hide by setting layout height instead of removing/adding the view." into qt-qpr1-dev 2019-10-15 23:20:59 +00:00
Hall Liu
fe19a93016 Merge "Add ImsReasonInfo constant for retrying without RTT" into qt-qpr1-dev 2019-10-15 21:00:18 +00:00
Kevin Hufnagle
49d171d595 docs: App doesn't receive "first launch" broadcast
Test: make ds-docs -j32

Bug: 116543817
Change-Id: I9aa1f1851ce236397ad2e1a36ea487b96daa55c5
2019-10-15 19:47:38 +00:00
Heemin Seog
3008bb66c5 Merge "DO NOT MERGE Add support for unprovisioned top nav bar" into qt-qpr1-dev 2019-10-15 15:55:14 +00:00