HomeSort by relevance Sort by last modified time
    Searched full:getwidth (Results 226 - 250 of 2031) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /cts/tests/tests/text/src/android/text/cts/
LayoutTest.java 88 assertEquals(10, layout.getWidth());
91 assertEquals(0, layout.getWidth());
106 int oldWidth = layout.getWidth();
109 assertEquals(oldWidth, layout.getWidth());
118 assertEquals(oldWidth + 1, layout.getWidth());
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
StatusBarWindowView.java 214 int paddedRight = getWidth() - getPaddingRight();
216 canvas.drawRect(0, 0, getWidth(), getPaddingTop(), mTransparentSrcPaint);
219 canvas.drawRect(0, paddedBottom, getWidth(), getHeight(), mTransparentSrcPaint);
226 canvas.drawRect(paddedRight, getPaddingTop(), getWidth(), paddedBottom,
235 canvas.drawRect(0, 0, canvas.getWidth(), canvas.getHeight(), pt);
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
ImageFilterDraw.java 176 m.setScale(dstWidth / (float) src.getWidth(), dstHeight / (float) src.getHeight());
246 mOverlayBitmap.getWidth() != canvas.getWidth() ||
251 canvas.getWidth(), canvas.getHeight(), Bitmap.Config.ARGB_8888);
287 int w = bitmap.getWidth();
  /packages/apps/Launcher2/src/com/android/launcher2/
DragView.java 169 setMeasuredDimension(mBitmap.getWidth(), mBitmap.getHeight());
180 canvas.drawRect(0, 0, getWidth(), getHeight(), p);
193 float sX = (mBitmap.getWidth() * 1.0f) / mCrossFadeBitmap.getWidth();
253 lp.width = mBitmap.getWidth();
  /packages/apps/Launcher3/src/com/android/launcher3/
DragView.java 178 setMeasuredDimension(mBitmap.getWidth(), mBitmap.getHeight());
189 canvas.drawRect(0, 0, getWidth(), getHeight(), p);
202 float sX = (mBitmap.getWidth() * 1.0f) / mCrossFadeBitmap.getWidth();
262 lp.width = mBitmap.getWidth();
  /packages/apps/Mms/src/com/android/mms/ui/
