Commit Graph

10203 Commits

Author SHA1 Message Date
Qi Wu
38893fd5a1 Limited use key: feature flags. am: e8af77951b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13461619

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icf54cb83a1f40ae8b9ebdd3a217f1f1cc17652d0
2021-02-03 10:08:38 +00:00
Qi Wu
e8af77951b Limited use key: feature flags.
Add feature flags to indicate whether KeyMint only enforce
this feature in hardware with count == 1 or enforce with
any number of the count (>=1).

Bug: b/174140443
Test: compile
Change-Id: Id9c13ee91b779164bd07ff20ae2b4c0e158fdb33
2021-02-03 04:04:06 +00:00
TreeHugger Robot
7ea09c109b Merge "Move GameManager to android.app package." into sc-dev am: b23f6d71ee
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13443303

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5bf623120a442bb847c0143ba93a0ffd671f8349
2021-02-02 19:49:37 +00:00
Hai Zhang
f61f4fb849 Pass in split permissions to ParsingPackageUtils.
Similar to passing in display metrics. We can use
ActivityThread.currentApplication() as the context for getting
PermissionManager in system server process because it will be created
early in ActivityThread.attach() before any custom logic can run, but
it becomes a problem for apps because they can run their own logic by
overriding Application.attachBaseContext() and do things there before
ActivityThread.currentApplication() becomes non-null.

So pass in the split permissions explicitly as an external dependency
for ParsingPackageUtils, and move the getPackageArchiveInfo()
implementation from PackageManager to ApplicationPackageManager to
utilize the context there. PackageParser2 can get the split
permissions internally because it's only used in system server.

Fixes: 178155985
Test: manual
Change-Id: I8213cf752e16b08328ad1150b2639da18c5d0e83
(cherry picked from commit 7b8974d375)
2021-02-02 11:42:40 -08:00
TreeHugger Robot
b23f6d71ee Merge "Move GameManager to android.app package." into sc-dev 2021-02-02 19:36:13 +00:00
Peiyong Lin
d1ce559f51 Merge "Implement per-app window resizing override." into sc-dev am: 277cfb354d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13438581

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I062a81166f21b5b26e769f5b0fc6ae2c31d4f3d6
2021-02-02 16:47:41 +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
510f0613b2 Merge "Add PROPERTY_MEDIA_CAPABILITIES API" into sc-dev am: dacdd6fd40
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13455410

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7c4b4c20a5ec86e4f861c41dbb3d8ff4271c9abe
2021-02-02 16:06:21 +00:00
Zimuzo Ezeozue
dacdd6fd40 Merge "Add PROPERTY_MEDIA_CAPABILITIES API" into sc-dev 2021-02-02 16:05:51 +00:00
Shashwat Razdan
faf890b03c Merge "SmartspaceManager initial implementation" into sc-dev am: fc890f1fba
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13438671

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I30df7e9e64b85e8cef3fad233d3aa6cfe38005b1
2021-02-02 12:47:46 +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
139eec57fa Merge changes from topic "nullablecollection" into sc-dev am: 84199909eb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13435123

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib3522e2caf51bef99e141253383bf435d3ba3e96
2021-02-02 09:58:31 +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
Michael Groover
ff51c3c275 Merge "Document Signature equals/hash should not include flags" into sc-dev am: 969c49681c am: 8488ea3570
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13424617

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9eadec53cad9930dc01ea903b205dbdac6c239ec
2021-02-01 21:53:41 +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
Sunny Goyal
8f72810e48 Merge "Adding APIs to get manifest entries for Launcher activities and widgets and getting resources for a particular config" 2021-02-01 17:34:22 +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
Peiyong Lin
13b1908cfc Merge "Add GameManager service." into sc-dev am: 72036e758c am: cc78cda942
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13430586

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idc614a096afd07cd7d1b5f9dd43b221ba955b706
2021-01-30 00:24:55 +00: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
Michael Groover
a7b74fbd61 Merge "Grant signature permission to requesting app with common signer" into sc-dev am: 47c04289f8 am: 446b4c3d00
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13417592

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iaed96f2f791cdce3d2405a1cdc9d4c0b122a0adb
2021-01-29 21:15:03 +00:00
TreeHugger Robot
41b9ed6390 Merge "Make FEATURE_HDMI_CEC TestApi" into sc-dev am: 59050b0853 am: e1f14580dc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13427825

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib6ac62415b7916fb9d2089c2317236c5a2a2585d
2021-01-29 21:14:15 +00:00
TreeHugger Robot
05921e00c8 Merge "System font check for downloadable font" into sc-dev 2021-01-29 20:33:39 +00:00
Sunny Goyal
e6497bd219 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
2021-01-29 11:41:04 -08: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
TreeHugger Robot
daf905f45d Merge "Pass in split permissions to ParsingPackageUtils." 2021-01-29 00:08:41 +00:00
Jeff Sharkey
9b96c3b065 Merge "Add owners" am: 033aefcb06 am: 8098a5fa5d am: 8121f93bac am: 7ca8108311 am: 836a592efe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1562605

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ica881c6c4b9fcd95a3957ff90462a2acb23f7bfe
2021-01-28 20:56:44 +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
Siyamed Sinir
b2155d175e Merge "System font check for downloadable font" 2021-01-28 20:02:32 +00:00
Guojing Yuan
6d7ea283cf Merge "[Location Accuracy] Add a new flag for location permissions." into sc-dev am: a081fd7563 am: e59dffeb9b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13421170

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7002495fa54bd76843e681e08102e8ce02effa89
2021-01-28 19:01:45 +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
Hai Zhang
7b8974d375 Pass in split permissions to ParsingPackageUtils.
Similar to passing in display metrics. We can use
ActivityThread.currentApplication() as the context for getting
PermissionManager in system server process because it will be created
early in ActivityThread.attach() before any custom logic can run, but
it becomes a problem for apps because they can run their own logic by
overriding Application.attachBaseContext() and do things there before
ActivityThread.currentApplication() becomes non-null.

So pass in the split permissions explicitly as an external dependency
for ParsingPackageUtils, and move the getPackageArchiveInfo()
implementation from PackageManager to ApplicationPackageManager to
utilize the context there. PackageParser2 can get the split
permissions internally because it's only used in system server.

Fixes: 178155985
Test: manual
Change-Id: I8213cf752e16b08328ad1150b2639da18c5d0e83
2021-01-27 17:42:28 -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
Siyamed Sinir
26f80b55e2 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-27 12:10:42 -08:00