/frameworks/base/media/java/android/media/ |
D | CamcorderProfile.java | 287 public int quality; field in CamcorderProfile 394 public static CamcorderProfile get(int quality) { in get() argument 400 return get(i, quality); in get() 457 public static CamcorderProfile get(int cameraId, int quality) { in get() argument 458 if (!((quality >= QUALITY_LIST_START && in get() 459 quality <= QUALITY_LIST_END) || in get() 460 (quality >= QUALITY_TIME_LAPSE_LIST_START && in get() 461 quality <= QUALITY_TIME_LAPSE_LIST_END) || in get() 462 (quality >= QUALITY_HIGH_SPEED_LIST_START && in get() 463 quality <= QUALITY_HIGH_SPEED_LIST_END))) { in get() [all …]
|
D | CameraProfile.java | 57 public static int getJpegEncodingQualityParameter(int quality) { in getJpegEncodingQualityParameter() argument 63 return getJpegEncodingQualityParameter(i, quality); in getJpegEncodingQualityParameter() 77 public static int getJpegEncodingQualityParameter(int cameraId, int quality) { in getJpegEncodingQualityParameter() argument 78 if (quality < QUALITY_LOW || quality > QUALITY_HIGH) { in getJpegEncodingQualityParameter() 79 throw new IllegalArgumentException("Unsupported quality level: " + quality); in getJpegEncodingQualityParameter() 87 return levels[quality]; in getJpegEncodingQualityParameter()
|
/frameworks/base/core/java/android/app/admin/ |
D | PasswordMetrics.java | 57 public int quality = DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED; field in PasswordMetrics 68 public PasswordMetrics(int quality) { in PasswordMetrics() argument 69 this.quality = quality; in PasswordMetrics() 72 public PasswordMetrics(int quality, int length) { in PasswordMetrics() argument 73 this.quality = quality; in PasswordMetrics() 77 public PasswordMetrics(int quality, int length, int letters, int upperCase, int lowerCase, in PasswordMetrics() argument 79 this(quality, length); in PasswordMetrics() 89 quality = in.readInt(); in PasswordMetrics() 104 .complexityLevelToBucket(complexityLevel).mMetrics[0].quality; in complexityLevelToMinQuality() 145 if (targetQuality == metrics.quality) { in getTargetQualityMetrics() [all …]
|
/frameworks/av/media/libaudioprocessing/ |
D | AudioResampler.cpp | 86 bool AudioResampler::qualityIsSupported(src_quality quality) in qualityIsSupported() argument 88 switch (quality) { in qualityIsSupported() 124 uint32_t AudioResampler::qualityMHz(src_quality quality) in qualityMHz() argument 126 switch (quality) { in qualityMHz() 151 int32_t sampleRate, src_quality quality) { in create() argument 154 if (quality == DEFAULT_QUALITY) { in create() 160 quality = defaultQuality; in create() 172 if (quality == DEFAULT_QUALITY) { in create() 173 quality = DYN_MED_QUALITY; in create() 179 uint32_t deltaMHz = qualityMHz(quality); in create() [all …]
|
/frameworks/base/location/java/android/location/ |
D | LocationRequest.java | 201 int quality; in createFromDeprecatedProvider() local 203 quality = POWER_NONE; in createFromDeprecatedProvider() 205 quality = ACCURACY_FINE; in createFromDeprecatedProvider() 207 quality = POWER_LOW; in createFromDeprecatedProvider() 212 .setQuality(quality) in createFromDeprecatedProvider() 228 int quality; in createFromDeprecatedCriteria() local 231 quality = ACCURACY_BLOCK; in createFromDeprecatedCriteria() 234 quality = ACCURACY_FINE; in createFromDeprecatedCriteria() 238 quality = POWER_HIGH; in createFromDeprecatedCriteria() 240 quality = POWER_LOW; in createFromDeprecatedCriteria() [all …]
|
/frameworks/base/media/jni/ |
D | android_media_MediaProfiles.cpp | 166 static bool isCamcorderQualityKnown(int quality) in isCamcorderQualityKnown() argument 168 return ((quality >= CAMCORDER_QUALITY_LIST_START && in isCamcorderQualityKnown() 169 quality <= CAMCORDER_QUALITY_LIST_END) || in isCamcorderQualityKnown() 170 (quality >= CAMCORDER_QUALITY_TIME_LAPSE_LIST_START && in isCamcorderQualityKnown() 171 quality <= CAMCORDER_QUALITY_TIME_LAPSE_LIST_END) || in isCamcorderQualityKnown() 172 (quality >= CAMCORDER_QUALITY_HIGH_SPEED_LIST_START && in isCamcorderQualityKnown() 173 quality <= CAMCORDER_QUALITY_HIGH_SPEED_LIST_END)); in isCamcorderQualityKnown() 178 jint quality) in android_media_MediaProfiles_native_get_camcorder_profile() argument 180 ALOGV("native_get_camcorder_profile: %d %d", id, quality); in android_media_MediaProfiles_native_get_camcorder_profile() 181 if (!isCamcorderQualityKnown(quality)) { in android_media_MediaProfiles_native_get_camcorder_profile() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/admin/ |
D | PasswordMetricsTest.java | 56 assertEquals(DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED, metrics.quality); in testIsDefault() 68 final int quality = 0; in testParceling() local 81 quality, length, letters, upperCase, lowerCase, numeric, symbols, nonLetter) in testParceling() 89 assertEquals(quality, metrics.quality); in testParceling() 116 PasswordMetrics.computeForPassword("a1".getBytes()).quality); in testComputeForPassword_quality() 118 PasswordMetrics.computeForPassword("a".getBytes()).quality); in testComputeForPassword_quality() 120 PasswordMetrics.computeForPassword("*~&%$".getBytes()).quality); in testComputeForPassword_quality() 122 PasswordMetrics.computeForPassword("1".getBytes()).quality); in testComputeForPassword_quality() 125 PasswordMetrics.computeForPassword("1234".getBytes()).quality); in testComputeForPassword_quality() 127 PasswordMetrics.computeForPassword("".getBytes()).quality); in testComputeForPassword_quality() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CallAttributesTest.java | 35 CallQuality quality = new CallQuality(); in testParcelUnparcelCallQuality() local 37 CallAttributes data = new CallAttributes(pcs, 10, quality); in testParcelUnparcelCallQuality() 52 CallQuality quality = new CallQuality(); in testParcelUnparcelPreciseCallState() local 54 CallAttributes data = new CallAttributes(pcs, 10, quality); in testParcelUnparcelPreciseCallState() 69 CallQuality quality = new CallQuality(); in testParcelUnparcelNetworkType() local 71 CallAttributes data = new CallAttributes(pcs, 10, quality); in testParcelUnparcelNetworkType()
|
/frameworks/av/media/libmedia/ |
D | MediaProfiles.cpp | 342 const int quality = findTagForName(sCamcorderQualityNameMap, nProfileMappings, atts[1]); in createCamcorderProfile() local 343 CHECK(quality != -1); in createCamcorderProfile() 355 profile->mQuality = static_cast<camcorder_quality>(quality); in createCamcorderProfile() 376 int quality = atoi(atts[1]); in addImageEncodingQualityLevel() local 377 ALOGV("%s: cameraId=%d, quality=%d", __func__, cameraId, quality); in addImageEncodingQualityLevel() 386 levels->mLevels.add(quality); in addImageEncodingQualityLevel() 442 static bool isCamcorderProfile(camcorder_quality quality) { in isCamcorderProfile() argument 443 return quality >= CAMCORDER_QUALITY_LIST_START && in isCamcorderProfile() 444 quality <= CAMCORDER_QUALITY_LIST_END; in isCamcorderProfile() 447 static bool isTimelapseProfile(camcorder_quality quality) { in isTimelapseProfile() argument [all …]
|
/frameworks/av/media/libaudioprocessing/tests/ |
D | test-resampler.cpp | 113 AudioResampler::src_quality quality = AudioResampler::DEFAULT_QUALITY; in main() local 137 quality = AudioResampler::DEFAULT_QUALITY; in main() 139 quality = AudioResampler::LOW_QUALITY; in main() 141 quality = AudioResampler::MED_QUALITY; in main() 143 quality = AudioResampler::HIGH_QUALITY; in main() 145 quality = AudioResampler::VERY_HIGH_QUALITY; in main() 147 quality = AudioResampler::DYN_LOW_QUALITY; in main() 149 quality = AudioResampler::DYN_MED_QUALITY; in main() 151 quality = AudioResampler::DYN_HIGH_QUALITY; in main() 183 || channels > (quality < AudioResampler::DYN_LOW_QUALITY ? 2 : 8)) { in main() [all …]
|
D | resampler_tests.cpp | 91 enum android::AudioResampler::src_quality quality) in testBufferIncrement() argument 115 resampler = android::AudioResampler::create(format, channels, outputFreq, quality); in testBufferIncrement() 133 resampler = android::AudioResampler::create(format, channels, outputFreq, quality); in testBufferIncrement() 183 enum android::AudioResampler::src_quality quality) in testStopbandDownconversion() argument 203 channels, outputFreq, quality); in testStopbandDownconversion() 250 android::AudioResampler::src_quality quality = android::AudioResampler::DYN_HIGH_QUALITY) in testFilterResponse() argument 260 quality))); in testFilterResponse() 283 inputFreq, outputFreq, quality, in testFilterResponse() 565 for (auto quality : qualities) { in TEST() local 568 testFilterResponse(2 /* channels */, inSampleRate, outSampleRate, quality); in TEST()
|
/frameworks/compile/mclinker/lib/Support/ |
D | TargetRegistry.cpp | 39 unsigned int quality = (*target)->getTripleQuality(triple); in lookupTarget() local 40 if (quality > 0) { in lookupTarget() 41 if (best == NULL || highest < quality) { in lookupTarget() 42 highest = quality; in lookupTarget() 45 } else if (highest == quality) { in lookupTarget()
|
/frameworks/base/graphics/java/android/graphics/ |
D | YuvImage.java | 123 public boolean compressToJpeg(Rect rectangle, int quality, OutputStream stream) { in compressToJpeg() argument 130 if (quality < 0 || quality > 100) { in compressToJpeg() 142 rectangle.height(), offsets, mStrides, quality, stream, in compressToJpeg() 239 int quality, OutputStream stream, byte[] tempStorage); in nativeCompressToJpeg() argument
|
/frameworks/av/include/media/ |
D | AudioResampler.h | 55 int32_t sampleRate, src_quality quality=DEFAULT_QUALITY); 96 AudioResampler(int inChannelCount, int32_t sampleRate, src_quality quality); 160 static bool qualityIsSupported(src_quality quality); 167 static uint32_t qualityMHz(src_quality quality);
|
D | MediaProfiles.h | 135 camcorder_quality quality) const; 141 bool hasCamcorderProfile(int cameraId, camcorder_quality quality) const; 363 int getCamcorderProfileIndex(int cameraId, camcorder_quality quality) const; 406 static CamcorderProfile *createDefaultCamcorderQcifProfile(camcorder_quality quality); 407 static CamcorderProfile *createDefaultCamcorderCifProfile(camcorder_quality quality); 415 static CamcorderProfile *createDefaultCamcorderTimeLapseQcifProfile(camcorder_quality quality); 416 static CamcorderProfile *createDefaultCamcorderTimeLapse480pProfile(camcorder_quality quality);
|
/frameworks/av/media/libaudioprocessing/include/media/ |
D | AudioResampler.h | 55 int32_t sampleRate, src_quality quality=DEFAULT_QUALITY); 96 AudioResampler(int inChannelCount, int32_t sampleRate, src_quality quality); 160 static bool qualityIsSupported(src_quality quality); 167 static uint32_t qualityMHz(src_quality quality);
|
/frameworks/av/media/libmedia/include/media/ |
D | MediaProfiles.h | 135 camcorder_quality quality) const; 141 bool hasCamcorderProfile(int cameraId, camcorder_quality quality) const; 363 int getCamcorderProfileIndex(int cameraId, camcorder_quality quality) const; 406 static CamcorderProfile *createDefaultCamcorderQcifProfile(camcorder_quality quality); 407 static CamcorderProfile *createDefaultCamcorderCifProfile(camcorder_quality quality); 415 static CamcorderProfile *createDefaultCamcorderTimeLapseQcifProfile(camcorder_quality quality); 416 static CamcorderProfile *createDefaultCamcorderTimeLapse480pProfile(camcorder_quality quality);
|
/frameworks/av/services/camera/libcameraservice/tests/ |
D | NV12Compressor.h | 42 bool compress(const unsigned char* data, int width, int height, int quality); 43 bool compressWithExifOrientation(const unsigned char* data, int width, int height, int quality, 128 bool configureCompressor(int width, int height, int quality);
|
D | NV12Compressor.cpp | 41 bool NV12Compressor::compress(const unsigned char* data, int width, int height, int quality) { in compress() argument 42 if (!configureCompressor(width, height, quality)) { in compress() 52 int quality, android::camera3::ExifOrientation exifValue) { in compressWithExifOrientation() argument 71 if (!configureCompressor(width, height, quality)) { in compressWithExifOrientation() 82 bool NV12Compressor::configureCompressor(int width, int height, int quality) { in configureCompressor() argument 102 jpeg_set_quality(&mCompressInfo, quality, TRUE); in configureCompressor()
|
/frameworks/base/telecomm/java/android/telecom/ |
D | VideoProfile.java | 142 public VideoProfile(@VideoState int videoState, @VideoQuality int quality) { in VideoProfile() argument 144 mQuality = quality; in VideoProfile() 184 int quality = source.readInt(); 187 return new VideoProfile(state, quality);
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyCacheImpl.java | 76 public void setPasswordQuality(int userHandle, int quality) { in setPasswordQuality() argument 78 mPasswordQuality.put(userHandle, quality); in setPasswordQuality()
|
/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
D | mime_io.cpp | 533 uint8 quality, in mime_unsorting() argument 680 if (quality) in mime_unsorting() 691 if (quality) in mime_unsorting()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | LockPatternUtils.java | 288 public int getMaximumPasswordLength(int quality) { in getMaximumPasswordLength() argument 289 return getDevicePolicyManager().getPasswordMaximumLength(quality); in getMaximumPasswordLength() 654 int quality = getKeyguardStoredPasswordQuality(userId); in getActivePasswordQuality() local 656 if (isLockPasswordEnabled(quality, userId)) { in getActivePasswordQuality() 658 return quality; in getActivePasswordQuality() 661 if (isLockPatternEnabled(quality, userId)) { in getActivePasswordQuality() 663 return quality; in getActivePasswordQuality() 977 final int passwordQuality = PasswordMetrics.computeForPassword(password).quality; in saveLockPassword() 1013 private void updateEncryptionPasswordIfNeeded(byte[] password, int quality, int userHandle) { in updateEncryptionPasswordIfNeeded() argument 1020 boolean numeric = quality == PASSWORD_QUALITY_NUMERIC; in updateEncryptionPasswordIfNeeded() [all …]
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | CameraSettings.java | 306 public void setPhotoJpegCompressionQuality(int quality) { in setPhotoJpegCompressionQuality() argument 307 if (quality < MIN_JPEG_COMPRESSION_QUALITY || quality > MAX_JPEG_COMPRESSION_QUALITY) { in setPhotoJpegCompressionQuality() 312 mJpegCompressQuality = (byte) quality; in setPhotoJpegCompressionQuality()
|
/frameworks/base/telephony/java/android/telephony/ims/compat/stub/ |
D | ImsConfigImplBase.java | 164 public void setVideoQuality(int quality, ImsConfigListener listener) throws RemoteException { in setVideoQuality() argument 352 public void setVideoQuality(int quality, ImsConfigListener listener) in setVideoQuality() argument 354 getImsConfigImpl().setVideoQuality(quality, listener); in setVideoQuality()
|