Commit Graph

969 Commits

Author SHA1 Message Date
Jiyong Park
82f94056ce Use framework_native_aidl for AIDL files in frameworks/native/aidl
The AIDL files under frameworks/native/aidl have been referenced via
their absolute paths. This required any module that has an AIDL file
depending on the AIDL types in the frameworks directory to explicitly
set the include path.

Fixing the problem by abstracting the AIDL files using filegroup where
the path property is set to the base directory for the files. The base
directory is used as include paths when the filegroup is added to srcs.

Bug: 135922046
Test: m
Test: m on sdk_phone_arm7
Change-Id: I8acb39522541f1e06d1a4b69b7a53b328c202eff
2019-08-23 13:38:49 +09:00
Jiyong Park
b360931bf0 Use filegroup to simplify Android.bp for frameworks and its friends
Java and AIDL source files under frameworks/base are now modularized
using filegroup. Each filegroup has 'path' property set to the base
directory of the ssource files. This allows us to not rely on
aidl.[local_]include_dirs and srcs_lib_whitelist_dirs to get the base
directories.

Bug: 70046217
Test: m
Change-Id: I0705ddf76b3c628127f65d75e0a8b06c6c250fe2
2019-08-22 20:07:38 +09:00
Anna Trostanetski
608e763d50 Merge "Add a platform-compat-config to the framework services." am: 6162efbfa7 am: 8ee5669a5e am: 8c41982cbe am: 6333182547
am: cbadaa42a2

Change-Id: I23f9f1adc2d83ad9cbd13532ff3c7598f2457c3a
2019-08-21 04:56:00 -07:00
Anna Trostanetski
8ee5669a5e Merge "Add a platform-compat-config to the framework services."
am: 6162efbfa7

Change-Id: Iad2e3ebdabad091387cba59fb4c8ac5bec60da97
2019-08-21 04:05:51 -07:00
Anna Trostanetski
6162efbfa7 Merge "Add a platform-compat-config to the framework services." 2019-08-21 10:53:33 +00:00
Jiyong Park
0c6dc7b709 glob pattern is used for AIDL files under frameworks/base
This change removes the manullay curated list of AIDL files and replace
them with globs.

In addition, framework-aidl-mappings no longer sets frameworks-defaults
to its src property, but instead uses the several variables like
framework_srcs, framework_aidl_local_include_dirs, etc. to get the
same files/dirs list as the framework.

The variables will eventually be replaced with filegroups when aidl
include paths are better handled (i.e. 'path' property of all filegroups
for a module contributes to the AIDL include paths for all AIDL files in
the module).

Bug: 70046217
Test: m

Merged-In: I59728ed06d66d44bc19bcd8530042c01add5fc2b
(cherry picked from commit 1cc9566ee2)
Change-Id: I59728ed06d66d44bc19bcd8530042c01add5fc2b
2019-08-20 14:06:03 +09:00
Jiyong Park
90625f10f8 glob pattern is used for AIDL files under frameworks/base
This change removes the manullay curated list of AIDL files and replace
them with globs.

In addition, framework-aidl-mappings no longer sets frameworks-defaults
to its src property, but instead uses the several variables like
framework_srcs, framework_aidl_local_include_dirs, etc. to get the
same files/dirs list as the framework.

The variables will eventually be replaced with filegroups when aidl
include paths are better handled (i.e. 'path' property of all filegroups
for a module contributes to the AIDL include paths for all AIDL files in
the module).

Bug: 70046217
Test: m

Merged-In: I59728ed06d66d44bc19bcd8530042c01add5fc2b
(cherry picked from commit 1cc9566ee2)
Change-Id: I59728ed06d66d44bc19bcd8530042c01add5fc2b
2019-08-20 13:26:49 +09:00
atrost
86895aad82 Add a platform-compat-config to the framework services.
Bug: 138222363
Test: m. the config builds and contains annotated changes.
Change-Id: I35ab9d028bbf23aca38494b66592779fdb4ef01e
2019-08-19 16:51:15 +01:00
Anna Trostanetski
3cd1e48e9d Merge "Move required back to frameworks target." 2019-08-19 10:30:10 +00:00
satayev
ad6cf4a97c Merge "Cover framework code in hiddenapi-mappings."
am: d39df1d0ac

Change-Id: Ia3d88cfe55d48959d56fd8755d72d1eb4107d0bd
2019-08-19 02:37:47 -07:00
atrost
aec9bc16bf Move required back to frameworks target.
Being attached to framework-minus-aosp the config files don't get
uploaded to device, and this fixes it.

