/frameworks/base/core/java/android/os/ |
D | PowerSaveState.java | 39 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()
|
D | BatterySaverPolicyConfig.java | 481 @PowerManager.SoundTriggerPowerSaveMode int soundTriggerMode) { in setSoundTriggerMode() 482 mSoundTriggerMode = soundTriggerMode; in setSoundTriggerMode()
|
D | PowerManager.java | 2293 return powerSaveState.soundTriggerMode; in getSoundTriggerPowerSaveMode()
|
/frameworks/base/core/tests/coretests/jni/ |
D | NativePowerManagerTest.cpp | 59 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/ |
D | BatterySaverPolicy.java | 513 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/ |
D | PowerManagerTest.java | 69 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/ |
D | PowerSaveState.h | 37 SoundTriggerMode soundTriggerMode = static_cast<SoundTriggerMode>(0), 42 mSoundTriggerMode(soundTriggerMode), in mBatterySaverEnabled()
|
D | BatterySaverPolicyConfig.h | 53 SoundTriggerMode soundTriggerMode = static_cast<SoundTriggerMode>(0)) 72 mSoundTriggerMode(soundTriggerMode) { in mAdjustBrightnessFactor()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/ |
D | BatterySaverPolicyTest.java | 143 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()
|