Status Update
Comments
ya...@lenovo.corp-partner.google.com <ya...@lenovo.corp-partner.google.com> #2
Triage notes: Assigning for a response.
vi...@google.com <vi...@google.com> #3
When updating the providers, startProvider()
is comparing the new scope produces with the previous scope produced, instead of the current parent scope, to determine if the content of the provider needs to change, ignoring if the parent changed. That has the effect of, if a provider provides a value that is identical to the parent value, the composer thinks that none of the the static composition locals changed and it doesn't need to force updates of the content of the provider.
The temporary work-around for this is to use a compositionLocalOf
instead. Using compositionLocalOf
is recommended for composition locals that can change and static should are not recommended for values that can change.
However, in the above example, LocalOtherValue
only changes once so using a staticCompositionLocal
is recommended as it avoids the overhead for tracking reads of a value that rarely changes, making this work-around temporary for LocalOtherValue
or similar locals.
ya...@lenovo.corp-partner.google.com <ya...@lenovo.corp-partner.google.com> #4
ya...@lenovo.corp-partner.google.com <ya...@lenovo.corp-partner.google.com> #5
This issue also affects Material theming changes because they use staticCompositionLocalOf
under the hood. And those cannot be changed by a work-around.
Description
Dear Google:
We meet a CTS issue, please help to check.
run cts -m CtsNetTestCases -t android.net.cts.NetworkStatsBinderTest#testAccessUidStatsFromBinder
The test is failed. Error trace:
Recently Google submit the below change, the params and return value of getUidStats API in INetworkStatsService is changed.
Before:
long getUidStats(int uid, int type);
After:
StatsResult getTotalStats();
The latest CTS tool not contain this submit.
We have tried CTS15_R3, R4 and R4 daily build(2025/3/15), all of them are the same failure. Which CTS tool version can pass this test?
Best Regards, Wenjun Yang