Commit Graph

7787 Commits

Author SHA1 Message Date
TreeHugger Robot
d3de7b95df Merge "Add annotations" 2019-03-29 15:46:12 +00:00
Todd Kennedy
a710ac6053 Add annotations
Fixes: 126701951
Test: It builds, it runs!
Change-Id: Ia464beb7121efddd716d81b4b72a5a017fbd96aa
2019-03-29 06:39:49 -07:00
Felipe Leme
a8d33c24f8 Implemented ContentCaptureConditions APIs.
Test: atest ContentCaptureConditionTest \
       CustomViewActivityTest#testContentCaptureConditions \
       CustomViewActivityTest#testContentCaptureConditions_otherPackage
Test: atest CtsContentCaptureServiceTestCases # sanity check (minus usual flakiness)

Fixes: 129266058

Change-Id: I199c3ae99fa6b407da64562a71d8d7581ebf80e6
2019-03-28 18:48:31 -07:00
Felipe Leme
f0d44c6aa8 Improved Content Capture and LocusId javadocs.
Test: mmm frameworks/base/:doc-comment-check-docs # and checked resulting HTML

Fixes: 123577059
Fixes: 128427733
Fixes: 123954513

Change-Id: I955e99efa099cbb68477b394450fa468c85f352c
2019-03-27 13:42:24 -07:00
Joe Onorato
8f3f4816ea Fix api council feedback
Bug: 126700270
Test: treehugger
Change-Id: Ib274c7c7975b6260b018d63216e03fd8eff57223
2019-03-26 21:29:09 -07:00
Joe Onorato
99598ee6ee incidentd can now handle multiple callers asking it for incident reports
Test: bit incident_test:* GtsIncidentManagerTestCases:*
Bug: 123543706
Change-Id: I9f671dd5d8b2ad139f952a23e575c2be16120459
2019-03-26 11:20:48 -07:00
Mohammad Samiul Islam
8c84b92e58 Merge "Use AndroidManifest to fill PackageInfo from apex" 2019-03-26 10:16:58 +00:00
TreeHugger Robot
44dbdbc348 Merge "Add an api to get active staged session" 2019-03-25 22:02:05 +00:00
TreeHugger Robot
c046eb7272 Merge "Adding permission annotation as per API review" 2019-03-25 22:00:45 +00:00
Sunny Goyal
ddd089a0e8 Adding permission annotation as per API review
Bug: 126180005
Test: N/A
Change-Id: Ie88dce300e5e12ca519c20e8e37060e6ebe4d1ad
2019-03-25 18:38:12 +00:00
Jeff Sharkey
4b457c3915 Clean up scan calls used for testing.
We've converged on explicit scanVolume() and scanFile() methods
which tests should be calling.  These are more robust than the
previous broadcast-based events, which could hang for a long time.

Bug: 127323913
Test: atest --test-mapping packages/apps/MediaProvider
Change-Id: I4f7918c70a67bcafab69ae2a71ee8e4bdaff01eb
2019-03-25 10:55:18 -06:00
Nikita Ioffe
00a08f12fe Add an api to get active staged session
This was requested during review of ag/6638240

Test: CtsStagedInstallHostTestCases
Bug: 127296534
Change-Id: Ifcc6270dc1655b1b07a0879c140f30967df8910d
2019-03-25 16:42:08 +00:00
Mohammad Samiul Islam
935a1560a7 Use AndroidManifest to fill PackageInfo from apex
Some of the applicationInfo was hard coded while some packageInfo was
missing. Using AndroidManifest, they are completed as much as possible.
For remaining missing values, sane defaults are used where possible.

Bug: 124043099
Test: 1. added more assert rules in PackageParserTest.java
      2. atest PackageParserTest

Change-Id: I950283d822966ee2cb97f7bf13b7f55bb1227946
2019-03-25 16:36:39 +00:00
Jeff Sharkey
ae80b5417b Merge changes from topic "mar22z"
* changes:
  Point people towards ModernMediaScanner.
  Translate paths before leaving app sandbox.
2019-03-23 17:59:03 +00:00
TreeHugger Robot
778423d951 Merge "Make Resources.Theme.rebase() public API" 2019-03-23 05:00:14 +00:00
TreeHugger Robot
1987dfa035 Merge "Added a "lite" flag on ContentCaptureOptions." 2019-03-23 04:33:21 +00:00
Jeff Sharkey
9c9ee953e6 Translate paths before leaving app sandbox.
When sending the ACTION_MEDIA_SCANNER_SCAN_FILE broadcast, an app
provides a raw filesystem path, which might be inside of their
sandbox.

