Merge "Improve dumps for NotificationShelf views" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f201b1bc4d
@@ -168,6 +168,17 @@ public class NotificationShelf extends ActivatableNotificationView implements
|
||||
return new ShelfState();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "NotificationShelf("
|
||||
+ "hideBackground=" + mHideBackground + " notGoneIndex=" + mNotGoneIndex
|
||||
+ " hasItemsInStableShelf=" + mHasItemsInStableShelf
|
||||
+ " statusBarState=" + mStatusBarState + " interactive=" + mInteractive
|
||||
+ " animationsEnabled=" + mAnimationsEnabled
|
||||
+ " showNotificationShelf=" + mShowNotificationShelf
|
||||
+ " indexOfFirstViewInShelf=" + mIndexOfFirstViewInShelf + ')';
|
||||
}
|
||||
|
||||
/** Update the state of the shelf. */
|
||||
public void updateState(StackScrollAlgorithm.StackScrollAlgorithmState algorithmState,
|
||||
AmbientState ambientState) {
|
||||
|
||||
@@ -36,7 +36,6 @@ import android.graphics.Paint;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.graphics.drawable.Icon;
|
||||
import android.os.Parcelable;
|
||||
import android.os.Trace;
|
||||
import android.os.UserHandle;
|
||||
import android.service.notification.StatusBarNotification;
|
||||
@@ -551,9 +550,12 @@ public class StatusBarIconView extends AnimatedImageView implements StatusIconDi
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "StatusBarIconView(slot=" + mSlot + " icon=" + mIcon
|
||||
+ " notification=" + mNotification + ")";
|
||||
return "StatusBarIconView("
|
||||
+ "slot='" + mSlot + " alpha=" + getAlpha() + " icon=" + mIcon
|
||||
+ " iconColor=#" + Integer.toHexString(mIconColor)
|
||||
+ " notification=" + mNotification + ')';
|
||||
}
|
||||
|
||||
public StatusBarNotification getNotification() {
|
||||
|
||||
@@ -278,6 +278,15 @@ public class NotificationIconContainer extends ViewGroup {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "NotificationIconContainer("
|
||||
+ "dozing=" + mDozing + " onLockScreen=" + mOnLockScreen
|
||||
+ " inNotificationIconShelf=" + mInNotificationIconShelf
|
||||
+ " speedBumpIndex=" + mSpeedBumpIndex
|
||||
+ " themedTextColorPrimary=#" + Integer.toHexString(mThemedTextColorPrimary) + ')';
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
public void setIconSize(int size) {
|
||||
mIconSize = size;
|
||||
|
||||
Reference in New Issue
Block a user