Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DBatterySaverPolicyTest.java25 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 …]
DPowerManagerServiceTest.java65 eq(PowerManager.ServiceType.SCREEN_BRIGHTNESS), anyBoolean())) in setUp()
/frameworks/base/core/java/android/os/
DPowerManager.java530 @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/
DBatterySaverPolicy.java24 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 …]
DPowerManagerService.java52 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/
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/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBatteryControllerTest.java59 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/
DImsSsData.java133 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/
DChannel.java28 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/
DNetworkRegistrationState.java78 public @interface ServiceType {} annotation in NetworkRegistrationState
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryControllerImpl.java192 PowerSaveState state = mPowerManager.getPowerSaveState(PowerManager.ServiceType.AOD); in setPowerSave()
/frameworks/base/services/core/java/com/android/server/
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.java31 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/
DSoundTriggerHelper.java40 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/
DBatteryStatsService.java34 import android.os.PowerManager.ServiceType;
238 powerMgr.getLowPowerState(ServiceType.BATTERY_STATS) in initPowerManagement()
268 return ServiceType.BATTERY_STATS; in getServiceType()
DActivityManagerService.java342 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/
DAppStateTrackerTest.java56 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/
DTvContract.java1872 public @interface ServiceType {} annotation in TvContract.Channels
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java173 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/
DGnssLocationProvider.java60 import android.os.PowerManager.ServiceType;
636 mPowerManager.getPowerSaveState(ServiceType.GPS); in updateLowPowerMode()
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupManagerService.java73 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/
DWindowManagerService.java159 import android.os.PowerManager.ServiceType;
983 return ServiceType.ANIMATION; in WindowManagerService()
998 .getLowPowerState(ServiceType.ANIMATION).batterySaverEnabled; in WindowManagerService()