Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/xml/Android.Content/AttributionSource+Builder.xml
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +437,9 @@
</Parameters>
<Docs>
<param name="value">The value to set.</param>
<summary>The PID of the process that is accessing the permission protected data. If not called, pid will default to Process.INVALID_PID (-1). This indicates that the PID data is missing. Supplying a PID is not required, but recommended when accessible.</summary>
<summary>The PID of the process that is accessing the permission protected data. If not called on a builder created with Builder(int), pid will default to Process.INVALID_PID (-1). This indicates that the PID data is missing. Supplying a PID is not required, but recommended when accessible. A builder created with Builder(AttributionSource) keeps the PID of that source.</summary>
<returns>This value cannot be null .</returns>
<remarks>The PID of the process that is accessing the permission protected data. If not called, pid will default to Process.INVALID_PID (-1). This indicates that the PID data is missing. Supplying a PID is not required, but recommended when accessible.
<remarks>The PID of the process that is accessing the permission protected data. If not called on a builder created with Builder(int), pid will default to Process.INVALID_PID (-1). This indicates that the PID data is missing. Supplying a PID is not required, but recommended when accessible. A builder created with Builder(AttributionSource) keeps the PID of that source.
<para><format type="text/html"><a href="https://developer.android.com/reference/android/content/AttributionSource.Builder#setPid(int)" title="Reference documentation">Java documentation for <code>android.content.AttributionSource.Builder.setPid(int)</code>.</a></format></para><para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
Expand Down
2 changes: 1 addition & 1 deletion docs/xml/Android.Content/ContentProvider.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1750,7 +1750,7 @@
<summary>To be added
This method is always called on the application main thread, and must
not perform lengthy operations.</summary>
<remarks>This is called when the overall system is running low on memory, and actively running processes should trim their memory usage. While the exact point at which this will be called is not defined, generally it will happen when all background processes have been killed. That is, before reaching the point of killing processes hosting service and foreground UI that we would like to avoid killing. This method is always called on the application main thread, and must not perform lengthy operations. The default content provider implementation does nothing. Subclasses may override this method to take appropriate action.
<remarks>Starting with API level 34, the system never calls this method. Before API level 34, this is called when the overall system is running low on memory, and actively running processes should trim their memory usage. While the exact point at which this will be called is not defined, generally it will happen when all background processes have been killed. That is, before reaching the point of killing processes hosting service and foreground UI that we would like to avoid killing. This method is always called on the application main thread, and must not perform lengthy operations. The default content provider implementation does nothing. Subclasses may override this method to take appropriate action.
<para><format type="text/html"><a href="https://developer.android.com/reference/android/content/ContentProvider#onLowMemory()" title="Reference documentation">Java documentation for <code>android.content.ContentProvider.onLowMemory()</code>.</a></format></para><para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
Expand Down
14 changes: 7 additions & 7 deletions docs/xml/Android.Content/ContentValues.xml
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@
<Docs>
<param name="key">the value to get</param>
<summary>Gets a value and converts it to a Boolean.</summary>
<returns>the Boolean value, or null if the value is missing or cannot be converted</returns>
<returns>the Boolean value. The Java method returns null if the value is missing or cannot be converted. This method cannot return null; in that case it throws an exception.</returns>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
<para>
Expand Down Expand Up @@ -446,7 +446,7 @@
<Docs>
<param name="key">the value to get</param>
<summary>Gets a value and converts it to a Byte.</summary>
<returns>the Byte value, or null if the value is missing or cannot be converted</returns>
<returns>the Byte value. The Java method returns null if the value is missing or cannot be converted. This method cannot return null; in that case it throws an exception.</returns>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
<para>
Expand Down Expand Up @@ -531,7 +531,7 @@
<Docs>
<param name="key">the value to get</param>
<summary>Gets a value and converts it to a Double.</summary>
<returns>the Double value, or null if the value is missing or cannot be converted</returns>
<returns>the Double value. The Java method returns null if the value is missing or cannot be converted. This method cannot return null; in that case it throws an exception.</returns>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
<para>
Expand Down Expand Up @@ -568,7 +568,7 @@
<Docs>
<param name="key">the value to get</param>
<summary>Gets a value and converts it to a Float.</summary>
<returns>the Float value, or null if the value is missing or cannot be converted</returns>
<returns>the Float value. The Java method returns null if the value is missing or cannot be converted. This method cannot return null; in that case it throws an exception.</returns>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
<para>
Expand Down Expand Up @@ -605,7 +605,7 @@
<Docs>
<param name="key">the value to get</param>
<summary>Gets a value and converts it to an Integer.</summary>
<returns>the Integer value, or null if the value is missing or cannot be converted</returns>
<returns>the Integer value. The Java method returns null if the value is missing or cannot be converted. This method cannot return null; in that case it throws an exception.</returns>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
<para>
Expand Down Expand Up @@ -642,7 +642,7 @@
<Docs>
<param name="key">the value to get</param>
<summary>Gets a value and converts it to a Long.</summary>
<returns>the Long value, or null if the value is missing or cannot be converted</returns>
<returns>the Long value. The Java method returns null if the value is missing or cannot be converted. This method cannot return null; in that case it throws an exception.</returns>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
<para>
Expand Down Expand Up @@ -679,7 +679,7 @@
<Docs>
<param name="key">the value to get</param>
<summary>Gets a value and converts it to a Short.</summary>
<returns>the Short value, or null if the value is missing or cannot be converted</returns>
<returns>the Short value. The Java method returns null if the value is missing or cannot be converted. This method cannot return null; in that case it throws an exception.</returns>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
<para>
Expand Down
2 changes: 1 addition & 1 deletion docs/xml/Android.Content/Context+UpdateBindingParams.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
</ReturnValue>
<Docs>
<summary>Gets the binding flags currently stored in this request.</summary>
<value>Returns updated bind service flags for a rebind request. This value cannot be null.</value>
<value>Returns updated bind service flags for a rebind request. This value is null for an unbind request.</value>
<remarks>
<para><format type="text/html"><a href="https://developer.android.com/reference/android/content/Context.UpdateBindingParams#getFlags()" title="Reference documentation">Android reference for <code>android.content.Context.UpdateBindingParams.getFlags</code>.</a></format></para>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
Expand Down
13 changes: 8 additions & 5 deletions docs/xml/Android.Content/Context.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7264,13 +7264,16 @@
<summary>Returns <c>true</c> if the context is a UI context which can access UI components such as
<c>WindowManager</c>, <c>android.view.LayoutInflater LayoutInflater</c> or
<c>android.app.WallpaperManager WallpaperManager</c>.</summary>
<value>Returns true if the context is a UI context which can access UI components such as WindowManager , LayoutInflater or WallpaperManager . Accessing UI components from non-UI contexts throws Violation if StrictMode.VmPolicy.Builder.detectIncorrectContextUse() is enabled. Examples of UI contexts are an Activity , a context created from createWindowContext(int,Bundle) or InputMethodService Note that even if it is allowed programmatically, it is not suggested to override this method to bypass IncorrectContextUseViolation verification.</value>
<value>Returns true if the context is a UI context which can access UI components such as WindowManager , LayoutInflater or WallpaperManager . If StrictMode.VmPolicy.Builder.detectIncorrectContextUse() is enabled, accessing UI components from non-UI contexts makes StrictMode report a Violation. StrictMode does not throw the Violation; it applies the penalties of the configured VmPolicy, such as a log entry, process termination, or a listener callback. Examples of UI contexts are an Activity , a context created from createWindowContext(int,Bundle) or InputMethodService Note that even if it is allowed programmatically, it is not suggested to override this method to bypass IncorrectContextUseViolation verification.</value>
Comment thread
jonathanpeppers marked this conversation as resolved.
Resolved
<remarks>
<para>Returns <c>true</c> if the context is a UI context which can access UI components such as
<c>WindowManager</c>, <c>android.view.LayoutInflater LayoutInflater</c> or
<c>android.app.WallpaperManager WallpaperManager</c>. Accessing UI components from non-UI
contexts throws <c>android.os.strictmode.Violation</c> if
<c>android.os.StrictMode.VmPolicy.Builder#detectIncorrectContextUse()</c> is enabled.</para>
<c>android.app.WallpaperManager WallpaperManager</c>. If
<c>android.os.StrictMode.VmPolicy.Builder#detectIncorrectContextUse()</c> is enabled,
accessing UI components from non-UI contexts makes StrictMode report an
<c>android.os.strictmode.Violation</c>. StrictMode does not throw the Violation; it applies
the penalties of the configured VmPolicy, such as a log entry, process termination, or a
listener callback.</para>
<para>Examples of UI contexts are
an <c>android.app.Activity Activity</c>, a context created from
<c>#createWindowContext(int, Bundle)</c> or
Expand Down Expand Up @@ -14262,7 +14265,7 @@
<summary>Gets the list of bind flags that may be updated (i.e. added or removed) for an existing connection.</summary>
<value>The set of flags that may be updated. This value cannot be null.</value>
<remarks>
<para>Gets the list of bind flags that may be updated (i.e. added or removed) for an existing connection. Includes: BIND_NOT_FOREGROUND; BIND_ABOVE_CLIENT; BIND_ALLOW_OOM_MANAGEMENT; BIND_WAIVE_PRIORITY; BIND_IMPORTANT; BIND_ADJUST_WITH_ACTIVITY; BIND_NOT_PERCEPTIBLE</para>
<para>Gets the list of bind flags that may be updated (i.e. added or removed) for an existing connection. Includes: BIND_NOT_FOREGROUND; BIND_ALLOW_OOM_MANAGEMENT; BIND_WAIVE_PRIORITY; BIND_IMPORTANT; BIND_ADJUST_WITH_ACTIVITY; BIND_NOT_PERCEPTIBLE</para>
<para><format type="text/html"><a href="https://developer.android.com/reference/android/content/Context#getUpdateableFlags()" title="Reference documentation">Android reference for <code>android.content.Context.getUpdateableFlags</code>.</a></format></para>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
Expand Down
Loading