Home
last modified time | relevance | path

Searched refs:screenWidth (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/view/
DBigCache.java42 final int screenWidth = display.getWidth(); in onCreate() local
48 tiny.setLayoutParams(new LinearLayout.LayoutParams(screenWidth, screenHeight)); in onCreate()
54 final int height = 2 * (cacheSize / 2) / screenWidth; in onCreate()
55 large.setLayoutParams(new LinearLayout.LayoutParams(screenWidth, height)); in onCreate()
/frameworks/base/core/java/com/android/internal/widget/
DWeightedLinearLayout.java59 final int screenWidth = metrics.widthPixels; in onMeasure() local
60 final boolean isPortrait = screenWidth < metrics.heightPixels; in onMeasure()
74 final int weightedMin = (int) (screenWidth * widthWeightMin); in onMeasure()
75 final int weightedMax = (int) (screenWidth * widthWeightMin); in onMeasure()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DPerimeterPathGuide.java86 int edgeInset, int screenWidth, int screenHeight) { in PerimeterPathGuide() argument
88 mDeviceWidthPx = screenWidth; in PerimeterPathGuide()
205 int screenWidth = mDeviceWidthPx; in computeRegions() local
227 screenWidth = mDeviceHeightPx; in computeRegions()
258 bottomPath.lineTo(screenWidth - getPhysicalCornerRadius(screenBottomRight), in computeRegions()
263 topPath.moveTo(screenWidth - getPhysicalCornerRadius(screenTopRight), mEdgeInset); in computeRegions()
268 rightPath.moveTo(screenWidth - mEdgeInset, in computeRegions()
270 rightPath.lineTo(screenWidth - mEdgeInset, getPhysicalCornerRadius(screenTopRight)); in computeRegions()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DMediaArtworkProcessorTest.kt40 private var screenWidth = 0 variable in com.android.systemui.statusbar.MediaArtworkProcessorTest
51 screenWidth = point.x in setUp()
69 assertThat(background.width).isLessThan(screenWidth) in testProcessArtwork()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderDrawable.java124 int screenWidth = hardwareConfig.getScreenWidth(); in renderImage() local
129 w = screenWidth; in renderImage()
131 } else if (w > screenWidth || h > screenHeight) { in renderImage()
135 double scale = Math.min((double) screenWidth / w, (double) screenHeight / h); in renderImage()
/frameworks/layoutlib/remote/common/src/com/android/layout/remote/api/
DRemoteHardwareConfig.java52 private RemoteHardwareConfig(int screenWidth, int screenHeight, Density density, float xdpi, in RemoteHardwareConfig() argument
55 mScreenWidth = screenWidth; in RemoteHardwareConfig()
/frameworks/base/services/core/java/com/android/server/wm/
DAccessibilityController.java554 final int screenWidth = mTempPoint.x; in recomputeBoundsLocked() local
559 availableBounds.set(0, 0, screenWidth, screenHeight); in recomputeBoundsLocked()
621 accountedBounds.op(0, 0, screenWidth, screenHeight, Region.Op.INTERSECT); in recomputeBoundsLocked()
626 if (accountedFrame.width() == screenWidth in recomputeBoundsLocked()
636 screenWidth - mDrawBorderInset, screenHeight - mDrawBorderInset, in recomputeBoundsLocked()
647 screenWidth - mDrawBorderInset, in recomputeBoundsLocked()
676 final int screenWidth = mTempPoint.x; in getLetterboxBounds() local
680 nonLetterboxRect.set(0, 0, screenWidth, screenHeight); in getLetterboxBounds()
682 letterboxBounds.set(0, 0, screenWidth, screenHeight); in getLetterboxBounds()
1116 final int screenWidth = mTempPoint.x; in computeChangedWindows() local
[all …]
DSystemGesturesPointerEventListener.java66 int screenWidth; field in SystemGesturesPointerEventListener
268 if (fromX >= screenWidth - mSwipeStartThreshold in detectSwipe()
DDisplayPolicy.java1436 mSystemGestures.screenWidth = displayFrames.mUnrestricted.width(); in beginLayoutLw()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
DTransform.java113 public void setScreenWidth(double screenWidth) { in setScreenWidth() argument
114 mViewMatrix.setScreenWidth(screenWidth); in setScreenWidth()
DViewMatrix.java157 public void setScreenWidth(double screenWidth) { in setScreenWidth() argument
158 this.mScreenWidth = screenWidth; in setScreenWidth()
/frameworks/base/tools/aapt2/test/
DBuilders.h263 ConfigDescriptionBuilder& setScreenWidth(uint16_t screenWidth) { in setScreenWidth() argument
264 config_.screenWidth = screenWidth; in setScreenWidth()
/frameworks/base/libs/androidfw/
DConfigDescription.cpp514 out->screenWidth = out->SCREENWIDTH_ANY; in parseScreenSize()
538 out->screenWidth = w; in parseScreenSize()
952 if (screenWidth || o.screenWidth) return (!o.screenWidth); in HasHigherPrecedenceThan()
DResourceTypes.cpp1916 screenWidth = dtohs(screenWidth); in copyFromDtoH()
1930 screenWidth = htods(screenWidth); in swapHtoD()
2041 if (screenWidth != o.screenWidth) { in compareLogical()
2042 return screenWidth < o.screenWidth ? -1 : 1; in compareLogical()
2266 if (screenWidth != o.screenWidth) { in isMoreSpecificThan()
2267 if (!screenWidth) return false; in isMoreSpecificThan()
2268 if (!o.screenWidth) return true; in isMoreSpecificThan()
2647 if (requested->screenWidth) { in isBetterThan()
2648 myDelta += requested->screenWidth - screenWidth; in isBetterThan()
2649 otherDelta += requested->screenWidth - o.screenWidth; in isBetterThan()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DRecordingService.java242 int screenWidth = metrics.widthPixels; in startRecording() local
245 mMediaRecorder.setVideoSize(screenWidth, screenHeight); in startRecording()
264 screenWidth, in startRecording()
/frameworks/base/core/java/android/content/res/
DAssetManager.java1354 int screenWidth, int screenHeight, int smallestScreenWidthDp, int screenWidthDp, in setConfiguration() argument
1359 keyboard, keyboardHidden, navigation, screenWidth, screenHeight, in setConfiguration()
1421 int keyboardHidden, int navigation, int screenWidth, int screenHeight, in nativeSetConfiguration() argument
/frameworks/base/tools/split-select/
DMain.cpp111 outConfig->screenWidth = ResTable_config::SCREENWIDTH_ANY; in removeRuntimeQualifiers()
/frameworks/base/tools/aapt/
DAaptConfig.cpp759 out->screenWidth = out->SCREENWIDTH_ANY; in parseScreenSize()
783 out->screenWidth = w; in parseScreenSize()
DResourceTable.cpp3175 config.screenWidth, in flatten()
3220 tHeader->config.screenWidth, in flatten()
3955 config->screenWidth, in getEntry()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize.cpp75 out_pb_config->set_screen_width(config.screenWidth); in SerializeConfig()
DProtoDeserialize.cpp352 out_config->screenWidth = static_cast<uint16_t>(pb_config.screen_width()); in DeserializeConfigFromPb()
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h1065 uint16_t screenWidth; member
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp506 configuration.screenWidth = static_cast<uint16_t>(screen_width); in NativeSetConfiguration()