Skip to content

Commit a0399e9

Browse files
author
Genkzsz11
committed
[SQUASHED] : Cleanup some commit
Revert "Enable NSRM (Network Socket Request Manager)." This reverts commit f93a5d0. Revert "Keyguard: Lock icon improvements" This reverts commit ed55832. Revert "SystemUI: Ensure keyguardstatusbar is hidden if not on keyguard" This reverts commit a13066c. Revert "Ambient pulsing: don't show lock icon" This reverts commit 9daf98b. Revert "SystemUI: Face Unlock animation" This reverts commit e9f4d4a. Revert "LockIcon: refresh icon on overlay changes" This reverts commit 75b8903. Revert "SystemUI: Improve EnhancedEstimatesGoogleImpl" This reverts commit d59e5cd.
1 parent 9837893 commit a0399e9

16 files changed

Lines changed: 18 additions & 489 deletions

File tree

apex/jobscheduler/framework/java/android/os/IDeviceIdleController.aidl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,4 @@ interface IDeviceIdleController {
4949
void exitIdle(String reason);
5050
int setPreIdleTimeoutMode(int Mode);
5151
void resetPreIdleTimeoutMode();
52-
int getIdleStateDetailed();
53-
int getLightIdleStateDetailed();
5452
}

apex/jobscheduler/service/java/com/android/server/DeviceIdleController.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1744,18 +1744,6 @@ public String[] getRemovedSystemPowerWhitelistApps() {
17441744
return isPowerSaveWhitelistAppInternal(name);
17451745
}
17461746

1747-
@Override public int getIdleStateDetailed() {
1748-
getContext().enforceCallingOrSelfPermission(android.Manifest.permission.DEVICE_POWER,
1749-
null);
1750-
return mState;
1751-
}
1752-
1753-
@Override public int getLightIdleStateDetailed() {
1754-
getContext().enforceCallingOrSelfPermission(android.Manifest.permission.DEVICE_POWER,
1755-
null);
1756-
return mLightState;
1757-
}
1758-
17591747
@Override
17601748
public long whitelistAppTemporarily(String packageName, int userId, String reason)
17611749
throws RemoteException {

core/java/android/app/IAlarmManager.aidl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,4 @@ interface IAlarmManager {
4141
@UnsupportedAppUsage
4242
AlarmManager.AlarmClockInfo getNextAlarmClock(int userId);
4343
long currentNetworkTimeMillis();
44-
// update the uids being synchronized by network socket request manager
45-
void updateBlockedUids(int uid, boolean isBlocked);
4644
}

core/java/android/os/IPowerManager.aidl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,6 @@ interface IPowerManager
100100
// Forces the system to suspend even if there are held wakelocks.
101101
boolean forceSuspend();
102102

103-
// update the uids being synchronized by network socket request manager
104-
void updateBlockedUids(int uid, boolean isBlocked);
105-
106103
// temporarily overrides the button brightness settings to allow the user to
107104
// see the effect of a settings change without applying it immediately
108105
void setTemporaryButtonBrightnessSettingOverride(int brightness);

packages/SystemUI/res/drawable/ic_lock_face.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.

packages/SystemUI/src/com/android/systemui/WaveSystemUIAnimations.java

Lines changed: 0 additions & 68 deletions
This file was deleted.

packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,9 @@ public void setVisible(boolean visible) {
304304
hideTransientIndication();
305305
}
306306
updateIndication(false);
307-
mLockIconController.getView().setAlpha(255);
308307
} else if (!visible) {
309308
// If we unlock and return to keyguard quickly, previous error should not be shown
310309
hideTransientIndication();
311-
mLockIconController.getView().setAlpha(0);
312310
}
313311
}
314312

packages/SystemUI/src/com/android/systemui/statusbar/phone/LockIcon.java

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import android.view.ViewTreeObserver.OnPreDrawListener;
3333

