Home
last modified time | relevance | path

Searched refs:ServiceType (Results 1 – 25 of 34) 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.java64 android.hardware.radio.V1_5.BarringInfo.ServiceType.CS_SERVICE;
67 android.hardware.radio.V1_5.BarringInfo.ServiceType.PS_SERVICE;
70 android.hardware.radio.V1_5.BarringInfo.ServiceType.CS_VOICE;
75 android.hardware.radio.V1_5.BarringInfo.ServiceType.MO_SIGNALLING;
78 android.hardware.radio.V1_5.BarringInfo.ServiceType.MO_DATA;
81 android.hardware.radio.V1_5.BarringInfo.ServiceType.CS_FALLBACK;
84 android.hardware.radio.V1_5.BarringInfo.ServiceType.MMTEL_VOICE;
87 android.hardware.radio.V1_5.BarringInfo.ServiceType.MMTEL_VIDEO;
92 android.hardware.radio.V1_5.BarringInfo.ServiceType.EMERGENCY;
95 android.hardware.radio.V1_5.BarringInfo.ServiceType.SMS;
DNetworkRegistrationInfo.java148 public @interface ServiceType {} annotation in NetworkRegistrationInfo
215 @ServiceType
260 boolean emergencyOnly, @Nullable @ServiceType List<Integer> availableServices, in NetworkRegistrationInfo()
508 @ServiceType
606 public static String serviceTypeToString(@ServiceType int serviceType) { in serviceTypeToString()
838 @ServiceType
947 @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.java975 @IntDef({ServiceType.LOCATION,
976 ServiceType.VIBRATION,
977 ServiceType.ANIMATION,
978 ServiceType.FULL_BACKUP,
979 ServiceType.KEYVALUE_BACKUP,
980 ServiceType.NETWORK_FIREWALL,
981 ServiceType.SCREEN_BRIGHTNESS,
982 ServiceType.SOUND,
983 ServiceType.BATTERY_STATS,
984 ServiceType.DATA_SAVER,
[all …]
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverPolicy.java27 import android.os.PowerManager.ServiceType;
943 public PowerSaveState getBatterySaverPolicy(@ServiceType int type) { in getBatterySaverPolicy()
949 case ServiceType.LOCATION: in getBatterySaverPolicy()
955 case ServiceType.ANIMATION: in getBatterySaverPolicy()
958 case ServiceType.FULL_BACKUP: in getBatterySaverPolicy()
961 case ServiceType.KEYVALUE_BACKUP: in getBatterySaverPolicy()
964 case ServiceType.NETWORK_FIREWALL: in getBatterySaverPolicy()
967 case ServiceType.SCREEN_BRIGHTNESS: in getBatterySaverPolicy()
971 case ServiceType.DATA_SAVER: in getBatterySaverPolicy()
974 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/services/core/java/com/android/server/location/injector/
DSystemLocationPowerSaveModeHelper.java55 PowerManager.ServiceType.LOCATION, this); in onSystemReady()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBatteryControllerTest.java107 when(mPowerManager.getPowerSaveState(PowerManager.ServiceType.AOD)).thenReturn(state); in testIndependentAODBatterySaver_true()
122 when(mPowerManager.getPowerSaveState(PowerManager.ServiceType.AOD)).thenReturn(state); in testIndependentAODBatterySaver_false()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/
DAppStateTrackerImpl.java37 import android.os.PowerManager.ServiceType;
550 ServiceType.FORCE_ALL_APPS_STANDBY, in onSystemServicesReady()
559 ServiceType.FORCE_ALL_APPS_STANDBY).batterySaverEnabled; in onSystemServicesReady()
DDeviceIdleController.java67 import android.os.PowerManager.ServiceType;
2424 mLocalPowerManager.registerLowPowerModeObserver(ServiceType.QUICK_DOZE, in onBootPhase()
2432 ServiceType.QUICK_DOZE).batterySaverEnabled); in onBootPhase()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/
DPowerManagerServiceMockingTest.java130 eq(PowerManager.ServiceType.SCREEN_BRIGHTNESS))) in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryControllerImpl.java394 PowerSaveState state = mPowerManager.getPowerSaveState(PowerManager.ServiceType.AOD); in setPowerSave()
/frameworks/base/services/core/java/com/android/server/
DUiModeManagerService.java63 import android.os.PowerManager.ServiceType;
501 mLocalPowerManager.getLowPowerState(ServiceType.NIGHT_MODE) in initPowerSave()
503 mLocalPowerManager.registerLowPowerModeObserver(ServiceType.NIGHT_MODE, state -> { in initPowerSave()
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibrationSettings.java248 return PowerManager.ServiceType.VIBRATION; in onSystemReady()
/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/services/core/java/com/android/server/am/
DBatteryStatsService.java54 import android.os.PowerManager.ServiceType;
507 powerMgr.getLowPowerState(ServiceType.BATTERY_STATS).batterySaverEnabled, in initPowerManagement()
540 return ServiceType.BATTERY_STATS; in getServiceType()
/frameworks/base/media/java/android/media/tv/
DTvContract.java1936 public @interface ServiceType {} annotation in TvContract.Channels
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerService.java83 import android.os.PowerManager.ServiceType;
2221 mPowerManager.getPowerSaveState(ServiceType.FULL_BACKUP); in beginFullBackup()
2724 mPowerManager.getPowerSaveState(ServiceType.KEYVALUE_BACKUP); in backupNow()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java204 import android.os.PowerManager.ServiceType;
945 return ServiceType.NETWORK_FIREWALL; in initService()
963 ServiceType.NETWORK_FIREWALL).batterySaverEnabled; in initService()
984 .getLowPowerState(ServiceType.DATA_SAVER).batterySaverEnabled; in initService()
992 return ServiceType.DATA_SAVER; in initService()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java76 import android.os.PowerManager.ServiceType;
3476 mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.SCREEN_BRIGHTNESS),
5840 public PowerSaveState getPowerSaveState(@ServiceType int serviceType) {
6620 public PowerSaveState getLowPowerState(@ServiceType int serviceType) {
/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
DVibratorManagerServiceTest.java197 when(mPowerManagerInternalMock.getLowPowerState(PowerManager.ServiceType.VIBRATION)) in setUp()

12