Home
last modified time | relevance | path

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

1234567891011

/aosp14/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/app/
H A DRunLocalBenchmarksActivity.java306 intent = new Intent(getApplicationContext(), ListViewScrollActivity.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()
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()
345 intent = new Intent(getApplicationContext(), MemoryActivity.class); in runBenchmarkForId()
350 intent = new Intent(getApplicationContext(), MemoryActivity.class); in runBenchmarkForId()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/policy/
H A 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()
/aosp14/frameworks/base/core/tests/coretests/src/android/content/
H A 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()
H A DContextTest.java123 final Context appContext = ApplicationProvider.getApplicationContext(); in testIsUiContext_appContext_returnsFalse()
156 final Context appContext = ApplicationProvider.getApplicationContext(); in verifyGetDisplayFromDisplayContextDerivedContext()
239 final Context appContext = ApplicationProvider.getApplicationContext(); in createUiContext()
/aosp14/frameworks/base/tests/RollbackTest/SampleRollbackApp/src/com/android/sample/rollbackapp/
H A 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());
/aosp14/frameworks/base/apct-tests/perftests/contentcapture/src/android/view/contentcapture/
H A 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()
H A DCustomTestActivity.java105 final LinearLayout layout = new LinearLayout(getApplicationContext()); in createHorizontalLayout()
111 final LinearLayout group = new LinearLayout(getApplicationContext()); in createItem()
/aosp14/frameworks/base/tests/TrustTests/src/android/trust/test/lib/
H A DLockStateTrackingRule.kt23 import androidx.test.core.app.ApplicationProvider.getApplicationContext
32 private val context: Context = getApplicationContext()
H A DTrustAgentRule.kt24 import androidx.test.core.app.ApplicationProvider.getApplicationContext
42 private val context: Context = getApplicationContext()
H A DScreenLockRule.kt23 import androidx.test.core.app.ApplicationProvider.getApplicationContext
37 private val context: Context = getApplicationContext()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/textclassifier/
H A DIconsContentProviderTest.java39 final Context context = ApplicationProvider.getApplicationContext(); in testLoadResource()
65 final Context context = ApplicationProvider.getApplicationContext(); in testLoadResource_badUri()
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/connectivity/
H A DConnectivitySubsystemsRecoveryManagerTest.java43 Context mContext = ApplicationProvider.getApplicationContext();
45 Handler mMainHandler = ApplicationProvider.getApplicationContext().getMainThreadHandler();
/aosp14/frameworks/base/tests/TrustTests/src/android/trust/test/
H A DUserUnlockRequestTest.kt25 import androidx.test.core.app.ApplicationProvider.getApplicationContext
41 private val context = getApplicationContext<Context>()
H A DCanUnlockWithActiveUnlockTest.kt28 import androidx.test.core.app.ApplicationProvider.getApplicationContext
49 private val context: Context = getApplicationContext()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DLocalBluetoothManager.java68 onInitCallback.onBluetoothManagerInitialized(context.getApplicationContext(), in getInstance()
111 mContext = context.getApplicationContext(); in LocalBluetoothManager()
/aosp14/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
H A DAudioVolumeGroupTest.java19 import static androidx.test.core.app.ApplicationProvider.getApplicationContext;
56 mAudioManager = getApplicationContext().getSystemService(AudioManager.class); in setUp()
H A DAudioVolumesTestRule.java19 import static androidx.test.core.app.ApplicationProvider.getApplicationContext;
105 mContext = getApplicationContext(); in setUp()
H A DAudioPolicyDeathTestActivity.java51 mAudioManager = getApplicationContext().getSystemService(AudioManager.class); in onCreate()
69 AudioPolicy.Builder audioPolicyBuilder = new AudioPolicy.Builder(getApplicationContext()); in onCreate()
H A DAudioManagerTest.java19 import static androidx.test.core.app.ApplicationProvider.getApplicationContext;
62 mAudioManager = getApplicationContext().getSystemService(AudioManager.class); in setUp()
288 mAudioManager.registerVolumeGroupCallback(getApplicationContext().getMainExecutor(), in testVolumeGroupCallback()
H A DAudioVolumeGroupChangeHandlerTest.java19 import static androidx.test.core.app.ApplicationProvider.getApplicationContext;
56 mAudioManager = getApplicationContext().getSystemService(AudioManager.class); in setUp()
/aosp14/frameworks/base/services/tests/servicestests/test-apps/SimpleServiceTestApp/src/com/android/servicestests/apps/simpleservicetestapp/
H A DSimpleService.java110 if (getApplicationContext().bindService(intent, conn, BIND_AUTO_CREATE | flags)) { in bindToService()
123 getApplicationContext().unbindService(conn); in unbindService()
/aosp14/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/sidecar/
H A DSidecarProvider.java31 return new SampleSidecarImpl(context.getApplicationContext()); in getSidecarImpl()
/aosp14/frameworks/base/packages/Shell/src/com/android/shell/
H A DHeapDumpActivity.java106 deleteIntent.setClass(getApplicationContext(), HeapDumpReceiver.class); in onCreate()
128 deleteIntent.setClass(getApplicationContext(), HeapDumpReceiver.class); in onStop()
/aosp14/frameworks/base/tests/AmSlam/src/test/amslam/
H A DMainActivity.java61 sAppContext = getApplicationContext(); in onCreate()
108 Intent intent = new Intent(getApplicationContext(), target); in continueSend()
/aosp14/frameworks/base/core/java/android/nfc/
H A DNfcManager.java52 context = context.getApplicationContext(); in NfcManager()

1234567891011