Searched refs:getSystemServiceName (Results 1 - 25 of 30) sorted by relevance

12

/frameworks/layoutlib/bridge/src/android/app/
H A DSystemServiceRegistry_Accessor.java20 * Class to allow accessing {@link SystemServiceRegistry#getSystemServiceName}
26 public static String getSystemServiceName(Class<?> serviceClass) { method in class:SystemServiceRegistry_Accessor
27 return SystemServiceRegistry.getSystemServiceName(serviceClass);
/frameworks/layoutlib/bridge/tests/src/android/app/
H A DSystemServiceRegistry_AccessorTest.java33 SystemServiceRegistry_Accessor.getSystemServiceName(AccessibilityManager.class));
35 SystemServiceRegistry_Accessor.getSystemServiceName(InputManager.class));
37 SystemServiceRegistry_Accessor.getSystemServiceName(WindowManager.class));
/frameworks/support/compat/src/androidTest/java/androidx/core/content/
H A DContextCompatTest.java60 public void getSystemServiceName() { method in class:ContextCompatTest
61 String serviceName = ContextCompat.getSystemServiceName(mContext, LayoutInflater.class);
67 assertNull(ContextCompat.getSystemServiceName(mContext, String.class));
79 public String getSystemServiceName(Class<?> serviceClass) {
81 return super.getSystemServiceName(serviceClass);
85 String serviceName = ContextCompat.getSystemServiceName(c, LayoutInflater.class);
113 public String getSystemServiceName(Class<?> serviceClass) {
115 return super.getSystemServiceName(serviceClass);
/frameworks/base/packages/CarrierDefaultApp/tests/unit/src/com/android/carrierdefaultapp/
H A DTestContext.java35 final String name = getSystemServiceName(cls);
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/content/
H A DContextTest.kt36 override fun getSystemServiceName(serviceClass: Class<*>): String? {
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DCrossProfileAppsTest.java76 when(mContext.getSystemServiceName(UserManager.class)).thenReturn(Context.USER_SERVICE);
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DVisualVoicemailSmsFilterTest.java72 when(mContext.getSystemServiceName(TelephonyManager.class))
H A DContextFixture.java258 public String getSystemServiceName(Class<?> serviceClass) { method in class:ContextFixture.FakeContext
262 return super.getSystemServiceName(serviceClass);
/frameworks/base/packages/Shell/tests/src/com/android/shell/
H A DBugreportProgressServiceTest.java81 public String getSystemServiceName(Class<?> serviceClass) { method in class:BugreportProgressServiceTest.MyContext
88 return super.getSystemServiceName(serviceClass);
/frameworks/support/compat/src/main/java/androidx/core/content/
H A DContextCompat.java698 String serviceName = getSystemServiceName(context, serviceClass);
709 * @see Context#getSystemServiceName(Class)
712 public static String getSystemServiceName(@NonNull Context context, method in class:ContextCompat
715 return context.getSystemServiceName(serviceClass);
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DDpmMockContext.java210 public String getSystemServiceName(Class<?> serviceClass) { method in class:DpmMockContext
211 return realTestContext.getSystemServiceName(serviceClass);
/frameworks/base/services/tests/servicestests/src/com/android/server/job/controllers/
H A DConnectivityControllerTest.java98 when(mContext.getSystemServiceName(ConnectivityManager.class))
102 when(mContext.getSystemServiceName(NetworkPolicyManager.class))
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DUserDataPreparerTest.java86 when(mContextMock.getSystemServiceName(StorageManager.class))
H A DBaseShortcutManagerTest.java151 public String getSystemServiceName(Class<?> serviceClass) { method in class:BaseShortcutManagerTest.BaseContext
152 return getTestContext().getSystemServiceName(serviceClass);
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
H A DPlatformKeyManagerTest.java86 when(mContext.getSystemServiceName(any())).thenReturn("test");
H A DRecoverableKeyStoreManagerTest.java177 when(mMockContext.getSystemServiceName(any())).thenReturn("test");
/frameworks/base/tests/net/java/com/android/server/connectivity/
H A DMultipathPolicyTrackerTest.java113 when(mContext.getSystemServiceName(serviceClass)).thenReturn(serviceName);
/frameworks/base/tests/testables/src/android/testing/
H A DTestableContext.java141 addMockSystemService(getSystemServiceName(service), mock);
/frameworks/base/core/java/android/content/
H A DContext.java3246 String serviceName = getSystemServiceName(serviceClass);
3256 public abstract @Nullable String getSystemServiceName(@NonNull Class<?> serviceClass); method in class:Context
H A DContextWrapper.java732 public String getSystemServiceName(Class<?> serviceClass) { method in class:ContextWrapper
733 return mBase.getSystemServiceName(serviceClass);
/frameworks/base/test-mock/src/android/test/mock/
H A DMockContext.java603 public String getSystemServiceName(Class<?> serviceClass) { method in class:MockContext
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeContext.java650 public String getSystemServiceName(Class<?> serviceClass) { method in class:BridgeContext
651 return SystemServiceRegistry_Accessor.getSystemServiceName(serviceClass);
/frameworks/base/core/java/android/app/
H A DContextImpl.java1725 public String getSystemServiceName(Class<?> serviceClass) { method in class:ContextImpl
1726 return SystemServiceRegistry.getSystemServiceName(serviceClass);
H A DSystemServiceRegistry.java1020 public static String getSystemServiceName(Class<?> serviceClass) { method in class:SystemServiceRegistry
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
H A DAccountManagerServiceTest.java152 when(mMockContext.getSystemServiceName(AppOpsManager.class)).thenReturn(
3221 public String getSystemServiceName(Class<?> serviceClass) { method in class:AccountManagerServiceTest.MyMockContext
3222 return mMockContext.getSystemServiceName(serviceClass);

Completed in 394 milliseconds

12