467951 Commits

Author SHA1 Message Date
arangelov
934c64ca39 Show a line below the tabs in tabbed view to align with UX mocks.
When tabs are disabled, the lines are still shown to be consistent
with Q.

Fixes: 149574743
Test: manual

Change-Id: I2307230e86da72a3f7c7d90d1454859490def679
2020-02-19 10:41:30 +00:00
Antoan Angelov
1c2e160fe9 Merge "Disable tabbed view support for UsbResolverActivity." 2020-02-19 10:41:03 +00:00
Rubin Xu
e4b77b8bf2 Rename ro.device_owner system property
Bug: 148437300
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Change-Id: I3986de71c3f0f737419702799099ac08bfc48139
2020-02-19 10:40:07 +00:00
TreeHugger Robot
ef342cf392 Merge "Implement StatusBar notification panel APIs for TV" 2020-02-19 10:26:25 +00:00
Hugh Chen
f786c7fa6c Merge "Add Settings.Global.ADVANCED_BATTERY_USAGE_AMOUNT" 2020-02-19 10:20:28 +00:00
Vadim Caen
a0fa966a37 Fixed rotation: home and recents animation
Add support for home and recents animations using the fixed
orientation transform.

When the recent animation is started, the target ActivityRecord is
rotated before being displayed.

Bug: 143053092, 146416687, 147469164
Test: atest WmTests:RecentsAnimationControllerTest
                #testRecentViewInFixedPortraitWhenTopAppInLandscape

Change-Id: I194673d621e8c0e8222306915a60f69e4de53b75
2020-02-19 11:11:13 +01:00
Automerger Merge Worker
3cea47c781 Merge "Fix usage of annotations in TetheringLib" am: 91bb789c20 am: a4dbd9a897
Change-Id: I79463f501e21d2e757956a13ded7432ff45b72bc
2020-02-19 10:10:30 +00:00
Automerger Merge Worker
42dbff65d6 Merge "Use framework-tethering-stub instead of framework-tethering" am: 3e4ab5c2b5 am: 101b4e2bb5
Change-Id: I42e51c703c47bdb5e589747047b5a4ef77a9ed82
2020-02-19 10:10:15 +00:00
Automerger Merge Worker
b9a8a92364 Merge "Add TetheringTests to postsubmit" am: a0c1281870 am: 2d89fa53d3
Change-Id: I6a13be525fbe95485d1b49043ad3fd769d5d79d1
2020-02-19 10:09:43 +00:00
TreeHugger Robot
1ad9e57d97 Merge "Import translations. DO NOT MERGE" 2020-02-19 10:07:22 +00:00
Automerger Merge Worker
a4dbd9a897 Merge "Fix usage of annotations in TetheringLib" am: 91bb789c20
Change-Id: Ic033a5f93c5483eedbbaff6051a8b68a1c8b67db
2020-02-19 09:55:15 +00:00
Automerger Merge Worker
101b4e2bb5 Merge "Use framework-tethering-stub instead of framework-tethering" am: 3e4ab5c2b5
Change-Id: I2caaa5f804a510bcc18822b784c129e9b058ea03
2020-02-19 09:54:51 +00:00
Automerger Merge Worker
2d89fa53d3 Merge "Add TetheringTests to postsubmit" am: a0c1281870
Change-Id: I67c2de8d2af1f08459646c2857c8669cec01de80
2020-02-19 09:54:16 +00:00
Mark Chien
91bb789c20 Merge "Fix usage of annotations in TetheringLib" 2020-02-19 09:54:13 +00:00
Felka Chang
15322da9dc Fix CutoutSpecification logic bug
if the specification contains all of left, top, right, and bottom bind
cutout, the bottom cutout rect return null. But, it should be non-null.

The specification that contains bottom right corner cutout assigned to long
edge in phone like device can't be achieved. But, it should be achieved.

Test:  atest \
    FrameworksCoreTests:android.view.DisplayCutoutTest \
    FrameworksCoreTests:android.view.CutoutSpecificationTest \
    SystemUITests:com.android.systemui.ScreenDecorationsTest \
    CorePerfTests:android.view.CutoutSpecificationBenchmark

Fixes: 149675352

