Home
last modified time | relevance | path

Searched refs:stringValue (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/native/libs/input/
DPropertyMap.cpp74 std::optional<std::string> stringValue = getString(key); in getInt() local
75 if (!stringValue.has_value() || stringValue->length() == 0) { in getInt()
80 int32_t value = static_cast<int32_t>(strtol(stringValue->c_str(), &end, 10)); in getInt()
83 stringValue->c_str()); in getInt()
90 std::optional<std::string> stringValue = getString(key); in getFloat() local
91 if (!stringValue.has_value() || stringValue->length() == 0) { in getFloat()
96 float value = strtof(stringValue->c_str(), &end); in getFloat()
99 stringValue->c_str()); in getFloat()
106 std::optional<std::string> stringValue = getString(key); in getDouble() local
107 if (!stringValue.has_value() || stringValue->length() == 0) { in getDouble()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DTimestampedValueTest.java53 TimestampedValue<String> stringValue = new TimestampedValue<>(1000, "Hello"); in testParceling() local
56 parcel.writeParcelable(stringValue, 0); in testParceling()
62 assertEquals(stringValue, stringValueCopy); in testParceling()
70 TimestampedValue<String> stringValue = new TimestampedValue<>(1000, "Hello"); in testParceling_valueClassOk() local
73 parcel.writeParcelable(stringValue, 0); in testParceling_valueClassOk()
79 assertEquals(stringValue, stringValueCopy); in testParceling_valueClassOk()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java309 String stringValue = value.getValue(); in getXmlBlockParser() local
310 if (RenderResources.REFERENCE_NULL.equals(stringValue)) { in getXmlBlockParser()
327 parser = ParserFactory.create(stringValue); in getXmlBlockParser()
349 String stringValue = value.getValue(); in getDrawable() local
350 if (RenderResources.REFERENCE_NULL.equals(stringValue)) { in getDrawable()
355 if (stringValue.trim().startsWith("#")) { in getDrawable()
357 int color = getColor(stringValue); in getDrawable()
361 String.format("\"%1$s\" cannot be interpreted as a color.", stringValue), in getDrawable()
375 String lowerCaseValue = stringValue.toLowerCase(); in getDrawable()
387 Bridge.getLog().error(null, "Cyclic dependency in " + stringValue, null, in getDrawable()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DExifInterfaceTest.java124 String stringValue = typedArray.getString(index); in getString() local
125 if (stringValue == null || stringValue.equals("")) { in getString()
128 return stringValue.trim(); in getString()
254 String stringValue = exifInterface.getAttribute(tag); in assertStringTag() local
255 if (stringValue != null) { in assertStringTag()
256 stringValue = stringValue.trim(); in assertStringTag()
258 stringValue = (stringValue == "") ? null : stringValue; in assertStringTag()
260 assertEquals(expectedValue, stringValue); in assertStringTag()
/frameworks/base/core/java/android/content/res/
DValidator.java84 CharSequence stringValue) { in validateResStrAttr() argument
88 mElements.peek().validateResStrAttr(index, stringValue); in validateResStrAttr()
90 validateComponentMetadata(stringValue.toString()); in validateResStrAttr()
DElement.java866 void validateResStrAttr(@StyleableRes int index, CharSequence stringValue) { in validateResStrAttr() argument
867 if (stringValue != null && stringValue.length() > getResStrMaxLen(index)) { in validateResStrAttr()
871 validateComponentName(stringValue); in validateResStrAttr()
/frameworks/av/media/module/foundation/
DAMessage.cpp103 delete item->u.stringValue; in freeItemValue()
308 item->u.stringValue = new AString(s, len < 0 ? strlen(s) : len); in BASIC_TYPE()
363 *value = *item->u.stringValue; in findString()
514 to->u.stringValue = in dup()
515 new AString(*from->u.stringValue); in dup()
619 item.u.stringValue->c_str()); in debugString()
733 const char *stringValue = parcel.readCString(); in FromParcel() local
734 if (stringValue == NULL) { in FromParcel()
741 item->u.stringValue = new AString(stringValue); in FromParcel()
821 parcel->writeCString(item.u.stringValue->c_str()); in writeToParcel()
[all …]
/frameworks/hardware/interfaces/stats/aidl/vts/functional/
DVtsHalStatsTargetTest.cpp53 tmp.set<VendorAtomValue::stringValue>("test"); in TEST_P()
100 tmp.set<VendorAtomValue::stringValue>("test"); in TEST_P()
121 tmp.set<VendorAtomValue::stringValue>("test"); in TEST_P()
142 tmp.set<VendorAtomValue::stringValue>("test"); in TEST_P()
/frameworks/base/services/core/java/com/android/server/stats/pull/
DSettingsStatsUtil.java165 String stringValue = ""; in createStatsEvent() local
171 .writeString(stringValue) in createStatsEvent()
193 stringValue = value; in createStatsEvent()
202 .writeString(stringValue) in createStatsEvent()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DCamera2SurfaceViewTestCase.java786 String stringValue = getArguments().getString(key); in getArgumentsAsNumber() local
787 if (stringValue != null) { in getArgumentsAsNumber()
789 return NumberFormat.getInstance().parse(stringValue); in getArgumentsAsNumber()
791 Log.w(TAG, "Unable to parse arg " + key + " with value " + stringValue in getArgumentsAsNumber()
799 String stringValue = getArguments().getString(key); in getArgumentsAsBoolean() local
800 if (stringValue != null) { in getArgumentsAsBoolean()
802 return Boolean.parseBoolean(stringValue); in getArgumentsAsBoolean()
804 Log.w(TAG, "Unable to parse arg " + key + " with value " + stringValue in getArgumentsAsBoolean()
/frameworks/base/media/jni/
Dandroid_mtp_MtpDatabase.cpp504 jstring stringValue = (jstring)env->GetObjectArrayElement(stringValuesArray, 0); in getObjectPropertyValue() local
505 const char* str = (stringValue ? env->GetStringUTFChars(stringValue, NULL) : NULL); in getObjectPropertyValue()
506 if (stringValue) { in getObjectPropertyValue()
508 env->ReleaseStringUTFChars(stringValue, str); in getObjectPropertyValue()
512 env->DeleteLocalRef(stringValue); in getObjectPropertyValue()
603 jstring stringValue = NULL; in setObjectPropertyValue() local
609 stringValue = env->NewStringUTF((const char *)buffer); in setObjectPropertyValue()
615 (jint)handle, (jint)property, longValue, stringValue); in setObjectPropertyValue()
616 if (stringValue) in setObjectPropertyValue()
617 env->DeleteLocalRef(stringValue); in setObjectPropertyValue()
[all …]
/frameworks/base/core/java/android/os/
DStatsBootstrapAtomValue.aidl27 String stringValue;
/frameworks/hardware/interfaces/stats/aidl/aidl_api/android.frameworks.stats/1/android/frameworks/stats/
DVendorAtomValue.aidl40 String stringValue;
/frameworks/hardware/interfaces/stats/aidl/android/frameworks/stats/
DVendorAtomValue.aidl26 String stringValue;
/frameworks/hardware/interfaces/stats/aidl/aidl_api/android.frameworks.stats/current/android/frameworks/stats/
DVendorAtomValue.aidl40 String stringValue;
/frameworks/hardware/interfaces/stats/aidl/aidl_api/android.frameworks.stats/2/android/frameworks/stats/
DVendorAtomValue.aidl40 String stringValue;
/frameworks/native/services/stats/
DStatsHal.cpp139 case VendorAtom::Value::hidl_discriminator::stringValue: in reportVendorAtom()
140 AStatsEvent_writeString(event, vendorAtom.values[i].stringValue().c_str()); in reportVendorAtom()
DStatsAidl.cpp146 case VendorAtomValue::stringValue: in reportVendorAtom()
148 atomValue.get<VendorAtomValue::stringValue>().c_str()); in reportVendorAtom()
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java670 long intValue, String stringValue) { in setObjectProperty() argument
673 return renameFile(handle, stringValue); in setObjectProperty()
730 private int setDeviceProperty(int property, long intValue, String stringValue) { in setDeviceProperty() argument
736 e.putString(Integer.toString(property), stringValue); in setDeviceProperty() local
740 mHostType = stringValue; in setDeviceProperty()
742 + "=" + stringValue); in setDeviceProperty()
743 if (stringValue.startsWith("Android/")) { in setDeviceProperty()
745 } else if (stringValue.startsWith("Windows/")) { in setDeviceProperty()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContext.java449 String stringValue = value.getValue(); in resolveThemeAttribute() local
450 if (!stringValue.isEmpty()) { in resolveThemeAttribute()
451 if (stringValue.charAt(0) == '#') { in resolveThemeAttribute()
452 outValue.data = ResourceHelper.getColor(stringValue); in resolveThemeAttribute()
453 switch (stringValue.length()) { in resolveThemeAttribute()
467 else if (stringValue.charAt(0) == '@') { in resolveThemeAttribute()
470 else if ("true".equals(stringValue) || "false".equals(stringValue)) { in resolveThemeAttribute()
472 outValue.data = "true".equals(stringValue) ? 1 : 0; in resolveThemeAttribute()
476 outValue.data = Integer.parseInt(stringValue); in resolveThemeAttribute()
480 if (!ResourceHelper.parseFloatAttribute(null, stringValue, outValue, false)) { in resolveThemeAttribute()
[all …]
/frameworks/base/services/core/java/com/android/server/integrity/parser/
DRuleBinaryParser.java177 String stringValue = getStringValue(bitInputStream, valueSize, isHashedValue); in parseAtomicFormula() local
178 return new AtomicFormula.StringAtomicFormula(key, stringValue, isHashedValue); in parseAtomicFormula()
/frameworks/base/services/core/java/com/android/server/stats/bootstrap/
DStatsBootstrapAtomService.java59 case StatsBootstrapAtomValue.stringValue: in reportBootstrapAtom()
/frameworks/base/core/java/android/app/admin/
DDevicePolicyEventLogger.java214 stringList.stringValue = array; in stringArrayValueToBytes()
/frameworks/av/media/codec2/tests/
DC2Param_test.cpp2364 …std::unique_ptr<StringSetting> stringValue = StringSetting::AllocUnique(6, C2ConstMemoryBlock<char… in TEST_F() local
2365 stringValue = StringSetting::AllocUnique(6, initValue); in TEST_F()
2366 … static_assert(std::is_same<decltype(stringValue->m.value), char[]>::value, "should be char[]"); in TEST_F()
2367 EXPECT_EQ(0, memcmp(stringValue->m.value, "ABCD\0", 6)); in TEST_F()
2368 EXPECT_EQ(6u, stringValue->flexCount()); in TEST_F()
2369 std::vector<C2FieldDescriptor> fields = stringValue->FieldList(); in TEST_F()
2375 stringValue = StringSetting::AllocUnique(3, C2ConstMemoryBlock<char>(initValue)); in TEST_F()
2376 EXPECT_EQ(0, memcmp(stringValue->m.value, "AB", 3)); in TEST_F()
2377 EXPECT_EQ(3u, stringValue->flexCount()); in TEST_F()
2379 stringValue = StringSetting::AllocUnique(11, "initValue"); in TEST_F()
[all …]
/frameworks/av/media/ndk/fuzzer/
Dndk_drm_fuzzer.cpp187 const char* stringValue = nullptr; in invokeDrmPropertyAPI() local
189 AMediaDrm_getPropertyString(mDrm, propertyName.c_str(), &stringValue); in invokeDrmPropertyAPI()

12