/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
D | BatterySaverPolicyTest.java | 25 import android.os.PowerManager.ServiceType; 108 testServiceDefaultValue(ServiceType.NULL); in testGetBatterySaverPolicy_PolicyNull_DefaultValueCorrect() 113 testServiceDefaultValue(ServiceType.VIBRATION); in testGetBatterySaverPolicy_PolicyVibration_DefaultValueCorrect() 119 testServiceDefaultValue_unchanged(ServiceType.VIBRATION); in testGetBatterySaverPolicy_PolicyVibration_WithAccessibilityEnabled() 124 testServiceDefaultValue(ServiceType.SOUND); in testGetBatterySaverPolicy_PolicySound_DefaultValueCorrect() 129 testServiceDefaultValue(ServiceType.FULL_BACKUP); in testGetBatterySaverPolicy_PolicyFullBackup_DefaultValueCorrect() 134 testServiceDefaultValue(ServiceType.KEYVALUE_BACKUP); in testGetBatterySaverPolicy_PolicyKeyValueBackup_DefaultValueCorrect() 139 testServiceDefaultValue_unchanged(ServiceType.ANIMATION); in testGetBatterySaverPolicy_PolicyAnimation_DefaultValueCorrect() 144 testServiceDefaultValue(ServiceType.BATTERY_STATS); in testGetBatterySaverPolicy_PolicyBatteryStats_DefaultValueCorrect() 149 testServiceDefaultValue(ServiceType.NETWORK_FIREWALL); in testGetBatterySaverPolicy_PolicyNetworkFirewall_DefaultValueCorrect() [all …]
|
D | PowerManagerServiceTest.java | 65 eq(PowerManager.ServiceType.SCREEN_BRIGHTNESS), anyBoolean())) in setUp()
|
/frameworks/base/core/java/android/os/ |
D | PowerManager.java | 530 @IntDef({ServiceType.GPS, 531 ServiceType.VIBRATION, 532 ServiceType.ANIMATION, 533 ServiceType.FULL_BACKUP, 534 ServiceType.KEYVALUE_BACKUP, 535 ServiceType.NETWORK_FIREWALL, 536 ServiceType.SCREEN_BRIGHTNESS, 537 ServiceType.SOUND, 538 ServiceType.BATTERY_STATS, 539 ServiceType.DATA_SAVER, [all …]
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | BatterySaverPolicy.java | 24 import android.os.PowerManager.ServiceType; 455 public PowerSaveState getBatterySaverPolicy(@ServiceType int type, boolean realMode) { in getBatterySaverPolicy() 464 case ServiceType.GPS: in getBatterySaverPolicy() 468 case ServiceType.ANIMATION: in getBatterySaverPolicy() 471 case ServiceType.FULL_BACKUP: in getBatterySaverPolicy() 474 case ServiceType.KEYVALUE_BACKUP: in getBatterySaverPolicy() 477 case ServiceType.NETWORK_FIREWALL: in getBatterySaverPolicy() 480 case ServiceType.SCREEN_BRIGHTNESS: in getBatterySaverPolicy() 484 case ServiceType.DATA_SAVER: in getBatterySaverPolicy() 487 case ServiceType.SOUND: in getBatterySaverPolicy() [all …]
|
D | PowerManagerService.java | 52 import android.os.PowerManager.ServiceType; 2784 getBatterySaverPolicy(ServiceType.SCREEN_BRIGHTNESS, in updatePowerRequestFromBatterySaverPolicy() 4346 public PowerSaveState getPowerSaveState(@ServiceType int serviceType) { in getPowerSaveState() 4675 public PowerSaveState getLowPowerState(@ServiceType int serviceType) { in getLowPowerState()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
D | SsData.java | 34 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()
|
D | GsmMmiCode.java | 396 private String getScStringFromScType(SsData.ServiceType sType) { in getScStringFromScType()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | BatteryControllerTest.java | 59 when(mPowerManager.getPowerSaveState(PowerManager.ServiceType.AOD)).thenReturn(state); in testIndependentAODBatterySaver_true() 74 when(mPowerManager.getPowerSaveState(PowerManager.ServiceType.AOD)).thenReturn(state); in testIndependentAODBatterySaver_false()
|
/frameworks/base/telephony/java/android/telephony/ims/ |
D | ImsSsData.java | 133 public @interface ServiceType{} annotation in ImsSsData 282 public ImsSsData(@ServiceType int serviceType, int requestType, int teleserviceType, in ImsSsData()
|
/frameworks/support/tv-provider/src/main/java/androidx/tvprovider/media/tv/ |
D | Channel.java | 28 import androidx.tvprovider.media.tv.TvContractCompat.Channels.ServiceType; 256 public @ServiceType String getServiceType() { in getServiceType() 860 public Builder setServiceType(@ServiceType String serviceType) { in setServiceType()
|
/frameworks/base/telephony/java/android/telephony/ |
D | NetworkRegistrationState.java | 78 public @interface ServiceType {} annotation in NetworkRegistrationState
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | BatteryControllerImpl.java | 192 PowerSaveState state = mPowerManager.getPowerSaveState(PowerManager.ServiceType.AOD); in setPowerSave()
|
/frameworks/base/services/core/java/com/android/server/ |
D | AppStateTracker.java | 38 import android.os.PowerManager.ServiceType; 456 ServiceType.FORCE_ALL_APPS_STANDBY, in onSystemServicesReady() 465 ServiceType.FORCE_ALL_APPS_STANDBY).batterySaverEnabled; in onSystemServicesReady()
|
D | VibratorService.java | 31 import android.os.PowerManager.ServiceType; 379 return ServiceType.VIBRATION; in systemReady() 874 .getLowPowerState(ServiceType.VIBRATION).batterySaverEnabled; in updateLowPowerModeLocked()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/ |
D | SoundTriggerHelper.java | 40 import android.os.PowerManager.ServiceType; 868 boolean active = mPowerManager.getPowerSaveState(ServiceType.SOUND) in onReceive() 904 mIsPowerSaveMode = mPowerManager.getPowerSaveState(ServiceType.SOUND) in initializeTelephonyAndPowerStateListeners()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BatteryStatsService.java | 34 import android.os.PowerManager.ServiceType; 238 powerMgr.getLowPowerState(ServiceType.BATTERY_STATS) in initPowerManagement() 268 return ServiceType.BATTERY_STATS; in getServiceType()
|
D | ActivityManagerService.java | 342 import android.os.PowerManager.ServiceType; 15229 pmi.registerLowPowerModeObserver(ServiceType.FORCE_BACKGROUND_CHECK, in systemReady() 15232 pmi.getLowPowerState(ServiceType.FORCE_BACKGROUND_CHECK).batterySaverEnabled); in systemReady()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | AppStateTrackerTest.java | 56 import android.os.PowerManager.ServiceType; 233 when(mMockPowerManagerInternal.getLowPowerState(eq(ServiceType.FORCE_ALL_APPS_STANDBY))) in callStart() 269 eq(ServiceType.FORCE_ALL_APPS_STANDBY), in callStart()
|
/frameworks/base/media/java/android/media/tv/ |
D | TvContract.java | 1872 public @interface ServiceType {} annotation in TvContract.Channels
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 173 import android.os.PowerManager.ServiceType; 729 return ServiceType.NETWORK_FIREWALL; in initService() 747 ServiceType.NETWORK_FIREWALL).batterySaverEnabled; in initService() 759 .getLowPowerState(ServiceType.DATA_SAVER); in initService() 769 return ServiceType.DATA_SAVER; in initService()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | GnssLocationProvider.java | 60 import android.os.PowerManager.ServiceType; 636 mPowerManager.getPowerSaveState(ServiceType.GPS); in updateLowPowerMode()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | BackupManagerService.java | 73 import android.os.PowerManager.ServiceType; 2046 mPowerManager.getPowerSaveState(ServiceType.FULL_BACKUP); in beginFullBackup() 2414 mPowerManager.getPowerSaveState(ServiceType.KEYVALUE_BACKUP); in backupNow()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | WindowManagerService.java | 159 import android.os.PowerManager.ServiceType; 983 return ServiceType.ANIMATION; in WindowManagerService() 998 .getLowPowerState(ServiceType.ANIMATION).batterySaverEnabled; in WindowManagerService()
|