Commit Graph

418150 Commits

Author SHA1 Message Date
Bryan Ferris
2c8f7e6ae8 Merge "Fix Layout.primaryIsTrailingPreviousAllLineOffsets" into pi-dev
am: a94d8aed24

Change-Id: I3ab6bbf65d6b78f5cb5a6a544952afd43b4b2c7b
2019-07-10 14:46:49 -07:00
Bryan Ferris
a94d8aed24 Merge "Fix Layout.primaryIsTrailingPreviousAllLineOffsets" into pi-dev 2019-07-10 21:10:18 +00:00
Mihai Popa
9109ce6b0a Fix Layout.primaryIsTrailingPreviousAllLineOffsets
The CL fixes a crash in Layout.primaryIsTrailingPreviousAllLineOffsets.
The crash was happening when the method was called for a line beginning
with an empty bidi run. This could happen, for example, for empty text -
I was unable to find any other case. The CL improves the existing test
for the method with this case, which was previously crashing.

The CL also fixes a potential crash in getLineHorizontals. However, this
bug could never happen as in the current code path clamped is always
false (and kept as parameter for parity with getHorizontal).

Bug: 135444178
Bug: 78464361
Test: atest FrameworksCoreTests:android.text.LayoutTest\#testPrimaryIsTrailingPrevious
Change-Id: I47157abe1d74675884734e3810628a566e40c1b4
(cherry picked from commit 7ad499d007)
2019-07-10 18:02:01 +00:00
Lei Yu
e5fdc968a0 Merge "Use old API to build NetworkTemplate" into qt-dev 2019-07-10 17:27:58 +00:00
Matt Pape
54c7c6927c Merge "Update Mainline rollback lifetime from 2 days to 14 days." into qt-dev 2019-07-10 15:50:56 +00:00
TreeHugger Robot
71682ae9c7 Merge "Fix wallpaper flicker issue while transiting from home to aod." into qt-dev 2019-07-10 12:57:14 +00:00
Chienyuan
5f70ebf52c [automerger] HidProfile: sync isPreferred() with HidHostService am: 830217f277 am: 9ac58f09c3 am: 181fb5b929 am: e6bf153855 am: 3aaf2811fc am: df484ced0b am: 2a547afdfa am: b36f88020e
am: 60aad1a06f

Change-Id: I59696232bedf6bc978f66efd8f5df2ec2fb3336a
2019-07-09 22:23:46 -07:00
Chienyuan
60aad1a06f [automerger] HidProfile: sync isPreferred() with HidHostService am: 830217f277 am: 9ac58f09c3 am: 181fb5b929 am: e6bf153855 am: 3aaf2811fc am: df484ced0b am: 2a547afdfa
am: b36f88020e

Change-Id: I34205b247a3261c940c9704f8b3f03bd10ec3238
2019-07-09 22:06:03 -07:00
Chienyuan
b36f88020e [automerger] HidProfile: sync isPreferred() with HidHostService am: 830217f277 am: 9ac58f09c3 am: 181fb5b929 am: e6bf153855 am: 3aaf2811fc am: df484ced0b
am: 2a547afdfa

Change-Id: I0ec4664b3654fb0b8397a89b8948183413d7d522
2019-07-09 21:47:21 -07:00
TreeHugger Robot
2f5007db0a Merge "Import translations. DO NOT MERGE" into qt-dev 2019-07-10 04:38:34 +00:00
Chienyuan
2a547afdfa [automerger] HidProfile: sync isPreferred() with HidHostService am: 830217f277 am: 9ac58f09c3 am: 181fb5b929 am: e6bf153855 am: 3aaf2811fc
am: df484ced0b

Change-Id: I174f1594f8f7ae21979398ba29b961e95bd47c75
2019-07-09 21:33:15 -07:00
TreeHugger Robot
6102c2f7fd Merge "Clear the calling identity in isUsableDisplay." into qt-dev 2019-07-10 01:51:24 +00:00
Lei Yu
5e955861f9 Use old API to build NetworkTemplate
Use old API to be consistent with NetworkPolicyManagerService

Bug: 135105735
Test: RunSettingsLibRoboTests & Manual test
Change-Id: I5d04cfd962c3d09cac7d33a97f847771074ab258
2019-07-09 17:18:49 -07:00
TreeHugger Robot
b2017ccba4 Merge "Document restricted permissions" into qt-dev 2019-07-09 23:38:18 +00:00
TreeHugger Robot
a5121a4fa9 Merge "Import translations. DO NOT MERGE" into qt-dev 2019-07-09 21:40:30 +00:00
Svet Ganov
3f01e91f7e Document restricted permissions
Test: N/A

Bug: 132174864

Change-Id: If56475fc6ac72e17bed8b0960cc63a8ecc87e4de
2019-07-09 13:28:36 -07:00
Matt Pape
6686f1f916 Update Mainline rollback lifetime from 2 days to 14 days.
Test: atest RollbackTest
      atest RollbackE2EHostTestCases
Bug: 137094406

