Commit Graph

478021 Commits

Author SHA1 Message Date
Tim Peng
cc9f93a172 Add getDeselectableMediaDevice()
-Add test case

Bug: 157098549
Test: make -j50 RunSettingsLibRoboTests
Change-Id: I47682997af51844e7811dd108297b7c13a60cd53
2020-05-26 07:25:40 +00:00
Lucas Dupin
2cdbcea8ba Merge "Fix issue where media would not expire" into rvc-dev 2020-05-26 02:50:38 +00:00
Mark Chien
d0355d7d40 Merge "Adjust TTL for ipv6 tethering" into rvc-dev 2020-05-26 01:15:40 +00:00
TreeHugger Robot
7a925f6111 Merge "Make status bar color agnostic" into rvc-dev 2020-05-25 23:54:23 +00:00
Anton Hansson
d8d0efefe7 Merge "Compose the main stubs jars from module stubs" into rvc-dev 2020-05-25 21:21:26 +00:00
Robin Lee
59b3f7c7f0 Merge "Fix volume key handling for key press repeat" into rvc-dev 2020-05-25 19:44:03 +00:00
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
4f8e749775 Compose the main stubs jars from module stubs
This adds stub generation for the non-updatable part of the platform,
and changes the full stub jars to be a combination of multiple jars:
the stubs of the updatable modules and the stubs of the remaining part
of the platform.

Composing the stub jars like this allows overriding the individual parts
with prebuilts rather than building everything from source. This makes
the build safer, as we can make sure that the stub of the apex that is
used is also what is used to build the rest of the platform against.

The monolithic droidstubs rules remain for now, as it has other
functions than generating stub sources (api lint, current.txt,
checklast). It remains a goal to get rid of this, but by submitting this
CL first it can be done in steps.

Bug: 144149403
Test: m android{,_system}_{monolith,merged}_stubs_current
Test: m
Change-Id: I255486112c03f237aa342cfb93f3b473a2f50470
Merged-In: I255486112c03f237aa342cfb93f3b473a2f50470
2020-05-25 18:10:32 +01: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
Mark Chien
9c5e7ea5d3 Adjust TTL for ipv6 tethering
If upstream is cellular, set the TTL in Router Advertisements to
"network-set TTL - 1" for carrier requirement. For other non-cellular
upstream, set TTL as "network-set TTL + 1" to preventing arbitrary
distinction between tethered and untethered traffic.

Bug: 154776299
Test: atest TetheringTests

Merged-In: I7f2696a642f96c6aafb5613b980bf5bcdd08bbda
Change-Id: I7f2696a642f96c6aafb5613b980bf5bcdd08bbda
2020-05-25 13:27:35 +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
Jean-Michel Trivi
7c7016071a Fix volume key handling for key press repeat
The original code for translating volume key presses into CEC
commands was sending the equivalent of a key up / key down for
each call to adjustSuggestedStreamVolume. This behavior caused
CEC commands to pile up in HdmiControlService, and a repeated
key press (user keeping finger on volume button on remote) would
cause volume to still change on the CEC device handling volume
even after the key was released.
  The fix consists in changing how PhoneWindowManager communicates
with AudioService, by passing the key event directly, so AudioService
can communicate the key up / key down information to the CEC
library, which already deals with repeated commands on the CEC bus.

Bug: 137311120
Test: connect DUT to CEC TV or receiver capable of handling vol cmds,
  keep pressing on vol key, verify releasing key stops volume
  changes on TV/receiver.

Change-Id: I7a75af651b6b424129515a8991b5afb15c62dba3
Merged-In: I7a75af651b6b424129515a8991b5afb15c62dba3
(cherry picked from commit 12ba113894ec8ad7c24913a0a09ea70047d25353)
(cherry picked from commit 7e58c9145d71ba92053ad6629f910456566cfea9)
2020-05-25 10:22:38 +02: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