/cts/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/ |
D | MyService.java | 63 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/ |
D | MagneticFieldMeasurementTestActivity.java | 78 getApplicationContext(), in testNorm() 157 getApplicationContext(), in testStandardDeviation() 179 getApplicationContext(), in testCalibratedAndUncalibrated() 183 getApplicationContext(), in testCalibratedAndUncalibrated() 204 getApplicationContext(), in calibrateMagnetometer()
|
D | StepSensorPermissionTestActivity.java | 67 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()
|
D | GyroscopeMeasurementTestActivity.java | 117 getApplicationContext(), in testCalibratedAndUncalibrated() 121 getApplicationContext(), in testCalibratedAndUncalibrated() 154 getApplicationContext(), in verifyMeasurements()
|
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/ |
D | ScriptC_set_target_api_13.java | 34 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()
|
D | ScriptC_set_target_api_16.java | 34 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()
|
D | ScriptC_set_target_api_14.java | 34 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()
|
D | ScriptC_set_target_api_15.java | 34 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()
|
D | ScriptC_set_target_api_11.java | 34 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()
|
D | ScriptC_set_target_api_12.java | 34 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()
|
D | ScriptC_set_target_api_too_high.java | 34 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()
|
D | ScriptC_set_target_api_19.java | 34 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()
|
D | ScriptC_set_target_api_18.java | 34 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()
|
D | ScriptC_set_target_api_17.java | 34 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()
|
D | ScriptC_leak.java | 34 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/ |
D | EuiccTestResolutionActivity.java | 71 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/ |
D | DefaultSmsAppHelper.java | 42 Context context = ApplicationProvider.getApplicationContext(); in ensureDefaultSmsApp() 78 Context context = ApplicationProvider.getApplicationContext(); in hasTelephony()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | RenderScriptTest.java | 50 assertEquals(mRS.getApplicationContext(), in testAPI() 51 getContext().getApplicationContext()); in testAPI()
|
/cts/tests/tests/classloaderfactory/src/android/app/classloaderfactory/cts/ |
D | AppComponentFactoryTest.java | 64 assertEquals(mContext.getApplicationContext().getClass().getName(), in testApplication() 66 assertNotEquals(mContext.getApplicationContext().getClass().getClassLoader(), in testApplication()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/biometrics/ |
D | BiometricTest.java | 158 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/ |
D | BubblesTestService.java | 51 Notification n = getNotificationForTest(testCase, getApplicationContext()); in onStartCommand() 64 PendingIntent.getActivity(getApplicationContext(), 0, intent, 0); in getNotificationForTest()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/augmented/ |
D | AugmentedAutofillManualActivityLaunchTestCase.java | 57 sContext.getApplicationContext() in allowAugmentedAutofill() 64 sContext.getApplicationContext().setAutofillOptions(null); in resetAllowAugmentedAutofill()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | BubblesVerifierActivity.java | 119 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/ |
D | GnssCtsTestActivity.java | 136 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/ |
D | AbstractContentCaptureIntegrationAutoActivityLaunchTest.java | 53 final Application app = (Application) sContext.getApplicationContext(); in registerLifecycleCallback() 62 final Application app = (Application) sContext.getApplicationContext(); in unregisterLifecycleCallback()
|