Home
last modified time | relevance | path

Searched refs:maxWidth (Results 1 – 25 of 120) sorted by relevance

12345

/external/volley/src/main/java/com/android/volley/toolbox/
DImageLoader.java153 public boolean isCached(String requestUrl, int maxWidth, int maxHeight) {
154 return isCached(requestUrl, maxWidth, maxHeight, ScaleType.CENTER_INSIDE);
169 public boolean isCached(String requestUrl, int maxWidth, int maxHeight, ScaleType scaleType) {
172 String cacheKey = getCacheKey(requestUrl, maxWidth, maxHeight, scaleType);
194 String requestUrl, ImageListener imageListener, int maxWidth, int maxHeight) {
195 return get(requestUrl, imageListener, maxWidth, maxHeight, ScaleType.CENTER_INSIDE);
217 int maxWidth,
224 final String cacheKey = getCacheKey(requestUrl, maxWidth, maxHeight, scaleType);
258 makeImageRequest(requestUrl, maxWidth, maxHeight, scaleType, cacheKey);
267 int maxWidth,
[all …]
/external/smali/dexlib2/src/main/java/org/jf/util/
DStringWrapper.java49 …blic static Iterable<String> wrapStringOnBreaks(@Nonnull final String string, final int maxWidth) { in wrapStringOnBreaks() argument
84 if (lineEnd - currentLineStart > maxWidth) { in wrapStringOnBreaks()
87 lineEnd = currentLineStart + maxWidth; in wrapStringOnBreaks()
137 … public static String[] wrapString(@Nonnull String str, int maxWidth, @Nullable String[] output) {
139 output = new String[(int)((str.length() / maxWidth) * 1.5d + 1)];
151 } else if (i - lineStart == maxWidth) {
190 …static void printWrappedString(@Nonnull PrintStream stream, @Nonnull String string, int maxWidth) {
191 for (String str: wrapStringOnBreaks(string, maxWidth)) {
DWrappedIndentingWriter.java44 private final int maxWidth; field in WrappedIndentingWriter
49 public WrappedIndentingWriter(Writer out, int maxIndent, int maxWidth) { in WrappedIndentingWriter() argument
52 this.maxWidth = maxWidth; in WrappedIndentingWriter()
80 …<String> wrapped = Lists.newArrayList(StringWrapper.wrapStringOnBreaks(line.toString(), maxWidth)); in wrapLine()
102 if (line.length() > maxWidth) { in write()
/external/google-java-format/core/src/main/java/com/google/googlejavaformat/
DDoc.java182 public abstract State computeBreaks(CommentsHelper commentsHelper, int maxWidth, State state); in computeBreaks() argument
259 public State computeBreaks(CommentsHelper commentsHelper, int maxWidth, State state) { in computeBreaks() argument
261 if (state.column + thisWidth <= maxWidth) { in computeBreaks()
267 commentsHelper, maxWidth, new State(state.indent + plusIndent.eval(), state.column)); in computeBreaks()
286 private State computeBroken(CommentsHelper commentsHelper, int maxWidth, State state) { in computeBroken() argument
291 commentsHelper, maxWidth, state, /* optBreakDoc= */ Optional.empty(), splits.get(0)); in computeBroken()
297 commentsHelper, maxWidth, state, Optional.of(breaks.get(i)), splits.get(i + 1)); in computeBroken()
305 int maxWidth, in computeBreakAndSplit() argument
314 || state.column + breakWidth + splitWidth > maxWidth; in computeBreakAndSplit()
319 boolean enoughRoom = state.column + splitWidth <= maxWidth; in computeBreakAndSplit()
[all …]
/external/OpenCL-CTS/test_conformance/images/clGetInfo/
Dtest_1D_2D_array.cpp22 size_t maxWidth, maxArraySize; in test_get_image_info_1D_array() local
39 …int error = clGetDeviceInfo( device, CL_DEVICE_IMAGE2D_MAX_WIDTH, sizeof( maxWidth ), &maxWidth, N… in test_get_image_info_1D_array()
77 … get_max_sizes(&numbeOfSizes, 100, sizes, maxWidth, 1, 1, maxArraySize, maxAllocSize, memSize, in test_get_image_info_1D_array()
110 imageInfo.width = (size_t)random_log_in_range( 16, (int)maxWidth / 32, seed ); in test_get_image_info_1D_array()
126 … j, (unsigned int) all_host_ptr_flags[j], (int)imageInfo.rowPitch, (int)maxWidth, (int)maxArraySiz… in test_get_image_info_1D_array()
143 size_t maxWidth, maxHeight, maxArraySize; in test_get_image_info_2D_array() local
162 …int error = clGetDeviceInfo( device, CL_DEVICE_IMAGE2D_MAX_WIDTH, sizeof( maxWidth ), &maxWidth, N… in test_get_image_info_2D_array()
205 …get_max_sizes(&numbeOfSizes, 100, sizes, maxWidth, maxHeight, 1, maxArraySize, maxAllocSize, memSi… in test_get_image_info_2D_array()
238 imageInfo.width = (size_t)random_log_in_range( 16, (int)maxWidth / 32, seed ); in test_get_image_info_2D_array()
262 … j, (unsigned int) all_host_ptr_flags[j], (int)imageInfo.rowPitch, (int)maxWidth, (int)maxHeight, … in test_get_image_info_2D_array()
Dtest_1D.cpp23 size_t maxWidth; in test_get_image_info_1D() local
42 …int error = clGetDeviceInfo( device, CL_DEVICE_IMAGE2D_MAX_WIDTH, sizeof( maxWidth ), &maxWidth, N… in test_get_image_info_1D()
75 …get_max_sizes(&numbeOfSizes, 100, sizes, maxWidth, 1, 1, 1, maxAllocSize, memSize, CL_MEM_OBJECT_I… in test_get_image_info_1D()
104 imageInfo.width = (size_t)random_log_in_range( 16, (int)maxWidth / 32, seed ); in test_get_image_info_1D()
121 …imageInfo.width, j, (unsigned int) all_host_ptr_flags[j], (int)imageInfo.rowPitch, (int)maxWidth ); in test_get_image_info_1D()
Dtest_3D.cpp22 size_t maxWidth, maxHeight, maxDepth; in test_get_image_info_3D() local
41 …int error = clGetDeviceInfo( device, CL_DEVICE_IMAGE3D_MAX_WIDTH, sizeof( maxWidth ), &maxWidth, N… in test_get_image_info_3D()
84 …get_max_sizes(&numbeOfSizes, 100, sizes, maxWidth, maxHeight, maxDepth, 1, maxAllocSize, memSize, … in test_get_image_info_3D()
117 imageInfo.width = (size_t)random_log_in_range( 16, (int)maxWidth / 32, seed ); in test_get_image_info_3D()
141 …_ptr_flags[i], (int)imageInfo.rowPitch, (int)imageInfo.slicePitch, (int)maxWidth, (int)maxHeight, … in test_get_image_info_3D()
/external/deqp/modules/egl/
DteglMemoryStressTests.cpp72 …ig config, int seed, ObjectType types, int minWidth, int minHeight, int maxWidth, int maxHeight, b…
105 …ig config, int seed, ObjectType types, int minWidth, int minHeight, int maxWidth, int maxHeight, b… in MemoryAllocator() argument
116 , m_maxWidth (maxWidth) in MemoryAllocator()
322 int maxWidth; member
401 …config, m_seed, m_spec.types, m_spec.minWidth, m_spec.minHeight, m_spec.maxWidth, m_spec.maxHeight… in iterate()
481 spec.maxWidth = 256; in init()
495 spec.maxWidth = 256; in init()
509 spec.maxWidth = 1024; in init()
523 spec.maxWidth = 1024; in init()
537 spec.maxWidth = 1024; in init()
[all …]
/external/skia/modules/skparagraph/src/
DTextWrapper.cpp10 LineBreakerWithLittleRounding(SkScalar maxWidth) in LineBreakerWithLittleRounding()
11 : fLower(maxWidth - 0.25f) in LineBreakerWithLittleRounding()
12 , fMaxWidth(maxWidth) in LineBreakerWithLittleRounding()
13 , fUpper(maxWidth + 0.25f) {} in LineBreakerWithLittleRounding()
40 void TextWrapper::lookAhead(SkScalar maxWidth, Cluster* endOfClusters) { in lookAhead() argument
48 LineBreakerWithLittleRounding breaker(maxWidth); in lookAhead()
69 if (cluster->width() > maxWidth && fWords.empty()) { in lookAhead()
93 … if (nextWordLength > 0 && nextWordLength <= maxWidth && further->isIntraWordBreak()) { in lookAhead()
99 if (maxWidth == 0) { in lookAhead()
106 if (nextWordLength > maxWidth) { in lookAhead()
[all …]
/external/OpenCL-CTS/test_conformance/images/samplerlessReads/
Dtest_read_1D_buffer.cpp179 size_t maxWidth, maxWidth1D; in test_read_image_set_1D_buffer() local
214 …error = clGetDeviceInfo( device, CL_DEVICE_IMAGE_MAX_BUFFER_SIZE, sizeof( maxWidth ), &maxWidth, N… in test_read_image_set_1D_buffer()
217 …error |= clGetDeviceInfo( device, CL_DEVICE_IMAGE2D_MAX_WIDTH, sizeof( maxWidth ), &maxWidth1D, NU… in test_read_image_set_1D_buffer()
226 maxWidth = (maxWidth > maxWidth1D) ? maxWidth1D : maxWidth; in test_read_image_set_1D_buffer()
274 …get_max_sizes(&numbeOfSizes, 100, sizes, maxWidth, 1, 1, 1, maxAllocSize, memSize, CL_MEM_OBJECT_I… in test_read_image_set_1D_buffer()
297 imageInfo.width = (size_t)random_log_in_range( 16, (int)maxWidth / 32, seed ); in test_read_image_set_1D_buffer()
303 …ize %d (row pitch %d) out of %d\n", (int)imageInfo.width, (int)imageInfo.rowPitch, (int)maxWidth ); in test_read_image_set_1D_buffer()
/external/OpenCL-CTS/test_conformance/images/clFillImage/
Dtest_fill_1D.cpp63 size_t maxWidth; in test_fill_image_set_1D() local
76 …int error = clGetDeviceInfo( device, CL_DEVICE_IMAGE2D_MAX_WIDTH, sizeof( maxWidth ), &maxWidth, N… in test_fill_image_set_1D()
114 …get_max_sizes(&numbeOfSizes, 100, sizes, maxWidth, 1, 1, 1, maxAllocSize, memSize, CL_MEM_OBJECT_I… in test_fill_image_set_1D()
146 imageInfo.width = (size_t)random_log_in_range( 16, (int)maxWidth / 32, seed ); in test_fill_image_set_1D()
163 …ize %d (row pitch %d) out of %d\n", (int)imageInfo.width, (int)imageInfo.rowPitch, (int)maxWidth ); in test_fill_image_set_1D()
Dtest_fill_2D.cpp65 size_t maxWidth, maxHeight; in test_fill_image_set_2D() local
78 …int error = clGetDeviceInfo( device, CL_DEVICE_IMAGE2D_MAX_WIDTH, sizeof( maxWidth ), &maxWidth, N… in test_fill_image_set_2D()
120 …get_max_sizes(&numbeOfSizes, 100, sizes, maxWidth, maxHeight, 1, 1, maxAllocSize, memSize, CL_MEM_… in test_fill_image_set_2D()
153 imageInfo.width = (size_t)random_log_in_range( 16, (int)maxWidth / 32, seed ); in test_fill_image_set_2D()
171 …t)imageInfo.width, (int)imageInfo.height, (int)imageInfo.rowPitch, (int)maxWidth, (int)maxHeight ); in test_fill_image_set_2D()
Dtest_fill_1D_array.cpp65 size_t maxWidth, maxArraySize; in test_fill_image_set_1D_array() local
78 …int error = clGetDeviceInfo( device, CL_DEVICE_IMAGE2D_MAX_WIDTH, sizeof( maxWidth ), &maxWidth, N… in test_fill_image_set_1D_array()
121 …get_max_sizes(&numbeOfSizes, 100, sizes, maxWidth, 1, 1, maxArraySize, maxAllocSize, memSize, CL_M… in test_fill_image_set_1D_array()
155 imageInfo.width = (size_t)random_log_in_range( 16, (int)maxWidth / 32, seed ); in test_fill_image_set_1D_array()
175 …mageInfo.width, (int)imageInfo.arraySize, (int)imageInfo.rowPitch, (int)maxWidth, (int)maxArraySiz… in test_fill_image_set_1D_array()
Dtest_fill_3D.cpp67 size_t maxWidth, maxHeight, maxDepth; in test_fill_image_set_3D() local
81 …int error = clGetDeviceInfo( device, CL_DEVICE_IMAGE3D_MAX_WIDTH, sizeof( maxWidth ), &maxWidth, N… in test_fill_image_set_3D()
126 …get_max_sizes(&numbeOfSizes, 100, sizes, maxWidth, maxHeight, maxDepth, 1, maxAllocSize, memSize, … in test_fill_image_set_3D()
162 imageInfo.width = (size_t)random_log_in_range( 16, (int)maxWidth / 32, seed ); in test_fill_image_set_3D()
183 …ageInfo.depth, (int)imageInfo.rowPitch, (int)imageInfo.slicePitch, (int)maxWidth, (int)maxHeight, … in test_fill_image_set_3D()
/external/webrtc/sdk/android/api/org/webrtc/
DRendererCommon.java93 final int maxWidth = View.getDefaultSize(Integer.MAX_VALUE, widthSpec); in measure() local
95 if (frameWidth == 0 || frameHeight == 0 || maxWidth == 0 || maxHeight == 0) { in measure()
96 return new Point(maxWidth, maxHeight); in measure()
101 final float displayAspect = maxWidth / (float) maxHeight; in measure()
105 final Point layoutSize = getDisplaySize(visibleFraction, frameAspect, maxWidth, maxHeight); in measure()
109 layoutSize.x = maxWidth; in measure()
/external/OpenCL-CTS/test_conformance/images/kernel_image_methods/
Dtest_3D.cpp27 size_t maxWidth, maxHeight, maxDepth; in test_get_image_info_3D() local
47 …int error = clGetDeviceInfo( device, CL_DEVICE_IMAGE3D_MAX_WIDTH, sizeof( maxWidth ), &maxWidth, N… in test_get_image_info_3D()
85 …get_max_sizes(&numbeOfSizes, 100, sizes, maxWidth, maxHeight, maxDepth, 1, maxAllocSize, memSize, … in test_get_image_info_3D()
115 imageInfo.width = (size_t)random_log_in_range( 16, (int)maxWidth / 32, seed ); in test_get_image_info_3D()
140 …ageInfo.depth, (int)imageInfo.rowPitch, (int)imageInfo.slicePitch, (int)maxWidth, (int)maxHeight, … in test_get_image_info_3D()
Dtest_1D.cpp156 size_t maxWidth; in test_get_image_info_1D() local
167 …int error = clGetDeviceInfo( device, CL_DEVICE_IMAGE2D_MAX_WIDTH, sizeof( maxWidth ), &maxWidth, N… in test_get_image_info_1D()
196 …get_max_sizes(&numbeOfSizes, 100, sizes, maxWidth, 1, 1, 1, maxAllocSize, memSize, CL_MEM_OBJECT_I… in test_get_image_info_1D()
220 imageInfo.width = (size_t)random_log_in_range( 16, (int)maxWidth / 32, seed ); in test_get_image_info_1D()
235 …ize %d (row pitch %d) out of %d\n", (int)imageInfo.width, (int)imageInfo.rowPitch, (int)maxWidth ); in test_get_image_info_1D()
Dtest_1D_array.cpp165 size_t maxWidth, maxArraySize; in test_get_image_info_1D_array() local
176 …int error = clGetDeviceInfo( device, CL_DEVICE_IMAGE2D_MAX_WIDTH, sizeof( maxWidth ), &maxWidth, N… in test_get_image_info_1D_array()
210 …get_max_sizes(&numbeOfSizes, 100, sizes, maxWidth, 1, 1, maxArraySize, maxAllocSize, memSize, CL_M… in test_get_image_info_1D_array()
236 imageInfo.width = (size_t)random_log_in_range( 16, (int)maxWidth / 32, seed ); in test_get_image_info_1D_array()
254 …mageInfo.width, (int)imageInfo.arraySize, (int)imageInfo.rowPitch, (int)maxWidth, (int)maxArraySiz… in test_get_image_info_1D_array()
/external/exoplayer/tree/library/smoothstreaming/src/main/java/com/google/android/exoplayer2/source/smoothstreaming/manifest/
DSsManifest.java69 public final int maxWidth; field in SsManifest.StreamElement
91 int maxWidth, in StreamElement() argument
106 maxWidth, in StreamElement()
124 int maxWidth, in StreamElement() argument
139 this.maxWidth = maxWidth; in StreamElement()
159 return new StreamElement(baseUri, chunkTemplate, type, subType, timescale, name, maxWidth, in copy()
/external/OpenCL-CTS/test_conformance/images/clReadWriteImage/
Dtest_read_1D.cpp170 size_t maxWidth; in test_read_image_set_1D() local
181 …int error = clGetDeviceInfo( device, CL_DEVICE_IMAGE2D_MAX_WIDTH, sizeof( maxWidth ), &maxWidth, N… in test_read_image_set_1D()
214 …get_max_sizes(&numbeOfSizes, 100, sizes, maxWidth, 1, 1, 1, maxAllocSize, memSize, CL_MEM_OBJECT_I… in test_read_image_set_1D()
226 log_info( " at max size %d\n", (int)maxWidth ); in test_read_image_set_1D()
240 imageInfo.width = (size_t)random_log_in_range( 16, (int)maxWidth / 32, seed ); in test_read_image_set_1D()
262 …ize %d (row pitch %d) out of %d\n", (int)imageInfo.width, (int)imageInfo.rowPitch, (int)maxWidth ); in test_read_image_set_1D()
Dtest_read_2D.cpp179 size_t maxWidth, maxHeight; in test_read_image_set_2D() local
190 …int error = clGetDeviceInfo( device, CL_DEVICE_IMAGE2D_MAX_WIDTH, sizeof( maxWidth ), &maxWidth, N… in test_read_image_set_2D()
226 …get_max_sizes(&numbeOfSizes, 100, sizes, maxWidth, maxHeight, 1, 1, maxAllocSize, memSize, CL_MEM_… in test_read_image_set_2D()
239 log_info( " at max size %d,%d\n", (int)maxWidth, (int)maxHeight ); in test_read_image_set_2D()
253 imageInfo.width = (size_t)random_log_in_range( 16, (int)maxWidth / 32, seed ); in test_read_image_set_2D()
275 …t)imageInfo.width, (int)imageInfo.height, (int)imageInfo.rowPitch, (int)maxWidth, (int)maxHeight ); in test_read_image_set_2D()
Dtest_read_1D_array.cpp176 size_t maxWidth, maxArraySize; in test_read_image_set_1D_array() local
187 …int error = clGetDeviceInfo( device, CL_DEVICE_IMAGE2D_MAX_WIDTH, sizeof( maxWidth ), &maxWidth, N… in test_read_image_set_1D_array()
224 …get_max_sizes(&numbeOfSizes, 100, sizes, maxWidth, 1, 1, maxArraySize, maxAllocSize, memSize, CL_M… in test_read_image_set_1D_array()
238 log_info( " at max size %d,%d\n", (int)maxWidth, (int)maxArraySize ); in test_read_image_set_1D_array()
253 imageInfo.width = (size_t)random_log_in_range( 16, (int)maxWidth / 32, seed ); in test_read_image_set_1D_array()
277 …mageInfo.width, (int)imageInfo.arraySize, (int)imageInfo.rowPitch, (int)maxWidth, (int)maxArraySiz… in test_read_image_set_1D_array()
/external/OpenCL-CTS/test_conformance/api/
Dtest_kernel_arg_changes.cpp44 size_t maxWidth, maxHeight; in test_kernel_arg_changes() local
62 …error = clGetDeviceInfo( device, CL_DEVICE_IMAGE2D_MAX_WIDTH, sizeof( maxWidth ), &maxWidth, NULL … in test_kernel_arg_changes()
74 sizes[ i ][ 0 ] = genrand_int32(seed) % (maxWidth/32) + 1; in test_kernel_arg_changes()
/external/OpenCL-CTS/test_conformance/images/clCopyImage/
Dtest_copy_1D.cpp98 size_t maxWidth; in test_copy_image_set_1D() local
109 …int error = clGetDeviceInfo( device, CL_DEVICE_IMAGE2D_MAX_WIDTH, sizeof( maxWidth ), &maxWidth, N… in test_copy_image_set_1D()
150 …get_max_sizes(&numbeOfSizes, 100, sizes, maxWidth, 1, 1, 1, maxAllocSize, memSize, CL_MEM_OBJECT_I… in test_copy_image_set_1D()
186 imageInfo.width = (size_t)random_log_in_range( 16, (int)maxWidth / 32, seed ); in test_copy_image_set_1D()
213 …ize %d (row pitch %d) out of %d\n", (int)imageInfo.width, (int)imageInfo.rowPitch, (int)maxWidth ); in test_copy_image_set_1D()
Dtest_copy_3D.cpp41 size_t maxWidth, maxHeight, maxDepth; in test_copy_image_set_3D() local
51 …int error = clGetDeviceInfo( device, CL_DEVICE_IMAGE3D_MAX_WIDTH, sizeof( maxWidth ), &maxWidth, N… in test_copy_image_set_3D()
101 …get_max_sizes(&numbeOfSizes, 100, sizes, maxWidth, maxHeight, maxDepth, 1, maxAllocSize, memSize, … in test_copy_image_set_3D()
144 imageInfo.width = (size_t)random_log_in_range( 16, (int)maxWidth / 32, seed ); in test_copy_image_set_3D()
175 …ageInfo.depth, (int)imageInfo.rowPitch, (int)imageInfo.slicePitch, (int)maxWidth, (int)maxHeight, … in test_copy_image_set_3D()

12345