summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorAndrei Onea <andreionea@google.com>2019-05-01 14:14:35 +0100
committerAndrei Onea <andreionea@google.com>2019-05-07 18:18:08 +0100
commitf62d87172924747cf84dbac1ade0a0325fa32493 (patch)
treea468e6b73ab71d6aa516b7b6dabbdbf8bf96026b /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent9f0fd8c1cebf35ded1fa3e98be9782f4cbe670e7 (diff)
Fix setting hidden api usage log sample rate
This fix addresses two related issues: one with the DeviceConfig.onPropertiesChangedListener, and another with HiddenApiUsageLogger.setHiddenApiAccessLogSampleRates. In both cases, setting one of the sample rates (hidden_api_access_log_sampling_rate or hidden_api_access_statslog_sampling_rate) unsets the other. This is due to them being sent sequentially instead of simultaneously. Additionally, out of an abundance of caution, mirror the behaviour in attemptConnectionToPrimaryZygote and attemptConnectionToSecondaryZygote for the statslog sample rate. This was overlooked in a previous change. Bug: 119217680 Test: m Test: cts-tradefed run cts-dev -m CtsStatsdHostTestCases -t \ android.cts.statsd.atom.UidAtomTests#testHiddenApiUsed Change-Id: I8a5534403269a2339fcabc8f847199ab837ae71b Merged-In: I8a5534403269a2339fcabc8f847199ab837ae71b (cherry picked from commit b019c7eea3d97275ffb8f68dd8fb223225e1aebf)
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions