Commit Graph

478010 Commits

Author SHA1 Message Date
TreeHugger Robot
b3898ee44e Merge "Only send <Standby> to TV on sleep when active source" into rvc-dev 2020-05-25 19:37:36 +00:00
Stanislav Zholnin
c1846a1a65 Merge "Remove UidAtomTests from presubmit due to failures." into rvc-dev 2020-05-25 19:31:54 +00:00
Bill Yi
4ef9df4582 Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-05-25 19:13:49 +00:00
Stanislav Zholnin
86b0b984cf Remove UidAtomTests from presubmit due to failures.
Test: manual

Bug: 155714228
Change-Id: I661c6503c387a00803bb949e3e8ca431045dd266
2020-05-25 19:01:34 +00:00
Martijn Coenen
91d3f2a4fc Merge "Don't kill apps for OP_REQUEST_INSTALL_PACKAGES on targetSdk < 26." into rvc-dev 2020-05-25 18:56:58 +00:00
TreeHugger Robot
c82ee307b1 Merge "Fix black screen during Quick switch" into rvc-dev 2020-05-25 18:07:29 +00:00
Anton Hansson
db81f3e855 Merge "Use java language level 8 for compiling module stubs" into rvc-dev 2020-05-25 15:58:17 +00:00
Nathalie Le Clair
fd434cbcd8 Only send <Standby> to TV on sleep when active source
Test: make, flash, let device go to sleep due to keycode_power and
energy saver mode, verify that <Standby> is only sent when mIsActiveSource is true.

Bug: 155228844
Change-Id: Ie62d60e8c4fa573aac6c08a4c1093d5f1a52d7f3
2020-05-25 15:25:14 +00:00
Anton Hansson
b0033693a8 Merge "Include annotations in module metalava runs" into rvc-dev 2020-05-25 15:25:00 +00:00
Ming-Shin Lu
aa9376bc4f Fix black screen during Quick switch
When quick switch a delayed task, before onTaskAppeared called,
if the user holds gesture on nav bar, TRANSIT_WALLPAPER_OPEN from closing
app happens will cancel recents animation when
WC#applyAnimationUnchecked, and that will cause the black screen if the
delayed task not yet drawn and there is no recents task snapshot on top.

Since cancelling recents animation during quick switching doesn't make
sense, to fix that, we should check the animation task target if is
still controlled by recents animation, if so, we should not cancel it.

Also, make sure if the appeared task has already been in task target list,
(i.e. task A appreared, quick switch to task B, before task B appeared,
quick switch back to task A) if so, we don't need to callback task
appeared again.

Fix: 156670249
Test: manual as issue test steps.
Change-Id: I303403d63c91c08fabcb8c5b1b1aac42c4ec65db
2020-05-25 21:20:33 +08:00
Anton Hansson
78b956deb1 Merge "Remove nullablility annotations from module-lib" into rvc-dev 2020-05-25 12:09:26 +00:00
TreeHugger Robot
37bdfa34a6 Merge "Fix recursive calls on DC#ensureActivitiesVisible" into rvc-dev 2020-05-25 12:07:20 +00:00
Joanne Chung
ab476cc525 Merge "Fix hasEnabledAutofillServices() return wrong value after AutofillServie updated" into rvc-dev 2020-05-25 11:25:53 +00:00
Mark Chien
f7862f53ad Merge "TetheringServiceTest: test caller permission" into rvc-dev 2020-05-25 10:40:03 +00:00
Charles Chen
770597c761 Fix recursive calls on DC#ensureActivitiesVisible
Previously CL[1] used display#ensureActivitiesVisible instead of
stack#ensureActivitiesVisible, and it caused recursive calls on
ensureActivitiesVisible in a very hidden way. A possible scenario
is when an activity paused and AM tried to resume another activity
which did not support multi-resume.

[1]: Id8253eb97581a9dd52ab748117d9cd4cc63a206d

fixes: 156189923
Test: atest DisplayContentTests#testEnsureActivitiesVisibleNotRecursive
Change-Id: Iba2a052e4a1d91edfc6fa80954a730ad5ca3ff0d
2020-05-25 17:39:59 +08:00
Xiao Ma
3ab17953c6 Merge "Support MirrorLink DHCPDECLINE." into rvc-dev 2020-05-25 09:09:15 +00:00
TreeHugger Robot
c34c144c6b Merge "Remove feature flag, unused lib and test cases" into rvc-dev 2020-05-25 09:07:24 +00:00
TreeHugger Robot
43c04e1457 Merge "Handle input method switch properly for inline suggestions" into rvc-dev 2020-05-25 08:49:49 +00:00
TYM Tsai
81cbe29a1c Handle input method switch properly for inline suggestions
Expired the old response while received input method subtype changed.
When user next tap on an autofill field, trigger a new fill request for
the new input method.

