Home
last modified time | relevance | path

Searched refs:SDK_NAME (Results 1 – 25 of 42) sorted by relevance

12

/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/server/sdksandbox/
DSdkSandboxStorageManagerUnitTest.java59 private static final String SDK_NAME = "sdk"; field in SdkSandboxStorageManagerUnitTest
134 mSdkSandboxStorageManager.getSdkStorageDirInfo(callingInfo, SDK_NAME); in test_getSdkStorageDirInfo_nonExistingStorage()
143 USER_ID, CLIENT_PKG_NAME, Arrays.asList(SDK_NAME), Collections.emptyList()); in test_getSdkStorageDirInfo_storageExists()
154 mSdkSandboxStorageManager.getSdkStorageDirInfo(callingInfo, SDK_NAME); in test_getSdkStorageDirInfo_storageExists()
166 mSdkSandboxStorageManager.getInternalStorageDirInfo(callingInfo, SDK_NAME); in test_getInernalStorageDirInfo_nonExistingStorage()
203 Arrays.asList(SDK_NAME), in test_getMountedVolumes_newVolumeExists()
209 Arrays.asList(SDK_NAME), in test_getMountedVolumes_newVolumeExists()
223 Arrays.asList(SDK_NAME), in test_GetMountedVolumes_NewVolumeDoesNotExist()
287 USER_ID, CLIENT_PKG_NAME, Arrays.asList(SDK_NAME), Collections.emptyList()); in test_SdkSubDirectories_NonExistingParentPath()
292 assertThat(subDirs.getSdkSubDir(SDK_NAME)).isNull(); in test_SdkSubDirectories_NonExistingParentPath()
[all …]
DSdkSandboxManagerServiceUnitTest.java117 private static final String SDK_NAME = "com.android.codeprovider"; field in SdkSandboxManagerServiceUnitTest
366 mService.loadSdk(TEST_PACKAGE, null, SDK_NAME, mSandboxLatencyInfo, new Bundle(), callback); in testLoadSdkIsSuccessful()
377 "does.not.exist", null, SDK_NAME, mSandboxLatencyInfo, new Bundle(), callback); in testLoadSdkNonExistentCallingPackage()
394 SDK_NAME, in testLoadSdkIncorrectCallingPackage()
427 mService.loadSdk(TEST_PACKAGE, null, SDK_NAME, mSandboxLatencyInfo, new Bundle(), callback); in testLoadSdk_errorFromSdkSandbox()
439 mService.loadSdk(TEST_PACKAGE, null, SDK_NAME, mSandboxLatencyInfo, new Bundle(), callback); in testLoadSdk_errorNoInternet()
454 mService.loadSdk(TEST_PACKAGE, null, SDK_NAME, mSandboxLatencyInfo, new Bundle(), callback); in testLoadSdk_errorNoAccessNetworkState()
471 TEST_PACKAGE, null, SDK_NAME, mSandboxLatencyInfo, new Bundle(), callback); in testLoadSdk_successOnFirstLoad_errorOnLoadAgain()
481 TEST_PACKAGE, null, SDK_NAME, mSandboxLatencyInfo, new Bundle(), callback); in testLoadSdk_successOnFirstLoad_errorOnLoadAgain()
499 TEST_PACKAGE, null, SDK_NAME, mSandboxLatencyInfo, new Bundle(), callback); in testLoadSdk_firstLoadPending_errorOnLoadAgainRequest()
[all …]
DLoadSdkSessionUnitTest.java47 private static final String SDK_NAME = "com.android.codeprovider"; field in LoadSdkSessionUnitTest
78 SDK_NAME, in testLoadSdkSessionIsInitiallyPendingLoad()
111 SDK_NAME, in testGetSdkProviderInfo_SdkIsValid()
139 SDK_NAME, in testLoadSdkError()
162 SDK_NAME, in testSecondLoadFails_ErrorOnFirstLoad_SameSession()
211 SDK_NAME, in testSandboxDiedOnLoadSdkRequest()
242 SDK_NAME, in testLoadSdk_SandboxDiesBeforeCompletion()
266 SDK_NAME, in testLoadSdk_CustomizedApplicationInfoIsPassedToService()
297 SDK_NAME, in testUnloadSdkThatIsBeingLoaded()
327 SDK_NAME, in testUnloadSdkAfterFailedLoading()
[all …]
DSdkSandboxStatsdMetricsUnitTest.java81 private static final String SDK_NAME = "com.android.codeprovider"; field in SdkSandboxStatsdMetricsUnitTest
259 SDK_NAME, in testLatencyMetrics_LoadSdk()
295 SDK_NAME, in testLatencyMetrics_SystemServerAppToSandbox_LoadSdk_FailureOnMultiLoad()
308 SDK_NAME, in testLatencyMetrics_SystemServerAppToSandbox_LoadSdk_FailureOnMultiLoad()
366 mService.loadSdk(TEST_PACKAGE, null, SDK_NAME, sandboxLatencyInfo, new Bundle(), callback); in testLatencyMetrics_SystemServerAppToSandbox_LoadSdk_FailureOnAppDeath()
389 SDK_NAME, in testLatencyMetrics_SystemServerAppToSandbox_LoadSdk_NoInternet()
418 SDK_NAME, in testLatencyMetrics_SystemServerAppToSandbox_LoadSdk_LoadSandboxFailure()
446 SDK_NAME, in testLatencyMetrics_SystemServerAppToSandbox_LoadSdk_SandboxDisabled()
480 SDK_NAME, in testLatencyMetrics_SystemServerAppToSandbox_LoadSdk_SandboxThrowsDeadObjectException()
497 loadSdk(SDK_NAME); in testLatencyMetrics_RequestSurfacePackage()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/
DEncryptionManagerTest.java76 private static final String SDK_NAME = "sdk"; field in EncryptionManagerTest
81 .setSdkNames(SDK_NAME)
139 when(mEnrollmentDao.getEnrollmentDataFromSdkName(SDK_NAME)).thenReturn(ENROLLMENT_DATA); in testEncryption_success()
146 mEncryptionManager.encryptTopic(topic, SDK_NAME); in testEncryption_success()
174 when(mEnrollmentDao.getEnrollmentDataFromSdkName(SDK_NAME)).thenReturn(ENROLLMENT_DATA); in testEncryption_verifyLatestKeys()
181 mEncryptionManager.encryptTopic(topic, SDK_NAME); in testEncryption_verifyLatestKeys()
198 mEncryptionManager.encryptTopic(topic, SDK_NAME); in testEncryption_useTestingKeys()
211 when(mEnrollmentDao.getEnrollmentDataFromSdkName(SDK_NAME)).thenReturn(ENROLLMENT_DATA); in testEncryption_missingKeys()
218 mEncryptionManager.encryptTopic(topic, SDK_NAME); in testEncryption_missingKeys()
230 when(mEnrollmentDao.getEnrollmentDataFromSdkName(SDK_NAME)).thenReturn(ENROLLMENT_DATA); in testEncryption_incompatibleKeys()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DAppImportanceFilterTest.java69 private static final String SDK_NAME = "sdk.name"; field in AppImportanceFilterTest
95 mAppImportanceFilter.assertCallerIsInForeground(APP_PACKAGE_NAME, API_NAME, SDK_NAME); in testCalledWithForegroundAppPackageName_onSMinus_succeedBySkippingCheck()
108 mAppImportanceFilter.assertCallerIsInForeground(APP_PACKAGE_NAME, API_NAME, SDK_NAME); in testCalledWithForegroundAppPackageName_succeed()
120 mAppImportanceFilter.assertCallerIsInForeground(APP_PACKAGE_NAME, API_NAME, SDK_NAME); in testCalledWithForegroundServiceImportanceAppPackageName_succeed()
136 APP_PACKAGE_NAME, API_NAME, SDK_NAME)); in testCalledWithLessThanForegroundImportanceAppPackageName_throwsIllegalStateException()
151 APP_PACKAGE_NAME, API_NAME, SDK_NAME)); in testCalledWithLessThanForegroundImportanceAppPackageName_logsFailure()
160 .hasSdkPackageName(SDK_NAME) in testCalledWithLessThanForegroundImportanceAppPackageName_logsFailure()
178 APP_PACKAGE_NAME, API_NAME, SDK_NAME)); in testFailureTryingToRetrievePackageImportancePackageName_throwsIllegalStateException()
186 mAppImportanceFilter.assertCallerIsInForeground(APP_UID, API_NAME, SDK_NAME); in testCalledWithForegroundAppUid_onSMinus_succeedBySkippingCheck()
198 mAppImportanceFilter.assertCallerIsInForeground(APP_UID, API_NAME, SDK_NAME); in testCalledWithForegroundAppUid_succeed()
[all …]
/packages/modules/AdServices/sdksandbox/tests/unittest/src/android/app/sdksandbox/
DSdkSandboxManagerUnitTest.java73 private static final String SDK_NAME = "com.android.codeproviderresources"; field in SdkSandboxManagerUnitTest
101 mSdkSandboxManager.loadSdk(SDK_NAME, params, Runnable::run, outcomeReceiver); in testLoadSdkSuccess()
112 Mockito.eq(SDK_NAME), in testLoadSdkSuccess()
141 mSdkSandboxManager.loadSdk(SDK_NAME, params, Runnable::run, outcomeReceiver); in testLoadSdkFailed()
149 Mockito.eq(SDK_NAME), in testLoadSdkFailed()
188 mSdkSandboxManager.unloadSdk(SDK_NAME); in testUnloadSdk()
192 Mockito.eq(SDK_NAME), in testUnloadSdk()
206 mSdkSandboxManager.requestSurfacePackage(SDK_NAME, params, Runnable::run, outcomeReceiver); in testRequestSurfacePackageSuccess()
213 Mockito.eq(SDK_NAME), in testRequestSurfacePackageSuccess()
248 mSdkSandboxManager.requestSurfacePackage(SDK_NAME, params, Runnable::run, outcomeReceiver); in testRequestSurfacePackageFailed()
[all …]
DSandboxedSdkContextUnitTest.java58 private static final String SDK_NAME = "com.android.codeproviderresources"; field in SandboxedSdkContextUnitTest
107 SDK_NAME, in setUp()
131 assertThat(mSandboxedSdkContext.getSdkName()).isEqualTo(SDK_NAME); in testSdkName()
195 SDK_NAME, in testGetSystemService_notRegistered_delegatesToBaseContext()
222 SDK_NAME, in testGetSystemService_registered_mutatesService()
248 SDK_NAME, in testCachingPerContextIntance()
258 SDK_NAME, in testCachingPerContextIntance()
289 SDK_NAME, in testCreateContextWithNewBase()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxStorageHostTest/src/com/android/tests/sdksandbox/host/
DSdkSandboxStorageHostTest.java61 private static final String SDK_NAME = "com.android.tests.codeprovider.storagetest"; field in SdkSandboxStorageHostTest
129 assertSelinuxLabel(getSdkDataPerSdkPath(0, TEST_APP_STORAGE_PACKAGE, SDK_NAME, true), in testSelinuxLabel()
131 assertSelinuxLabel(getSdkDataPerSdkPath(0, TEST_APP_STORAGE_PACKAGE, SDK_NAME, false), in testSelinuxLabel()
583 0, TEST_APP_STORAGE_PACKAGE, SDK_NAME, true), // CE per-sdk in testSdkDataPackageDirectory_IsClearedOnClearAppData()
585 0, TEST_APP_STORAGE_PACKAGE, SDK_NAME, false) // DE per-sdk in testSdkDataPackageDirectory_IsClearedOnClearAppData()
622 0, TEST_APP_STORAGE_PACKAGE, SDK_NAME, true), // CE per-sdk in testSdkDataPackageDirectory_IsClearedOnFreeCache()
624 0, TEST_APP_STORAGE_PACKAGE, SDK_NAME, false) // DE per-sdk in testSdkDataPackageDirectory_IsClearedOnFreeCache()
661 0, TEST_APP_STORAGE_PACKAGE, SDK_NAME, true), // CE per-sdk in testSdkDataPackageDirectory_IsClearedOnClearCache()
663 0, TEST_APP_STORAGE_PACKAGE, SDK_NAME, false) // DE per-sdk in testSdkDataPackageDirectory_IsClearedOnClearCache()
771 .containsExactly(SHARED_DIR, SDK_NAME, SANDBOX_DIR); in testSdkDataPackageDirectory_CreateMissingSdkSubDirsWhenPackageDirEmpty()
[all …]
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/sdksandbox/
DSdkSandboxTest.java91 private static final String SDK_NAME = "com.android.testprovider"; field in SdkSandboxTest
235 SDK_NAME, in testLoadingSuccess()
250 SDK_NAME, in testLoadingWithoutInitializingFails()
306 SDK_NAME, in testDuplicateLoadingFails()
318 SDK_NAME, in testDuplicateLoadingFails()
338 SDK_NAME, in testRequestSurfacePackage()
370 SDK_NAME, in testSurfacePackageError()
412 SDK_NAME, in testDump_WithSdk()
518 SDK_NAME, in testLatencyMetrics_loadSdk_success()
549 SDK_NAME, in testLatencyMetrics_unloadSdk_success()
[all …]
/packages/modules/AdServices/sdksandbox/tests/cts/hostside/app/src/com/android/sdksandbox/cts/app/
DCtsSdkSandboxMediaTestApp.java45 private static final String SDK_NAME = "com.android.ctssdkprovider"; field in CtsSdkSandboxMediaTestApp
63 mSdkLifecycleHelper.unloadSdk(SDK_NAME); in setup()
70 mSdkLifecycleHelper.unloadSdk(SDK_NAME); in tearDown()
83 mSdkSandboxManager.loadSdk(SDK_NAME, new Bundle(), Runnable::run, callback); in loadSdk()
DSdkSandboxDataIsolationTestApp.java54 private static final String SDK_NAME = "com.android.sdksandbox.cts.provider.dataisolationtest"; field in SdkSandboxDataIsolationTestApp
75 mSdkLifecycleHelper.unloadSdk(SDK_NAME); in setup()
81 mSdkLifecycleHelper.unloadSdk(SDK_NAME); in tearDown()
123 mSdkSandboxManager.loadSdk(SDK_NAME, new Bundle(), Runnable::run, callback); in loadSdk()
DCtsSdkSandboxStorageTestApp.java48 private static final String SDK_NAME = "com.android.sdksandbox.cts.provider.storagetest"; field in CtsSdkSandboxStorageTestApp
69 mSdkLifecycleHelper.unloadSdk(SDK_NAME); in setup()
76 mSdkLifecycleHelper.unloadSdk(SDK_NAME); in tearDown()
83 mSdkSandboxManager.loadSdk(SDK_NAME, new Bundle(), Runnable::run, callback); in loadSdk()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxStorageHostTest/app/src/com/android/tests/sdksandbox/
DSdkSandboxStorageTestApp.java61 private static final String SDK_NAME = "com.android.tests.codeprovider.storagetest"; field in SdkSandboxStorageTestApp
86 mSdkLifecycleHelper.unloadSdk(SDK_NAME); in setup()
92 mSdkLifecycleHelper.unloadSdk(SDK_NAME); in tearDown()
98 mSdkSandboxManager.loadSdk(SDK_NAME, new Bundle(), Runnable::run, callback); in loadSdk()
/packages/modules/AdServices/sdksandbox/tests/cts/endtoendtests/src/com/android/tests/sdksandbox/endtoend/
DSdkSandboxMediaTest.java47 private static final String SDK_NAME = "com.android.ctssdkprovider"; field in SdkSandboxMediaTest
71 mSdkLifecycleHelper.unloadSdk(SDK_NAME); in tearDown()
83 mSdkSandboxManager.loadSdk(SDK_NAME, new Bundle(), Runnable::run, callback); in loadSdk()
DSdkSandboxControllerTest.java65 private static final String SDK_NAME = "com.android.ctssdkprovider"; field in SdkSandboxControllerTest
81 mSdkSandboxManager.unloadSdk(SDK_NAME); in tearDown()
142 mSdkSandboxManager.loadSdk(SDK_NAME, new Bundle(), Runnable::run, callback); in loadSdk()
/packages/modules/AdServices/sdksandbox/tests/manual-test-apps/SdkSandboxClient_SharedUid/src/com/android/sdksandboxclient_shareduid/
DMainActivity.java54 private static final String SDK_NAME = "com.android.sdksandboxcode"; field in MainActivity
134 mSdkSandboxManager.loadSdk(SDK_NAME, params, Runnable::run, receiver); in registerLoadSdkProviderButton()
136 mSdkSandboxManager.unloadSdk(SDK_NAME); in registerLoadSdkProviderButton()
152 SDK_NAME, in registerLoadSurfacePackageButton()
218 SDK_NAME, params, Runnable::run, receiver); in registerPlayVideoButton()
/packages/modules/AdServices/sdksandbox/tests/manual-test-apps/SdkSandboxWebViewClient/src/com/android/sdksandboxwebviewclient/
DMainActivity.java47 private static final String SDK_NAME = "com.android.sdksandboxcode_webview"; field in MainActivity
118 mSdkSandboxManager.loadSdk(SDK_NAME, params, Runnable::run, receiver); in registerLoadSdkProviderButton()
128 mSdkSandboxManager.unloadSdk(SDK_NAME); in resetStateForLoadSdkButton()
144 SDK_NAME, in registerLoadSurfacePackageButton()
/packages/modules/AdServices/adservices/tests/cts/sandbox/topics/src/com/android/tests/sandbox/topics/
DSandboxedTopicsManagerTest.java60 private static final String SDK_NAME = "com.android.tests.providers.sdk1"; field in SandboxedTopicsManagerTest
106 .setSdkName(SDK_NAME) in loadSdkAndRunTopicsApi()
122 sdkSandboxManager.loadSdk(SDK_NAME, new Bundle(), CALLBACK_EXECUTOR, callback); in loadSdkAndRunTopicsApi()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/app/src/com/android/sdksandbox/debuggable/
DSdkSandboxTestDebuggableActivity.java26 private static final String SDK_NAME = "com.android.testcode"; field in SdkSandboxTestDebuggableActivity
38 sdkSandboxManager.loadSdk(SDK_NAME, params, Runnable::run, callback); in onCreate()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/app/src/com/android/sdksandbox/app2/
DSdkSandboxTestActivity2.java26 private static final String SDK_NAME = "com.android.testcode2"; field in SdkSandboxTestActivity2
38 sdkSandboxManager.loadSdk(SDK_NAME, params, Runnable::run, callback); in onCreate()
/packages/modules/AdServices/sdksandbox/tests/test-apps/SocketApp/src/com/android/socketapp/
DSocketApp.java33 private static final String SDK_NAME = "com.android.socketsdkprovider"; field in SocketApp
44 .loadSdk(SDK_NAME, new Bundle(), Runnable::run, callback); in onCreate()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxSmallModuleHostTest/app/src/com/android/tests/sdksandbox/
DSdkSandboxSmallModuleTestApp.java69 private static final String SDK_NAME = "com.android.emptysdkprovider"; field in SdkSandboxSmallModuleTestApp
133 mSdkSandboxManager.loadSdk(SDK_NAME, new Bundle(), Runnable::run, callback); in testLoadSdkWithAdServiceApk()
140 mSdkSandboxManager.loadSdk(SDK_NAME, new Bundle(), Runnable::run, callback); in testLoadSdkWithoutAdServiceApk()
/packages/modules/AdServices/adservices/tests/cts/hosttests/app/src/com/android/adservices/cts/
DTopicsApiLogActivity.java33 private static final String SDK_NAME = "AdServicesCtsSdk"; field in TopicsApiLogActivity
42 .setSdkName(SDK_NAME) in onCreate()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/app/src/com/android/sdksandbox/app/
DSdkSandboxTestActivity.java29 private static final String SDK_NAME = "com.android.testcode"; field in SdkSandboxTestActivity
55 sdkSandboxManager.loadSdk(SDK_NAME, params, Runnable::run, callback); in onCreate()

12