Home
last modified time | relevance | path

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

12

/frameworks/native/libs/input/
DPropertyMap.cpp71 String8 stringValue; in tryGetProperty() local
72 if (!tryGetProperty(key, stringValue) || stringValue.length() == 0) { in tryGetProperty()
77 int value = strtol(stringValue.string(), &end, 10); in tryGetProperty()
80 stringValue.string()); in tryGetProperty()
88 String8 stringValue; in tryGetProperty() local
89 if (!tryGetProperty(key, stringValue) || stringValue.length() == 0) { in tryGetProperty()
94 float value = strtof(stringValue.string(), &end); in tryGetProperty()
97 stringValue.string()); in tryGetProperty()
/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.java275 String stringValue = value.getValue(); in getXmlBlockParser() local
276 if (RenderResources.REFERENCE_NULL.equals(stringValue)) { in getXmlBlockParser()
293 parser = ParserFactory.create(stringValue); in getXmlBlockParser()
315 String stringValue = value.getValue(); in getDrawable() local
316 if (RenderResources.REFERENCE_NULL.equals(stringValue)) { in getDrawable()
321 if (stringValue.trim().startsWith("#")) { in getDrawable()
323 int color = getColor(stringValue); in getDrawable()
327 String.format("\"%1$s\" cannot be interpreted as a color.", stringValue), in getDrawable()
341 String lowerCaseValue = stringValue.toLowerCase(); in getDrawable()
344 return getNinePatchDrawable(density, value.isFramework(), stringValue, context); in getDrawable()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DExifInterfaceTest.java121 String stringValue = typedArray.getString(index); in getString() local
122 if (stringValue == null || stringValue.equals("")) { in getString()
125 return stringValue.trim(); in getString()
251 String stringValue = exifInterface.getAttribute(tag); in assertStringTag() local
252 if (stringValue != null) { in assertStringTag()
253 stringValue = stringValue.trim(); in assertStringTag()
255 stringValue = (stringValue == "") ? null : stringValue; in assertStringTag()
257 assertEquals(expectedValue, stringValue); in assertStringTag()
/frameworks/hardware/interfaces/stats/aidl/vts/functional/
DVtsHalStatsTargetTest.cpp53 tmp.set<VendorAtomValue::stringValue>("test"); in TEST_P()
74 tmp.set<VendorAtomValue::stringValue>("test"); in TEST_P()
95 tmp.set<VendorAtomValue::stringValue>("test"); in TEST_P()
116 tmp.set<VendorAtomValue::stringValue>("test"); in TEST_P()
/frameworks/av/media/libstagefright/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()
503 to->u.stringValue = in dup()
504 new AString(*from->u.stringValue); in dup()
608 item.u.stringValue->c_str()); in debugString()
722 const char *stringValue = parcel.readCString(); in FromParcel() local
723 if (stringValue == NULL) { in FromParcel()
730 item->u.stringValue = new AString(stringValue); in FromParcel()
810 parcel->writeCString(item.u.stringValue->c_str()); in writeToParcel()
[all …]
/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/native/services/stats/
DStatsAidl.cpp61 case VendorAtomValue::stringValue: in reportVendorAtom()
63 atomValue.get<VendorAtomValue::stringValue>().c_str()); in reportVendorAtom()
DStatsHal.cpp138 case VendorAtom::Value::hidl_discriminator::stringValue: in reportVendorAtom()
139 AStatsEvent_writeString(event, vendorAtom.values[i].stringValue().c_str()); in reportVendorAtom()
/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/hardware/interfaces/stats/aidl/aidl_api/android.frameworks.stats/1/android/frameworks/stats/
DVendorAtomValue.aidl40 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/android/frameworks/stats/
DVendorAtomValue.aidl26 String stringValue;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRetryManager.java458 private Pair<Boolean, Integer> parseNonNegativeInt(String name, String stringValue) { in parseNonNegativeInt() argument
462 value = Integer.parseInt(stringValue); in parseNonNegativeInt()
465 Rlog.e(LOG_TAG, name + " bad value: " + stringValue, e); in parseNonNegativeInt()
469 log("parseNonNegativeInt: " + name + ", " + stringValue + ", " in parseNonNegativeInt()
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java668 long intValue, String stringValue) { in setObjectProperty() argument
671 return renameFile(handle, stringValue); in setObjectProperty()
728 private int setDeviceProperty(int property, long intValue, String stringValue) { in setDeviceProperty() argument
734 e.putString(Integer.toString(property), stringValue); in setDeviceProperty() local
738 mHostType = stringValue; in setDeviceProperty()
739 if (stringValue.startsWith("Android/")) { in setDeviceProperty()
741 + "=" + stringValue); in setDeviceProperty()
/frameworks/base/services/core/java/com/android/server/integrity/parser/
DRuleBinaryParser.java176 String stringValue = getStringValue(bitInputStream, valueSize, isHashedValue); in parseAtomicFormula() local
177 return new AtomicFormula.StringAtomicFormula(key, stringValue, isHashedValue); in parseAtomicFormula()
/frameworks/hardware/interfaces/stats/aidl/test_client/
DAidlStatsClient.cpp78 tmp.set<VendorAtomValue::stringValue>("test"); in main()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContext.java423 String stringValue = value.getValue(); in resolveThemeAttribute() local
424 if (!stringValue.isEmpty()) { in resolveThemeAttribute()
425 if (stringValue.charAt(0) == '#') { in resolveThemeAttribute()
426 outValue.data = ResourceHelper.getColor(stringValue); in resolveThemeAttribute()
427 switch (stringValue.length()) { in resolveThemeAttribute()
441 else if (stringValue.charAt(0) == '@') { in resolveThemeAttribute()
444 else if ("true".equals(stringValue) || "false".equals(stringValue)) { in resolveThemeAttribute()
446 outValue.data = "true".equals(stringValue) ? 1 : 0; in resolveThemeAttribute()
458 outValue.string = stringValue; in resolveThemeAttribute()
/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/hardware/interfaces/stats/1.0/vts/functional/
DVtsHalStatsV1_0TargetTest.cpp139 tmp.stringValue("test"); in TEST_P()
/frameworks/hardware/interfaces/stats/1.0/test_client/
DStatsClient.cpp179 tmp.stringValue("test"); in main()
/frameworks/av/drm/libmediadrm/fuzzer/
Dmediadrm_fuzzer.cpp189 String8 stringValue; in invokeDrmPropertyAPI() local
190 mDrm->getPropertyString(String8("property"), stringValue); in invokeDrmPropertyAPI()
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DAMessage.h301 AString *stringValue; member

12