Searched refs:quality (Results 26 - 44 of 44) sorted by relevance

12

/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
H A DBitmapUtils.java241 public static byte[] compressToBytes(Bitmap bitmap, int quality) { argument
243 bitmap.compress(CompressFormat.JPEG, quality, baos);
/frameworks/av/media/libmediaplayerservice/
H A DStagefrightRecorder.cpp1245 camcorder_quality quality = CAMCORDER_QUALITY_LOW; local
1248 "duration", mCameraId, quality) * 1000000LL;
1251 "file.format", mCameraId, quality);
1254 "vid.codec", mCameraId, quality);
1257 "vid.bps", mCameraId, quality);
1260 "vid.fps", mCameraId, quality);
1263 "vid.width", mCameraId, quality);
1266 "vid.height", mCameraId, quality);
1269 "aud.codec", mCameraId, quality);
1272 "aud.bps", mCameraId, quality);
[all...]
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DUiDevice.java824 * Default scale of 1.0f (original size) and 90% quality is used
843 * @param quality quality of the PNG compression; range: 0-100
847 public boolean takeScreenshot(File storePath, float scale, int quality) { argument
848 Tracer.trace(storePath, scale, quality);
849 return getAutomatorBridge().takeScreenshot(storePath, quality);
/frameworks/base/core/jni/android/graphics/
H A DYuvToJpegEncoder.cpp53 int width, int height, int quality) {
60 jpeg_set_quality(cinfo, quality, TRUE);
52 setJpegCompressStruct(jpeg_compress_struct* cinfo, int width, int height, int quality) argument
H A DBitmap.cpp824 jint format, jint quality,
859 success = encoder->encodeStream(strm.get(), skbitmap, quality);
823 Bitmap_compress(JNIEnv* env, jobject clazz, jlong bitmapHandle, jint format, jint quality, jobject jstream, jbyteArray jstorage) argument
/frameworks/base/media/java/android/media/
H A DMediaRecorder.java439 if (profile.quality >= CamcorderProfile.QUALITY_TIME_LAPSE_LOW &&
440 profile.quality <= CamcorderProfile.QUALITY_TIME_LAPSE_QVGA) {
H A DMediaCodecInfo.java2204 * Returns the supported range of quality values.
2217 * intensive calculations) to improve the quality or the compression
2224 /** Constant quality mode */
2275 // no support for complexity or quality yet
2312 if (info.containsKey("quality-range")) {
2314 .parseIntRange(info.getString("quality-range"), mQualityRange);
2327 mDefaultQuality = Integer.parseInt((String)map.get("quality-default"));
2330 mQualityScale = (String)map.get("quality-scale");
2334 Integer complexity, Integer quality, Integer profile) {
2339 if (ok && quality !
2333 supports( Integer complexity, Integer quality, Integer profile) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DBitmap.java387 * how pixels are stored. This affects the quality (color depth) as
433 * @deprecated Because of the poor quality of this configuration,
445 * quality. It should be used whenever possible.
1010 * @param quality Hint to the compressor, 0-100. 0 meaning compress for
1011 * small size, 100 meaning compress for max quality. Some
1013 * quality setting
1017 public boolean compress(CompressFormat format, int quality, OutputStream stream) { argument
1023 if (quality < 0 || quality > 100) {
1024 throw new IllegalArgumentException("quality mus
1687 nativeCompress(long nativeBitmap, int format, int quality, OutputStream stream, byte[] tempStorage) argument
[all...]
/frameworks/av/services/audioflinger/
H A DAudioResamplerSinc.cpp87 // for high quality resampler, the parameters for coefficients are compile-time constants
96 // for very high quality resampler, the parameters are load-time constants
204 int inChannelCount, int32_t sampleRate, src_quality quality)
205 : AudioResampler(inChannelCount, sampleRate, quality),
232 mConstants = (quality == VERY_HIGH_QUALITY) ?
203 AudioResamplerSinc( int inChannelCount, int32_t sampleRate, src_quality quality) argument
H A DAudioResamplerDyn.cpp167 int inChannelCount, int32_t sampleRate, src_quality quality)
168 : AudioResampler(inChannelCount, sampleRate, quality),
166 AudioResamplerDyn( int inChannelCount, int32_t sampleRate, src_quality quality) argument
H A DAudioMixer.cpp767 AudioResampler::src_quality quality; local
768 // force lowest quality level resampler if use case isn't music or video
770 // quality level based on the initial ratio, but that could change later.
773 quality = AudioResampler::DEFAULT_QUALITY;
775 quality = AudioResampler::DYN_LOW_QUALITY;
783 " format(%#x) channels(%d) devSampleRate(%u) quality(%d)\n",
784 mMixerInFormat, resamplerChannelCount, devSampleRate, quality);
788 devSampleRate, quality);
/frameworks/base/core/java/android/app/admin/
H A DIDevicePolicyManager.aidl38 void setPasswordQuality(in ComponentName who, int quality);
111 void setActivePasswordState(int quality, int length, int letters, int uppercase, int lowercase,
H A DDevicePolicyManager.java937 * for the password. Note that quality constants are ordered so that higher
946 * Note that quality constants are ordered so that higher values are more restrictive.
952 * of password or pattern, but doesn't care what it is. Note that quality constants
959 * password containing at least numeric characters. Note that quality
967 * or ordered (1234, 4321, 2468) sequences. Note that quality
975 * Note that quality constants are ordered so that higher values are more
983 * alphabetic (or other symbol) characters. Note that quality constants are
991 * symbol, by default. With this password quality, passwords can be
995 * that quality constants are ordered so that higher values are more
1010 * thus the highest requested quality constan
1025 setPasswordQuality(@onNull ComponentName admin, int quality) argument
1600 getPasswordMaximumLength(int quality) argument
2639 setActivePasswordState(int quality, int length, int letters, int uppercase, int lowercase, int numbers, int symbols, int nonletter, int userHandle) argument
[all...]
/frameworks/base/core/java/android/hardware/
H A DCamera.java2094 private static final String KEY_JPEG_THUMBNAIL_QUALITY = "jpeg-thumbnail-quality";
2095 private static final String KEY_JPEG_QUALITY = "jpeg-quality";
2739 * Sets the quality of the EXIF thumbnail in Jpeg picture.
2741 * @param quality the JPEG quality of the EXIF thumbnail. The range is 1
2744 public void setJpegThumbnailQuality(int quality) { argument
2745 set(KEY_JPEG_THUMBNAIL_QUALITY, quality);
2749 * Returns the quality setting for the EXIF thumbnail in Jpeg picture.
2751 * @return the JPEG quality setting of the EXIF thumbnail.
2758 * Sets Jpeg quality o
2763 setJpegQuality(int quality) argument
[all...]
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DDevicePolicyManagerService.java431 private static final String TAG_PASSWORD_QUALITY = "password-quality";
1479 out.attribute(null, "quality", Integer.toString(policy.mActivePasswordQuality));
1613 parser.getAttributeValue(null, "quality"));
1664 // Validate that what we stored for the password quality matches
1672 Slog.w(LOG_TAG, "Active password quality 0x"
1674 + " does not match actual quality 0x"
1723 static void validateQualityConstant(int quality) { argument
1724 switch (quality) {
1735 throw new IllegalArgumentException("Invalid quality constant: 0x"
1736 + Integer.toHexString(quality));
2105 setPasswordQuality(ComponentName who, int quality) argument
3457 setActivePasswordState(int quality, int length, int letters, int uppercase, int lowercase, int numbers, int symbols, int nonletter, int userHandle) argument
[all...]
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DParameters.cpp1494 int quality = newParams.getInt(CameraParameters::KEY_JPEG_THUMBNAIL_QUALITY); local
1495 // also makes sure quality fits in uint8_t
1496 if (quality < 0 || quality > 100) {
1497 ALOGE("%s: Requested JPEG thumbnail quality %d is not supported",
1498 __FUNCTION__, quality);
1501 validatedParams.jpegThumbQuality = quality;
1504 quality = newParams.getInt(CameraParameters::KEY_JPEG_QUALITY);
1505 // also makes sure quality fits in uint8_t
1506 if (quality <
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmap_Delegate.java302 /*package*/ static boolean nativeCompress(long nativeBitmap, int format, int quality, argument
/frameworks/base/core/java/android/view/
H A DView.java955 * <p>Enables low quality mode for the drawing cache.</p>
960 * <p>Enables high quality mode for the drawing cache.</p>
965 * <p>Enables automatic quality mode for the drawing cache.</p>
975 * quality property.</p>
3672 * <p>A hardware layer can also be used to increase the rendering quality when
6869 * Returns the quality of the drawing cache.
6886 * Set the drawing cache quality of this view. This value is used only when the
6889 * @param quality One of {@link #DRAWING_CACHE_QUALITY_AUTO},
6898 public void setDrawingCacheQuality(@DrawingCacheQuality int quality) { argument
6899 setFlags(quality, DRAWING_CACHE_QUALITY_MAS
15490 createSnapshot(Bitmap.Config quality, int backgroundColor, boolean skipChildren) argument
[all...]
H A DViewGroup.java3160 Bitmap createSnapshot(Bitmap.Config quality, int backgroundColor, boolean skipChildren) { argument
3175 Bitmap b = super.createSnapshot(quality, backgroundColor, skipChildren);
5562 * for instance, when the cache's quality is set to low.

Completed in 1296 milliseconds

12