Home
last modified time | relevance | path

Searched refs:width (Results 1 – 25 of 48) sorted by relevance

12

/system/extras/power_profile/camera_avg/Application/src/main/java/com/example/android/powerprofile/cameraavg/
DAutoFitTextureView.java51 public void setAspectRatio(int width, int height) { in setAspectRatio() argument
52 if (width < 0 || height < 0) { in setAspectRatio()
55 mRatioWidth = width; in setAspectRatio()
63 int width = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
66 setMeasuredDimension(width, height); in onMeasure()
68 if (width < height * mRatioWidth / mRatioHeight) { in onMeasure()
69 setMeasuredDimension(width, width * mRatioHeight / mRatioWidth); in onMeasure()
DCameraAvgFragment.java139 public void onSurfaceTextureAvailable(SurfaceTexture texture, int width, int height) {
140 openCamera(width, height);
144 public void onSurfaceTextureSizeChanged(SurfaceTexture texture, int width, int height) {
145 configureTransform(width, height);
502 private void setUpCameraOutputs(int width, int height) { in setUpCameraOutputs() argument
556 int rotatedPreviewWidth = width; in setUpCameraOutputs()
563 rotatedPreviewHeight = width; in setUpCameraOutputs()
613 private void openCamera(int width, int height) { in openCamera() argument
619 setUpCameraOutputs(width, height); in openCamera()
620 configureTransform(width, height); in openCamera()
/system/core/toolbox/
Dr.c26 int width = 4; in main() local
28 width = 1; in main()
32 width = 2; in main()
46 endaddr = addr + width - 1; in main()
79 switch(width){ in main()
99 addr += width; in main()
/system/core/libpixelflinger/
Draster.cpp30 GGLsizei width, GGLsizei height, GGLenum type);
54 GGLsizei width, GGLsizei height, GGLenum /*type*/) in ggl_copyPixels() argument
62 if (uint32_t(xs) > cb->width) in ggl_copyPixels()
66 if (uint32_t(xs + width) > cb->width) in ggl_copyPixels()
80 width -= offset; in ggl_copyPixels()
88 if ((xd + width) > GGLint(c->state.scissor.right)) { in ggl_copyPixels()
89 width = GGLint(c->state.scissor.right) - xd; in ggl_copyPixels()
95 if (width<=0 || height<=0) { in ggl_copyPixels()
111 const size_t rowsize = width * fp->size; in ggl_copyPixels()
Draster.h28 void gglCopyPixels(void* c, GGLint x, GGLint y, GGLsizei width, GGLsizei height, GGLenum type);
Dbuffer.cpp62 dst->width = src->width; in ggl_set_surface()
95 gen.width = s.width; in ggl_pick_texture()
116 assert((x < s->width) && (y < s->height)); in read_pixel()
167 assert((x < s->width) && (y < s->height)); in write_pixel()
Dpixelflinger.cpp115 if (surface->width > c->state.buffers.coverageBufferSize) { in ggl_colorBuffer()
118 c->state.buffers.coverage = (int16_t*)malloc(surface->width * 2); in ggl_colorBuffer()
120 c->state.buffers.coverage ? surface->width : 0; in ggl_colorBuffer()
147 GGLsizei width, GGLsizei height) in ggl_scissor() argument
152 c->state.scissor.user_right = x + width; in ggl_scissor()
604 c->state.scissor.right = min(c->state.buffers.color.width, r); in ggl_set_scissor()
610 c->state.scissor.right = c->state.buffers.color.width; in ggl_set_scissor()
/system/core/adb/daemon/
Dframebuffer_service.cpp49 unsigned int width; member
101 fbinfo.width = w; in framebuffer_service()
115 fbinfo.width = w; in framebuffer_service()
129 fbinfo.width = w; in framebuffer_service()
143 fbinfo.width = w; in framebuffer_service()
157 fbinfo.width = w; in framebuffer_service()
/system/core/adb/client/
Dline_printer.cpp36 string ElideMiddle(const string& str, size_t width) { in ElideMiddle() argument
39 if (result.size() + kMargin > width) { in ElideMiddle()
40 size_t elide_size = (width - kMargin) / 2; in ElideMiddle()
/system/extras/simpleperf/
DSampleDisplayer.h198 size_t width; member
209 item.width = name.size(); in AddDisplayFunction()
219 item.width = name.size(); in AddDisplayFunction()
234 item.width = std::max(item.width, data.size()); in AdjustWidth()
242 fprintf(fp, "%-*s ", static_cast<int>(item.width), item.name.c_str()); in PrintNames()
256 fprintf(fp, "%-*s ", static_cast<int>(item.width), data.c_str()); in PrintSample()
/system/extras/simpleperf/scripts/inferno/
Dsvg_renderer.py69 width = callsite.weight() / total_weight * 100
72 if width <= 0:
106 width,
107 width,
Dscript.js57 let width = parseFloat(rect.attributes['width'].value) * svgWidth * 0.01;
60 if (width < 28) {
71 if (numCharacters * 7.5 <= width) {
/system/media/audio_utils/include/audio_utils/
DLogPlot.h117 int width = 0; in widthOf() local
119 ++width; in widthOf()
124 ++width; in widthOf()
127 return width; in widthOf()
/system/media/camera/docs/
Dcamera_device_info.mako30 optional int32 width = 1;
35 optional float width = 1;
49 optional int32 width = 2;
Dhtml.mako29 …: bold; background-color: #888888; padding: 0.5em 0em 0.5em 0.5em; border-width: thick thin thin t…
41 table { border-collapse:collapse; table-layout: fixed; width: 100%; word-wrap: break-word }
43 .th_name { width: 20% }
44 .th_units { width: 10% }
45 .th_tags { width: 5% }
46 .th_details { width: 25% }
47 .th_type { width: 17% }
48 .th_description { width: 20% }
49 .th_range { width: 8% }
50 .th_hal_version { width: 5% }
Dcamera_device_info.proto30 optional int32 width = 1; field
35 optional float width = 1; field
49 optional int32 width = 2; field
/system/core/libpixelflinger/include/pixelflinger/
Dpixelflinger.h189 GGLuint width; // width in pixels member
208 const GGLcoord* v0, const GGLcoord* v1, GGLcoord width);
214 void (*scissor)(void* c, GGLint x, GGLint y, GGLsizei width, GGLsizei height);
303 GGLsizei width, GGLsizei height, GGLenum type);
/system/extras/tests/framebuffer/
Dfb_test.c33 int width; member
96 fb->width = vi.xres; in get_framebuffer()
104 fb->width = vi.xres; in get_framebuffer()
187 return gr_fbs[0].width; in gr_fb_width()
Drefresh.c74 float xdpi = (info.xres * 25.4f) / info.width; in main()
103 info.width, xdpi, in main()
/system/core/libpixelflinger/codeflinger/
Dtexturing.cpp463 int width = scratches.obtain(); in build_textures() local
471 CONTEXT_LOAD(width, generated_vars.texture[i].width); in build_textures()
499 wrapping(u, s.reg, width, tmu.swrap, FRAC_BITS); in build_textures()
521 SUB(AL, 0, width, width, imm(1)); in build_textures()
529 MOV(MI, 0, u, width); in build_textures()
530 CMP(AL, u, width); in build_textures()
531 MOV(LT, 0, width, imm(1 << shift)); in build_textures()
533 MOV(GE, 0, width, reg_imm(width, LSL, shift)); in build_textures()
534 RSB(GE, 0, width, width, imm(0)); in build_textures()
549 CMP(AL, width, reg_imm(u, ASR, FRAC_BITS)); in build_textures()
[all …]
DArm64Disassembler.cpp90 uint32_t width = msb - lsb + 1; in bits_unsigned() local
91 uint32_t mask = (1 << width) - 1; in bits_unsigned()
/system/extras/simpleperf/scripts/
Dreport_html.js350 width: '100%', property
461 width: '100%', property
527 width: 1000, property
978 width: '100%', property
1119 let width = this._getWidthPercentage(sumCount);
1120 if (width < 0.1) {
1241 let width = this._getWidthPercentage(sumCount);
1242 if (width < 0.1) {
1245 let color = this._getHeatColor(width);
1256 depth="${depth}" width="${width}%" owidth="${width}" height="15.0"
[all …]
/system/tools/hidl/c2hal/test/
Dsimple.h54 int left, int top, int width, int height);
Dtest.h138 const uint32_t width; member
194 int left, int top, int width, int height);
/system/extras/pagecache/
Dpagecache.py86 height, width = pad.getmaxyx()
111 pad.refresh(0,0, 0,0, height,width)
300 height, width = stdscr.getmaxyx()
307 used_width = max(width, 100)

12