Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/
DBatterySaverPolicyTest.java26 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/
DPowerManager.java701 @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/
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.java396 private String getScStringFromScType(SsData.ServiceType sType) { in getScStringFromScType()
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverPolicy.java26 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/
DImsSsData.java218 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/
DNetworkRegistrationInfo.java126 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/
DBatteryControllerTest.java62 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/
DUiModeManagerService.java42 import android.os.PowerManager.ServiceType;
247 mPowerSave = localPowerManager.getLowPowerState(ServiceType.NIGHT_MODE).batterySaverEnabled; in onStart()
248 localPowerManager.registerLowPowerModeObserver(ServiceType.NIGHT_MODE, in onStart()
DAppStateTracker.java38 import android.os.PowerManager.ServiceType;
456 ServiceType.FORCE_ALL_APPS_STANDBY, in onSystemServicesReady()
465 ServiceType.FORCE_ALL_APPS_STANDBY).batterySaverEnabled; in onSystemServicesReady()
DVibratorService.java42 import android.os.PowerManager.ServiceType;
434 return ServiceType.VIBRATION; in systemReady()
988 .getLowPowerState(ServiceType.VIBRATION).batterySaverEnabled; in updateLowPowerModeLocked()
DDeviceIdleController.java58 import android.os.PowerManager.ServiceType;
1967 mLocalPowerManager.registerLowPowerModeObserver(ServiceType.QUICK_DOZE, in onBootPhase()
1975 ServiceType.QUICK_DOZE).batterySaverEnabled); in onBootPhase()
DLocationManagerService.java75 import android.os.PowerManager.ServiceType;
413 localPowerManager.registerLowPowerModeObserver(ServiceType.LOCATION, in initializeLocked()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerHelper.java40 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/
DBatteryControllerImpl.java278 PowerSaveState state = mPowerManager.getPowerSaveState(PowerManager.ServiceType.AOD); in setPowerSave()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java35 import android.os.PowerManager.ServiceType;
255 powerMgr.getLowPowerState(ServiceType.BATTERY_STATS) in initPowerManagement()
285 return ServiceType.BATTERY_STATS; in getServiceType()
DActivityManagerService.java254 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/
DAppStateTrackerTest.java56 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/
DPowerManagerServiceTest.java146 eq(PowerManager.ServiceType.SCREEN_BRIGHTNESS))) in setUp()
/frameworks/base/media/java/android/media/tv/
DTvContract.java1891 public @interface ServiceType {} annotation in TvContract.Channels
/frameworks/base/services/core/java/com/android/server/location/
DGnssLocationProvider.java51 import android.os.PowerManager.ServiceType;
546 mPowerManager.getPowerSaveState(ServiceType.LOCATION); in updateLowPowerMode()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java174 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/
DUserBackupManagerService.java81 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/
DPowerManagerService.java54 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/
DWindowManagerService.java168 import android.os.PowerManager.ServiceType;
1057 return ServiceType.ANIMATION; in WindowManagerService()
1072 .getLowPowerState(ServiceType.ANIMATION).batterySaverEnabled; in WindowManagerService()

12