Home
last modified time | relevance | path

Searched refs:getBaseContext (Results 1 – 25 of 44) sorted by relevance

12

/packages/modules/AdServices/sdksandbox/framework/java/android/app/sdksandbox/
DSandboxedSdkContext.java129 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()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/
DTestNotificationService.java95 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()
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/sdksandbox/
DSandboxedActivityTest.java225 Mockito.when(mSdkContext.getBaseContext()).thenCallRealMethod(); in testAttachBaseContextWrapsTheBaseContextIfCustomizedSdkContextFlagIsEnabled()
230 (SandboxedSdkContext) sandboxedActivity.getBaseContext(); in testAttachBaseContextWrapsTheBaseContextIfCustomizedSdkContextFlagIsEnabled()
232 assertThat(newBaseContext.getBaseContext()) in testAttachBaseContextWrapsTheBaseContextIfCustomizedSdkContextFlagIsEnabled()
/packages/services/Telephony/testapps/TestSatelliteApp/src/com/android/phone/testapps/satellitetestapp/
DSatelliteTestApp.java52 getBaseContext().bindService(new Intent(getBaseContext(), in onCreate()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DAirplaneModeEnablerTest.java49 mContext = RuntimeEnvironment.application.getBaseContext(); in setUp()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
DGlobals.java53 context = ((ContextWrapper) context).getBaseContext(); in getProvider()
/packages/modules/AdServices/sdksandbox/tests/unittest/src/android/app/sdksandbox/
DSandboxedSdkContextUnitTest.java292 assertThat(sdkContext.getBaseContext()).isEqualTo(baseContext); in testCreateContextWithNewBase()
298 assertThat(contextWithNewBase.getBaseContext()).isEqualTo(newBaseContext); in testCreateContextWithNewBase()
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/
DFakeContactsProviderTestBase.java85 return getBaseContext().getSystemService(name); in getSystemService()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DRecentsViewContainer.java48 return containerFromContext(((ContextWrapper) context).getBaseContext()); in containerFromContext()
/packages/apps/Stk/src/com/android/stk/
DStkMain.java51 mContext = getBaseContext(); in onCreate()
DStkLauncherActivity.java63 mContext = getBaseContext(); in onCreate()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DKeyboardLayoutDialogFragment.java76 Context context = activity.getBaseContext(); in onAttach()
176 return new KeyboardLayoutLoader(getActivity().getBaseContext(), mInputDeviceIdentifier); in onCreateLoader()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DFullPreviewActivity.java100 return !ActivityUtils.isSUWMode(getBaseContext()); in isUpArrowSupported()
DViewOnlyPreviewActivity.java95 return !ActivityUtils.isSUWMode(getBaseContext()); in isUpArrowSupported()
DPreviewActivity.java92 return !ActivityUtils.isSUWMode(getBaseContext()); in isUpArrowSupported()
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DScreenshotService.java90 NotificationManager manager = getBaseContext().getSystemService(NotificationManager.class); in buildNotification()
/packages/services/Telephony/src/com/android/phone/
DErrorDialogActivity.java68 getBaseContext() in showDialog()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DRecentsActivity.java365 AccessibilityManagerCompat.sendStateEventToTest(getBaseContext(), OVERVIEW_STATE_ORDINAL); in onResume()
390 AccessibilityManagerCompat.sendStateEventToTest(getBaseContext(), in onStateSetEnd()
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/task/
DConnectMobileNetworkTaskRoboTest.java51 Shadow.extract(RuntimeEnvironment.application.getBaseContext()); in setUpMocks()
/packages/modules/HealthFitness/backuprestore/tests/src/com/android/health/connect/backuprestore/
DHealthConnectBackupAgentTest.java208 public Context getBaseContext() { in getBaseContext() method in HealthConnectBackupAgentTest.TestableHealthConnectBackupAgent
/packages/modules/AdServices/sdksandbox/SdkSandbox/src/com/android/sdksandbox/
DSandboxedSdkHolder.java78 mContext = sandboxedSdkContext.getBaseContext(); in init()
/packages/apps/TV/tuner/tests/robotests/javatests/com/android/tv/tuner/tvinput/
DTunerSessionWorkerExoV2Test.java95 ShadowContextImpl shadowContext = Shadow.extract(context.getBaseContext()); in setUp()
DTunerSessionWorkerTest.java90 ShadowContextImpl shadowContext = Shadow.extract(context.getBaseContext()); in setUp()
/packages/apps/Launcher3/src/com/android/launcher3/
DBaseActivity.java418 return fromContext(((ContextWrapper) context).getBaseContext()); in fromContext()
/packages/apps/Car/Launcher/app/src/com/android/car/carlauncher/
DCarLauncher.java363 Log.i(TAG, "TOS state updated:" + AppLauncherUtils.tosAccepted(getBaseContext())); in setupContentObserversForTos()

12