/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | SystemServicesTestRule.java | 68 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 …]
|
D | ActivityStartInterceptorTest.java | 52 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/ |
D | GracePeriodObserverTest.java | 34 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/ |
D | JobConcurrencyManagerTest.java | 38 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/ |
D | UiServiceTestCase.java | 62 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/ |
D | PeopleBackupHelper.java | 22 import com.android.server.LocalServices; 49 PeopleServiceInternal ps = LocalServices.getService(PeopleServiceInternal.class); in getBackupPayload() 62 PeopleServiceInternal ps = LocalServices.getService(PeopleServiceInternal.class); in applyRestoredPayload()
|
D | UsageStatsBackupHelper.java | 10 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/ |
D | SyncAdapterStateFetcher.java | 23 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/ |
D | CachedDeviceStateServiceTest.java | 76 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/ |
D | UserManagerServiceCreateProfileTest.java | 35 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/ |
D | AccountManagerBackupHelper.java | 23 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/ |
D | DeviceStateCache.java | 18 import com.android.server.LocalServices; 36 LocalServices.getService(DevicePolicyManagerInternal.class); in getInstance()
|
D | DevicePolicyCache.java | 20 import com.android.server.LocalServices; 37 LocalServices.getService(DevicePolicyManagerInternal.class); in getInstance()
|
/frameworks/base/services/core/java/com/android/server/inputmethod/ |
D | InputContentUriTokenHandler.java | 30 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/ |
D | NativeTombstoneManagerService.java | 21 import com.android.server.LocalServices; 41 LocalServices.addService(NativeTombstoneManager.class, mManager); in onStart()
|
/frameworks/base/services/core/java/com/android/server/timezonedetector/location/ |
D | ControllerCallbackImpl.java | 21 import com.android.server.LocalServices; 40 LocalServices.getService(TimeZoneDetectorInternal.class); in suggest()
|
/frameworks/base/services/core/java/com/android/server/textservices/ |
D | TextServicesManagerInternal.java | 24 import com.android.server.LocalServices; 60 LocalServices.getService(TextServicesManagerInternal.class); in get()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | PendingIntentControllerTest.java | 40 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/ |
D | AppErrorDialogTest.java | 33 import com.android.server.LocalServices; 57 LocalServices.addService(PackageManagerInternal.class, pm); in setUpOnce() 62 LocalServices.removeServiceForTest(PackageManagerInternal.class); in tearDownOnce()
|
D | OomAdjusterTests.java | 36 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/ |
D | LocalServices.java | 32 public final class LocalServices { class 33 private LocalServices() {} in LocalServices() method in LocalServices
|
/frameworks/base/services/core/java/com/android/server/rollback/ |
D | RollbackManagerService.java | 22 import com.android.server.LocalServices; 44 LocalServices.addService(RollbackManagerInternal.class, mService); in onStart()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | DisplayFoldController.java | 35 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/ |
D | SystemDeviceStationaryHelper.java | 23 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/ |
D | TvConstraintController.java | 25 import com.android.server.LocalServices; 44 mDeviceIdleService = LocalServices.getService(DeviceIdleInternal.class); in TvConstraintController()
|