/external/volley/src/main/java/com/android/volley/toolbox/ |
D | ImageLoader.java | 153 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/ |
D | StringWrapper.java | 49 …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)) {
|
D | WrappedIndentingWriter.java | 44 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/ |
D | Doc.java | 182 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/ |
D | test_1D_2D_array.cpp | 22 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()
|
D | test_1D.cpp | 23 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()
|
D | test_3D.cpp | 22 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/ |
D | teglMemoryStressTests.cpp | 72 …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/ |
D | TextWrapper.cpp | 10 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/ |
D | test_read_1D_buffer.cpp | 179 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/ |
D | test_fill_1D.cpp | 63 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()
|
D | test_fill_2D.cpp | 65 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()
|
D | test_fill_1D_array.cpp | 65 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()
|
D | test_fill_3D.cpp | 67 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/ |
D | RendererCommon.java | 93 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/ |
D | test_3D.cpp | 27 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()
|
D | test_1D.cpp | 156 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()
|
D | test_1D_array.cpp | 165 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/ |
D | SsManifest.java | 69 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/ |
D | test_read_1D.cpp | 170 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()
|
D | test_read_2D.cpp | 179 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()
|
D | test_read_1D_array.cpp | 176 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/ |
D | test_kernel_arg_changes.cpp | 44 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/ |
D | test_copy_1D.cpp | 98 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()
|
D | test_copy_3D.cpp | 41 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()
|