/frameworks/base/core/java/com/android/internal/widget/ |
WeightedLinearLayout.java | 60 final boolean isPortrait = screenWidth < metrics.heightPixels; 71 final float widthWeightMin = isPortrait ? mMinorWeightMin : mMajorWeightMin; 72 final float widthWeightMax = isPortrait ? mMinorWeightMax : mMajorWeightMax;
|
/cts/tests/tests/print/src/android/print/cts/ |
ClassParametersTest.java | 161 assertTrue(testMediaSize1.isPortrait()); 168 assertFalse(testMediaSize1L.isPortrait()); 175 assertTrue(testMediaSize1P.isPortrait()); 183 assertTrue(testMediaSize2.isPortrait()); 190 assertTrue(testMediaSize2L.isPortrait()); 197 assertTrue(testMediaSize2P.isPortrait()); 206 assertFalse(testMediaSize3.isPortrait()); 213 assertFalse(testMediaSize3L.isPortrait()); 220 assertTrue(testMediaSize3P.isPortrait());
|
CustomPrintOptionsTest.java | 236 * @param isPortrait If the mediaSize is portrait 244 final PageRange[] pages, final MediaSize mediaSize, final boolean isPortrait, 253 if (isPortrait) { 422 testCase(false, 1, DEFAULT_PAGES, DEFAULT_MEDIA_SIZE, DEFAULT_MEDIA_SIZE.isPortrait(), 428 testCase(true, 1, DEFAULT_PAGES, DEFAULT_MEDIA_SIZE, DEFAULT_MEDIA_SIZE.isPortrait(),
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
ActivityTransition.java | 98 boolean isPortrait = 100 gridLayout.setRowCount(isPortrait ? 4 : 2); 101 gridLayout.setColumnCount(isPortrait ? 2 : 4);
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
TopRightWeightedLayout.java | 58 final boolean isPortrait = Configuration.ORIENTATION_PORTRAIT == orientation; 59 if (isPortrait && !isHorizontal) { 66 } else if (!isPortrait && isHorizontal) {
|
/packages/apps/Camera2/src/com/android/camera/util/ |
AspectRatio.java | 128 if (isPortrait()) { 140 if (other.isPortrait()) { 206 private boolean isPortrait() {
|
Size.java | 115 if (isPortrait()) { 226 private boolean isPortrait() {
|
/packages/apps/DeskClock/src/com/android/alarmclock/ |
WidgetUtils.java | 58 if (Utils.isPortrait(context)) { 88 if (Utils.isPortrait(context)) {
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
ContentFrameLayout.java | 96 final boolean isPortrait = metrics.widthPixels < metrics.heightPixels; 103 final TypedValue tvw = isPortrait ? mFixedWidthMinor : mFixedWidthMajor; 122 final TypedValue tvh = isPortrait ? mFixedHeightMajor : mFixedHeightMinor; 147 final TypedValue tv = isPortrait ? mMinWidthMinor : mMinWidthMajor;
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
MediaRouteDialogHelper.java | 44 boolean isPortrait = metrics.widthPixels < metrics.heightPixels; 47 context.getResources().getValue(isPortrait ? R.dimen.mr_dialog_fixed_width_minor
|
/packages/apps/Camera2/src/com/android/camera/widget/ |
ModeOptionsOverlay.java | 185 final boolean isPortrait = (Configuration.ORIENTATION_PORTRAIT == orientation); 195 if (isPortrait) {
|
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
MainActivity.java | 162 final boolean isPortrait = getResources().getConfiguration().orientation == 176 isPortrait ? "bottom" : "right", 190 if (isPortrait) {
|
/frameworks/base/core/java/android/print/ |
PrintAttributes.java | 218 public boolean isPortrait() { 219 return mMediaSize.isPortrait(); 262 if (isPortrait()) { 300 if (!isPortrait()) { 416 builder.append(", orientation: ").append(mMediaSize.isPortrait() [all...] |
/frameworks/support/core-utils/java/android/support/v4/print/ |
PrintHelper.java | 316 private static boolean isPortrait(Bitmap bitmap) { 358 if (isPortrait(bitmap)) { 650 if (mediaSize.isPortrait() != isPortrait(bitmap)) { [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/ |
ClockFragment.java | 355 mIsPortrait = Utils.isPortrait(context); 449 private void bind(Context context, City city, int position, boolean isPortrait) { 470 final int top = position == 0 && !isPortrait ? 0 : padding;
|
Utils.java | 526 public static boolean isPortrait(Context context) {
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/ |
WallpaperCropActivity.java | 363 boolean isPortrait = displaySize.x < displaySize.y; 404 if (isPortrait) {
|
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/ |
StartJobTask.java | 107 mJobParams.portrait_mode = mediaSize == null || mediaSize.isPortrait();
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
PrintActivity.java | 848 if (currAttributes.getMediaSize().isPortrait()) { [all...] |
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/ |
PdfManipulationService.java | 121 final boolean contentLandscape = !attributes.getMediaSize().isPortrait();
|
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
WallpaperCropActivity.java | 366 boolean isPortrait = displaySize.x < displaySize.y; 417 if (isPortrait) { [all...] |
/frameworks/base/core/java/com/android/internal/policy/ |
DecorView.java | 646 final boolean isPortrait = 655 final TypedValue tvw = isPortrait ? mWindow.mFixedWidthMinor : mWindow.mFixedWidthMajor; 682 final TypedValue tvh = isPortrait ? mWindow.mFixedHeightMajor 732 final TypedValue tv = isPortrait ? mWindow.mMinWidthMinor : mWindow.mMinWidthMajor; [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
StopwatchFragment.java | 429 if (Utils.isPortrait(getActivity())) {
|
/prebuilts/sdk/current/support/core-utils/ |
android-support-core-utils.jar | |
/packages/apps/Launcher2/src/com/android/launcher2/ |
Workspace.java | [all...] |