/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | AudioSession.cpp | 31 audio_format_t format, 40 mConfig({ .format = format, .sample_rate = sampleRate, .channel_mask = channelMask}), 103 other->format() == mConfig.format && 147 snprintf(buffer, SIZE, "%*s- format: %08x\n", spaces, "", mConfig.format); 29 AudioSession(audio_session_t session, audio_source_t inputSource, audio_format_t format, uint32_t sampleRate, audio_channel_mask_t channelMask, audio_input_flags_t flags, uid_t uid, bool isSoundTrigger, AudioMix* policyMix, AudioPolicyClientInterface *clientInterface) argument
|
/frameworks/av/services/camera/libcameraservice/ |
H A D | CameraFlashlight.cpp | 167 String8 id = String8::format("%d", i); 236 if (hasFlashUnitLocked(String8::format("%d", i))) { 238 String8::format("%d", i).string(), 281 if (hasFlashUnitLocked(String8::format("%d", i))) { 283 String8::format("%d", i).string(), 391 int32_t format = HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED; local 396 res = mSurfaceTexture->setDefaultBufferFormat(format); 405 res = device->createStream(mSurface, width, height, format, 825 int32_t format = HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED; local 830 res = mSurfaceTexture->setDefaultBufferFormat(format); [all...] |
/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | Camera3IOStreamBase.cpp | 33 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 D | Camera3OutputStream.cpp | 36 uint32_t width, uint32_t height, int format, 40 /*maxSize*/0, format, dataSpace, rotation, setId), 59 uint32_t width, uint32_t height, size_t maxSize, int format, 63 format, dataSpace, rotation, setId), 71 if (format != HAL_PIXEL_FORMAT_BLOB && format != HAL_PIXEL_FORMAT_RAW_OPAQUE) { 72 ALOGE("%s: Bad format for size-only stream: %d", __FUNCTION__, 73 format); 89 int format, 95 format, dataSpac 34 Camera3OutputStream(int id, sp<Surface> consumer, uint32_t width, uint32_t height, int format, android_dataspace dataSpace, camera3_stream_rotation_t rotation, nsecs_t timestampOffset, int setId) argument 57 Camera3OutputStream(int id, sp<Surface> consumer, uint32_t width, uint32_t height, size_t maxSize, int format, android_dataspace dataSpace, camera3_stream_rotation_t rotation, nsecs_t timestampOffset, int setId) argument 87 Camera3OutputStream(int id, camera3_stream_type_t type, uint32_t width, uint32_t height, int format, android_dataspace dataSpace, camera3_stream_rotation_t rotation, int setId) argument [all...] |
/frameworks/base/core/java/android/app/ |
H A D | ProgressDialog.java | 140 String format = mProgressNumberFormat; 141 mProgressNumber.setText(String.format(format, progress, max)); 147 SpannableString tmp = new SpannableString(mProgressPercentFormat.format(percent)); 328 * Change the format of the small text showing current and maximum units 331 * @param format A string passed to {@link String#format String.format()}; 335 public void setProgressNumberFormat(String format) { argument 336 mProgressNumberFormat = format; 348 setProgressPercentFormat(NumberFormat format) argument [all...] |
/frameworks/base/core/java/android/service/carrier/ |
H A D | CarrierMessagingService.java | 118 * @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/view/ |
H A D | GraphicBuffer.java | 74 * @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...] |
/frameworks/base/core/java/android/widget/ |
H A D | Chronometer.java | 23 import android.text.format.DateUtils; 46 * to format the timer value into an arbitrary string. 165 * Sets the format string used for display. The Chronometer will display 169 * If the format string is null, or if you never call setFormat(), the 173 * @param format the format string. 176 public void setFormat(String format) { argument 177 mFormat = format; 178 if (format != null && mFormatBuilder == null) { 179 mFormatBuilder = new StringBuilder(format [all...] |
H A D | TextClock.java | 33 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 291 * you supply a format string generated by 293 * takes care of generating a format string adapted to the desired locale.</p> 296 * @param format A date/time formatting pattern as described in {@link DateFormat} 306 public void setFormat12Hour(CharSequence format) { argument 307 mFormat12 = format; 317 public void setContentDescriptionFormat12Hour(CharSequence format) { argument 318 mDescFormat12 = format; 364 setFormat24Hour(CharSequence format) argument 375 setContentDescriptionFormat24Hour(CharSequence format) argument [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
H A D | LoggingPrintStream.java | 168 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 D | BaseSurfaceHolder.java | 130 public void setFormat(int format) { argument 131 if (mRequestedFormat != format) { 132 mRequestedFormat = format;
|
/frameworks/base/core/jni/android/graphics/ |
H A D | YuvToJpegEncoder.cpp | 11 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 D | android_view_GraphicBuffer.cpp | 102 jint width, jint height, jint format, jint usage) { 114 sp<GraphicBuffer> buffer(alloc->createGraphicBuffer(width, height, format, usage, &error)); 137 static inline SkColorType convertPixelFormat(int32_t format) { argument 138 switch (format) { 101 android_view_GraphiceBuffer_create(JNIEnv* env, jobject clazz, jint width, jint height, jint format, jint usage) argument
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
H A D | ConnectivityManagerTestBase.java | 206 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/libs/hwui/ |
H A D | Texture.cpp | 86 bool Texture::updateSize(uint32_t width, uint32_t height, GLint format) { argument 87 if (mWidth == width && mHeight == height && mFormat == format) { 92 mFormat = format; 105 GLenum format, GLenum type, const void* pixels) { 116 format, type, pixels); 119 format, type, pixels); 124 static void uploadToTexture(bool resize, GLenum format, GLenum type, GLsizei stride, GLsizei bpp, argument 135 glTexImage2D(GL_TEXTURE_2D, 0, format, width, height, 0, format, type, data); 137 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, height, format, typ 104 upload(GLint internalformat, uint32_t width, uint32_t height, GLenum format, GLenum type, const void* pixels) argument 168 uploadSkBitmapToTexture(const SkBitmap& bitmap, bool resize, GLenum format, GLenum type) argument 227 GLint format, type; local 265 wrap(GLuint id, uint32_t width, uint32_t height, GLint format) argument [all...] |
/frameworks/base/libs/hwui/font/ |
H A D | CacheTexture.cpp | 112 CacheTexture::CacheTexture(uint16_t width, uint16_t height, GLenum format, uint32_t maxQuadCount) argument 116 , mFormat(format) 221 ALOGD("fitBitmap: texture format %x is inappropriate for monochromatic glyphs", 230 ALOGD("fitBitmap: texture format %x is inappropriate for colour glyphs", mFormat); 237 ALOGD("fitBitmap: unknown glyph format %x encountered", glyph.fMaskFormat);
|
/frameworks/base/media/java/android/media/ |
H A D | MediaMuxer.java | 77 * Defines the output format. These constants are used with constructor. 84 /** MPEG4 media file format*/ 98 private static native long nativeSetup(@NonNull FileDescriptor fd, int format); argument 128 * @param format The format of the output media file. 130 * @throws IllegalArgumentException if path is invalid or format is not supported. 133 public MediaMuxer(@NonNull String path, @Format int format) throws IOException { argument 137 if (format != OutputFormat.MUXER_OUTPUT_MPEG_4 && 138 format != OutputFormat.MUXER_OUTPUT_WEBM) { 139 throw new IllegalArgumentException("format i 391 addTrack(@onNull MediaFormat format) argument [all...] |
H A D | SubtitleController.java | 224 MediaFormat format = track.getFormat(); 225 String language = format.getString(MediaFormat.KEY_LANGUAGE); 227 format.getInteger(MediaFormat.KEY_IS_FORCED_SUBTITLE, 0) != 0; 229 format.getInteger(MediaFormat.KEY_IS_AUTOSELECT, 1) != 0; 231 format.getInteger(MediaFormat.KEY_IS_DEFAULT, 0) != 0; 317 * @param format the format of the track that will include at least 321 public SubtitleTrack addTrack(MediaFormat format) { argument 324 if (renderer.supports(format)) { 325 SubtitleTrack track = renderer.createTrack(format); 392 supports(MediaFormat format) argument 406 createTrack(MediaFormat format) argument 426 hasRendererFor(MediaFormat format) argument [all...] |
/frameworks/base/media/java/android/media/audiopolicy/ |
H A D | AudioMix.java | 52 private AudioMix(AudioMixingRule rule, AudioFormat format, int routeFlags, int callbackFlags, argument 55 mFormat = format; 257 * @param format a non-null {@link AudioFormat} instance. 262 public Builder setFormat(AudioFormat format) argument 264 if (format == null) { 267 mFormat = format;
|
/frameworks/base/media/jni/ |
H A D | android_media_ExifInterface.cpp | 140 && image_data.thumbnail.format == ::piex::Image::kJpegCompressed) { 142 map.add(String8("ThumbnailOffset"), String8::format("%d", image_data.thumbnail.offset)); 143 map.add(String8("ThumbnailLength"), String8::format("%d", image_data.thumbnail.length)); 150 String8::format("%u", image_data.exif_orientation)); 153 String8::format("%u", image_data.full_width)); 156 String8::format("%u", image_data.full_height)); 178 String8::format("%u", image_data.iso)); 187 const char* format; local 189 format = "%6.4f"; 191 format [all...] |
H A D | android_media_MediaMuxer.cpp | 137 jint format) { 142 static_cast<MediaMuxer::OutputFormat>(format); 135 android_media_MediaMuxer_native_setup( JNIEnv *env, jclass clazz, jobject fileDescriptor, jint format) argument
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | FilterPort.java | 52 public void setPortFormat(FrameFormat format) { argument 53 mPortFormat = format;
|
H A D | NativeFrame.java | 36 NativeFrame(FrameFormat format, FrameManager frameManager) { argument 37 super(format, frameManager); 38 int capacity = format.getSize();
|
H A D | SerializedFrame.java | 23 import android.filterfw.format.ObjectFormat; 165 SerializedFrame(FrameFormat format, FrameManager frameManager) { argument 166 super(format, frameManager); 181 FrameFormat format = ObjectFormat.fromObject(object, FrameFormat.TARGET_SIMPLE); 182 SerializedFrame result = new SerializedFrame(format, frameManager);
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
H A D | MtpManager.java | 144 device.getObjectHandles(storageId, 0 /* all format */, parentObjectHandle), 238 long getObjectSizeLong(int deviceId, int objectHandle, int format) throws IOException { argument 240 return device.getObjectSizeLong(objectHandle, format);
|