Home
last modified time | relevance | path

Searched refs:mStatsdSampleRate (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/core/java/com/android/server/am/
DAppCompactor.java188 @VisibleForTesting volatile float mStatsdSampleRate = DEFAULT_STATSD_SAMPLE_RATE; field in AppCompactor
272 pw.println(" " + KEY_COMPACT_STATSD_SAMPLE_RATE + "=" + mStatsdSampleRate); in dump()
437 mStatsdSampleRate = DeviceConfig.getFloat(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in updateStatsdSampleRate()
439 mStatsdSampleRate = Math.min(1.0f, Math.max(0.0f, mStatsdSampleRate)); in updateStatsdSampleRate()
737 if (mRandom.nextFloat() < mStatsdSampleRate) { in handleMessage()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DAppCompactorTest.java107 assertThat(mCompactorUnderTest.mStatsdSampleRate).isEqualTo( in init_setsDefaults()
191 assertThat(mCompactorUnderTest.mStatsdSampleRate).isEqualTo( in init_withDeviceConfigSetsParameters()
462 assertThat(mCompactorUnderTest.mStatsdSampleRate).isEqualTo( in statsdSampleRate_listensToDeviceConfigChanges()
478 assertThat(mCompactorUnderTest.mStatsdSampleRate).isEqualTo( in statsdSampleRate_listensToDeviceConfigChangesBadValues()
495 assertThat(mCompactorUnderTest.mStatsdSampleRate).isEqualTo(0.0f); in statsdSampleRate_listensToDeviceConfigChangesOutOfRangeValues()
504 assertThat(mCompactorUnderTest.mStatsdSampleRate).isEqualTo(1.0f); in statsdSampleRate_listensToDeviceConfigChangesOutOfRangeValues()