/frameworks/native/opengl/libagl/ |
H A D | state.cpp | 93 c->line.width = TRI_ONE; 507 void glLineWidth(GLfloat width) argument 510 if (width <= 0) { 514 c->line.width = TRI_FROM_FIXED(gglFloatToFixed(width)); 517 void glLineWidthx(GLfixed width) argument 520 if (width <= 0) { 524 c->line.width = TRI_FROM_FIXED(width);
|
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/ |
H A D | GL2CameraEye.java | 176 mCameraRatio = (float)previewSize.width/previewSize.height; 232 public void onSurfaceChanged(GL10 glUnused, int width, int height) { argument 235 GLES20.glViewport(0, 0, width, height); 236 mRatio = (float) width / height;
|
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcStress.cpp | 198 static EGLint width, height; variable 447 layer->displayFrame.left = testRandMod(width); 450 + testRandMod(width - layer->displayFrame.left) + 1; 461 // width and height will fit. 466 if (((layer->displayFrame.left + sourceWidth) <= width) 536 hwcTestInitDisplay(verbose, &dpy, &surface, &width, &height); 573 // Pick width and height, which must be >= 1 and the size 575 size_t w = (width * maxSizeRatio) * testRandFract(); 586 testPrintI(" frame %u width: %u height: %u format: %u %s", 599 testPrintE(" frame %u width [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | DisplayDevice.h | 295 uint32_t width = 0; member in struct:android::DisplayDeviceState
|
H A D | MonitoredProducer.cpp | 118 void MonitoredProducer::allocateBuffers(uint32_t width, uint32_t height, argument 120 mProducer->allocateBuffers(width, height, format, usage);
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | HWComposer_hwc1.h | 259 uint32_t width; member in struct:android::HWComposer::DisplayConfig 266 return width == rhs.width &&
|
/frameworks/native/services/surfaceflinger/RenderEngine/ |
H A D | GLES20RenderEngine.cpp | 63 void writePPM(const char* basename, GLuint width, GLuint height) { argument 64 ALOGV("writePPM #%s: %d x %d", basename, width, height); 66 std::vector<GLubyte> pixels(width * height * 4); 67 std::vector<GLubyte> outBuffer(width * height * 3); 72 glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, pixels.data()); 88 file << width << "\n"; local 95 char* data = ptr + y * width * sizeof(uint32_t); 97 for (GLuint x = 0; x < width; x++) {
|
/frameworks/native/services/vr/hardware_composer/impl/ |
H A D | vr_hwc.h | 125 HwcDisplay(int32_t width, int32_t height); 128 int32_t width() const { return width_; } function in class:android::dvr::HwcDisplay 213 Error createVirtualDisplay(uint32_t width, uint32_t height, 222 uint32_t width, uint32_t height,
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | BasicBitmapDrawable.java | 124 public void setDecodeDimensions(int width, int height) { argument 126 mDecodeWidth = width; 384 bounds.width(), bounds.height(),
|
/frameworks/opt/net/ims/src/java/com/android/ims/internal/ |
H A D | ImsVideoCallProviderWrapper.java | 106 public void changePeerDimensions(int width, int height) { argument 108 args.arg1 = width; 182 int width = (int) args.arg1; 184 changePeerDimensions(width, height);
|
/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsicResize.cpp | 87 float xf, float yf, int width) { 90 int maxx = width - 1; 122 float xf, float yf, int width) { 125 int maxx = width - 1; 157 float xf, float yf, int width) { 160 int maxx = width - 1; 238 float xf, float yf, int width) { 241 int maxx = width - 1; 261 float xf, float yf, int width) { 264 int maxx = width 86 OneBiCubic(const uchar4 *yp0, const uchar4 *yp1, const uchar4 *yp2, const uchar4 *yp3, float xf, float yf, int width) argument 121 OneBiCubic(const uchar2 *yp0, const uchar2 *yp1, const uchar2 *yp2, const uchar2 *yp3, float xf, float yf, int width) argument 156 OneBiCubic(const uchar *yp0, const uchar *yp1, const uchar *yp2, const uchar *yp3, float xf, float yf, int width) argument 237 OneBiCubic(const float4 *yp0, const float4 *yp1, const float4 *yp2, const float4 *yp3, float xf, float yf, int width) argument 260 OneBiCubic(const float2 *yp0, const float2 *yp1, const float2 *yp2, const float2 *yp3, float xf, float yf, int width) argument 283 OneBiCubic(const float *yp0, const float *yp1, const float *yp2, const float *yp3, float xf, float yf, int width) argument [all...] |
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/ |
H A D | VrView.java | 124 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { 129 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { 147 double width = mState1.mTransform.getScreenWidth() / detector.getScaleFactor(); 148 mState1.mTransform.setScreenWidth(width); 168 private void updateOutputDimensions(int width, int height) { argument
|
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/ |
H A D | LocalPlayer.java | 364 int width = mMediaPlayer.getVideoWidth(); 366 if (width > 0 && height > 0) { 367 mVideoWidth = width; 463 int width, int height) { 465 Log.d(TAG, "surfaceChanged: " + width + "x" + height); 489 int width = getVideoWidth(); 491 if (width > 0 && height > 0) { 494 mPresentation.updateSize(width, height); 502 if (surfaceWidth * height < surfaceHeight * width) { 503 // Black bars on top&bottom, mSurfaceView has full layout width, 462 surfaceChanged(SurfaceHolder holder, int format, int width, int height) argument 577 updateSize(int width, int height) argument [all...] |
H A D | OverlayDisplayWindow.java | 64 int width, int height, int gravity) { 67 mWidth = width; 73 int width, int height, int gravity) { 75 return new JellybeanMr1Impl(context, name, width, height, gravity); 77 return new LegacyImpl(context, name, width, height, gravity); 93 public abstract void updateAspectRatio(int width, int height); argument 115 int width, int height, int gravity) { 116 super(context, name, width, height, gravity); 140 int width = (int)(display.getWidth() * INITIAL_SCALE); 143 height = mHeight * width / mWidt 63 OverlayDisplayWindow(Context context, String name, int width, int height, int gravity) argument 72 create(Context context, String name, int width, int height, int gravity) argument 114 LegacyImpl(Context context, String name, int width, int height, int gravity) argument 170 updateAspectRatio(int width, int height) argument 212 JellybeanMr1Impl(Context context, String name, int width, int height, int gravity) argument 253 updateAspectRatio(int width, int height) argument [all...] |
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/ |
H A D | LocalPlayer.java | 364 int width = mMediaPlayer.getVideoWidth(); 366 if (width > 0 && height > 0) { 367 mVideoWidth = width; 463 int width, int height) { 465 Log.d(TAG, "surfaceChanged: " + width + "x" + height); 489 int width = getVideoWidth(); 491 if (width > 0 && height > 0) { 494 mPresentation.updateSize(width, height); 502 if (surfaceWidth * height < surfaceHeight * width) { 503 // Black bars on top&bottom, mSurfaceView has full layout width, 462 surfaceChanged(SurfaceHolder holder, int format, int width, int height) argument 577 updateSize(int width, int height) argument [all...] |
H A D | OverlayDisplayWindow.java | 64 int width, int height, int gravity) { 67 mWidth = width; 73 int width, int height, int gravity) { 75 return new JellybeanMr1Impl(context, name, width, height, gravity); 77 return new LegacyImpl(context, name, width, height, gravity); 93 public abstract void updateAspectRatio(int width, int height); argument 115 int width, int height, int gravity) { 116 super(context, name, width, height, gravity); 140 int width = (int)(display.getWidth() * INITIAL_SCALE); 143 height = mHeight * width / mWidt 63 OverlayDisplayWindow(Context context, String name, int width, int height, int gravity) argument 72 create(Context context, String name, int width, int height, int gravity) argument 114 LegacyImpl(Context context, String name, int width, int height, int gravity) argument 170 updateAspectRatio(int width, int height) argument 212 JellybeanMr1Impl(Context context, String name, int width, int height, int gravity) argument 253 updateAspectRatio(int width, int height) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/graphics/drawable/ |
H A D | DrawerArrowDrawable.java | 232 * @param width stroke width in pixels 234 public void setBarThickness(float width) { argument 235 if (mPaint.getStrokeWidth() != width) { 236 mPaint.setStrokeWidth(width); 237 mMaxCutForBarSize = (float) (width / 2 * Math.cos(ARROW_HEAD_ANGLE)); 243 * Returns the thickness (stroke width) of the bars.
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/ |
H A D | AlertDialogTest.java | 1358 public TestDrawable(@ColorInt int color, int width, int height) { argument 1360 mWidth = width;
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | RecyclerViewCacheTest.java | 112 private void layout(int width, int height) { argument 114 View.MeasureSpec.makeMeasureSpec(width, View.MeasureSpec.EXACTLY), 116 mRecyclerView.layout(0, 0, width, height);
|
/frameworks/av/cmds/screenrecord/ |
H A D | screenrecord.cpp | 79 static uint32_t gVideoWidth = 0; // default width+height 160 format->setInt32("width", gVideoWidth); 220 // case is "all of it". If the app is rotated (so that the width of the 221 // app is based on the height of the display), reverse width/height. 228 ALOGV("using rotated width/height"); 241 // "pre-rotate" it by flipping width/height, so that the orientation 247 // In that case, we swap the configured video width/height and then 259 // limited by narrow width; reduce height 263 // limited by short height; restrict width 806 long width, heigh local [all...] |
/frameworks/av/media/libstagefright/ |
H A D | StagefrightMetadataRetriever.cpp | 389 int32_t width, height; local 390 CHECK(outputFormat->findInt32("width", &width)); 396 crop_right = width - 1; 420 int32_t width, height; local 421 if (trackMeta->findInt32(kKeyDisplayWidth, &width) 424 && width > 0 && height > 0) { 425 if (frame->mDisplayHeight * (int64_t)width / height > (int64_t)frame->mDisplayWidth) { 427 (int32_t)(height * (int64_t)frame->mDisplayWidth / width); 430 (int32_t)(frame->mDisplayHeight * (int64_t)width / heigh [all...] |
H A D | avc_utils.cpp | 93 int32_t *width, int32_t *height, 160 *width = pic_width_in_mbs_minus1 * 16 + 16; 194 *width -= 218 static const struct { unsigned width, height; } kFixedSARs[] = { member in struct:android::__anon438 239 sar_width = kFixedSARs[aspect_ratio_idc].width; 374 int32_t width, height; local 377 seqParamSet, &width, &height, &sarWidth, &sarHeight); 420 meta->setInt32(kKeyWidth, width); 431 width, 440 width, 91 FindAVCDimensions( const sp<ABuffer> &seqParamSet, int32_t *width, int32_t *height, int32_t *sarWidth, int32_t *sarHeight) argument 582 ExtractDimensionsFromVOLHeader( const uint8_t *data, size_t size, int32_t *width, int32_t *height) argument [all...] |
/frameworks/av/media/libstagefright/codec2/include/ |
H A D | C2Buffer.h | 709 * Interface for objects that have a width and height (planar capacity). 715 inline uint32_t width() const { return mWidth; } function in class:android::_C2PlanarCapacityAspect 719 inline _C2PlanarCapacityAspect(uint32_t width, uint32_t height) argument 720 : mWidth(width), mHeight(height) { } 723 : mWidth(parent == nullptr ? 0 : parent->width()), 744 inline C2Rect(uint32_t width, uint32_t height) argument 745 : C2Rect(width, height, 0, 0) { } 747 inline C2Rect(uint32_t width, uint32_t height, uint32_t left, uint32_t top) argument 748 : mLeft(left), mTop(top), mWidth(width), mHeight(height) { } 831 uint32_t mHorizSubsampling; // subsampling compared to width 837 minOffset(uint32_t width, uint32_t height) argument 848 maxOffset(uint32_t width, uint32_t height, uint32_t allocatedDepth) argument [all...] |
/frameworks/av/media/libstagefright/codecs/avcdec/ |
H A D | SoftAVCDec.cpp | 66 320 /* width */, 240 /* height */, callbacks, 641 uint32_t width = s_dec_op.u4_pic_wd; local 644 handlePortSettingsChange(&portWillReset, width, height);
|
/frameworks/av/media/libstagefright/codecs/hevcdec/ |
H A D | SoftHEVC.cpp | 61 320 /* width */, 240 /* height */, callbacks, 631 uint32_t width = s_dec_op.u4_pic_wd; local 634 handlePortSettingsChange(&portWillReset, width, height);
|