Bug: 138222363
Test: m + flashed device, configs are now present.
Change-Id: Id15f1b3dceace0dafd438bd92ad165932a597318
2019-08-16 18:23:48 +01:00
Artur Satayev
005d7350d2 Cover framework code in hiddenapi-mappings.
It was missing most of the source code outside of core/...

Test: m, m hiddenapi-mappings
Change-Id: I9559346d306499c2f9659b73a68962d640fe644d
Merged-In: I9559346d306499c2f9659b73a68962d640fe644d
2019-08-16 16:33:33 +00:00
Artur Satayev
3cc3fa4151 Cover framework code in hiddenapi-mappings.
It was missing most of the source code outside of core/...

Test: m, m hiddenapi-mappings
Change-Id: I9559346d306499c2f9659b73a68962d640fe644d
2019-08-16 14:41:25 +01:00
Anna Trostanetski
1261967c52 Merge "Move IPlatformCompat.aidl definition to framework.jar" 2019-08-15 19:34:09 +00:00
Anna Trostanetski
77a833f3e0 Merge "Move IPlatformCompat.aidl definition to framework.jar" into stage-aosp-master 2019-08-15 13:35:29 +00:00
TreeHugger Robot
066bc04a22 Merge "glob pattern is used for AIDL files under frameworks/base" 2019-08-14 22:50:35 +00:00
Adrian Roos
3c0ec9ef98 Merge "API: Explicitly track incompatibilities with previous API versions" am: 5f76164a65 am: 5f00bf12f4 am: 285725f7b0 am: f0c2d88a24
am: f6ba471a99

