Home
last modified time | relevance | path

Searched refs:getApplicationContext (Results 1 – 25 of 362) sorted by relevance

12345678910>>...15

/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/app/
DRunLocalBenchmarksActivity.java306 intent = new Intent(getApplicationContext(), ListViewScrollActivity.class); in runBenchmarkForId()
309 intent = new Intent(getApplicationContext(), ImageListViewScrollActivity.class); in runBenchmarkForId()
312 intent = new Intent(getApplicationContext(), ShadowGridActivity.class); in runBenchmarkForId()
315 intent = new Intent(getApplicationContext(), TextScrollActivity.class); in runBenchmarkForId()
320 intent = new Intent(getApplicationContext(), TextScrollActivity.class); in runBenchmarkForId()
325 intent = new Intent(getApplicationContext(), EditTextInputActivity.class); in runBenchmarkForId()
328 intent = new Intent(getApplicationContext(), FullScreenOverdrawActivity.class); in runBenchmarkForId()
331 intent = new Intent(getApplicationContext(), BitmapUploadActivity.class); in runBenchmarkForId()
335 intent = new Intent(getApplicationContext(), MemoryActivity.class); in runBenchmarkForId()
340 intent = new Intent(getApplicationContext(), MemoryActivity.class); in runBenchmarkForId()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/policy/
DDecorContextTest.java65 mContext = ApplicationProvider.getApplicationContext(); in setUp()
70 final Context baseContext = Mockito.spy(mContext.getApplicationContext()); in testDecorContextWithDefaultDisplay()
90 DecorContext context = new DecorContext(mContext.getApplicationContext(), window); in testDecorContextWithExternalDisplay()
105 final DecorContext decorContext = new DecorContext(mContext.getApplicationContext(), in testGetWindowManagerFromVisualDecorContext()
120 final DecorContext decorContext = new DecorContext(mContext.getApplicationContext(), in testIsUiContextFromVisualDecorContext()
/frameworks/base/core/tests/coretests/src/android/content/
DContextWrapperTest.java116 final Context appContext = ApplicationProvider.getApplicationContext(); in testRegisterComponentCallbacks()
144 public Context getApplicationContext() { in getApplicationContext() method in ContextWrapperTest.TestContextWrapper
152 return ApplicationProvider.getApplicationContext(); in getApplicationContext()
154 return super.getApplicationContext(); in getApplicationContext()
/frameworks/base/packages/SettingsLib/DataStore/tests/src/com/android/settingslib/datastore/
DBackupRestoreFileStorageTest.kt21 import androidx.test.core.app.ApplicationProvider.getApplicationContext
32 private val application: Application = getApplicationContext()
96 ) : BackupRestoreFileStorage(getApplicationContext(), filePath) {
/frameworks/base/tests/RollbackTest/SampleRollbackApp/src/com/android/sample/rollbackapp/
DMainActivity.java58 mRollbackManager = getApplicationContext().getSystemService(RollbackManager.class); in onCreate()
67 getApplicationContext().registerReceiver( in onCreate()
92 intent.setPackage(getApplicationContext().getPackageName()); in initTriggerRollbackButton()
94 getApplicationContext(), 0, intent, FLAG_MUTABLE); in initTriggerRollbackButton()
110 LayoutInflater mInflater = LayoutInflater.from(getApplicationContext());
/frameworks/rs/support/java/src/androidx/renderscript/
DScriptC.java103 int targetSdkVersion = rs.getApplicationContext().getApplicationInfo().targetSdkVersion; in throwExceptionIfSDKTooHigh()
140 String cachePath = rs.getApplicationContext().getCacheDir().toString(); in internalCreate()
150 String cachePath = rs.getApplicationContext().getCacheDir().toString(); in internalStringCreate()
/frameworks/base/apct-tests/perftests/contentcapture/src/android/view/contentcapture/
DAbstractContentCapturePerfTestCase.java159 sContext.getApplicationContext().setContentCaptureOptions(options); in setAllowSelf()
169 sContext.getApplicationContext().setContentCaptureOptions(null); in clearOptions()
211 final Application app = (Application) sContext.getApplicationContext(); in registerLifecycleCallback()
220 final Application app = (Application) sContext.getApplicationContext(); in unregisterLifecycleCallback()
DCustomTestActivity.java105 final LinearLayout layout = new LinearLayout(getApplicationContext()); in createHorizontalLayout()
111 final LinearLayout group = new LinearLayout(getApplicationContext()); in createItem()
/frameworks/base/services/tests/servicestests/src/com/android/server/textclassifier/
DIconsContentProviderTest.java39 final Context context = ApplicationProvider.getApplicationContext(); in testLoadResource()
65 final Context context = ApplicationProvider.getApplicationContext(); in testLoadResource_badUri()
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/util/
DCarHelperRegistry.java57 final Context applicationContext = context.getApplicationContext(); in getRegistry()
84 .getOrCreateHelper(context.getApplicationContext(), cls, creator); in getOrCreateWithAppContext()
/frameworks/base/tests/TrustTests/src/android/trust/test/lib/
DLockStateTrackingRule.kt24 import androidx.test.core.app.ApplicationProvider.getApplicationContext
37 private val context: Context = getApplicationContext()
DTrustAgentRule.kt25 import androidx.test.core.app.ApplicationProvider.getApplicationContext
45 private val context: Context = getApplicationContext()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/connectivity/
DConnectivitySubsystemsRecoveryManagerTest.java43 Context mContext = ApplicationProvider.getApplicationContext();
45 Handler mMainHandler = ApplicationProvider.getApplicationContext().getMainThreadHandler();
/frameworks/base/tests/TrustTests/src/android/trust/test/
DUserUnlockRequestTest.kt25 import androidx.test.core.app.ApplicationProvider.getApplicationContext
41 private val context = getApplicationContext<Context>()
DIsActiveUnlockRunningTest.kt28 import androidx.test.core.app.ApplicationProvider.getApplicationContext
49 private val context: Context = getApplicationContext()
/frameworks/base/tests/BinderLeakTest/java/com/android/test/binder/
DBinderTest.java49 Intent intent = new Intent(ApplicationProvider.getApplicationContext(), MyService.class); in testDeathRecipientLeaksOrNot()
151 return ApplicationProvider.getApplicationContext().getApplicationInfo().targetSdkVersion; in getSdkVersion()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DLocalBluetoothManager.java68 onInitCallback.onBluetoothManagerInitialized(context.getApplicationContext(), in getInstance()
111 mContext = context.getApplicationContext(); in LocalBluetoothManager()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTestApplication.java27 TestApplication.context = getApplicationContext(); in onCreate()
/frameworks/base/tests/FsVerityTest/FsVerityTestApp/src/com/android/fsverity/
DHelper.java60 Context context = ApplicationProvider.getApplicationContext(); in prepareTest()
89 Context context = ApplicationProvider.getApplicationContext(); in verifyFileRead()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/
DBatteryUtilsTest.java66 mContext = spy(ApplicationProvider.getApplicationContext()); in setUp()
67 doReturn(mContext).when(mContext).getApplicationContext(); in setUp()
/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
DAudioVolumesTestRule.java19 import static androidx.test.core.app.ApplicationProvider.getApplicationContext;
105 mContext = getApplicationContext(); in setUp()
DAudioVolumeGroupTest.java19 import static androidx.test.core.app.ApplicationProvider.getApplicationContext;
56 mAudioManager = getApplicationContext().getSystemService(AudioManager.class); in setUp()
DAudioPolicyDeathTestActivity.java51 mAudioManager = getApplicationContext().getSystemService(AudioManager.class); in onCreate()
69 AudioPolicy.Builder audioPolicyBuilder = new AudioPolicy.Builder(getApplicationContext()); in onCreate()
/frameworks/base/services/tests/servicestests/test-apps/SimpleServiceTestApp/src/com/android/servicestests/apps/simpleservicetestapp/
DSimpleService.java110 if (getApplicationContext().bindService(intent, conn, BIND_AUTO_CREATE | flags)) { in bindToService()
123 getApplicationContext().unbindService(conn); in unbindService()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/sidecar/
DSidecarProvider.java39 ? new SampleSidecarImpl(context.getApplicationContext()) in getSidecarImpl()

12345678910>>...15