Change-Id: I6c742f93e72627f1d58b8ce971a4b1cc9792d5cf
2020-02-19 17:53:52 +08:00
Mark Chien
3e4ab5c2b5 Merge "Use framework-tethering-stub instead of framework-tethering" 2020-02-19 09:46:24 +00:00
TreeHugger Robot
fd33a24650 Merge "Fix failure in postsubmit" 2020-02-19 09:45:20 +00:00
Ryan Lin
687fb4bcc1 Merge "Don't notify display removed if it's a private virtual display" 2020-02-19 09:42:56 +00:00
Mark Chien
a0c1281870 Merge "Add TetheringTests to postsubmit" 2020-02-19 09:42:55 +00:00
Yo Chiang
a86e1ab30a Check DSU public key with key revocation list
Throw RevocationListFetchException if failed to fetch key revocation
list.
Throw KeyRevokedException if DSU intent or image public key is revoked.
Throw PublicKeyException if getAvbPublicKey() failed.

Bug: 128892201
Test: adb shell am start-activity \
    -n com.android.dynsystem/com.android.dynsystem.VerificationActivity \
    -a android.os.image.action.START_INSTALL \
    --el KEY_USERDATA_SIZE 8192 \
    -d file:///storage/emulated/0/Download/aosp_arm64-dsu_test.zip \
    --es KEY_PUBKEY ${IMAGE_KEY}
Test: edit the code so that imageValidationThrowOrWarning() always
Test: throw and observe the logcat and device notification
Change-Id: I33733c019b305c45e7d2511c44ef1d9b446ea52e
2020-02-19 09:32:36 +00:00
Marvin Ramin
6439fa9978 Add HDMI hotplug events to dumpsys hdmi_control
To help with debugging wake-up and HDMI CEC address allocation issues.
Hotplug events and CEC messages will be interleaved in dumpsys
hdmi_control.

This information will be captured in bugreports.

Test: adb shell dumpsys hdmi_control
BUG=149679124

Change-Id: Ic918155b00e242b40c88d72089479127ba095b37
2020-02-19 10:10:46 +01:00
Riddle Hsu
f131d5a309 Add setShadowRadius for StubTransaction
So the test won't use invalid SurfaceControl.

Bug: 148807641
Test: ActivityStackTests#testSetAlwaysOnTop
Change-Id: I55ffc3acf6cb2c2472f6dce960edc0a8f527343e
2020-02-19 17:07:49 +08:00
Remi NGUYEN VAN
db5594d7bd Add tethering client callbacks
The callbacks are fired when the list of connected clients or their IP
addresses / hostname change.

Test: flashed, connected 2 devices, verified callbacks
Test: atest TetheringTests
Bug: 135411507
Change-Id: I96291038cf7b39a67547a5f74fcd7cbedc1ca002
Merged-In: I96291038cf7b39a67547a5f74fcd7cbedc1ca002
2020-02-19 17:05:00 +08:00
shawnlin
4b0cf98cdd Fixed too much padding in QQS with top corner cutout
Set padding only for system icon view.

Bug: 149766935
Test: atest SystemUITests
Test: manual set corner cutout and expand qs panel
Change-Id: I0f1d485aed50410ebe189112468f2ab5faaa15ce
2020-02-19 16:48:54 +08:00
Remi NGUYEN VAN
2d14a4b3e0 Fix usage of annotations in TetheringLib
Annotations such as @SystemApi cannot be jarjared to a different
package, as the members would not match the system API declarations.

Instead, only build against the annotations from
framework-annotations-lib, but do not include them as classes in the
output jar; annotations are not required to be available to the
classloader at runtime.

Test: builds, boots, tethering working
Bug: 147812912
Fixes: 148609988
Change-Id: I1fae97a1c1e0ba07fa3e2d64cde7650cd26d0acd
Merged-In: I1fae97a1c1e0ba07fa3e2d64cde7650cd26d0acd
2020-02-19 16:32:26 +08:00
Winson
5e0a1d5ce2 ParsingPackage/ParsedPackage split source migration
Part of the Parsing/ParsedPackage split into core/server.

This migrates any core/services source with trivially reviewable
changes. Import changes, moving files around, or generally
small single line changes scattered throughout all code that
depended on the old state of the package code.

Bug: 135203078

Test: enumerated in first commit of change ID
		Ib4fe51d729a56bfb0ea1316e577358ba0dfceccf

Change-Id: If091641a81be2d943d1d3e4a3d654e200d0ce59d
2020-02-19 00:29:05 -08:00
Winson
e23ae20e30 Important migration for new ParsingPackage/ParsedPackage split
Part of the Parsing/ParsedPackage split into core/server.

