Home
last modified time | relevance | path

Searched refs:DisplayAdjustments (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/view/
DDisplayAdjustmentsTests.java24 import android.view.DisplayAdjustments.FixedRotationAdjustments;
42 DisplayAdjustments emptyAdjustments = new DisplayAdjustments(); in testDefaultConstructor_hasEmptyConfiguration()
49 DisplayAdjustments emptyAdjustments = new DisplayAdjustments((Configuration) null); in testConfigurationConstructor_nullConfigurationBecomesEmpty()
58 DisplayAdjustments adjustments = new DisplayAdjustments(configuration); in testConfigurationConstructor_copiesConfiguration()
67 DisplayAdjustments oldAdjustments = new DisplayAdjustments(configuration); in testDisplayAdjustmentsConstructor_copiesConfiguration()
69 DisplayAdjustments newAdjustments = new DisplayAdjustments(oldAdjustments); in testDisplayAdjustmentsConstructor_copiesConfiguration()
76 final DisplayAdjustments mDisplayAdjustments = new DisplayAdjustments(); in testFixedRotationAdjustments()
/frameworks/base/core/java/android/view/
DDisplayAdjustments.java32 public class DisplayAdjustments { class
33 public static final DisplayAdjustments DEFAULT_DISPLAY_ADJUSTMENTS = new DisplayAdjustments();
40 public DisplayAdjustments() { in DisplayAdjustments() method in DisplayAdjustments
43 public DisplayAdjustments(@Nullable Configuration configuration) { in DisplayAdjustments() method in DisplayAdjustments
49 public DisplayAdjustments(@NonNull DisplayAdjustments daj) { in DisplayAdjustments() method in DisplayAdjustments
189 if (!(o instanceof DisplayAdjustments)) { in equals()
192 DisplayAdjustments daj = (DisplayAdjustments)o; in equals()
DDisplay.java98 private DisplayAdjustments mDisplayAdjustments;
504 DisplayAdjustments daj) { in Display()
521 /*@NotNull*/ DisplayInfo displayInfo, DisplayAdjustments daj, Resources res) { in Display()
527 ? new DisplayAdjustments(mResources.getConfiguration()) in Display()
528 : daj != null ? new DisplayAdjustments(daj) : new DisplayAdjustments(); in Display()
695 public DisplayAdjustments getDisplayAdjustments() { in getDisplayAdjustments()
697 final DisplayAdjustments currentAdjustments = mResources.getDisplayAdjustments(); in getDisplayAdjustments()
699 mDisplayAdjustments = new DisplayAdjustments(currentAdjustments); in getDisplayAdjustments()
1592 final DisplayAdjustments adjustments = getDisplayAdjustments(); in toString()
/frameworks/base/core/tests/mockingcoretests/src/android/view/
DDisplayTest.java37 import android.view.DisplayAdjustments.FixedRotationAdjustments;
99 DisplayAdjustments displayAdjustments = in setupTests()
125 DisplayAdjustments.DEFAULT_DISPLAY_ADJUSTMENTS); in testConstructor_defaultDisplayAdjustments_matchesDisplayInfo()
127 DisplayAdjustments.DEFAULT_DISPLAY_ADJUSTMENTS); in testConstructor_defaultDisplayAdjustments_matchesDisplayInfo()
149 DisplayAdjustments.DEFAULT_DISPLAY_ADJUSTMENTS); in testGetRotation_defaultDisplayAdjustments_rotationNotAdjusted()
158 DisplayAdjustments displayAdjustments = DisplayAdjustments.DEFAULT_DISPLAY_ADJUSTMENTS; in testGetRotation_displayAdjustmentsWithoutOverride_rotationNotAdjusted()
221 DisplayAdjustments.DEFAULT_DISPLAY_ADJUSTMENTS); in testGetRealSize_defaultDisplayAdjustmentsPortrait_matchesLogicalSize()
231 DisplayAdjustments.DEFAULT_DISPLAY_ADJUSTMENTS); in testGetRealSize_defaultDisplayAdjustmentsLandscape_matchesLogicalSize()
367 DisplayAdjustments.DEFAULT_DISPLAY_ADJUSTMENTS); in testGetRealMetrics_defaultDisplayAdjustmentsPortrait_matchesLogicalSize()
377 DisplayAdjustments.DEFAULT_DISPLAY_ADJUSTMENTS); in testGetRealMetrics_defaultDisplayAdjustmentsLandscape_matchesLogicalSize()
[all …]
/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/
DMediaRouteInfoTest.java25 import android.view.DisplayAdjustments;
52 sWifiDisplay = new Display(global, 2, wifiInfo, new DisplayAdjustments()); in setUpOnce()
57 sExternalDisplay = new Display(global, 3, externalInfo, new DisplayAdjustments()); in setUpOnce()
62 sInternalDisplay = new Display(global, 4, internalInfo, new DisplayAdjustments()); in setUpOnce()
/frameworks/base/core/tests/coretests/src/com/android/internal/policy/
DDecorContextTest.java33 import android.view.DisplayAdjustments;
72 new DisplayInfo(), DisplayAdjustments.DEFAULT_DISPLAY_ADJUSTMENTS); in testDecorContextWithDefaultDisplay()
87 new DisplayInfo(), DisplayAdjustments.DEFAULT_DISPLAY_ADJUSTMENTS); in testDecorContextWithExternalDisplay()
/frameworks/base/core/java/android/app/
DResourcesManager.java48 import android.view.DisplayAdjustments;
326 return getDisplayMetrics(mResDisplayId, DisplayAdjustments.DEFAULT_DISPLAY_ADJUSTMENTS); in getDisplayMetrics()
333 protected @NonNull DisplayMetrics getDisplayMetrics(int displayId, DisplayAdjustments da) { in getDisplayMetrics()
617 final DisplayAdjustments daj = new DisplayAdjustments(key.mOverrideConfiguration); in createResourcesImpl()
920 DisplayAdjustments daj = new DisplayAdjustments(key.mOverrideConfiguration); in rebaseKeyForDisplay()
1245 DisplayAdjustments displayAdjustments = new DisplayAdjustments(rebasedOverrideConfig); in rebaseActivityOverrideConfig()
1320 @Nullable CompatibilityInfo compat, @Nullable DisplayAdjustments adjustments) { in applyConfigurationToResources()
1396 DisplayAdjustments daj = resourcesImpl.getDisplayAdjustments(); in applyConfigurationToResourcesLocked()
1398 daj = new DisplayAdjustments(daj); in applyConfigurationToResourcesLocked()
1604 @Nullable Consumer<DisplayAdjustments> override) { in overrideTokenDisplayAdjustments()
DClientTransactionHandler.java30 import android.view.DisplayAdjustments.FixedRotationAdjustments;
DLoadedApk.java59 import android.view.DisplayAdjustments;
134 private final DisplayAdjustments mDisplayAdjustments = new DisplayAdjustments();
/frameworks/base/core/java/android/content/res/
DResources.java63 import android.view.DisplayAdjustments;
145 private DisplayAdjustments mOverrideDisplayAdjustments;
309 mResourcesImpl = new ResourcesImpl(assets, metrics, config, new DisplayAdjustments()); in Resources()
339 new DisplayAdjustments()); in Resources()
2107 public DisplayAdjustments getDisplayAdjustments() { in getDisplayAdjustments()
2108 final DisplayAdjustments overrideDisplayAdjustments = mOverrideDisplayAdjustments; in getDisplayAdjustments()
2124 public void overrideDisplayAdjustments(@Nullable Consumer<DisplayAdjustments> override) { in overrideDisplayAdjustments()
2126 mOverrideDisplayAdjustments = new DisplayAdjustments( in overrideDisplayAdjustments()
DResourcesImpl.java53 import android.view.DisplayAdjustments;
147 private final DisplayAdjustments mDisplayAdjustments;
173 @Nullable Configuration config, @NonNull DisplayAdjustments displayAdjustments) { in ResourcesImpl()
181 public DisplayAdjustments getDisplayAdjustments() { in getDisplayAdjustments()
/frameworks/base/core/java/android/app/servertransaction/
DFixedRotationAdjustmentsItem.java23 import android.view.DisplayAdjustments.FixedRotationAdjustments;
DLaunchActivityItem.java41 import android.view.DisplayAdjustments.FixedRotationAdjustments;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DSidefpsControllerTest.kt30 import android.view.DisplayAdjustments.DEFAULT_DISPLAY_ADJUSTMENTS
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardDisplayManagerTest.java19 import static android.view.DisplayAdjustments.DEFAULT_DISPLAY_ADJUSTMENTS;
/frameworks/layoutlib/bridge/src/android/view/
DWindowManagerImpl.java54 DisplayAdjustments.DEFAULT_DISPLAY_ADJUSTMENTS); in WindowManagerImpl()
/frameworks/base/core/java/android/hardware/display/
DDisplayManagerGlobal.java46 import android.view.DisplayAdjustments;
251 public Display getCompatibleDisplay(int displayId, DisplayAdjustments daj) { in getCompatibleDisplay()
285 return getCompatibleDisplay(displayId, DisplayAdjustments.DEFAULT_DISPLAY_ADJUSTMENTS); in getRealDisplay()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTestDisplayContent.java20 import static android.view.DisplayAdjustments.DEFAULT_DISPLAY_ADJUSTMENTS;
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesManagerTest.java26 import android.view.DisplayAdjustments;
84 protected DisplayMetrics getDisplayMetrics(int displayId, DisplayAdjustments daj) { in setUp()
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DTestUtils.java32 import android.view.DisplayAdjustments.FixedRotationAdjustments;
/frameworks/base/test-mock/src/android/test/mock/
DMockContext.java48 import android.view.DisplayAdjustments;
843 public DisplayAdjustments getDisplayAdjustments(int displayId) { in getDisplayAdjustments()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/
DNavigationBarTest.java24 import static android.view.DisplayAdjustments.DEFAULT_DISPLAY_ADJUSTMENTS;
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityInputFilterTest.java20 import static android.view.DisplayAdjustments.DEFAULT_DISPLAY_ADJUSTMENTS;
/frameworks/base/core/java/android/content/
DContextWrapper.java46 import android.view.DisplayAdjustments;
1090 public DisplayAdjustments getDisplayAdjustments(int displayId) { in getDisplayAdjustments()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowToken.java51 import android.view.DisplayAdjustments.FixedRotationAdjustments;

12