/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | SystemServicesTestRule.java | 68 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 …]
|
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()
|
D | TaskSnapshotPersisterTestBase.java | 46 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/ |
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/tests/servicestests/src/com/android/server/ |
D | StorageManagerServiceTest.java | 47 LocalServices.removeServiceForTest(StorageManagerInternal.class); in setUp() 49 LocalServices.removeServiceForTest(PackageManagerInternal.class); in setUp() 50 LocalServices.addService(PackageManagerInternal.class, mPmi); in setUp()
|
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/tests/net/java/com/android/server/net/ |
D | NetworkStatsAccessTest.java | 34 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/ |
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() 61 LocalServices.getService(AppStateTracker.class); in isAppActive()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerServiceCreateProfileTest.java | 36 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/ |
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/services/tests/servicestests/src/com/android/server/am/ |
D | OomAdjusterTests.java | 35 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/ |
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/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityManagerServiceTest.java | 47 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/ |
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/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/wm/ |
D | DragAndDropPermissionsHandler.java | 28 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/ |
D | PeopleServiceTest.java | 34 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/ |
D | TvConstraintController.java | 25 import com.android.server.LocalServices; 44 mDeviceIdleService = LocalServices.getService(DeviceIdleInternal.class); in TvConstraintController()
|
/frameworks/base/services/core/java/com/android/server/search/ |
D | Searchables.java | 39 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/ |
D | JobSetTest.java | 41 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()
|