diff options
Diffstat (limited to 'sdksandbox/SdkSandbox/src/com/android/sdksandbox/SandboxedSdkHolder.java')
-rw-r--r-- | sdksandbox/SdkSandbox/src/com/android/sdksandbox/SandboxedSdkHolder.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sdksandbox/SdkSandbox/src/com/android/sdksandbox/SandboxedSdkHolder.java b/sdksandbox/SdkSandbox/src/com/android/sdksandbox/SandboxedSdkHolder.java index 4ff19932af..e551e91010 100644 --- a/sdksandbox/SdkSandbox/src/com/android/sdksandbox/SandboxedSdkHolder.java +++ b/sdksandbox/SdkSandbox/src/com/android/sdksandbox/SandboxedSdkHolder.java @@ -16,8 +16,8 @@ package com.android.sdksandbox; -import android.app.sdksandbox.ISdkToServiceCallback; import android.app.sdksandbox.LoadSdkException; +import android.app.sdksandbox.LogUtil; import android.app.sdksandbox.SandboxedSdk; import android.app.sdksandbox.SandboxedSdkContext; import android.app.sdksandbox.SandboxedSdkProvider; @@ -66,8 +66,7 @@ class SandboxedSdkHolder { ClassLoader loader, SandboxedSdkContext sandboxedSdkContext, SdkSandboxServiceImpl.Injector injector, - SandboxLatencyInfo sandboxLatencyInfo, - ISdkToServiceCallback sdkToServiceCallback) { + SandboxLatencyInfo sandboxLatencyInfo) { if (mInitialized) { throw new IllegalStateException("Already initialized!"); } @@ -215,6 +214,8 @@ class SandboxedSdkHolder { sandboxLatencyInfo.setTimeSandboxReceivedCallFromSystemServer( mInjector.getCurrentTime()); + LogUtil.d(TAG, "onSurfacePackageRequested received"); + try { Context displayContext = mContext.createDisplayContext( mDisplayManager.getDisplay(displayId)); @@ -224,6 +225,7 @@ class SandboxedSdkHolder { // Creating a SurfaceControlViewHost needs to done on the handler thread. mHandler.post( () -> { + LogUtil.d(TAG, "Creating SurfaceControlViewHost on handler thread"); final View view; sandboxLatencyInfo.setTimeSandboxCalledSdk(mInjector.getCurrentTime()); try { @@ -246,7 +248,9 @@ class SandboxedSdkHolder { windowContext, mDisplayManager.getDisplay(displayId), token); + LogUtil.d(TAG, "SurfaceControlViewHost created"); host.setView(view, width, height); + LogUtil.d(TAG, "View from SDK set to SurfaceControlViewHost"); SurfaceControlViewHost.SurfacePackage surfacePackage = host.getSurfacePackage(); int surfacePackageId = allocateSurfacePackageId(surfacePackage); |