Home
last modified time | relevance | path

Searched refs:ServiceType (Results 1 – 25 of 28) 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/telephony/java/android/telephony/
DBarringInfo.java65 android.hardware.radio.V1_5.BarringInfo.ServiceType.CS_SERVICE;
68 android.hardware.radio.V1_5.BarringInfo.ServiceType.PS_SERVICE;
71 android.hardware.radio.V1_5.BarringInfo.ServiceType.CS_VOICE;
76 android.hardware.radio.V1_5.BarringInfo.ServiceType.MO_SIGNALLING;
79 android.hardware.radio.V1_5.BarringInfo.ServiceType.MO_DATA;
82 android.hardware.radio.V1_5.BarringInfo.ServiceType.CS_FALLBACK;
85 android.hardware.radio.V1_5.BarringInfo.ServiceType.MMTEL_VOICE;
88 android.hardware.radio.V1_5.BarringInfo.ServiceType.MMTEL_VIDEO;
93 android.hardware.radio.V1_5.BarringInfo.ServiceType.EMERGENCY;
96 android.hardware.radio.V1_5.BarringInfo.ServiceType.SMS;
DNetworkRegistrationInfo.java148 public @interface ServiceType {} annotation in NetworkRegistrationInfo
206 @ServiceType
250 @Nullable @ServiceType List<Integer> availableServices, in NetworkRegistrationInfo()
470 @ServiceType
566 public static String serviceTypeToString(@ServiceType int serviceType) { in serviceTypeToString()
793 @ServiceType
896 @NonNull @ServiceType List<Integer> availableServices) { in setAvailableServices()
/frameworks/base/core/java/android/os/
DPowerManager.java650 @IntDef({ServiceType.LOCATION,
651 ServiceType.VIBRATION,
652 ServiceType.ANIMATION,
653 ServiceType.FULL_BACKUP,
654 ServiceType.KEYVALUE_BACKUP,
655 ServiceType.NETWORK_FIREWALL,
656 ServiceType.SCREEN_BRIGHTNESS,
657 ServiceType.SOUND,
658 ServiceType.BATTERY_STATS,
659 ServiceType.DATA_SAVER,
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DSsData.java32 public enum ServiceType { enum in SsData
103 public ServiceType serviceType;
119 public ServiceType ServiceTypeFromRILInt(int type) { in ServiceTypeFromRILInt()
121 return ServiceType.values()[type]; in ServiceTypeFromRILInt()
DGsmMmiCode.java408 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.java221 public @interface ServiceType{} annotation in ImsSsData
227 public final @ServiceType int serviceType;
301 public Builder(@ServiceType int serviceType, int requestType, int teleserviceType, in Builder()
354 public ImsSsData(@ServiceType int serviceType, int requestType, int teleserviceType, in ImsSsData()
476 public @ServiceType int getServiceType() { in getServiceType()
DImsSsInfo.java346 public int[] getCompatArray(@ImsSsData.ServiceType int type) { in getCompatArray()
/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/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerHelper.java40 import android.os.PowerManager.ServiceType;
912 boolean active = mPowerManager.getPowerSaveState(ServiceType.SOUND) in onReceive()
951 mIsPowerSaveMode = mPowerManager.getPowerSaveState(ServiceType.SOUND) in initializeTelephonyAndPowerStateListeners()
1115 mPowerManager.getPowerSaveState(ServiceType.SOUND).batterySaverEnabled; in isRecognitionAllowed()
/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()
DUiModeManagerService.java43 import android.os.PowerManager.ServiceType;
316 mPowerSave = localPowerManager.getLowPowerState(ServiceType.NIGHT_MODE).batterySaverEnabled; in onStart()
317 localPowerManager.registerLowPowerModeObserver(ServiceType.NIGHT_MODE, in onStart()
DVibratorService.java44 import android.os.PowerManager.ServiceType;
453 return ServiceType.VIBRATION; in systemReady()
1092 .getLowPowerState(ServiceType.VIBRATION).batterySaverEnabled; in updateLowPowerModeLocked()
DDeviceIdleController.java58 import android.os.PowerManager.ServiceType;
2127 mLocalPowerManager.registerLowPowerModeObserver(ServiceType.QUICK_DOZE, in onBootPhase()
2135 ServiceType.QUICK_DOZE).batterySaverEnabled); in onBootPhase()
DLocationManagerService.java74 import android.os.PowerManager.ServiceType;
413 localPowerManager.registerLowPowerModeObserver(ServiceType.LOCATION, in initializeLocked()
/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()
/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.java150 eq(PowerManager.ServiceType.SCREEN_BRIGHTNESS))) in setUp()
/frameworks/base/media/java/android/media/tv/
DTvContract.java1917 public @interface ServiceType {} annotation in TvContract.Channels
/frameworks/base/services/core/java/com/android/server/location/
DGnssLocationProvider.java51 import android.os.PowerManager.ServiceType;
576 final PowerSaveState result = mPowerManager.getPowerSaveState(ServiceType.LOCATION); in updateLowPowerMode()
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerService.java81 import android.os.PowerManager.ServiceType;
2144 mPowerManager.getPowerSaveState(ServiceType.FULL_BACKUP); in beginFullBackup()
2538 mPowerManager.getPowerSaveState(ServiceType.KEYVALUE_BACKUP); in backupNow()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java55 import android.os.PowerManager.ServiceType;
2914 getBatterySaverPolicy(ServiceType.SCREEN_BRIGHTNESS); in updatePowerRequestFromBatterySaverPolicy()
4517 public PowerSaveState getPowerSaveState(@ServiceType int serviceType) { in getPowerSaveState()
4963 public PowerSaveState getLowPowerState(@ServiceType int serviceType) { in getLowPowerState()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java180 import android.os.PowerManager.ServiceType;
751 return ServiceType.NETWORK_FIREWALL; in initService()
769 ServiceType.NETWORK_FIREWALL).batterySaverEnabled; in initService()
781 .getLowPowerState(ServiceType.DATA_SAVER); in initService()
791 return ServiceType.DATA_SAVER; in initService()

12