Once the broadcast is delivered, we don't know where it came from,
so we need to translate the path before leaving the app process.

Bug: 117909601
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: Ibddd72a2d85e1f6541e0d6209e539fe6b5c4bde0
2019-03-22 17:18:40 -06:00
TreeHugger Robot
0369790fac Merge "Add Shell permission for CTS test." 2019-03-22 22:31:32 +00:00
Winson
173f573a8b Make Resources.Theme.rebase() public API
Needed for androidx dark mode to recreate UI without triggering
lifecycle event.

Bug: 128982541

Test: none needed

Change-Id: I7d16692f074cc7e50470868a6e232e26ff9d1ed3
2019-03-22 14:47:46 -07:00
Ryan Mitchell
fb1ed2258a Merge "Add targetOverlayableName to OverlayInfo" 2019-03-22 21:39:41 +00:00
TreeHugger Robot
f870dc12bb Merge "Introduce new service bind flag to permit capabilities" 2019-03-22 17:23:48 +00:00
TreeHugger Robot
c396d6738c Merge "API review followup: DynamicAndroidClient" 2019-03-22 17:21:39 +00:00
Hyunyoung Song
67a72e8172 Merge "OverlayManager API fixes" 2019-03-22 15:07:19 +00:00
Hai Zhang
be1fe6f31a Merge "Add getDeclaredShareLibraries() for role qualification checking." 2019-03-22 09:43:48 +00:00
Amith Yamasani
f178c96cab Introduce new service bind flag to permit capabilities
Any process state-based capabilities such as location
can be allowed to permeate to the bound app, if the app
has the required permissions as well.

Bug: 128337543
Test: N/A
Change-Id: I0b066d2667333fbd65985959e202785641f704fc
2019-03-21 19:40:11 -07:00
Hai Zhang
1ad238f935 Add getDeclaredShareLibraries() for role qualification checking.
Bug: 124452117
Test: build
Change-Id: I13e4313c4ab5305335fc9490dfc58b03a24a86dd
2019-03-21 18:37:08 -07:00
TreeHugger Robot
4bb646d204 Merge "Allow to listen for addition of work profiles." 2019-03-22 01:35:43 +00:00
TreeHugger Robot
5935252373 Merge "Remove Intent.ACTION_REVIEW_APP_PERMISSION_USAGE." 2019-03-22 01:15:50 +00:00
wilsonshih
5db7b39dd8 Add Shell permission for CTS test.
Add Shell permission for new CTS tests to test the multi-display
functionality in WallpaperService/WallpaperManagerService.

Bug: 123707989
Test: atest WallpaperManagerMultiDisplayTests
Test: atest ActivityManagerMultiDisplayTests

Change-Id: Id97db050a0b9d1940c2dfaa793fbe526df578105
2019-03-22 09:13:10 +08:00
Hyunyoung Song
8a78caff8d OverlayManager API fixes
Bug: 124402715
Bug: 128925918
Test: builds

Addressed all the requests except on OverlayInfo class as much of it's
definition will change in this Q release.

Change-Id: I3a860c2b569b78763c1f65d06246225a931d57f6
2019-03-21 16:40:34 -07:00
Nikita Dubrovsky
94edd0c737 Merge "Update deprecation javadocs of APIs related to preferred activities" 2019-03-21 22:49:11 +00:00
Ryan Mitchell
d57fb1fbcc Add targetOverlayableName to OverlayInfo
This change add information about the target overlayable to the
OverlayInfo class.

Bug: 128830059
Test: atest OverlayInfoTest
Test: cmd overlay dump
Test: overlays.xml generated correctly

Change-Id: Ice9b4dee20d7d5ea4dcbc2b1a1179ab4fa5b1f7a
2019-03-21 15:35:00 -07:00
Ricky Wai
9f6f3eceb2 Merge "Change PackageManager.getSyntheticAppDetailsActivityEnabled to public api" 2019-03-21 18:04:28 +00:00
Felipe Leme
5001b3bb44 Added a "lite" flag on ContentCaptureOptions.
It will be used to let activities from the ContentCapture service package to use
the ContentCaptureManager APIs (such as isContentCaptureFeatureEnabled()), without
triggering content capture per se.

Bug: 122958583
Test: manual verification
Test: atest CtsContentCaptureServiceTestCases # sanity check

Change-Id: I0305fa9f3adb68e6faff80afcb965ae4643f2992
2019-03-21 10:13:49 -07:00
Joel Galenson
3d1a6a5974 Remove Intent.ACTION_REVIEW_APP_PERMISSION_USAGE.
This API is no longer needed.

