Skip to content
Snippets Groups Projects
  1. Jul 15, 2020
  2. Jun 22, 2020
    • Dedy Lansky's avatar
      Tethering: Add WiGig support · 4dd87aaf
      Dedy Lansky authored
      This change is a combination of following changes:
      
      1) Tethering: add TETHERING_WIGIG type
         Currently both WIFI and WIGIG use the same tethering type,
         TETHERING_WIFI. This causes conflicts between the frameworks,
         when both WIFI and WIGIG SoftAPs are started, one or both will
         not work.
         Fix this by using a seperate tethering type for WIGIG.
      
      2) Tethering: remove TETHERING_WIGIG state machine on interface down
         The wigig state machine relies on a TETHERING_STATE_CHANGED broadcast
         that is sent when the tethering state machine is first created, during
         interface up. Currently the tethering state machine is not removed
         on interface down except for TETHERING_BLUETOOTH, and as a result
         wigig tethering only works the first time SoftAP is started.
         In order to fix this, remove the tethering state machine on interface
         down for TETHERING_WIGIG as well.
      
      Bug: 143356416
      Test: TetheringCoverageTests
      
      Change-Id: Ic4d3aca0ed69234093af7f0206dab3335938c52a
      Merged-In: Ic4d3aca0ed69234093af7f0206dab3335938c52a
      4dd87aaf
    • Dedy Lansky's avatar
      Tethering: Add WiGig support · 6896f619
      Dedy Lansky authored
      This change is a combination of following changes:
      
      1) Tethering: add TETHERING_WIGIG type
         Currently both WIFI and WIGIG use the same tethering type,
         TETHERING_WIFI. This causes conflicts between the frameworks,
         when both WIFI and WIGIG SoftAPs are started, one or both will
         not work.
         Fix this by using a seperate tethering type for WIGIG.
      
      2) Tethering: remove TETHERING_WIGIG state machine on interface down
         The wigig state machine relies on a TETHERING_STATE_CHANGED broadcast
         that is sent when the tethering state machine is first created, during
         interface up. Currently the tethering state machine is not removed
         on interface down except for TETHERING_BLUETOOTH, and as a result
         wigig tethering only works the first time SoftAP is started.
         In order to fix this, remove the tethering state machine on interface
         down for TETHERING_WIGIG as well.
      
      Bug: 143356416
      Test: TetheringCoverageTests
      
      Change-Id: Ic4d3aca0ed69234093af7f0206dab3335938c52a
      6896f619
  3. Jun 20, 2020
    • markchien's avatar
      Pass entitlement configuration to Settings for entitlement check · 902043f5
      markchien authored
      Tethering resource configuration is move from framwork to tethering
      module. Since tethering resource would not be accessible from outside
      of tethering module, EntitlementManager would tell Settings the
      entitlement configuration via intent extra when run entitlement check.
      
      Bug: 146918263
      Test: atest TetheringTests
      Change-Id: I6f23553bb1da5f0b767f920b32a86fafb9e00b9e
      Merged-In: I6f23553bb1da5f0b767f920b32a86fafb9e00b9e
      902043f5
  4. Jun 15, 2020
    • Mark Chien's avatar
      Revert "Revert "Pass entitlement configuration to Settings for entitlement check"" · c55e229d
      Mark Chien authored
      Add commit message here for reference:
      Tethering resource configuration is move from framework to tethering
      module. The resource would not be accessible from outside of tethering
      module.
      List the replacements of framework resources usage and intent extra:
      1. R.string.config_mobile_hotspot_provision_response
          --> android.net.extra.TETHER_PROVISIONING_RESPONSE.
      2. R.string.config_mobile_hotspot_provision_app_no_ui
          --> android.net.extra.TETHER_UI_PROVISIONING_APP_NAME
      3. R.array.config_mobile_hotspot_provision_app
          --> android.net.extra.TETHER_SILENT_PROVISIONING_ACTION
      Besides, the current active subId would put in
      android.net.extra.TETHER_SUBID
      
      Note: They are not APIs because of API freeze. Now both tethering module
      and Settings define these strings independently.
      
      Bug: 146918263
      Test: atest TetherServiceTest
            atest TetherProvisioningActivityTest
      
      This reverts commit 99889031.
      
      Reason for revert: Resume the CL and put this CL with settings part in the same topic to avoid break.
      
      Change-Id: I114b4c258743661df51e5a969e150047a292e035
      c55e229d
  5. Jun 12, 2020
  6. Jun 11, 2020
    • markchien's avatar
      Pass entitlement configuration to Settings for entitlement check · 217d7b01
      markchien authored
      Tethering resource configuration is move from framwork to tethering
      module. Since tethering resource would not be accessible from outside
      of tethering module, EntitlementManager would tell Settings the
      entitlement configuration via intent extra when run entitlement check.
      
      Bug: 146918263
      Test: atest TetheringTests
      Change-Id: I6f23553bb1da5f0b767f920b32a86fafb9e00b9e
      217d7b01
  7. Jun 02, 2020
    • Paul Duffin's avatar
      Switch to standard naming scheme · dfc7fb7f
      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)
      dfc7fb7f
    • Paul Duffin's avatar
      Clean up the visibility rules for framework modules · 2a8d380f
      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)
      2a8d380f
    • Paul Duffin's avatar
      Switch to standard naming scheme · 6812c1b1
      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)
      6812c1b1
  8. May 31, 2020
    • Paul Duffin's avatar
      Clean up the visibility rules for framework modules · a17cf677
      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
      a17cf677
  9. May 28, 2020
    • Paul Duffin's avatar
      Switch framework-tethering to use java_sdk_library · 2dae2729
      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
      2dae2729
    • Paul Duffin's avatar
      Switch framework-tethering to use java_sdk_library · cbac8e0b
      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
      cbac8e0b
  10. May 13, 2020
    • Paul Duffin's avatar
      Cleanup packages/Tethering/common/TetheringLib · b016744a
      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)
      b016744a
    • Paul Duffin's avatar
      Cleanup packages/Tethering/common/TetheringLib · 82e71652
      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
      82e71652
    • Jooyung Han's avatar
      Set min_sdk_version for updatable mainline modules · 5f9f31c1
      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)
      5f9f31c1
  11. May 07, 2020
    • Jooyung Han's avatar
      Set min_sdk_version for updatable mainline modules · 8182d8bd
      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
      8182d8bd
  12. May 05, 2020
    • Anton Hansson's avatar
      Enable api lint and check_last_api for modules · 5b0be161
      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
      5b0be161
  13. Apr 30, 2020
    • Anton Hansson's avatar
      Rename module dist files · bb5231de
      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)
      bb5231de
    • Anton Hansson's avatar
      Rename module dist files · 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
      d7f1fabc
    • Anton Hansson's avatar
      Fix tethering module lib stub default · a8f2e3ea
      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)
      a8f2e3ea
    • Anton Hansson's avatar
      Fix tethering module lib stub default · 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
      dc8e0fc1
  14. Apr 21, 2020
  15. Apr 20, 2020
    • Jiyong Park's avatar
      Mark some aidl_interface modules as unstable · de93db85
      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
      de93db85
  16. Apr 13, 2020
    • Jiyong Park's avatar
      Mark some aidl_interface modules as unstable · 6c9c10c9
      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
      6c9c10c9
  17. Apr 10, 2020
  18. Mar 31, 2020
    • Anton Hansson's avatar
      Feed framework-tethering-stubs the src filegroup · cdc86584
      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
      cdc86584
  19. Mar 27, 2020
    • Anton Hansson's avatar
      Feed framework-tethering-stubs the src filegroup · 90ae90b6
      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
      90ae90b6
  20. Mar 26, 2020
    • Anton Hansson's avatar
      Make framework-tethering stubs use the new defaults · 5fa1704f
      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)
      5fa1704f
  21. Mar 25, 2020
  22. Mar 24, 2020
  23. Mar 23, 2020
  24. Mar 20, 2020
  25. Mar 19, 2020
    • markchien's avatar
      Hide startTethering with type function to module-lib only · b1bfea53
      markchien authored
      Bug: 151918384
      Test: m
      Change-Id: Icef8b363aae97dd020d618bcb397f661aa6c4750
      b1bfea53
    • markchien's avatar
      TetheringManager API clean up · 8146b56d
      markchien authored
      Per API review:
      - @IntDef defined on the type integer parameter
      - have getters on each parameter that is set in the
        TetheringRequest.Builder
      - new added API should not be deprecated
      Below APIs is moved from system-current to module-lib-current that only
      plafrom code(e.g. ConnectivityManager and Settings) can use them.
      TetheringRequest.
      onTetherableInterfaceRegexpsChanged, TetheringInterfaceRegexps:
      Only platform code can use them because interfaces by regular
      expressions are a mechanism which is planning to be deprecated.
      
      Also rename some constants for easier to understand.
      
      Bug: 149858697
      Bug: 151243337
      Test: m doc-comment-check-docs
            atest TetheringTests
      Change-Id: I45cb21d5bc919f6d32c42650326597d5173ea028
      Merged-In: Idd041f0fbeca411ea23e49786a50dd7feb77ef45
      8146b56d
    • Anton Hansson's avatar
      Add individual API tracking files for modules · 65d1e30c
      Anton Hansson authored
      This adds metalava api tracking generation to the module
      stub rules, to make sure we know exactly what API a
      particular module stub exports.
      
      Bug: 147768409
      Test: m update-api check-api
      Exempt-From-Owner-Approval: approved internally
      Change-Id: Iaf2ef5b5751eb208d119ddbc74481239366fe581
      Merged-In: Iaf2ef5b5751eb208d119ddbc74481239366fe581
      (cherry picked from commit e7c52c7e)
      65d1e30c
    • markchien's avatar
      TetheringManager API clean up · f1332573
      markchien authored
      Per API review:
      - @IntDef defined on the type integer parameter
      - have getters on each parameter that is set in the
        TetheringRequest.Builder
      - new added API should not be deprecated
      Below APIs is moved from system-current to module-lib-current that only
      plafrom code(e.g. ConnectivityManager and Settings) can use them.
      TetheringRequest.
      onTetherableInterfaceRegexpsChanged, TetheringInterfaceRegexps:
      Only platform code can use them because interfaces by regular
      expressions are a mechanism which is planning to be deprecated.
      
      Also rename some constants for easier to understand.
      
      Bug: 149858697
      Bug: 151243337
      Test: m doc-comment-check-docs
            atest TetheringTests
      Change-Id: Idd041f0fbeca411ea23e49786a50dd7feb77ef45
      f1332573
Loading