Change-Id: I28a446c4722fbaac5fb0c3a6e7c6a7fe606e13e8
2019-08-14 08:52:31 -07:00
atrost
fee45aa4dc Move IPlatformCompat.aidl definition to framework.jar
There are non-app process usecases in framework code that need to have
access to this API.
Created a new package android.compat in frameworks/base/core following
previous definition of android.compat.Compatibility for app processes
(http://cs/android/libcore/luni/src/main/java/android/compat/Compatibility.java).

Bug: 137769727
Test: m
Change-Id: Ifc1b97ad40c2baf65a86169e101acfa72e3aae5f
Merged-In: Ifc1b97ad40c2baf65a86169e101acfa72e3aae5f
2019-08-14 16:47:18 +01:00
atrost
b18da3cad9 Move IPlatformCompat.aidl definition to framework.jar
There are non-app process usecases in framework code that need to have
access to this API.
Created a new package android.compat in frameworks/base/core following
previous definition of android.compat.Compatibility for app processes
(http://cs/android/libcore/luni/src/main/java/android/compat/Compatibility.java).

Bug: 137769727
Test: m
Change-Id: Ifc1b97ad40c2baf65a86169e101acfa72e3aae5f
Merged-In: Ifc1b97ad40c2baf65a86169e101acfa72e3aae5f
2019-08-14 16:35:14 +01:00
Adrian Roos
5f00bf12f4 Merge "API: Explicitly track incompatibilities with previous API versions"
am: 5f76164a65

Change-Id: I93458fee3894a456f202f1e117538a9e0a81cf7a
2019-08-14 08:11:37 -07:00
Adrian Roos
5f76164a65 Merge "API: Explicitly track incompatibilities with previous API versions" 2019-08-14 14:39:18 +00:00
Jiyong Park
1cc9566ee2 glob pattern is used for AIDL files under frameworks/base
This change removes the manullay curated list of AIDL files and replace
them with globs.

In addition, framework-aidl-mappings no longer sets frameworks-defaults
to its src property, but instead uses the several variables like
framework_srcs, framework_aidl_local_include_dirs, etc. to get the
same files/dirs list as the framework.

The variables will eventually be replaced with filegroups when aidl
include paths are better handled (i.e. 'path' property of all filegroups
for a module contributes to the AIDL include paths for all AIDL files in
the module).

Bug: 70046217
Test: m

Change-Id: I59728ed06d66d44bc19bcd8530042c01add5fc2b
2019-08-14 12:25:06 +09:00
Brad Ebinger
736e4cebe3 Merge "Modify RCS UCE APIs to use AIDL Interfaces." am: 4204a6017e am: c64c204f59 am: 7e3661be1e am: a33d1aed85
am: ce95274ae6

Change-Id: I73e17b8b410c6c026ca797331ccb03a0d70975d4
2019-08-13 17:45:57 -07:00
Brad Ebinger
c64c204f59 Merge "Modify RCS UCE APIs to use AIDL Interfaces."
am: 4204a6017e

Change-Id: I3c10e76be4266bb4f43306ca3f0c7362499208f7
2019-08-13 16:34:41 -07:00
Brad Ebinger
4204a6017e Merge "Modify RCS UCE APIs to use AIDL Interfaces." 2019-08-13 22:46:18 +00:00
TreeHugger Robot
deadb7bf68 Merge "Implement sysprop_library API stability check" 2019-08-13 16:16:37 +00:00
Makoto Onuki
62242c48e0 Introduce framework-minus-apex and create jobscheduler-framework.jar
Bug: 137763703
Test: Clean local build + "flash -w" and boot
Test: Presubmit
Test: atest CtsJobSchedulerTestCases
Test: ./cts/tests/signature/runSignatureTests.sh
Change-Id: Ie2a5a7a17f903ac18de0bcdde5be25311a62fa01
2019-08-12 18:11:57 +00:00
Adrian Roos
9597f8c84f API: Explicitly track incompatibilities with previous API versions
Bug: 139128921
Test: make checkapi
Change-Id: I1f17b57705e2f7350b55ab278e06fc4e988771ff
2019-08-12 17:47:39 +02:00
Anna Trostanetski
f8473bcbaf Merge "Upload platform compat config generated from framework target." am: d7345e923a am: 01a10679ac am: f74bce37de am: 1d7d028877
am: f9a466503c

Change-Id: Ib79a4c67d9efd4060212ff5d5dd266a12912d36c
2019-08-08 05:22:08 -07:00
Anna Trostanetski
01a10679ac Merge "Upload platform compat config generated from framework target."
am: d7345e923a

Change-Id: I41a4313e96c68bb8efa644816c7d8278c988265b
2019-08-08 04:34:15 -07:00
Brad Ebinger
06a48decec Modify RCS UCE APIs to use AIDL Interfaces.
Integrate AIDL backend into RCS UCE APIs.

Test: Telephony Unit Tests
Change-Id: I7a1af154676797ce5adf7b037c883827f4085d52
2019-08-07 17:14:49 -07:00
Eugene Susla
3b2fe616fd Use dataclass codegen on a few initial framework classes
Test: presubmit
Change-Id: Ide3c21596f6489fdb1db8f72e1436a01b10f56ed
2019-08-06 21:29:29 -07:00
atrost
b9c3450355 Upload platform compat config generated from framework target.
Add compat-changeid-annotation-processor and upload the generated compat
config using the platform_compat_config rule.
Make both libcore and framework compat configs required for framework to
make sure they get onto the device. Libcore will be removed once the
config is uploaded to APEX.

Test: flashed device locally, config files found and read by
com.android.server.compat.CompatConfig.
Bug: 138222363

Change-Id: Ie04fde8b4b18e7e34d95257f5ef8ca78d5076b4f
2019-08-05 12:22:18 +01:00
Inseob Kim
4fe9f0f8fd Implement sysprop_library API stability check
sysprop_library now checks the API stability itself, cutting dependency
on java_sdk_library. Under the directory {module_dir}/api,
{module_name}-current.txt and {module_name}-latest.txt hold API
signatures.

When sysprop_library is built, or a user run "m {module_name}-check-api"
command, API check is performed. First, current.txt must have exactly
same signature with built sysprop_library module. Second, current.txt
must be compatible with latest.txt.

Build system emits a handy error message to generate/update those API
files, in case of missing or mismatching. Also, a script file for
freezing API files is introduced.

Bug: 131637873
Test: 1) m && boot blueline
Test: 2) m {sysprop_library} performs API check
Test: 3) manual test for check-api, freezing api
Change-Id: I6d69fb418bac675bbb9e4ac25c3269dfa3029219
2019-08-02 05:24:34 +00:00
Jiyong Park
4b7a3e336a Merge "Remove the dependencies to ext and framework from the stubs build" am: 9b0e7670f8 am: 58cfae5d38 am: fd91098d77 am: ce7226df53
am: 50df9a99ab

Change-Id: I624b130ffae8027bc4ec1d0de4aafe9204b0c10d
2019-07-25 19:03:25 -07:00
Jiyong Park
58cfae5d38 Merge "Remove the dependencies to ext and framework from the stubs build"
am: 9b0e7670f8

Change-Id: Ie1322881833755f54467ebe53e446f3a6681a34c
2019-07-25 17:46:42 -07:00
Jiyong Park
ae0cc8d3fa Merge "Remove voip-common to the dependency list of *-api-stubs-docs" am: b5958c7c49 am: 1f51d97b8e am: 511bd2ba29
am: f6872fa21a

