Home
last modified time | relevance | path

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

123

/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/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()
/system/core/adb/daemon/
Dframebuffer_service.cpp48 unsigned int width; member
100 fbinfo.width = w; in framebuffer_service()
114 fbinfo.width = w; in framebuffer_service()
128 fbinfo.width = w; in framebuffer_service()
142 fbinfo.width = w; in framebuffer_service()
156 fbinfo.width = w; in framebuffer_service()
/system/extras/simpleperf/
Dcmd_stat.cpp163 std::vector<size_t> width(titles.size(), 0); in ShowText() local
169 adjust_width(width[i], titles[i].size()); in ShowText()
175 adjust_width(width[i++], s.thread->name.size()); in ShowText()
176 adjust_width(width[i++], std::to_string(s.thread->pid).size()); in ShowText()
177 adjust_width(width[i++], std::to_string(s.thread->tid).size()); in ShowText()
180 adjust_width(width[i++], std::to_string(s.cpu).size()); in ShowText()
182 adjust_width(width[i++], s.readable_count.size()); in ShowText()
183 adjust_width(width[i++], s.Name().size()); in ShowText()
184 adjust_width(width[i++], s.comment.size()); in ShowText()
190 fprintf(fp, "%*s", static_cast<int>(width[i]), titles[i].c_str()); in ShowText()
[all …]
DSampleDisplayer.h198 size_t width; member
210 item.width = name.size(); in AddDisplayFunction()
220 item.width = name.size(); in AddDisplayFunction()
238 item.width = std::max(item.width, data.size()); in AdjustWidth()
249 fprintf(fp, "%-*s ", static_cast<int>(item.width), item.name.c_str()); in PrintNames()
272 fprintf(fp, "%-*s ", static_cast<int>(item.width), data.c_str()); in PrintSample()
/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/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/teeui/test/
Dteeui_device_config.cpp86 uint width = 0, height = 0; in initFromOptions() local
109 width = atoi(optarg); in initFromOptions()
162 createDevice(width, height, dp2px, mm2px, powerBottonTopMm, powerButtonBottomMm, in initFromOptions()
/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 …]
/system/teeui/test/example_config/
DREADME53 "native-test-flag": "--width=<device width in pixels>"
59 …pixel per density independent pixel (px/dp) ratio of the device. Typically <width in pixels>/412 >"
99 com.android.tradefed.testtype.HostGTest:native-test-flag:"--width=100"\
/system/teeui/tools/framebufferizer/src/com/android/framebufferizer/
DNativeRenderer.java27 …public static native int renderBuffer(int x, int y, int width, int height, int lineStride, int[] b… in renderBuffer() argument
/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/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 …]

123