Home
last modified time | relevance | path

Searched refs:landscape (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNavigationBarInflaterView.java103 Configuration landscape = new Configuration(); in createInflaters() local
104 landscape.setTo(mContext.getResources().getConfiguration()); in createInflaters()
105 landscape.orientation = Configuration.ORIENTATION_LANDSCAPE; in createInflaters()
106 mLandscapeInflater = LayoutInflater.from(mContext.createConfigurationContext(landscape)); in createInflaters()
239 private void inflateButtons(String[] buttons, ViewGroup parent, boolean landscape) { in inflateButtons() argument
241 inflateButton(buttons[i], parent, landscape); in inflateButtons()
254 protected View inflateButton(String buttonSpec, ViewGroup parent, boolean landscape) { in inflateButton() argument
255 LayoutInflater inflater = landscape ? mLandscapeInflater : mLayoutInflater; in inflateButton()
257 View v = createView(buttonSpec, parent, inflater, landscape); in inflateButton()
266 View lastView = landscape ? mLastLandscape : mLastPortrait; in inflateButton()
[all …]
DNavigationBarView.java376 private KeyButtonDrawable getBackIconWithAlt(boolean carMode, boolean landscape) { in getBackIconWithAlt() argument
377 return landscape in getBackIconWithAlt()
382 private KeyButtonDrawable getBackIcon(boolean carMode, boolean landscape) { in getBackIcon() argument
383 return landscape in getBackIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
DDivider.java89 final boolean landscape = configuration.orientation == ORIENTATION_LANDSCAPE; in addDivider()
90 final int width = landscape ? size : MATCH_PARENT; in addDivider()
91 final int height = landscape ? MATCH_PARENT : size; in addDivider()
DDividerView.java294 boolean landscape = getResources().getConfiguration().orientation in onFinishInflate()
297 landscape ? TYPE_HORIZONTAL_DOUBLE_ARROW : TYPE_VERTICAL_DOUBLE_ARROW)); in onFinishInflate()
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DIconTest.java47 final Bitmap bm3 = ((BitmapDrawable) getContext().getDrawable(R.drawable.landscape)) in testWithBitmap()
146 final Bitmap res1 = ((BitmapDrawable) getContext().getDrawable(R.drawable.landscape)) in testWithBitmapResource()
149 final Icon im1 = Icon.createWithResource(getContext(), R.drawable.landscape); in testWithBitmapResource()
169 final Bitmap bit1 = ((BitmapDrawable) getContext().getDrawable(R.drawable.landscape)) in testWithFile()
193 final Bitmap bit1 = ((BitmapDrawable) getContext().getDrawable(R.drawable.landscape)) in testAsync()
236 … final Bitmap originalbits = ((BitmapDrawable) getContext().getDrawable(R.drawable.landscape)) in testParcel()
259 final Icon res1 = Icon.createWithResource(getContext(), R.drawable.landscape); in testParcel()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DDetailsOverviewRowPresenter.java478 boolean landscape = false; in bindImageDrawable()
482 landscape = true; in bindImageDrawable()
488 if ((landscape && drawableWidth > cardHeight) in bindImageDrawable()
489 || (!landscape && drawableHeight > cardHeight)) { in bindImageDrawable()
498 if (landscape && drawableWidth > cardHeight - horizontalMargin) { in bindImageDrawable()
500 } else if (!landscape && drawableHeight > cardHeight - 2 * verticalMargin) { in bindImageDrawable()
/frameworks/base/core/tests/coretests/src/android/widget/
DRemoteViewsTest.java159 RemoteViews landscape = new RemoteViews(mPackage, R.layout.remote_views_test); in parcelSize_differentOrientation() local
163 RemoteViews views = new RemoteViews(landscape, portrait); in parcelSize_differentOrientation()
164 assertTrue(getParcelSize(views) < (getParcelSize(landscape) + getParcelSize(portrait))); in parcelSize_differentOrientation()
/frameworks/base/core/java/android/widget/
DRemoteViews.java2212 public RemoteViews(RemoteViews landscape, RemoteViews portrait) {
2213 if (landscape == null || portrait == null) {
2216 if (landscape.mApplication.uid != portrait.mApplication.uid
2217 || !landscape.mApplication.packageName.equals(portrait.mApplication.packageName)) {
2223 mLandscape = landscape;
2230 configureRemoteViewsAsChild(landscape);
/frameworks/base/services/core/java/com/android/server/am/
DTaskRecord.java1586 final boolean landscape = bounds.width() > bounds.height(); in canResizeToBounds()
1588 return mBounds == null || landscape == (mBounds.width() > mBounds.height()); in canResizeToBounds()
1590 return (mResizeMode != RESIZE_MODE_FORCE_RESIZABLE_PORTRAIT_ONLY || !landscape) in canResizeToBounds()
1591 && (mResizeMode != RESIZE_MODE_FORCE_RESIZABLE_LANDSCAPE_ONLY || landscape); in canResizeToBounds()
/frameworks/base/services/core/java/com/android/server/policy/
DPhoneWindowManager.java3165 final boolean landscape = frame.height() > frame.width(); in selectDockedDividerAnimationLw()
3166 final boolean offscreenLandscape = landscape && (frame.right - insets <= 0 in selectDockedDividerAnimationLw()
3168 final boolean offscreenPortrait = !landscape && (frame.top - insets <= 0 in selectDockedDividerAnimationLw()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt8811 …ublic static final java.lang.String FEATURE_SCREEN_LANDSCAPE = "android.hardware.screen.landscape";
12305 field public static final java.lang.String SCENE_MODE_LANDSCAPE = "landscape";
/frameworks/base/api/
Dcurrent.txt10698 …ublic static final java.lang.String FEATURE_SCREEN_LANDSCAPE = "android.hardware.screen.landscape";
14647 field public static final java.lang.String SCENE_MODE_LANDSCAPE = "landscape";
Dsystem-current.txt11399 …ublic static final java.lang.String FEATURE_SCREEN_LANDSCAPE = "android.hardware.screen.landscape";
15427 field public static final java.lang.String SCENE_MODE_LANDSCAPE = "landscape";