Home
last modified time | relevance | path

Searched refs:soundTriggerMode (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/java/android/os/
DPowerSaveState.java39 public final int soundTriggerMode; field in PowerSaveState
45 soundTriggerMode = builder.mSoundTriggerMode; in PowerSaveState()
54 soundTriggerMode = in.readInt(); in PowerSaveState()
68 dest.writeInt(soundTriggerMode); in writeToParcel()
DBatterySaverPolicyConfig.java481 @PowerManager.SoundTriggerPowerSaveMode int soundTriggerMode) { in setSoundTriggerMode()
482 mSoundTriggerMode = soundTriggerMode; in setSoundTriggerMode()
DPowerManager.java2293 return powerSaveState.soundTriggerMode; in getSoundTriggerPowerSaveMode()
/frameworks/base/core/tests/coretests/jni/
DNativePowerManagerTest.cpp59 jfieldID soundTriggerMode; member
64 jint locationMode, jint soundTriggerMode, jfloat brightnessFactor) { in nativeObtainPowerSaveStateParcel() argument
68 static_cast<SoundTriggerMode>(soundTriggerMode), in nativeObtainPowerSaveStateParcel()
83 jint locationMode, jint soundTriggerMode, jfloat brightnessFactor) { in nativeUnparcelAndVerifyPowerSaveState() argument
94 static_cast<SoundTriggerMode>(soundTriggerMode), in nativeUnparcelAndVerifyPowerSaveState()
133 static_cast<SoundTriggerMode>(env->GetIntField(bsObj, gBSPCFieldIds.soundTriggerMode))); in nativeObtainBSPConfigParcel()
183 static_cast<SoundTriggerMode>(env->GetIntField(bsObj, gBSPCFieldIds.soundTriggerMode))); in nativeUnparcelAndVerifyBSPConfig()
245 gBSPCFieldIds.soundTriggerMode = GetFieldIDOrDie(env, bspcClazz, "mSoundTriggerMode", "I"); in JNI_OnLoad()
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverPolicy.java513 rawPolicy.soundTriggerMode in updatePolicyDependenciesLocked()
525 sb.append(mEffectivePolicyRaw.soundTriggerMode); in updatePolicyDependenciesLocked()
609 public final int soundTriggerMode; field in BatterySaverPolicy.Policy
693 int soundTriggerMode) { in Policy() argument
720 if (soundTriggerMode < PowerManager.MIN_SOUND_TRIGGER_MODE in Policy()
721 || soundTriggerMode > PowerManager.MAX_SOUND_TRIGGER_MODE) { in Policy()
722 Slog.e(TAG, "Invalid SoundTrigger mode: " + soundTriggerMode); in Policy()
723 this.soundTriggerMode = PowerManager.SOUND_TRIGGER_MODE_ALL_ENABLED; in Policy()
725 this.soundTriggerMode = soundTriggerMode; in Policy()
746 soundTriggerMode); in Policy()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DPowerManagerTest.java69 boolean globalBatterySaverEnabled, int locationMode, int soundTriggerMode, in nativeObtainPowerSaveStateParcel() argument
73 int locationMode, int soundTriggerMode, float brightnessFactor); in nativeUnparcelAndVerifyPowerSaveState() argument
335 boolean globalBatterySaverEnabled, int locationMode, int soundTriggerMode, in unparcelPowerSaveStateFromNativeAndVerify() argument
339 globalBatterySaverEnabled, locationMode, soundTriggerMode, brightnessFactor); in unparcelPowerSaveStateFromNativeAndVerify()
345 assertEquals(ps.soundTriggerMode, soundTriggerMode); in unparcelPowerSaveStateFromNativeAndVerify()
354 boolean globalBatterySaverEnabled, int locationMode, int soundTriggerMode, in parcelPowerSaveStateToNativeAndVerify() argument
367 globalBatterySaverEnabled, locationMode, soundTriggerMode, brightnessFactor); in parcelPowerSaveStateToNativeAndVerify()
/frameworks/native/services/powermanager/include/android/
DPowerSaveState.h37 SoundTriggerMode soundTriggerMode = static_cast<SoundTriggerMode>(0),
42 mSoundTriggerMode(soundTriggerMode), in mBatterySaverEnabled()
DBatterySaverPolicyConfig.h53 SoundTriggerMode soundTriggerMode = static_cast<SoundTriggerMode>(0))
72 mSoundTriggerMode(soundTriggerMode) { in mAdjustBrightnessFactor()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/
DBatterySaverPolicyTest.java143 assertThat(stateOn.soundTriggerMode).isEqualTo(defaultMode); in testGetBatterySaverPolicy_PolicySound_DefaultValueCorrect()
244 assertThat(soundState.soundTriggerMode).isEqualTo(SOUND_TRIGGER_MODE); in verifyBatterySaverConstantsUpdated()
465 assertEquals(PowerManager.SOUND_TRIGGER_MODE_CRITICAL_ONLY, policy.soundTriggerMode); in testUserSettingsOverrideDeviceConfig()
513 policy.soundTriggerMode); in testDeviceConfigOverridesDefaults()
588 assertEquals(PowerManager.SOUND_TRIGGER_MODE_CRITICAL_ONLY, policy.soundTriggerMode); in testDeviceConfig_AdaptiveValues()