Home
last modified time | relevance | path

Searched refs:serviceType (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/
DDiscoveryListenerMultiplexer.java46 public static void addListener(@NonNull NsdManager nsdManager, @NonNull String serviceType, in addListener() argument
49 DiscoveryListenerSet listenerSet = sListeners.get(serviceType); in addListener()
56 sListeners.put(serviceType, listenerSet); in addListener()
61 nsdManager.discoverServices(serviceType, NsdManager.PROTOCOL_DNS_SD, in addListener()
133 public void onStartDiscoveryFailed(String serviceType, int errorCode) { in onStartDiscoveryFailed() argument
134 Log.w(LOG_TAG, "Failed to start network discovery for type " + serviceType + ": " in onStartDiscoveryFailed()
139 public void onStopDiscoveryFailed(String serviceType, int errorCode) { in onStopDiscoveryFailed() argument
140 Log.w(LOG_TAG, "Failed to stop network discovery for type " + serviceType + ": " in onStopDiscoveryFailed()
145 public void onDiscoveryStarted(String serviceType) { in onDiscoveryStarted() argument
150 public void onDiscoveryStopped(String serviceType) { in onDiscoveryStopped() argument
DMDNSFilteredDiscovery.java125 for (String serviceType : mServiceTypes) { in start()
126 DiscoveryListenerMultiplexer.addListener(getNDSManager(), serviceType, this); in start() local
143 public void onStartDiscoveryFailed(String serviceType, int errorCode) { in onStartDiscoveryFailed() argument
144 Log.w(LOG_TAG, "Failed to start network discovery for type " + serviceType + ": " in onStartDiscoveryFailed()
149 public void onStopDiscoveryFailed(String serviceType, int errorCode) { in onStopDiscoveryFailed() argument
150 Log.w(LOG_TAG, "Failed to stop network discovery for type " + serviceType + ": " in onStopDiscoveryFailed()
155 public void onDiscoveryStarted(String serviceType) { in onDiscoveryStarted() argument
160 public void onDiscoveryStopped(String serviceType) { in onDiscoveryStopped() argument
/frameworks/base/telephony/java/android/telephony/ims/
DImsSsData.java225 public final @ServiceType int serviceType; field in ImsSsData
299 public Builder(@ServiceType int serviceType, int requestType, int teleserviceType, in Builder() argument
301 mImsSsData = new ImsSsData(serviceType, requestType, teleserviceType, serviceClass, in Builder()
352 public ImsSsData(@ServiceType int serviceType, int requestType, int teleserviceType, in ImsSsData() argument
354 this.serviceType = serviceType; in ImsSsData()
362 serviceType = in.readInt(); in ImsSsData()
475 return serviceType; in getServiceType()
DImsCallProfile.java635 public ImsCallProfile(int serviceType, int callType) { in ImsCallProfile() argument
636 mServiceType = serviceType; in ImsCallProfile()
663 public ImsCallProfile(int serviceType, int callType, Bundle callExtras, in ImsCallProfile() argument
665 mServiceType = serviceType; in ImsCallProfile()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DSsData.java103 public ServiceType serviceType; field in SsData
147 return "[SsData] " + "ServiceType: " + serviceType in toString()
152 + " Is Service Type CF: " + serviceType.isTypeCF(); in toString()
DGsmMmiCode.java375 mSc = getScStringFromScType(ssData.serviceType); in parseSsData()
385 ssData.serviceType.isTypeUnConditional()) { in parseSsData()
401 if (ssData.serviceType.isTypeClir()) { in parseSsData()
404 } else if (ssData.serviceType.isTypeCF()) { in parseSsData()
/frameworks/base/core/java/android/os/
DPowerManagerInternal.java153 public abstract PowerSaveState getLowPowerState(int serviceType); in getLowPowerState() argument
160 public void registerLowPowerModeObserver(int serviceType, Consumer<PowerSaveState> listener) { in registerLowPowerModeObserver() argument
164 return serviceType; in registerLowPowerModeObserver()
DIPowerManager.aidl57 PowerSaveState getPowerSaveState(int serviceType); in getPowerSaveState() argument
DPowerManager.java2175 public PowerSaveState getPowerSaveState(@ServiceType int serviceType) { in getPowerSaveState() argument
2177 return mService.getPowerSaveState(serviceType); in getPowerSaveState()
/frameworks/base/core/java/com/android/internal/app/procstats/
DServiceState.java431 int count, int serviceType, int state, long startTime, long now, long totalTime, in dumpStats() argument
437 dumpTime(pw, prefixInner, serviceType, state, startTime, now); in dumpStats()
439 long myTime = dumpTimeInternal(null, null, serviceType, state, startTime, now, in dumpStats()
458 int serviceType, int curState, long curStartTime, long now) {
459 return dumpTimeInternal(pw, prefix, serviceType, curState, curStartTime, now, false);
463 int serviceType, int curState, long curStartTime, long now, boolean negativeIfRunning) {
471 long time = getDuration(serviceType, curState, curStartTime, state, now);
518 int uid, long vers, String serviceName, int serviceType, int opCount,
542 if (type != serviceType) {
588 public void writeTypeToProto(ProtoOutputStream proto, long fieldId, int opType, int serviceType,
[all …]
/frameworks/base/telephony/java/com/android/ims/internal/
DIImsService.aidl39 boolean isConnected(int serviceId, int serviceType, int callType); in isConnected() argument
54 ImsCallProfile createCallProfile(int serviceId, int serviceType, int callType); in createCallProfile() argument
/frameworks/base/services/core/java/com/android/server/am/
DAppFGSTracker.java506 static int foregroundServiceTypeToIndex(@ForegroundServiceType int serviceType) { in foregroundServiceTypeToIndex() argument
507 return serviceType == FOREGROUND_SERVICE_TYPE_NONE ? 0 in foregroundServiceTypeToIndex()
508 : Integer.numberOfTrailingZeros(serviceType) + 1; in foregroundServiceTypeToIndex()
695 for (int serviceType = Integer.highestOneBit(changes); serviceType != 0;) { in setForegroundServiceType()
696 final int i = foregroundServiceTypeToIndex(serviceType); in setForegroundServiceType()
698 if ((serviceTypes & serviceType) != 0) { in setForegroundServiceType()
705 notifyListenersOnStateChangeIfNecessary(true, now, serviceType); in setForegroundServiceType()
711 notifyListenersOnStateChangeIfNecessary(false, now, serviceType); in setForegroundServiceType()
715 changes &= ~serviceType; in setForegroundServiceType()
716 serviceType = Integer.highestOneBit(changes); in setForegroundServiceType()
[all …]
DAppRestrictionController.java1887 @ForegroundServiceType int serviceType) { in getForegroundServiceTotalDurations() argument
1889 foregroundServiceTypeToIndex(serviceType)); in getForegroundServiceTotalDurations()
1897 @ForegroundServiceType int serviceType) { in getForegroundServiceTotalDurations() argument
1899 foregroundServiceTypeToIndex(serviceType)); in getForegroundServiceTotalDurations()
1908 @ForegroundServiceType int serviceType) { in getForegroundServiceTotalDurationsSince() argument
1910 foregroundServiceTypeToIndex(serviceType)); in getForegroundServiceTotalDurationsSince()
1918 @ForegroundServiceType int serviceType) { in getForegroundServiceTotalDurationsSince() argument
1920 foregroundServiceTypeToIndex(serviceType)); in getForegroundServiceTotalDurationsSince()
DBatteryStatsService.java1386 final int serviceType, final int nrFrequency) { in notePhoneDataConnectionState() argument
1393 mStats.notePhoneDataConnectionStateLocked(dataType, hasData, serviceType, in notePhoneDataConnectionState()
/frameworks/base/services/core/java/com/android/server/locksettings/
DRebootEscrowManager.java321 public void reportMetric(boolean success, int errorCode, int serviceType, int attemptCount, in reportMetric() argument
325 errorCode, serviceType, attemptCount, escrowDurationInSeconds, in reportMetric()
501 int serviceType = mInjector.serverBasedResumeOnReboot() in reportMetricOnRestoreComplete() local
519 + serviceType + ", error code: " + mLoadEscrowDataErrorCode); in reportMetricOnRestoreComplete()
521 mInjector.reportMetric(success, mLoadEscrowDataErrorCode, serviceType, attemptCount, in reportMetricOnRestoreComplete()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DVoiceIndication.java330 ssData.serviceType = ssData.ServiceTypeFromRILInt(ss.serviceType); in onSupplementaryServiceIndication()
336 if (ssData.serviceType.isTypeCF() && ssData.requestType.isTypeInterrogation()) { in onSupplementaryServiceIndication()
DRadioIndication.java952 ssData.serviceType = ssData.ServiceTypeFromRILInt(ss.serviceType); in onSupplementaryServiceIndication()
958 if (ssData.serviceType.isTypeCF() && in onSupplementaryServiceIndication()
/frameworks/base/telephony/java/android/telephony/
DNetworkRegistrationInfo.java606 public static String serviceTypeToString(@ServiceType int serviceType) { in serviceTypeToString() argument
607 switch (serviceType) { in serviceTypeToString()
614 return "Unknown service type " + serviceType; in serviceTypeToString()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePowerManager.java82 public PowerSaveState getPowerSaveState(int serviceType) { in getPowerSaveState() argument
/frameworks/base/core/java/com/android/internal/app/
DIBatteryStats.aidl116 …void notePhoneDataConnectionState(int dataType, boolean hasData, int serviceType, int nrFrequency); in notePhoneDataConnectionState() argument
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DRebootEscrowManagerTests.java122 void reportMetric(boolean success, int errorCode, int serviceType, int attemptCount, in reportMetric() argument
255 public void reportMetric(boolean success, int errorCode, int serviceType, int attemptCount, in reportMetric() argument
259 mInjected.reportMetric(success, errorCode, serviceType, attemptCount, in reportMetric()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DBackgroundRestrictionTest.java1534 int serviceType, long sleepMs, String perm, int op, in runTestLongFGSExemptionOnce() argument
1538 packageName, uid, pid, serviceType, sleepMs, true, false, perm, op, in runTestLongFGSExemptionOnce()
1545 int serviceType, long sleepMs, boolean stopAfterSleep, in runExemptionTestOnce() argument
1582 if (serviceType != FOREGROUND_SERVICE_TYPE_NONE) { in runExemptionTestOnce()
1583 mAppFGSTracker.mProcessObserver.onForegroundServicesChanged(pid, uid, serviceType); in runExemptionTestOnce()
2298 int serviceType, long sleepMs, boolean stopAfterSleep, boolean withNotification, in runTestBgCurrentDrainExemptionOnce() argument
2324 packageName, uid, pid, serviceType, sleepMs, stopAfterSleep, withNotification, in runTestBgCurrentDrainExemptionOnce()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneMmiCode.java2004 private String getScStringFromScType(int serviceType) { in getScStringFromScType() argument
2005 switch (serviceType) { in getScStringFromScType()
/frameworks/opt/net/ims/src/java/com/android/ims/
DImsManager.java2367 public ImsCallProfile createCallProfile(int serviceType, int callType) throws ImsException { in createCallProfile() argument
2371 return c.createCallProfile(serviceType, callType); in createCallProfile()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java5840 public PowerSaveState getPowerSaveState(@ServiceType int serviceType) {
5843 return mBatterySaverPolicy.getBatterySaverPolicy(serviceType);
6620 public PowerSaveState getLowPowerState(@ServiceType int serviceType) {
6621 return mBatterySaverPolicy.getBatterySaverPolicy(serviceType);

12