Change-Id: I587d9fca25ead8b7edb76550703837642db545e4
2019-07-09 10:54:45 -07:00
Bill Yi
ea64a78dd9 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I75c667821566cceb965581d51a0a2e59418faf1f
2019-07-09 10:40:53 -07:00
TreeHugger Robot
261a2d62e2 Merge "Update docs for UID_STATE" into qt-dev 2019-07-09 17:25:49 +00:00
Bill Yi
3c27702769 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I0d7961d23435734a3202e8d7f285152f3aba3beb
2019-07-09 10:22:25 -07:00
Ahan Wu
b378059f11 Fix wallpaper flicker issue while transiting from home to aod.
There is a race condition between window visibility and wallpaper
transition, so wallpaper window might become visible before background
thread has done its rendering work and a flicker happens.

This solution just lets main thread wait for background thread to
synchronize window visibility and wallpaper transition.

Bug: 136643341
Test: atest SystemUITests
Test: Screen off  Launcher/APP -> AOD : No extra transition by design,
      The duration between press Power Key and AOD show should be same.
Test: Screen on AOD -> Launcher : Face unlock work without flickr
Test: Screen off Keyguard -> AOD : Either Panel or background transition without flickr
Test: Screen on AOD -> Keyguard : Either Panel or background transition without flickr
Test: Reach in AOD -> Keyguard : Either Panel or background transition without flickr
Test: Reach out Keyguard -> AOD : Either Panel or background transition without flickr
Test: Manually operate and observe log.
Change-Id: Iebfdac18972569864c047bc2c4a33d7791940896
2019-07-09 21:48:49 +08:00
Android Build Merger (Role)
df484ced0b [automerger] HidProfile: sync isPreferred() with HidHostService am: 830217f277 am: 9ac58f09c3 am: 181fb5b929 am: e6bf153855 am: 3aaf2811fc
Change-Id: Id1233680c478ff3367d69375056dd5d0bc1867ff
2019-07-09 07:11:53 +00:00
Android Build Merger (Role)
3aaf2811fc [automerger] HidProfile: sync isPreferred() with HidHostService am: 830217f277 am: 9ac58f09c3 am: 181fb5b929 am: e6bf153855
Change-Id: Ieb2eab9943a3fde047fbfe947ccad105a5f7160d
2019-07-09 07:11:47 +00:00
Android Build Merger (Role)
e6bf153855 [automerger] HidProfile: sync isPreferred() with HidHostService am: 830217f277 am: 9ac58f09c3 am: 181fb5b929
Change-Id: Iba55914648e687faaf01bc961c34efbdb72d6569
2019-07-09 07:11:41 +00:00
Android Build Merger (Role)
181fb5b929 [automerger] HidProfile: sync isPreferred() with HidHostService am: 830217f277 am: 9ac58f09c3
Change-Id: I231941e32409574af8c15fe9e763169fe09b279f
2019-07-09 07:11:36 +00:00
Android Build Merger (Role)
9ac58f09c3 [automerger] HidProfile: sync isPreferred() with HidHostService am: 830217f277
Change-Id: If9cb4de9ab510f1ddfff44a404a0a248cf9103dc
2019-07-09 07:11:28 +00:00
Chienyuan
830217f277 HidProfile: sync isPreferred() with HidHostService
HidHostService allow to connect when priority is PRIORITY_UNDEFINED.
HidProfile should return ture when priority is PRIORITY_UNDEFINED.
Otherwise, the "Input device" toggle in off state when HID device
connected.

Bug: 132456322
Test: manual
Change-Id: Id7bae694c57aec17e019d591c0a677e3cb64f845
2019-07-09 15:09:56 +08:00
Svet Ganov
6f672a3835 Specify the duration time base
Test: N/A

Bug: 128316830

Change-Id: Idd8f1aaf1a8e0013c01fdf4d668f9d5e81101559
2019-07-08 16:40:45 -07:00
Svet Ganov
05fcd228b5 Update docs for UID_STATE
Test: N/A

Bug: 128919932

Change-Id: Ibac690db3b58293082f762800bbbff0f832a16b2
2019-07-08 16:30:48 -07:00
Philip P. Moltmann
5401046356 Merge "Do not trigger revoke-perm callbacks if no change" into qt-dev 2019-07-08 19:11:58 +00:00
TreeHugger Robot
36151597fb Merge "GestureExclusion: Fix restriction priority" into qt-dev 2019-07-08 08:02:33 +00:00
TreeHugger Robot
b37de73103 Merge "Import translations. DO NOT MERGE" into qt-dev 2019-07-06 01:26:47 +00:00
Bill Yi
4cbe159555 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I634b80fa18b8f14a90e5494933bf9b49a4c3f68f
2019-07-05 02:03:54 -07:00
Adrian Roos
2351d5f48f GestureExclusion: Fix restriction priority
Bottom restrictions should be applied first.

