Home
last modified time | relevance | path

Searched refs:mSdk (Results 1 – 10 of 10) sorted by relevance

/packages/modules/AdServices/sdksandbox/tests/cts/endtoendtests/src/com/android/tests/sdksandbox/endtoend/
DCustomizedSdkContextTest.java63 private ICtsSdkProviderApi mSdk; field in CustomizedSdkContextTest
82 mSdk.testStoragePaths(); in testStoragePaths()
102 boolean result = mSdk.isPermissionGranted(permissionName, useApplicationContext); in testSdkPermissions()
120 int contextHashCode = mSdk.getContextHashCode(false); in testSdkContextInstances()
121 int appContextHashCode = mSdk.getContextHashCode(true); in testSdkContextInstances()
126 int contextHashCode2 = mSdk.getContextHashCode(false); in testSdkContextInstances()
127 int appContextHashCode2 = mSdk.getContextHashCode(true); in testSdkContextInstances()
139 int contextUserId = mSdk.getContextUserId(); in testSdkContextUserId()
147 mSdk.checkClassloaders(); in testClassloader()
153 mSdk.checkResourcesAndAssets(); in testResourcesAndAssets()
[all …]
DSdkSandboxControllerTest.java69 private ICtsSdkProviderApi mSdk; field in SdkSandboxControllerTest
89 assertThat(mSdk.getClientPackageName()).isEqualTo(mContext.getPackageName()); in testGetClientPackageName()
98 mSdk.createAndRegisterSdkSandboxClientImportanceListener(); in testSdkDetectsAppForegroundState()
100 mSdk.waitForStateChangeDetection( in testSdkDetectsAppForegroundState()
105 mSdk.waitForStateChangeDetection( in testSdkDetectsAppForegroundState()
114 mSdk.waitForStateChangeDetection( in testSdkDetectsAppForegroundState()
124 mSdk.createAndRegisterSdkSandboxClientImportanceListener(); in testUnregisterSdkSandboxClientImportanceListener()
126 mSdk.waitForStateChangeDetection( in testUnregisterSdkSandboxClientImportanceListener()
129 mSdk.unregisterSdkSandboxClientImportanceListener(); in testUnregisterSdkSandboxClientImportanceListener()
136 mSdk.waitForStateChangeDetection( in testUnregisterSdkSandboxClientImportanceListener()
[all …]
DSandboxedSdkProviderTest.java40 private SandboxedSdkProvider mSdk; field in SandboxedSdkProviderTest
44 mSdk = new TestSandboxedSdkProvider(); in setup()
49 assertThat(mSdk.getContext()).isNull(); in testAttachContext_returnsNullWhenContextNotAttached()
55 mSdk.attachContext(context); in testAttachContext_returnsSameContextThatWasAttached()
56 assertThat(mSdk.getContext()).isSameInstanceAs(context); in testAttachContext_returnsSameContextThatWasAttached()
62 assertThrows(NullPointerException.class, () -> mSdk.attachContext(null)); in testAttachContext_cannotAttachNullContext()
69 mSdk.attachContext(context); in testAttachContext_cannotAttachMultipleTimes()
71 assertThrows(IllegalStateException.class, () -> mSdk.attachContext(context)); in testAttachContext_cannotAttachMultipleTimes()
DSdkSandboxMediaTest.java60 private ICtsSdkProviderApi mSdk; field in SdkSandboxMediaTest
77 int result = mSdk.requestAudioFocus(); in testAudioFocus()
87 mSdk = ICtsSdkProviderApi.Stub.asInterface(callback.getSandboxedSdk().getInterface()); in loadSdk()
DSdkSandboxCapabilitiesTest.java67 private ICtsSdkProviderApi mSdk; field in SdkSandboxCapabilitiesTest
87 assertThat(mSdk.getLauncherActivityCount()).isEqualTo(1); in testQueryLauncherActivity()
96 mSdk = ICtsSdkProviderApi.Stub.asInterface(callback.getSandboxedSdk().getInterface()); in loadSdk()
/packages/modules/AdServices/sdksandbox/tests/cts/hostside/app/src/com/android/sdksandbox/cts/app/
DCtsSdkSandboxStorageTestApp.java59 private IStorageTestSdkApi mSdk; field in CtsSdkSandboxStorageTestApp
87 mSdk = IStorageTestSdkApi.Stub.asInterface(callback.getSandboxedSdk().getInterface()); in loadSdk()
104 final String syncedValueInSandbox = mSdk.getSyncedSharedPreferencesString(KEY_TO_SYNC); in testSharedPreferences_IsSyncedFromAppToSandbox()
123 final String syncedValueInSandbox = mSdk.getSyncedSharedPreferencesString(KEY_TO_SYNC); in testSharedPreferences_SyncPropagatesUpdates()
146 final String syncedValueInSandbox = mSdk.getSyncedSharedPreferencesString(KEY_TO_SYNC); in testSharedPreferences_SyncStartedBeforeLoadingSdk()
168 final String syncedValueInSandbox = mSdk.getSyncedSharedPreferencesString(KEY_TO_SYNC); in testSharedPreferences_SyncRemoveKeys()
177 final String syncedValueInSandbox = mSdk.getSyncedSharedPreferencesString(KEY_TO_SYNC); in testSharedPreferences_SyncedDataClearedOnSandboxRestart()
DSdkSandboxDataIsolationTestApp.java65 private IDataIsolationTestSdkApi mSdk; field in SdkSandboxDataIsolationTestApp
98 mSdk.testSdkSandboxDataIsolation_SandboxCanAccessItsDirectory(); in testSdkSandboxDataIsolation_SandboxCanAccessItsDirectory()
104 mSdk.testSdkSandboxDataIsolation_CannotVerifyAppExistence(); in testSdkSandboxDataIsolation_CannotVerifyAppExistence()
111 mSdk.testSdkSandboxDataIsolation_CannotVerifyOtherUserAppExistence(arguments); in testSdkSandboxDataIsolation_CannotVerifyOtherUserAppExistence()
118 mSdk.testSdkSandboxDataIsolation_CannotVerifyAcrossVolumes(arguments); in testSdkSandboxDataIsolation_CannotVerifyAcrossVolumes()
127 mSdk = IDataIsolationTestSdkApi.Stub.asInterface(callback.getSandboxedSdk().getInterface()); in loadSdk()
/packages/modules/AdServices/sdksandbox/SdkSandbox/src/com/android/sdksandbox/
DSandboxedSdkHolder.java50 private SandboxedSdkProvider mSdk; field in SandboxedSdkHolder
89 mSdk = (SandboxedSdkProvider) clz.getConstructor().newInstance(); in init()
90 mSdk.attachContext(sandboxedSdkContext); in init()
122 mSandboxedSdk = mSdk.onLoadSdk(params); in init()
141 mHandler.post(() -> mSdk.beforeUnloadSdk()); in unloadSdk()
146 final String sdkClass = mSdk == null ? "null" : mSdk.getClass().getName(); in dump()
230 view = mSdk.getView(windowContext, params, width, height); in onSurfacePackageRequested()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxStorageHostTest/app/src/com/android/tests/sdksandbox/
DSdkSandboxStorageTestApp.java75 private IStorageTestSdk1Api mSdk; field in SdkSandboxStorageTestApp
102 mSdk = IStorageTestSdk1Api.Stub.asInterface(callback.getSandboxedSdk().getInterface()); in loadSdk()
115 mSdk.verifySharedStorageIsUsable(); in testSdkDataPackageDirectory_SharedStorageIsUsable()
122 mSdk.verifyPerSdkStorageIsUsable(); in testSdkDataSubDirectory_PerSdkStorageIsUsable()
139 mSdk.createFilesInStorage(sizeInBytes); in testSdkDataIsAttributedToApp()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DAudioFocusInfoBuilder.java38 private int mSdk = Build.VERSION.SDK_INT; field in AudioFocusInfoBuilder
73 mSdk = sdk; in setSdk()
115 mPackageName, mGainRequest, mLossReceived, flags, mSdk); in createAudioFocusInfo()