SlideshowPresenter.java 180 transformWidth(r.getWidth()),
193 int transformedWidth = transformWidth(r.getWidth());
197 Log.v(TAG, "presentImage r.getWidth: " + r.getWidth()
233 transformWidth(r.getWidth()),
  /frameworks/base/core/java/android/widget/
HorizontalScrollView.java 187 final int rightEdge = getWidth() - mPaddingRight;
260 int childWidth = child.getWidth();
261 return getWidth() < childWidth + mPaddingLeft + mPaddingRight ;
619 mEdgeGlowLeft.onPull((float) deltaX / getWidth(),
625 mEdgeGlowRight.onPull((float) deltaX / getWidth(),
774 final int viewportWidth = getWidth() - mPaddingLeft - mPaddingRight;
785 final int viewportWidth = getWidth() - mPaddingLeft - mPaddingRight;
828 child.getWidth() - (getWidth() - mPaddingLeft - mPaddingRight));
858 final int rightWithoutFadingEdge = left + getWidth() - fadingEdgeLength
    [all...]
  /external/chromium_org/third_party/angle/src/libGLESv2/
Framebuffer.cpp 474 if (colorbuffer->getWidth() == 0 || colorbuffer->getHeight() == 0)
510 if (colorbuffer->getWidth() != width || colorbuffer->getHeight() != height)
543 width = colorbuffer->getWidth();
564 if (depthbuffer->getWidth() == 0 || depthbuffer->getHeight() == 0)
599 width = depthbuffer->getWidth();
604 else if (width != depthbuffer->getWidth() || height != depthbuffer->getHeight())
623 if (stencilbuffer->getWidth() == 0 || stencilbuffer->getHeight() == 0)
659 width = stencilbuffer->getWidth();
664 else if (width != stencilbuffer->getWidth() || height != stencilbuffer->getHeight())
  /packages/apps/Browser/src/com/android/browser/
NavTabScroller.java 248 sx = (v.getLeft() + v.getRight() - getWidth()) / 2;
276 target = mHorizontal ? -getHeight() : -getWidth();
278 target = mHorizontal ? getHeight() : getWidth();
284 int gap = mHorizontal ? v.getWidth() : v.getHeight();
392 return v.getLeft() + v.getWidth() / 2;
400 return getScrollX() + getWidth() / 2;
444 if (Math.abs(diff) > (mHorizontal ? downView.getHeight() : downView.getWidth()) / 2) {
474 return 1 - (float) Math.abs(distance) / (mHorizontal ? v.getHeight() : v.getWidth());
514 final int height = mHorizontal ? getWidth() : getHeight();
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
CachingPipeline.java 179 Log.v(LOGTAG,"setOriginal, size " + bitmap.getWidth() + " x " + bitmap.getHeight());
325 Log.v(LOGTAG, "after update, req bitmap (" + bitmap.getWidth() + "x" + bitmap.getHeight()
326 + " ? resizeOriginal (" + mResizedOriginalBitmap.getWidth() + "x"
352 if (iconBounds.width() > source.getWidth() * 2) {
360 float minSize = Math.min(source.getWidth(), source.getHeight());
364 float dx = (iconBounds.width() - (source.getWidth() * scale))/2.0f;
448 bitmap.getWidth() != mWidth || bitmap.getHeight() != mHeight) {
463 if (bitmap.getWidth() != mWidth
465 mWidth = bitmap.getWidth();
  /external/deqp/modules/gles2/functional/
es2fShaderBuiltinVarTests.cpp 274 const int width = m_context.getRenderTarget().getWidth();
327 for (int x = 0; x < refImg.getWidth(); x++)
329 const float xf = (float(x)+.5f) / float(refImg.getWidth());
368 const int width = m_context.getRenderTarget().getWidth();
419 for (int x = 0; x < refImg.getWidth(); x++)
421 const float xf = (float(x)+.5f) / float(refImg.getWidth());
455 const int width = de::min(256, m_context.getRenderTarget().getWidth());
506 const int viewportX = rnd.getInt(0, m_context.getRenderTarget().getWidth()-width);
543 if (de::inBounds(dx, 0, refImg.getWidth()) && de::inBounds(dy, 0, refImg.getHeight()))
577 const int width = de::min(64, m_context.getRenderTarget().getWidth());
    [all...]
es2fReadPixelsTests.cpp 125 const int coordX1 = (int)((-0.5f * reference.getWidth() / 2.0f) + reference.getWidth() / 2.0f);
127 const int coordX2 = (int)(( 0.5f * reference.getWidth() / 2.0f) + reference.getWidth() / 2.0f);
130 for (int x = 0; x < reference.getWidth(); x++)
229 for (int x = 0; x < reference.getWidth(); x++)
  /external/deqp/modules/gles3/functional/
es3fFboInvalidateTests.cpp 196 readPixels(dst, 0, 0, getWidth(), getHeight());
232 glTexImage2D (GL_TEXTURE_2D, 0, GL_RGBA8, getWidth(), getHeight(), 0, GL_RGBA, GL_UNSIGNED_BYTE, DE_NULL);
291 readPixels(dst, 0, 0, getWidth(), getHeight());
309 int invalidateX = getWidth() / 4;
311 int invalidateW = getWidth() / 2;
345 readPixels(dst, 0, 0, getWidth(), getHeight());
373 int invalidateX = getWidth() / 4;
375 int invalidateW = getWidth() / 2;
390 glTexImage2D (GL_TEXTURE_2D, 0, GL_RGBA8, getWidth(), getHeight(), 0, GL_RGBA, GL_UNSIGNED_BYTE, DE_NULL);
435 readPixels(dst, 0, 0, getWidth(), getHeight())
    [all...]
  /development/samples/devbytes/animation/ListViewItemAnimations/src/com/example/android/listviewitemanimations/
ListViewItemAnimations.java 152 if (deltaXAbs > v.getWidth() / 4) {
154 fractionCovered = deltaXAbs / v.getWidth();
155 endX = deltaX < 0 ? -v.getWidth() : v.getWidth();
159 fractionCovered = 1 - (deltaXAbs / v.getWidth());
239 float fraction = Math.abs(deltaX) / view.getWidth();
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
ViewTest.java 43 assertThat(view.getWidth(), equalTo(0));
47 assertThat(view.getWidth(), equalTo(303 - 100));
350 assertThat(view1.getWidth(), equalTo(0));
358 assertThat(view1.getWidth(), equalTo(0));
369 assertThat(view2.getWidth(), equalTo(0));
377 assertThat(view2.getWidth(), equalTo(0));
  /frameworks/base/media/mca/filterfw/java/android/filterfw/core/
GLFrame.java 120 if (!nativeAllocate(mGLEnvironment, getFormat().getWidth(), getFormat().getHeight())) {
127 int width = getFormat().getWidth();
137 int width = getFormat().getWidth();
229 if (getFormat().getWidth() != bitmap.getWidth() ||
244 Bitmap result = Bitmap.createBitmap(getFormat().getWidth(),
  /frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
CropView.java 84 final float width = getWidth();
127 float cropRight = cropLeft + getWidth() / scale;
145 updateMinScale(getWidth(), getHeight(), source, true);
194 if (getWidth() == 0 || getHeight() == 0) {
299 } else if (edges.right < getWidth()) {
300 adjustment[0] = (edges.right - getWidth()) / scale;
  /frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
HorizontalGridView.java 262 if (mLayoutManager.getOpticalRight(view) > getWidth()
272 || mTempBitmapLow.getWidth() != mLowFadeShaderLength
282 || mTempBitmapHigh.getWidth() != mHighFadeShaderLength
286 && mTempBitmapLow.getWidth() == mHighFadeShaderLength
314 int highEdge = mFadingHighEdge ? getWidth() - getPaddingRight()
315 + mHighFadeShaderOffset + mHighFadeShaderLength : getWidth();
  /packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/
CropView.java 84 final float width = getWidth();
127 float cropRight = cropLeft + getWidth() / scale;
145 updateMinScale(getWidth(), getHeight(), source, true);
194 if (getWidth() == 0 || getHeight() == 0) {
299 } else if (edges.right < getWidth()) {
300 adjustment[0] = (edges.right - getWidth()) / scale;
  /external/chromium_org/third_party/libjingle/source/talk/media/base/
videoadapter.cc 273 VideoFormat format(static_cast<int>(in_frame->GetWidth()),
306 << " Input: " << in_frame->GetWidth()
318 static_cast<int>(in_frame->GetWidth()),
321 output_format_.width = static_cast<int>(in_frame->GetWidth() * scale + .5f);
325 output_format_.width = static_cast<int>(in_frame->GetWidth());
330 in_frame->GetWidth() == static_cast<size_t>(output_format_.width) &&
344 if (in_frame->GetWidth() != (*out_frame)->GetWidth() ||
357 if (previous_width_ && (previous_width_ != (*out_frame)->GetWidth() ||
370 << " Input: " << in_frame->GetWidth()
    [all...]
  /cts/tests/tests/app/src/android/app/cts/
ActivityManagerRunningTaskInfoTest.java 71 assertEquals(480, values.thumbnail.getWidth());
98 assertEquals(480, values.thumbnail.getWidth());
  /cts/tests/tests/graphics/src/android/graphics/cts/
YuvImageTest.java 195 assertEquals(mTestBitmaps[0].getWidth(), image.getWidth());
200 int width = mTestBitmaps[0].getWidth();
231 // strides of YuvImage are calculated by adding paddings to bitmap.getWidth().
233 int width = bitmap.getWidth();
347 assertEquals("mismatching widths", expected.getWidth(),
348 actual.getWidth());
353 int width = expected.getWidth();
  /cts/tests/tests/hardware/src/android/hardware/camera2/cts/
RobustnessTest.java 351 target.setDefaultBufferSize(targetSize.getWidth(), targetSize.getHeight());
360 targetSize.getWidth(), targetSize.getHeight(), JPEG, MIN_RESULT_COUNT);
369 targetSize.getWidth(), targetSize.getHeight(), YUV, MIN_RESULT_COUNT);
378 targetSize.getWidth(), targetSize.getHeight(), RAW, MIN_RESULT_COUNT);
485 if (size.getWidth() <= bound.getWidth() && size.getHeight() <= bound.getHeight()) {
490 long curArea = sz.getWidth() * (long) sz.getHeight();
491 long newArea = size.getWidth() * (long) size.getHeight();
  /cts/tests/tests/hardware/src/android/hardware/camera2/cts/rs/
ScriptYuvCrop.java 65 (int)(crop.width() * inputSize.getWidth()),
101 int x = (int)(mCropWindow.left * mInputInfo.getSize().getWidth());
  /cts/tests/tests/media/src/android/media/cts/
FaceView.java 65 mPicWidth = mSourceImage.getWidth();
78 float scale = Math.min((float) getWidth() / mPicWidth, (float) getHeight() / mPicHeight);

Completed in 1330 milliseconds

1 2 3 4 5 6 7 8 91011>>