Bug: 150483555
Test: manual switch imput method
Test: atest CtsAutoFillServiceTestCases
Change-Id: I97be067db3a79d2481c05aeb59875ec24514199d
2020-05-25 15:09:44 +08:00
Chalard Jean
a31117d668 Merge "Add the NOT_SUSPENDED capability to Ethernet - doc part" into rvc-dev 2020-05-25 06:29:04 +00:00
Sunny Shao
ffc352b9f9 Remove feature flag, unused lib and test cases
Fixes: 155949554
Test: make RunSettingsLibRoboTests -j56
Change-Id: I54a31aed503f7f058887720ab4fe01ca2f39ff93
2020-05-25 13:38:54 +08:00
Louis Chang
3799331c9f Merge "Fix returning activity that not in the task" into rvc-dev 2020-05-25 04:53:39 +00:00
markchien
fa27e68dd1 TetheringServiceTest: test caller permission
Bug: 154869719
Test: atest TetheringTests
Original-Change: https://android-review.googlesource.com/1288503

Fix TetheringServiceTest test WRITE_SETTINGS permission failure

AdoptShellPermissionIdentity can not pass permission check by
Settings#checkAndNoteWriteSettingsOperation. It would compare the caller
uid and its package name. See error below:
1. java.lang.SecurityException:
Specified package com.android.shell under uid 10239 but it is really 2000
2. java.lang.SecurityException:
uid 10245 does not have android.permission.UPDATE_APP_OPS_STATS.

Override the method and test if caller hold WRITE_SETTINGS directly.

Bug: 154869719
Test: TetheringTests, TetheringCoverageTests, NetworkStackNextTests,
NetworkStackCoverageTests
Original-Change: https://android-review.googlesource.com/1313806

Change-Id: I7beea3f011d930e433443ed62d772a3f8cce5d78
Merged-In: I7beea3f011d930e433443ed62d772a3f8cce5d78
2020-05-25 12:07:06 +08:00
Hugh Chen
ebbd9e4b6f Merge "Increase char limit for wired headphone" into rvc-dev 2020-05-25 03:31:27 +00:00
Allen Su
07fd727050 Merge "[KDDI] Define carrier config for call forwarding items" into rvc-dev 2020-05-25 02:54:22 +00:00
Louis Chang
523e3e8cd6 Fix returning activity that not in the task
Illegal state warning logs were able to observe on normal
activity starts flow.

Also should only returning the activity if it is the descendant
of this task.

Bug: 156882835
Test: atest TaskTests
Change-Id: Ia44bbbd8254e3f05b440153c180a3317e4d79209
2020-05-25 10:14:57 +08:00
hughchen
005f32ac25 Increase char limit for wired headphone
Bug: 157153796
Test: build pass
Change-Id: Ie31fb5f8e6856f47d5e4a789b639b68661eda98d
2020-05-25 09:50:49 +08:00
easoncylee
3e213cffec Fix mis-configuration of TEST_MAPPING file.
UidAtomTests:testAppOps is a test class and test method of
CtsStatsdHostTestCases. To run this in Test Mapping, it should
specify CtsStatsdHostTestCases. as the name in TEST_MAPPING file,
and android.cts.statsd.atom.UidAtomTests as the options.

Bug: 155714228
Test: presubmit test.
Change-Id: I7df08ae811425020ebbeae6a8e9f1317065c00c9
2020-05-24 21:32:51 +00:00
Bill Yi
8ef4e6e0c7 Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-05-24 21:16:55 +00:00
Martijn Coenen
f488724013 Don't kill apps for OP_REQUEST_INSTALL_PACKAGES on targetSdk < 26.
The app-op wasn't required back then, and granting it shouldn't change
the filesystem view.

Bug: 150819885
Test: atest CtsNoPermissiontestCases25 (still fails, but for a different
reason now).

