Merge "Revert "Add option to return a null Dagger graph"" into tm-qpr-dev am: 6d0057ce3c am: c99356741f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20869587 Change-Id: I72ffaf495cdb3473d4c37027ff5ad0f87a9873b6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -415,7 +415,6 @@
|
||||
|
||||
<service android:name=".screenshot.ScreenshotCrossProfileService"
|
||||
android:permission="com.android.systemui.permission.SELF"
|
||||
android:process=":screenshot_cross_profile"
|
||||
android:exported="false" />
|
||||
|
||||
<service android:name=".screenrecord.RecordingService"
|
||||
|
||||
@@ -22,8 +22,6 @@ import android.os.Handler;
|
||||
import android.os.HandlerThread;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.android.systemui.dagger.GlobalRootComponent;
|
||||
import com.android.systemui.dagger.SysUIComponent;
|
||||
import com.android.systemui.dagger.WMComponent;
|
||||
@@ -55,7 +53,6 @@ public abstract class SystemUIInitializer {
|
||||
mContext = context;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
protected abstract GlobalRootComponent.Builder getGlobalRootComponentBuilder();
|
||||
|
||||
/**
|
||||
@@ -72,11 +69,6 @@ public abstract class SystemUIInitializer {
|
||||
* Starts the initialization process. This stands up the Dagger graph.
|
||||
*/
|
||||
public void init(boolean fromTest) throws ExecutionException, InterruptedException {
|
||||
GlobalRootComponent.Builder globalBuilder = getGlobalRootComponentBuilder();
|
||||
if (globalBuilder == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
mRootComponent = getGlobalRootComponentBuilder()
|
||||
.context(mContext)
|
||||
.instrumentationTest(fromTest)
|
||||
@@ -127,7 +119,6 @@ public abstract class SystemUIInitializer {
|
||||
.setBackAnimation(Optional.ofNullable(null))
|
||||
.setDesktopMode(Optional.ofNullable(null));
|
||||
}
|
||||
|
||||
mSysUIComponent = builder.build();
|
||||
if (initializeComponents) {
|
||||
mSysUIComponent.init();
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
package com.android.systemui
|
||||
|
||||
import android.app.Application
|
||||
import android.content.Context
|
||||
import com.android.systemui.dagger.DaggerReferenceGlobalRootComponent
|
||||
import com.android.systemui.dagger.GlobalRootComponent
|
||||
@@ -25,17 +24,7 @@ import com.android.systemui.dagger.GlobalRootComponent
|
||||
* {@link SystemUIInitializer} that stands up AOSP SystemUI.
|
||||
*/
|
||||
class SystemUIInitializerImpl(context: Context) : SystemUIInitializer(context) {
|
||||
|
||||
override fun getGlobalRootComponentBuilder(): GlobalRootComponent.Builder? {
|
||||
return when (Application.getProcessName()) {
|
||||
SCREENSHOT_CROSS_PROFILE_PROCESS -> null
|
||||
else -> DaggerReferenceGlobalRootComponent.builder()
|
||||
}
|
||||
}
|
||||
|
||||
companion object {
|
||||
private const val SYSTEMUI_PROCESS = "com.android.systemui"
|
||||
private const val SCREENSHOT_CROSS_PROFILE_PROCESS =
|
||||
"$SYSTEMUI_PROCESS:screenshot_cross_profile"
|
||||
override fun getGlobalRootComponentBuilder(): GlobalRootComponent.Builder {
|
||||
return DaggerReferenceGlobalRootComponent.builder()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user