Bug: 135522625
Test: adb shell setprop debug.pointerlocation.showexclusion true; adb shell stop; adb shell start; open app excluding entire edge, verify bottom part is applied.
Change-Id: Ifc2bc64b1ce3132f198e23ae8e271380acf0c5a1
2019-07-04 17:44:07 +02:00
Adrian Roos
b106379310 GestureNav: Fix broken exclusion rect calculation for modal windows
Fixes an issue with non-fullscreen modal windows (such as dialogs), where the touch exclusion of
the window behind was still being applied, even though the window behind did not actually
receive the touches in the exclusion, because they would go to the modal window in front.

Bug: 135522625
Test: atest testCalculateSystemGestureExclusion_modal
Change-Id: Ia99f4f601e780715abaf966f6f297fd9d555fd0b
2019-07-04 17:44:07 +02:00
TreeHugger Robot
8ef731c232 Merge "WM: implicitly exclude all edges for pre-Q immersive sticky apps" into qt-dev 2019-07-04 14:35:42 +00:00
Adrian Roos
019a52b4ad WM: implicitly exclude all edges for pre-Q immersive sticky apps
Bug: 135522625
Test: atest DisplayContentTests
Change-Id: Ibe6c2c6d269b15c2e79ac0241b93e42c44a167c9
Exempt-From-Owner-Approval: TBR
2019-07-04 14:35:34 +00:00
wilsonshih
0d5792e982 Clear the calling identity in isUsableDisplay.
The INTERNAL_SYSTEM_WINDOW permission is checked when
WindowManagerService#shouldShowSystemDecors is called, we should leave
this permission check because it is public method.
Clear the calling identity in WallpaperManagerService#isUsableDisplay
as this method should be used only internally.

Fix: 136447676
Test: atest VrDisplayTests MultiDisplaySystemDecorationTests
Change-Id: I97a93cdd0253933527010f97049694b59d5a4e2a
2019-07-04 16:04:58 +08:00
Dmitry Dementyev
27fb629b66 [automerger skipped] Revert "Do not load xml metadata for unchanged packages in RegisteredServicesCache"
am: c0e4ee7332 -s ours
am skip reason: change_id I2f78f0dbbace212309b87f779efad020cf255196 with SHA1 40431ae1bc is in history

Change-Id: I2f6d0b75851879f84167c689802a98645d96d3c1
2019-07-03 21:15:01 -07:00
TreeHugger Robot
5540281a6d Merge "Change NVHM protection from crash to Log.wtf" into qt-dev 2019-07-04 01:28:08 +00:00
Philip P. Moltmann
f50316cb46 Do not trigger revoke-perm callbacks if no change
Revoking a permission might e.g. kill the the app. If a permission gets
revoked that was never granted there was no change, hence no need to call
the callbacks and also no need to kill the app.

Test: "pm clear" two times in a row. The second one did trigger a kill
before, not anymore.
Bug: 133830856
Change-Id: I357f2d939520ac78ef82ecf4feb7936455950fc4
2019-07-03 15:48:46 -07:00
TreeHugger Robot
d1a84cb578 Merge "Media2: Make Javadoc consistent for recommending use of AndroidX" into qt-dev 2019-07-03 21:59:30 +00:00
Matt Pietal
914de104b3 Merge "Resolver - 'Always' button broken for non VIEW cases" into qt-dev 2019-07-03 20:11:59 +00:00
TreeHugger Robot
fb4fab4fa3 Merge "Revert "Preload sfplugin_ccodec for performance"" into qt-dev 2019-07-03 19:08:42 +00:00
TreeHugger Robot
f6313c9dc7 Merge "Import translations. DO NOT MERGE" into qt-dev 2019-07-03 18:51:56 +00:00
Ray Essick
4a0199a899 Revert "Preload sfplugin_ccodec for performance"
This reverts commit 30da74bda4.

Reason for revert: occasional audio race, losing volume control for device

Bug: 133186424
Bug: 135763139
Change-Id: I3aca2780dfcf80cfe0095af2a40496f3af0733cd
2019-07-03 18:48:16 +00:00
TreeHugger Robot
4712a0f4a0 Merge "Import translations. DO NOT MERGE" into qt-dev 2019-07-03 17:45:39 +00:00
Matt Pietal
a310c1fa3a Resolver - 'Always' button broken for non VIEW cases
Users are incorrectly being directed to the settings app when
selecting 'Always', making them unable to actually open an app through
the resolver.

Bug: 132071949
Test: Steps are reported in b/136451610
Change-Id: I11775d7b0b780195f08273ad2b90b8ecd2ee1db4
2019-07-03 09:12:56 -04:00
TreeHugger Robot
ae80cf399a Merge "Avoid making post state to RESUMED for a PAUSING activity" into qt-dev 2019-07-03 06:20:07 +00:00
Jaewan Kim
db90afdb78 Media2: Make Javadoc consistent for recommending use of AndroidX
Bug: 136602530
Test: Build docs offline and checked manually.
Change-Id: I70df7b05a6749b9ba492ac03cd3b9179a7416b9c
2019-07-03 14:55:55 +09:00