@@ -18,6 +18,7 @@ Change-Id: I4650cef96617c32e52d5dd088c8afffb06ab5e1d
18
18
packages/SystemUI/res/values/config.xml | 1 -
19
19
.../SystemUI/res/values/custom_config.xml | 4 -
20
20
.../keyguard/KeyguardSecurityContainer.java | 15 +-
21
+ .../keyguard/KeyguardUpdateMonitor.java | 15 +-
21
22
.../systemui/biometrics/FODCircleView.java | 544 ------------------
22
23
.../biometrics/FODCircleViewImpl.java | 128 -----
23
24
.../biometrics/FODCircleViewImplCallback.java | 25 -
@@ -35,7 +36,9 @@ Change-Id: I4650cef96617c32e52d5dd088c8afffb06ab5e1d
35
36
.../biometrics/BiometricServiceBase.java | 2 +-
36
37
.../fingerprint/FingerprintService.java | 112 ----
37
38
.../statusbar/StatusBarManagerService.java | 22 -
38
- 28 files changed, 14 insertions(+), 1073 deletions(-)
39
+ .../statusbar/UnusedStatusBar.java | 7 +-
40
+ .../statusbar/UnusedStatusBarModule.java | 7 +-
41
+ 31 files changed, 22 insertions(+), 1094 deletions(-)
39
42
delete mode 100644 packages/SystemUI/res-keyguard/values/custom_dimens.xml
40
43
delete mode 100644 packages/SystemUI/res/drawable-nodpi/fod_icon_pressed.png
41
44
delete mode 100644 packages/SystemUI/res/drawable/fod_icon_default.xml
@@ -278,6 +281,73 @@ index cc03b4f816a..1db2e32b8cd 100644
278
281
return insets.inset(0, 0, 0, inset);
279
282
}
280
283
284
+ diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java b/packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java
285
+ index 3fe3d863666..c124ee6840e 100644
286
+ --- a/packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java
287
+ +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java
288
+ @@ -131,8 +131,6 @@ import javax.inject.Singleton;
289
+ import com.android.internal.util.custom.faceunlock.FaceUnlockUtils;
290
+ import com.android.internal.util.custom.fod.FodUtils;
291
+
292
+ - import com.android.internal.util.custom.fod.FodUtils;
293
+ -
294
+ /**
295
+ * Watches for updates that may be interesting to the keyguard, and provides
296
+ * the up to date information as well as a registration for callbacks that care
297
+ @@ -339,8 +337,6 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
298
+ }
299
+ };
300
+
301
+ - private boolean mHasFod;
302
+ -
303
+ private PocketManager mPocketManager;
304
+ private boolean mIsDeviceInPocket;
305
+ private final IPocketCallback mPocketCallback = new IPocketCallback.Stub() {
306
+ @@ -716,7 +712,7 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
307
+
308
+ private void handleFingerprintHelp(int msgId, String helpString) {
309
+ Assert.isMainThread();
310
+ - if (mIsDeviceInPocket && mHasFod){
311
+ + if (mIsDeviceInPocket){
312
+ return;
313
+ }
314
+ for (int i = 0; i < mCallbacks.size(); i++) {
315
+ @@ -1754,8 +1750,6 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
316
+ }
317
+ };
318
+
319
+ - mHasFod = FodUtils.hasFodSupport(mContext);
320
+ -
321
+ // Since device can't be un-provisioned, we only need to register a content observer
322
+ // to update mDeviceProvisioned when we are...
323
+ if (!mDeviceProvisioned) {
324
+ @@ -1926,8 +1920,7 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
325
+ return;
326
+ }
327
+ mHandler.removeCallbacks(mRetryFingerprintAuthentication);
328
+ - boolean hideFodForStrongAuth = mHasFod && userNeedsStrongAuth();
329
+ - boolean shouldListenForFingerprint = !hideFodForStrongAuth && shouldListenForFingerprint();
330
+ + boolean shouldListenForFingerprint = shouldListenForFingerprint();
331
+ boolean runningOrRestarting = mFingerprintRunningState == BIOMETRIC_STATE_RUNNING
332
+ || mFingerprintRunningState == BIOMETRIC_STATE_CANCELLING_RESTARTING;
333
+ if (runningOrRestarting && !shouldListenForFingerprint) {
334
+ @@ -2020,14 +2013,14 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
335
+ (mKeyguardOccluded && mIsDreaming)) && mDeviceInteractive && !mGoingToSleep
336
+ && !mSwitchingUser && !isFingerprintDisabled(getCurrentUser())
337
+ && (!mKeyguardGoingAway || !mDeviceInteractive) && mIsPrimaryUser
338
+ - && allowedOnBouncer && (mHasFod || !mIsDeviceInPocket);
339
+ + && allowedOnBouncer && !mIsDeviceInPocket;
340
+ } else {
341
+ return (mKeyguardIsVisible || !mDeviceInteractive ||
342
+ (mBouncer && !mKeyguardGoingAway) || mGoingToSleep ||
343
+ shouldListenForFingerprintAssistant() || (mKeyguardOccluded && mIsDreaming))
344
+ && !mSwitchingUser && !isFingerprintDisabled(getCurrentUser())
345
+ && (!mKeyguardGoingAway || !mDeviceInteractive) && mIsPrimaryUser
346
+ - && allowedOnBouncer && (mHasFod || !mIsDeviceInPocket);
347
+ + && allowedOnBouncer && !mIsDeviceInPocket;
348
+ }
349
+ }
350
+
281
351
diff --git a/packages/SystemUI/src/com/android/systemui/biometrics/FODCircleView.java b/packages/SystemUI/src/com/android/systemui/biometrics/FODCircleView.java
282
352
deleted file mode 100644
283
353
index 654d5c45460..00000000000
@@ -1950,6 +2020,69 @@ index 2412209452b..13b9508a9c8 100644
1950
2020
@Override
1951
2021
public void setBlockedGesturalNavigation(boolean blocked) {
1952
2022
if (mBar != null) {
2023
+ diff --git a/packages/CarSystemUI/src/com/android/systemui/car/statusbar/UnusedStatusBar.java b/packages/CarSystemUI/src/com/android/systemui/car/statusbar/UnusedStatusBar.java
2024
+ index 6095928c4cf..b7b9431d69d 100644
2025
+ --- a/packages/CarSystemUI/src/com/android/systemui/car/statusbar/UnusedStatusBar.java
2026
+ +++ b/packages/CarSystemUI/src/com/android/systemui/car/statusbar/UnusedStatusBar.java
2027
+ @@ -26,7 +26,6 @@ import com.android.keyguard.KeyguardUpdateMonitor;
2028
+ import com.android.keyguard.ViewMediatorCallback;
2029
+ import com.android.systemui.InitController;
2030
+ import com.android.systemui.assist.AssistManager;
2031
+ - import com.android.systemui.biometrics.FODCircleViewImpl;
2032
+ import com.android.systemui.broadcast.BroadcastDispatcher;
2033
+ import com.android.systemui.bubbles.BubbleController;
2034
+ import com.android.systemui.colorextraction.SysuiColorExtractor;
2035
+ @@ -185,8 +184,7 @@ public class UnusedStatusBar extends StatusBar {
2036
+ DismissCallbackRegistry dismissCallbackRegistry,
2037
+ Lazy<NotificationShadeDepthController> notificationShadeDepthControllerLazy,
2038
+ StatusBarTouchableRegionManager statusBarTouchableRegionManager,
2039
+ - TunerService tunerService,
2040
+ - FODCircleViewImpl fodCircleViewImpl) {
2041
+ + TunerService tunerService) {
2042
+ super(context, notificationsController, lightBarController, autoHideController,
2043
+ keyguardUpdateMonitor, statusBarIconController, pulseExpansionHandler,
2044
+ notificationWakeUpCoordinator, keyguardBypassController, keyguardStateController,
2045
+ @@ -213,8 +211,7 @@ public class UnusedStatusBar extends StatusBar {
2046
+ userInfoControllerImpl, phoneStatusBarPolicy, keyguardIndicationController,
2047
+ dismissCallbackRegistry, notificationShadeDepthControllerLazy,
2048
+ statusBarTouchableRegionManager,
2049
+ - tunerService,
2050
+ - fodCircleViewImpl);
2051
+ + tunerService);
2052
+ }
2053
+
2054
+ @Override
2055
+ diff --git a/packages/CarSystemUI/src/com/android/systemui/car/statusbar/UnusedStatusBarModule.java b/packages/CarSystemUI/src/com/android/systemui/car/statusbar/UnusedStatusBarModule.java
2056
+ index 28bcaf6c144..f2cef14b558 100644
2057
+ --- a/packages/CarSystemUI/src/com/android/systemui/car/statusbar/UnusedStatusBarModule.java
2058
+ +++ b/packages/CarSystemUI/src/com/android/systemui/car/statusbar/UnusedStatusBarModule.java
2059
+ @@ -30,7 +30,6 @@ import com.android.keyguard.KeyguardUpdateMonitor;
2060
+ import com.android.keyguard.ViewMediatorCallback;
2061
+ import com.android.systemui.InitController;
2062
+ import com.android.systemui.assist.AssistManager;
2063
+ - import com.android.systemui.biometrics.FODCircleViewImpl;
2064
+ import com.android.systemui.broadcast.BroadcastDispatcher;
2065
+ import com.android.systemui.bubbles.BubbleController;
2066
+ import com.android.systemui.colorextraction.SysuiColorExtractor;
2067
+ @@ -205,8 +204,7 @@ public interface UnusedStatusBarModule {
2068
+ Lazy<NotificationShadeDepthController> notificationShadeDepthController,
2069
+ DismissCallbackRegistry dismissCallbackRegistry,
2070
+ StatusBarTouchableRegionManager statusBarTouchableRegionManager,
2071
+ - TunerService tunerService,
2072
+ - FODCircleViewImpl fodCircleViewImpl) {
2073
+ + TunerService tunerService) {
2074
+ return new UnusedStatusBar(
2075
+ context,
2076
+ notificationsController,
2077
+ @@ -285,7 +283,6 @@ public interface UnusedStatusBarModule {
2078
+ dismissCallbackRegistry,
2079
+ notificationShadeDepthController,
2080
+ statusBarTouchableRegionManager,
2081
+ - tunerService,
2082
+ - fodCircleViewImpl);
2083
+ + tunerService);
2084
+ }
2085
+ }
1953
2086
- -
1954
2087
2.25.1
1955
2088
0 commit comments