Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/
DBatterySaverPolicyTest.java27 import android.os.PowerManager.ServiceType;
115 testServiceDefaultValue_On(ServiceType.NULL); in testGetBatterySaverPolicy_PolicyNull_DefaultValueCorrect()
120 testServiceDefaultValue_On(ServiceType.VIBRATION); in testGetBatterySaverPolicy_PolicyVibration_DefaultValueCorrect()
126 testServiceDefaultValue_Off(ServiceType.VIBRATION); in testGetBatterySaverPolicy_PolicyVibration_WithAccessibilityEnabled()
131 testServiceDefaultValue_On(ServiceType.SOUND); in testGetBatterySaverPolicy_PolicySound_DefaultValueCorrect()
135 mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.SOUND); in testGetBatterySaverPolicy_PolicySound_DefaultValueCorrect()
141 testServiceDefaultValue_On(ServiceType.FULL_BACKUP); in testGetBatterySaverPolicy_PolicyFullBackup_DefaultValueCorrect()
146 testServiceDefaultValue_On(ServiceType.KEYVALUE_BACKUP); in testGetBatterySaverPolicy_PolicyKeyValueBackup_DefaultValueCorrect()
151 testServiceDefaultValue_Off(ServiceType.ANIMATION); in testGetBatterySaverPolicy_PolicyAnimation_DefaultValueCorrect()
156 testServiceDefaultValue_On(ServiceType.BATTERY_STATS); in testGetBatterySaverPolicy_PolicyBatteryStats_DefaultValueCorrect()
[all …]
/frameworks/av/services/audiopolicy/service/
DBinderProxy.h38 template<typename ServiceType>
41 static_assert(std::is_base_of_v<IInterface, ServiceType>,
56 sp<ServiceType> waitServiceOrDie() { in waitServiceOrDie()
59 mDelegate = waitForService<ServiceType>(String16(mServiceName.c_str())); in waitServiceOrDie()
72 sp<ServiceType> mDelegate;
/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()
472 @ServiceType
570 public static String serviceTypeToString(@ServiceType int serviceType) { in serviceTypeToString()
798 @ServiceType
901 @NonNull @ServiceType List<Integer> availableServices) { in setAvailableServices()
/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.java417 private String getScStringFromScType(SsData.ServiceType sType) { in getScStringFromScType()
/frameworks/base/core/java/android/os/
DPowerManager.java824 @IntDef({ServiceType.LOCATION,
825 ServiceType.VIBRATION,
826 ServiceType.ANIMATION,
827 ServiceType.FULL_BACKUP,
828 ServiceType.KEYVALUE_BACKUP,
829 ServiceType.NETWORK_FIREWALL,
830 ServiceType.SCREEN_BRIGHTNESS,
831 ServiceType.SOUND,
832 ServiceType.BATTERY_STATS,
833 ServiceType.DATA_SAVER,
[all …]
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverPolicy.java27 import android.os.PowerManager.ServiceType;
985 public PowerSaveState getBatterySaverPolicy(@ServiceType int type) { in getBatterySaverPolicy()
991 case ServiceType.LOCATION: in getBatterySaverPolicy()
997 case ServiceType.ANIMATION: in getBatterySaverPolicy()
1000 case ServiceType.FULL_BACKUP: in getBatterySaverPolicy()
1003 case ServiceType.KEYVALUE_BACKUP: in getBatterySaverPolicy()
1006 case ServiceType.NETWORK_FIREWALL: in getBatterySaverPolicy()
1009 case ServiceType.SCREEN_BRIGHTNESS: in getBatterySaverPolicy()
1013 case ServiceType.DATA_SAVER: in getBatterySaverPolicy()
1016 case ServiceType.SOUND: in getBatterySaverPolicy()
[all …]
/frameworks/base/telephony/java/android/telephony/ims/
DImsSsData.java219 public @interface ServiceType{} annotation in ImsSsData
225 public final @ServiceType int serviceType;
299 public Builder(@ServiceType int serviceType, int requestType, int teleserviceType, in Builder()
352 public ImsSsData(@ServiceType int serviceType, int requestType, int teleserviceType, in ImsSsData()
474 public @ServiceType int getServiceType() { in getServiceType()
DImsSsInfo.java345 public int[] getCompatArray(@ImsSsData.ServiceType int type) { in getCompatArray()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBatteryControllerTest.java82 when(mPowerManager.getPowerSaveState(PowerManager.ServiceType.AOD)).thenReturn(state); in testIndependentAODBatterySaver_true()
97 when(mPowerManager.getPowerSaveState(PowerManager.ServiceType.AOD)).thenReturn(state); in testIndependentAODBatterySaver_false()
/frameworks/base/services/core/java/com/android/server/location/injector/
DSystemLocationPowerSaveModeHelper.java55 PowerManager.ServiceType.LOCATION, this); in onSystemReady()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/
DAppStateTrackerImpl.java36 import android.os.PowerManager.ServiceType;
499 ServiceType.FORCE_ALL_APPS_STANDBY, in onSystemServicesReady()
508 ServiceType.FORCE_ALL_APPS_STANDBY).batterySaverEnabled; in onSystemServicesReady()
DDeviceIdleController.java66 import android.os.PowerManager.ServiceType;
2430 mLocalPowerManager.registerLowPowerModeObserver(ServiceType.QUICK_DOZE, in onBootPhase()
2438 ServiceType.QUICK_DOZE).batterySaverEnabled); in onBootPhase()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryControllerImpl.java344 PowerSaveState state = mPowerManager.getPowerSaveState(PowerManager.ServiceType.AOD); in setPowerSave()
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibrationSettings.java160 return PowerManager.ServiceType.VIBRATION; in onSystemReady()
/frameworks/base/services/core/java/com/android/server/
DUiModeManagerService.java57 import android.os.PowerManager.ServiceType;
472 mLocalPowerManager.getLowPowerState(ServiceType.NIGHT_MODE) in initPowerSave()
474 mLocalPowerManager.registerLowPowerModeObserver(ServiceType.NIGHT_MODE, state -> { in initPowerSave()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAppStateTrackerTest.java55 import android.os.PowerManager.ServiceType;
247 when(mMockPowerManagerInternal.getLowPowerState(eq(ServiceType.FORCE_ALL_APPS_STANDBY))) in callStart()
282 eq(ServiceType.FORCE_ALL_APPS_STANDBY), in callStart()
/frameworks/base/media/java/android/media/tv/
DTvContract.java1917 public @interface ServiceType {} annotation in TvContract.Channels
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java51 import android.os.PowerManager.ServiceType;
496 powerMgr.getLowPowerState(ServiceType.BATTERY_STATS).batterySaverEnabled, in initPowerManagement()
529 return ServiceType.BATTERY_STATS; in getServiceType()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java216 import android.os.PowerManager.ServiceType;
867 return ServiceType.NETWORK_FIREWALL; in initService()
885 ServiceType.NETWORK_FIREWALL).batterySaverEnabled; in initService()
906 .getLowPowerState(ServiceType.DATA_SAVER).batterySaverEnabled; in initService()
914 return ServiceType.DATA_SAVER; in initService()
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerService.java83 import android.os.PowerManager.ServiceType;
2421 mPowerManager.getPowerSaveState(ServiceType.FULL_BACKUP); in beginFullBackup()
2914 mPowerManager.getPowerSaveState(ServiceType.KEYVALUE_BACKUP); in backupNow()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java67 import android.os.PowerManager.ServiceType;
3625 getBatterySaverPolicy(ServiceType.SCREEN_BRIGHTNESS);
5381 public PowerSaveState getPowerSaveState(@ServiceType int serviceType) {
6059 public PowerSaveState getLowPowerState(@ServiceType int serviceType) {
/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
DVibratorManagerServiceTest.java162 when(mPowerManagerInternalMock.getLowPowerState(PowerManager.ServiceType.VIBRATION)) in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DPowerManagerServiceTest.java181 eq(PowerManager.ServiceType.SCREEN_BRIGHTNESS))) in setUp()

12