Revert "Moving DeviceProfile properties into DeviceProperties da..."

Revert submission 33672643-DataDeviceProfile1

Reason for revert: Droidmonitor created revert due to b/419867875. Will be verifying through ABTD before submission.

Fix: 419867875

Reverted changes: /q/submissionid:33672643-DataDeviceProfile1

Change-Id: Icb66aefbbcee24e05806b2139923e1f2ea1c65e3
This commit is contained in:
Priyanka Advani (xWF) authored and Android (Google) Code Review committed 2025-05-23 13:53:04 -07:00
1 parent e1111e28c2
commit 7705e92d93
127 files changed
+596 -726

No files matched your search

@@ -316,7 +316,7 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
Optional<BubbleControllers> bubbleControllersOptional = Optional.empty();
BubbleBarController.onTaskbarRecreated();
final boolean deviceBubbleBarEnabled = enableBubbleBarOnPhones()
|| (!mDeviceProfile.getDeviceProperties().isPhone() && !mDeviceProfile.isVerticalBarLayout());
|| (!mDeviceProfile.isPhone && !mDeviceProfile.isVerticalBarLayout());
if (BubbleBarController.isBubbleBarEnabled() && deviceBubbleBarEnabled
&& bubbleBarView != null && isPrimaryDisplay) {
Optional<BubbleStashedHandleViewController> bubbleHandleController = Optional.empty();
@@ -398,7 +398,7 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
onViewCreated();
}
/** Updates {@link deviceprofile} instances for any Taskbar windows. */
/** Updates {@link DeviceProfile} instances for any Taskbar windows. */
public void updateDeviceProfile(DeviceProfile launcherDp) {
applyDeviceProfile(launcherDp);
mControllers.taskbarOverlayController.updateLauncherDeviceProfile(launcherDp);
@@ -591,7 +591,7 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
*/
public boolean isPhoneMode() {
return ENABLE_TASKBAR_NAVBAR_UNIFICATION
&& mDeviceProfile.getDeviceProperties().isPhone()
&& mDeviceProfile.isPhone
&& !mDeviceProfile.isTaskbarPresent;
}
@@ -620,11 +620,11 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
/** Returns {@code true} iff a tiny version of taskbar is shown on phone. */
public boolean isTinyTaskbar() {
return enableTinyTaskbar() && mDeviceProfile.getDeviceProperties().isPhone() && mDeviceProfile.isTaskbarPresent;
return enableTinyTaskbar() && mDeviceProfile.isPhone && mDeviceProfile.isTaskbarPresent;
}
public boolean isBubbleBarOnPhone() {
return enableBubbleBarOnPhones() && enableBubbleBar() && mDeviceProfile.getDeviceProperties().isPhone();
return enableBubbleBarOnPhones() && enableBubbleBar() && mDeviceProfile.isPhone;
}
/**
@@ -1310,13 +1310,13 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
public void setTaskbarWindowSize(int size) {
// In landscape phone button nav mode, we should set the task bar width instead of height
// because this is the only case in which the nav bar is not on the display bottom.
boolean landscapePhoneButtonNav = isPhoneButtonNavMode() && mDeviceProfile.getDeviceProperties().isLandscape();
boolean landscapePhoneButtonNav = isPhoneButtonNavMode() && mDeviceProfile.isLandscape;
if ((landscapePhoneButtonNav ? mWindowLayoutParams.width : mWindowLayoutParams.height)
== size || mIsDestroyed) {
return;
}
if (size == MATCH_PARENT) {
size = mDeviceProfile.getDeviceProperties().getHeightPx();
size = mDeviceProfile.heightPx;
} else {
mLastRequestedNonFullscreenSize = size;
if (mIsFullscreen || mIsTaskbarSizeFrozenForAnimatingBubble) {