3434
import com.android.internal.graphics.ColorUtils;
35-
import com.android.systemui.WaveSystemUIAnimations;
3635
import com.android.systemui.Interpolators;
3736
import com.android.systemui.R;
3837
import com.android.systemui.statusbar.KeyguardAffordanceView;
@@ -56,7 +55,6 @@ public class LockIcon extends KeyguardAffordanceView {
5655
private boolean mPulsing;
5756
private boolean mDozing;
5857
private boolean mKeyguardJustShown;
59-
private boolean mIsFaceUnlock;
6058
private boolean mPredrawRegistered;
6159
private Drawable mFaceScanningAnim;
6260
private final SparseArray<Drawable> mDrawableCache = new SparseArray<>();
@@ -69,17 +67,12 @@ public boolean onPreDraw() {
6967

7068
int newState = mState;
7169
Drawable icon = getIcon(newState);
72-
mIsFaceUnlock = newState == STATE_SCANNING_FACE;
7370
setImageDrawable(icon, false, false);
74-
75-
if (mIsFaceUnlock) {
76-
icon = mContext.getDrawable(getIconForState(newState));
71+
if (newState == STATE_SCANNING_FACE) {
7772
announceForAccessibility(getResources().getString(
7873
R.string.accessibility_scanning_face));
7974
}
8075

81-
shakeFace();
82-
8376
if (icon instanceof AnimatedVectorDrawable) {
8477
final AnimatedVectorDrawable animation = (AnimatedVectorDrawable) icon;
8578
animation.forceAnimationOnUI();
@@ -123,7 +116,7 @@ protected void onConfigurationChanged(Configuration newConfig) {
123116
boolean updateIconVisibility(boolean visible) {
124117
boolean wasVisible = getVisibility() == VISIBLE;
125118
if (visible != wasVisible) {
126-
setVisibility((visible && !mPulsing) ? VISIBLE : INVISIBLE);
119+
setVisibility(visible ? VISIBLE : INVISIBLE);
127120
animate().cancel();
128121
if (visible) {
129122
setScaleX(0);
@@ -192,12 +185,11 @@ private Drawable getIcon(int newState) {
192185
private static int getIconForState(int state) {
193186
int iconRes;
194187
switch (state) {
195-
case STATE_SCANNING_FACE:
196-
iconRes = com.android.systemui.R.drawable.ic_lock_face;
197-
break;
198188
case STATE_LOCKED:
199189
// Scanning animation is a pulsing padlock. This means that the resting state is
200190
// just a padlock.
191+
case STATE_SCANNING_FACE:
192+
// Error animation also starts and ands on the padlock.
201193
case STATE_BIOMETRICS_ERROR:
202194
iconRes = com.android.internal.R.drawable.ic_lock;
203195
break;
@@ -275,8 +267,4 @@ private int getThemedAnimationResId(@LockAnimIndex int lockAnimIndex) {
275267
}
276268
return LOCK_ANIM_RES_IDS[0][lockAnimIndex];
277269
}
278-
279-
public void shakeFace() {
280-
WaveSystemUIAnimations.faceLockShake(this, mIsFaceUnlock ? false :true);
281-
}
282270
}

packages/SystemUI/src/com/android/systemui/statusbar/phone/LockscreenLockIconController.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,6 @@ public void onStateChanged(int newState) {
144144
private final ConfigurationListener mConfigurationListener = new ConfigurationListener() {
145145
private int mDensity;
146146

147-
@Override
148-
public void onOverlayChanged() {
149-
onThemeChanged();
150-
}
151-
152147
@Override
153148
public void onThemeChanged() {
154149
if (mLockIcon == null) {

packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,6 @@ private void reInflateViews() {
806806
mKeyguardStatusBar.onThemeChanged();
807807
}*/
808808

809-
mKeyguardStatusBar.setVisibility(mKeyguardShowing ? View.VISIBLE : View.INVISIBLE);
810809
setKeyguardStatusViewVisibility(mBarState, false, false);
811810
setKeyguardBottomAreaVisibility(mBarState, false);
812811
if (mOnReinflationListener != null) {

0 commit comments

Comments
 (0)