From 2eec37da70fd1ed32c63b481675112a15e49c859 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Fri, 27 Nov 2026 12:50:41 -0600 Subject: [PATCH] Fix Android view documentation errors (R066) Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../AccelerateDecelerateInterpolator.xml | 2 +- .../Animation+Description.xml | 5 ++-- .../Android.Views.Animations/Animation.xml | 4 +-- .../BaseInterpolator.xml | 2 +- ...nimationController+AnimationParameters.xml | 12 ++++----- .../LinearInterpolator.xml | 2 +- .../Transformation.xml | 9 +++---- .../xml/Android.Views.Autofill/AutofillId.xml | 10 +++---- .../AutofillManager+AutofillCallback.xml | 6 ++--- .../AutofillNoiseInjectedData.xml | 18 ++++++------- .../DataShareError.xml | 6 ++--- .../ContentCaptureConditionFlags.xml | 2 +- .../ContentCaptureContext.xml | 10 +++---- .../ContentCaptureNodeProperties.xml | 21 +++++++-------- .../ContentCaptureSession.xml | 26 +++++++++---------- .../ContentCaptureSessionVersion.xml | 12 ++++----- .../DataRemovalRequest.xml | 18 ++++++------- .../DataShareRequest.xml | 10 +++---- 18 files changed, 84 insertions(+), 91 deletions(-) diff --git a/docs/xml/Android.Views.Animations/AccelerateDecelerateInterpolator.xml b/docs/xml/Android.Views.Animations/AccelerateDecelerateInterpolator.xml index 56a4d349a..7ce893f89 100644 --- a/docs/xml/Android.Views.Animations/AccelerateDecelerateInterpolator.xml +++ b/docs/xml/Android.Views.Animations/AccelerateDecelerateInterpolator.xml @@ -164,7 +164,7 @@ in the animation where 0 represents the start and 1.0 represents the end Maps an elapsed animation fraction to an interpolated fraction. - The interpolation value, which can be greater than 1.0 for overshoot interpolators or less than 0 for undershoot interpolators. + The cosine-based interpolation value, between 0 and 1 for an input between 0 and 1. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. diff --git a/docs/xml/Android.Views.Animations/Animation+Description.xml b/docs/xml/Android.Views.Animations/Animation+Description.xml index 8316db961..ceb8c1216 100644 --- a/docs/xml/Android.Views.Animations/Animation+Description.xml +++ b/docs/xml/Android.Views.Animations/Animation+Description.xml @@ -198,11 +198,10 @@ Android.Views.Animations.Dimension - One of Animation.ABSOLUTE, Animation.RELATIVE_TO_SELF, or Animation.RELATIVE_TO_PARENT. + Gets or sets the type of size described by this instance. One of , , or . - One of Animation.ABSOLUTE, Animation.RELATIVE_TO_SELF, or - Animation.RELATIVE_TO_PARENT. + One of , , or . Java documentation for android.view.animation.Animation.Description.type. diff --git a/docs/xml/Android.Views.Animations/Animation.xml b/docs/xml/Android.Views.Animations/Animation.xml index 2df11b9b5..5581a169d 100644 --- a/docs/xml/Android.Views.Animations/Animation.xml +++ b/docs/xml/Android.Views.Animations/Animation.xml @@ -371,7 +371,7 @@ The background color. If 0, no background. Currently must be black, with any desired alpha level. Returns the background color behind the animation. -or- Set background behind animation. - The background color behind the animation, or 0 for no background. On Android 11 through 16, the base implementation always returns 0 and ignores changes. + The background color behind the animation, or 0 for no background. On Android 11 and later, the base implementation always returns 0 and ignores changes. Property getter documentation: Returns the background color behind the animation. @@ -515,7 +515,7 @@ true if the wallpaper should be detached from the animation Gets or sets whether to detach the wallpaper during a window animation. - Whether the wallpaper should be detached. On Android 10 through 16, the base implementation always returns and ignores changes. + Whether the wallpaper should be detached. On Android 10 and later, the base implementation always returns and ignores changes. Property getter documentation: Gets whether to detach the wallpaper during a window animation. diff --git a/docs/xml/Android.Views.Animations/BaseInterpolator.xml b/docs/xml/Android.Views.Animations/BaseInterpolator.xml index 421f1881e..1a0b3d120 100644 --- a/docs/xml/Android.Views.Animations/BaseInterpolator.xml +++ b/docs/xml/Android.Views.Animations/BaseInterpolator.xml @@ -97,7 +97,7 @@ A JNI reference to the Java object. - Specifies whether ownership of the JNI reference transfers to this instance. + Specifies how the runtime handles the JNI reference, including its release and peer registration. Creates a managed instance that represents an existing Java object. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. diff --git a/docs/xml/Android.Views.Animations/GridLayoutAnimationController+AnimationParameters.xml b/docs/xml/Android.Views.Animations/GridLayoutAnimationController+AnimationParameters.xml index eab2bfbf8..9a030fb43 100644 --- a/docs/xml/Android.Views.Animations/GridLayoutAnimationController+AnimationParameters.xml +++ b/docs/xml/Android.Views.Animations/GridLayoutAnimationController+AnimationParameters.xml @@ -217,10 +217,10 @@ System.Int32 - The view group's row to which the view belongs. - The zero-based row index of the view in its containing grid. + The row index used to calculate grid animation delays. + The row index used to calculate grid animation delays. When a supplies the parameters, the index can be negative if the grid stacks from the bottom and its child count is not a multiple of the column count. - The view group's row to which the view belongs. + The row index used to calculate grid animation delays. Java documentation for android.view.animation.GridLayoutAnimationController.AnimationParameters.row. @@ -255,10 +255,10 @@ System.Int32 - The number of rows in the view's enclosing grid layout. - The number of rows in the grid that contains the view. + The row count used to calculate grid animation delays. + The row count used to calculate grid animation delays. When a supplies the parameters, this value is the child count divided by the column count, rounded down. - The number of rows in the view's enclosing grid layout. + The row count used to calculate grid animation delays. Java documentation for android.view.animation.GridLayoutAnimationController.AnimationParameters.rowsCount. diff --git a/docs/xml/Android.Views.Animations/LinearInterpolator.xml b/docs/xml/Android.Views.Animations/LinearInterpolator.xml index 5f6aec387..b0d1b251e 100644 --- a/docs/xml/Android.Views.Animations/LinearInterpolator.xml +++ b/docs/xml/Android.Views.Animations/LinearInterpolator.xml @@ -162,7 +162,7 @@ in the animation where 0 represents the start and 1.0 represents the end Maps an elapsed animation fraction to an interpolated fraction. - The interpolation value, which can be greater than 1.0 for overshoot interpolators or less than 0 for undershoot interpolators. + The input value unchanged. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. diff --git a/docs/xml/Android.Views.Animations/Transformation.xml b/docs/xml/Android.Views.Animations/Transformation.xml index fc50f17e9..59252a8cb 100644 --- a/docs/xml/Android.Views.Animations/Transformation.xml +++ b/docs/xml/Android.Views.Animations/Transformation.xml @@ -217,10 +217,9 @@ t - Apply this Transformation to an existing Transformation, e.g. apply a scale effect to something that has already been rotated. + Composes the specified transformation into this transformation. - Apply this Transformation to an existing Transformation, e.g. apply - a scale effect to something that has already been rotated. + Multiplies this transformation's alpha by the specified transformation's alpha. It also calls on this transformation's matrix with the specified transformation's matrix. For example, the transformations can combine a scale and a rotation. Java documentation for android.view.animation.Transformation.compose(android.view.animation.Transformation). @@ -361,7 +360,7 @@ Gets or sets the matrix stored in the native transformation. - The stored matrix used to transform the animated object's coordinates. + The stored matrix used to transform the animated object's coordinates, or . Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -389,7 +388,7 @@ Gets or sets the stored code that identifies the transformation's alpha and matrix components. - The stored transformation type: identity, alpha, matrix, or both alpha and matrix. + The stored transformation type code. Defined codes identify identity, alpha, matrix, or both alpha and matrix. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. diff --git a/docs/xml/Android.Views.Autofill/AutofillId.xml b/docs/xml/Android.Views.Autofill/AutofillId.xml index d4200bcdb..420485d58 100644 --- a/docs/xml/Android.Views.Autofill/AutofillId.xml +++ b/docs/xml/Android.Views.Autofill/AutofillId.xml @@ -76,7 +76,7 @@ Gets the virtual id. - The integer virtual identifier. On Android 16, this is for non-virtual views and virtual views with long identifiers, such as content capture virtual views. + The integer virtual identifier. This is for non-virtual views and virtual views with long identifiers, such as content capture virtual views. Gets the integer virtual id. This is commonly set for a virtual view in a android.webkit.WebView. @@ -245,13 +245,11 @@ System.Boolean - Checks if this node is generate as part of a android.app.assist.AssistStructure. + Checks whether this identifier has a session flag. - when this identifier was generated as part of an assist structure; otherwise, . + when the session flag is set; otherwise, . - Checks if this node is generated as part of a android.app.assist.AssistStructure. This - will usually return true if it should be used by an autofill service provider, and false - otherwise. + Identifiers created for virtual views by a content capture session also have this flag. Java documentation for android.view.autofill.AutofillId.isInAutofillSession(). diff --git a/docs/xml/Android.Views.Autofill/AutofillManager+AutofillCallback.xml b/docs/xml/Android.Views.Autofill/AutofillManager+AutofillCallback.xml index ac0c91274..032a1c4f5 100644 --- a/docs/xml/Android.Views.Autofill/AutofillManager+AutofillCallback.xml +++ b/docs/xml/Android.Views.Autofill/AutofillManager+AutofillCallback.xml @@ -87,7 +87,7 @@ A JNI reference to the Java object. - Specifies whether ownership of the JNI reference transfers to this instance. + Specifies how the runtime handles the JNI reference, including its release and peer registration. Creates a managed instance that represents an existing Java object. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -161,7 +161,7 @@ view associated with the change. - The event that changed the autofill state. + The type of autofill UI change. Called after a change in the autofill state associated with a view. Called after a change in the autofill state associated with a view. @@ -216,7 +216,7 @@ parent view associated with the change. id identifying the virtual child inside the parent view. - The event that changed the autofill state. + The type of autofill UI change. Called after a change in the autofill state associated with a virtual view. Called after a change in the autofill state associated with a virtual view. diff --git a/docs/xml/Android.Views.Autofill/AutofillNoiseInjectedData.xml b/docs/xml/Android.Views.Autofill/AutofillNoiseInjectedData.xml index 62c2b11d5..ebfef7181 100644 --- a/docs/xml/Android.Views.Autofill/AutofillNoiseInjectedData.xml +++ b/docs/xml/Android.Views.Autofill/AutofillNoiseInjectedData.xml @@ -47,8 +47,8 @@ privacy algorithm. Represents the noise-injected version of a text field's content, generated using a differential privacy algorithm. While the Autofill providers won't be able to recover the actual text from the noise-injected data from one device, with uploads from sufficient number of devices, the Autofill providers are able to rebuild the constant, non-private parts of the text to help them improve Autofill detection's quality. - The noise injection process involves the following steps: 1. The original string is converted to a byte array using UTF-8 Encoding. The actual length of the string is hidden by padding with 0x0000 or truncating as needed. 2. Then for each bit in the byte array, random noise is introduced by "coin flipping": first we flip a coin to decide whether to change this bit. The probability is 50%. If we decide to change this bit, then we flip another coin to decide its new value. The probability is: 50% to be 1, 50% to be 0. 3. To further enhance privacy, each device may drop some of the bits after noise injection. getRetainedBitMask() tells you which bits are retained for the current payload. - With the coin flipping mechanism described above, each bit has 75% chance to report the real value, and 25% chance to report the opposite value(e.g. real value is 1, reported value is 0). This means if a bit remains the same across all devices(i.e. it's a part of a non-personalized string such as "Country"), then with a large enough amount of reports collected from different devices, then the ratio of real value among all reports should be close to 75%. In another word, if we see close to 75% of the reports show 1 then the real value of this bit should be a constant 1; if we see close to 75% of the reports show 0 then the real value of this bit should be a constant 0; all other distributions indicate this bit is not same across different devices(hence very likely to be personalized/private information), which should be discarded as noise. + The noise injection process involves the following steps: 1. The original string is converted to a byte array using UTF-8 Encoding. The actual length of the string is hidden by padding with 0x0000 or truncating as needed. 2. Then for each bit in the byte array, random noise is introduced by "coin flipping": first we flip a coin to decide whether to change this bit. The probability is 50%. If we decide to change this bit, then we flip another coin to decide its new value. The probability is: 50% to be 1, 50% to be 0. 3. To further enhance privacy, each device may drop some of the bits after noise injection. tells you which bits are retained for the current payload. + With the coin flipping mechanism described above, each retained bit has a 75% chance to report the real value, and a 25% chance to report the opposite value (for example, real value is 1 and reported value is 0). If a bit remains the same across devices (for example, as part of a non-personalized string such as "Country"), then with enough reports that retain the bit, the proportion reporting the real value should be close to 75%. If close to 75% of those reports show 1, the bit may be 1 across devices; if close to 75% show 0, the bit may be 0 across devices. Other proportions can indicate that the bit varies across devices and may contain personalized information, which should be discarded as noise. Android reference for android.view.autofill.AutofillNoiseInjectedData. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -115,9 +115,9 @@ Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. - a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or CONTENTS_FILE_DESCRIPTOR + A bitmask indicating the special object types marshaled by this instance. The value is 0 or . - Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit. + Describes the kinds of special objects contained in this instance's marshaled representation. If writes a file descriptor, the result must include . Android reference for android.view.autofill.AutofillNoiseInjectedData.describeContents. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -151,7 +151,7 @@ Gets the noise-injected and bit-reduced data. A byte array representing the obfuscated text. - Gets the noise-injected and bit-reduced data. The original text has been transformed by a differential privacy algorithm, including random bit flips and removing some of the bits in every byte(getRetainedBitMask() tells you which bits are retained). + Gets the noise-injected and bit-reduced data. The original text has been transformed by a differential privacy algorithm, including random bit flips and removing some of the bits in every byte ( tells you which bits are retained). Android reference for android.view.autofill.AutofillNoiseInjectedData.getNoiseInjectedPayload. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -244,7 +244,7 @@ A byte where each bit corresponds to a bit position in a byte. If the n-th bit (0 <= n <= 7) is set, it means the n-th bit of each byte in the payload is retained. - Returns a bit mask indicating which bits were retained for *each byte* in the payload returned by getNoiseInjectedPayload(). Bits not retained are marked as 0 in the returned payload. The same bit mask is applied to every byte in the payload. + Returns a bit mask indicating which bits were retained for *each byte* in the payload returned by . Bits not retained are marked as 0 in the returned payload. The same bit mask is applied to every byte in the payload. Android reference for android.view.autofill.AutofillNoiseInjectedData.getRetainedBitMask. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -351,10 +351,10 @@ The parcel to which this object's data is written. This value cannot be . - Additional flags about how the object should be written. May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of the following: - Flatten this object in to a Parcel. + Additional flags about how the object should be written. Use or . + Flattens this object into a parcel. - Flatten this object in to a Parcel. + Flattens this object into a parcel. Android reference for android.view.autofill.AutofillNoiseInjectedData.writeToParcel. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. diff --git a/docs/xml/Android.Views.ContentCapture/DataShareError.xml b/docs/xml/Android.Views.ContentCapture/DataShareError.xml index 91bb106d6..1504003d5 100644 --- a/docs/xml/Android.Views.ContentCapture/DataShareError.xml +++ b/docs/xml/Android.Views.ContentCapture/DataShareError.xml @@ -41,7 +41,7 @@ 2 - Request has been rejected, because a concurrent data share sessions is in progress. + The request was rejected because another data-sharing session is in progress. Android reference for android.view.contentcapture.ContentCaptureManager.DATA_SHARE_ERROR_CONCURRENT_REQUEST. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -73,7 +73,7 @@ 3 - Request has been interrupted because of data share session timeout. + The request was interrupted because the data-sharing session timed out. Android reference for android.view.contentcapture.ContentCaptureManager.DATA_SHARE_ERROR_TIMEOUT_INTERRUPTED. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -105,7 +105,7 @@ 1 - Error happened during the data sharing session. + An error occurred during the data-sharing session. Android reference for android.view.contentcapture.ContentCaptureManager.DATA_SHARE_ERROR_UNKNOWN. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. diff --git a/docs/xml/Android.Views.ContentCaptures/ContentCaptureConditionFlags.xml b/docs/xml/Android.Views.ContentCaptures/ContentCaptureConditionFlags.xml index 81d9c586e..f7f02d218 100644 --- a/docs/xml/Android.Views.ContentCaptures/ContentCaptureConditionFlags.xml +++ b/docs/xml/Android.Views.ContentCaptures/ContentCaptureConditionFlags.xml @@ -53,7 +53,7 @@ 2 - Interprets the condition's LocusId as a regular expression. + Interprets the condition's LocusId string as a regular expression. diff --git a/docs/xml/Android.Views.ContentCaptures/ContentCaptureContext.xml b/docs/xml/Android.Views.ContentCaptures/ContentCaptureContext.xml index 5bd53e931..710ba069c 100644 --- a/docs/xml/Android.Views.ContentCaptures/ContentCaptureContext.xml +++ b/docs/xml/Android.Views.ContentCaptures/ContentCaptureContext.xml @@ -119,9 +119,9 @@ Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. - a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or CONTENTS_FILE_DESCRIPTOR + A bitmask indicating the special object types marshaled by this instance. The value is 0 or . - Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit. + Describes the kinds of special objects contained in this instance's marshaled representation. If writes a file descriptor, the result must include . Android reference for android.view.contentcapture.ContentCaptureContext.describeContents. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -434,10 +434,10 @@ The Parcel in which the object should be written. This value cannot be null. - Additional flags about how the object should be written. May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of the following: - Flatten this object in to a Parcel. + Additional flags about how the object should be written. Use or . + Flattens this object into a parcel. - Flatten this object in to a Parcel. + Flattens this object into a parcel. Android reference for android.view.contentcapture.ContentCaptureContext.writeToParcel. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. diff --git a/docs/xml/Android.Views.ContentCaptures/ContentCaptureNodeProperties.xml b/docs/xml/Android.Views.ContentCaptures/ContentCaptureNodeProperties.xml index b7d8cec6d..5c0096361 100644 --- a/docs/xml/Android.Views.ContentCaptures/ContentCaptureNodeProperties.xml +++ b/docs/xml/Android.Views.ContentCaptures/ContentCaptureNodeProperties.xml @@ -34,9 +34,9 @@ Properties of a Node for Content Capture. Used to provide changes from a UI node (e.g. a View or a virtual view) to the Content Capture System efficiently. An instance of this class should be reused during view tree traversal to minimize memory allocations. - To use this class: Obtain the AutofillId of the node. For virtual views, use ContentCaptureSession.newAutofillId(AutofillId,long); Set the desired properties on an instance of this class (e.g., setText(CharSequence), setBounds(int, int, int, int)); Pass the ID and this properties instance to ContentCaptureSession.notifyNodeAppearedOrChanged(AutofillId,ContentCaptureNodeProperties); Call clear() to reset the properties before reusing the instance for the next node. - To track which properties have been modified explicitly this class offers methods like hasBounds(), hasText() that will return true only if the corresponding property was explicitly set. Calling clear() removes all set fields and brings back this class to its initial state to be reused. - Calling a getter method when the corresponding property has not been set (i.e. when has*() returns false) will throw an IllegalStateException. Callers should check has*() prior to calling the getter. + To use this class: Obtain the AutofillId of the node. For virtual views, use ; set the desired properties on an instance of this class (for example, or ); pass the ID and this instance to ; call before reusing the instance for the next node. + Properties such as and indicate whether the corresponding property was explicitly set. Calling removes all set fields and returns this instance to its initial state. + Reading an unset text, content description, or parent ID throws . The same applies to when is and the supplied rectangle is not . Check the corresponding Has property before reading the value. Android reference for android.view.contentcapture.ContentCaptureNodeProperties. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -65,7 +65,7 @@ Creates a set of content capture node properties with no properties set. - Set the required properties before passing this instance to . Use before reusing the instance for another node. + Set the properties to report before passing this instance to . Use before reusing the instance for another node. Android content capture node properties. @@ -86,7 +86,7 @@ A JNI reference to the Java object. - Specifies whether ownership of the JNI reference transfers to this instance. + Specifies how the runtime handles the JNI reference, including its release and peer registration. Creates a managed instance that represents an existing Java object. The runtime calls this constructor to create a managed representation of an existing Java object. @@ -187,7 +187,6 @@ Java.Lang.ICharSequence - The content description to set, or null. Gets the content description of the node. -or- Sets the content description for this node. the content description of the node, or null if explicitly set to null. @@ -263,7 +262,7 @@ Checks if the bounds have been explicitly set. - true if the bounds were modified, false otherwise. + if the bounds were explicitly set; otherwise, . Checks if the bounds have been explicitly set. Android reference for android.view.contentcapture.ContentCaptureNodeProperties.hasBounds. @@ -296,7 +295,7 @@ Checks if the content description has been explicitly set. - true if the content description was modified, false otherwise. + if the content description was explicitly set; otherwise, . Checks if the content description has been explicitly set. Android reference for android.view.contentcapture.ContentCaptureNodeProperties.hasContentDescription. @@ -329,7 +328,7 @@ Checks if the parent ID has been explicitly set. - true if the parent ID was modified, false otherwise. + if the parent ID was explicitly set; otherwise, . Checks if the parent ID has been explicitly set. Android reference for android.view.contentcapture.ContentCaptureNodeProperties.hasParentId. @@ -362,7 +361,7 @@ Checks if the text has been explicitly set. - true if the text was modified, false otherwise. + if the text was explicitly set; otherwise, . Checks if the text has been explicitly set. Android reference for android.view.contentcapture.ContentCaptureNodeProperties.hasText. @@ -441,7 +440,6 @@ Android.Views.Autofill.AutofillId - The parent ID to set, or null if the node has no parent. Gets the parent ID of the node. -or- Sets the parent ID for this node. The parent ID of the node, or null if explicitly set to null. @@ -554,7 +552,6 @@ Java.Lang.ICharSequence - The text to set, or null to remove current text. Gets the text of the node. -or- Sets the text for this node. the text of the node, or null if explicitly set to null. diff --git a/docs/xml/Android.Views.ContentCaptures/ContentCaptureSession.xml b/docs/xml/Android.Views.ContentCaptures/ContentCaptureSession.xml index 1e1b0802c..1175acb1d 100644 --- a/docs/xml/Android.Views.ContentCaptures/ContentCaptureSession.xml +++ b/docs/xml/Android.Views.ContentCaptures/ContentCaptureSession.xml @@ -75,7 +75,7 @@ A JNI reference to the Java object. - Specifies whether ownership of the JNI reference transfers to this instance. + Specifies how the runtime handles the JNI reference, including its release and peer registration. Creates a managed instance that represents an existing Java object. The runtime calls this constructor to create a managed representation of an existing Java object. @@ -263,7 +263,7 @@ Gets the Content Capture version enabled for this session. - the enabled version, either VERSION_1 or VERSION_2. Calls to Version 1 methods become no-ops if the returned version is not VERSION_1, and calls to Version 2 methods become no-ops if the returned version is not VERSION_2. Value is one of the following: ; + The enabled version. Notification methods for the other version do not report changes. Value is one of the following: ; Gets the Content Capture version enabled for this session. ContentCaptureSession offers two versions: VERSION_1 (legacy event-based capture using ViewStructure) and VERSION_2 (leaner, buffer-backed capture focused on text and bounding boxes). @@ -673,9 +673,9 @@ id of the node. - Notifies the Intelligence Service that a view has been interacted. + Notifies the intelligence service of an interaction with a view. - Notifies the Intelligence Service that a view has been interacted. + Notifies the intelligence service of an interaction with a view. The view must have appeared before sending the interaction event. Android reference for android.view.contentcapture.ContentCaptureSession.notifyContentInteractionEvent. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -719,13 +719,13 @@ The AutofillId of the node. The ContentCaptureNodeProperties holding the attributes for this - node. + node, or to make no property updates. Creates a new node or updates an existing one according to the changes in properties. Creates a new node or updates an existing one according to the changes in properties. This is the primary method to construct and report the UI hierarchy in Content Capture Version 2. It unifies the reporting of both standard Views and virtual views (e.g., inside a Webview) into a single, cohesive API. Call this method when a node is attached, laid out, and ready to be drawn in the active UI hierarchy, or when its properties (like text or bounds) change. - For standard views, the id can be obtained via View.getAutofillId(). For virtual views, the id must be created using newAutofillId(AutofillId,long). - To minimize memory allocations, applications should reuse a single ContentCaptureNodeProperties instance, calling ContentCaptureNodeProperties.clear() before populating it for a new node. + For standard views, obtain the ID from . For virtual views, create the ID using . + To minimize memory allocations, applications should reuse a single ContentCaptureNodeProperties instance, calling before populating it for a new node. If the node already exists, only the properties explicitly set in the ContentCaptureNodeProperties payload will be updated. The parent-child relationship is modified based on the parent ID configuration: Setting parent ID to null: Guarantees that this node is treated as a root node with no parent; Not setting parent ID at all: Leaves the existing parent unchanged. If the node is appearing for the first time, it defaults to a root node. Note: This function belongs to Content Capture Version 2. Call this method on the thread that created the UI element. This is usually the application's main thread. @@ -767,7 +767,7 @@ Removes a node from the active content capture hierarchy. This is the primary method to report the removal of UI components in Content Capture Version 2. It applies to both standard Views and virtual views, signaling that the node is no longer part of the visible hierarchy. When a node is deleted: Its internal resources (such as text and content description allocations) are freed; Its children are orphaned and promoted to root nodes (their parent pointer is cleared). If you want to remove an entire subtree, you must recursively call this method for all descendant nodes in the subtree. Re-adding this node will not automatically relink previous children. - Note; This function belongs to Content Capture Version 2. + Note: This function belongs to Content Capture Version 2. Call this method on the thread that created the UI element. This is usually the application's main thread. Android reference for android.view.contentcapture.ContentCaptureSession.notifyNodeDisappeared. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -1292,9 +1292,9 @@ Content Capture Version 1. Content Capture Version 1. - The first Content Capture version is an information rich, event based system that attempts to transfer the current view hierarchy from the application process to a system intelligence service through periodic event dumps, e.g. flush(). However, this system can also be resource heavy due to the large number of events it generates. - When this version is returned by getContentCaptureVersion(), developers should use Version 1 APIs to notify the system of view hierarchy changes. Calling Version 2 APIs when the session is configured for Version 1 will result in no-ops. - A list of functions that belong explicitly to Content Capture Version 1: notifyViewAppeared(ViewStructure); notifyViewDisappeared(AutofillId); notifyViewsAppeared(List); notifyViewsDisappeared(AutofillId,long[]); notifyViewTextChanged(AutofillId,CharSequence); flush(); newViewStructure(View); newVirtualViewStructure(AutofillId,long) + The first Content Capture version is an information rich, event based system that attempts to transfer the current view hierarchy from the application process to a system intelligence service through periodic event dumps, e.g. . However, this system can also be resource heavy due to the large number of events it generates. + When this version is returned by , developers should use Version 1 APIs to notify the system of view hierarchy changes. Calling Version 2 APIs when the session is configured for Version 1 will result in no-ops. + Content Capture Version 1 APIs include ; ; ; ; ; ; ; and . Android reference for android.view.contentcapture.ContentCaptureSession.VERSION_1. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -1333,8 +1333,8 @@ Content Capture Version 2. The second and newer Content Capture takes a more focused and leaner approach to passing the view hierarchy from the application to a system intelligence service. The required information is mostly limited to text on screen and bounding boxes of these text nodes. This version of Content Capture is also significantly more efficient at resource usage and recommended to be the default one for various system intelligence services to use. - When this version is returned by getContentCaptureVersion(), developers should use Version 2 APIs to report node lifecycle and property updates. Calling Version 1 APIs when the session is configured for Version 2 will result in no-ops. - A list of functions that belong explicitly to Content Capture Version 2: notifyNodeAppearedOrChanged(AutofillId,ContentCaptureNodeProperties); notifyNodeDisappeared(AutofillId) + When this version is returned by , developers should use Version 2 APIs to report node lifecycle and property updates. Version 1 notification methods and do not report events when the session is configured for Version 2. and still create structures. + Content Capture Version 2 APIs include and . Android reference for android.view.contentcapture.ContentCaptureSession.VERSION_2. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. diff --git a/docs/xml/Android.Views.ContentCaptures/ContentCaptureSessionVersion.xml b/docs/xml/Android.Views.ContentCaptures/ContentCaptureSessionVersion.xml index a9196241d..af4efd451 100644 --- a/docs/xml/Android.Views.ContentCaptures/ContentCaptureSessionVersion.xml +++ b/docs/xml/Android.Views.ContentCaptures/ContentCaptureSessionVersion.xml @@ -13,7 +13,7 @@ Specifies the content capture version enabled for a session. - These values represent the Android ContentCaptureSession.VERSION_1 and ContentCaptureSession.VERSION_2 constants. Read to select the notification methods for the session. Methods for the other version have no effect. + These values represent the Android ContentCaptureSession.VERSION_1 and ContentCaptureSession.VERSION_2 constants. Read to select the notification methods for the session. Notification methods for the other version do not report changes. Android content capture versions. @@ -45,9 +45,9 @@ Content Capture Version 1. - The first Content Capture version is an information rich, event based system that attempts to transfer the current view hierarchy from the application process to a system intelligence service through periodic event dumps, e.g. flush(). However, this system can also be resource heavy due to the large number of events it generates. - When this version is returned by getContentCaptureVersion(), developers should use Version 1 APIs to notify the system of view hierarchy changes. Calling Version 2 APIs when the session is configured for Version 1 will result in no-ops. - A list of functions that belong explicitly to Content Capture Version 1: notifyViewAppeared(ViewStructure); notifyViewDisappeared(AutofillId); notifyViewsAppeared(List); notifyViewsDisappeared(AutofillId,long[]); notifyViewTextChanged(AutofillId,CharSequence); flush(); newViewStructure(View); newVirtualViewStructure(AutofillId,long) + The first Content Capture version is an information rich, event based system that attempts to transfer the current view hierarchy from the application process to a system intelligence service through periodic event dumps, e.g. . However, this system can also be resource heavy due to the large number of events it generates. + When this version is returned by , developers should use Version 1 APIs to notify the system of view hierarchy changes. Calling Version 2 APIs when the session is configured for Version 1 will result in no-ops. + Content Capture Version 1 APIs include ; ; ; ; ; ; ; and . Android reference for android.view.contentcapture.ContentCaptureSession.VERSION_1. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -81,8 +81,8 @@ Content Capture Version 2. The second and newer Content Capture takes a more focused and leaner approach to passing the view hierarchy from the application to a system intelligence service. The required information is mostly limited to text on screen and bounding boxes of these text nodes. This version of Content Capture is also significantly more efficient at resource usage and recommended to be the default one for various system intelligence services to use. - When this version is returned by getContentCaptureVersion(), developers should use Version 2 APIs to report node lifecycle and property updates. Calling Version 1 APIs when the session is configured for Version 2 will result in no-ops. - A list of functions that belong explicitly to Content Capture Version 2: notifyNodeAppearedOrChanged(AutofillId,ContentCaptureNodeProperties); notifyNodeDisappeared(AutofillId) + When this version is returned by , developers should use Version 2 APIs to report node lifecycle and property updates. Version 1 notification methods and do not report events when the session is configured for Version 2. and still create structures. + Content Capture Version 2 APIs include and . Android reference for android.view.contentcapture.ContentCaptureSession.VERSION_2. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. diff --git a/docs/xml/Android.Views.ContentCaptures/DataRemovalRequest.xml b/docs/xml/Android.Views.ContentCaptures/DataRemovalRequest.xml index 155fbfc10..3bca4a90c 100644 --- a/docs/xml/Android.Views.ContentCaptures/DataRemovalRequest.xml +++ b/docs/xml/Android.Views.ContentCaptures/DataRemovalRequest.xml @@ -121,9 +121,9 @@ Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. - a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or CONTENTS_FILE_DESCRIPTOR + A bitmask indicating the special object types marshaled by this instance. The value is 0 or . - Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit. + Describes the kinds of special objects contained in this instance's marshaled representation. If writes a file descriptor, the result must include . Android reference for android.view.contentcapture.DataRemovalRequest.describeContents. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -205,7 +205,7 @@ Checks whether the app is requesting removal of all content capture data associated with its package. - when the request removes all content capture data for the app's package; otherwise, . + when the request asks to remove all content capture data for the app's package; otherwise, . Checks whether the app is requesting removal of all content capture data associated with its package. @@ -303,10 +303,10 @@ System.Collections.Generic.IList<Android.Views.ContentCaptures.DataRemovalRequest+LocusIdRequest> - Gets the list of LousIds the apps is requesting to remove. - The requested LocusId values and their matching flags, or for a request to remove all data. + Gets the requests for individual LocusId values. + The requests for individual LocusId values and their matching flags, or for a request to remove all data. - Gets the list of LocusIds the app is requesting to remove. + Gets the list of requests containing the LocusId values and flags. Java documentation for android.view.contentcapture.DataRemovalRequest.getLocusIdRequests(). @@ -466,10 +466,10 @@ The Parcel in which the object should be written. This value cannot be null. - Additional flags about how the object should be written. May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of the following: - Flatten this object in to a Parcel. + Additional flags about how the object should be written. Use or . + Flattens this object into a parcel. - Flatten this object in to a Parcel. + Flattens this object into a parcel. Android reference for android.view.contentcapture.DataRemovalRequest.writeToParcel. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. diff --git a/docs/xml/Android.Views.ContentCaptures/DataShareRequest.xml b/docs/xml/Android.Views.ContentCaptures/DataShareRequest.xml index d36cfda7d..edc3d3e57 100644 --- a/docs/xml/Android.Views.ContentCaptures/DataShareRequest.xml +++ b/docs/xml/Android.Views.ContentCaptures/DataShareRequest.xml @@ -167,9 +167,9 @@ Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. - a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or CONTENTS_FILE_DESCRIPTOR + A bitmask indicating the special object types marshaled by this instance. The value is 0 or . - Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit. + Describes the kinds of special objects contained in this instance's marshaled representation. If writes a file descriptor, the result must include . Android reference for android.view.contentcapture.DataShareRequest.describeContents. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -465,10 +465,10 @@ The destination parcel. This value must not be . - Additional flags about how the object should be written. May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of the following: - Flatten this object in to a Parcel. + Additional flags about how the object should be written. Use or . + Flattens this object into a parcel. - Flatten this object in to a Parcel. + Flattens this object into a parcel. Android reference for android.view.contentcapture.DataShareRequest.writeToParcel. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.