Fixes: 129006895
Test: Build.
Change-Id: I76be7e529f9d4c2d69452e7aa437853f3fe922fe
2019-03-21 09:49:28 -07:00
Ricky Wai
1ea8743210 Change PackageManager.getSyntheticAppDetailsActivityEnabled to public api
Bug: 127713970
Test: Able to compile
Change-Id: Ic927d6f0ba25289103441d32ca8e16db96dbec3d
2019-03-21 11:34:46 +00:00
Po-Chien Hsueh
4e908c24ca API review followup: DynamicAndroidClient
Some API changes per API reivew:
- Move DynamicAndroidClient and ~Manager to android.os.image.
- Rename them to DynamicSystemClient and ~Manager.
- Rename permission MANAGE_DYNAMIC_ANDROID to MANAGE_DYNAMIC_SYSTEM
- Corresponding changes in the installation service.
- Corresponding changes in privapp-permissions-platform.xml.
- Add missing annotations.
- Change setOnStatusChangedListener's parameters order.
- Improve documentations.
- Re-generate api/system-current.txt.

Bug: 126613281
Test: adb shell am
Change-Id: Ia920e9ccf6de1dbbd38c52910cb72cb81b9b5b32
2019-03-21 17:25:59 +08:00
Joel Galenson
37f8b72a30 Add an API to launch the ongoing usage dialog.
Bug: 128690096
Test: Send intent and open the dialog.
Change-Id: Idc77a0f366ffc3ffe593dce66f28a27fdbe76b1d
2019-03-20 18:26:25 -07:00
Philip P. Moltmann
c586a5cc3e Allow to listen for addition of work profiles.
Test: Built
Bug: 124317989
Change-Id: I293959b3ad1d7c8182a6aac89a5b0cb2bb11fbbc
2019-03-20 16:57:55 -07:00
Jeff Sharkey
8c6eee1124 Merge "Implement dual-permission model for storage." 2019-03-20 23:49:08 +00:00
TreeHugger Robot
84c457fb39 Merge "API cleanup: remove PackageInstaller.SessionParams#setEnableRollback" 2019-03-20 22:39:25 +00:00
Nikita Dubrovsky
13d2335c70 Update deprecation javadocs of APIs related to preferred activities
Added a note to point to the new RoleManager API.

Bug: 123661518
Test: build (javadoc-only change)
Change-Id: Icd2b265375ca89fe7cd4af217de874ef099e8c38
2019-03-20 14:58:53 -07:00
Todd Kennedy
29162935f0 Merge "OMS: expose getOverlayInfo API" 2019-03-20 20:15:48 +00:00
TreeHugger Robot
e0bbc2761f Merge "RRO: Flag ApplicationInfo if it's an RRO" 2019-03-20 20:13:44 +00:00
TreeHugger Robot
a1feb4cd63 Merge "Refine broadcast in commitRollback" 2019-03-20 19:12:02 +00:00
Steven Moreland
91fbb6235c Merge "pm: SharedLibraryInfo: toString closing bracket" am: 05a8e0b44c am: 48b058ef41
am: c56862250d

Change-Id: I65675ef168b7c0a17cf0598ad2124e978ad8131c
2019-03-20 11:41:23 -07:00
Steven Moreland
c56862250d Merge "pm: SharedLibraryInfo: toString closing bracket" am: 05a8e0b44c
am: 48b058ef41

Change-Id: Ib7d2078a0f995a8d6a1ba7ea39dd6e1dd5ea0963
2019-03-20 11:22:29 -07:00
Steven Moreland
48b058ef41 Merge "pm: SharedLibraryInfo: toString closing bracket"
am: 05a8e0b44c

Change-Id: I373baed1fdd987bef7dafdbabacb86a0ef6cfbc0
2019-03-20 11:06:08 -07:00
Treehugger Robot
05a8e0b44c Merge "pm: SharedLibraryInfo: toString closing bracket" 2019-03-20 17:51:00 +00:00
shafik
74fec184ac Refine broadcast in commitRollback
Silence qualified user warning by using sendBroadcastAsUser.
The user is UserHandle.SYSTEM.
Limit recievers to those holding MANAGE_ROLLBACKS permission.

Test: warning does not appear in logcat when running atest RollbackTest
Fixes: 128280826
Change-Id: I85b905d2b20f3993859ec87948f309c1934a4a26
2019-03-20 17:05:47 +00:00