Change-Id: If95e04a034ace0fa19718777df1cc55728835b4a
2019-07-19 05:45:44 -07:00
Jiyong Park
1f51d97b8e Merge "Remove voip-common to the dependency list of *-api-stubs-docs"
am: b5958c7c49

Change-Id: Ibda507c3119892951aaf5a663e754479f4f84bbe
2019-07-19 04:55:14 -07:00
Jiyong Park
9bcd2974f0 Remove the dependencies to ext and framework from the stubs build
The two dependencies are not needed. This will cut the circular
dependency that might happen when we separate some framework classes
into a separate jar.

Bug: 135922046
Test: m api-stubs-docs system-api-stubs-docs

Change-Id: I63fc1bce5f2a51366580b5ed3b53c03377a797b2
2019-07-16 12:15:58 +09:00
Jiyong Park
2e3f1aa439 Remove voip-common to the dependency list of *-api-stubs-docs
All classes for voip-common are provided opt-net-voip-srcs filegroup.

Bug: 135922046
Test: m api-stubs-docs system-api-stubs-docs

Change-Id: Iffee73ef6316803066521731901824d50c95838f
2019-07-16 12:09:05 +09:00
Brad Ebinger
55f7a2c065 Merge "Make RcsMessageStore a top level API" am: bac258f22e am: 53f6c34039 am: 36cc070c24
am: 545a4c369e

Change-Id: I8588b6035f16ed52da6b5e61675a266998e748a1
2019-07-12 15:33:27 -07:00
Brad Ebinger
53f6c34039 Merge "Make RcsMessageStore a top level API"
am: bac258f22e

Change-Id: If235ead8a75dc080e1e129d83bf7f24c3c996d8c
2019-07-12 14:53:26 -07:00
Brad Ebinger
bac258f22e Merge "Make RcsMessageStore a top level API" 2019-07-12 21:40:40 +00:00
Todd Kennedy
7e3dd3afe2 Move whitelist permissions to permission manager
Also while doing this, it made sense to move the permission change
listener to the permission manager [it resulted in fewer hacks to
get the two sides to talk to one another].

Bug: 135279435
Test: atest PermissionUpdateListenerTest
Test: android.content.pm.cts.PackageManagerTest
Test: android.permission2.cts.RestrictedPermissionsTest
Change-Id: Ie08701dfe999cd435335103f4b4daeaa0b31ef10
2019-07-11 14:14:02 -07:00
Todd Kennedy
8f135982a8 Create permission manager AIDL
Today, the package manager largely routes any permission related
method to the PermissionManagerService. But, PermissionManagerService
is a service in name only. Instead, we will make the
PermissionManagerService a real service and direct API calls directly
to it.

We will likely need to maintain all of the public permission APIs
that already exist on PackageManager. However, the public -> private
implementation will go directly to PermissionManagerService.

Bug: 135279435
Test: Manual. Device boots
Change-Id: Ia4992ba6d1f4b9050db98c7d7647d51a5d45fcbe
2019-07-02 13:17:05 -07:00
Anna Trostanetski
2ea518daa8 Merge "Make unsupportedappusage_index.csv a build artifact." am: 19cb14b3be am: 2e43120685 am: edf0d51c84
am: 5f6dd02dbc

Change-Id: Ied2e85c856f3bee9a2c29f53b20a78a2feb6c817
2019-06-28 10:14:28 -07:00
Anna Trostanetski
edf0d51c84 Merge "Make unsupportedappusage_index.csv a build artifact." am: 19cb14b3be
am: 2e43120685

Change-Id: Ife8c17d76c3fb9ae53a789ef98c58c66c0a084d5
2019-06-28 09:12:47 -07:00
Anna Trostanetski
19cb14b3be Merge "Make unsupportedappusage_index.csv a build artifact." 2019-06-28 10:46:22 +00:00
Anna Trostanetski
97088e9909 Make unsupportedappusage_index.csv a build artifact.
Add the output of unsupportedappusage-annotation-processor as a build artifact to make it available for the hiddenapi ayeaye analyzer.

Test: build artifact appears in treehuger, found by ayeaye.
Bug: 135601059
Change-Id: If3ef7bde96e008127694a8b0aa25bf19767faf1c
2019-06-28 10:33:04 +01:00
Janis Danisevskis
ecf4d59309 Merge "Gatekeeper generated aidl cpp bindings" 2019-06-28 00:43:10 +00:00