Change-Id: Id505013233c44ad624d3a4b929bbd3c36ecfd8ce
2020-05-24 21:39:27 +02:00
Bill Yi
045fca5d63 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I19d0458b20c3e77b7874a37b44aa7781b0ab026a
2020-05-24 07:27:44 +00:00
Bill Yi
79fd944c1c Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I145d8da3a3c9ffc5230baecb5600c667f4554a1e
2020-05-23 16:21:44 +00:00
Bill Yi
32ca0d62a0 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I9dd8e8cdd54401c03db9ba0e2ed56ed29c7f6637
2020-05-23 13:58:11 +00:00
Bill Yi
53392bb2a6 Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-05-23 13:33:19 +00:00
Tiger Huang
2bbb08bc42 Merge "Let top-fullscreen-app window keep controlling status bar" into rvc-dev 2020-05-22 20:35:28 +00:00
Beth Thibodeau
8032fd3d0c Merge "Make sure actions have icons" into rvc-dev 2020-05-22 18:23:32 +00:00
Winson Chung
f31ae3b370 Merge "Cleanup some unused code and update resources on config change" into rvc-dev 2020-05-22 15:43:16 +00:00
Robert Snoeberger
83dcd5f76f Merge "Paged carousel for media players" into rvc-dev 2020-05-22 15:34:27 +00:00
Tiger Huang
8949be4a6c Let top-fullscreen-app window keep controlling status bar
If a top-fullscreen-app window is hiding status bar but the focus is
changed to a non-fullscreen window, we let the top-fullscreen-app window
keep controlling status bar. This CL makes the logic compatible with the
legacy insets mode.

Fix: 156322689
Test: WindowInsetsControllerTests
Change-Id: I74387c2c794c8a5a7056eea3ba4ec7257c66652a
2020-05-22 21:55:57 +08:00
Robin Lee
1d22ea4eca Merge "Take interactive bugreports on Android TV" into rvc-dev 2020-05-22 09:58:53 +00:00
Hongwei Wang
f657ae3ee5 Merge "Do not send Runnable via Messenger across processes" into rvc-dev 2020-05-22 04:19:07 +00:00
Ben Lin
a48f73eabe Merge "Adjust PIP Resize handle size and margin." into rvc-dev 2020-05-22 02:18:38 +00:00
Wei Wang
1a8ed6d95c Merge "ThermalManagerService: initialize to THROTTLING_NONE explicitly" into rvc-dev 2020-05-22 02:05:13 +00:00
Winson Chung
4611bba752 Cleanup some unused code and update resources on config change
Change-Id: Icf4cfe2c0cebb3b869909385f3d4e7b4131047c3
Bug: 156791199
Test: atest PinnedStackTests
2020-05-21 18:51:48 -07:00
Robert Snoeberger
52dfb62937 Paged carousel for media players
This is a stopgap implementation on top of HorizontalScrollView. It
will take much more work to move to a ViewPager2 implementation. In
the meantime, this at least adds a page indicator to that users will
realize that there are multiple pages.

Added in this change:
 - page indicator
 - fling to next page
 - centering current page when scrolled into

Bug: 153170704
Test: manual - Paged between three players in the carousel. Verify
that the page indicator showed correct page.
Test: manual - Scoll into player and release. Verify that page snaps
back to center.

Change-Id: Iae51d9136184a0a7de083177ea105f2db9a72c99
2020-05-21 21:49:59 -04:00
Julia Reynolds
ec330b7fc4 Merge "Update conversation strings" into rvc-dev 2020-05-22 01:40:08 +00:00
Feng Cao
5d78bf951c Merge "Don't send action suggestion when user starts typing" into rvc-dev 2020-05-22 01:24:07 +00:00
Hongwei Wang
97f28fd64a Do not send Runnable via Messenger across processes
Instead of passing the Message#replyTo to the receiver and let receiver
post back via Messenger.

Video: http://go/recall/-/aaaaaabFQoRHlzixHdtY/cnIejHZmI9hPxzC1bjOixm
Bug: 157241292
Test: expand PiP window in secondary user
Change-Id: I276923d3508f5cce8f5c34cdcf7c11433eb8ee6b
2020-05-21 18:22:38 -07:00
Selim Cinek
47716cba4b Merge "Ensured that the gut's bounds update properly" into rvc-dev 2020-05-22 01:15:07 +00:00
TreeHugger Robot
7b42f2d3e5 Merge "Tuner JNI: fix filter.read and DvrSettings" into rvc-dev 2020-05-22 00:53:38 +00:00