Home
last modified time | relevance | path

Searched refs:valueName (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/
DPreconditions.java288 public static float checkArgumentFinite(final float value, final String valueName) { in checkArgumentFinite() argument
290 throw new IllegalArgumentException(valueName + " must not be NaN"); in checkArgumentFinite()
292 throw new IllegalArgumentException(valueName + " must not be infinite"); in checkArgumentFinite()
314 String valueName) { in checkArgumentInRange() argument
316 throw new IllegalArgumentException(valueName + " must not be NaN"); in checkArgumentInRange()
320 "%s is out of range of [%f, %f] (too low)", valueName, lower, upper)); in checkArgumentInRange()
324 "%s is out of range of [%f, %f] (too high)", valueName, lower, upper)); in checkArgumentInRange()
343 String valueName) { in checkArgumentInRange() argument
347 "%s is out of range of [%d, %d] (too low)", valueName, lower, upper)); in checkArgumentInRange()
351 "%s is out of range of [%d, %d] (too high)", valueName, lower, upper)); in checkArgumentInRange()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DPreconditions.java326 public static float checkArgumentFinite(final float value, final String valueName) { in checkArgumentFinite() argument
328 throw new IllegalArgumentException(valueName + " must not be NaN"); in checkArgumentFinite()
330 throw new IllegalArgumentException(valueName + " must not be infinite"); in checkArgumentFinite()
352 String valueName) { in checkArgumentInRange() argument
354 throw new IllegalArgumentException(valueName + " must not be NaN"); in checkArgumentInRange()
358 "%s is out of range of [%f, %f] (too low)", valueName, lower, upper)); in checkArgumentInRange()
362 "%s is out of range of [%f, %f] (too high)", valueName, lower, upper)); in checkArgumentInRange()
382 String valueName) { in checkArgumentInRange() argument
386 "%s is out of range of [%d, %d] (too low)", valueName, lower, upper)); in checkArgumentInRange()
390 "%s is out of range of [%d, %d] (too high)", valueName, lower, upper)); in checkArgumentInRange()
[all …]
DXmlUtils.java1409 final String valueName = parser.getAttributeValue(null, "name"); in readThisValueXml() local
1424 name[0] = valueName; in readThisValueXml()
1443 name[0] = valueName; in readThisValueXml()
1448 name[0] = valueName; in readThisValueXml()
1453 name[0] = valueName; in readThisValueXml()
1458 name[0] = valueName; in readThisValueXml()
1463 name[0] = valueName; in readThisValueXml()
1468 name[0] = valueName; in readThisValueXml()
1476 name[0] = valueName; in readThisValueXml()
1482 name[0] = valueName; in readThisValueXml()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointXmlUtils.java475 String[] valueName = new String[1]; in deserializeHomeSP() local
476 Object value = XmlUtil.readCurrentValue(in, valueName); in deserializeHomeSP()
477 if (valueName[0] == null) { in deserializeHomeSP()
480 switch (valueName[0]) { in deserializeHomeSP()
506 throw new XmlPullParserException("Unknown data under HomeSP: " + valueName[0]); in deserializeHomeSP()
644 String[] valueName = new String[1]; in deserializeUserCredential() local
645 Object value = XmlUtil.readCurrentValue(in, valueName); in deserializeUserCredential()
646 if (valueName[0] == null) { in deserializeUserCredential()
649 switch (valueName[0]) { in deserializeUserCredential()
673 + valueName[0]); in deserializeUserCredential()
[all …]
DPasspointConfigSharedStoreData.java143 String[] valueName = new String[1]; in deserializeShareData() local
144 Object value = XmlUtil.readCurrentValue(in, valueName); in deserializeShareData()
145 if (valueName[0] == null) { in deserializeShareData()
148 switch (valueName[0]) { in deserializeShareData()
154 + valueName[0]); in deserializeShareData()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DPreconditions.java143 final String valueName) { in checkCollectionElementsNotNull() argument
145 throw new NullPointerException(valueName + " must not be null"); in checkCollectionElementsNotNull()
152 String.format("%s[%d] must not be null", valueName, ctr)); in checkCollectionElementsNotNull()
172 final String valueName) { in checkCollectionNotEmpty() argument
174 throw new NullPointerException(valueName + " must not be null"); in checkCollectionNotEmpty()
177 throw new IllegalArgumentException(valueName + " is empty"); in checkCollectionNotEmpty()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWakeupConfigStoreData.java192 String[] valueName = new String[1]; in parseFeatureState() local
193 Object value = XmlUtil.readCurrentValue(in, valueName); in parseFeatureState()
194 if (valueName[0] == null) { in parseFeatureState()
197 switch (valueName[0]) { in parseFeatureState()
208 throw new XmlPullParserException("Unknown value found: " + valueName[0]); in parseFeatureState()
230 String[] valueName = new String[1]; in parseNetwork() local
231 Object value = XmlUtil.readCurrentValue(in, valueName); in parseNetwork()
232 if (valueName[0] == null) { in parseNetwork()
235 switch (valueName[0]) { in parseNetwork()
244 + valueName[0]); in parseNetwork()
DRandomizedMacStoreData.java64 String[] valueName = new String[1]; in deserializeData() local
65 Object value = XmlUtil.readCurrentValue(in, valueName); in deserializeData()
66 if (valueName[0] == null) { in deserializeData()
69 switch (valueName[0]) { in deserializeData()
76 + ": " + valueName[0]); in deserializeData()
DSsidSetStoreData.java98 String[] valueName = new String[1]; in deserializeData() local
99 Object value = XmlUtil.readCurrentValue(in, valueName); in deserializeData()
100 if (TextUtils.isEmpty(valueName[0])) { in deserializeData()
103 switch (valueName[0]) { in deserializeData()
109 + mTagName + ": " + valueName[0]); in deserializeData()
DDeletedEphemeralSsidsStoreData.java68 String[] valueName = new String[1]; in deserializeData() local
69 Object value = XmlUtil.readCurrentValue(in, valueName); in deserializeData()
70 if (valueName[0] == null) { in deserializeData()
73 switch (valueName[0]) { in deserializeData()
90 + ": " + valueName[0]); in deserializeData()
DNetworkRequestStoreData.java252 String[] valueName = new String[1]; in parseApprovedAccessPoint() local
253 Object value = XmlUtil.readCurrentValue(in, valueName); in parseApprovedAccessPoint()
254 if (valueName[0] == null) { in parseApprovedAccessPoint()
257 switch (valueName[0]) { in parseApprovedAccessPoint()
269 "Unknown value name found: " + valueName[0]); in parseApprovedAccessPoint()
DWifiBackupDataV1Parser.java281 String[] valueName = new String[1]; in parseWifiConfigurationFromXmlInternal() local
282 Object value = XmlUtil.readCurrentValue(in, valueName); in parseWifiConfigurationFromXmlInternal()
283 String tagName = valueName[0]; in parseWifiConfigurationFromXmlInternal()
352 "Unknown value name found: " + valueName[0]); in parseWifiConfigurationFromXmlInternal()
430 String[] valueName = new String[1]; in parseIpConfigurationFromXml() local
431 Object value = XmlUtil.readCurrentValue(in, valueName); in parseIpConfigurationFromXml()
432 String tagName = valueName[0]; in parseIpConfigurationFromXml()
482 "Unknown value name found: " + valueName[0]); in parseIpConfigurationFromXml()
DNetworkSuggestionStoreData.java313 String[] valueName = new String[1]; in parseNetworkSuggestion() local
314 Object value = XmlUtil.readCurrentValue(in, valueName); in parseNetworkSuggestion()
315 switch (valueName[0]) { in parseNetworkSuggestion()
330 "Unknown value name found: " + valueName[0]); in parseNetworkSuggestion()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java211 public static Object readCurrentValue(XmlPullParser in, String[] valueName) in readCurrentValue() argument
213 Object value = XmlUtils.readValueXml(in, valueName); in readCurrentValue()
234 String[] valueName = new String[1]; in readNextValueWithName() local
236 Object value = readCurrentValue(in, valueName); in readNextValueWithName()
237 if (valueName[0].equals(expectedName)) { in readNextValueWithName()
241 "Value not found. Expected: " + expectedName + ", but got: " + valueName[0]); in readNextValueWithName()
568 String[] valueName = new String[1]; in parseFromXml() local
569 Object value = XmlUtil.readCurrentValue(in, valueName); in parseFromXml()
570 if (valueName[0] == null) { in parseFromXml()
573 switch (valueName[0]) { in parseFromXml()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DDumpHelpers.h45 void dumpVal(std::string& out, const char* name, const char* valueName, EnumType value) { in dumpVal() argument
46 dumpVal(out, name, valueName, static_cast<std::underlying_type_t<EnumType>>(value)); in dumpVal()
50 void dumpVal(std::string& out, const char* name, const std::string& valueName, EnumType value) { in dumpVal() argument
51 dumpVal(out, name, valueName, static_cast<std::underlying_type_t<EnumType>>(value)); in dumpVal()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DDumpHelpers.cpp58 void dumpVal(std::string& out, const char* name, const char* valueName, int value) { in dumpVal() argument
59 StringAppendF(&out, "%s=%s (%d) ", name, valueName, value); in dumpVal()
62 void dumpVal(std::string& out, const char* name, const std::string& valueName, int value) { in dumpVal() argument
63 dumpVal(out, name, valueName.c_str(), value); in dumpVal()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaMemoryTracer.h40 void dumpNumericValue(const char* dumpName, const char* valueName, const char* units,
43 void dumpStringValue(const char* dumpName, const char* valueName, const char* value) override { in dumpStringValue() argument
45 dumpNumericValue(dumpName, valueName, value, 0); in dumpStringValue()
DSkiaMemoryTracer.cpp120 void SkiaMemoryTracer::dumpNumericValue(const char* dumpName, const char* valueName, in dumpNumericValue() argument
126 mCurrentValues.insert({valueName, {units, value}}); in dumpNumericValue()
/frameworks/base/media/java/android/mtp/
DMtpObjectInfo.java519 private static int longToUint32(long value, String valueName) { in longToUint32() argument
520 Preconditions.checkArgumentInRange(value, 0, 0xffffffffL, valueName); in longToUint32()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DGraphReader.java442 private static void assertValueNotNull(String valueName, Object value) { in assertValueNotNull() argument