/external/jmonkeyengine/engine/src/core/com/jme3/scene/control/ |
AreaUtils.java | 56 * @param screenWidth The width of the screen. 59 public static float calcScreenArea(BoundingVolume bound, float distance, float screenWidth) { 61 return calcScreenArea((BoundingSphere) bound, distance, screenWidth); 63 return calcScreenArea((BoundingBox) bound, distance, screenWidth); 68 private static float calcScreenArea(BoundingSphere bound, float distance, float screenWidth) { 74 float radius = (bound.getRadius() * screenWidth) / (distance * 2); 78 private static float calcScreenArea(BoundingBox bound, float distance, float screenWidth) { 83 return ((radiusSquare * screenWidth * screenWidth) / (distance * distance * 4)) * FastMath.PI;
|
/external/chromium_org/remoting/android/java/src/org/chromium/chromoting/ |
RenderData.java | 18 public int screenWidth = 0;
|
TrackingInputHandler.java | 139 (float)mRenderData.screenWidth / 2 - cursorScreen[0], 152 float rightDelta = rectScreen[2] - mRenderData.screenWidth; 158 if (rectScreen[2] - rectScreen[0] < mRenderData.screenWidth) { 206 if (imageSize[0] < mRenderData.screenWidth && imageSize[1] < mRenderData.screenHeight) { 209 float scale = Math.min((float)mRenderData.screenWidth / mRenderData.imageWidth,
|
DesktopView.java | 263 mRenderData.screenWidth = width;
|
/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));
|
/external/jmonkeyengine/engine/src/core-effects/com/jme3/post/filters/ |
BloomFilter.java | 92 private int screenWidth; 113 screenWidth = (int) Math.max(1, (w / downSamplingFactor)); 115 // System.out.println(screenWidth + " " + screenHeight); 118 preGlowPass.init(renderManager.getRenderer(), screenWidth, screenHeight, Format.RGBA8, Format.Depth); 142 extractPass.init(renderManager.getRenderer(), screenWidth, screenHeight, Format.RGBA8, Format.Depth, 1, extractMat); 152 hBlurMat.setFloat("Size", screenWidth); 157 horizontalBlur.init(renderManager.getRenderer(), screenWidth, screenHeight, Format.RGBA8, Format.Depth, 1, hBlurMat); 172 verticalalBlur.init(renderManager.getRenderer(), screenWidth, screenHeight, Format.RGBA8, Format.Depth, 1, vBlurMat);
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
ContactDetailFragmentCarousel.java | 102 int screenWidth = MeasureSpec.getSize(widthMeasureSpec); 108 mMinFragmentWidth = (int) (FRAGMENT_WIDTH_SCREEN_WIDTH_FRACTION * screenWidth); 110 screenWidth; 111 mLowerThreshold = (screenWidth - mMinFragmentWidth) / MAX_FRAGMENT_VIEW_COUNT; 129 child.measure(MeasureSpec.makeMeasureSpec(screenWidth, MeasureSpec.EXACTLY), 135 resolveSize(screenWidth, widthMeasureSpec),
|
ContactDetailTabCarousel.java | 155 int screenWidth = MeasureSpec.getSize(widthMeasureSpec); 157 int tabWidth = Math.round(mTabWidthScreenWidthFraction * screenWidth); 161 mAllowedHorizontalScrollLength = tabWidth * TAB_COUNT - screenWidth; 174 mScrollScaleFactor = screenWidth / mAllowedHorizontalScrollLength; 177 int tabHeight = Math.round(screenWidth * mTabHeightScreenWidthFraction) + mTabShadowHeight; 197 resolveSize(screenWidth, widthMeasureSpec),
|
/cts/tests/tests/text/src/android/text/method/cts/ |
TouchTest.java | 108 int screenWidth = metrics.widthPixels; 112 while (textWidth < screenWidth) { 118 int dragAmount = Math.min(screenWidth, textWidth - screenWidth);
|
/external/jmonkeyengine/engine/src/core-effects/com/jme3/post/ssao/ |
SSAOFilter.java | 124 int screenWidth = w; 129 normalPass.init(renderManager.getRenderer(), (int) (screenWidth / downSampleFactor), (int) (screenHeight / downSampleFactor), Format.RGBA8, Format.Depth); 135 float farX = farY * ((float) screenWidth / (float) screenHeight); 159 ssaoPass.init(renderManager.getRenderer(), (int) (screenWidth / downSampleFactor), (int) (screenHeight / downSampleFactor), Format.RGBA8, Format.Depth, 1, ssaoMat);
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
SkbContainer.java | 263 int screenWidth = mEnvironment.getScreenWidth(); 279 R.xml.skb_qwerty, screenWidth, skbHeight, mContext); 284 screenWidth, skbHeight, mContext); 289 screenWidth, skbHeight, mContext); 294 R.xml.skb_smiley, screenWidth, skbHeight, mContext); 299 R.xml.skb_phone, screenWidth, skbHeight, mContext);
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/ |
InsertionHandleController.java | 301 final int screenWidth = mContext.getResources().getDisplayMetrics().widthPixels; 318 if (mHandle.getAdjustedPositionX() + width < screenWidth) { 326 coords[0] = Math.min(screenWidth - width, coords[0]);
|
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/ |
AwViewportTest.java | 136 float screenWidth = Integer.parseInt( 138 assertEquals(physicalDisplayWidth, screenWidth, 10f); 149 "matchMedia(\"screen and (device-width:" + (int) screenWidth + "px)\").matches");
|
/external/chromium_org/third_party/libjingle/source/talk/media/webrtc/ |
webrtcpassthroughrender.h | 124 virtual int32_t GetScreenResolution(uint32_t& screenWidth,
|
/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;
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
ActionMenuItemView.java | 238 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; 244 screenWidth - screenPos[0] - width / 2, height);
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
SystemGesturesPointerEventListener.java | 49 int screenWidth; 183 if (fromX >= screenWidth - mSwipeStartThreshold
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
ActionMenuItemView.java | 192 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; 198 screenWidth - screenPos[0] - width / 2, height);
|
/frameworks/base/core/java/android/app/ |
MediaRouteButton.java | 218 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; 224 screenWidth - screenPos[0] - width / 2, height);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
RenderPreview.java | [all...] |
/frameworks/base/services/java/com/android/server/wm/ |
DisplayMagnifier.java | 295 final int screenWidth = mTempPoint.x; 302 availableBounds.set(0, 0, screenWidth, screenHeight); 347 accountedBounds.op(0, 0, screenWidth, screenHeight, Region.Op.INTERSECT); 352 if (accountedFrame.width() == screenWidth 366 screenWidth - mHalfBorderWidth, screenHeight - mHalfBorderWidth, 380 screenWidth - mHalfBorderWidth, screenHeight - mHalfBorderWidth);
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
MediaRouteButton.java | 313 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; 319 screenWidth - screenPos[0] - width / 2, height);
|
/frameworks/base/libs/androidfw/ |
ResourceTypes.cpp | [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/ |
display-profiler-output | 467 def screenWidth 476 remaining = screenWidth 645 (" " * pad) + center("Bytecode for #{bytecodes}", screenWidth - pad - countCols - 1 - machineCols)) 850 puts(center("Actual Counts", actualCountCols) + " " + center("Source Counts", sourceCountCols) + " " + center("Disassembly in #{compilation.engine}", screenWidth - 1 - sourceCountCols - 1 - actualCountCols))
|