Home
last modified time | relevance | path

Searched refs:LocalServices (Results 1 – 25 of 357) sorted by relevance

12345678910>>...15

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSystemServicesTestRule.java68 import com.android.server.LocalServices;
153 .spyStatic(LocalServices.class)
190 LocalServices.addService(UriGrantsManagerInternal.class, ugmi);
203 doReturn(dmi).when(() -> LocalServices.getService(eq(DisplayManagerInternal.class)));
208 doReturn(cds).when(() -> LocalServices.getService(
212 LocalServices.addService(UsageStatsManagerInternal.class, usmi);
216 LocalServices.addService(PackageManagerInternal.class, packageManagerInternal);
228 doReturn(pmi).when(() -> LocalServices.getService(eq(PowerManagerInternal.class)));
232 LocalServices.addService(PermissionPolicyInternal.class, ppi);
246 doReturn(sbmi).when(() -> LocalServices.getService(eq(StatusBarManagerInternal.class)));
[all …]
DActivityStartInterceptorTest.java52 import com.android.server.LocalServices;
127 LocalServices.removeServiceForTest(ActivityManagerInternal.class); in setUp()
128 LocalServices.addService(ActivityManagerInternal.class, mAmInternal); in setUp()
131 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in setUp()
132 LocalServices.addService(DevicePolicyManagerInternal.class, in setUp()
167 LocalServices.removeServiceForTest(ActivityManagerInternal.class); in tearDown()
168 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in tearDown()
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DGracePeriodObserverTest.java34 import com.android.server.LocalServices;
58 LocalServices.addService(UserManagerInternal.class, userManagerInternal); in setUpOnce()
60 LocalServices.addService(ActivityManagerInternal.class, activityManagerInternal); in setUpOnce()
65 LocalServices.removeServiceForTest(UserManagerInternal.class); in tearDownOnce()
66 LocalServices.removeServiceForTest(ActivityManagerInternal.class); in tearDownOnce()
75 .when(LocalServices.getService(ActivityManagerInternal.class)).getCurrentUserId(); in setUp()
76 mUserManagerInternal = LocalServices.getService(UserManagerInternal.class); in setUp()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobConcurrencyManagerTest.java38 import com.android.server.LocalServices;
63 LocalServices.addService(UserManagerInternal.class, mock(UserManagerInternal.class)); in setUpOnce()
64 LocalServices.addService( in setUpOnce()
70 LocalServices.removeServiceForTest(UserManagerInternal.class); in tearDownOnce()
71 LocalServices.removeServiceForTest(ActivityManagerInternal.class); in tearDownOnce()
85 mUserManagerInternal = LocalServices.getService(UserManagerInternal.class); in setUp()
86 mActivityManagerInternal = LocalServices.getService(ActivityManagerInternal.class); in setUp()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/
DUiServiceTestCase.java62 LocalServices.removeServiceForTest(PackageManagerInternal.class); in setup()
63 LocalServices.addService(PackageManagerInternal.class, mPmi); in setup()
80 LocalServices.removeServiceForTest(UriGrantsManagerInternal.class); in setup()
81 LocalServices.addService(UriGrantsManagerInternal.class, mUgmInternal); in setup()
/frameworks/base/services/core/java/com/android/server/backup/
DPeopleBackupHelper.java22 import com.android.server.LocalServices;
49 PeopleServiceInternal ps = LocalServices.getService(PeopleServiceInternal.class); in getBackupPayload()
62 PeopleServiceInternal ps = LocalServices.getService(PeopleServiceInternal.class); in applyRestoredPayload()
DUsageStatsBackupHelper.java10 import com.android.server.LocalServices;
37 LocalServices.getService(UsageStatsManagerInternal.class); in getBackupPayload()
57 LocalServices.getService(UsageStatsManagerInternal.class); in applyRestoredPayload()
/frameworks/base/services/core/java/com/android/server/content/
DSyncAdapterStateFetcher.java23 import com.android.server.LocalServices;
45 LocalServices.getService(UsageStatsManagerInternal.class); in getStandbyBucket()
60 final ActivityManagerInternal ami = LocalServices.getService(ActivityManagerInternal.class); in isAppActive()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DCachedDeviceStateServiceTest.java76 LocalServices.addService(BatteryManagerInternal.class, mBatteryManager); in setUp()
85 LocalServices.removeServiceForTest(CachedDeviceState.Readonly.class); in tearDown()
88 LocalServices.removeServiceForTest(BatteryManagerInternal.class); in tearDown()
98 LocalServices.getService(CachedDeviceState.Readonly.class); in correctlyReportsScreenInteractive()
121 LocalServices.getService(CachedDeviceState.Readonly.class); in correctlyReportsCharging()
148 LocalServices.getService(CachedDeviceState.Readonly.class); in correctlyTracksTimeOnBattery()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceCreateProfileTest.java35 import com.android.server.LocalServices;
66 LocalServices.removeServiceForTest(UserManagerInternal.class); in setup()
257 LocalServices.addService(DeviceStorageMonitorInternal.class, dsmMock); in testCreateProfileForUser_lowStorageException()
266 LocalServices.removeServiceForTest(DeviceStorageMonitorInternal.class); in testCreateProfileForUser_lowStorageException()
274 LocalServices.addService(DeviceStorageMonitorInternal.class, dsmMock); in testCreateProfileForUser_unknownParentUser()
284 LocalServices.removeServiceForTest(DeviceStorageMonitorInternal.class); in testCreateProfileForUser_unknownParentUser()
292 LocalServices.addService(DeviceStorageMonitorInternal.class, dsmMock); in testCreateManagedProfileForUser_maxManagedUsersException()
308 LocalServices.removeServiceForTest(DeviceStorageMonitorInternal.class); in testCreateManagedProfileForUser_maxManagedUsersException()
/frameworks/base/core/java/com/android/server/backup/
DAccountManagerBackupHelper.java23 import com.android.server.LocalServices;
44 AccountManagerInternal am = LocalServices.getService(AccountManagerInternal.class); in getBackupPayload()
67 AccountManagerInternal am = LocalServices.getService(AccountManagerInternal.class); in applyRestoredPayload()
/frameworks/base/core/java/android/app/admin/
DDeviceStateCache.java18 import com.android.server.LocalServices;
36 LocalServices.getService(DevicePolicyManagerInternal.class); in getInstance()
DDevicePolicyCache.java20 import com.android.server.LocalServices;
37 LocalServices.getService(DevicePolicyManagerInternal.class); in getInstance()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DInputContentUriTokenHandler.java30 import com.android.server.LocalServices;
68 mPermissionOwnerToken = LocalServices.getService(UriGrantsManagerInternal.class) in take()
97 LocalServices.getService(UriGrantsManagerInternal.class) in release()
/frameworks/base/services/core/java/com/android/server/os/
DNativeTombstoneManagerService.java21 import com.android.server.LocalServices;
41 LocalServices.addService(NativeTombstoneManager.class, mManager); in onStart()
/frameworks/base/services/core/java/com/android/server/timezonedetector/location/
DControllerCallbackImpl.java21 import com.android.server.LocalServices;
40 LocalServices.getService(TimeZoneDetectorInternal.class); in suggest()
/frameworks/base/services/core/java/com/android/server/textservices/
DTextServicesManagerInternal.java24 import com.android.server.LocalServices;
60 LocalServices.getService(TextServicesManagerInternal.class); in get()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DPendingIntentControllerTest.java40 import com.android.server.LocalServices;
74 .mockStatic(LocalServices.class) in setUp()
79 () -> LocalServices.getService(AlarmManagerInternal.class)); in setUp()
81 () -> LocalServices.getService(ActivityManagerInternal.class)); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DAppErrorDialogTest.java33 import com.android.server.LocalServices;
57 LocalServices.addService(PackageManagerInternal.class, pm); in setUpOnce()
62 LocalServices.removeServiceForTest(PackageManagerInternal.class); in tearDownOnce()
DOomAdjusterTests.java36 import com.android.server.LocalServices;
99 LocalServices.addService(PackageManagerInternal.class, sPackageManagerInternal); in setUpOnce()
117 LocalServices.addService(UsageStatsManagerInternal.class, in setUpOnce()
119 sService.mUsageStatsService = LocalServices.getService(UsageStatsManagerInternal.class); in setUpOnce()
137 LocalServices.removeServiceForTest(PackageManagerInternal.class); in tearDownOnce()
138 LocalServices.removeServiceForTest(UsageStatsManagerInternal.class); in tearDownOnce()
/frameworks/base/core/java/com/android/server/
DLocalServices.java32 public final class LocalServices { class
33 private LocalServices() {} in LocalServices() method in LocalServices
/frameworks/base/services/core/java/com/android/server/rollback/
DRollbackManagerService.java22 import com.android.server.LocalServices;
44 LocalServices.addService(RollbackManagerInternal.class, mService); in onStart()
/frameworks/base/services/core/java/com/android/server/policy/
DDisplayFoldController.java35 import com.android.server.LocalServices;
188 LocalServices.getService(WindowManagerInternal.class); in create()
190 LocalServices.getService(DisplayManagerInternal.class); in create()
192 LocalServices.getService(CameraServiceProxy.class); in create()
/frameworks/base/services/core/java/com/android/server/location/injector/
DSystemDeviceStationaryHelper.java23 import com.android.server.LocalServices;
37 mDeviceIdle = Objects.requireNonNull(LocalServices.getService(DeviceIdleInternal.class)); in onSystemReady()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/deviceidle/
DTvConstraintController.java25 import com.android.server.LocalServices;
44 mDeviceIdleService = LocalServices.getService(DeviceIdleInternal.class); in TvConstraintController()

12345678910>>...15