Home
last modified time | relevance | path

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

/frameworks/base/location/java/android/location/
DLocationProvider.java93 public boolean meetsCriteria(Criteria criteria) { in meetsCriteria() argument
94 return propertiesMeetCriteria(mName, mProperties, criteria); in meetsCriteria()
101 Criteria criteria) { in propertiesMeetCriteria() argument
112 if (criteria.getAccuracy() != Criteria.NO_REQUIREMENT && in propertiesMeetCriteria()
113 criteria.getAccuracy() < properties.mAccuracy) { in propertiesMeetCriteria()
116 if (criteria.getPowerRequirement() != Criteria.NO_REQUIREMENT && in propertiesMeetCriteria()
117 criteria.getPowerRequirement() < properties.mPowerRequirement) { in propertiesMeetCriteria()
120 if (criteria.isAltitudeRequired() && !properties.mSupportsAltitude) { in propertiesMeetCriteria()
123 if (criteria.isSpeedRequired() && !properties.mSupportsSpeed) { in propertiesMeetCriteria()
126 if (criteria.isBearingRequired() && !properties.mSupportsBearing) { in propertiesMeetCriteria()
[all …]
DCriteria.java105 public Criteria(Criteria criteria) { in Criteria() argument
106 mHorizontalAccuracy = criteria.mHorizontalAccuracy; in Criteria()
107 mVerticalAccuracy = criteria.mVerticalAccuracy; in Criteria()
108 mSpeedAccuracy = criteria.mSpeedAccuracy; in Criteria()
109 mBearingAccuracy = criteria.mBearingAccuracy; in Criteria()
110 mPowerRequirement = criteria.mPowerRequirement; in Criteria()
111 mAltitudeRequired = criteria.mAltitudeRequired; in Criteria()
112 mBearingRequired = criteria.mBearingRequired; in Criteria()
113 mSpeedRequired = criteria.mSpeedRequired; in Criteria()
114 mCostAllowed = criteria.mCostAllowed; in Criteria()
DLocationManager.java490 public @NonNull List<String> getProviders(@NonNull Criteria criteria, boolean enabledOnly) { in getProviders() argument
491 checkCriteria(criteria); in getProviders()
493 return mService.getProviders(criteria, enabledOnly); in getProviders()
521 public @Nullable String getBestProvider(@NonNull Criteria criteria, boolean enabledOnly) { in getBestProvider() argument
522 checkCriteria(criteria); in getBestProvider()
524 return mService.getBestProvider(criteria, enabledOnly); in getBestProvider()
616 public void requestLocationUpdates(long minTime, float minDistance, @NonNull Criteria criteria, in requestLocationUpdates() argument
618 checkCriteria(criteria); in requestLocationUpdates()
622 criteria, minTime, minDistance, false); in requestLocationUpdates()
751 public void requestLocationUpdates(long minTime, float minDistance, @NonNull Criteria criteria, in requestLocationUpdates() argument
[all …]
DILocationManager.aidl91 List<String> getProviders(in Criteria criteria, boolean enabledOnly); in getProviders() argument
92 String getBestProvider(in Criteria criteria, boolean enabledOnly); in getBestProvider() argument
DLocationRequest.java224 @NonNull Criteria criteria, long minTime, float minDistance, boolean singleShot) { in createFromDeprecatedCriteria()
229 switch (criteria.getAccuracy()) { in createFromDeprecatedCriteria()
237 if (criteria.getPowerRequirement() == Criteria.POWER_HIGH) { in createFromDeprecatedCriteria()
/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/media/java/android/media/audiopolicy/
DAudioPolicyConfig.java102 final ArrayList<AudioMixMatchCriterion> criteria = mix.getRule().getCriteria(); in writeToParcel() local
103 dest.writeInt(criteria.size()); in writeToParcel()
104 for (AudioMixMatchCriterion criterion : criteria) { in writeToParcel()
173 final ArrayList<AudioMixMatchCriterion> criteria = mix.getRule().getCriteria(); in toLogFriendlyString() local
174 for (AudioMixMatchCriterion criterion : criteria) { in toLogFriendlyString()
DAudioMixingRule.java49 private AudioMixingRule(int mixType, ArrayList<AudioMixMatchCriterion> criteria, in AudioMixingRule() argument
51 mCriteria = criteria; in AudioMixingRule()
/frameworks/base/core/java/android/companion/
DBluetoothDeviceFilterUtils.java121 boolean result, BluetoothDevice device, Object criteria) { in debugLogMatchResult() argument
122 Log.i(LOG_TAG, getDeviceDisplayNameInternal(device) + (result ? " ~ " : " !~ ") + criteria); in debugLogMatchResult()
126 boolean result, ScanResult device, Object criteria) { in debugLogMatchResult() argument
127 Log.i(LOG_TAG, getDeviceDisplayNameInternal(device) + (result ? " ~ " : " !~ ") + criteria); in debugLogMatchResult()
/frameworks/av/media/libaudioclient/include/media/
DAudioPolicy.h87 AudioMix(Vector<AudioMixMatchCriterion> criteria, uint32_t mixType, audio_config_t format, in AudioMix() argument
89 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.h505 const AccuracyCriteria& criteria);
/frameworks/ml/nn/runtime/test/fuzzing/
DTestRandomGraph.cpp464 #define TEST_SINGLE_OPERATION(operation, halVersion, criteria) \ argument
469 mCriteria = (criteria); \
/frameworks/base/services/core/java/com/android/server/
DLocationManagerService.java2025 public List<String> getProviders(Criteria criteria, boolean enabledOnly) { in getProviders() argument
2040 if (criteria != null in getProviders()
2042 name, provider.getPropertiesLocked(), criteria)) { in getProviders()
2059 public String getBestProvider(Criteria criteria, boolean enabledOnly) { in getBestProvider() argument
2060 List<String> providers = getProviders(criteria, enabledOnly); in getBestProvider()
/frameworks/base/services/core/java/com/android/server/pm/
DInstantAppRegistry.java569 @NonNull Predicate<UninstalledInstantAppState> criteria, @UserIdInt int userId) { in removeUninstalledInstantAppStateLPw()
581 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