Home
last modified time | relevance | path

Searched refs:quality (Results 1 – 25 of 112) sorted by relevance

12345

/frameworks/base/media/java/android/media/
DCamcorderProfile.java287 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 …]
DCameraProfile.java57 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/
DPasswordMetrics.java57 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/
DAudioResampler.cpp86 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/
DLocationRequest.java201 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/opt/telephony/src/java/com/android/internal/telephony/nitz/
DTimeZoneSuggesterImpl.java153 int quality = lookupResult.isOnlyMatch() in findTimeZoneForTestNetwork() local
156 suggestionBuilder.setQuality(quality); in findTimeZoneForTestNetwork()
192 int quality = lookupResult.isOnlyMatch() in findTimeZoneFromCountryAndNitz() local
195 suggestionBuilder.setQuality(quality); in findTimeZoneFromCountryAndNitz()
214 if (countryResult.quality == CountryResult.QUALITY_SINGLE_ZONE in findTimeZoneFromCountryAndNitz()
215 || countryResult.quality == CountryResult.QUALITY_DEFAULT_BOOSTED) { in findTimeZoneFromCountryAndNitz()
258 int quality; in findTimeZoneFromNetworkCountryCode() local
259 if (lookupResult.quality == CountryResult.QUALITY_SINGLE_ZONE in findTimeZoneFromNetworkCountryCode()
260 || lookupResult.quality == CountryResult.QUALITY_DEFAULT_BOOSTED) { in findTimeZoneFromNetworkCountryCode()
261 quality = TelephonyTimeZoneSuggestion.QUALITY_SINGLE_ZONE; in findTimeZoneFromNetworkCountryCode()
[all …]
DTimeZoneLookupHelper.java70 public final int quality; field in TimeZoneLookupHelper.CountryResult
78 public CountryResult(@NonNull String zoneId, @Quality int quality, String debugInfo) { in CountryResult() argument
80 this.quality = quality; in CountryResult()
93 return quality == that.quality in equals()
99 return Objects.hash(zoneId, quality); in hashCode()
106 + ", quality=" + quality in toString()
/frameworks/base/media/jni/
Dandroid_media_MediaProfiles.cpp166 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/
DPasswordMetricsTest.java56 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/base/core/java/android/app/timezonedetector/
DTelephonyTimeZoneSuggestion.java345 public Builder setQuality(@Quality int quality) { in setQuality() argument
346 mQuality = quality; in setQuality()
369 int quality = mQuality; in validate() local
372 if (quality != QUALITY_NA || matchType != MATCH_TYPE_NA) { in validate()
374 + " quality=" + quality + ", matchType=" + matchType); in validate()
377 boolean qualityValid = (quality == QUALITY_SINGLE_ZONE in validate()
378 || quality == QUALITY_MULTIPLE_ZONES_WITH_SAME_OFFSET in validate()
379 || quality == QUALITY_MULTIPLE_ZONES_WITH_DIFFERENT_OFFSETS); in validate()
386 + " quality=" + quality + ", matchType=" + matchType); in validate()
404 Integer quality = null; in parseCommandLineArg() local
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCallAttributesTest.java35 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()
DCallQualityTest.java39 CallQuality quality = new CallQuality( in testParcelUnparcelCallQuality() local
53 quality.writeToParcel(parcel, 0); in testParcelUnparcelCallQuality()
58 assertEquals("CallQuality is not equal after parceled/unparceled", quality, unparceledData); in testParcelUnparcelCallQuality()
/frameworks/av/media/libmedia/
DMediaProfiles.cpp388 const int quality = findTagForName(sCamcorderQualityNameMap, nProfileMappings, atts[1]); in createCamcorderProfile() local
389 CHECK(quality != -1); in createCamcorderProfile()
401 profile->mQuality = static_cast<camcorder_quality>(quality); in createCamcorderProfile()
422 int quality = atoi(atts[1]); in addImageEncodingQualityLevel() local
423 ALOGV("%s: cameraId=%d, quality=%d", __func__, cameraId, quality); in addImageEncodingQualityLevel()
432 levels->mLevels.add(quality); in addImageEncodingQualityLevel()
488 static bool isCamcorderProfile(camcorder_quality quality) { in isCamcorderProfile() argument
489 return quality >= CAMCORDER_QUALITY_LIST_START && in isCamcorderProfile()
490 quality <= CAMCORDER_QUALITY_LIST_END; in isCamcorderProfile()
493 static bool isTimelapseProfile(camcorder_quality quality) { in isTimelapseProfile() argument
[all …]
/frameworks/av/media/libaudioprocessing/tests/
Dtest-resampler.cpp113 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 …]
Dresampler_tests.cpp91 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/
DTargetRegistry.cpp39 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/
DYuvImage.java123 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/media/libaudioprocessing/tests/fuzzer/
Dlibaudioprocessing_resampler_fuzzer.cpp96 audio_format_t chooseFormat(AudioResampler::src_quality quality, in chooseFormat() argument
98 switch (quality) { in chooseFormat()
132 AudioResampler::src_quality quality = qualities[data[0] % 8]; in LLVMFuzzerTestOneInput() local
133 audio_format_t format = chooseFormat(quality, data[1]); in LLVMFuzzerTestOneInput()
150 input_channels > (quality < AudioResampler::DYN_LOW_QUALITY ? 2 : 8)) { in LLVMFuzzerTestOneInput()
170 AudioResampler::create(format, input_channels, output_freq, quality)); in LLVMFuzzerTestOneInput()
/frameworks/av/include/media/
DAudioResampler.h55 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/libaudioprocessing/include/media/
DAudioResampler.h55 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/
DMediaProfiles.h118 camcorder_quality quality) const;
124 bool hasCamcorderProfile(int cameraId, camcorder_quality quality) const;
346 int getCamcorderProfileIndex(int cameraId, camcorder_quality quality) const;
389 static CamcorderProfile *createDefaultCamcorderQcifProfile(camcorder_quality quality);
390 static CamcorderProfile *createDefaultCamcorderCifProfile(camcorder_quality quality);
398 static CamcorderProfile *createDefaultCamcorderTimeLapseQcifProfile(camcorder_quality quality);
399 static CamcorderProfile *createDefaultCamcorderTimeLapse480pProfile(camcorder_quality quality);
/frameworks/av/services/camera/libcameraservice/tests/
DNV12Compressor.h42 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);
DNV12Compressor.cpp41 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/av/media/libstagefright/codecs/amrwb/fuzzer/
DREADME.md12 1. Quality (parameter name: `quality`)
17 | `quality` | 0. `Bad Quality` 1. `Good quality` | Bit 0 (LSB) of 1st byte of data. |
25 which is based on `mode` and `quality` selected.
/frameworks/base/telecomm/java/android/telecom/
DVideoProfile.java141 public VideoProfile(@VideoState int videoState, @VideoQuality int quality) { in VideoProfile() argument
143 mQuality = quality; in VideoProfile()
183 int quality = source.readInt();
186 return new VideoProfile(state, quality);

12345