- Jul 05, 2021
-
-
Remi NGUYEN VAN authored
The coverage tests will allow measuring code coverage for all Connectivity+Tethering code. This is a combination of the current TetheringCoverageTests, and FrameworksNetTests. Adding min_sdk_version to the test prevents it from using deprecated IoUtils utilities. Replace it with the non-deprecated alternative. Bug: 187935317 Test: atest ConnectivityCoverageTests Original-Change: https://android-review.googlesource.com/1731232 Merged-In: I5366e1cc9cd6ddb41f24718246381cc2b1cc1383 Change-Id: I5366e1cc9cd6ddb41f24718246381cc2b1cc1383
-
- May 18, 2021
-
-
markchien authored
Before this change, tethering always report a list of tethered interfaces and the caller need to use each tethering type's interface regex to matching tethered list to manual implement the mapping of tethering type and interface. This change allow caller to get rid of tethering interface regex. Bug: 162920185 Bug: 152203943 Test: atest CtsTetheringTest on S Ignore-AOSP-First: Currently aosp would automerge to mainlne-prod, merge to sc-dev first to avoid adding new API to mainline-prod CTS-Coverage-Bug: I already add cts test(ag/14622456), but Lint still complaint because my cts is under packages/modules/Connectivity/ but it only check whether CL touching platform/cts Change-Id: I91bcccd676d109c1b974497ac29bd366a41b8899
-
- Mar 24, 2021
-
-
Remi NGUYEN VAN authored
To merge the framework-connectivity and framework-connectivity.impl targets, framework-connectivity stubs need to be referenced explicitly in java_sdk_libraries, otherwise the build system will currently see dependency cycles. Bug: 183600168 Test: m Ignore-AOSP-First: Needs manual cherry-picks Change-Id: I556747f9ba934f8b44b6ea9a518adbccc84ac2a9
-
- Feb 26, 2021
-
-
Remi NGUYEN VAN authored
The system API are moved to the connectivity module: add dependency on the stubs from framework-tethering. This only allows tethering to depend on system API defined by the connectivity classes, not on any private code, even if they are eventually bundled in the same APEX. Bug: 171540887 Test: m Merged-In: Iebfb3e01c5d2480e84edcfc76cf489520bd60237 Merged-In: Ic2491f04880ff66abc3b2d3aaee6168e18f6d68a (clean cherry-pick from internal branch) Change-Id: Iebfb3e01c5d2480e84edcfc76cf489520bd60237
-
- Feb 22, 2021
-
-
Remi NGUYEN VAN authored
The system API are moved to the connectivity module: add dependency on the stubs from framework-tethering. This only allows tethering to depend on system API defined by the connectivity classes, not on any private code, even if they are eventually bundled in the same APEX. Bug: 171540887 Test: m Ignore-AOSP-First: Merge conflicts, will cherry-pick Change-Id: Iebfb3e01c5d2480e84edcfc76cf489520bd60237
-
- Feb 16, 2021
-
-
Bob Badour authored
Added SPDX-license-identifier-Apache-2.0 to: Tethering/Android.bp Tethering/apex/Android.bp Tethering/bpf_progs/Android.bp Tethering/common/TetheringLib/Android.bp Tethering/tests/Android.bp Tethering/tests/integration/Android.bp Tethering/tests/mts/Android.bp Tethering/tests/privileged/Android.bp Tethering/tests/unit/Android.bp tests/cts/hostside/Android.bp tests/cts/hostside/aidl/Android.bp tests/cts/hostside/app/Android.bp tests/cts/hostside/app2/Android.bp tests/cts/hostside/certs/Android.bp tests/cts/net/Android.bp tests/cts/net/api23Test/Android.bp tests/cts/net/appForApi23/Android.bp tests/cts/net/jni/Android.bp tests/cts/net/native/dns/Android.bp tests/cts/net/native/qtaguid/Android.bp tests/cts/net/util/Android.bp tests/cts/tethering/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I8534c580f0e2a17be146300b67b3604817b64507
-
- Nov 05, 2020
-
-
Nikita Ioffe authored
Tethering is updatable apex module that was launched in R, hence it and all it dependencies should specify min_sdk_version <= 30. Test: m Bug: 171668006 Bug: 171330443 Change-Id: Ic91cf96dda6419d1038b0329b920f9cd24482aef Merged-In: Ic91cf96dda6419d1038b0329b920f9cd24482aef (cherry picked from commit bee20e84) (cherry picked from commit 1fe1e539)
-
- Nov 03, 2020
-
-
Nikita Ioffe authored
Tethering is updatable apex module that was launched in R, hence it and all it dependencies should specify min_sdk_version <= 30. Test: m Bug: 171668006 Bug: 171330443 Change-Id: Ic91cf96dda6419d1038b0329b920f9cd24482aef Merged-In: Ic91cf96dda6419d1038b0329b920f9cd24482aef (cherry picked from commit bee20e84)
-
- Nov 02, 2020
-
-
Nikita Ioffe authored
Tethering is updatable apex module that was launched in R, hence it and all it dependencies should specify min_sdk_version <= 30. Test: m Bug: 171668006 Bug: 171330443 Change-Id: Ic91cf96dda6419d1038b0329b920f9cd24482aef Exempt-From-Owner-Approval: Mark is owner and gave +2
-
- Oct 30, 2020
-
-
Baligh Uddin authored
BUG: 167962976 Test: Local build (vendor/google/build/build_mainline_modules.sh) Change-Id: I560a2aa086be1be1084cace2a56fa703824a67be
-
- Oct 29, 2020
-
-
Baligh Uddin authored
BUG: 167962976 Test: TH Change-Id: Id28881b35cf24fc9517fa11af6d8e539ab244fa6
-
- Sep 11, 2020
-
-
Anton Hansson authored
//visibility:override is no longer needed for impl_library_visibility to override visibility. Removing this allows the defaults module to specify better defaults. - Stub libraries are made publicly visible, via `visibility` - Impl libraries are private by default, but visibility is extended by the modules Bug: 165017290 Test: m Exempt-From-Owner-Approval: build refactor Change-Id: Ibf35bfac5c99a21125f89ba10945f3364217b90f Merged-In: Ibf35bfac5c99a21125f89ba10945f3364217b90f (cherry picked from commit 9aed1381)
-
- Sep 07, 2020
-
-
Anton Hansson authored
//visibility:override is no longer needed for impl_library_visibility to override visibility. Removing this allows the defaults module to specify better defaults. - Stub libraries are made publicly visible, via `visibility` - Impl libraries are private by default, but visibility is extended by the modules Bug: 165017290 Test: m Exempt-From-Owner-Approval: build refactor Change-Id: Ibf35bfac5c99a21125f89ba10945f3364217b90f
-
- Jun 02, 2020
-
-
Paul Duffin authored
Removes use of the special framework-modules naming scheme. Bug: 155164730 Test: m java Exempt-From-Owner-Approval: Build cleanup. Change-Id: I3896d7c91e937f503b49f5df011c21ee51219652 Merged-In: I0c31e2183353dfb5bd49f04f3455cb7b10be6866 Merged-In: I3b78fcbcacc3df787e171d6eedeef1e51b087615 (cherry picked from adac7d2c)
-
Paul Duffin authored
Switching from java_library to java_sdk_library switched the meaning of the module name from referring to the implementation library to referring to the stubs. This change updates the visibility rules to reflect that new meaning. Visibility rules that were previously set for the java_library have been moved to the impl_library_visibility property and the special //visibility:override value has been prepended to prevent it from inheriting the values from the visibility property. Visibility rules set for the stubs (via stubs_library_visibility) property have been moved to the visibility property. Bug: 155164730 Test: m nothing Exempt-From-Owner-Approval: Build cleanup Change-Id: Icc9bc5a9ef86cf7ba0f15c2b2a4abd596ec9f640 Merged-In: Icc9bc5a9ef86cf7ba0f15c2b2a4abd596ec9f640 (cherry picked from a17cf677)
-
Paul Duffin authored
Removes use of the special framework-modules naming scheme. Bug: 155164730 Test: m java Exempt-From-Owner-Approval: Build cleanup. Change-Id: I3b78fcbcacc3df787e171d6eedeef1e51b087615 Merged-In: I0c31e2183353dfb5bd49f04f3455cb7b10be6866 (cherry picked from 8b864fb45ce79051437f13c2a19510718ea3b7aa)
-
- May 31, 2020
-
-
Paul Duffin authored
Removes use of the special framework-modules naming scheme. Bug: 155164730 Test: m java Exempt-From-Owner-Approval: Build cleanup. Change-Id: I0c31e2183353dfb5bd49f04f3455cb7b10be6866
-
Paul Duffin authored
Switching from java_library to java_sdk_library switched the meaning of the module name from referring to the implementation library to referring to the stubs. This change updates the visibility rules to reflect that new meaning. Visibility rules that were previously set for the java_library have been moved to the impl_library_visibility property and the special //visibility:override value has been prepended to prevent it from inheriting the values from the visibility property. Visibility rules set for the stubs (via stubs_library_visibility) property have been moved to the visibility property. Bug: 155164730 Test: m nothing Exempt-From-Owner-Approval: Build cleanup Change-Id: Icc9bc5a9ef86cf7ba0f15c2b2a4abd596ec9f640
-
- May 28, 2020
-
-
Paul Duffin authored
The names of the individual modules do not quite follow the pattern that java_sdk_library uses so this temporarily sets the following: naming_scheme: "frameworks-modules" That causes java_sdk_library to use a naming scheme that matches the one used by the individual modules of this. It will be cleaned up later. Part of the purpose of the java_sdk_library is to hide the implementation code and force users of the library to depend on stubs for a well defined API. Ideally, it would allow access to the implementation in those cases where it is safe, e.g. from within the same APEX, or from tests for the implementation. Unfortunately, due to limitations in the build it does not yet have enough information to make that decision correctly which means that any code that needs to compile against the implementation is broken which would prevent us from converting the module to java_sdk_library. However, the only way to provide the additional information to allow the implementation to be correctly exposed is to convert the modules to java_sdk_library; a cycle. In order to break that cycle the java_sdk_library creates a special <module>.impl target which is used directly by tests and any other code that needs it. Once all the modules have been converted to a java_sdk_library then we can resolve the limitations in the build and remove the direct references to <module>.impl. Test: m update-api Bug: 155164730 Merged-In: If5c115f482751f9f4b5f047e9e401a18e36799ef Merged-In: Id1c2e848430c49a2da7402244814cd084f5da77c Change-Id: Id1c2e848430c49a2da7402244814cd084f5da77c
-
Paul Duffin authored
The names of the individual modules do not quite follow the pattern that java_sdk_library uses so this temporarily sets the following: naming_scheme: "frameworks-modules" That causes java_sdk_library to use a naming scheme that matches the one used by the individual modules of this. It will be cleaned up later. Part of the purpose of the java_sdk_library is to hide the implementation code and force users of the library to depend on stubs for a well defined API. Ideally, it would allow access to the implementation in those cases where it is safe, e.g. from within the same APEX, or from tests for the implementation. Unfortunately, due to limitations in the build it does not yet have enough information to make that decision correctly which means that any code that needs to compile against the implementation is broken which would prevent us from converting the module to java_sdk_library. However, the only way to provide the additional information to allow the implementation to be correctly exposed is to convert the modules to java_sdk_library; a cycle. In order to break that cycle the java_sdk_library creates a special <module>.impl target which is used directly by tests and any other code that needs it. Once all the modules have been converted to a java_sdk_library then we can resolve the limitations in the build and remove the direct references to <module>.impl. Test: m Tethering InProcessTethering checkapi Bug: 155164730 Merged-In: If5c115f482751f9f4b5f047e9e401a18e36799ef Change-Id: Id1c2e848430c49a2da7402244814cd084f5da77c
-
Paul Duffin authored
The names of the individual modules do not quite follow the pattern that java_sdk_library uses so this temporarily sets the following: naming_scheme: "frameworks-modules" That causes java_sdk_library to use a naming scheme that matches the one used by the individual modules of this. It will be cleaned up later. Part of the purpose of the java_sdk_library is to hide the implementation code and force users of the library to depend on stubs for a well defined API. Ideally, it would allow access to the implementation in those cases where it is safe, e.g. from within the same APEX, or from tests for the implementation. Unfortunately, due to limitations in the build it does not yet have enough information to make that decision correctly which means that any code that needs to compile against the implementation is broken which would prevent us from converting the module to java_sdk_library. However, the only way to provide the additional information to allow the implementation to be correctly exposed is to convert the modules to java_sdk_library; a cycle. In order to break that cycle the java_sdk_library creates a special <module>.impl target which is used directly by tests and any other code that needs it. Once all the modules have been converted to a java_sdk_library then we can resolve the limitations in the build and remove the direct references to <module>.impl. Test: m Tethering InProcessTethering checkapi Bug: 155164730 Change-Id: If5c115f482751f9f4b5f047e9e401a18e36799ef
-
- May 13, 2020
-
-
Paul Duffin authored
Merge the otherwise unused tethering-aidl-interfaces into framework-tethering. This is in preparation for converting to use java_sdk_library. Bug: 155164730 Test: m droid Merged-In: I4583539d11ba69320aa5a0dfcfee072c81affac2 Change-Id: I4583539d11ba69320aa5a0dfcfee072c81affac2 (cherry picked from commit 267dd95c3e93f75c42c3f4e5cf576829b528f6c2)
-
Paul Duffin authored
Merge the otherwise unused tethering-aidl-interfaces into framework-tethering. This is in preparation for converting to use java_sdk_library. Bug: 155164730 Test: m droid Change-Id: I4583539d11ba69320aa5a0dfcfee072c81affac2
-
Jooyung Han authored
Modules contributing mainline modules (APK/APEX) should set min_sdk_version as well as apex_available. For now setting min_sdk_version doesn't change build outputs. But build-time checks will be added soon. Bug: 145796956 Bug: 150999716 Test: m Merged-In: Ifaecb49a47a1f43edea3ea06e1cf704a177d1044 Change-Id: Ifaecb49a47a1f43edea3ea06e1cf704a177d1044 (cherry picked from commit 33aa294e96f13906f596e427b96652fe80cf199b)
-
- May 07, 2020
-
-
Jooyung Han authored
Modules contributing mainline modules (APK/APEX) should set min_sdk_version as well as apex_available. For now setting min_sdk_version doesn't change build outputs. But build-time checks will be added soon. Bug: 145796956 Bug: 150999716 Test: m Change-Id: Ifaecb49a47a1f43edea3ea06e1cf704a177d1044
-
- May 05, 2020
-
-
Anton Hansson authored
This adds checking of module api compatibility to the individual module api rules. Until now, this checking has been done via the monolithic metalava runs which we are aiming to get rid of. Now is a good time to do this because we can compare them to the just finalized version 30 API, which we have no diffs with. Baseline the existing wifi failures that metalava fails to find in the previous API. Bug: 144149403 Test: m checkapi Change-Id: Id222895daa3a769c265965b052a17d5a1ca18462
-
- Apr 30, 2020
-
-
Anton Hansson authored
This makes the filenames of the disted artifacts (api txts and stubs) match the module name of the modules they're from. This matches the naming scheme used by java_sdk_library, which should make the future transition to this build rule easier. Bug: 149293194 Test: lunch sdk_phone_armv7 && m sdk dist && find out/dist/apistubs Change-Id: I076f30931bf2524d57703873cd7de25b3f23b457 Merged-In: I076f30931bf2524d57703873cd7de25b3f23b457 (cherry picked from commit d7f1fabc)
-
Anton Hansson authored
This makes the filenames of the disted artifacts (api txts and stubs) match the module name of the modules they're from. This matches the naming scheme used by java_sdk_library, which should make the future transition to this build rule easier. Bug: 149293194 Test: lunch sdk_phone_armv7 && m sdk dist && find out/dist/apistubs Change-Id: I076f30931bf2524d57703873cd7de25b3f23b457
-
Anton Hansson authored
It was using the systemapi stub defaults, but should be using the module_lib default. Bug: 144149403 Test: m Change-Id: Iaab154d9d71900284d92d518a086fc1227c00d5c Merged-In: Iaab154d9d71900284d92d518a086fc1227c00d5c (cherry picked from commit dc8e0fc1)
-
Anton Hansson authored
It was using the systemapi stub defaults, but should be using the module_lib default. Bug: 144149403 Test: m Change-Id: Iaab154d9d71900284d92d518a086fc1227c00d5c
-
- Apr 20, 2020
-
-
Jiyong Park authored
With b/152655547, all aidl_interface modules are considered as stable unless it is explicitly with "unstable: true". This change marks the aidl_interface that are not used across updatable module bounraries as unstable, so that the build system does not run the API dumping/checking on them. Exempt-From-Owner-Approval: cherry-pick from internal Bug: 152655547 Test: m Merged-In: I1257c66de6dd42b2d32d47ed74cb2878f79d14fb (cherry picked from commit 6c9c10c9) Change-Id: I1257c66de6dd42b2d32d47ed74cb2878f79d14fb
-
- Apr 13, 2020
-
-
Jiyong Park authored
With b/152655547, all aidl_interface modules are considered as stable unless it is explicitly with "unstable: true". This change marks the aidl_interface that are not used across updatable module bounraries as unstable, so that the build system does not run the API dumping/checking on them. Bug: 152655547 Test: m Change-Id: I1257c66de6dd42b2d32d47ed74cb2878f79d14fb
-
- Mar 31, 2020
-
-
Anton Hansson authored
This filegroups strips the "src" prefix away from the src path for the filter_packages check in droiddoc. Bug: 149293194 Test: m update-api (no change) Change-Id: I5b9ffa211be9c1a7dd8f63d5e7ba2a825d0d3190 Merged-In: I5b9ffa211be9c1a7dd8f63d5e7ba2a825d0d3190
-
- Mar 27, 2020
-
-
Anton Hansson authored
This filegroups strips the "src" prefix away from the src path for the filter_packages check in droiddoc. Bug: 149293194 Test: m update-api (no change) Change-Id: I5b9ffa211be9c1a7dd8f63d5e7ba2a825d0d3190
-
- Mar 26, 2020
-
-
Anton Hansson authored
Makes it convenient to change all stubs from a central place. Bug: 149293194 Test: m framework-tethering-stubs{public,system,module_libs_}api Exempt-From-Owner-Approval: Approved internally Change-Id: I330133824e78b3a8927e3d3ffbbd729bcdcb8822 Merged-In: I330133824e78b3a8927e3d3ffbbd729bcdcb8822 (cherry picked from commit 7939cb0a)
-
- Mar 25, 2020
-
-
Vladimir Marko authored
(cherry picked from commit 577707e0) Test: m out/soong/.intermediates/frameworks/base/packages/Tethering/common/TetheringLib/framework-tethering/android_common/package-check.stamp Bug: 151314205 Merged-In: I248c36b2cf2f5776978c4fd2322d3b73ade309ff Change-Id: Iddeeb6648f1ed2a31eebf04eb465ea675fb610ae
-
Vladimir Marko authored
Test: m out/soong/.intermediates/frameworks/base/packages/Tethering/common/TetheringLib/framework-tethering/android_common/package-check.stamp Bug: 151314205 Change-Id: I248c36b2cf2f5776978c4fd2322d3b73ade309ff
-
- Mar 24, 2020
-
-
Anton Hansson authored
Makes it convenient to change all stubs from a central place. Bug: 149293194 Test: m framework-tethering-stubs{public,system,module_libs_}api Change-Id: I330133824e78b3a8927e3d3ffbbd729bcdcb8822
-
- Mar 16, 2020
-
-
Anton Hansson authored
Add separate publicapi, systemapi and module_libs stubs for tethering. Bug: 147768409 Test: m Test: m framework-tethering-stubs-{public,system,module_libs_}api Change-Id: I0ed44691b4e7080818442a9d0eb37d874f707195 Merged-In: I0ed44691b4e7080818442a9d0eb37d874f707195
-
- Mar 10, 2020
-
-
Anton Hansson authored
Add separate publicapi, systemapi and module_libs stubs for tethering. Bug: 147768409 Test: m Test: m framework-tethering-stubs-{public,system,module_libs_}api Change-Id: I0ed44691b4e7080818442a9d0eb37d874f707195
-