Searched defs:format (Results 176 - 200 of 494) sorted by relevance

1234567891011>>

/frameworks/av/services/camera/libcameraservice/
H A DCameraFlashlight.cpp223 if (hasFlashUnitLocked(String8::format("%d", i))) {
225 String8::format("%d", i).string(),
268 if (hasFlashUnitLocked(String8::format("%d", i))) {
270 String8::format("%d", i).string(),
493 int32_t format = HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED; local
498 res = mSurfaceTexture->setDefaultBufferFormat(format);
/frameworks/av/services/camera/libcameraservice/api2/
H A DCameraDeviceClient.h96 // Create an input stream of width, height, and format.
97 virtual binder::Status createInputStream(int width, int height, int format,
214 int format; member in class:android::CameraDeviceClient::OutputStreamInfo
219 width(-1), height(-1), format(-1), dataSpace(HAL_DATASPACE_UNKNOWN),
223 width(_width), height(_height), format(_format),
255 // Find the closest dimensions for a given format in available stream configurations with
258 static bool roundBufferDimensionNearest(int32_t width, int32_t height, int32_t format,
262 //check if format is not custom format
263 static bool isPublicFormat(int32_t format);
277 int32_t format; member in struct:android::CameraDeviceClient::InputStreamConfiguration
[all...]
/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3IOStreamBase.cpp33 uint32_t width, uint32_t height, size_t maxSize, int format,
36 width, height, maxSize, format, dataSpace, rotation, setId),
46 (format != HAL_PIXEL_FORMAT_BLOB && format != HAL_PIXEL_FORMAT_RAW_OPAQUE)) {
47 ALOGE("%s: Bad format for size-only stream: %d", __FUNCTION__,
48 format);
77 lines.appendFormat(" Dims: %d x %d, format 0x%x, dataspace 0x%x\n",
79 camera3_stream::format, camera3_stream::data_space);
32 Camera3IOStreamBase(int id, camera3_stream_type_t type, uint32_t width, uint32_t height, size_t maxSize, int format, android_dataspace dataSpace, camera3_stream_rotation_t rotation, int setId) argument
H A DCamera3InputStream.cpp31 uint32_t width, uint32_t height, int format) :
33 format, HAL_DATASPACE_UNKNOWN, CAMERA3_STREAM_ROTATION_0) {
35 if (format == HAL_PIXEL_FORMAT_BLOB) {
36 ALOGE("%s: Bad format, BLOB not supported", __FUNCTION__);
222 assert(camera3_stream::format != HAL_PIXEL_FORMAT_BLOB);
263 mConsumer->setName(String8::format("Camera3-InputStream-%d", mId));
277 res = mConsumer->setDefaultBufferFormat(camera3_stream::format);
279 ALOGE("%s: Stream %d: Could not set buffer format %d",
280 __FUNCTION__, mId, camera3_stream::format);
30 Camera3InputStream(int id, uint32_t width, uint32_t height, int format) argument
/frameworks/base/core/java/android/app/
H A DActivityView.java247 public void surfaceChanged(SurfaceHolder surfaceHolder, int format, int width, int height) { argument
H A DProgressDialog.java209 String format = mProgressNumberFormat;
210 mProgressNumber.setText(String.format(format, progress, max));
216 SpannableString tmp = new SpannableString(mProgressPercentFormat.format(percent));
485 * Change the format of the small text showing current and maximum units
488 * @param format A string passed to {@link String#format String.format()};
492 public void setProgressNumberFormat(String format) { argument
493 mProgressNumberFormat = format;
505 setProgressPercentFormat(NumberFormat format) argument
[all...]
/frameworks/base/core/java/android/hardware/
H A DHardwareBuffer.java60 /** Format: opaque format used for raw data transfer; must have a height of 1 */
108 * format is not a supported Format type.</p>
112 * @param format The format of each pixel, one of {@link #RGBA_8888}, {@link #RGBA_FP16},
123 * too large to allocate), if the format is not supported, if the requested number of layers
127 public static HardwareBuffer create(int width, int height, @Format int format, int layers, argument
129 if (!HardwareBuffer.isSupportedFormat(format)) {
130 throw new IllegalArgumentException("Invalid pixel format " + format);
141 if (format
323 isSupportedFormat(@ormat int format) argument
337 nCreateHardwareBuffer(int width, int height, int format, int layers, long usage) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/impl/
H A DICameraDeviceUserWrapper.java137 public int createInputStream(int width, int height, int format) throws CameraAccessException { argument
139 return mRemoteDevice.createInputStream(width, height, format);
/frameworks/base/core/java/android/service/carrier/
H A DCarrierMessagingService.java118 * @param format the format of the PDUs, typically "3gpp" or "3gpp2"
126 public void onFilterSms(@NonNull MessagePdu pdu, @NonNull String format, int destPort, argument
146 * @param format the format of the PDUs, typically "3gpp" or "3gpp2"
154 public void onReceiveTextSms(@NonNull MessagePdu pdu, @NonNull String format, argument
156 onFilterSms(pdu, format, destPort, subId, new ResultCallback<Boolean>() {
465 public void filterSms(MessagePdu pdu, String format, int destPort, argument
467 onReceiveTextSms(pdu, format, destPort, subId,
/frameworks/base/core/java/android/text/format/
H A DFormatter.java17 package android.text.format;
154 return measureFormatter.format(new Measure(value, units));
165 // ICU spells out "byte" instead of "B", and can't format petabytes yet.
166 final String formattedNumber = numberFormatter.format(input.value);
179 final String formattedNumber = numberFormatter.format(rounded.value);
182 // ICU spells out "byte" instead of "B", and can't format petabytes yet.
269 // the rounded value. NumberFormat.format(0.1) might not return "0.1" due to floating
312 * Returns a string in the canonical IPv4 format ###.###.###.### from a packed integer
314 * format (LSB first). That is, 0x01020304 will return "4.3.2.1".
330 * Returns elapsed time for the given millis, in the following format
[all...]
/frameworks/base/core/java/android/widget/
H A DChronometer.java28 import android.text.format.DateUtils;
53 * to format the timer value into an arbitrary string.
188 * Sets the format string used for display. The Chronometer will display
192 * If the format string is null, or if you never call setFormat(), the
196 * @param format the format string.
199 public void setFormat(String format) { argument
200 mFormat = format;
201 if (format != null && mFormatBuilder == null) {
202 mFormatBuilder = new StringBuilder(format
[all...]
H A DTextClock.java36 import android.text.format.DateFormat;
52 * <p>This view honors the 24-hour format system setting. As such, it is
61 * <p>The rules used by this widget to decide how to format the date and
293 * you supply a format string generated by
295 * takes care of generating a format string adapted to the desired locale.</p>
298 * @param format A date/time formatting pattern as described in {@link DateFormat}
308 public void setFormat12Hour(CharSequence format) { argument
309 mFormat12 = format;
319 public void setContentDescriptionFormat12Hour(CharSequence format) { argument
320 mDescFormat12 = format;
366 setFormat24Hour(CharSequence format) argument
377 setContentDescriptionFormat24Hour(CharSequence format) argument
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DLoggingPrintStream.java168 public PrintStream format(String format, Object... args) { argument
169 return format(Locale.getDefault(), format, args);
173 public PrintStream printf(String format, Object... args) { argument
174 return format(format, args);
178 public PrintStream printf(Locale l, String format, Object... args) { argument
179 return format(l, format, arg
185 format( Locale l, String format, Object... args) argument
[all...]
/frameworks/base/core/java/com/android/internal/view/
H A DBaseSurfaceHolder.java130 public void setFormat(int format) { argument
131 if (mRequestedFormat != format) {
132 mRequestedFormat = format;
/frameworks/base/core/jni/android/graphics/
H A DGraphicBuffer.cpp121 jint width, jint height, jint format, jint usage) {
124 uint32_t(width), uint32_t(height), PixelFormat(format), uint32_t(usage),
149 static inline SkColorType convertPixelFormat(int32_t format) { argument
150 switch (format) {
120 android_graphics_GraphicBuffer_create(JNIEnv* env, jobject clazz, jint width, jint height, jint format, jint usage) argument
H A DYuvToJpegEncoder.cpp11 YuvToJpegEncoder* YuvToJpegEncoder::create(int format, int* strides) { argument
14 if (format == HAL_PIXEL_FORMAT_YCrCb_420_SP) {
16 } else if (format == HAL_PIXEL_FORMAT_YCbCr_422_I) {
222 jint format, jint width, jint height, jintArray offsets,
230 YuvToJpegEncoder* encoder = YuvToJpegEncoder::create(format, imgStrides);
221 YuvImage_compressToJpeg(JNIEnv* env, jobject, jbyteArray inYuv, jint format, jint width, jint height, jintArray offsets, jintArray strides, jint jpegQuality, jobject jstream, jbyteArray jstorage) argument
/frameworks/base/core/jni/
H A Dandroid_hardware_HardwareBuffer.cpp73 jint width, jint height, jint format, jint layers, jlong usage) {
76 int pixelFormat = android_hardware_HardwareBuffer_convertToPixelFormat(format);
79 ALOGW("createGraphicBufferAlloc() invalid pixel format in HardwareBuffer.create()");
208 uint32_t android_hardware_HardwareBuffer_convertFromPixelFormat(uint32_t format) { argument
209 return AHardwareBuffer_convertFromPixelFormat(format);
212 uint32_t android_hardware_HardwareBuffer_convertToPixelFormat(uint32_t format) { argument
213 return AHardwareBuffer_convertToPixelFormat(format);
72 android_hardware_HardwareBuffer_create(JNIEnv* env, jobject clazz, jint width, jint height, jint format, jint layers, jlong usage) argument
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
H A DConnectivityManagerTestBase.java206 logv(String.format("waitForWifiAPState timeout: expected=%d, actual=%d",
210 logv(String.format("waitForWifiAPState interim: expected=%d, actual=%d",
470 protected void logv(String format, Object... args) { argument
471 Log.v(mLogTag, String.format(format, args));
/frameworks/base/graphics/java/android/graphics/
H A DGraphicBuffer.java71 * @param format The format of each pixel as specified in {@link PixelFormat}
76 public static GraphicBuffer create(int width, int height, int format, int usage) { argument
77 long nativeObject = nCreateGraphicBuffer(width, height, format, usage);
79 return new GraphicBuffer(width, height, format, usage, nativeObject);
87 private GraphicBuffer(int width, int height, int format, int usage, long nativeObject) { argument
90 mFormat = format;
100 int format, int usage, long unwrappedNativeObject) {
103 return new GraphicBuffer(width, height, format, usage, nativeObject);
123 * Returns the pixel format o
99 createFromExisting(int width, int height, int format, int usage, long unwrappedNativeObject) argument
296 nCreateGraphicBuffer(int width, int height, int format, int usage) argument
[all...]
/frameworks/base/libs/hwui/
H A DOpenGLReadback.cpp144 GLenum format; local
150 format = GL_ALPHA;
155 format = GL_RGB;
160 format = GL_RGBA;
165 format = GL_RGBA;
171 format = GL_RGBA;
180 // need explicit format control we can't currently.
192 0, format, type, nullptr);
234 glReadPixels(0, 0, bitmap->width(), bitmap->height(), format,
H A DTexture.cpp32 // Number of bytes used by a texture in the given format
96 GLint format, GLenum target) {
99 && mFormat == format
106 mFormat = format;
121 GLenum format, GLenum type, const void* pixels) {
127 bool needsAlloc = updateLayout(width, height, internalFormat, format, GL_TEXTURE_2D);
136 format, type, pixels);
139 format, type, pixels);
155 static void uploadToTexture(bool resize, GLint internalFormat, GLenum format, GLenum type, argument
166 glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, width, height, 0, format, typ
95 updateLayout(uint32_t width, uint32_t height, GLint internalFormat, GLint format, GLenum target) argument
120 upload(GLint internalFormat, uint32_t width, uint32_t height, GLenum format, GLenum type, const void* pixels) argument
300 GLint internalFormat, format, type; local
385 wrap(GLuint id, uint32_t width, uint32_t height, GLint internalFormat, GLint format, GLenum target) argument
[all...]
H A DTexture.h84 * Sets the width, height, and format of the texture along with allocating
85 * the texture ID. Does nothing if the width, height, and format are already
90 void resize(uint32_t width, uint32_t height, GLint internalFormat, GLint format) { argument
91 upload(internalFormat, width, height, format,
97 * also setting the appropriate width, height, and format. It is not necessary
108 GLenum format, GLenum type, const void* pixels);
114 GLint format, GLenum target);
128 GLint format() const { function in class:android::uirenderer::Texture
156 * Returns true if this texture uses a linear encoding format.
199 // Returns true if the texture layout (size, format, et
[all...]
/frameworks/base/libs/hwui/font/
H A DCacheTexture.cpp115 CacheTexture::CacheTexture(uint16_t width, uint16_t height, GLenum format, uint32_t maxQuadCount) argument
119 , mFormat(format)
235 ALOGD("fitBitmap: texture format %x is inappropriate for monochromatic glyphs",
244 ALOGD("fitBitmap: texture format %x is inappropriate for colour glyphs", mFormat);
251 ALOGD("fitBitmap: unknown glyph format %x encountered", glyph.fMaskFormat);
/frameworks/base/libs/hwui/hwui/
H A DBitmap.cpp138 PixelFormat format = graphicBuffer->getPixelFormat(); local
140 (format != PIXEL_FORMAT_RGBA_8888 && format != PIXEL_FORMAT_RGBA_FP16)) {
/frameworks/base/libs/hwui/renderthread/
H A DVulkanManager.cpp291 void VulkanManager::createBuffers(VulkanSurface* surface, VkFormat format, VkExtent2D extent) { argument
309 info.fFormat = format;
430 // Pick our surface format. For now, just make sure it matches our sRGB request:
441 if (desiredFormat == surfaceFormats[i].format) {
442 surfaceFormat = surfaceFormats[i].format;

Completed in 6663 milliseconds

1234567891011>>