Skip to content

Complete Android.Media.Quality XML documentation - #1315

Merged
jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-complete-media-quality-153
Nov 10, 2026
Merged

jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-complete-media-quality-153

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

Fixes #153

Scope

Complete all 126 remaining placeholder channels in docs/xml/Android.Media.Quality and docs/xml/ns-Android.Media.Quality.xml: constructors, parameters, values, returns, parcel writers, generated enum types, generated InterfaceConsts types, and the namespace. The change touches 39 files; the final scan parses all 43 API and namespace XML files, including nested channels, and finds zero unfinished placeholders.

These are original explanations of verified implementation and binding contracts, not invented reference text. The official-reference importer was run online and again offline with its retained cache. The remaining reference channels were absent, type/nullability-only, or correctly withheld as defective. The preview also proposed refreshing already-filled PictureQuality remarks; those unrelated changes were not applied. The importer and its safety rules are unchanged.

Source evidence

All Android links below use immutable frameworks/base commit 94b4c163b7dfe5ce3607f7bb8456f9573f7de57d. The twelve retained public Java source files were independently fetched at that commit and compared byte-for-byte with the reviewed sources. New remarks also link to pinned implementations.

Added documentation Verified source and contract
Active-picture constructor, identifiers, parcel writer ActiveProcessingPicture.java: constructor stores both identifiers; getters return them; parcel writer stores identifiers and the global flag.
Backlight constructor arguments, values, enums, parcel writers AmbientBacklightEvent.java, AmbientBacklightMetadata.java, AmbientBacklightSettings.java: stored fields, nullable event metadata, zone ordering, letterbox option, threshold, source/event/compression constants, and matching parcel readers/writers.
Equalizer builder, band list, supported frequencies EqualizerSettings.java starts with an empty list and copies bands through List.copyOf; EqualizerCapabilities.java stores and returns band center frequencies.
Profile builders, names, types, errors, parcel writers PictureProfile.java, SoundProfile.java: copy constructors reset profile IDs; setters copy bundles and return the same builder; build creates a new profile; type/error constants and parcel fields are explicit.
Manager callbacks, listeners, enabled values, query-option builder, namespace MediaQualityManager.java: registrations retain callbacks/executors, records dispatch through the executor, unregistration uses instance identity, callback default methods are empty, and query parameter inclusion starts false and is stored by build.
Collection returns, not the defective single-nullable-profile return text MediaQualityService.java picture query, sound query, database collection builders: return lists, including empty lists when no profiles are available.
Capability values and scalar type codes, not combinations ParameterCapability.java, HAL-to-framework conversion, range conversion: getters expose stored state, capabilities returns a bundle copy, and a single default-value tag determines the type code.
Display panel enum MediaQualityContract.java: OLED and unknown constants, with managed IntDefinition metadata identifying the matching fields.
.NET-only InterfaceConsts types Pinned binding generator: places inherited interface fields in a static class. These generated XML types contain the IParcelable constants.

Verification

  • Full-scope XML parsing and nested-channel scan: 43 files, 126 filled placeholders, zero remaining placeholders.
  • Exact comparison with checkout-filtered base 7a88a7893cb2e3d15d4b65b2f359e3bdbec1c26e: every byte outside the 126 original placeholder text spans is unchanged. Existing prose, attributes, signatures, member/channel structure, reference links, license attribution, BOM and CRLF formatting are preserved. No generated indexes changed.
  • Every newly added API cref resolves against the actual binding DocIds, including integer-typed UsesDisplayTechnology and OnError signatures.
  • Full importer --self-test passes, including a separate --no-cache --disable-build-servers --artifacts-path build with private process-local TEMP/TMP and a unique session-local output directory.
  • git diff --check passes.
  • Requested Gemini 4 Argon rubber-duck review of all 39 changed files: no findings.

A case-insensitive substring search still finds the existing valid parameter sentence A list of EqualizerBand objects to be added. This value cannot be null. It is not a placeholder and was deliberately preserved.

Auto-merge is not enabled. This PR is for user-supervised review.

Fill all 126 remaining placeholders using verified Android 17 implementation and binding-generator contracts. Preserve existing prose and API metadata.

Co-authored-by: Copilot App <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 10, 2026 13:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the Android.Media.Quality documentation update.

No open issues 🎉

What changed in this PR

Completes the remaining XML documentation for Android.Media.Quality, addressing issue #153 without changing API signatures or runtime behavior.

Changes:

  • Replaces 126 placeholder documentation entries covering profiles, capabilities, equalizers, callbacks, backlight data, and the namespace.
  • Documents builder behavior, collection returns, property values, and parcel serialization with pinned implementation references.
  • Adds explanations for generated enums and InterfaceConsts types while preserving existing documentation.
