Commit Graph

10174 Commits

Author SHA1 Message Date
TreeHugger Robot
b23f6d71ee Merge "Move GameManager to android.app package." into sc-dev 2021-02-02 19:36:13 +00:00
Peiyong Lin
277cfb354d Merge "Implement per-app window resizing override." into sc-dev 2021-02-02 16:30:40 +00:00
Zimuzo Ezeozue
dacdd6fd40 Merge "Add PROPERTY_MEDIA_CAPABILITIES API" into sc-dev 2021-02-02 16:05:51 +00:00
Shashwat Razdan
fc890f1fba Merge "SmartspaceManager initial implementation" into sc-dev 2021-02-02 12:31:26 +00:00
Zim
8d616b4506 Add PROPERTY_MEDIA_CAPABILITIES API
This string allows apps add a media_capabilities.xml resource to the
AndroidManifest.xml

The media_capabilities.xml file will in turn allow apps declare the
media capabilities they support, so the OS can transcode unsupported
formats to compatible formats for the app

Note, that the hard-coded string is already in use in MediaProvider
and is covered by TranscodeTest mentioned below

Test: atest TranscodeTest
Bug: 178187121
Change-Id: I46cfaefe8fb7f0bbd14896efdee61dcc4da19783
2021-02-02 10:59:11 +00:00
Adrian Roos
84199909eb Merge changes from topic "nullablecollection" into sc-dev
* changes:
  API: Suppress existing NullableCollections lints (TaskOrganizer)
  API: Suppress existing NullableCollections lints (S edition)
2021-02-02 09:24:38 +00:00
Shashwat Razdan
d33e8c387a SmartspaceManager initial implementation
Bug: 176851064
Test: Deployed on Phone,CTS tests
Change-Id: I3e03628d4d0e0aec0b6442f0ee8949ac378a1572
2021-02-01 21:39:07 +00:00
Michael Groover
969c49681c Merge "Document Signature equals/hash should not include flags" into sc-dev 2021-02-01 20:55:14 +00:00
TreeHugger Robot
772cd3678c Merge "Adding APIs to get manifest entries for Launcher activities and widgets and getting resources for a particular config" into sc-dev 2021-02-01 19:37:15 +00:00
Sunny Goyal
7152080c07 Adding APIs to get manifest entries for Launcher activities and widgets
and getting resources for a particular config

This would allow fetching display infos for the activity in a particular
config independent of system config.

Bug: 156154533
Test: Included CTS
Change-Id: Ie245d685fb21444c10a88b4ca86dc7ff08e2b599
Merged-In: Ie245d685fb21444c10a88b4ca86dc7ff08e2b599
2021-02-01 17:35:23 +00:00
Adrian Roos
d7f33cd648 API: Suppress existing NullableCollections lints (S edition)
Bug: 152525509
Test: make checkapi
Change-Id: Idf96709bf93ef49ca5ad3cdd1f14d06e0d9e09d7
Exempt-From-Owner-Approval: API lint large scale change
2021-02-01 14:54:34 +00:00
Hyundo Moon
666804029d Merge "Add a new system service: MediaCommunicationService" into sc-dev 2021-02-01 06:11:27 +00:00
Peiyong Lin
235cb5086c Move GameManager to android.app package.
Bug: b/177611751
Bug: b/178112303
Test: atest GameManagerTests
Test: atest GameManagerServiceTests
Test: atest GameManagerServiceSettingsTests
Change-Id: Icf01f723f1323f6f91030e6005958b7da05e8177
2021-01-29 20:58:52 -08:00
Adam Bodnar
6aba2b0bd5 Implement per-app window resizing override.
Bug: b/168419799
Test: adb shell am compat enable DOWNSCALED <PACKAGE_NAME> &&
      adb shell am compat enable DOWNSCALE_50 <PACKAGE_NAME>

Change-Id: I257cde178e0145d63f492fc1ba3b46e7c5216f9f
2021-01-29 16:20:41 -08:00
Peiyong Lin
72036e758c Merge "Add GameManager service." into sc-dev 2021-01-29 23:47:19 +00:00
TreeHugger Robot
05921e00c8 Merge "System font check for downloadable font" into sc-dev 2021-01-29 20:33:39 +00:00
Peiyong Lin
32f6ff7e15 Add GameManager service.
GameManager service is a service to manage game related features. This
patch creates the initial service to manage the game mode and persist
the data across reboot.

