Home
last modified time | relevance | path

Searched refs:DeviceIdleInternal (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DFakeDeviceStationaryHelper.java19 import com.android.server.DeviceIdleInternal;
25 private final CopyOnWriteArrayList<DeviceIdleInternal.StationaryListener> mListeners =
31 public void addListener(DeviceIdleInternal.StationaryListener listener) { in addListener()
39 public void removeListener(DeviceIdleInternal.StationaryListener listener) { in removeListener()
48 for (DeviceIdleInternal.StationaryListener listener : mListeners) { in setStationary()
/frameworks/base/services/core/java/com/android/server/location/injector/
DSystemDeviceStationaryHelper.java22 import com.android.server.DeviceIdleInternal;
32 private DeviceIdleInternal mDeviceIdle;
37 mDeviceIdle = Objects.requireNonNull(LocalServices.getService(DeviceIdleInternal.class)); in onSystemReady()
41 public void addListener(DeviceIdleInternal.StationaryListener listener) { in addListener()
53 public void removeListener(DeviceIdleInternal.StationaryListener listener) { in removeListener()
DDeviceStationaryHelper.java19 import com.android.server.DeviceIdleInternal;
30 public abstract void addListener(DeviceIdleInternal.StationaryListener listener); in addListener()
35 public abstract void removeListener(DeviceIdleInternal.StationaryListener listener); in removeListener()
/frameworks/base/services/core/java/com/android/server/telecom/
DInternalServiceRepository.java27 import com.android.server.DeviceIdleInternal;
47 private final DeviceIdleInternal mDeviceIdleController;
49 public InternalServiceRepository(DeviceIdleInternal deviceIdleController) { in InternalServiceRepository()
DTelecomLoaderService.java42 import com.android.server.DeviceIdleInternal;
164 DeviceIdleInternal deviceIdleInternal = getLocalService(DeviceIdleInternal.class); in setupServiceRepository()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/deviceidle/
DTvConstraintController.java24 import com.android.server.DeviceIdleInternal;
36 private final DeviceIdleInternal mDeviceIdleService;
44 mDeviceIdleService = LocalServices.getService(DeviceIdleInternal.class); in TvConstraintController()
DBluetoothConstraint.java32 import com.android.server.DeviceIdleInternal;
45 private final DeviceIdleInternal mLocalService;
52 Context context, Handler handler, DeviceIdleInternal localService) { in BluetoothConstraint()
/frameworks/base/services/core/java/com/android/server/security/
DKeyChainSystemService.java32 import com.android.server.DeviceIdleInternal;
105 final DeviceIdleInternal idleController = in startServiceInBackgroundAsUser()
106 LocalServices.getService(DeviceIdleInternal.class); in startServiceInBackgroundAsUser()
/frameworks/base/services/core/java/com/android/server/pm/
DDomainVerificationConnection.java28 import com.android.server.DeviceIdleInternal;
74 public DeviceIdleInternal getDeviceIdleInternal() { in getDeviceIdleInternal()
75 return mPm.mInjector.getLocalService(DeviceIdleInternal.class); in getDeviceIdleInternal()
DVerifyingSession.java77 import com.android.server.DeviceIdleInternal;
515 DeviceIdleInternal idleController = in sendPackageVerificationRequest()
516 mPm.mInjector.getLocalService(DeviceIdleInternal.class); in sendPackageVerificationRequest()
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/proxy/
DDomainVerificationProxy.java25 import com.android.server.DeviceIdleInternal;
114 DeviceIdleInternal getDeviceIdleInternal(); in getDeviceIdleInternal()
/frameworks/base/services/core/java/com/android/server/am/
DBaseAppStateTracker.java41 import com.android.server.DeviceIdleInternal;
284 DeviceIdleInternal mDeviceIdleInternal;
305 mDeviceIdleInternal = LocalServices.getService(DeviceIdleInternal.class); in onSystemReady()
341 DeviceIdleInternal getDeviceIdleInternal() { in getDeviceIdleInternal()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/deviceidle/
DBluetoothConstraintTest.java42 import com.android.server.DeviceIdleInternal;
74 private DeviceIdleInternal mDeviceIdleService;
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DDeviceIdleJobsController.java40 import com.android.server.DeviceIdleInternal;
72 private final DeviceIdleInternal mLocalDeviceIdleController;
135 LocalServices.getService(DeviceIdleInternal.class); in DeviceIdleJobsController()
DFlexibilityController.java67 import com.android.server.DeviceIdleInternal;
1630 private DeviceIdleInternal mDeviceIdleInternal;
1706 mDeviceIdleInternal = LocalServices.getService(DeviceIdleInternal.class); in onSystemServicesReady()
/frameworks/base/apex/jobscheduler/framework/java/com/android/server/
DDeviceIdleInternal.java27 public interface DeviceIdleInternal { interface
/frameworks/base/services/core/java/com/android/server/location/provider/
DStationaryThrottlingLocationProvider.java38 import com.android.server.DeviceIdleInternal;
56 implements DeviceIdleHelper.DeviceIdleListener, DeviceIdleInternal.StationaryListener {
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
DDomainVerificationProxyTest.kt31 import com.android.server.DeviceIdleInternal in <lambda>()
516 mockThrowOnUnmocked<DeviceIdleInternal> { in <lambda>()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/
DDeviceIdleController.java329 private DeviceIdleInternal mLocalService;
639 private final ArraySet<DeviceIdleInternal.StationaryListener> mStationaryListeners =
781 private void postStationaryStatus(DeviceIdleInternal.StationaryListener listener) { in postStationaryStatus()
800 void registerStationaryListener(DeviceIdleInternal.StationaryListener listener) { in registerStationaryListener()
820 private void unregisterStationaryListener(DeviceIdleInternal.StationaryListener listener) { in unregisterStationaryListener()
2091 final DeviceIdleInternal.StationaryListener newListener = in handleMessage()
2092 (DeviceIdleInternal.StationaryListener) msg.obj; in handleMessage()
2093 final DeviceIdleInternal.StationaryListener[] listeners; in handleMessage()
2100 new DeviceIdleInternal.StationaryListener[ in handleMessage()
2107 for (DeviceIdleInternal.StationaryListener listener : listeners) { in handleMessage()
[all …]
/frameworks/base/services/core/java/com/android/server/content/
DSyncManager.md77 in the temp-allowlist (by calling `DeviceIdleInternal.addPowerSaveTempWhitelistApp()`)
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java150 import com.android.server.DeviceIdleInternal;
471 public DeviceIdleInternal getDeviceIdleInternal() { in getDeviceIdleInternal()
472 return LocalServices.getService(DeviceIdleInternal.class); in getDeviceIdleInternal()
881 final DeviceIdleInternal idleController = mDeps.getDeviceIdleInternal(); in sendEventToVpnManagerApp()
1140 DeviceIdleInternal idleController = mDeps.getDeviceIdleInternal(); in startAlwaysOnVpn()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DDeviceIdleControllerTest.java244 Handler handler, DeviceIdleInternal localService) { in getConstraintController()
299 private class StationaryListenerForTest implements DeviceIdleInternal.StationaryListener {
399 LocalServices.removeServiceForTest(DeviceIdleInternal.class); in cleanupDeviceIdleController()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DFlexibilityControllerTest.java91 import com.android.server.DeviceIdleInternal;
139 private DeviceIdleInternal mDeviceIdleInternal;
174 .when(() -> LocalServices.getService(DeviceIdleInternal.class)); in setup()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobSchedulerServiceTest.java85 import com.android.server.DeviceIdleInternal;
174 doReturn(mock(DeviceIdleInternal.class)) in setUp()
175 .when(() -> LocalServices.getService(DeviceIdleInternal.class)); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java203 import com.android.server.DeviceIdleInternal;
376 addLocalServiceMock(DeviceIdleInternal.class); in registerLocalServices()
656 LocalServices.removeServiceForTest(DeviceIdleInternal.class); in unregisterLocalServices()

12