Searched defs:format (Results 201 - 225 of 364) sorted by last modified time

1234567891011>>

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DCameraMetadataTest.java268 builder.append(String.format("%x", elem));
302 fail(String.format(
327 fail(String.format(
908 * - Use public image format constants here.
1305 int format, int width, int height,
1315 if (format == HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED) {
1317 // in this case the 'is output format supported' is vacuously true
1320 sizes = configMap.getOutputSizes(format);
1323 configMap.isOutputSupportedFor(format));
1327 sizes = configMap.getInputSizes(format);
1304 checkStreamConfigurationMapByFormatSize(StreamConfigurationMap configMap, int format, int width, int height, boolean output) argument
1342 checkStreamConfigurationMapDurationByFormatSize( StreamConfigurationMap configMap, int format, int width, int height, Duration durationKind, long expectedDuration) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/text/format/
H A DDateFormatTest.java17 package android.text.format;
H A DDateUtilsTest.java17 package android.text.format;
H A DTimeTest.java17 package android.text.format;
21 import android.text.format.Time;
193 String expectedTime = String.format("%d-%02d-%02d %02d:%02d",
195 String actualTime = String.format("%d-%02d-%02d %02d:%02d",
211 String expectedTime = String.format("%d-%02d-%02d %02d:%02d",
213 String actualTime = String.format("%d-%02d-%02d %02d:%02d",
234 String expectedTime = String.format("%d-%02d-%02d %02d:%02d isDst: %d",
237 String actualTime = String.format("%d-%02d-%02d %02d:%02d isDst: %d",
256 String expectedTime = String.format("%d-%02d-%02d %02d:%02d isDst: %d",
259 String actualTime = String.format("
[all...]
/frameworks/base/core/java/android/hardware/
H A DCamera.java697 * <p>If using the {@link android.graphics.ImageFormat#YV12} format,
702 * @param data the contents of the preview frame in the format defined
707 * (NV21) format.
858 * 8, using the image format from
861 * <p>If using the {@link android.graphics.ImageFormat#YV12} format, the
898 * using the image format from {@link Camera.Parameters#getPreviewFormat()}.
974 // adjusting camera service's format selection.
1365 * The format of the data depends on the context of the callback
2084 private static final String KEY_PREVIEW_FORMAT = "preview-format";
2088 private static final String KEY_PICTURE_FORMAT = "picture-format";
3052 pixelFormatForCameraFormat(String format) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DCameraDeviceUserShim.java507 public int createStream(int width, int height, int format, Surface surface) { argument
H A DLegacyMetadataMapper.java264 * Use platform-internal format constants here, since StreamConfigurationMap does the
265 * remapping to public format constants.
289 Log.v(TAG, String.format("mapScalerStreamConfigs - largest JPEG area %dx%d, AR=%f",
305 Log.v(TAG, String.format(
330 for (int format : p.getSupportedPreviewFormats()) {
331 if (ImageFormat.isPublicFormat(format) && format != ImageFormat.NV21) {
332 appendStreamConfig(availableStreamConfigs, format, previewSizes);
339 String.format("mapStreamConfigs - Skipping format
970 appendStreamConfig( ArrayList<StreamConfiguration> configs, int format, List<Camera.Size> sizes) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/params/
H A DReprocessFormatsMap.java51 * The inner array always contains {@code [format, length, ...]} where ... has length elements.
64 * (missing output format length or too few output formats)
86 String.format("Input %x had no output format length listed", inputFormat));
101 String.format(
121 * <p>Use this input format to look up the available output formats with {@link #getOutputs}.
134 final int format = mEntry[i];
141 String.format("Input %x had no output format length listed", format));
178 getOutputs(final int format) argument
[all...]
H A DStreamConfiguration.java37 * for that format) that are supported by a camera device.</p>
48 * @param format image format
55 * or if the format was not user-defined in ImageFormat/PixelFormat
61 final int format, final int width, final int height, final boolean input) {
62 mFormat = checkArgumentFormatInternal(format);
69 * Get the internal image {@code format} in this stream configuration.
71 * @return an integer format
60 StreamConfiguration( final int format, final int width, final int height, final boolean input) argument
H A DStreamConfigurationDuration.java29 * Immutable class to store a time duration for any given format/size combination.
42 * @param format image format
49 * or if the format was not user-defined in ImageFormat/PixelFormat
56 final int format, final int width, final int height, final long durationNs) {
57 mFormat = checkArgumentFormatInternal(format);
64 * Get the internal image {@code format} in this stream configuration duration
66 * @return an integer format
55 StreamConfigurationDuration( final int format, final int width, final int height, final long durationNs) argument
H A DStreamConfigurationMap.java49 * for that format) that are supported by a camera device.</p>
51 * <p>This also contains the minimum frame durations and stall durations for each format/size
105 // For each format, track how many sizes there are available to configure
142 * Get the image {@code format} output formats in this stream configuration.
150 * @return an array of integer format
160 * Get the image {@code format} input formats in this stream configuration.
165 * @return an array of integer format
177 * Get the supported input sizes for this input format.
179 * <p>The format must have come from {@link #getInputFormats}; otherwise
182 * @param format
187 getInputSizes(final int format) argument
215 isOutputSupportedFor(int format) argument
408 getOutputSizes(int format) argument
599 getOutputMinFrameDuration(int format, Size size) argument
741 getOutputStallDuration(int format, Size size) argument
825 checkArgumentFormatSupported(int format, boolean output) argument
856 checkArgumentFormatInternal(int format) argument
890 checkArgumentFormat(int format) argument
928 imageFormatToPublic(int format) argument
990 imageFormatToInternal(int format) argument
1024 getPublicFormatSizes(int format, boolean output) argument
1036 getInternalFormatSizes(int format, boolean output) argument
1087 getInternalFormatDuration(int format, Size size, int duration) argument
[all...]
/frameworks/base/core/java/android/hardware/hdmi/
H A DHdmiRecordSources.java275 * Major Channel Number (if Channel Number Format is 2-part). If format is
284 private ChannelIdentifier(int format, int majorNumber, int minorNumer) { argument
285 mChannelNumberFormat = format;
291 // The first 6 bits for format, the 10 bits for major number.
305 * <li>channel number format: 6bits
/frameworks/base/core/java/android/nfc/tech/
H A DNdefFormatable.java31 * Provide access to NDEF format operations on a {@link Tag}.
36 * class for tags for which it can format to NDEF.
93 public void format(NdefMessage firstMessage) throws IOException, FormatException { method in class:NdefFormatable
94 format(firstMessage, false);
116 format(firstMessage, true);
119 /*package*/ void format(NdefMessage firstMessage, boolean makeReadOnly) throws IOException, method in class:NdefFormatable
138 // Now check and see if the format worked
/frameworks/base/core/java/android/os/
H A DProcess.java542 * Presently the wire format to the zygote process is:
1094 public static final native boolean readProcFile(String file, int[] format, argument
1099 int endIndex, int[] format, String[] outStrings, long[] outLongs, float[] outFloats);
1098 parseProcLine(byte[] buffer, int startIndex, int endIndex, int[] format, String[] outStrings, long[] outLongs, float[] outFloats) argument
/frameworks/base/core/java/android/service/carrier/
H A DCarrierMessagingService.java92 * @param format the format of the PDUs, typically "3gpp" or "3gpp2"
98 public void onFilterSms(@NonNull MessagePdu pdu, @NonNull String format, int destPort, argument
349 public void filterSms(MessagePdu pdu, String format, int destPort, argument
351 onFilterSms(pdu, format, destPort, subId, new ResultCallback<Boolean>() {
/frameworks/base/core/java/android/service/wallpaper/
H A DWallpaperService.java500 public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { argument
606 + " format=" + formatChanged + " size=" + sizeChanged);
619 mLayout.format = mFormat;
/frameworks/base/core/java/android/speech/srec/
H A DWaveHeader.java24 * This class represents the header of a WAVE format audio file, which usually
27 * <li> format - usually PCM, ALAW or ULAW.
39 // follows WAVE format in http://ccrma.stanford.edu/courses/422/projects/WaveFormat
45 /** Indicates PCM format. */
47 /** Indicates ALAW format. */
49 /** Indicates ULAW format. */
66 * @param format format of audio data,
73 public WaveHeader(short format, short numChannels, int sampleRate, short bitsPerSample, int numBytes) { argument
74 mFormat = format;
96 setFormat(short format) argument
[all...]
/frameworks/base/core/java/android/text/format/
H A DDateFormat.java17 package android.text.format;
41 * <p>Most callers should avoid supplying their own format strings to this
42 * class' {@code format} methods and rely on the correctly localized ones
46 * of format strings, see {@link java.text.SimpleDateFormat}.
51 * <p>The {@code format} methods in this class implement a subset of Unicode
53 * The subset currently supported by this class includes the following format characters:
60 * Note that the non-{@code format} methods in this class are implemented by
165 * Returns true if user preference is set to 24-hour format.
167 * @return true if 24 hour time format is selected, false otherwise.
174 * Returns true if user preference with the given user handle is set to 24-hour format
397 public static CharSequence format(CharSequence inFormat, long inTimeInMillis) { method in class:DateFormat
408 public static CharSequence format(CharSequence inFormat, Date inDate) { method in class:DateFormat
493 public static CharSequence format(CharSequence inFormat, Calendar inDate) { method in class:DateFormat
[all...]
H A DDateUtils.java17 package android.text.format;
56 // The following FORMAT_* symbols are used for specifying the format of
94 // Date and time format strings that are constant and don't need to be
97 * This is not actually the preferred 24-hour date format in all locales.
353 String format = r.getQuantityString(resId, (int) count);
354 return String.format(format, count);
361 * Example output strings for the US date format.
387 // getRelativeTimeSpanString() doesn't correctly format relative dates
455 String format
[all...]
H A DFormatter.java17 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".
116 * Returns elapsed time for the given millis, in the following format
[all...]
H A DTime.java17 package android.text.format;
341 * Print the current value given the format string provided. See man
344 * @param format a string containing the desired format.
347 public String format(String format) { argument
349 return calculator.format(format);
353 * Return the current time in YYYYMMDDTHHMMSS<tz> format
365 * Parses a date-time string in either the RFC 2445 format o
1067 format(String format) argument
[all...]
H A DTimeFormatter.java21 package android.text.format;
90 public String format(String pattern, ZoneInfo.WallTime wallTime, ZoneInfo zoneInfo) { method in class:TimeFormatter
198 numberFormatter.format(getFormat(modifier, "%02d", "%2d", "%d", "%02d"),
213 numberFormatter.format(getFormat(modifier, "%2d", "%2d", "%d", "%02d"),
220 numberFormatter.format(getFormat(modifier, "%02d", "%2d", "%d", "%02d"),
225 numberFormatter.format(getFormat(modifier, "%02d", "%2d", "%d", "%02d"), hour);
229 numberFormatter.format(getFormat(modifier, "%03d", "%3d", "%d", "%03d"),
233 numberFormatter.format(getFormat(modifier, "%2d", "%2d", "%d", "%02d"),
238 numberFormatter.format(getFormat(modifier, "%2d", "%2d", "%d", "%02d"), n2);
241 numberFormatter.format(getForma
[all...]
/frameworks/base/core/java/android/view/
H A DGraphicBuffer.java74 * @param format The format of each pixel as specified in {@link PixelFormat}
79 public static GraphicBuffer create(int width, int height, int format, int usage) { argument
80 long nativeObject = nCreateGraphicBuffer(width, height, format, usage);
82 return new GraphicBuffer(width, height, format, usage, nativeObject);
90 private GraphicBuffer(int width, int height, int format, int usage, long nativeObject) { argument
93 mFormat = format;
113 * Returns the pixel format of this buffer. The pixel format must be one of
272 int format
286 nCreateGraphicBuffer(int width, int height, int format, int usage) argument
[all...]
H A DSurfaceControl.java35 int w, int h, int format, int flags)
133 * even if its pixel format is set to translucent. This can be useful if an
138 * Combined effects are (assuming a buffer format with an alpha channel):
268 String name, int w, int h, int format, int flags)
287 mNativeObject = nativeCreate(session, name, w, h, format, flags);
34 nativeCreate(SurfaceSession session, String name, int w, int h, int format, int flags) argument
267 SurfaceControl(SurfaceSession session, String name, int w, int h, int format, int flags) argument
H A DSurfaceHolder.java24 * control the surface size and format, edit the pixels in the surface, and
82 * This is called immediately after any structural changes (format or
88 * @param format The new PixelFormat of the surface.
92 public void surfaceChanged(SurfaceHolder holder, int format, int width, argument
180 * @param format A constant from PixelFormat.
184 public void setFormat(int format); argument

Completed in 317 milliseconds

1234567891011>>