Bug: b/174956354
Test: atest GameManagerTests
Test: atest GameManagerServiceTests
Test: atest GameManagerServiceSettingsTests
Change-Id: Iee2ab47c79d29f48847bc6d4b3eb781a5af18ff4
2021-01-29 09:18:34 -08:00
Michael Groover
47c04289f8 Merge "Grant signature permission to requesting app with common signer" into sc-dev 2021-01-29 15:34:52 +00:00
TreeHugger Robot
59050b0853 Merge "Make FEATURE_HDMI_CEC TestApi" into sc-dev 2021-01-29 14:28:53 +00:00
Jeff Sharkey
7ca8108311 Merge "Add owners" am: 033aefcb06 am: 8098a5fa5d am: 8121f93bac
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1562605

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie654042f25cf29395f0891d701f574bde8ecddc2
2021-01-28 20:42:22 +00:00
Siyamed Sinir
30900cac3f System font check for downloadable font
Adds a new attribute to downloadable font xml
that checks if downloaded font is on the system
already and uses that instead.

Test: added new tests
Test: atest ResourcesTest
Test: atest FontResourcesParserTest

Bug: 178589784
Change-Id: Ib7c32ba3037c534e9ab8c144716d68e46c908a39
2021-01-28 20:05:11 +00:00
Jeff Sharkey
8121f93bac Merge "Add owners" am: 033aefcb06 am: 8098a5fa5d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1562605

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iad27ddb7bfdc20663a7ecdfabf0e45a5fef60e02
2021-01-28 18:33:04 +00:00
Guojing Yuan
a081fd7563 Merge "[Location Accuracy] Add a new flag for location permissions." into sc-dev 2021-01-28 17:49:23 +00:00
Todd Kennedy
19d09ca6ed Add owners
Change-Id: If3e8e500c4a5de47ec76cc19413546b736feb5f9
2021-01-28 17:20:10 +00:00
Sergey Volnov
bf51d7482c Merge "Add System speech recognition service." into sc-dev 2021-01-28 16:55:27 +00:00
Marvin Ramin
b8f502d77d Make FEATURE_HDMI_CEC TestApi
To allow HdmiControlManager CTS to access the constant.

Bug: 174345748
Test: atest HdmiControlManagerTest
Change-Id: I75913cc240c47bb584271f348ddd8ee1d99e03e5
2021-01-28 14:41:02 +01:00
Hyundo Moon
47b63528c3 Add a new system service: MediaCommunicationService
Bug: 175511943
Test: MediaCommunicationService can run.
      'adb shell service list' shows the service.
Change-Id: I81a1e11d96d1d30a29760507be6fe04592afcf70
Merged-In: I81a1e11d96d1d30a29760507be6fe04592afcf70
2021-01-28 13:07:53 +00:00
Michael Groover
d8bd3028e3 Document Signature equals/hash should not include flags
Some of the methods in PackageParser.SigningDetails rely on the
Signature class not including the flags / capabilities when
computing the hash code or performing equality checks. This commit
adds comments to the Signature class to highlight this and adds
tests to detect if this behavior is changed.

Bug: 176814921
Test: atest SignatureTest
Change-Id: I28c591af559568d498449f1c6cbceb1c292d2ad5
2021-01-27 21:24:09 -08:00
Jackal Guo
33e5dd7c1b Merge "Refactor PackageParser (2/n)" into sc-dev 2021-01-28 00:19:02 +00:00
Guojing Yuan
b5798a374c [Location Accuracy] Add a new flag for location permissions.
The new flag indicates if the location permission is selected as the
level of granularity of location accuracy.

Test: m build.

Bug: 178646267

Change-Id: Ieccff38072789791da2b32cecf179d3f1106b54e
2021-01-27 23:59:26 +00:00
Michael Groover
40447c5ee1 Grant signature permission to requesting app with common signer
Previously signature permissions were only granted to a requesting app
under the following conditions:
- Both apps are signed by the same signer
- The requesting app's current signer is in the lineage of the
  declaring app, and this signer in the declaring app still has the
  permission capability granted
- The declaring app's current signer is in the lineage of the
  requesting app
However these requirements prevent the signing keys from diverging,
meaning all apps must always be signed by the same key (or remain at
a previous key in the lineage); this goes against signing key best
practices. This commit allows a signature permission to be granted
to a requesting app if it has a signing key in its lineage in common
with the declaring app, and the declaring app has still granted the
permission capability to that key.

Fixes: 176814921
Test: atest SigningDetailsTest
Test: atest PkgInstallSignatureVerificationTest
Change-Id: I386b53085fc47e5111fe083c934045f5fb8154f1
2021-01-27 18:01:13 +00:00
Eugenio Marchiori
c3c0a1ee7e Add System speech recognition service.
Bug: 176578753
Test: local demo, CTS will follow
Change-Id: Ia7766c506bf43a5db5b9719363da66aab263fd8d
2021-01-27 09:40:27 +00:00
Treehugger Robot
ed907b9203 Merge "Add app hibernation service stubs" am: d7bac025fb am: d131f3737d am: 1438f59fb0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1544924

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I938d23eada77c80966b710a373de927adf72fae4
2021-01-27 07:56:38 +00:00
David Zeuthen
5147877a83 Merge "Identity Credential: API changes for Android 12" am: 40d6635701 am: 6252f82f61 am: 581bf34de0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1464362

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie64aad9ae67a5b62c43edcbf37b841dac60849e2
2021-01-27 07:54:40 +00:00
Jackal Guo
57bdf48a7f Refactor PackageParser (2/n)
Replace PackageParser.Package/ApkLite by the independent one in order
to move away from PackageParser.

