Home
last modified time | relevance | path

Searched refs:ServiceType (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DBatterySaverPolicyTest.java23 import com.android.server.power.BatterySaverPolicy.ServiceType;
66 testServiceDefaultValue(ServiceType.NULL); in testGetBatterySaverPolicy_PolicyNull_DefaultValueCorrect()
71 testServiceDefaultValue(ServiceType.VIBRATION); in testGetBatterySaverPolicy_PolicyVibration_DefaultValueCorrect()
76 testServiceDefaultValue(ServiceType.SOUND); in testGetBatterySaverPolicy_PolicySound_DefaultValueCorrect()
81 testServiceDefaultValue(ServiceType.FULL_BACKUP); in testGetBatterySaverPolicy_PolicyFullBackup_DefaultValueCorrect()
86 testServiceDefaultValue(ServiceType.KEYVALUE_BACKUP); in testGetBatterySaverPolicy_PolicyKeyValueBackup_DefaultValueCorrect()
91 testServiceDefaultValue(ServiceType.ANIMATION); in testGetBatterySaverPolicy_PolicyAnimation_DefaultValueCorrect()
96 testServiceDefaultValue(ServiceType.BATTERY_STATS); in testGetBatterySaverPolicy_PolicyBatteryStats_DefaultValueCorrect()
101 testServiceDefaultValue(ServiceType.NETWORK_FIREWALL); in testGetBatterySaverPolicy_PolicyNetworkFirewall_DefaultValueCorrect()
108 mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.DATA_SAVER, BATTERY_SAVER_ON); in testGetBatterySaverPolicy_PolicyDataSaver_DefaultValueCorrect()
[all …]
DPowerManagerServiceTest.java71 eq(BatterySaverPolicy.ServiceType.SCREEN_BRIGHTNESS), anyBoolean())) in setUp()
/frameworks/base/services/core/java/com/android/server/power/
DBatterySaverPolicy.java38 @IntDef({ServiceType.GPS,
39 ServiceType.VIBRATION,
40 ServiceType.ANIMATION,
41 ServiceType.FULL_BACKUP,
42 ServiceType.KEYVALUE_BACKUP,
43 ServiceType.NETWORK_FIREWALL,
44 ServiceType.SCREEN_BRIGHTNESS,
45 ServiceType.SOUND,
46 ServiceType.BATTERY_STATS,
47 ServiceType.DATA_SAVER})
[all …]
DPowerManagerService.java96 import com.android.server.power.BatterySaverPolicy.ServiceType;
2790 getBatterySaverPolicy(ServiceType.SCREEN_BRIGHTNESS, mLowPowerModeEnabled); in updatePowerRequestFromBatterySaverPolicy()
4348 public PowerSaveState getPowerSaveState(@ServiceType int serviceType) { in getPowerSaveState()
4710 public PowerSaveState getLowPowerState(@ServiceType int serviceType) { in getLowPowerState()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DSsData.java34 public enum ServiceType { enum in SsData
105 public ServiceType serviceType;
121 public ServiceType ServiceTypeFromRILInt(int type) { in ServiceTypeFromRILInt()
123 return ServiceType.values()[type]; in ServiceTypeFromRILInt()
DGsmMmiCode.java386 private String getScStringFromScType(SsData.ServiceType sType) { in getScStringFromScType()
/frameworks/support/tv-provider/src/android/support/media/tv/
DChannel.java28 import android.support.media.tv.TvContractCompat.Channels.ServiceType;
257 public @ServiceType String getServiceType() { in getServiceType()
835 public Builder setServiceType(@ServiceType String serviceType) { in setServiceType()
DTvContractCompat.java1807 public @interface ServiceType {} annotation in TvContractCompat.Channels
/frameworks/base/services/core/java/com/android/server/
DVibratorService.java59 import com.android.server.power.BatterySaverPolicy.ServiceType;
255 return ServiceType.VIBRATION; in systemReady()
657 .getLowPowerState(ServiceType.VIBRATION).batterySaverEnabled; in updateLowPowerModeLocked()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerHelper.java44 import com.android.server.power.BatterySaverPolicy.ServiceType;
862 boolean active = mPowerManager.getPowerSaveState(ServiceType.SOUND) in onReceive()
896 mIsPowerSaveMode = mPowerManager.getPowerSaveState(ServiceType.SOUND) in initializeTelephonyAndPowerStateListeners()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java55 import com.android.server.power.BatterySaverPolicy.ServiceType;
204 powerMgr.getLowPowerState(ServiceType.BATTERY_STATS) in initPowerManagement()
234 return ServiceType.BATTERY_STATS; in getServiceType()
/frameworks/base/media/java/android/media/tv/
DTvContract.java1872 public @interface ServiceType {} annotation in TvContract.Channels
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java196 import com.android.server.power.BatterySaverPolicy.ServiceType;
668 return ServiceType.NETWORK_FIREWALL; in initService()
686 ServiceType.NETWORK_FIREWALL).batterySaverEnabled; in initService()
696 .getLowPowerState(ServiceType.DATA_SAVER); in initService()
708 return ServiceType.DATA_SAVER; in initService()
/frameworks/base/services/backup/java/com/android/server/backup/
DRefactoredBackupManagerService.java122 import com.android.server.power.BatterySaverPolicy.ServiceType;
2050 mPowerManager.getPowerSaveState(ServiceType.FULL_BACKUP); in beginFullBackup()
2389 mPowerManager.getPowerSaveState(ServiceType.KEYVALUE_BACKUP); in backupNow()
DBackupManagerService.java129 import com.android.server.power.BatterySaverPolicy.ServiceType;
5494 mPowerManager.getPowerSaveState(ServiceType.FULL_BACKUP); in beginFullBackup()
10017 mPowerManager.getPowerSaveState(ServiceType.KEYVALUE_BACKUP); in backupNow()
/frameworks/base/services/core/java/com/android/server/location/
DGnssLocationProvider.java88 import com.android.server.power.BatterySaverPolicy.ServiceType;
566 mPowerManager.getPowerSaveState(ServiceType.GPS); in updateLowPowerMode()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerService.java240 import com.android.server.power.BatterySaverPolicy.ServiceType;
1084 return ServiceType.ANIMATION; in WindowManagerService()
1099 .getLowPowerState(ServiceType.ANIMATION).batterySaverEnabled; in WindowManagerService()