Home
last modified time | relevance | path

Searched refs:appContext (Results 1 – 25 of 27) sorted by relevance

12

/cts/hostsidetests/securitybulletin/test-apps/CVE-2024-34723/test-app/src/android/security/cts/CVE_2024_34723/
DDeviceTest.java50 final Context appContext = getApplicationContext(); in testPocCVE_2024_34723() local
56 appContext.getString( in testPocCVE_2024_34723()
58 .get(appContext) in testPocCVE_2024_34723()
64 appContext.registerReceiver( in testPocCVE_2024_34723()
72 appContext.getString( in testPocCVE_2024_34723()
77 appContext.getString(R.string.positive))); in testPocCVE_2024_34723()
82 appContext.getString(R.string.broadcastReceiverRegistered), in testPocCVE_2024_34723()
91 new IntentFilter(appContext.getString(R.string.testAction)), in testPocCVE_2024_34723()
106 appContext.sendBroadcast( in testPocCVE_2024_34723()
107 new Intent(appContext.getString(R.string.invokeVulnerabilityAction))); in testPocCVE_2024_34723()
/cts/tests/framework/base/localeconfig/src/com/android/cts/localeconfig/
DLocaleConfigTest.java90 Context appContext = mContext.createPackageContext(TEST_PACKAGE, 0); in testGetLocaleList() local
91 LocaleConfig localeConfig = new LocaleConfig(appContext); in testGetLocaleList()
108 Context appContext = mContext.createPackageContext(TEST_PACKAGE, 0); in testGetDefaultLocale() local
109 LocaleConfig localeConfig = new LocaleConfig(appContext); in testGetDefaultLocale()
122 Context appContext = mContext.createPackageContext(TEST_PACKAGE_WITHOUT_LOCALECONFIG, 0); in testNoLocaleConfigTag() local
123 LocaleConfig localeConfig = new LocaleConfig(appContext); in testNoLocaleConfigTag()
142 Context appContext = mContext.createPackageContext(TEST_PACKAGE, 0); in testGetOverrideLocaleConfig() local
143 LocaleConfig override = new LocaleConfig(appContext); in testGetOverrideLocaleConfig()
160 Context appContext = mContext.createPackageContext(TEST_PACKAGE, 0); in testGetOriginalLocaleConfig() local
165 appContext).getSupportedLocales().toLanguageTags().split( in testGetOriginalLocaleConfig()
DLocaleConfigAppUpdateTest.java126 Context appContext = mContext.createPackageContext(TEST_PACKAGE, 0); in testUpgradedApk_setFromApp_KeepAppLocales() local
127 LocaleConfig localeConfig = new LocaleConfig(appContext); in testUpgradedApk_setFromApp_KeepAppLocales()
174 Context appContext = mContext.createPackageContext(TEST_PACKAGE, 0); in testUpgradedApk_removeLocaleConfig_ClearAppLocales() local
175 LocaleConfig localeConfig = new LocaleConfig(appContext); in testUpgradedApk_removeLocaleConfig_ClearAppLocales()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8332/
Dpoc.c86 applicationContext* appContext = (applicationContext*) context; in ReadHandler() local
89 if (!appContext) { in ReadHandler()
92 rem = appContext->blobSize - appContext->readPos; in ReadHandler()
98 memcpy(buffer, &appContext->blob[appContext->readPos], count); in ReadHandler()
99 appContext->readPos += count; in ReadHandler()
/cts/tests/tests/identity/src/android/security/identity/cts/
DTestUtil.java101 Context appContext = InstrumentationRegistry.getTargetContext(); in getFeatureVersion() local
102 PackageManager pm = appContext.getPackageManager(); in getFeatureVersion()
123 IdentityCredentialStore store = IdentityCredentialStore.getInstance(appContext); in getFeatureVersion()
135 Context appContext = InstrumentationRegistry.getTargetContext(); in isHalImplemented() local
136 IdentityCredentialStore store = IdentityCredentialStore.getInstance(appContext); in isHalImplemented()
146 Context appContext = InstrumentationRegistry.getTargetContext(); in isDirectAccessHalImplemented() local
147 IdentityCredentialStore store = IdentityCredentialStore.getDirectAccessInstance(appContext); in isDirectAccessHalImplemented()
156 Context appContext = InstrumentationRegistry.getTargetContext(); in isLockScreenSupported() local
157 PackageManager pm = appContext.getPackageManager(); in isLockScreenSupported()
DProvisioningTest.java383 Context appContext = InstrumentationRegistry.getTargetContext(); in alreadyPersonalized() local
384 IdentityCredentialStore store = IdentityCredentialStore.getInstance(appContext); in alreadyPersonalized()
402 Context appContext = InstrumentationRegistry.getTargetContext(); in nonExistent() local
403 IdentityCredentialStore store = IdentityCredentialStore.getInstance(appContext); in nonExistent()
415 Context appContext = InstrumentationRegistry.getTargetContext(); in defaultStoreSupportsAnyDocumentType() local
416 IdentityCredentialStore store = IdentityCredentialStore.getInstance(appContext); in defaultStoreSupportsAnyDocumentType()
427 Context appContext = InstrumentationRegistry.getTargetContext(); in deleteCredentialByName() local
428 IdentityCredentialStore store = IdentityCredentialStore.getInstance(appContext); in deleteCredentialByName()
465 Context appContext = InstrumentationRegistry.getTargetContext(); in deleteCredential() local
466 IdentityCredentialStore store = IdentityCredentialStore.getInstance(appContext); in deleteCredential()
[all …]
DUserAuthTest.java82 Context appContext = InstrumentationRegistry.getTargetContext(); in performDeviceLock() local
83 KeyguardManager keyguardManager = (KeyguardManager)appContext. in performDeviceLock()
94 Context appContext = InstrumentationRegistry.getTargetContext(); in performDeviceUnlock() local
95 KeyguardManager keyguardManager = (KeyguardManager)appContext. in performDeviceUnlock()
120 Context appContext = InstrumentationRegistry.getTargetContext(); in testUserAuth() local
121 KeyguardManager keyguardManager = (KeyguardManager)appContext in testUserAuth()
145 Context appContext = InstrumentationRegistry.getTargetContext(); in doTestUserAuth() local
146 IdentityCredentialStore store = IdentityCredentialStore.getInstance(appContext); in doTestUserAuth()
DAttestationTest.java60 Context appContext = InstrumentationRegistry.getTargetContext(); in attestationTest() local
61 IdentityCredentialStore store = IdentityCredentialStore.getInstance(appContext); in attestationTest()
121 String appId = appContext.getPackageName(); in attestationTest()
DMultiDocumentPresentationTest.java97 Context appContext = InstrumentationRegistry.getTargetContext(); in multipleDocuments() local
98 IdentityCredentialStore store = IdentityCredentialStore.getInstance(appContext); in multipleDocuments()
228 Context appContext = InstrumentationRegistry.getTargetContext(); in cryptoObjectReturnsCorrectSession() local
229 IdentityCredentialStore store = IdentityCredentialStore.getInstance(appContext); in cryptoObjectReturnsCorrectSession()
DDynamicAuthTest.java70 Context appContext = InstrumentationRegistry.getTargetContext(); in dynamicAuthTest() local
71 IdentityCredentialStore store = IdentityCredentialStore.getInstance(appContext); in dynamicAuthTest()
467 Context appContext = InstrumentationRegistry.getTargetContext(); in dynamicAuthWithExpirationTest() local
468 IdentityCredentialStore store = IdentityCredentialStore.getInstance(appContext); in dynamicAuthWithExpirationTest()
596 Context appContext = InstrumentationRegistry.getTargetContext(); in dynamicAuthMinValidTimeTest() local
597 IdentityCredentialStore store = IdentityCredentialStore.getInstance(appContext); in dynamicAuthMinValidTimeTest()
810 Context appContext = InstrumentationRegistry.getTargetContext(); in dynamicAuthCanGetExpirations() local
811 IdentityCredentialStore store = IdentityCredentialStore.getInstance(appContext); in dynamicAuthCanGetExpirations()
876 Context appContext = InstrumentationRegistry.getTargetContext(); in dynamicAuthMultipleGetEntries() local
877 IdentityCredentialStore store = IdentityCredentialStore.getInstance(appContext); in dynamicAuthMultipleGetEntries()
[all …]
DX509CertificateSigningTest.java56 Context appContext = InstrumentationRegistry.getTargetContext(); in testSigning() local
94 AtomicFile file = new AtomicFile(appContext.getFileStreamPath(filename)); in testSigning()
DNoSessionEncryptionTest.java65 Context appContext = InstrumentationRegistry.getTargetContext(); in noSessionEncryption() local
66 IdentityCredentialStore store = IdentityCredentialStore.getInstance(appContext); in noSessionEncryption()
DIdentityApiTest.java181 Context appContext = InstrumentationRegistry.getTargetContext(); in testGetDirectAccessInstance() local
183 IdentityCredentialStore.getDirectAccessInstance(appContext); in testGetDirectAccessInstance()
DEphemeralKeyTest.java66 Context appContext = InstrumentationRegistry.getTargetContext(); in createEphemeralKey() local
67 IdentityCredentialStore store = IdentityCredentialStore.getInstance(appContext); in createEphemeralKey()
DReaderAuthTest.java160 Context appContext = InstrumentationRegistry.getTargetContext(); in readerAuth() local
161 IdentityCredentialStore store = IdentityCredentialStore.getInstance(appContext); in readerAuth()
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DPerformanceHintManagerTests.java72 Context appContext = ApplicationProvider.getApplicationContext(); in testAdpfTidCleanup() local
73 final Intent intent = appContext.getPackageManager() in testAdpfTidCleanup()
77 appContext.startActivity(intent); in testAdpfTidCleanup()
85 Cursor cursor = appContext.getContentResolver().query(uri, null, null, null, null); in testAdpfTidCleanup()
175 Context appContext = ApplicationProvider.getApplicationContext(); in launchApp() local
176 final Intent intent = appContext.getPackageManager() in launchApp()
180 appContext.startActivity(intent); in launchApp()
/cts/tests/tests/companion/uiautomation/src/android/companion/cts/uiautomation/
DAssociationRevokedTestBase.kt41 protected val appContext: Context = instrumentation.targetContext constant in android.companion.cts.uiautomation.AssociationRevokedTestBase
67 val intent = appContext.packageManager.getLaunchIntentForPackage(associationApp.packageName) in launchAppAndConfirmationUi()
68 appContext.startActivity(intent) in launchAppAndConfirmationUi()
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/
DWindowMetricsWindowContextTests.java85 final Context appContext = ApplicationProvider.getApplicationContext(); in WindowContextTestSession() local
86 final Display display = appContext.getSystemService(DisplayManager.class) in WindowContextTestSession()
88 mWindowContext = appContext.createDisplayContext(display) in WindowContextTestSession()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DDynamicConfigDeviceSide.java54 Context appContext = InstrumentationRegistry.getTargetContext(); in DynamicConfigDeviceSide() local
57 ContentResolver resolver = appContext.getContentResolver(); in DynamicConfigDeviceSide()
DUserHelper.java264 Context appContext = targetContext.getApplicationContext(); in getApplicationContext() local
265 if (appContext == null) { in getApplicationContext()
270 return appContext; in getApplicationContext()
DBusinessLogicTestCase.java93 Context appContext = InstrumentationRegistry.getTargetContext(); in loadBusinessLogic() local
95 ContentResolver resolver = appContext.getContentResolver(); in loadBusinessLogic()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/
DSdkAvailabilityTest.java152 final Context appContext = ApplicationProvider.getApplicationContext(); in isLargeScreenDisplay() local
153 final Context windowContext = appContext.createWindowContext(display, in isLargeScreenDisplay()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DIdentityCredentialAuthenticationMultiDocument.java80 private static int getFeatureVersion(Context appContext) { in getFeatureVersion() argument
81 PackageManager pm = appContext.getPackageManager(); in getFeatureVersion()
95 IdentityCredentialStore store = IdentityCredentialStore.getInstance(appContext); in getFeatureVersion()
/cts/tests/tests/keystore/src/android/keystore/cts/util/
DTestUtils.java145 public static int getFeatureVersionKeystore(Context appContext, boolean useStrongbox) { in getFeatureVersionKeystore() argument
147 return getFeatureVersionKeystoreStrongBox(appContext); in getFeatureVersionKeystore()
149 return getFeatureVersionKeystore(appContext); in getFeatureVersionKeystore()
168 public static int getFeatureVersionKeystore(Context appContext) { in getFeatureVersionKeystore() argument
169 PackageManager pm = appContext.getPackageManager(); in getFeatureVersionKeystore()
192 public static int getFeatureVersionKeystoreStrongBox(Context appContext) { in getFeatureVersionKeystoreStrongBox() argument
193 PackageManager pm = appContext.getPackageManager(); in getFeatureVersionKeystoreStrongBox()
/cts/tests/tests/content/src/android/content/pm/cts/
DTestDependencyInstallerService.java483 final Context appContext = getContext().getApplicationContext(); in getDefaultSharedPreferences() local
484 return PreferenceManager.getDefaultSharedPreferences(appContext); in getDefaultSharedPreferences()

12