File Description
docs/​xml/​ns-Android.Media.Quality.xml Introduces the namespace and its main APIs.
docs/​xml/​Android.Media.Quality/​SoundProfileType.xml Explains sound profile ownership types.
docs/​xml/​Android.Media.Quality/​SoundProfileErrorType.xml Describes sound profile error codes.
docs/​xml/​Android.Media.Quality/​SoundProfile+InterfaceConsts.xml Explains inherited parcelable constants.
docs/​xml/​Android.Media.Quality/​SoundProfile+Builder.xml Documents initialization, parameter copying, and build results.
docs/​xml/​Android.Media.Quality/​SoundProfile.xml Documents profile names and parcel serialization.
docs/​xml/​Android.Media.Quality/​PictureProfileType.xml Explains picture profile ownership types.
docs/​xml/​Android.Media.Quality/​PictureProfileErrorType.xml Describes picture profile error codes.
docs/​xml/​Android.Media.Quality/​PictureProfile+InterfaceConsts.xml Explains inherited parcelable constants.
docs/​xml/​Android.Media.Quality/​PictureProfile+Builder.xml Documents initialization, parameter copying, and builder returns.
docs/​xml/​Android.Media.Quality/​PictureProfile.xml Documents profile names and parcel serialization.
docs/​xml/​Android.Media.Quality/​ParameterCapabilityType.xml Explains parameter value type codes.
docs/​xml/​Android.Media.Quality/​ParameterCapability+InterfaceConsts.xml Explains inherited parcelable constants.
docs/​xml/​Android.Media.Quality/​ParameterCapability.xml Documents capability values and parcel serialization.
docs/​xml/​Android.Media.Quality/​PanelTechnology.xml Explains panel technology values and query usage.
docs/​xml/​Android.Media.Quality/​MediaQualityManager+SoundProfileCallback.xml Clarifies callback construction and default behavior.
docs/​xml/​Android.Media.Quality/​MediaQualityManager+ProfileQueryParams+InterfaceConsts.xml Explains inherited parcelable constants.
docs/​xml/​Android.Media.Quality/​MediaQualityManager+ProfileQueryParams+Builder.xml Documents query defaults and parameter-inclusion settings.
docs/​xml/​Android.Media.Quality/​MediaQualityManager+ProfileQueryParams.xml Documents query-option returns and serialization.
docs/​xml/​Android.Media.Quality/​MediaQualityManager+PictureProfileCallback.xml Clarifies callback construction and default behavior.
docs/​xml/​Android.Media.Quality/​MediaQualityManager+IAmbientBacklightCallback.xml Describes the delivered backlight event.
docs/​xml/​Android.Media.Quality/​MediaQualityManager.xml Documents query results, enabled states, and callback parameters.
docs/​xml/​Android.Media.Quality/​EqualizerSettings+InterfaceConsts.xml Explains inherited parcelable constants.
docs/​xml/​Android.Media.Quality/​EqualizerSettings+Builder.xml Documents the initially empty band list.
docs/​xml/​Android.Media.Quality/​EqualizerSettings.xml Explains stored bands and builder-list copying.
docs/​xml/​Android.Media.Quality/​EqualizerCapabilities+InterfaceConsts.xml Explains inherited parcelable constants.
docs/​xml/​Android.Media.Quality/​EqualizerCapabilities.xml Describes supported frequency values and units.
docs/​xml/​Android.Media.Quality/​EqualizerBand+InterfaceConsts.xml Explains inherited parcelable constants.
docs/​xml/​Android.Media.Quality/​AmbientBacklightSettingsSource.xml Describes backlight detection sources.
docs/​xml/​Android.Media.Quality/​AmbientBacklightSettings+InterfaceConsts.xml Explains inherited parcelable constants.
docs/​xml/​Android.Media.Quality/​AmbientBacklightSettings.xml Documents detection settings and serialization.
docs/​xml/​Android.Media.Quality/​AmbientBacklightMetadataAlgorithm.xml Describes color-data compression choices.
docs/​xml/​Android.Media.Quality/​AmbientBacklightMetadata+InterfaceConsts.xml Explains inherited parcelable constants.
docs/​xml/​Android.Media.Quality/​AmbientBacklightMetadata.xml Documents zone ordering, package names, and serialization.
docs/​xml/​Android.Media.Quality/​AmbientBacklightEventType.xml Describes backlight event categories.
docs/​xml/​Android.Media.Quality/​AmbientBacklightEvent+InterfaceConsts.xml Explains inherited parcelable constants.
docs/​xml/​Android.Media.Quality/​AmbientBacklightEvent.xml Documents nullable metadata and parcel writing.
docs/​xml/​Android.Media.Quality/​ActiveProcessingPicture+InterfaceConsts.xml Explains inherited parcelable constants.
docs/​xml/​Android.Media.Quality/​ActiveProcessingPicture.xml Documents construction, identifiers, and serialization.

Review effort: Balanced

@jonathanpeppers

Copy link
Copy Markdown
Member Author

@dalexsoto review

1 similar comment
@jonathanpeppers

Copy link
Copy Markdown
Member Author

@dalexsoto review

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the full docs diff at this head. I found no blocking issues. Static read only; nothing was built or run.

@jonathanpeppers
jonathanpeppers enabled auto-merge (squash) November 10, 2026 19:25
@jonathanpeppers
jonathanpeppers merged commit 46de8e1 into main Nov 10, 2026
4 checks passed
@jonathanpeppers
jonathanpeppers deleted the jonathanpeppers-complete-media-quality-153 branch November 10, 2026 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add XML documentation for Android.Media.Quality

3 participants