This splits all the "important" changes, or those which change
significant code/logic and that requires a closer look during
review.

Bug: 135203078

Test: enumerated in first commit of change ID
		Ib4fe51d729a56bfb0ea1316e577358ba0dfceccf

Change-Id: Ie0e4394de2b3063121d850060fcd58622511c59d
2020-02-19 00:29:05 -08:00
Winson
01e38f40c2 Separate ParsingPackage into core and ParsedPackage into server
PackageParser exists in the core framework SDK, and so callers
to it would not not expect a call into the system server.

However, some planned features require parts of parsing to exist
in the server so that package state/settings contained in the
server can be applied to the package.

To resolve this, separate ParsingPackage and ParsedPackage
through a hard boundary, where ParsingPackageImpl is roughly
equivalent to the previous PackageImpl, and the new PackageImpl
is everything that should exist in the server and not core.

This also copies over documentation and cleans up the data models
significantly. The fields have been moved to @NonNull, and in
preparation for true immutability, all Collection structures
have moved to generic types and assigned Collections#empty_().

This begins moving away from @hide AppInfo fields, so internal
use of flags/privateFlags is deprecated. It is now replaced by
straight booleans. For simplicity's sake, existing flags have
also been migrated.

This is split for readability and will not compile without
the followup commits.

Bug: 135203078

Test: atest com.android.server.pm.parsing
Test: atest PackageParserTest
Test: atest PackageParserLegacyCoreTest
Test: atest ScanTests
Test: atest ParallelPackageParserTest
Test: manual toggle and run AndroidPackageParsingTestBase

Change-Id: Ib4fe51d729a56bfb0ea1316e577358ba0dfceccf
2020-02-19 00:29:03 -08:00
Nathalie Le Clair
16c028fe54 Merge "Default wake on plug to false for audio system" 2020-02-19 08:26:38 +00:00
Automerger Merge Worker
752013f696 Merge changes from topic "settings-vpn" am: 70f90282ef am: ff39b8ba90
Change-Id: I2e4fdab485b9a94e8b2f121b21269f374b21dcb9
2020-02-19 08:07:41 +00:00
Automerger Merge Worker
623f094210 Add always-on VPN support for platform VPNs am: 522f3c932d am: 7deb069d3d
Change-Id: I4b1d796a7af3a9e421a330fd8ff713556c55dc67
2020-02-19 08:07:38 +00:00
Automerger Merge Worker
ff39b8ba90 Merge changes from topic "settings-vpn" am: 70f90282ef
Change-Id: If7e8310306889b38527bfab65316a50807814372
2020-02-19 07:51:20 +00:00
Automerger Merge Worker
7deb069d3d Add always-on VPN support for platform VPNs am: 522f3c932d
Change-Id: I9f600a9ea2002bf9a1ee88137e3a29b2c90b22ac
2020-02-19 07:51:14 +00:00
Benedict Wong
70f90282ef Merge changes from topic "settings-vpn"
* changes:
  Minor cleanup
  Add support for starting IKEv2/IPsec VPNs from settings
  Add always-on VPN support for platform VPNs
2020-02-19 07:39:41 +00:00
Brian Duddie
913b79a6ac Merge changes from topic "contexthub_hal_update"
* changes:
  Update the Contexthub with location setting changes
  Create IContextHubWrapper
2020-02-19 07:31:31 +00:00
ryanlwlin
6a34da5a64 Don't notify display removed if it's a private virtual display
Some operation will be done When displays are removed/Added,
but virtual private display should be excluded.

Bug: 148760652
Test: manual test:1.Enable the magnification from a11y setting
2. Enable the select to speak and read text on images
3.Tap the a11y shortcut to select to speak the content
4. check if the content is selected correctly.
Change-Id: I8e0fbc4da7cbb6b9c5bf5366115b3863be5243bb
2020-02-19 15:15:10 +08:00
markchien
8cf2a5588b Use framework-tethering-stub instead of framework-tethering
The non-updatable part of the platform now is built with
framework-tethering-stub, which is a stub library of
framework-tethering.

Bug: 147200698
Test: m
Change-Id: I97ef83f7f9b4c1376f373713036f5256318f1050
Merged-In: I97ef83f7f9b4c1376f373713036f5256318f1050
2020-02-19 15:10:44 +08:00
Taras Antoshchuk
b073a3eb54 Merge changes from topic "dynamic-mime-types"
* changes:
  Clear preferred activities affected by MIME groups changes
  Implement new API to modify MIME groups by adding/removing MIME types
  Add mimeGroup tag to intent filters