Bug: 174723245
Test: make
Test: atest -p core/java/android/content/pm \
        core/java/com/android/internal/content \
	services/core/java/com/android/server/pm \
	services/tests/servicestests/src/com/android/server/pm
Change-Id: I84d387d9913206558f2582774f8a0ab64b1f6b39
(cherry picked from commit 5444ece938)
2021-01-27 07:14:27 +00:00
Treehugger Robot
1438f59fb0 Merge "Add app hibernation service stubs" am: d7bac025fb am: d131f3737d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1544924

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I44b19930ec127d096ac8f25da8e60302c02053b9
2021-01-26 23:10:54 +00:00
David Zeuthen
581bf34de0 Merge "Identity Credential: API changes for Android 12" am: 40d6635701 am: 6252f82f61
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1464362

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id3405bbcbcd6deb35ea4cfeb03792b7ef793ac9f
2021-01-26 23:08:55 +00:00
Rhed Jao
97bf010bc1 Merge "Deprecates GET_INTENT_FILTERS in the PackageManager" am: cba3b81738 am: a81e3c0ffc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1473222

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4eff6716141761c27e9f6791bb4120a155ca544a
2021-01-26 23:07:16 +00:00
Treehugger Robot
d7bac025fb Merge "Add app hibernation service stubs" 2021-01-26 22:23:13 +00:00
Shubang Lu
4adf45f942 Merge "Add Context constant for Playback Metrics Service" 2021-01-26 20:02:36 +00:00
David Zeuthen
40d6635701 Merge "Identity Credential: API changes for Android 12" 2021-01-26 14:50:27 +00:00
Alex Buynytskyy
1d85df2d5e Signature verification for checksums.
Bug: 160605420
Test: atest ChecksumsTest
Change-Id: Ia1cca0c678256defc2d3b781eb75494b9b17496d
2021-01-26 04:57:37 +00:00
Rhed Jao
cba3b81738 Merge "Deprecates GET_INTENT_FILTERS in the PackageManager" 2021-01-26 04:39:42 +00:00
shubang
15c1dd0e51 Add Context constant for Playback Metrics Service
Bug: 159337195
Test: mmm
Change-Id: I771a5edd1ce022d196eb4b612f382f52f7701b4b
2021-01-25 17:28:10 -08:00
Yi Jiang
0127af73ed Introduces RotationResolverService to the system
Rotation Resolver Service provides the suggested screen rotation
to the system server.

Bug: 162359770
Bug: 172370409
Test: atest RotationResolverManagerPerUserServiceTest
Change-Id: Ia43dfdba8502e04768933ef46a4ac8a687d4936c
2021-01-25 20:58:14 +00:00
Seigo Nonaka
46d6a3f9ce Add FontManager API and font manager shell commands
FontManager is an interface of communicating with FontManaserService.
With this CL, system apps can know the primitive information about
what font files are installed and how it is configured.

This CL also adds shell command of dumping font configuration.
Example usages are:

  # dump primitive font configuration.
  adb shell dumpsys font

  # dump fallback font list
  adb shell cmd font dump serif

Bug: 173619554
Test: atest FontManagerTest
Test: Manually confirmed above commands works.
Change-Id: I5cb855308e199ac38bd7b56b60821346247bdce3
2021-01-25 08:51:41 -08:00
Hai Zhang
bbb9b5b5b1 Merge "Add necessary system APIs for moving role into module." 2021-01-23 00:38:22 +00:00
Winson Chiu
fa8ea23918 Merge "Parcel queriesProviders in ParsingPackageImpl" 2021-01-22 23:51:54 +00:00
Hai Zhang
84705c4ae3 Add necessary system APIs for moving role into module.
- Added Context.getUser() to system API, to allow module framework
classes to also implement multi-user support in manager classes.

- Added PackageManager.getPermissionControllerPackageName() to system
API for RoleControllerManager to know which package to bind to.

Bug: 158736025
Test: build
Change-Id: If69a97573eb1e676145e0accdfa73fef320aabe7
2021-01-22 14:26:55 -08:00
Winson
00f69942be Parcel queriesProviders in ParsingPackageImpl
This was broken in the original migration, causing this field to be
dropped on reboot.

Bug: 178209505

Test: TODO, separate change will include comprehensive parceling test

Change-Id: I67219fe00c7b92677391fd46305bf0424d74e5f3
2021-01-22 11:25:48 -08:00