Home
last modified time | relevance | path

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

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DCachedAppOptimizerTest.java161 assertThat(mCachedAppOptimizerUnderTest.mFreezerStatsdSampleRate).isEqualTo( in init_setsDefaults()
262 assertThat(mCachedAppOptimizerUnderTest.mFreezerStatsdSampleRate).isEqualTo( in init_withDeviceConfigSetsParameters()
526 assertThat(mCachedAppOptimizerUnderTest.mFreezerStatsdSampleRate).isEqualTo( in statsdSampleRate_listensToDeviceConfigChanges()
552 assertThat(mCachedAppOptimizerUnderTest.mFreezerStatsdSampleRate).isEqualTo( in statsdSampleRate_listensToDeviceConfigChangesBadValues()
588 assertThat(mCachedAppOptimizerUnderTest.mFreezerStatsdSampleRate).isEqualTo(0.0f); in statsdSampleRate_listensToDeviceConfigChangesOutOfRangeValues()
597 assertThat(mCachedAppOptimizerUnderTest.mFreezerStatsdSampleRate).isEqualTo(1.0f); in statsdSampleRate_listensToDeviceConfigChangesOutOfRangeValues()
/frameworks/base/services/core/java/com/android/server/am/
DCachedAppOptimizer.java484 @VisibleForTesting volatile float mFreezerStatsdSampleRate = DEFAULT_STATSD_SAMPLE_RATE; field in CachedAppOptimizer
816 pw.println(" " + KEY_FREEZER_STATSD_SAMPLE_RATE + "=" + mFreezerStatsdSampleRate); in dump()
1250 mFreezerStatsdSampleRate = DeviceConfig.getFloat(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, in updateFreezerStatsdSampleRate()
1252 mFreezerStatsdSampleRate = Math.min(1.0f, Math.max(0.0f, mFreezerStatsdSampleRate)); in updateFreezerStatsdSampleRate()
2443 if (mRandom.nextFloat() < mFreezerStatsdSampleRate) { in freezeProcess()
2482 if (mRandom.nextFloat() < mFreezerStatsdSampleRate) { in reportUnfreeze()