HomeSort by relevance Sort by last modified time
    Searched defs:screenWidth (Results 1 - 25 of 365) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /packages/apps/DocumentsUI/src/com/android/documentsui/base/
Display.java 31 public static float screenWidth(Activity activity) {
  /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);
  /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);
  /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));
  /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;
  /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/skia/src/codec/
SkFrameHolder.h 164 int screenWidth() const { return fScreenWidth; }
  /external/skqp/src/codec/
SkFrameHolder.h 164 int screenWidth() const { return fScreenWidth; }
  /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);
  /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;
  /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);
  /frameworks/support/samples/SupportMediaDemos/src/main/java/com/example/androidx/media/
VideoViewTest.java 142 int screenWidth = getResources().getDisplayMetrics().widthPixels;
143 if (ev.getRawX() < (screenWidth / 2.0f)) {
  /frameworks/base/services/core/java/com/android/server/policy/
SystemGesturesPointerEventListener.java 61 int screenWidth;
231 if (fromX >= screenWidth - mSwipeStartThreshold
  /packages/apps/Dialer/java/com/android/contacts/common/list/
ViewPagerTabs.java 291 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels;
299 (screenPos[0] + width / 2) - screenWidth / 2,
  /packages/apps/Messaging/src/com/android/messaging/ui/
ViewPagerTabs.java 94 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels;
100 (screenPos[0] + width / 2) - screenWidth / 2, screenPos[1] + height);
  /packages/experimental/KBars/app/src/main/java/js/kbars/
SystemGestureDebugger.java 31 int screenWidth;
181 boolean reachedThreshold = ((fromY > ((float) this.mSwipeStartThreshold) || y <= ((float) this.mSwipeDistanceThreshold) + fromY) && ((fromY < ((float) (this.screenHeight - this.mSwipeStartThreshold)) || y >= fromY - ((float) this.mSwipeDistanceThreshold)) && (fromX < ((float) (this.screenWidth - this.mSwipeStartThreshold)) || x >= fromX - ((float) this.mSwipeDistanceThreshold)))) ? DEBUG : true;
191 if (fromX < ((float) (this.screenWidth - this.mSwipeStartThreshold)) || x >= fromX - ((float) this.mSwipeDistanceThreshold) || elapsed >= SWIPE_TIMEOUT_MS) {
  /packages/apps/Calendar/src/com/android/calendar/agenda/
AgendaFragment.java 146 int screenWidth = mActivity.getResources().getDisplayMetrics().widthPixels;
198 params.width = screenWidth;
202 listParams.width = screenWidth * 4 / 10;
205 detailsParams.width = screenWidth - listParams.width;
  /packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
CropView.java 198 float screenWidth = getWidth() / mRenderer.scale;
199 mCenterX = screenWidth / 2 + offset * (crop.width() - screenWidth) + crop.left;
  /external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/util/
UberColorPickerDialog.java 108 int screenWidth = dm.widthPixels;
114 setContentView(new ColorPickerView(getContext(), l, screenWidth, screenHeight, mInitialColor));
  /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...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/ui/
ImageViewer.java 407 int screenWidth = size.x;
417 int horizontalScroll = imageWidth - (screenWidth - verticalBarSize);
  /cts/tests/tests/view/src/android/view/cts/
WindowTest.java 330 int screenWidth = dm.widthPixels;
332 assertTrue(decor.getWidth() >= screenWidth);
    [all...]
  /frameworks/support/media-widget/src/main/java/androidx/media/widget/impl_with_mp1/
VideoView2ImplBaseWithMp1.java 690 int screenWidth = screenSize.x;
693 if (currWidth == screenWidth && currHeight == screenHeight) {
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
CameraManager.java     [all...]

Completed in 1430 milliseconds

1 2 3 4 5 6 7 8 91011>>