Home
last modified time | relevance | path

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

12345678910>>...12

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSystemServicesTestRule.java68 import com.android.server.LocalServices;
148 .spyStatic(LocalServices.class)
185 LocalServices.addService(UriGrantsManagerInternal.class, ugmi);
198 doReturn(dmi).when(() -> LocalServices.getService(eq(DisplayManagerInternal.class)));
203 doReturn(cds).when(() -> LocalServices.getService(
207 LocalServices.addService(UsageStatsManagerInternal.class, usmi);
211 LocalServices.addService(PackageManagerInternal.class, packageManagerInternal);
223 doReturn(pmi).when(() -> LocalServices.getService(eq(PowerManagerInternal.class)));
227 LocalServices.addService(PermissionPolicyInternal.class, ppi);
240 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()
DTaskSnapshotPersisterTestBase.java46 import com.android.server.LocalServices;
82 LocalServices.addService(UserManagerInternal.class, userManager); in setUpOnce()
87 LocalServices.removeServiceForTest(UserManagerInternal.class); in tearDownOnce()
96 LocalServices.getService(UserManagerInternal.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/tests/servicestests/src/com/android/server/
DStorageManagerServiceTest.java47 LocalServices.removeServiceForTest(StorageManagerInternal.class); in setUp()
49 LocalServices.removeServiceForTest(PackageManagerInternal.class); in setUp()
50 LocalServices.addService(PackageManagerInternal.class, mPmi); in setUp()
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/tests/net/java/com/android/server/net/
DNetworkStatsAccessTest.java34 import com.android.server.LocalServices;
61 mSystemDpmi = LocalServices.getService(DevicePolicyManagerInternal.class); in setUp()
62 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in setUp()
63 LocalServices.addService(DevicePolicyManagerInternal.class, mDpmi); in setUp()
71 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in tearDown()
72 LocalServices.addService(DevicePolicyManagerInternal.class, mSystemDpmi); in tearDown()
/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()
61 LocalServices.getService(AppStateTracker.class); in isAppActive()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceCreateProfileTest.java36 import com.android.server.LocalServices;
67 LocalServices.removeServiceForTest(UserManagerInternal.class); in setup()
258 LocalServices.addService(DeviceStorageMonitorInternal.class, dsmMock); in testCreateProfileForUser_lowStorageException()
267 LocalServices.removeServiceForTest(DeviceStorageMonitorInternal.class); in testCreateProfileForUser_lowStorageException()
275 LocalServices.addService(DeviceStorageMonitorInternal.class, dsmMock); in testCreateProfileForUser_unknownParentUser()
285 LocalServices.removeServiceForTest(DeviceStorageMonitorInternal.class); in testCreateProfileForUser_unknownParentUser()
293 LocalServices.addService(DeviceStorageMonitorInternal.class, dsmMock); in testCreateManagedProfileForUser_maxManagedUsersException()
309 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/services/tests/servicestests/src/com/android/server/am/
DOomAdjusterTests.java35 import com.android.server.LocalServices;
67 LocalServices.removeServiceForTest(PackageManagerInternal.class); in setUpOnce()
68 LocalServices.addService(PackageManagerInternal.class, sPackageManagerInternal); in setUpOnce()
81 LocalServices.removeServiceForTest(UsageStatsManagerInternal.class); in setUpOnce()
82 LocalServices.addService(UsageStatsManagerInternal.class, in setUpOnce()
84 sService.mUsageStatsService = LocalServices.getService(UsageStatsManagerInternal.class); in setUpOnce()
/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/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityManagerServiceTest.java47 import com.android.server.LocalServices;
101 LocalServices.removeServiceForTest(WindowManagerInternal.class); in setUp()
102 LocalServices.removeServiceForTest(ActivityTaskManagerInternal.class); in setUp()
103 LocalServices.addService( in setUp()
105 LocalServices.addService( in setUp()
/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/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/wm/
DDragAndDropPermissionsHandler.java28 import com.android.server.LocalServices;
91 mPermissionOwnerToken = LocalServices.getService(UriGrantsManagerInternal.class) in takeTransient()
123 UriGrantsManagerInternal ugm = LocalServices.getService(UriGrantsManagerInternal.class); in release()
/frameworks/base/services/tests/servicestests/src/com/android/server/people/
DPeopleServiceTest.java34 import com.android.server.LocalServices;
74 mServiceInternal = LocalServices.getService(PeopleServiceInternal.class); in setUp()
87 LocalServices.removeServiceForTest(PeopleServiceInternal.class); in tearDown()
/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()
/frameworks/base/services/core/java/com/android/server/search/
DSearchables.java39 import com.android.server.LocalServices;
128 LocalServices.getService(PackageManagerInternal.class); in getSearchableInfo()
189 LocalServices.getService(PackageManagerInternal.class); in getSearchableInfo()
466 final PackageManagerInternal pm = LocalServices.getService(PackageManagerInternal.class); in createFilterdSearchableInfoList()
482 final PackageManagerInternal pm = LocalServices.getService(PackageManagerInternal.class); in createFilterdResolveInfoList()
498 final PackageManagerInternal pm = LocalServices.getService(PackageManagerInternal.class); in getGlobalSearchActivity()
512 final PackageManagerInternal pm = LocalServices.getService(PackageManagerInternal.class); in getWebSearchActivity()
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DJobSetTest.java41 import com.android.server.LocalServices;
69 LocalServices.removeServiceForTest(PackageManagerInternal.class); in setUp()
70 LocalServices.addService(PackageManagerInternal.class, pm); in setUp()
148 LocalServices.removeServiceForTest(PackageManagerInternal.class); in tearDown()

12345678910>>...12