Home
last modified time | relevance | path

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

/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.java269 String stringValue = value.getValue(); in getXmlBlockParser() local
270 if (RenderResources.REFERENCE_NULL.equals(stringValue)) { in getXmlBlockParser()
287 parser = ParserFactory.create(stringValue); in getXmlBlockParser()
309 String stringValue = value.getValue(); in getDrawable() local
310 if (RenderResources.REFERENCE_NULL.equals(stringValue)) { in getDrawable()
314 String lowerCaseValue = stringValue.toLowerCase(); in getDrawable()
317 int color = getColor(stringValue); in getDrawable()
332 return getNinePatchDrawable(density, value.isFramework(), stringValue, context); in getDrawable()
336 "Failed to load " + stringValue, e, null /*data*/); in getDrawable()
352 Bridge.getLog().error(null, "Cyclic dependency in " + stringValue, null); 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/base/tests/net/common/java/android/net/metrics/
DDhcpErrorEventTest.kt54 val stringValue = DhcpErrorEvent(intValue).toString() in testToString() constant
56 stringValue), in testToString()
57 stringValue.contains(it.name)) in testToString()
DValidationProbeEventTest.kt67 val stringValue = ValidationProbeEvent.getProbeName(intValue) in testGetProbeName() constant
68 assertEquals(it.name, stringValue) in testGetProbeName()
/frameworks/av/media/libstagefright/foundation/
DAMessage.cpp105 delete item->u.stringValue; in freeItemValue()
302 item->u.stringValue = new AString(s, len < 0 ? strlen(s) : len); in BASIC_TYPE()
350 *value = *item->u.stringValue; in findString()
490 to->u.stringValue = in dup()
491 new AString(*from->u.stringValue); in dup()
595 item.u.stringValue->c_str()); in debugString()
708 const char *stringValue = parcel.readCString(); in FromParcel() local
709 if (stringValue == NULL) { in FromParcel()
716 item->u.stringValue = new AString(stringValue); in FromParcel()
798 parcel->writeCString(item.u.stringValue->c_str()); in writeToParcel()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DCrossProfileIntentFilter.java114 String stringValue = getStringFromXml(parser, attribute, null); in getIntFromXml() local
115 if (stringValue != null) { in getIntFromXml()
116 return Integer.parseInt(stringValue); in getIntFromXml()
/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.cpp446 jstring stringValue = (jstring)env->GetObjectArrayElement(stringValuesArray, 0); in getObjectPropertyValue() local
447 const char* str = (stringValue ? env->GetStringUTFChars(stringValue, NULL) : NULL); in getObjectPropertyValue()
448 if (stringValue) { in getObjectPropertyValue()
450 env->ReleaseStringUTFChars(stringValue, str); in getObjectPropertyValue()
454 env->DeleteLocalRef(stringValue); in getObjectPropertyValue()
545 jstring stringValue = NULL; in setObjectPropertyValue() local
551 stringValue = env->NewStringUTF((const char *)buffer); in setObjectPropertyValue()
557 (jint)handle, (jint)property, longValue, stringValue); in setObjectPropertyValue()
558 if (stringValue) in setObjectPropertyValue()
559 env->DeleteLocalRef(stringValue); in setObjectPropertyValue()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRetryManager.java440 private Pair<Boolean, Integer> parseNonNegativeInt(String name, String stringValue) { in parseNonNegativeInt() argument
444 value = Integer.parseInt(stringValue); in parseNonNegativeInt()
447 Rlog.e(LOG_TAG, name + " bad value: " + stringValue, e); in parseNonNegativeInt()
451 log("parseNonNetativeInt: " + name + ", " + stringValue + ", " in parseNonNegativeInt()
/frameworks/av/media/codec2/tests/
DC2Param_test.cpp2345 …std::unique_ptr<StringSetting> stringValue = StringSetting::AllocUnique(6, C2ConstMemoryBlock<char… in TEST_F() local
2346 stringValue = StringSetting::AllocUnique(6, initValue); in TEST_F()
2347 … static_assert(std::is_same<decltype(stringValue->m.value), char[]>::value, "should be char[]"); in TEST_F()
2348 EXPECT_EQ(0, memcmp(stringValue->m.value, "ABCD\0", 6)); in TEST_F()
2349 EXPECT_EQ(6u, stringValue->flexCount()); in TEST_F()
2350 std::vector<C2FieldDescriptor> fields = stringValue->FieldList(); in TEST_F()
2356 stringValue = StringSetting::AllocUnique(3, C2ConstMemoryBlock<char>(initValue)); in TEST_F()
2357 EXPECT_EQ(0, memcmp(stringValue->m.value, "AB", 3)); in TEST_F()
2358 EXPECT_EQ(3u, stringValue->flexCount()); in TEST_F()
2360 stringValue = StringSetting::AllocUnique(11, "initValue"); in TEST_F()
[all …]
/frameworks/base/core/java/android/app/admin/
DDevicePolicyEventLogger.java214 stringList.stringValue = array; in stringArrayValueToBytes()
/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.cpp173 tmp.stringValue("test"); in main()
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java697 long intValue, String stringValue) { in setObjectProperty() argument
700 return renameFile(handle, stringValue); in setObjectProperty()
744 private int setDeviceProperty(int property, long intValue, String stringValue) { in setDeviceProperty() argument
750 e.putString(Integer.toString(property), stringValue); in setDeviceProperty() local
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DAMessage.h287 AString *stringValue; member
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContext.java401 String stringValue = value.getValue(); in resolveThemeAttribute() local
402 if (!stringValue.isEmpty()) { in resolveThemeAttribute()
403 if (stringValue.charAt(0) == '#') { in resolveThemeAttribute()
407 else if (stringValue.charAt(0) == '@') { in resolveThemeAttribute()
420 outValue.string = stringValue; in resolveThemeAttribute()
/frameworks/hardware/interfaces/stats/1.0/
Dtypes.hal240 string stringValue;
/frameworks/av/drm/libmediadrm/
DDrmMetrics.cpp189 bundle->putString(name, String16(value.stringValue.c_str())); in SetValue()
/frameworks/base/telephony/java/android/telephony/data/
DApnSetting.java1349 private String nullToEmpty(String stringValue) { in nullToEmpty() argument
1350 return stringValue == null ? UNSPECIFIED_STRING : stringValue; in nullToEmpty()
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/
DConvert.java360 builder.putString(keyDef.key, entry.stringValue); in metadataFromHal()
/frameworks/native/vulkan/vkjson/
Dvkjson.cc959 if (json_value->type() != Json::stringValue) return false; in AsValue()
1007 if (json_value->type() != Json::stringValue) return false; in AsValue()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPrintSpoolerService.java1074 String stringValue = (String) value; in doWriteStateLocked() local
1078 serializer.attribute(null, ATTR_VALUE, stringValue); in doWriteStateLocked()
/frameworks/base/services/core/jni/BroadcastRadio/
Dconvert.cpp517 auto value = make_javastr(env, item.stringValue); in MetadataFromHal()