/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/ |
D | BatterySaverPolicyTest.java | 26 import android.os.PowerManager.ServiceType; 105 testServiceDefaultValue_On(ServiceType.NULL); in testGetBatterySaverPolicy_PolicyNull_DefaultValueCorrect() 110 testServiceDefaultValue_On(ServiceType.VIBRATION); in testGetBatterySaverPolicy_PolicyVibration_DefaultValueCorrect() 116 testServiceDefaultValue_Off(ServiceType.VIBRATION); in testGetBatterySaverPolicy_PolicyVibration_WithAccessibilityEnabled() 121 testServiceDefaultValue_On(ServiceType.SOUND); in testGetBatterySaverPolicy_PolicySound_DefaultValueCorrect() 126 testServiceDefaultValue_On(ServiceType.FULL_BACKUP); in testGetBatterySaverPolicy_PolicyFullBackup_DefaultValueCorrect() 131 testServiceDefaultValue_On(ServiceType.KEYVALUE_BACKUP); in testGetBatterySaverPolicy_PolicyKeyValueBackup_DefaultValueCorrect() 136 testServiceDefaultValue_Off(ServiceType.ANIMATION); in testGetBatterySaverPolicy_PolicyAnimation_DefaultValueCorrect() 141 testServiceDefaultValue_On(ServiceType.BATTERY_STATS); in testGetBatterySaverPolicy_PolicyBatteryStats_DefaultValueCorrect() 146 testServiceDefaultValue_On(ServiceType.NETWORK_FIREWALL); in testGetBatterySaverPolicy_PolicyNetworkFirewall_DefaultValueCorrect() [all …]
|
/frameworks/base/core/java/android/os/ |
D | PowerManager.java | 701 @IntDef({ServiceType.LOCATION, 702 ServiceType.VIBRATION, 703 ServiceType.ANIMATION, 704 ServiceType.FULL_BACKUP, 705 ServiceType.KEYVALUE_BACKUP, 706 ServiceType.NETWORK_FIREWALL, 707 ServiceType.SCREEN_BRIGHTNESS, 708 ServiceType.SOUND, 709 ServiceType.BATTERY_STATS, 710 ServiceType.DATA_SAVER, [all …]
|
/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/services/core/java/com/android/server/power/batterysaver/ |
D | BatterySaverPolicy.java | 26 import android.os.PowerManager.ServiceType; 816 public PowerSaveState getBatterySaverPolicy(@ServiceType int type) { in getBatterySaverPolicy() 822 case ServiceType.LOCATION: in getBatterySaverPolicy() 828 case ServiceType.ANIMATION: in getBatterySaverPolicy() 831 case ServiceType.FULL_BACKUP: in getBatterySaverPolicy() 834 case ServiceType.KEYVALUE_BACKUP: in getBatterySaverPolicy() 837 case ServiceType.NETWORK_FIREWALL: in getBatterySaverPolicy() 840 case ServiceType.SCREEN_BRIGHTNESS: in getBatterySaverPolicy() 844 case ServiceType.DATA_SAVER: in getBatterySaverPolicy() 847 case ServiceType.SOUND: in getBatterySaverPolicy() [all …]
|
/frameworks/base/telephony/java/android/telephony/ims/ |
D | ImsSsData.java | 218 public @interface ServiceType{} annotation in ImsSsData 224 public final @ServiceType int serviceType; 298 public Builder(@ServiceType int serviceType, int requestType, int teleserviceType, in Builder() 351 public ImsSsData(@ServiceType int serviceType, int requestType, int teleserviceType, in ImsSsData() 473 public @ServiceType int getServiceType() { in getServiceType()
|
/frameworks/base/telephony/java/android/telephony/ |
D | NetworkRegistrationInfo.java | 126 public @interface ServiceType {} annotation in NetworkRegistrationInfo 172 @ServiceType 209 @Nullable @ServiceType List<Integer> availableServices, in NetworkRegistrationInfo() 387 @ServiceType 460 public static String serviceTypeToString(@ServiceType int serviceType) { in serviceTypeToString() 662 @ServiceType 758 @NonNull @ServiceType List<Integer> availableServices) { in setAvailableServices()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | BatteryControllerTest.java | 62 when(mPowerManager.getPowerSaveState(PowerManager.ServiceType.AOD)).thenReturn(state); in testIndependentAODBatterySaver_true() 77 when(mPowerManager.getPowerSaveState(PowerManager.ServiceType.AOD)).thenReturn(state); in testIndependentAODBatterySaver_false()
|
/frameworks/base/services/core/java/com/android/server/ |
D | UiModeManagerService.java | 42 import android.os.PowerManager.ServiceType; 247 mPowerSave = localPowerManager.getLowPowerState(ServiceType.NIGHT_MODE).batterySaverEnabled; in onStart() 248 localPowerManager.registerLowPowerModeObserver(ServiceType.NIGHT_MODE, in onStart()
|
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 | 42 import android.os.PowerManager.ServiceType; 434 return ServiceType.VIBRATION; in systemReady() 988 .getLowPowerState(ServiceType.VIBRATION).batterySaverEnabled; in updateLowPowerModeLocked()
|
D | DeviceIdleController.java | 58 import android.os.PowerManager.ServiceType; 1967 mLocalPowerManager.registerLowPowerModeObserver(ServiceType.QUICK_DOZE, in onBootPhase() 1975 ServiceType.QUICK_DOZE).batterySaverEnabled); in onBootPhase()
|
D | LocationManagerService.java | 75 import android.os.PowerManager.ServiceType; 413 localPowerManager.registerLowPowerModeObserver(ServiceType.LOCATION, in initializeLocked()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/ |
D | SoundTriggerHelper.java | 40 import android.os.PowerManager.ServiceType; 903 boolean active = mPowerManager.getPowerSaveState(ServiceType.SOUND) in onReceive() 939 mIsPowerSaveMode = mPowerManager.getPowerSaveState(ServiceType.SOUND) in initializeTelephonyAndPowerStateListeners()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | BatteryControllerImpl.java | 278 PowerSaveState state = mPowerManager.getPowerSaveState(PowerManager.ServiceType.AOD); in setPowerSave()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BatteryStatsService.java | 35 import android.os.PowerManager.ServiceType; 255 powerMgr.getLowPowerState(ServiceType.BATTERY_STATS) in initPowerManagement() 285 return ServiceType.BATTERY_STATS; in getServiceType()
|
D | ActivityManagerService.java | 254 import android.os.PowerManager.ServiceType; 9036 pmi.registerLowPowerModeObserver(ServiceType.FORCE_BACKGROUND_CHECK, in systemReady() 9039 pmi.getLowPowerState(ServiceType.FORCE_BACKGROUND_CHECK).batterySaverEnabled); in systemReady()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | AppStateTrackerTest.java | 56 import android.os.PowerManager.ServiceType; 234 when(mMockPowerManagerInternal.getLowPowerState(eq(ServiceType.FORCE_ALL_APPS_STANDBY))) in callStart() 270 eq(ServiceType.FORCE_ALL_APPS_STANDBY), in callStart()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
D | PowerManagerServiceTest.java | 146 eq(PowerManager.ServiceType.SCREEN_BRIGHTNESS))) in setUp()
|
/frameworks/base/media/java/android/media/tv/ |
D | TvContract.java | 1891 public @interface ServiceType {} annotation in TvContract.Channels
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | GnssLocationProvider.java | 51 import android.os.PowerManager.ServiceType; 546 mPowerManager.getPowerSaveState(ServiceType.LOCATION); in updateLowPowerMode()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 174 import android.os.PowerManager.ServiceType; 746 return ServiceType.NETWORK_FIREWALL; in initService() 764 ServiceType.NETWORK_FIREWALL).batterySaverEnabled; in initService() 776 .getLowPowerState(ServiceType.DATA_SAVER); in initService() 786 return ServiceType.DATA_SAVER; in initService()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | UserBackupManagerService.java | 81 import android.os.PowerManager.ServiceType; 2075 mPowerManager.getPowerSaveState(ServiceType.FULL_BACKUP); in beginFullBackup() 2469 mPowerManager.getPowerSaveState(ServiceType.KEYVALUE_BACKUP); in backupNow()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | PowerManagerService.java | 54 import android.os.PowerManager.ServiceType; 2866 getBatterySaverPolicy(ServiceType.SCREEN_BRIGHTNESS); in updatePowerRequestFromBatterySaverPolicy() 4469 public PowerSaveState getPowerSaveState(@ServiceType int serviceType) { in getPowerSaveState() 4914 public PowerSaveState getLowPowerState(@ServiceType int serviceType) { in getLowPowerState()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | WindowManagerService.java | 168 import android.os.PowerManager.ServiceType; 1057 return ServiceType.ANIMATION; in WindowManagerService() 1072 .getLowPowerState(ServiceType.ANIMATION).batterySaverEnabled; in WindowManagerService()
|