Home
last modified time | relevance | path

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

/frameworks/base/location/java/android/location/
DLocationProvider.java75 public boolean meetsCriteria(Criteria criteria) { in meetsCriteria() argument
76 return propertiesMeetCriteria(mName, mProperties, criteria); in meetsCriteria()
83 Criteria criteria) { in propertiesMeetCriteria() argument
94 if (criteria.getAccuracy() != Criteria.NO_REQUIREMENT && in propertiesMeetCriteria()
95 criteria.getAccuracy() < properties.mAccuracy) { in propertiesMeetCriteria()
98 if (criteria.getPowerRequirement() != Criteria.NO_REQUIREMENT && in propertiesMeetCriteria()
99 criteria.getPowerRequirement() < properties.mPowerRequirement) { in propertiesMeetCriteria()
102 if (criteria.isAltitudeRequired() && !properties.mSupportsAltitude) { in propertiesMeetCriteria()
105 if (criteria.isSpeedRequired() && !properties.mSupportsSpeed) { in propertiesMeetCriteria()
108 if (criteria.isBearingRequired() && !properties.mSupportsBearing) { in propertiesMeetCriteria()
[all …]
DCriteria.java132 public Criteria(Criteria criteria) { in Criteria() argument
133 mHorizontalAccuracy = criteria.mHorizontalAccuracy; in Criteria()
134 mVerticalAccuracy = criteria.mVerticalAccuracy; in Criteria()
135 mSpeedAccuracy = criteria.mSpeedAccuracy; in Criteria()
136 mBearingAccuracy = criteria.mBearingAccuracy; in Criteria()
137 mPowerRequirement = criteria.mPowerRequirement; in Criteria()
138 mAltitudeRequired = criteria.mAltitudeRequired; in Criteria()
139 mBearingRequired = criteria.mBearingRequired; in Criteria()
140 mSpeedRequired = criteria.mSpeedRequired; in Criteria()
141 mCostAllowed = criteria.mCostAllowed; in Criteria()
DLocationManager.java798 @NonNull Criteria criteria, in requestSingleUpdate()
801 Preconditions.checkArgument(criteria != null, "invalid null criteria"); in requestSingleUpdate()
805 criteria, 0, 0, true); in requestSingleUpdate()
855 public void requestSingleUpdate(@NonNull Criteria criteria, in requestSingleUpdate() argument
857 Preconditions.checkArgument(criteria != null, "invalid null criteria"); in requestSingleUpdate()
860 criteria, 0, 0, true); in requestSingleUpdate()
1012 @NonNull Criteria criteria, @NonNull LocationListener listener, in requestLocationUpdates() argument
1014 Preconditions.checkArgument(criteria != null, "invalid null criteria"); in requestLocationUpdates()
1018 criteria, minTimeMs, minDistanceM, false); in requestLocationUpdates()
1044 @NonNull Criteria criteria, in requestLocationUpdates() argument
[all …]
DLocationRequest.java222 @NonNull Criteria criteria, long minTime, float minDistance, boolean singleShot) { in createFromDeprecatedCriteria()
223 Preconditions.checkArgument(criteria != null, "invalid null criteria"); in createFromDeprecatedCriteria()
229 switch (criteria.getAccuracy()) { in createFromDeprecatedCriteria()
237 if (criteria.getPowerRequirement() == Criteria.POWER_HIGH) { in createFromDeprecatedCriteria()
DILocationManager.aidl100 List<String> getProviders(in Criteria criteria, boolean enabledOnly); in getProviders() argument
101 String getBestProvider(in Criteria criteria, boolean enabledOnly); in getBestProvider() argument
/frameworks/ml/nn/tools/test_generator/test_harness/
DTestHarness.cpp197 const AccuracyCriteria& criteria) { in checkResults() argument
209 expectNear<float>(operand, result, criteria.float32, criteria.allowInvalidFpValues); in checkResults()
212 expectNear<_Float16>(operand, result, criteria.float16, in checkResults()
213 criteria.allowInvalidFpValues); in checkResults()
217 expectNear<int32_t>(operand, result, criteria.int32); in checkResults()
220 expectNear<uint8_t>(operand, result, criteria.quant8Asymm); in checkResults()
223 expectNear<int8_t>(operand, result, criteria.quant8Symm); in checkResults()
226 expectNear<uint16_t>(operand, result, criteria.quant16Asymm); in checkResults()
229 expectNear<int16_t>(operand, result, criteria.quant16Symm); in checkResults()
232 expectBooleanNearlyEqual(operand, result, criteria.bool8AllowedErrorRatio); in checkResults()
[all …]
/frameworks/base/core/java/android/companion/
DBluetoothDeviceFilterUtils.java114 boolean result, BluetoothDevice device, Object criteria) { in debugLogMatchResult() argument
115 Log.i(LOG_TAG, getDeviceDisplayNameInternal(device) + (result ? " ~ " : " !~ ") + criteria); in debugLogMatchResult()
119 boolean result, ScanResult device, Object criteria) { in debugLogMatchResult() argument
120 Log.i(LOG_TAG, getDeviceDisplayNameInternal(device) + (result ? " ~ " : " !~ ") + criteria); in debugLogMatchResult()
/frameworks/base/media/java/android/media/audiopolicy/
DAudioPolicyConfig.java104 final ArrayList<AudioMixMatchCriterion> criteria = mix.getRule().getCriteria(); in writeToParcel() local
105 dest.writeInt(criteria.size()); in writeToParcel()
106 for (AudioMixMatchCriterion criterion : criteria) { in writeToParcel()
179 final ArrayList<AudioMixMatchCriterion> criteria = mix.getRule().getCriteria(); in toLogFriendlyString() local
180 for (AudioMixMatchCriterion criterion : criteria) { in toLogFriendlyString()
DAudioMixingRule.java49 private AudioMixingRule(int mixType, ArrayList<AudioMixMatchCriterion> criteria, in AudioMixingRule() argument
52 mCriteria = criteria; in AudioMixingRule()
/frameworks/av/media/libaudioclient/include/media/
DAudioPolicy.h91 AudioMix(Vector<AudioMixMatchCriterion> criteria, uint32_t mixType, audio_config_t format, in AudioMix() argument
93 mCriteria(criteria), mMixType(mixType), mFormat(format), in AudioMix()
/frameworks/av/services/audiopolicy/engineconfigurable/tools/
DbuildPolicyCriterionTypes.py167 for criteria in address_criteria:
168 values = ','.join(address_criteria[criteria])
169 logging.info("{}: <{}>".format(criteria, values))
DdomainGeneratorPolicy.py56 </criteria>' \
225 all_criteria = parseCriteriaAndCriterionTypes(args.criteria, args.criteriontypes)
DAndroid.bp93 "--criteria $(location :audio_policy_engine_criteria) " +
/frameworks/av/services/audiopolicy/engine/config/include/
DEngineConfig.h97 Criteria criteria; member
/frameworks/av/services/audiopolicy/engine/config/src/
DEngineConfig.cpp378 Collection &criteria) in deserialize() argument
401 criteria.push_back({name, typeName, defaultValue}); in deserialize()
666 doc, cur, config->criteria, nbSkippedElements); in parse()
/frameworks/base/core/proto/android/content/
Dpackage_item_info.proto105 // defined its backup include/exclude criteria. The data in this field is
/frameworks/av/services/audiopolicy/engineconfigurable/src/
DEngine.cpp205 loadCriteria(result.parsedConfig->criteria, result.parsedConfig->criterionTypes); in loadAudioPolicyEngineConfig()
/frameworks/ml/nn/tools/test_generator/test_harness/include/
DTestHarness.h506 const AccuracyCriteria& criteria);
/frameworks/base/services/core/java/com/android/server/location/
DLocationManagerService.java1441 public List<String> getProviders(Criteria criteria, boolean enabledOnly) { in getProviders() argument
1456 if (criteria != null && !LocationProvider.propertiesMeetCriteria(name, in getProviders()
1457 manager.getProperties(), criteria)) { in getProviders()
1467 public String getBestProvider(Criteria criteria, boolean enabledOnly) { in getBestProvider() argument
1470 providers = getProviders(criteria, enabledOnly); in getBestProvider()
/frameworks/ml/nn/runtime/test/fuzzing/
DTestRandomGraph.cpp456 #define TEST_SINGLE_OPERATION(operation, halVersion, criteria) \ argument
461 mCriteria = (criteria); \
/frameworks/base/services/core/java/com/android/server/pm/
DInstantAppRegistry.java572 @NonNull Predicate<UninstalledInstantAppState> criteria, @UserIdInt int userId) { in removeUninstalledInstantAppStateLPw()
584 if (!criteria.test(uninstalledAppState)) { in removeUninstalledInstantAppStateLPw()
/frameworks/native/opengl/tests/angeles/
Dlicense-LGPL.txt77 entire combination fits its criteria of freedom. The Lesser General
78 Public License permits more lax criteria for linking other code with
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...