Searched defs:getSystemService (Results 1 - 25 of 26) sorted by relevance

12

/frameworks/base/core/java/com/android/internal/policy/
H A DDecorContext.java49 public Object getSystemService(String name) { method in class:DecorContext
53 (WindowManagerImpl) super.getSystemService(Context.WINDOW_SERVICE);
58 return super.getSystemService(name);
/frameworks/base/packages/CarrierDefaultApp/tests/unit/src/com/android/carrierdefaultapp/
H A DTestContext.java45 public Object getSystemService(String name) { method in class:TestContext
51 return super.getSystemService(name);
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DMockLockSettingsContext.java44 public Object getSystemService(String name) { method in class:MockLockSettingsContext
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
H A DTetheringConfigurationTest.java65 public Object getSystemService(String name) { method in class:TetheringConfigurationTest.MockContext
69 return super.getSystemService(name);
/frameworks/base/core/java/android/app/
H A DSystemServiceRegistry.java152 * Manages all of the system services that can be returned by {@link Context#getSystemService}.
878 public static Object getSystemService(ContextImpl ctx, String name) { method in class:SystemServiceRegistry
H A DContextImpl.java386 && !getSystemService(StorageManager.class).isUserKeyUnlocked(
833 return getSystemService(WallpaperManager.class);
1650 public Object getSystemService(String name) { method in class:ContextImpl
1651 return SystemServiceRegistry.getSystemService(this, name);
/frameworks/base/core/tests/coretests/src/android/widget/
H A DListViewTest.java108 public Object getSystemService(String name) { method in class:ListViewTest.MockContext2
110 return getInstrumentation().getTargetContext().getSystemService(name);
112 return super.getSystemService(name);
/frameworks/base/packages/Shell/tests/src/com/android/shell/
H A DBugreportProgressServiceTest.java69 public Object getSystemService(String name) { method in class:BugreportProgressServiceTest.MyContext
76 return super.getSystemService(name);
/frameworks/base/core/java/android/view/
H A DContextThemeWrapper.java164 public Object getSystemService(String name) { method in class:ContextThemeWrapper
171 return getBaseContext().getSystemService(name);
/frameworks/base/core/tests/coretests/src/android/provider/
H A DTestDocumentsProvider.java117 public Object getSystemService(String name) { method in class:TestDocumentsProvider.TestContext
122 return super.getSystemService(name);
/frameworks/support/v7/appcompat/src/android/support/v7/view/
H A DContextThemeWrapper.java166 public Object getSystemService(String name) { method in class:ContextThemeWrapper
173 return getBaseContext().getSystemService(name);
/frameworks/base/test-runner/src/android/test/
H A DIsolatedContext.java119 public Object getSystemService(String name) { method in class:IsolatedContext
/frameworks/base/tests/net/java/com/android/server/connectivity/
H A DTetheringTest.java112 public Object getSystemService(String name) { method in class:TetheringTest.MockContext
115 return super.getSystemService(name);
165 when(mContext.getSystemService(Context.CARRIER_CONFIG_SERVICE))
180 when(mContext.getSystemService(Context.CARRIER_CONFIG_SERVICE))
/frameworks/base/tests/testables/src/android/testing/
H A DTestableContext.java121 public Object getSystemService(String name) { method in class:TestableContext
126 return getBaseContext().getSystemService(LayoutInflater.class).cloneInContext(this);
128 return super.getSystemService(name);
/frameworks/base/packages/SystemUI/src/com/android/systemui/plugins/
H A DPluginInstanceManager.java349 mContext.getSystemService(NotificationManager.class)
394 public Object getSystemService(String name) { method in class:PluginInstanceManager.PluginContextWrapper
401 return getBaseContext().getSystemService(name);
/frameworks/base/core/java/android/accessibilityservice/
H A DAccessibilityService.java1492 public Object getSystemService(@ServiceName @NonNull String name) { method in class:AccessibilityService
1501 mWindowManager = (WindowManager) getBaseContext().getSystemService(name);
1505 return super.getSystemService(name);
1537 final WindowManagerImpl wm = (WindowManagerImpl) getSystemService(WINDOW_SERVICE);
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DContextFixture.java209 public Object getSystemService(String name) { method in class:ContextFixture.FakeContext
241 return TestApplication.getAppContext().getSystemService(name);
/frameworks/base/core/java/android/content/
H A DContextWrapper.java707 public Object getSystemService(String name) { method in class:ContextWrapper
708 return mBase.getSystemService(name);
H A DContext.java3088 public abstract @Nullable Object getSystemService(@ServiceName @NonNull String name); method in class:Context
3118 public final @Nullable <T> T getSystemService(@NonNull Class<T> serviceClass) { method in class:Context
3119 // Because subclasses may override getSystemService(String) we cannot
3123 return serviceName != null ? (T)getSystemService(serviceName) : null;
3135 * Use with {@link #getSystemService} to retrieve a
3143 * Use with {@link #getSystemService} to retrieve a
3147 * @see #getSystemService
3153 * Use with {@link #getSystemService} to retrieve a
3157 * @see #getSystemService
3163 * Use with {@link #getSystemService} t
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
H A DAccountManagerServiceTest.java150 when(mMockContext.getSystemService(Context.APP_OPS_SERVICE)).thenReturn(mMockAppOpsManager);
151 when(mMockContext.getSystemService(Context.USER_SERVICE)).thenReturn(mMockUserManager);
158 when(mMockContext.getSystemService(Context.DEVICE_POLICY_SERVICE)).thenReturn(
511 when(mMockContext.getSystemService(Context.DEVICE_POLICY_SERVICE)).thenReturn(
1020 when(mMockContext.getSystemService(Context.DEVICE_POLICY_SERVICE)).thenReturn(
1391 when(mMockContext.getSystemService(Context.DEVICE_POLICY_SERVICE)).thenReturn(
1889 when(mMockContext.getSystemService(Context.DEVICE_POLICY_SERVICE)).thenReturn(
3216 public Object getSystemService(String name) { method in class:AccountManagerServiceTest.MyMockContext
3217 return mMockContext.getSystemService(name);
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DDpmMockContext.java589 public Object getSystemService(String name) { method in class:DpmMockContext
/frameworks/base/test-runner/src/android/test/mock/
H A DMockContext.java580 public Object getSystemService(String name) { method in class:MockContext
/frameworks/base/tests/net/java/com/android/server/
H A DConnectivityServiceTest.java196 public Object getSystemService(String name) { method in class:ConnectivityServiceTest.MockContext
199 return super.getSystemService(name);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeContext.java612 public Object getSystemService(String service) { method in class:BridgeContext
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DBaseShortcutManagerTest.java136 public Object getSystemService(String name) { method in class:BaseShortcutManagerTest.BaseContext

Completed in 8570 milliseconds

12