/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/app/ |
D | RunLocalBenchmarksActivity.java | 306 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/ |
D | DecorContextTest.java | 65 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/ |
D | ContextWrapperTest.java | 116 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/ |
D | BackupRestoreFileStorageTest.kt | 21 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/ |
D | MainActivity.java | 58 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/ |
D | ScriptC.java | 103 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/ |
D | AbstractContentCapturePerfTestCase.java | 159 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()
|
D | CustomTestActivity.java | 105 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/ |
D | IconsContentProviderTest.java | 39 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/ |
D | CarHelperRegistry.java | 57 final Context applicationContext = context.getApplicationContext(); in getRegistry() 84 .getOrCreateHelper(context.getApplicationContext(), cls, creator); in getOrCreateWithAppContext()
|
/frameworks/base/tests/TrustTests/src/android/trust/test/lib/ |
D | LockStateTrackingRule.kt | 24 import androidx.test.core.app.ApplicationProvider.getApplicationContext 37 private val context: Context = getApplicationContext()
|
D | TrustAgentRule.kt | 25 import androidx.test.core.app.ApplicationProvider.getApplicationContext 45 private val context: Context = getApplicationContext()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/connectivity/ |
D | ConnectivitySubsystemsRecoveryManagerTest.java | 43 Context mContext = ApplicationProvider.getApplicationContext(); 45 Handler mMainHandler = ApplicationProvider.getApplicationContext().getMainThreadHandler();
|
/frameworks/base/tests/TrustTests/src/android/trust/test/ |
D | UserUnlockRequestTest.kt | 25 import androidx.test.core.app.ApplicationProvider.getApplicationContext 41 private val context = getApplicationContext<Context>()
|
D | IsActiveUnlockRunningTest.kt | 28 import androidx.test.core.app.ApplicationProvider.getApplicationContext 49 private val context: Context = getApplicationContext()
|
/frameworks/base/tests/BinderLeakTest/java/com/android/test/binder/ |
D | BinderTest.java | 49 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/ |
D | LocalBluetoothManager.java | 68 onInitCallback.onBluetoothManagerInitialized(context.getApplicationContext(), in getInstance() 111 mContext = context.getApplicationContext(); in LocalBluetoothManager()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | TestApplication.java | 27 TestApplication.context = getApplicationContext(); in onCreate()
|
/frameworks/base/tests/FsVerityTest/FsVerityTestApp/src/com/android/fsverity/ |
D | Helper.java | 60 Context context = ApplicationProvider.getApplicationContext(); in prepareTest() 89 Context context = ApplicationProvider.getApplicationContext(); in verifyFileRead()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/ |
D | BatteryUtilsTest.java | 66 mContext = spy(ApplicationProvider.getApplicationContext()); in setUp() 67 doReturn(mContext).when(mContext).getApplicationContext(); in setUp()
|
/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/ |
D | AudioVolumesTestRule.java | 19 import static androidx.test.core.app.ApplicationProvider.getApplicationContext; 105 mContext = getApplicationContext(); in setUp()
|
D | AudioVolumeGroupTest.java | 19 import static androidx.test.core.app.ApplicationProvider.getApplicationContext; 56 mAudioManager = getApplicationContext().getSystemService(AudioManager.class); in setUp()
|
D | AudioPolicyDeathTestActivity.java | 51 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/ |
D | SimpleService.java | 110 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/ |
D | SidecarProvider.java | 39 ? new SampleSidecarImpl(context.getApplicationContext()) in getSidecarImpl()
|