From 54b7d87881db5bd6811e81b834c62322c437b2fe Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Sat, 15 Aug 2026 09:59:37 -0500 Subject: [PATCH 1/2] Document StructTimeval conversions Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- docs/xml/Android.Systems/StructTimeval.xml | 33 ++++++++++++++++------ 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/docs/xml/Android.Systems/StructTimeval.xml b/docs/xml/Android.Systems/StructTimeval.xml index da243fc0b..5f4f658d4 100644 --- a/docs/xml/Android.Systems/StructTimeval.xml +++ b/docs/xml/Android.Systems/StructTimeval.xml @@ -69,10 +69,18 @@ - To be added. - To be added. - To be added. - To be added. + The value to represent, in milliseconds. + Creates a StructTimeval from a millisecond value. + A value whose seconds and microseconds components represent . + + For negative values, the seconds component is rounded down and the microseconds component remains non-negative. + + + AOSP source for StructTimeval.fromMillis(long). + + + 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 Apache License 2.0. + @@ -187,9 +195,16 @@ - To be added. - To be added. - To be added. + Converts this value to milliseconds. + The seconds component multiplied by 1,000 plus the microseconds component divided by 1,000. + + + + AOSP source for StructTimeval.toMillis(). + + + 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 Apache License 2.0. + @@ -217,7 +232,7 @@ Seconds. - To be added. + The seconds component. Seconds. @@ -258,7 +273,7 @@ Microseconds. - To be added. + The microseconds component. Microseconds. From 77cab11ce34c3360871694dac739b898e8a70431 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Sat, 15 Aug 2026 10:10:22 -0500 Subject: [PATCH 2/2] Clarify StructTimeval millisecond conversion Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- docs/xml/Android.Systems/StructTimeval.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/xml/Android.Systems/StructTimeval.xml b/docs/xml/Android.Systems/StructTimeval.xml index 5f4f658d4..e488ac598 100644 --- a/docs/xml/Android.Systems/StructTimeval.xml +++ b/docs/xml/Android.Systems/StructTimeval.xml @@ -196,7 +196,7 @@ Converts this value to milliseconds. - The seconds component multiplied by 1,000 plus the microseconds component divided by 1,000. + The seconds component multiplied by 1,000 plus the microseconds component divided by 1,000 using integer division; sub-millisecond microseconds are truncated.