[Decor] Remove the now-unused main executor

Bug: 285941724
Test: ScreenDecorationsTest
Change-Id: I7bffeb56c9ed9a25aa50b10f23f7a13ebb0cc47d
This commit is contained in:
Evan Laird
2023-06-26 12:32:35 -04:00
parent 7128c6aa85
commit 91f150386d
2 changed files with 2 additions and 7 deletions

View File

@@ -69,7 +69,6 @@ import com.android.internal.util.Preconditions;
import com.android.settingslib.Utils;
import com.android.systemui.biometrics.AuthController;
import com.android.systemui.dagger.SysUISingleton;
import com.android.systemui.dagger.qualifiers.Main;
import com.android.systemui.decor.CutoutDecorProviderFactory;
import com.android.systemui.decor.DebugRoundedCornerDelegate;
import com.android.systemui.decor.DebugRoundedCornerModel;
@@ -98,7 +97,6 @@ import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.Executor;
import javax.inject.Inject;
@@ -133,7 +131,6 @@ public class ScreenDecorations implements CoreStartable, Dumpable {
@VisibleForTesting
protected boolean mIsRegistered;
private final Context mContext;
private final Executor mMainExecutor;
private final CommandRegistry mCommandRegistry;
private final SecureSettings mSecureSettings;
@VisibleForTesting
@@ -317,7 +314,6 @@ public class ScreenDecorations implements CoreStartable, Dumpable {
@Inject
public ScreenDecorations(Context context,
@Main Executor mainExecutor,
SecureSettings secureSettings,
CommandRegistry commandRegistry,
UserTracker userTracker,
@@ -329,7 +325,6 @@ public class ScreenDecorations implements CoreStartable, Dumpable {
ScreenDecorationsLogger logger,
AuthController authController) {
mContext = context;
mMainExecutor = mainExecutor;
mSecureSettings = secureSettings;
mCommandRegistry = commandRegistry;
mUserTracker = userTracker;

View File

@@ -234,7 +234,7 @@ public class ScreenDecorationsTest extends SysuiTestCase {
mExecutor,
new ScreenDecorationsLogger(logcatLogBuffer("TestLogBuffer"))));
mScreenDecorations = spy(new ScreenDecorations(mContext, mExecutor, mSecureSettings,
mScreenDecorations = spy(new ScreenDecorations(mContext, mSecureSettings,
mCommandRegistry, mUserTracker, mDisplayTracker, mDotViewController,
mThreadFactory,
mPrivacyDotDecorProviderFactory, mFaceScanningProviderFactory,
@@ -1230,7 +1230,7 @@ public class ScreenDecorationsTest extends SysuiTestCase {
mFaceScanningProviders.add(mFaceScanningDecorProvider);
when(mFaceScanningProviderFactory.getProviders()).thenReturn(mFaceScanningProviders);
when(mFaceScanningProviderFactory.getHasProviders()).thenReturn(true);
ScreenDecorations screenDecorations = new ScreenDecorations(mContext, mExecutor,
ScreenDecorations screenDecorations = new ScreenDecorations(mContext,
mSecureSettings, mCommandRegistry, mUserTracker, mDisplayTracker,
mDotViewController,
mThreadFactory, mPrivacyDotDecorProviderFactory, mFaceScanningProviderFactory,