Searched defs:width (Results 376 - 400 of 795) sorted by relevance

<<11121314151617181920>>

/frameworks/native/include/private/gui/
H A DLayerState.h148 uint32_t width, height; member in struct:android::DisplayState
/frameworks/native/include/ui/
H A DGraphicBuffer.h121 uint32_t width, uint32_t height,
127 uint32_t width, uint32_t height,
130 : GraphicBuffer(handle, method, width, height, format, layerCount,
141 uint32_t getWidth() const { return static_cast<uint32_t>(width); }
147 Rect getBounds() const { return Rect(width, height); }
224 HandleWrapMethod method, uint32_t width, uint32_t height,
126 GraphicBuffer(const native_handle_t* handle, HandleWrapMethod method, uint32_t width, uint32_t height, PixelFormat format, uint32_t layerCount, uint32_t usage, uint32_t stride) argument
H A DRect.h78 // a valid rectangle has a non negative width and height
83 // an empty rect has a zero width or height, or is invalid
88 // rectangle's width
170 // the origin and extending to (width, height). If the transform includes
172 // (height, width). Otherwise the output rectangle is in the same space as
174 Rect transform(uint32_t xform, int32_t width, int32_t height) const;
180 inline int32_t width() const { return getWidth(); } function in class:android::Rect
/frameworks/native/libs/gui/
H A DConsumerBase.cpp212 status_t ConsumerBase::setDefaultBufferSize(uint32_t width, uint32_t height) { argument
218 return mConsumer->setDefaultBufferSize(width, height);
/frameworks/native/libs/nativewindow/
H A DANativeWindow.cpp65 int32_t width, int32_t height, int32_t format) {
68 err = native_window_set_buffers_user_dimensions(window, width, height);
71 if (width && height) {
64 ANativeWindow_setBuffersGeometry(ANativeWindow* window, int32_t width, int32_t height, int32_t format) argument
/frameworks/native/libs/nativewindow/include/android/
H A Dhardware_buffer.h79 * An opaque binary blob format that must have height 1, with width equal to
140 uint32_t width; // width in pixels member in struct:AHardwareBuffer_Desc
/frameworks/native/libs/vr/libbufferhub/
H A Dbuffer_hub_client.cpp84 int BufferHubBuffer::Lock(int usage, int x, int y, int width, int height, argument
86 return buffer_.Lock(usage, x, y, width, height, address);
92 int width = static_cast<int>(size); local
94 int ret = Lock(usage(), 0, 0, width, height, addr);
170 BufferProducer::BufferProducer(uint32_t width, uint32_t height, uint32_t format, argument
172 : BufferProducer(width, height, format, usage, usage, metadata_size) {}
174 BufferProducer::BufferProducer(uint32_t width, uint32_t height, uint32_t format, argument
180 "BufferProducer::BufferProducer: fd=%d width=%u height=%u format=%u "
183 event_fd(), width, height, format, producer_usage, consumer_usage,
188 width, heigh
206 BufferProducer(const std::string& name, int user_id, int group_id, uint32_t width, uint32_t height, uint32_t format, uint32_t usage, size_t meta_size_bytes) argument
213 BufferProducer(const std::string& name, int user_id, int group_id, uint32_t width, uint32_t height, uint32_t format, uint64_t producer_usage, uint64_t consumer_usage, size_t meta_size_bytes) argument
260 const int width = static_cast<int>(size); local
299 const int width = static_cast<int>(size); local
[all...]
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/
H A Dnative_buffer.h30 ANativeWindowBuffer::width = buffer->width(); member in class:android::dvr::NativeBuffer::ANativeWindowBuffer
69 ANativeWindowBuffer::width = buffer_->width(); member in class:android::dvr::NativeBufferProducer::ANativeWindowBuffer
133 ANativeWindowBuffer::width = buffer_->width(); member in class:android::dvr::NativeBufferConsumer::ANativeWindowBuffer
/frameworks/native/opengl/tests/gl2_jni/src/com/android/gl2jni/
H A DGL2JNIView.java287 public void onSurfaceChanged(GL10 gl, int width, int height) { argument
288 GL2JNILib.init(width, height);
/frameworks/native/opengl/tests/gl_jni/jni/
H A Dgl_code.cpp83 void init_scene(int width, int height) argument
93 float ratio = width / height;
94 glViewport(0, 0, width, height);
138 JNIEXPORT void JNICALL Java_com_android_gljni_GLJNILib_init(JNIEnv * env, jobject obj, jint width, jint height);
143 JNIEXPORT void JNICALL Java_com_android_gljni_GLJNILib_init(JNIEnv * env, jobject obj, jint width, jint height) argument
145 init_scene(width, height);
/frameworks/native/opengl/tests/gl_perfapp/src/com/android/glperf/
H A DGLPerfView.java287 public void onSurfaceChanged(GL10 gl, int width, int height) { argument
288 GLPerfLib.init(width, height);
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/
H A DGLDualGL2View.java290 public void onSurfaceChanged(GL10 gl, int width, int height) { argument
291 GLDualLib.init(width, height);
/frameworks/native/opengl/tests/hwc/
H A DhwcColorEquiv.cpp130 static EGLint width, height; variable
297 unsigned int refWidth = width - refPosX;
303 unsigned int equivWidth = width - equivPosX;
315 testPrintE(" width %u height: %u format: %u %s", refWidth, refHeight,
320 testPrintI("refFrame width: %u height: %u format: %u %s",
329 testPrintE(" width %u height: %u format: %u %s", refWidth, refHeight,
334 testPrintI("equivFrame width: %u height: %u format: %u %s",
358 layer->sourceCrop.right = width;
362 layer->displayFrame.right = width;
372 layer->sourceCrop.right = width;
[all...]
H A DhwcRects.cpp44 * sourceDim: [width, height]
170 static EGLint width, height; variable
399 rect.sourceCrop.right = rect.sourceDim.width();
487 if (((uint32_t) rect.sourceCrop.left >= rect.sourceDim.width())
488 || ((uint32_t) rect.sourceCrop.right > rect.sourceDim.width())
494 if ((rect.displayFrame.left >= width)
495 || (rect.displayFrame.right > width)
507 rect.texture = new GraphicBuffer(rect.sourceDim.width(),
519 testPrintI(" buf: %p handle: %p format: %s width: %u height: %u "
522 rect.sourceDim.width(), rec
[all...]
/frameworks/native/opengl/tests/testLatency/src/com/android/testlatency/
H A DTestLatencyView.java144 public void onSurfaceChanged(GL10 gl, int width, int height) { argument
145 GLES20.glViewport(0, 0, width, height);
146 mScaleX = 2.0f / width;
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DHWC2.h84 Error createVirtualDisplay(uint32_t width, uint32_t height,
157 Builder& setWidth(int32_t width) { argument
158 mConfig->mWidth = width;
/frameworks/native/services/vr/bufferhubd/
H A Dbuffer_hub.cpp71 std::string size = std::to_string(info.width) + " B";
74 std::string dimensions = std::to_string(info.width) + "x" +
118 std::string size = std::to_string(info.width) + " B";
121 std::string dimensions = std::to_string(info.width) + "x" +
242 Status<void> BufferHubService::OnCreateBuffer(Message& message, uint32_t width, argument
249 "BufferHubService::OnCreateBuffer: buffer_id=%d width=%u height=%u "
251 buffer_id, width, height, format, usage, meta_size_bytes);
260 auto status = ProducerChannel::Create(this, buffer_id, width, height,
275 uint32_t width, uint32_t height, uint32_t format, uint64_t usage,
281 "user_id=%d group_id=%d width
273 OnCreatePersistentBuffer( Message& message, const std::string& name, int user_id, int group_id, uint32_t width, uint32_t height, uint32_t format, uint64_t usage, size_t meta_size_bytes) argument
[all...]
H A Dproducer_channel.cpp28 uint32_t width, uint32_t height,
37 const int ret = buffer_.Alloc(width, height, layer_count, format, usage);
50 BufferHubService* service, int channel_id, uint32_t width, uint32_t height,
55 new ProducerChannel(service, channel_id, width, height, layer_count,
72 return BufferInfo(buffer_id(), consumer_channels_.size(), buffer_.width(),
351 bool ProducerChannel::CheckParameters(uint32_t width, uint32_t height, argument
354 return meta_size_bytes == meta_size_bytes_ && buffer_.width() == width &&
27 ProducerChannel(BufferHubService* service, int channel_id, uint32_t width, uint32_t height, uint32_t layer_count, uint32_t format, uint64_t usage, size_t meta_size_bytes, int* error) argument
49 Create( BufferHubService* service, int channel_id, uint32_t width, uint32_t height, uint32_t layer_count, uint32_t format, uint64_t usage, size_t meta_size_bytes) argument
/frameworks/rs/
H A DrsGrallocConsumer.cpp36 uint32_t width = a->mHal.drvState.lod[0].dimX; local
46 width, height, format,
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
H A DIPControls.java75 public final int width; field in class:IPControls.Resolutions
79 width = w;
111 if (Resolutions.values()[ct].width <= (int)(md * 1.2)) {
204 intent.putExtra("resolution X", mResolution.width);
241 float pr = (1920.f / mResolution.width) * (1080.f / mResolution.height);
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
H A DIPControlsJB.java77 public final int width; field in class:IPControlsJB.Resolutions
81 width = w;
112 if (Resolutions.values()[ct].width <= (int)(md * 1.2)) {
207 intent.putExtra("resolution X", mRes.width);
242 float pr = (1920.f / mRes.width) * (1080.f / mRes.height);
/frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/
H A DCameraPreviewActivity.java139 int width, int height) {
141 mPreviewTexWidth = width;
148 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
206 if (lhs.width < rhs.width) return -1;
207 if (lhs.width > rhs.width) return 1;
223 Integer.toString(mPreviewSizes.get(i).width) + " x " +
272 float widthRatio = mNextPreviewSize.width / (float)mPreviewTexWidth;
286 p.setPreviewSize(mPreviewSize.width, mPreviewSiz
138 onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) argument
[all...]
/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/
H A DBasicGLRenderer.java64 public void onSurfaceChanged(GL10 unused, int width, int height) { argument
65 GLES20.glViewport(0, 0, width, height);
66 float ratio = (float) width / height;
/frameworks/support/compat/java/android/support/v4/app/
H A DActivityOptionsCompat.java86 * @param startWidth The initial width of the new activity.
109 * @param width The initial width of the new activity.
115 int startX, int startY, int width, int height) {
118 source, startX, startY, width, height));
114 makeClipRevealAnimation(View source, int startX, int startY, int width, int height) argument
/frameworks/support/design/base/android/support/design/widget/
H A DCircularBorderDrawable.java39 * This value defines the multiplier used to determine to draw stroke width.
75 * Set the border width
77 void setBorderWidth(float width) { argument
78 if (mBorderWidth != width) {
79 mBorderWidth = width;
80 mPaint.setStrokeWidth(width * DRAW_STROKE_WIDTH_MULTIPLE);
96 // We need to inset the oval bounds by half the border width. This is because stroke draws

Completed in 384 milliseconds

<<11121314151617181920>>