/frameworks/base/core/java/com/android/internal/widget/ |
WeightedLinearLayout.java | 59 final int screenWidth = metrics.widthPixels; 60 final boolean isPortrait = screenWidth < metrics.heightPixels; 74 final int weightedMin = (int) (screenWidth * widthWeightMin); 75 final int weightedMax = (int) (screenWidth * widthWeightMin);
|
/frameworks/base/core/tests/coretests/src/android/view/ |
BigCache.java | 46 final int screenWidth = display.getWidth(); 52 tiny.setLayoutParams(new LinearLayout.LayoutParams(screenWidth, screenHeight)); 58 final int height = 2 * (cacheSize / 2) / screenWidth; 59 large.setLayoutParams(new LinearLayout.LayoutParams(screenWidth, height));
|
/cts/tests/tests/security/src/android/security/cts/ |
Movie33897722.java | 60 private void test_movie(int resId, int screenWidth, int screenHeight, 62 assertTrue(drawWidth <= screenWidth && drawHeight <= screenHeight); 67 assertEquals(movie.width(), screenWidth);
|
/packages/apps/Dialer/java/com/android/dialer/widget/ |
FloatingActionButtonController.java | 45 private int screenWidth; 63 * @param screenWidth The width of the screen in pixels. 65 public void setScreenWidth(int screenWidth) { 66 this.screenWidth = screenWidth; 130 if (screenWidth == 0) { 179 result = screenWidth / 4; 183 result = screenWidth / 2 - floatingActionButtonWidth / 2 - floatingActionButtonMarginRight;
|
/frameworks/support/leanback/src/main/java/androidx/leanback/app/ |
VideoFragment.java | 94 int screenWidth = getView().getWidth(); 98 if (screenWidth * height > width * screenHeight) { 104 p.width = screenWidth; 105 p.height = screenWidth * height / width;
|
VideoSupportFragment.java | 89 int screenWidth = getView().getWidth(); 93 if (screenWidth * height > width * screenHeight) { 99 p.width = screenWidth; 100 p.height = screenWidth * height / width;
|
/frameworks/layoutlib/remote/common/src/com/android/layout/remote/api/ |
RemoteHardwareConfig.java | 52 private RemoteHardwareConfig(int screenWidth, int screenHeight, Density density, float xdpi, 55 mScreenWidth = screenWidth;
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
Display.java | 31 public static float screenWidth(Activity activity) {
|
/platform_testing/libraries/system-helpers/device-helper/src/android/system/helpers/ |
DeviceHelper.java | 65 int screenWidth = Math.min( 69 int smallestScreenWidthDp = (Math.min(screenWidth, screenHeight)
|
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/ |
VideoRendererGui.java | 68 private int screenWidth; 141 // Layout properties update lock. Guards |updateLayoutProperties|, |screenWidth|, 147 private int screenWidth; 207 (screenWidth * layoutInPercentage.left + 99) / 100, 209 (screenWidth * layoutInPercentage.right) / 100, 313 public void setScreenSize(final int screenWidth, final int screenHeight) { 315 if (screenWidth == this.screenWidth && screenHeight == this.screenHeight) { 319 screenWidth + " x " + screenHeight); 320 this.screenWidth = screenWidth [all...] |
/external/webrtc/webrtc/modules/video_render/external/ |
video_render_external_impl.cc | 117 uint32_t& screenWidth, 121 screenWidth = 0;
|
video_render_external_impl.h | 86 GetScreenResolution(uint32_t& screenWidth,
|
/cts/tests/tests/text/src/android/text/method/cts/ |
TouchTest.java | 117 int screenWidth = metrics.widthPixels; 121 while (textWidth < screenWidth) { 127 int dragAmount = Math.min(screenWidth, textWidth - screenWidth);
|
/external/webrtc/webrtc/modules/video_render/ |
i_video_render.h | 88 GetScreenResolution(uint32_t& screenWidth,
|
/external/webrtc/webrtc/modules/video_render/ios/ |
video_render_ios_impl.mm | 116 int32_t VideoRenderIosImpl::GetScreenResolution(uint32_t& screenWidth, 118 return ptr_ios_render_->GetScreenResolution(screenWidth, screenHeight);
|
/external/webrtc/webrtc/modules/video_render/linux/ |
video_render_linux_impl.h | 87 GetScreenResolution(uint32_t& screenWidth,
|
/external/webrtc/webrtc/modules/video_render/mac/ |
video_render_mac_carbon_impl.h | 89 virtual int32_t GetScreenResolution(uint32_t& screenWidth,
|
video_render_mac_cocoa_impl.h | 89 virtual int32_t GetScreenResolution(uint32_t& screenWidth,
|
video_render_mac_cocoa_impl.mm | 176 VideoRenderMacCocoaImpl::GetScreenResolution(uint32_t& screenWidth, 184 screenWidth = frame.size.width;
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
RenderDrawable.java | 121 final int screenWidth = hardwareConfig.getScreenWidth(); 126 w = screenWidth; 128 } else if (w > screenWidth || h > screenHeight) { 131 // We need to find scale such that scale * w <= screenWidth, scale * h <= screenHeight 132 double scale = Math.min((double) screenWidth / w, (double) screenHeight / h);
|
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/ |
ResTable_config.java | 132 int screenWidth = buffer.getShort() & 0xFFFF; 178 touchscreen, density, keyboard, navigation, inputFlags, screenWidth, screenHeight, 617 public int screenWidth; 634 screenWidth, screenHeight, sdkVersion, minorVersion, screenLayout, uiMode, 641 int screenWidth, int screenHeight, int sdkVersion, int minorVersion, int screenLayout, 656 this.screenWidth = screenWidth; [all...] |
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/ |
Qualifiers.java | 146 public static String addScreenWidth(String qualifiers, int screenWidth) { 152 qualifiers += "w" + screenWidth + "dp";
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
FloatingActionButtonController.java | 70 * @param screenWidth The width of the screen in pixels. 72 public void setScreenWidth(int screenWidth) { 73 mScreenWidth = screenWidth;
|
/external/skia/src/codec/ |
SkFrameHolder.h | 164 int screenWidth() const { return fScreenWidth; }
|
/external/skqp/src/codec/ |
SkFrameHolder.h | 164 int screenWidth() const { return fScreenWidth; }
|