Home
last modified time | relevance | path

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

/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.java68 Context appContext = InstrumentationRegistry.getTargetContext(); in performDeviceLock() local
69 KeyguardManager keyguardManager = (KeyguardManager)appContext. in performDeviceLock()
80 Context appContext = InstrumentationRegistry.getTargetContext(); in performDeviceUnlock() local
81 KeyguardManager keyguardManager = (KeyguardManager)appContext. in performDeviceUnlock()
106 Context appContext = InstrumentationRegistry.getTargetContext(); in testUserAuth() local
107 KeyguardManager keyguardManager = (KeyguardManager)appContext in testUserAuth()
131 Context appContext = InstrumentationRegistry.getTargetContext(); in doTestUserAuth() local
132 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()
DX509CertificateSigningTest.java56 Context appContext = InstrumentationRegistry.getTargetContext(); in testSigning() local
94 AtomicFile file = new AtomicFile(appContext.getFileStreamPath(filename)); in testSigning()
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 …]
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.java70 Context appContext = ApplicationProvider.getApplicationContext(); in testAdpfTidCleanup() local
71 final Intent intent = appContext.getPackageManager() in testAdpfTidCleanup()
75 appContext.startActivity(intent); in testAdpfTidCleanup()
83 Cursor cursor = appContext.getContentResolver().query(uri, null, null, null, null); in testAdpfTidCleanup()
123 Context appContext = ApplicationProvider.getApplicationContext(); in testCreateHintSession() local
124 final Intent intent = appContext.getPackageManager() in testCreateHintSession()
128 appContext.startActivity(intent); in testCreateHintSession()
/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/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()
DBusinessLogicTestCase.java93 Context appContext = InstrumentationRegistry.getTargetContext(); in loadBusinessLogic() local
95 ContentResolver resolver = appContext.getContentResolver(); in loadBusinessLogic()
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/
DWindowMetricsWindowContextTests.java86 final Context appContext = ApplicationProvider.getApplicationContext(); in WindowContextTestSession() local
87 final Display display = appContext.getSystemService(DisplayManager.class) in WindowContextTestSession()
89 mWindowContext = appContext.createDisplayContext(display) in WindowContextTestSession()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/
DSdkAvailabilityTest.java194 final Context appContext = ApplicationProvider.getApplicationContext(); in isLargeScreenDisplay() local
195 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.java121 public static int getFeatureVersionKeystore(Context appContext, boolean useStrongbox) { in getFeatureVersionKeystore() argument
123 return getFeatureVersionKeystoreStrongBox(appContext); in getFeatureVersionKeystore()
125 return getFeatureVersionKeystore(appContext); in getFeatureVersionKeystore()
144 public static int getFeatureVersionKeystore(Context appContext) { in getFeatureVersionKeystore() argument
145 PackageManager pm = appContext.getPackageManager(); in getFeatureVersionKeystore()
168 public static int getFeatureVersionKeystoreStrongBox(Context appContext) { in getFeatureVersionKeystoreStrongBox() argument
169 PackageManager pm = appContext.getPackageManager(); in getFeatureVersionKeystoreStrongBox()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityManagerTestBase.java1255 final Context appContext = ApplicationProvider.getApplicationContext(); in isTablet() local
1256 final Display defaultDisplay = appContext.getSystemService(DisplayManager.class) in isTablet()
1258 final Context windowContext = appContext.createWindowContext(defaultDisplay, in isTablet()