Home
last modified time | relevance | path

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

123456

/cts/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/
DMyService.java63 final Context context = getApplicationContext();
73 return MyBroadcastReceiver.getCounter(getApplicationContext(), action, receiverName);
78 return MyBroadcastReceiver.checkNetworkStatus(getApplicationContext());
83 return MyBroadcastReceiver.getRestrictBackgroundStatus(getApplicationContext());
88 MyBroadcastReceiver .sendNotification(getApplicationContext(), NOTIFICATION_CHANNEL_ID,
173 final Context context = getApplicationContext(); in onCreate()
177 mCm = (ConnectivityManager) getApplicationContext() in onCreate()
183 final Context context = getApplicationContext(); in onDestroy()
188 getApplicationContext().unregisterReceiver(mReceiver); in onDestroy()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DMagneticFieldMeasurementTestActivity.java78 getApplicationContext(), in testNorm()
157 getApplicationContext(), in testStandardDeviation()
179 getApplicationContext(), in testCalibratedAndUncalibrated()
183 getApplicationContext(), in testCalibratedAndUncalibrated()
204 getApplicationContext(), in calibrateMagnetometer()
DStepSensorPermissionTestActivity.java67 mSensorManager = (SensorManager) getApplicationContext() in activitySetUp()
70 mHasAccelFeature = getApplicationContext().getPackageManager().hasSystemFeature( in activitySetUp()
72 mHasStepCounterFeature = getApplicationContext().getPackageManager().hasSystemFeature( in activitySetUp()
74 mHasStepDetectorFeature = getApplicationContext().getPackageManager().hasSystemFeature( in activitySetUp()
150 return getApplicationContext().checkSelfPermission(permission) == in hasPermission()
DGyroscopeMeasurementTestActivity.java117 getApplicationContext(), in testCalibratedAndUncalibrated()
121 getApplicationContext(), in testCalibratedAndUncalibrated()
154 getApplicationContext(), in verifyMeasurements()
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/
DScriptC_set_target_api_13.java34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_13()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_13()
37 rs.getApplicationContext().getPackageName())); in ScriptC_set_target_api_13()
DScriptC_set_target_api_16.java34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_16()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_16()
37 rs.getApplicationContext().getPackageName())); in ScriptC_set_target_api_16()
DScriptC_set_target_api_14.java34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_14()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_14()
37 rs.getApplicationContext().getPackageName())); in ScriptC_set_target_api_14()
DScriptC_set_target_api_15.java34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_15()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_15()
37 rs.getApplicationContext().getPackageName())); in ScriptC_set_target_api_15()
DScriptC_set_target_api_11.java34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_11()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_11()
37 rs.getApplicationContext().getPackageName())); in ScriptC_set_target_api_11()
DScriptC_set_target_api_12.java34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_12()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_12()
37 rs.getApplicationContext().getPackageName())); in ScriptC_set_target_api_12()
DScriptC_set_target_api_too_high.java34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_too_high()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_too_high()
37 rs.getApplicationContext().getPackageName())); in ScriptC_set_target_api_too_high()
DScriptC_set_target_api_19.java34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_19()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_19()
37 rs.getApplicationContext().getPackageName())); in ScriptC_set_target_api_19()
DScriptC_set_target_api_18.java34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_18()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_18()
37 rs.getApplicationContext().getPackageName())); in ScriptC_set_target_api_18()
DScriptC_set_target_api_17.java34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_17()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_17()
37 rs.getApplicationContext().getPackageName())); in ScriptC_set_target_api_17()
DScriptC_leak.java34 rs.getApplicationContext().getResources(), in ScriptC_leak()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_leak()
37 rs.getApplicationContext().getPackageName())); in ScriptC_leak()
/cts/tests/tests/telephony/current/src/android/telephony/euicc/cts/
DEuiccTestResolutionActivity.java71 new Intent(getApplicationContext(), EuiccResolutionActivity.class); in testStartResolutionActivity()
74 getApplicationContext(), in testStartResolutionActivity()
96 getApplicationContext(), REQUEST_CODE, intent, PendingIntent.FLAG_UPDATE_CURRENT); in createCallbackIntent()
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DDefaultSmsAppHelper.java42 Context context = ApplicationProvider.getApplicationContext(); in ensureDefaultSmsApp()
78 Context context = ApplicationProvider.getApplicationContext(); in hasTelephony()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DRenderScriptTest.java50 assertEquals(mRS.getApplicationContext(), in testAPI()
51 getContext().getApplicationContext()); in testAPI()
/cts/tests/tests/classloaderfactory/src/android/app/classloaderfactory/cts/
DAppComponentFactoryTest.java64 assertEquals(mContext.getApplicationContext().getClass().getName(), in testApplication()
66 assertNotEquals(mContext.getApplicationContext().getClass().getClassLoader(), in testApplication()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/biometrics/
DBiometricTest.java158 mBiometricManager = getApplicationContext().getSystemService(BiometricManager.class); in onCreate()
159 mKeyguardManager = getApplicationContext().getSystemService(KeyguardManager.class); in onCreate()
167 PackageManager pm = getApplicationContext().getPackageManager(); in onCreate()
257 BiometricPrompt.Builder builder = new BiometricPrompt.Builder(getApplicationContext()) in showBiometricPrompt()
273 Toast.makeText(getApplicationContext(), string, Toast.LENGTH_SHORT).show(); in showToastAndLog()
/cts/tests/app/app/src/android/app/stubs/
DBubblesTestService.java51 Notification n = getNotificationForTest(testCase, getApplicationContext()); in onStartCommand()
64 PendingIntent.getActivity(getApplicationContext(), 0, intent, 0); in getNotificationForTest()
/cts/tests/autofillservice/src/android/autofillservice/cts/augmented/
DAugmentedAutofillManualActivityLaunchTestCase.java57 sContext.getApplicationContext() in allowAugmentedAutofill()
64 sContext.getApplicationContext().setAutofillOptions(null); in resetAllowAugmentedAutofill()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DBubblesVerifierActivity.java119 Toast.makeText(getApplicationContext(), in onCreate()
212 final String packageName = getApplicationContext().getPackageName(); in performTestAction()
467 Context context = getApplicationContext(); in getBasicBubbleBuilder()
472 .setIcon(Icon.createWithResource(getApplicationContext(), in getBasicBubbleBuilder()
480 Context context = getApplicationContext(); in getBasicNotifBuilder()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/base/
DGnssCtsTestActivity.java136 getApplicationContext(), getClass().getName(), passCount, in executeTests()
141 return new GnssTestDetails(getApplicationContext(), getClass().getName(), result); in executeTests()
163 new GnssCtsTestSuite(getApplicationContext(), testSuite); in runnerForClass()
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DAbstractContentCaptureIntegrationAutoActivityLaunchTest.java53 final Application app = (Application) sContext.getApplicationContext(); in registerLifecycleCallback()
62 final Application app = (Application) sContext.getApplicationContext(); in unregisterLifecycleCallback()

123456