Searched refs:getBaseContext (Results 1 – 25 of 44) sorted by relevance
12
129 Context newBaseContext = getBaseContext().createCredentialProtectedStorageContext(); in createCredentialProtectedStorageContext()142 Context newBaseContext = getBaseContext().createDeviceProtectedStorageContext(); in createDeviceProtectedStorageContext()196 return getBaseContext().getResources(); in getResources()206 return getBaseContext().getAssets(); in getAssets()216 return getBaseContext().getDataDir(); in getDataDir()237 Object service = getBaseContext().getSystemService(name); in getSystemService()248 return getBaseContext().getClassLoader(); in getClassLoader()
95 mFrameLayout = new FrameLayout(getBaseContext()); in onCreate()170 Context android_context = getBaseContext().createPackageContext(ANDROID_PACKAGENAME, in doCancel()191 getBaseContext(), notifiction); in getRemoteViews()204 View view = remoteViews.apply(getBaseContext(), mFrameLayout); in getProgresssBar()
225 Mockito.when(mSdkContext.getBaseContext()).thenCallRealMethod(); in testAttachBaseContextWrapsTheBaseContextIfCustomizedSdkContextFlagIsEnabled()230 (SandboxedSdkContext) sandboxedActivity.getBaseContext(); in testAttachBaseContextWrapsTheBaseContextIfCustomizedSdkContextFlagIsEnabled()232 assertThat(newBaseContext.getBaseContext()) in testAttachBaseContextWrapsTheBaseContextIfCustomizedSdkContextFlagIsEnabled()
52 getBaseContext().bindService(new Intent(getBaseContext(), in onCreate()
49 mContext = RuntimeEnvironment.application.getBaseContext(); in setUp()
53 context = ((ContextWrapper) context).getBaseContext(); in getProvider()
292 assertThat(sdkContext.getBaseContext()).isEqualTo(baseContext); in testCreateContextWithNewBase()298 assertThat(contextWithNewBase.getBaseContext()).isEqualTo(newBaseContext); in testCreateContextWithNewBase()
85 return getBaseContext().getSystemService(name); in getSystemService()
48 return containerFromContext(((ContextWrapper) context).getBaseContext()); in containerFromContext()
51 mContext = getBaseContext(); in onCreate()
63 mContext = getBaseContext(); in onCreate()
76 Context context = activity.getBaseContext(); in onAttach()176 return new KeyboardLayoutLoader(getActivity().getBaseContext(), mInputDeviceIdentifier); in onCreateLoader()
100 return !ActivityUtils.isSUWMode(getBaseContext()); in isUpArrowSupported()
95 return !ActivityUtils.isSUWMode(getBaseContext()); in isUpArrowSupported()
92 return !ActivityUtils.isSUWMode(getBaseContext()); in isUpArrowSupported()
90 NotificationManager manager = getBaseContext().getSystemService(NotificationManager.class); in buildNotification()
68 getBaseContext() in showDialog()
365 AccessibilityManagerCompat.sendStateEventToTest(getBaseContext(), OVERVIEW_STATE_ORDINAL); in onResume()390 AccessibilityManagerCompat.sendStateEventToTest(getBaseContext(), in onStateSetEnd()
51 Shadow.extract(RuntimeEnvironment.application.getBaseContext()); in setUpMocks()
208 public Context getBaseContext() { in getBaseContext() method in HealthConnectBackupAgentTest.TestableHealthConnectBackupAgent
78 mContext = sandboxedSdkContext.getBaseContext(); in init()
95 ShadowContextImpl shadowContext = Shadow.extract(context.getBaseContext()); in setUp()
90 ShadowContextImpl shadowContext = Shadow.extract(context.getBaseContext()); in setUp()
418 return fromContext(((ContextWrapper) context).getBaseContext()); in fromContext()
363 Log.i(TAG, "TOS state updated:" + AppLauncherUtils.tosAccepted(getBaseContext())); in setupContentObserversForTos()