Home
last modified time | relevance | path

Searched refs:mCallingInfo (Results 1 – 5 of 5) sorted by relevance

/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/server/sdksandbox/
DSdkSandboxServiceProviderImplUnitTest.java55 private CallingInfo mCallingInfo; field in SdkSandboxServiceProviderImplUnitTest
80 mCallingInfo = new CallingInfo(Process.myUid(), TEST_PACKAGE); in setup()
81 mServiceConnection = new FakeServiceConnection(mCallingInfo); in setup()
92 mServiceProvider.getSandboxStatusForApp(mCallingInfo), in testGetStatusWithoutBindingSandbox()
98 bindService(mCallingInfo, mServiceConnection); in testBindSandbox()
100 mServiceProvider.getSandboxStatusForApp(mCallingInfo), in testBindSandbox()
104 bindService(mCallingInfo, mServiceConnection); in testBindSandbox()
111 mServiceProvider.getSandboxStatusForApp(mCallingInfo), in testBindSandbox()
113 assertThat(mServiceProvider.getSdkSandboxServiceForApp(mCallingInfo)).isNotNull(); in testBindSandbox()
115 bindService(mCallingInfo, mServiceConnection); in testBindSandbox()
[all …]
DSdkSandboxManagerServiceUnitTest.java155 private CallingInfo mCallingInfo; field in SdkSandboxManagerServiceUnitTest
243 mCallingInfo = new CallingInfo(mClientAppUid, TEST_PACKAGE); in setup()
596 assertThat(sProvider.getSdkSandboxServiceForApp(mCallingInfo)).isNull(); in testLoadSdk_sandboxInitializationFails()
605 assertThat(sProvider.getSdkSandboxServiceForApp(mCallingInfo)).isNotNull(); in testLoadSdk_sandboxInitializationFails()
930 assertThat(sProvider.getSdkSandboxServiceForApp(mCallingInfo)).isNull(); in testSdkSandboxServiceUnbindingWhenAppDied()
945 assertThat(sProvider.getSdkSandboxServiceForApp(mCallingInfo)).isNotNull(); in testSdkSandboxServiceUnbindingWhenAppDied()
947 assertThat(sProvider.getSdkSandboxServiceForApp(mCallingInfo)).isNull(); in testSdkSandboxServiceUnbindingWhenAppDied()
1239 assertThat(sProvider.getSdkSandboxServiceForApp(mCallingInfo)).isNotNull(); in testNotifyInstrumentationStarted_killsSandboxProcess()
1246 assertThat(sProvider.getSdkSandboxServiceForApp(mCallingInfo)).isNull(); in testNotifyInstrumentationStarted_killsSandboxProcess()
1383 assertThat(sProvider.getSdkSandboxServiceForApp(mCallingInfo)).isNotNull(); in testUnloadSdkThatIsLoaded()
[all …]
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/
DSdkSandboxShellCommand.java53 private CallingInfo mCallingInfo; field in SdkSandboxShellCommand
219 mCallingInfo = new CallingInfo(info.uid, callingPackageName); in handleSandboxArguments()
287 if (mService.isSdkSandboxServiceRunning(mCallingInfo)) { in runStart()
289 + mCallingInfo.getPackageName() + " and user " + mUserId); in runStart()
297 mService.startSdkSandboxIfNeeded(mCallingInfo, callback, sandboxLatencyInfo); in runStart()
302 mCallingInfo, in runStart()
309 .println("Error: Could not start SDK sandbox for " + mCallingInfo.getPackageName()); in runStart()
315 if (!mService.isSdkSandboxServiceRunning(mCallingInfo)) { in runStop()
317 + mCallingInfo.getPackageName() + " and user " + mUserId); in runStop()
320 mService.stopSdkSandboxService(mCallingInfo, "Shell command 'sdk_sandbox stop' issued"); in runStop()
DLoadSdkSession.java134 final CallingInfo mCallingInfo; field in LoadSdkSession
180 mCallingInfo = callingInfo; in LoadSdkSession()
232 mCallingInfo.getPackageName(), in load()
338 + mCallingInfo in unload()
349 Log.i(TAG, "SDK " + mSdkName + " is not loaded for " + mCallingInfo); in unload()
367 "Sdk sandbox for " + mCallingInfo + " is dead, cannot unload SDK " + mSdkName); in unload()
529 mSdkSandboxManagerService.handleFailedSandboxInitialization(mCallingInfo); in onLoadSdkError()
630 mCallingInfo in requestSurfacePackage()
667 new PackageManagerHelper(mContext, mCallingInfo.getUid()); in createSdkProviderInfo()
670 mCallingInfo.getPackageName(), mSdkName); in createSdkProviderInfo()
DSdkSandboxManagerService.java1243 private final CallingInfo mCallingInfo;
1252 mCallingInfo = callingInfo;
1270 mServiceProvider.onServiceConnected(mCallingInfo, mService);
1273 notifySyncManagerSandboxStarted(mCallingInfo);
1278 computeSdkStorage(mCallingInfo, mService);
1297 Log.d(TAG, "Sandbox service for " + mCallingInfo + " has been disconnected");
1298 mServiceProvider.onServiceDisconnected(mCallingInfo);
1303 Log.d(TAG, "Sandbox service for " + mCallingInfo + " : died on binding");
1307 mServiceProvider.unbindService(mCallingInfo);
1308 handleSandboxLifecycleCallbacksLocked(mCallingInfo);
[all …]