Home
last modified time | relevance | path

Searched refs:criteria (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/base/location/java/android/location/
DLocationProvider.java70 public boolean meetsCriteria(Criteria criteria) { in meetsCriteria() argument
71 return propertiesMeetCriteria(mName, mProperties, criteria); in meetsCriteria()
78 Criteria criteria) { in propertiesMeetCriteria() argument
89 if (criteria.getAccuracy() != Criteria.NO_REQUIREMENT && in propertiesMeetCriteria()
90 criteria.getAccuracy() < properties.getAccuracy()) { in propertiesMeetCriteria()
93 if (criteria.getPowerRequirement() != Criteria.NO_REQUIREMENT && in propertiesMeetCriteria()
94 criteria.getPowerRequirement() < properties.getPowerUsage()) { in propertiesMeetCriteria()
97 if (criteria.isAltitudeRequired() && !properties.hasAltitudeSupport()) { in propertiesMeetCriteria()
100 if (criteria.isSpeedRequired() && !properties.hasSpeedSupport()) { in propertiesMeetCriteria()
103 if (criteria.isBearingRequired() && !properties.hasBearingSupport()) { in propertiesMeetCriteria()
[all …]
DCriteria.java137 public Criteria(Criteria criteria) { in Criteria() argument
138 mHorizontalAccuracy = criteria.mHorizontalAccuracy; in Criteria()
139 mVerticalAccuracy = criteria.mVerticalAccuracy; in Criteria()
140 mSpeedAccuracy = criteria.mSpeedAccuracy; in Criteria()
141 mBearingAccuracy = criteria.mBearingAccuracy; in Criteria()
142 mPowerRequirement = criteria.mPowerRequirement; in Criteria()
143 mAltitudeRequired = criteria.mAltitudeRequired; in Criteria()
144 mBearingRequired = criteria.mBearingRequired; in Criteria()
145 mSpeedRequired = criteria.mSpeedRequired; in Criteria()
146 mCostAllowed = criteria.mCostAllowed; in Criteria()
DLocationManager.java1106 @NonNull Criteria criteria, in requestSingleUpdate()
1109 Preconditions.checkArgument(criteria != null, "invalid null criteria"); in requestSingleUpdate()
1115 .setQuality(criteria) in requestSingleUpdate()
1174 public void requestSingleUpdate(@NonNull Criteria criteria, in requestSingleUpdate() argument
1176 Preconditions.checkArgument(criteria != null, "invalid null criteria"); in requestSingleUpdate()
1181 .setQuality(criteria) in requestSingleUpdate()
1309 @NonNull Criteria criteria, @NonNull LocationListener listener, in requestLocationUpdates() argument
1312 requestLocationUpdates(minTimeMs, minDistanceM, criteria, new HandlerExecutor(handler), in requestLocationUpdates()
1346 @NonNull Criteria criteria, in requestLocationUpdates() argument
1349 Preconditions.checkArgument(criteria != null, "invalid null criteria"); in requestLocationUpdates()
[all …]
DLocationRequest.java258 public static LocationRequest createFromDeprecatedCriteria(@NonNull Criteria criteria, in createFromDeprecatedCriteria() argument
260 Preconditions.checkArgument(criteria != null, "invalid null criteria"); in createFromDeprecatedCriteria()
272 .setQuality(criteria) in createFromDeprecatedCriteria()
1010 public @NonNull Builder setQuality(@NonNull Criteria criteria) { in setQuality() argument
1011 switch (criteria.getAccuracy()) { in setQuality()
1019 if (criteria.getPowerRequirement() == Criteria.POWER_HIGH) { in setQuality()
DILocationManager.aidl112 List<String> getProviders(in Criteria criteria, boolean enabledOnly); in getProviders() argument
113 String getBestProvider(in Criteria criteria, boolean enabledOnly); in getBestProvider() argument
/frameworks/base/core/java/android/companion/
DBluetoothDeviceFilterUtils.java125 boolean result, BluetoothDevice device, Object criteria) { in debugLogMatchResult() argument
126 Log.i(LOG_TAG, getDeviceDisplayNameInternal(device) + (result ? " ~ " : " !~ ") + criteria); in debugLogMatchResult()
130 boolean result, ScanResult device, Object criteria) { in debugLogMatchResult() argument
131 Log.i(LOG_TAG, getDeviceDisplayNameInternal(device) + (result ? " ~ " : " !~ ") + criteria); in debugLogMatchResult()
/frameworks/av/media/libaudioclient/include/media/
DAudioPolicy.h99 AudioMix(const std::vector<AudioMixMatchCriterion> &criteria, uint32_t mixType, in AudioMix() argument
102 mCriteria(criteria), mMixType(mixType), mFormat(format), in AudioMix()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bluetooth/qsdialog/
DBluetoothTileDialogLogger.kt121 fun logLaunchSettingsCriteriaMatched(criteria: String, deviceItem: DeviceItem) { in logLaunchSettingsCriteriaMatched()
126 str1 = criteria in logLaunchSettingsCriteriaMatched()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPolicyMix.cpp76 bool areMixCriteriaMatched(const std::vector<AudioMixMatchCriterion>& criteria, in areMixCriteriaMatched() argument
84 if (std::any_of(criteria.begin(), criteria.end(), isMatchingExcludeCriterion)) { in areMixCriteriaMatched()
90 for (const auto& criterion : criteria) { in areMixCriteriaMatched()
104 bool areMixCriteriaConsistent(const std::vector<AudioMixMatchCriterion>& criteria) { in areMixCriteriaConsistent() argument
106 for (const AudioMixMatchCriterion& c : criteria) { in areMixCriteriaConsistent()
118 return std::none_of(criteria.begin(), criteria.end(), isConflictingCriterion); in areMixCriteriaConsistent()
/frameworks/av/media/libaudioclient/aidl/android/media/
DAudioMix.aidl30 AudioMixMatchCriterion[] criteria;
/frameworks/av/media/libaudioclient/tests/
Daudioclient_serialization_tests.cpp198 std::vector<AudioMixMatchCriterion> criteria; in TEST_F() local
199 criteria.reserve(16); in TEST_F()
204 criteria.push_back(ammc); in TEST_F()
212 AudioMix am{criteria, in TEST_F()
Daudiorouting_tests.cpp148 std::vector<AudioMixMatchCriterion> criteria{criterion}; in SetUp() local
153 AudioMix mix(criteria, mixType, config, mixFlag, String8{mAddress.c_str()}, 0); in SetUp()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/volume/
DVolumeSlidersModule.kt41 criteria: AlwaysAvailableCriteria
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/mediaoutput/
DMediaOutputModule.kt42 criteria: AlwaysAvailableCriteria
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/anc/
DAncModule.kt37 criteria: AncAvailabilityCriteria
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/spatialaudio/
DSpatialAudioModule.kt37 criteria: SpatialAudioAvailabilityCriteria
/frameworks/av/services/audiopolicy/engineconfigurable/tools/
DbuildPolicyCriterionTypes.py180 for criteria in address_criteria:
181 values = ','.join(address_criteria[criteria])
182 logging.info("{}: <{}>".format(criteria, values))
DdomainGeneratorPolicy.py56 </criteria>' \
225 all_criteria = parseCriteriaAndCriterionTypes(args.criteria, args.criteriontypes)
DAndroid.bp91 "--criteria $(location :audio_policy_engine_criteria) " +
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/captioning/
DCaptioningModule.kt39 criteria: CaptioningAvailabilityCriteria in bindComponentAvailabilityCriteria()
/frameworks/base/media/java/android/media/audiopolicy/
DAudioPolicyConfig.java134 final ArrayList<AudioMixMatchCriterion> criteria = mix.getRule().getCriteria(); in toLogFriendlyString() local
135 for (AudioMixMatchCriterion criterion : criteria) { in toLogFriendlyString()
DAudioMixingRule.java58 private AudioMixingRule(int mixType, Collection<AudioMixMatchCriterion> criteria, in AudioMixingRule() argument
61 mCriteria = new ArrayList<>(criteria); in AudioMixingRule()
/frameworks/av/services/audiopolicy/engine/config/include/
DEngineConfig.h103 Criteria criteria; member
/frameworks/av/media/libaudioclient/
DPolicyAidlConversion.cpp230 RETURN_IF_ERROR(convertRange(aidl.criteria.begin(), aidl.criteria.end(), in aidl2legacy_AudioMix()
253 aidl.criteria = VALUE_OR_RETURN( in legacy2aidl_AudioMix()
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp2254 for (const auto &criteria : nAudioMix.mCriteria) { in nativeAudioMixToJavaAudioMixingRule() local
2258 switch (criteria.mRule) { in nativeAudioMixToJavaAudioMixingRule()
2260 jValueInteger = env->NewObject(gIntegerClass, gIntegerCstor, criteria.mValue.mUid); in nativeAudioMixToJavaAudioMixingRule()
2263 jValueInteger, criteria.mRule); in nativeAudioMixToJavaAudioMixingRule()
2267 env->NewObject(gIntegerClass, gIntegerCstor, criteria.mValue.mUserId); in nativeAudioMixToJavaAudioMixingRule()
2270 jValueInteger, criteria.mRule); in nativeAudioMixToJavaAudioMixingRule()
2274 criteria.mValue.mAudioSessionId); in nativeAudioMixToJavaAudioMixingRule()
2277 jValueInteger, criteria.mRule); in nativeAudioMixToJavaAudioMixingRule()
2282 criteria.mValue.mUsage); in nativeAudioMixToJavaAudioMixingRule()
2285 jMixMatchCriterion, criteria.mRule); in nativeAudioMixToJavaAudioMixingRule()
[all …]

12