/frameworks/base/libs/hwui/ |
H A D | RenderBufferCache.cpp | 110 RenderBuffer* RenderBufferCache::get(GLenum format, const uint32_t width, const uint32_t height) { argument 113 RenderBufferEntry entry(format, width, height); 124 RenderBuffer::formatName(format), width, height); 126 buffer = new RenderBuffer(format, width, height); 129 RenderBuffer::formatName(format), width, height);
|
H A D | GammaFontRenderer.h | 38 virtual uint32_t getFontRendererSize(uint32_t fontRenderer, GLenum format) const = 0; 84 uint32_t getFontRendererSize(uint32_t fontRenderer, GLenum format) const { 85 return mRenderer ? mRenderer->getCacheSize(format) : 0; 131 uint32_t getFontRendererSize(uint32_t fontRenderer, GLenum format) const { 132 return mRenderer ? mRenderer->getCacheSize(format) : 0; 165 uint32_t getFontRendererSize(uint32_t fontRenderer, GLenum format) const { 171 return renderer->getCacheSize(format);
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
H A D | ResizeFilter.java | 29 import android.filterfw.format.ImageFormat; 68 protected void createProgram(FilterContext context, FrameFormat format) { argument 69 if (mLastFormat != null && mLastFormat.getTarget() == format.getTarget()) return; 70 mLastFormat = format; 71 switch (format.getTarget()) {
|
/frameworks/av/media/libstagefright/ |
H A D | MediaMuxer.cpp | 41 MediaMuxer::MediaMuxer(const char *path, OutputFormat format) argument 42 : mFormat(format), 44 if (format == OUTPUT_FORMAT_MPEG_4) { 46 } else if (format == OUTPUT_FORMAT_WEBM) { 56 MediaMuxer::MediaMuxer(int fd, OutputFormat format) argument 57 : mFormat(format), 59 if (format == OUTPUT_FORMAT_MPEG_4) { 61 } else if (format == OUTPUT_FORMAT_WEBM) { 80 ssize_t MediaMuxer::addTrack(const sp<AMessage> &format) { argument 83 if (format [all...] |
/frameworks/base/media/java/android/media/ |
H A D | SRTRenderer.java | 39 public boolean supports(MediaFormat format) { argument 40 if (format.containsKey(MediaFormat.KEY_MIME)) { 41 if (!format.getString(MediaFormat.KEY_MIME) 45 return mRender == (format.getInteger(MediaFormat.KEY_IS_TIMED_TEXT, 0) == 0); 51 public SubtitleTrack createTrack(MediaFormat format) { argument 57 return new SRTTrack(mRenderingWidget, format); 59 return new SRTTrack(mEventHandler, format); 73 SRTTrack(WebVttRenderingWidget renderingWidget, MediaFormat format) { argument 74 super(renderingWidget, format); 78 SRTTrack(Handler eventHandler, MediaFormat format) { argument [all...] |
/frameworks/base/core/java/android/text/format/ |
H A D | Formatter.java | 17 package android.text.format; 76 value = String.format("%.2f", result); 79 value = String.format("%.1f", result); 81 value = String.format("%.2f", result); 85 value = String.format("%.0f", result); 87 value = String.format("%.2f", result); 90 value = String.format("%.0f", result); 98 * Returns a string in the canonical IPv4 format ###.###.###.### from a packed integer 100 * format (LSB first). That is, 0x01020304 will return "4.3.2.1". 115 * Returns elapsed time for the given millis, in the following format [all...] |
H A D | DateFormat.java | 17 package android.text.format; 40 * <p>Most callers should avoid supplying their own format strings to this 41 * class' {@code format} methods and rely on the correctly localized ones 45 * of format strings, see {@link java.text.SimpleDateFormat}. 50 * <p>The {@code format} methods in this class implement a subset of Unicode 52 * The subset currently supported by this class includes the following format characters: 59 * Note that the non-{@code format} methods in this class are implemented by 126 * Returns true if user preference is set to 24-hour format. 128 * @return true if 24 hour time format is selected, false otherwise. 172 * locale. A skeleton is similar to, and uses the same format character 335 public static CharSequence format(CharSequence inFormat, long inTimeInMillis) { method in class:DateFormat 346 public static CharSequence format(CharSequence inFormat, Date inDate) { method in class:DateFormat 431 public static CharSequence format(CharSequence inFormat, Calendar inDate) { method in class:DateFormat [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | Client.cpp | 111 uint32_t w, uint32_t h, PixelFormat format, uint32_t flags, 128 PixelFormat format; member in class:android::MessageCreateLayer 133 uint32_t w, uint32_t h, PixelFormat format, uint32_t flags, 138 name(name), w(w), h(h), format(format), flags(flags) { 142 result = flinger->createLayer(name, client, w, h, format, flags, 149 name, this, w, h, format, flags, handle, gbp); 109 createSurface( const String8& name, uint32_t w, uint32_t h, PixelFormat format, uint32_t flags, sp<IBinder>* handle, sp<IGraphicBufferProducer>* gbp) argument 131 MessageCreateLayer(SurfaceFlinger* flinger, const String8& name, Client* client, uint32_t w, uint32_t h, PixelFormat format, uint32_t flags, sp<IBinder>* handle, sp<IGraphicBufferProducer>* gbp) argument
|
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcColorEquiv.cpp | 28 * -r fmt - reference graphic format 51 * RGBA8888 graphic format. The -r option can be used to specify a 52 * non-default reference frame graphic format. The graphic format of 54 * parameter. Intentionally there is no default for the graphic format 237 case 'r': // Reference graphic format 241 "format of: %s", optarg); 260 // equivalence graphic format. 269 "format of: %s", argv[optind]); 274 testPrintI("refFormat: %u %s", refFormat->format, refForma [all...] |
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/ |
H A D | QueryController.java | 121 * format: [container_selector, PATTERN=[INSTANCE=x, PATTERN=[the_pattern]] 243 Log.i(LOG_TAG, String.format( 268 Log.i(LOG_TAG, String.format("Matched selector: %s <<==>> [%s]", selector, fromNode)); 274 * to translate the regular_selector portion. It has the following format: 296 Log.d(LOG_TAG, formatLog(String.format("%s", 329 Log.w(LOG_TAG, String.format( 332 Log.w(LOG_TAG, String.format("parent = %s", fromNode.toString())); 340 String.format("Skipping invisible child: %s", childNode.toString())); 353 * to translate the pattern_selector portion. It has the following format: 411 String.format(" [all...] |
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/ |
H A D | WifiStressTest.java | 92 logv(String.format("mReconnectIterations(%d), mSsid(%s), mPassword(%s)," 150 writeOutput(String.format("iteration %d out of %d", i, mScanIterations)); 151 writeOutput(String.format("average scanning time is %d", averageScanTime)); 152 writeOutput(String.format("ssid appear %d out of %d scan iterations", 174 logv(String.format("scan result: " + sr.toString())); 187 writeOutput(String.format("iteration %d out of %d", i, mScanIterations)); 188 writeOutput(String.format("average scanning time is %d", scanTimeSum / (i - 1))); 189 writeOutput(String.format("ssid appear %d out of %d scan iterations", 228 writeOutput(String.format("iteration %d out of %d", 291 writeOutput(String.format("iteratio [all...] |
/frameworks/base/location/java/android/location/ |
H A D | GpsClock.java | 452 final String format = " %-15s = %s\n"; 456 builder.append(String.format(format, "Type", getTypeString())); 458 builder.append(String.format(format, "LeapSecond", hasLeapSecond() ? mLeapSecond : null)); 460 builder.append(String.format( 467 builder.append(String.format( 468 format, 472 builder.append(String.format( 479 builder.append(String.format( [all...] |
/frameworks/base/services/core/java/com/android/server/ |
H A D | CommonTimeManagementService.java | 182 pw.println(String.format( 196 pw.println(String.format(" Native service : %s", 199 pw.println(String.format(" Bound interface : %s", 201 pw.println(String.format(" Allow WiFi : %s", ALLOW_WIFI ? "yes" : "no")); 202 pw.println(String.format(" Allow Auto Disable : %s", AUTO_DISABLE ? "yes" : "no")); 203 pw.println(String.format(" Server Priority : %d", mEffectivePrio)); 204 pw.println(String.format(" No iface timeout : %d", NO_INTERFACE_TIMEOUT)); 258 Log.w(TAG, String.format("Native service died, will reconnect in %d mSec", 337 Log.e(TAG, String.format("Binding common time service to %s.", bindIface)); 345 Log.e(TAG, String.format("Switchin [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
H A D | CpuVideoTrackDecoder.java | 58 protected CpuVideoTrackDecoder(int trackIndex, MediaFormat format, Listener listener) { argument 59 super(trackIndex, format, listener); 61 mWidth = format.getInteger(MediaFormat.KEY_WIDTH); 62 mHeight = format.getInteger(MediaFormat.KEY_HEIGHT); 66 protected MediaCodec initMediaCodec(MediaFormat format) { argument 68 MediaCodec mediaCodec = findDecoderCodec(format, new int[] { 73 "Could not find a suitable decoder for format: " + format + "!"); 75 mediaCodec.configure(format, null, null, 0); 174 * <li>The codec can decode a video of the specified format 184 findDecoderCodec(MediaFormat format, int[] requiredColorFormats) argument [all...] |
/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
H A D | InputStreamBuffer.java | 102 String.format("Buffer size %d must be positive.", bufferSize)); 138 String.format("Index %d beyond length.", index)); 164 String.format("Index %d is before buffer %d", index, mOffset)); 236 Log.d(TAG, String.format("advanceTo %d buffer: %s", i, this)); 266 String.format("Index %d is before buffer %d", index, mOffset)); 284 Log.w(TAG, String.format( 307 Log.d(TAG, String.format("fill %d buffer: %s", i, this)); 323 String.format("Index %d out of bounds. Length %d", i, mBuffer.length)); 335 return String.format("+%d+%d [%d]", mOffset, mBuffer.length, mFilled); 349 sb.append(String.format(" [all...] |
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/ |
H A D | InputStreamBuffer.java | 102 String.format("Buffer size %d must be positive.", bufferSize)); 138 String.format("Index %d beyond length.", index)); 164 String.format("Index %d is before buffer %d", index, mOffset)); 236 Log.d(TAG, String.format("advanceTo %d buffer: %s", i, this)); 266 String.format("Index %d is before buffer %d", index, mOffset)); 284 Log.w(TAG, String.format( 307 Log.d(TAG, String.format("fill %d buffer: %s", i, this)); 323 String.format("Index %d out of bounds. Length %d", i, mBuffer.length)); 335 return String.format("+%d+%d [%d]", mOffset, mBuffer.length, mFilled); 349 sb.append(String.format(" [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | Chronometer.java | 24 import android.text.format.DateUtils; 42 * to format the timer value into an arbitrary string. 137 * Sets the format string used for display. The Chronometer will display 141 * If the format string is null, or if you never call setFormat(), the 145 * @param format the format string. 148 public void setFormat(String format) { argument 149 mFormat = format; 150 if (format != null && mFormatBuilder == null) { 151 mFormatBuilder = new StringBuilder(format [all...] |
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | Frame.java | 45 Frame(FrameFormat format, FrameManager frameManager) { argument 46 mFormat = format.mutableCopy(); 50 Frame(FrameFormat format, FrameManager frameManager, int bindingType, long bindingId) { argument 51 mFormat = format.mutableCopy(); 171 protected void setFormat(FrameFormat format) { argument 172 mFormat = format.mutableCopy();
|
H A D | FilterSurfaceView.java | 116 int format, 120 mFormat = format; 127 mListener.surfaceChanged(holder, format, width, height); 115 surfaceChanged(SurfaceHolder holder, int format, int width, int height) argument
|
/frameworks/av/camera/ |
H A D | ProCamera.cpp | 182 status_t ProCamera::createStream(int width, int height, int format, argument 190 format); 196 return createStream(width, height, format, 201 status_t ProCamera::createStream(int width, int height, int format, argument 208 format); 215 status_t stat = c->createStream(width, height, format, bufferProducer, 227 status_t ProCamera::createStreamCpu(int width, int height, int format, argument 232 return createStreamCpu(width, height, format, heapCount, 237 status_t ProCamera::createStreamCpu(int width, int height, int format, argument 245 format); [all...] |
/frameworks/av/media/mtp/ |
H A D | MtpDevice.h | 83 MtpObjectHandleList* getObjectHandles(MtpStorageID storageID, MtpObjectFormat format, 93 MtpObjectPropertyList* getObjectPropsSupported(MtpObjectFormat format); 96 MtpProperty* getObjectPropDesc(MtpObjectProperty code, MtpObjectFormat format);
|
/frameworks/base/cmds/svc/src/com/android/commands/svc/ |
H A D | Svc.java | 85 String format = " %-" + maxlen + "s %s"; 88 System.err.println(String.format(format, c.name(), c.shortHelp()));
|
/frameworks/base/media/java/android/mtp/ |
H A D | MtpDevice.java | 130 * with the given format and parent. 134 * @param format the format of the object to return, or zero for all formats 138 public int[] getObjectHandles(int storageId, int format, int objectHandle) { argument 139 return native_get_object_handles(storageId, format, objectHandle); 158 * The size and format of the thumbnail data can be determined via 161 * For typical devices the format is JPEG. 245 private native int[] native_get_object_handles(int storageId, int format, int objectHandle); argument
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
H A D | UnrefedBitmapCache.java | 61 Log.d(TAG, String.format("AltBitmapCache: block %b", blocking)); 88 Log.d(TAG, String.format( 96 Log.d(TAG, String.format("AltBitmapCache: %s notified",
|
/frameworks/opt/vcard/java/com/android/vcard/ |
H A D | VCardEntryCommitter.java | 64 Log.d(LOG_TAG, String.format("time to commit entries: %d ms", mTimeToCommit)); 92 Log.e(LOG_TAG, String.format("%s: %s", e.toString(), e.getMessage())); 95 Log.e(LOG_TAG, String.format("%s: %s", e.toString(), e.getMessage()));
|