2020-02-19 07:09:22 +00:00
Ricardo Correa
e96b5668b3 Include an AppOp to allow dialer role app to record and play audio into calls
This change includes an AppOp that will be used to grant access to telephony call audio (RX and TX) to the default dialer application (assigned to the Dialer role).
A new permission was created so only apps that also require this permission will be granted. It will also be used to keep track of usage (audit).

Test: Compilation and manual verification
Bug: 135197853

Change-Id: I5d042f667ca5fe64f8048b8aff7b98f51b3c1500
2020-02-18 22:54:13 -08:00
markchien
6810bc91d6 Add TetheringTests to postsubmit
The tethering unit tests were in FrameworksNetTests, but were moved out
so were no longer run in presubmit. Now put them to postsubmit first.
Should be moved to presubmit after a while.

Bug: 148998835
Test: atest --test-mapping frameworks/base/packages/Tethering:postsubmit

Change-Id: I9ca36cba7bfde8409a06dbeb7166337c55b39691
2020-02-19 14:43:16 +08:00
TreeHugger Robot
895e1f2883 Merge "Resolve TODOs in MediaRouter2" 2020-02-19 06:33:35 +00:00
TreeHugger Robot
cd5bb94e55 Merge "Turn off cpp aidlgen, link libstatssocket as share" 2020-02-19 06:27:09 +00:00
Jack Yu
e423861ca9 Made the comment more clear
Fix: 149299813
Test: None
Change-Id: Iad88b668cf36b868f591f7e4608e36b18ddbb2ed
2020-02-19 06:19:35 +00:00
Ameer Armaly
049ddf375f Merge "Add passthrough functionality for touch exploration and gesture detection." 2020-02-19 06:16:20 +00:00
Automerger Merge Worker
4ee54d4f92 Merge "Use month in the range 1-12 for 3GPP2 SMS Time Stamp instead" am: 223696559f am: fe80efe1d1 am: 163015b675
Change-Id: I8d1844e8cc707fc40e008c0c3540709ada31d875
2020-02-19 06:06:30 +00:00
Automerger Merge Worker
0078e53c38 [automerger skipped] Merge "Set a shorter timeout for logging a warn on slow IUserSwitchObservers." into qt-qpr1-dev am: 928add13d4 am: 5adf4d96b7 -s ours
am skip reason: Change-Id I68e3b7220bbac25075e4fd4dad83c3a26b88940c with SHA-1 48a75cbd67 is in history

Change-Id: I8b8a61a44e4deece2f4cd6af206e6d53537a12f2
2020-02-19 06:06:14 +00:00
Automerger Merge Worker
d3ba9bbf1f [automerger skipped] Merge changes I758270b8,Ic08b2b06 am: fbbb808b2a am: f6ac8fca82 am: 28484421fc -s ours
am skip reason: Change-Id Id793ac39a4dfb022fc5e4c0c1230a3da77bf41c6 with SHA-1 5ff0f9ea6a is in history

Change-Id: I12abb452fd131e975059c8b6415a40b4767c92e1
2020-02-19 06:05:31 +00:00
Automerger Merge Worker
802f775057 [automerger skipped] Adds --force-queryable option to adb install am: 264700a361 am: 74a2684799 -s ours
am skip reason: skipped by user patb

Change-Id: If379934479649fbbecac3bb3c83dd07656146f72
2020-02-19 06:05:23 +00:00
Automerger Merge Worker
7967c5da93 [automerger skipped] Revert "DO NOT MERGE: Adds --force-queryable option to adb install" am: e464d16f7d am: 128eb4ce34 am: 2a1380d471 -s ours
am skip reason: subject contains skip directive

Change-Id: I17082f43c2c7b7ba4fe74dd9233597d1f7ede1b3
2020-02-19 06:05:18 +00:00
Jackal Guo
1eac68b121 Fix failure in postsubmit
There are some package-pricate classes and methods in a11y framework
so we use DexmakerShareClassLoaderRule to mock them. However, this
results in some unexpected excpetions during testing. Change some of
them to public with @VisibleForTesting annotation, and remove the
DexmakerShareClassLoaderRule to avoid the exception.

Bug: 149362507
Test: atest FrameworksServicesTests:com.android.server.accessibility
Change-Id: I1e526ca79cf14b3d394ee132480dcd8c226ae69a
2020-02-19 13:57:36 +08:00