Home
last modified time | relevance | path

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

12345678910

/frameworks/base/services/tests/servicestests/src/com/android/server/contentsuggestions/
DContentSuggestionsPerUserServiceTest.java35 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/
DUiServiceTestCase.java59 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/
DCachedDeviceStateServiceTest.java74 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/
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/tests/wmtests/src/com/android/server/wm/
DSystemServicesTestRule.java55 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);
DTaskSnapshotPersisterTestBase.java40 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()
DActivityStartInterceptorTest.java50 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/
DSyncAdapterStateFetcher.java23 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/
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()
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/
DSystemService.java250 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/
DBaseLockSettingsServiceTests.java52 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/
DInputContentUriTokenHandler.java30 import com.android.server.LocalServices;
68 mPermissionOwnerToken = LocalServices.getService(UriGrantsManagerInternal.class) in take()
97 LocalServices.getService(UriGrantsManagerInternal.class) in release()
DInputMethodManagerInternal.java23 import com.android.server.LocalServices;
89 LocalServices.getService(InputMethodManagerInternal.class); in get()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DPendingIntentControllerTest.java39 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/
DDevicePolicyCache.java20 import com.android.server.LocalServices;
37 LocalServices.getService(DevicePolicyManagerInternal.class); in getInstance()
/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/core/java/com/android/server/pm/
DLauncherAppsService.java72 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/
DLocalServices.java32 public final class LocalServices { class
33 private LocalServices() {} in LocalServices() method in LocalServices
/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/core/java/com/android/server/wm/
DDragAndDropPermissionsHandler.java29 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/
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()
/frameworks/base/services/core/java/com/android/server/deviceidle/
DTvConstraintController.java25 import com.android.server.LocalServices;
44 mDeviceIdleService = LocalServices.getService(DeviceIdleController.LocalService.class); in TvConstraintController()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DDisplayManagerServiceTest.java48 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/
DPackageList.java23 import com.android.server.LocalServices;
70 LocalServices.getService(PackageManagerInternal.class).removePackageListObserver(this); in close()

12345678910