/frameworks/base/services/tests/servicestests/src/com/android/server/contentsuggestions/ |
D | ContentSuggestionsPerUserServiceTest.java | 35 import com.android.server.LocalServices; 52 LocalServices.removeServiceForTest(UserManagerInternal.class); in setup() 53 LocalServices.addService(UserManagerInternal.class, umi); in setup() 56 LocalServices.removeServiceForTest(ActivityTaskManagerInternal.class); in setup() 57 LocalServices.addService(ActivityTaskManagerInternal.class, mActivityTaskManagerInternal); in setup()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/ |
D | UiServiceTestCase.java | 59 LocalServices.removeServiceForTest(PackageManagerInternal.class); in setup() 60 LocalServices.addService(PackageManagerInternal.class, mPmi); in setup() 75 LocalServices.removeServiceForTest(UriGrantsManagerInternal.class); in setup() 76 LocalServices.addService(UriGrantsManagerInternal.class, mUgmInternal); in setup()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | CachedDeviceStateServiceTest.java | 74 LocalServices.addService(BatteryManagerInternal.class, mBatteryManager); in setUp() 83 LocalServices.removeServiceForTest(CachedDeviceState.Readonly.class); in tearDown() 86 LocalServices.removeServiceForTest(BatteryManagerInternal.class); in tearDown() 96 LocalServices.getService(CachedDeviceState.Readonly.class); in correctlyReportsScreenInteractive() 119 LocalServices.getService(CachedDeviceState.Readonly.class); in correctlyReportsCharging() 146 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/tests/wmtests/src/com/android/server/wm/ |
D | SystemServicesTestRule.java | 55 import com.android.server.LocalServices; 109 .spyStatic(LocalServices.class) 137 doReturn(dmi).when(() -> LocalServices.getService(eq(DisplayManagerInternal.class))); 142 doReturn(pmi).when(() -> LocalServices.getService(eq(PowerManagerInternal.class))); 145 doReturn(ami).when(() -> LocalServices.getService(eq(ActivityManagerInternal.class))); 155 doReturn(atmi).when(() -> LocalServices.getService(eq(ActivityTaskManagerInternal.class))); 202 LocalServices.removeServiceForTest(WindowManagerInternal.class); 203 LocalServices.removeServiceForTest(WindowManagerPolicy.class);
|
D | TaskSnapshotPersisterTestBase.java | 40 import com.android.server.LocalServices; 64 LocalServices.addService(UserManagerInternal.class, userManager); in setUpOnce() 69 LocalServices.removeServiceForTest(UserManagerInternal.class); in tearDownOnce() 78 LocalServices.getService(UserManagerInternal.class); in setUp()
|
D | ActivityStartInterceptorTest.java | 50 import com.android.server.LocalServices; 122 LocalServices.removeServiceForTest(ActivityManagerInternal.class); in setUp() 123 LocalServices.addService(ActivityManagerInternal.class, mAmInternal); in setUp() 126 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in setUp() 127 LocalServices.addService(DevicePolicyManagerInternal.class, in setUp()
|
/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/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()
|
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/ |
D | SystemService.java | 250 LocalServices.addService(type, service); in publishLocalService() 257 return LocalServices.getService(type); in getLocalService() 261 return LocalServices.getService(SystemServiceManager.class); in getManager()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | BaseLockSettingsServiceTests.java | 52 import com.android.server.LocalServices; 117 LocalServices.removeServiceForTest(LockSettingsInternal.class); in setUp_baseServices() 118 LocalServices.removeServiceForTest(DevicePolicyManagerInternal.class); in setUp_baseServices() 119 LocalServices.removeServiceForTest(WindowManagerInternal.class); in setUp_baseServices() 120 LocalServices.addService(DevicePolicyManagerInternal.class, mDevicePolicyManagerInternal); in setUp_baseServices() 121 LocalServices.addService(WindowManagerInternal.class, mMockWindowManager); in setUp_baseServices() 180 mLocalService = LocalServices.getService(LockSettingsInternal.class); in setUp_baseServices()
|
/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()
|
D | InputMethodManagerInternal.java | 23 import com.android.server.LocalServices; 89 LocalServices.getService(InputMethodManagerInternal.class); in get()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | PendingIntentControllerTest.java | 39 import com.android.server.LocalServices; 72 .mockStatic(LocalServices.class) in setUp() 77 () -> LocalServices.getService(AlarmManagerInternal.class)); in setUp() 79 () -> LocalServices.getService(ActivityManagerInternal.class)); in setUp()
|
/frameworks/base/core/java/android/app/admin/ |
D | DevicePolicyCache.java | 20 import com.android.server.LocalServices; 37 LocalServices.getService(DevicePolicyManagerInternal.class); in getInstance()
|
/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/core/java/com/android/server/pm/ |
D | LauncherAppsService.java | 72 import com.android.server.LocalServices; 139 LocalServices.getService(UserManagerInternal.class)); in LauncherAppsImpl() 141 LocalServices.getService(UsageStatsManagerInternal.class)); in LauncherAppsImpl() 143 LocalServices.getService(ActivityManagerInternal.class)); in LauncherAppsImpl() 145 LocalServices.getService(ActivityTaskManagerInternal.class)); in LauncherAppsImpl() 147 LocalServices.getService(ShortcutServiceInternal.class)); in LauncherAppsImpl() 344 LocalServices.getService(PackageManagerInternal.class); in getHiddenAppActivityInfo() 360 final PackageManagerInternal pmi = LocalServices.getService( in shouldHideFromSuggestions() 398 LocalServices.getService(PackageManagerInternal.class); in getLauncherActivities() 447 LocalServices.getService(PackageManagerInternal.class); in shouldShowSyntheticActivity() [all …]
|
/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/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/core/java/com/android/server/wm/ |
D | DragAndDropPermissionsHandler.java | 29 import com.android.server.LocalServices; 92 mPermissionOwnerToken = LocalServices.getService(UriGrantsManagerInternal.class) in takeTransient() 124 UriGrantsManagerInternal ugm = LocalServices.getService(UriGrantsManagerInternal.class); in release()
|
/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()
|
/frameworks/base/services/core/java/com/android/server/deviceidle/ |
D | TvConstraintController.java | 25 import com.android.server.LocalServices; 44 mDeviceIdleService = LocalServices.getService(DeviceIdleController.LocalService.class); in TvConstraintController()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | DisplayManagerServiceTest.java | 48 import com.android.server.LocalServices; 109 LocalServices.removeServiceForTest(InputManagerInternal.class); in setUp() 110 LocalServices.addService(InputManagerInternal.class, mMockInputManagerInternal); in setUp() 111 LocalServices.removeServiceForTest(WindowManagerInternal.class); in setUp() 112 LocalServices.addService(WindowManagerInternal.class, mMockWindowManagerInternal); in setUp() 113 LocalServices.removeServiceForTest(LightsManager.class); in setUp() 114 LocalServices.addService(LightsManager.class, mMockLightsManager); in setUp()
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageList.java | 23 import com.android.server.LocalServices; 70 LocalServices.getService(PackageManagerInternal.class).removePackageListObserver(this); in close()
|