Home
last modified time | relevance | path

Searched refs:DeviceIdleInternal (Results 1 – 25 of 29) 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;
166 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;
104 final DeviceIdleInternal idleController = in startServiceInBackgroundAsUser()
105 LocalServices.getService(DeviceIdleInternal.class); in startServiceInBackgroundAsUser()
/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/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.java39 import com.android.server.DeviceIdleInternal;
71 private final DeviceIdleInternal mLocalDeviceIdleController;
133 LocalServices.getService(DeviceIdleInternal.class); in DeviceIdleJobsController()
/frameworks/base/apex/jobscheduler/framework/java/com/android/server/
DDeviceIdleInternal.java26 public interface DeviceIdleInternal { interface
/frameworks/base/services/core/java/com/android/server/location/provider/
DStationaryThrottlingLocationProvider.java35 import com.android.server.DeviceIdleInternal;
53 implements DeviceIdleHelper.DeviceIdleListener, DeviceIdleInternal.StationaryListener {
/frameworks/base/apex/jobscheduler/service/java/com/android/server/
DDeviceIdleController.java288 private DeviceIdleInternal mLocalService;
570 private final ArraySet<DeviceIdleInternal.StationaryListener> mStationaryListeners =
708 private void postStationaryStatus(DeviceIdleInternal.StationaryListener listener) { in postStationaryStatus()
726 void registerStationaryListener(DeviceIdleInternal.StationaryListener listener) { in registerStationaryListener()
746 private void unregisterStationaryListener(DeviceIdleInternal.StationaryListener listener) { in unregisterStationaryListener()
1787 final DeviceIdleInternal.StationaryListener newListener = in handleMessage()
1788 (DeviceIdleInternal.StationaryListener) msg.obj; in handleMessage()
1789 final DeviceIdleInternal.StationaryListener[] listeners; in handleMessage()
1796 new DeviceIdleInternal.StationaryListener[ in handleMessage()
1803 for (DeviceIdleInternal.StationaryListener listener : listeners) { in handleMessage()
[all …]
/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/services/tests/mockingservicestests/src/com/android/server/job/
DJobSchedulerServiceTest.java64 import com.android.server.DeviceIdleInternal;
137 doReturn(mock(DeviceIdleInternal.class)) in setUp()
138 .when(() -> LocalServices.getService(DeviceIdleInternal.class)); in setUp()
/frameworks/base/services/core/java/com/android/server/content/
DSyncManager.md77 in the temp-allowlist (by calling `DeviceIdleInternal.addPowerSaveTempWhitelistApp()`)
DSyncManager.java109 import com.android.server.DeviceIdleInternal;
1646 DeviceIdleInternal dic = in scheduleSyncOperationH()
1647 LocalServices.getService(DeviceIdleInternal.class); in scheduleSyncOperationH()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java123 import com.android.server.DeviceIdleInternal;
306 public DeviceIdleInternal getDeviceIdleInternal() { in getDeviceIdleInternal()
307 return LocalServices.getService(DeviceIdleInternal.class); in getDeviceIdleInternal()
842 DeviceIdleInternal idleController = mDeps.getDeviceIdleInternal(); in startAlwaysOnVpn()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DDeviceIdleControllerTest.java230 Handler handler, DeviceIdleInternal localService) { in getConstraintController()
280 private class StationaryListenerForTest implements DeviceIdleInternal.StationaryListener {
355 LocalServices.removeServiceForTest(DeviceIdleInternal.class); in tearDown()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java166 import com.android.server.DeviceIdleInternal;
324 addLocalServiceMock(DeviceIdleInternal.class); in registerLocalServices()
478 LocalServices.removeServiceForTest(DeviceIdleInternal.class); in unregisterLocalServices()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobSchedulerService.java92 import com.android.server.DeviceIdleInternal;
290 DeviceIdleInternal mLocalDeviceIdleController;
1626 LocalServices.getService(DeviceIdleInternal.class);
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/
DAlarmManagerServiceTest.java154 import com.android.server.DeviceIdleInternal;
209 private DeviceIdleInternal mDeviceIdleInternal;
385 () -> LocalServices.getService(DeviceIdleInternal.class)); in setUp()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/
DAlarmManagerService.java133 import com.android.server.DeviceIdleInternal;
212 DeviceIdleInternal mLocalDeviceIdleController;
1783 LocalServices.getService(DeviceIdleInternal.class); in onBootPhase()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java189 import com.android.server.DeviceIdleInternal;
435 DeviceIdleInternal deviceIdleInternal = mock(DeviceIdleInternal.class); in setUp()
444 LocalServices.removeServiceForTest(DeviceIdleInternal.class); in setUp()
445 LocalServices.addService(DeviceIdleInternal.class, deviceIdleInternal); in setUp()

12