Skip to content
Snippets Groups Projects
  1. Oct 30, 2023
    • Harshit Mahajan's avatar
      Revert "[CrashRecovery] Add module lib to Android SDK" · 3816f262
      Harshit Mahajan authored
      Revert submission 24444827-crashrecovery
      
      Reason for revert: Since the module is not behind any flags, it is getting included in 24Q1 Beta release.
      
      Reverted changes: /q/submissionid:24444827-crashrecovery
      Bug: b/305826937
      Change-Id: I5c65d85d50b214926f5473908694070b4e896201
      3816f262
    • Anton Hansson's avatar
      Move aconfig-srcjars srcs into shared defaults · dadbc58d
      Anton Hansson authored
      This ensures they're consistently added to all droidstubs modules
      for the non-updatable part.
      
      Test: presubmit
      Change-Id: Ia17808572b3fa8d75cdc71e7981d562ad0036afc
      dadbc58d
  2. Oct 26, 2023
  3. Oct 23, 2023
  4. Oct 20, 2023
    • Anton Hansson's avatar
      Explain the -hide params passed to doclava · 82eef15a
      Anton Hansson authored
      The reason certain checks are disabled in doclava is that they have been
      implemented in metalava instead. Clarify that.
      
      Test: presubmit
      Change-Id: I32c32783dea59a63d95d14b4ad636159536c2944
      82eef15a
  5. Oct 17, 2023
    • Jihoon Kang's avatar
      Fix discrepancy between from text vs source android_test_frameworks_core_stubs_current · beeb35a8
      Jihoon Kang authored
      Just like all other android_*_stubs_current modules,
      android_test_frameworks_core_stubs_current is added to classpath of the
      javac compilation of its reverse dependencies, and its static libs is
      dynamically switched between the ".from-source" suffixed from-source
      stub compiling java_library module and the ".from-text" suffixed
      from-text stub compiling java_api_library module.
      
      Other than the origin of the stubs, the two modules are expected to
      contain (mostly) identical APIs. However, the two static libs of
      android_test_frameworks_core_stubs_current currently do not follow this
      principle as the from-source java_library module does not add the
      "private-stub-annotation-jar" as static lib, while the from-text
      java_api_library does. This discrepancy lead to compilation error of the
      reverse dependencies when defaulting build to from-text stub generation.
      
      This change fixes the discrepancy between the two modules by removing
      "private-stub-annotation-jar" from the static lib of the from-source
      module and making the two modules behave more similarly.
      
      Test: patch on internal main and run `m framework-location.stubs.test.from-source --build-from-text-stub`
      Bug: 301522358
      Change-Id: I821b7bb25a8f7ec7f9977a01ebdfbd5f1b25cf5e
      beeb35a8
    • Anton Hansson's avatar
      Cleanup baseline file · 819e99bd
      Anton Hansson authored
      Add bug links for the remaining issues, and write a comment about the
      problematic @ChangeId docs.
      
      Bug: 303184203
      Test: presubmit
      Change-Id: I2f301a6e1d8250745d179ee9a0326e6174d1da2d
      819e99bd
  6. Oct 16, 2023
    • Paul Duffin's avatar
      Use lint database from api_version_system · dd97b784
      Paul Duffin authored
      Droidstubs now support using the api-versions.xml from another
      droidstubs module, so reuse the one from `api_versions_system`
      in `framework-doc-system-stubs`.
      
      Test: m framework-docs-system-stubs
            # Diff stubs before and after
      Change-Id: I0aa3a74664e2a9343e90d91b7520ce8bbcadfac5
      dd97b784
    • Harshit Mahajan's avatar
      [CrashRecovery] Add module lib to Android SDK · 9c3742af
      Harshit Mahajan authored
      Adding the module libraries to combined_apis for them to be added to
      Android SDK.
      Also adding bootclasspath-fragment to platform-bootclasspath.
      
      Bug: b/289203818
      Test: m
      
      Change-Id: Ica9b0bddc2f9cb6621a01dcd3859c39357144b5f
      9c3742af
    • Paul Duffin's avatar
      Remove unused `extensions_info_file` property from framework-doc-stubs · 3cfb89b1
      Paul Duffin authored
      The `droidstubs.extensions_info_file` property is only used when
      `api_levels_annotations_enabled: true`. The `framwork-doc-stubs` uses
      `api_levels_module` instead and so does not need `extensions_info_file`
      any more.
      
      Bug: 305688818
      Test: m framework-doc-stubs
            # Before and after and check output to confirm that it does not change
      Change-Id: I4ad3f5b24e998eb9d5d47fa2240d2281fa9d6fc6
      3cfb89b1
  7. Oct 13, 2023
    • Anton Hansson's avatar
      Fix broken framework documentation · 2ccbeb75
      Anton Hansson authored
      Various issues here, but the most recurring one is referencing SystemApi
      from public javadoc. Remove or rewrite such references.
      
      Also common is trying to @link IntDefs. Usually this is not necessary,
      as the presence of IntDef in the @param/@return auto-generates relevant
      documentation.
      
      Bug: 303184203
      Test: m docs
      Change-Id: Ie59e61881c45c73fbbe08250493bd35eca268ef6
      2ccbeb75
    • Anton Hansson's avatar
      Fix broken documentation in android.view · 45717db8
      Anton Hansson authored
      The most common problem were references to SystemApi or @hide symbols
      from public documentation. Replace such references with natural english
      or {@code}. A few references were just incorrect before and have been
      fixed.
      
      Bug: 303184203
      Test: m docs
      Change-Id: I243e27d7ae6e0dafa2af4f3cc44aa7e8894025f1
      45717db8
    • Jihoon Kang's avatar
      Disable validations for full api surface stub java_api_library · d67ac471
      Jihoon Kang authored
      java_api_library modules run validation to check the sanity of the API
      text files by default when generating the stubs from txt files. However,
      this leads to circular dependency issue when the validations are added
      to the full api surface stub java_api_library modules as droidstubs may
      set sdk_version property. Therefore, disable the validation for full api
      surface java_api_library (e.g. android_*_stubs_current) modules.
      
      Test: m nothing --build-from-text-stub
      Bug: 288624417
      Change-Id: Ib1b7b804736ef4e4cd2ea979aabea211af1927af
      d67ac471
  8. Oct 12, 2023
    • Anton Hansson's avatar
      Fix broken docs in companion · 1dc3ac9b
      Anton Hansson authored
      - Remove @links to SystemApi
      - Escape @-symbols
      
      Bug: 303184203
      Test: m docs
      Change-Id: Iafaaa2150d36cf36dadfefaa29f56e0dd0d756d9
      1dc3ac9b
    • Anton Hansson's avatar
      Fix some broken docs in android.media · afca5e6a
      Anton Hansson authored
      - getInstance is SystemApi, so cannot be linked from public javadoc
      - MidiDeviceService is not a member
      - The documentation generation for @ChangeId constants is special
        and cannot resolve imports, so fully qualify all links there.
      
      Bug: 303184203
      Test: m docs
      Change-Id: I5838dd3057e25d5c50f4b912d46c9805bb0378cf
      afca5e6a
    • Anton Hansson's avatar
      Fix broken documentation in android.credentials · a95ad755
      Anton Hansson authored
      Bug: 303184203
      Test: m docs
      Change-Id: I745ea2f582640ea10a81b6d0369bede3f243686c
      a95ad755
  9. Oct 11, 2023
    • Anton Hansson's avatar
      Fix some broken docs in android.content · 1d5e43b4
      Anton Hansson authored
      Bug: 303184203
      Test: m docs
      Change-Id: I50cd982923c160452de2ee2ee7a982dab0f78a5c
      1d5e43b4
    • Jihoon Kang's avatar
      Add module lib and test union java_api_library module · 4683b14c
      Jihoon Kang authored
      Currently, hiddenapi_modular defines test api surface as a subset of
      module lib api surface, causing hiddenapi check failure in from-text
      stub build. In order to mitigate this and enable the hiddenapi check in
      from-text stub build, this change introduces a java_api_library module
      that generates the stub jar that contains both test and module lib
      api contributions. The module will not be available for consumption, but
      will only be used in hiddenapi check.
      
      Test: m android_test_module_lib_stubs_current.from-text --build-from-text-stub
      Bug: 191644675
      Change-Id: I2b6c9f75d9ebcfd75fa5b509dbef14aa0f88ac97
      4683b14c
    • Anton Hansson's avatar
      Cleanup obsolete doc build targets · 2e6a904a
      Anton Hansson authored
      - the *-check-docs target doesn't do anything the other targets don't
      - online-* are, I think, the old d.a.c targets but the ds-* targets are
        what's currently used
      - the hidden-* target isn't meaningfully different from others, either
      
      Test: presubmit
      Change-Id: Icab977d40917aa14c629629965c6126e20f4f3ee
      2e6a904a
    • Anton Hansson's avatar
      Remove framework-doc-only-libs · ba8f3c25
      Anton Hansson authored
      They don't seem to do anything. All the docs compile without them
      and I don't see any additional warnings/errors being printed.
      
      If they actually do something, the list is almost certainly incomplete
      anyway.
      
      Test: m docs
      Change-Id: I1bda7c4cc1d882d80cfe38ee734643c9eed030dc
      ba8f3c25
    • Anton Hansson's avatar
      Don't link the framework impl in docs build · 65370ed5
      Anton Hansson authored
      This gives the docs build access to hidden symbols, which hides issues
      in the documentation.
      
      Baseline the newly discovered issues.
      
      Bug: 217734059
      Test: m docs
      Merged-In: I357f5a341a170a37152d836861a330039a83886c
      Change-Id: I357f5a341a170a37152d836861a330039a83886c
      65370ed5
  10. Oct 09, 2023
    • Anton Hansson's avatar
      Add a few additional baseline entries · 560bd160
      Anton Hansson authored
      Previously the tool applied baseline entries to the whole file that
      had an entry. The tool is being changed to take the message into account
      when applying baseline entries. Add a few additional entries to make
      the build pass with that change in effect.
      
      Bug: 217734059
      Test: m docs
      Change-Id: I59fcc620b0e35f9cd64a9f83f6e66824751d2837
      560bd160
  11. Oct 06, 2023
    • Anton Hansson's avatar
      Fix broken @link references in CompatModePackages · 9ae30915
      Anton Hansson authored
      The javadoc for @ChangeId constants are generated differently to normal
      docs into a compatchanges.html page. This page is kind of compiled
      stand-alone, so can only resolve references to the public SDK.
      CompatModePackages itself is not in the SDK, so the @link references
      in this class fail to resolve.
      
      Fix this by using manually defined links (<a>) instead. Note that
      doclava generates headers with the id of the compat constant that we can
      use for the href of our <a> tags.
      
      Bug: 303570856
      Bug: 303184203
      Test: m offline-sdk-docs ; inspect compatchanges.html
      Change-Id: I5785098554f65b377c8f862b6e3a50225703f742
      9ae30915
  12. Oct 05, 2023
    • Alyssa Ketpreechasawat's avatar
      Revert "Added new framework-pdf jar inside MediaProvider module" · 85be1d38
      Alyssa Ketpreechasawat authored
      Revert submission 2759049-framework-pdf
      
      Reason for revert: it blocks us from enabling prebuilts in next target in main (go/stale-mainline-prebuilts for more info)
      
      Reverted changes: /q/submissionid:2759049-framework-pdf
      
      Change-Id: I53b3216ec43471789a6c23c6b620c8a153953cc9
      85be1d38
    • Anton Hansson's avatar
      Fix broken documentation in telephony and telecomm · 84d6d75d
      Anton Hansson authored
      Due to a bug in the build system, broken @see/@link references have not
      failed to build for a while, so many errors have accumulated.
      
      This is an attempt to patch up the telephony and telecomm docs. The
      most common errors and fixes were:
      - @link-ing IntDef constants from javadoc. IntDefs are not present
        in the docs, so rewrite those to natural english, or point to the
        constant prefixes
      - Javadoc for public symbols referencing SystemApi symbols. Change those
        to @code instead of @link
      
      There were various other fixes too, and I'm not sure they're all
      perfect, but certainly an improvement over the brokenness we have
      currently.
      
      Bug: 303184203
      Test: m docs
      Change-Id: I5cefc72074ced29c0b046cf59deb7ee371e74bf0
      84d6d75d
    • Anton Hansson's avatar
      Don't link the framework impl in docs build · 7e491b25
      Anton Hansson authored
      This gives the docs build access to hidden symbols, which hides issues
      in the documentation.
      
      Baseline the newly discovered issues.
      
      Bug: 217734059
      Test: m docs
      Change-Id: I357f5a341a170a37152d836861a330039a83886c
      7e491b25
  13. Oct 04, 2023
    • Anton Hansson's avatar
      Add baseline for existing docs failures · f193009d
      Anton Hansson authored
      This is a list of allowed issues. The intention is to trim down this
      list now that adding new issues is disallowed by the build.
      
      Bug: 217734059
      Test: m docs
      Change-Id: I92b45730c175566fdb1e9632016fc96c1d9db412
      f193009d
    • Anton Hansson's avatar
      Specify lint-baseline for docs builds · 0a71550e
      Anton Hansson authored
      This file is passed to doclava to baselining existing errors in the
      documentation. The contents of this baseline will be added in follow up
      changes (and will be different in AOSP and internal).
      
      Bug: 217734059
      Test: m docs
      Change-Id: Ibb5571fd9e55fb4f04e79e015462812e01d1ca80
      0a71550e
  14. Oct 03, 2023
  15. Sep 28, 2023
    • Anton Hansson's avatar
      Clean up prebuilt stub deps & add comment · 8b49d0ec
      Anton Hansson authored
      The non-updatable stub depends on a prebuilt platform stub, so that it
      can reference APIs defined in modules. Clean up the list of previously
      needed prebuilts that are no longer necessary, and add a comment about
      when it's suitable to add new prebuilts to this list.
      
      Test: m
      Change-Id: Idd5f57c774db4fc48abe4bab87c1b393079cae4d
      8b49d0ec
  16. Sep 27, 2023
    • Chris Parsons's avatar
      Add go module and workspace files · dceb11e3
      Chris Parsons authored
      This fixes IDE (e.g. intellij) cross referencing for the
      frameworks/base/api soong plugin
      
      Fixes: 302149570
      Test: Manual
      Change-Id: Idcf09756a43e8a65bc863a24fd3c4d572751fa5c
      dceb11e3
    • Mårten Kongstad's avatar
      Expand @FlaggedApi(Flags.FLAG) in *all* API signature files · 85f6bee5
      Mårten Kongstad authored
      A previous CL added the auto-generated aconfig Flags.FLAG sources to
      metalava's input when generating core/api/current.txt, so metalava would
      expand the Flags.FLAG to their values.
      
      Do the same for the build targets for the other (system, module-lib,
      test) API signature files in core/api.
      
      Also update the API signature files accordingly.
      
      (cherry picked from commit 162ae2a1)
      
      Bug: 301859633
      Test: m checkapi
      Merged-In: Id06d77e897ecfddeaa42f75cba4d6d37bee9d1b1
      Change-Id: Id06d77e897ecfddeaa42f75cba4d6d37bee9d1b1
      85f6bee5
    • Mårten Kongstad's avatar
      Expand @FlaggedApi(Flags.FLAG) in *all* API signature files · 162ae2a1
      Mårten Kongstad authored
      A previous CL added the auto-generated aconfig Flags.FLAG sources to
      metalava's input when generating core/api/current.txt, so metalava would
      expand the Flags.FLAG to their values.
      
      Do the same for the build targets for the other (system, module-lib,
      test) API signature files in core/api.
      
      Also update the API signature files accordingly.
      
      Bug: 301859633
      Test: m checkapi
      Change-Id: Id06d77e897ecfddeaa42f75cba4d6d37bee9d1b1
      162ae2a1
    • Elis Elliott's avatar
      Remove current-api-xml · fb58df82
      Elis Elliott authored
      Fixes: 291213387
      
      Test: atest com.android.cts.devicepolicy.ManagedProfileTest
      Change-Id: Idcda372a9644f7860266506d94efa304bd6e38f6
      fb58df82
Loading