Loading packages/SystemUI/Android.bp +2 −0 Original line number Diff line number Diff line Loading @@ -154,6 +154,7 @@ android_library { "res-keyguard", "res", ], use_resource_processor: true, static_libs: [ "WifiTrackerLib", "WindowManager-Shell", Loading Loading @@ -530,6 +531,7 @@ android_app { ], resource_dirs: [], use_resource_processor: true, platform_apis: true, system_ext_specific: true, certificate: "platform", Loading packages/SystemUI/src/com/android/keyguard/ClockEventController.kt +1 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ import android.widget.FrameLayout import androidx.annotation.VisibleForTesting import androidx.lifecycle.Lifecycle import androidx.lifecycle.repeatOnLifecycle import com.android.systemui.R import com.android.systemui.customization.R import com.android.systemui.broadcast.BroadcastDispatcher import com.android.systemui.dagger.qualifiers.Background import com.android.systemui.dagger.qualifiers.Main Loading packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java +7 −3 Original line number Diff line number Diff line Loading @@ -66,9 +66,12 @@ public class KeyguardClockSwitch extends RelativeLayout { /** Returns a region for the large clock to position itself, based on the given parent. */ public static Rect getLargeClockRegion(ViewGroup parent) { int largeClockTopMargin = parent.getResources() .getDimensionPixelSize(R.dimen.keyguard_large_clock_top_margin); .getDimensionPixelSize( com.android.systemui.customization.R.dimen.keyguard_large_clock_top_margin); int targetHeight = parent.getResources() .getDimensionPixelSize(R.dimen.large_clock_text_size) * 2; .getDimensionPixelSize( com.android.systemui.customization.R.dimen.large_clock_text_size) * 2; int top = parent.getHeight() / 2 - targetHeight / 2 + largeClockTopMargin / 2; return new Rect( Loading @@ -81,7 +84,8 @@ public class KeyguardClockSwitch extends RelativeLayout { /** Returns a region for the small clock to position itself, based on the given parent. */ public static Rect getSmallClockRegion(ViewGroup parent) { int targetHeight = parent.getResources() .getDimensionPixelSize(R.dimen.small_clock_text_size); .getDimensionPixelSize( com.android.systemui.customization.R.dimen.small_clock_text_size); return new Rect( parent.getLeft(), parent.getTop(), Loading packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java +4 −2 Original line number Diff line number Diff line Loading @@ -229,7 +229,8 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS mKeyguardSmallClockTopMargin = mView.getResources().getDimensionPixelSize(R.dimen.keyguard_clock_top_margin); mKeyguardLargeClockTopMargin = mView.getResources().getDimensionPixelSize(R.dimen.keyguard_large_clock_top_margin); mView.getResources().getDimensionPixelSize( com.android.systemui.customization.R.dimen.keyguard_large_clock_top_margin); mKeyguardDateWeatherViewInvisibility = mView.getResources().getInteger(R.integer.keyguard_date_weather_view_invisibility); Loading Loading @@ -365,7 +366,8 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS mKeyguardSmallClockTopMargin = mView.getResources().getDimensionPixelSize(R.dimen.keyguard_clock_top_margin); mKeyguardLargeClockTopMargin = mView.getResources().getDimensionPixelSize(R.dimen.keyguard_large_clock_top_margin); mView.getResources().getDimensionPixelSize( com.android.systemui.customization.R.dimen.keyguard_large_clock_top_margin); mKeyguardDateWeatherViewInvisibility = mView.getResources().getInteger(R.integer.keyguard_date_weather_view_invisibility); mView.updateClockTargetRegions(); Loading packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java +2 −1 Original line number Diff line number Diff line Loading @@ -1167,7 +1167,8 @@ public class KeyguardSecurityContainer extends ConstraintLayout { } drawable.setTint(iconColor); Drawable bg = context.getDrawable(R.drawable.user_avatar_bg); Drawable bg = context.getDrawable( com.android.settingslib.R.drawable.user_avatar_bg); bg.setTintBlendMode(BlendMode.DST); bg.setTint(Utils.getColorAttrDefaultColor(context, com.android.internal.R.attr.colorSurfaceVariant)); Loading Loading
packages/SystemUI/Android.bp +2 −0 Original line number Diff line number Diff line Loading @@ -154,6 +154,7 @@ android_library { "res-keyguard", "res", ], use_resource_processor: true, static_libs: [ "WifiTrackerLib", "WindowManager-Shell", Loading Loading @@ -530,6 +531,7 @@ android_app { ], resource_dirs: [], use_resource_processor: true, platform_apis: true, system_ext_specific: true, certificate: "platform", Loading
packages/SystemUI/src/com/android/keyguard/ClockEventController.kt +1 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ import android.widget.FrameLayout import androidx.annotation.VisibleForTesting import androidx.lifecycle.Lifecycle import androidx.lifecycle.repeatOnLifecycle import com.android.systemui.R import com.android.systemui.customization.R import com.android.systemui.broadcast.BroadcastDispatcher import com.android.systemui.dagger.qualifiers.Background import com.android.systemui.dagger.qualifiers.Main Loading
packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java +7 −3 Original line number Diff line number Diff line Loading @@ -66,9 +66,12 @@ public class KeyguardClockSwitch extends RelativeLayout { /** Returns a region for the large clock to position itself, based on the given parent. */ public static Rect getLargeClockRegion(ViewGroup parent) { int largeClockTopMargin = parent.getResources() .getDimensionPixelSize(R.dimen.keyguard_large_clock_top_margin); .getDimensionPixelSize( com.android.systemui.customization.R.dimen.keyguard_large_clock_top_margin); int targetHeight = parent.getResources() .getDimensionPixelSize(R.dimen.large_clock_text_size) * 2; .getDimensionPixelSize( com.android.systemui.customization.R.dimen.large_clock_text_size) * 2; int top = parent.getHeight() / 2 - targetHeight / 2 + largeClockTopMargin / 2; return new Rect( Loading @@ -81,7 +84,8 @@ public class KeyguardClockSwitch extends RelativeLayout { /** Returns a region for the small clock to position itself, based on the given parent. */ public static Rect getSmallClockRegion(ViewGroup parent) { int targetHeight = parent.getResources() .getDimensionPixelSize(R.dimen.small_clock_text_size); .getDimensionPixelSize( com.android.systemui.customization.R.dimen.small_clock_text_size); return new Rect( parent.getLeft(), parent.getTop(), Loading
packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java +4 −2 Original line number Diff line number Diff line Loading @@ -229,7 +229,8 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS mKeyguardSmallClockTopMargin = mView.getResources().getDimensionPixelSize(R.dimen.keyguard_clock_top_margin); mKeyguardLargeClockTopMargin = mView.getResources().getDimensionPixelSize(R.dimen.keyguard_large_clock_top_margin); mView.getResources().getDimensionPixelSize( com.android.systemui.customization.R.dimen.keyguard_large_clock_top_margin); mKeyguardDateWeatherViewInvisibility = mView.getResources().getInteger(R.integer.keyguard_date_weather_view_invisibility); Loading Loading @@ -365,7 +366,8 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS mKeyguardSmallClockTopMargin = mView.getResources().getDimensionPixelSize(R.dimen.keyguard_clock_top_margin); mKeyguardLargeClockTopMargin = mView.getResources().getDimensionPixelSize(R.dimen.keyguard_large_clock_top_margin); mView.getResources().getDimensionPixelSize( com.android.systemui.customization.R.dimen.keyguard_large_clock_top_margin); mKeyguardDateWeatherViewInvisibility = mView.getResources().getInteger(R.integer.keyguard_date_weather_view_invisibility); mView.updateClockTargetRegions(); Loading
packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java +2 −1 Original line number Diff line number Diff line Loading @@ -1167,7 +1167,8 @@ public class KeyguardSecurityContainer extends ConstraintLayout { } drawable.setTint(iconColor); Drawable bg = context.getDrawable(R.drawable.user_avatar_bg); Drawable bg = context.getDrawable( com.android.settingslib.R.drawable.user_avatar_bg); bg.setTintBlendMode(BlendMode.DST); bg.setTint(Utils.getColorAttrDefaultColor(context, com.android.internal.R.attr.colorSurfaceVariant)); Loading