/frameworks/base/tools/aapt2/ |
D | SdkConstants.cpp | 63 { u"marqueeRepeatLimit", 2 }, 64 { u"windowNoDisplay", 3 }, 65 { u"backgroundDimEnabled", 3 }, 66 { u"inputType", 3 }, 67 { u"isDefault", 3 }, 68 { u"windowDisablePreview", 3 }, 69 { u"privateImeOptions", 3 }, 70 { u"editorExtras", 3 }, 71 { u"settingsActivity", 3 }, 72 { u"fastScrollEnabled", 3 }, [all …]
|
D | Resource.cpp | 27 case ResourceType::kAnim: return u"anim"; in toString() 28 case ResourceType::kAnimator: return u"animator"; in toString() 29 case ResourceType::kArray: return u"array"; in toString() 30 case ResourceType::kAttr: return u"attr"; in toString() 31 case ResourceType::kAttrPrivate: return u"attr"; in toString() 32 case ResourceType::kBool: return u"bool"; in toString() 33 case ResourceType::kColor: return u"color"; in toString() 34 case ResourceType::kDimen: return u"dimen"; in toString() 35 case ResourceType::kDrawable: return u"drawable"; in toString() 36 case ResourceType::kFraction: return u"fraction"; in toString() [all …]
|
D | Util_test.cpp | 26 const std::u16string full = u"\n "; in TEST() 42 EXPECT_EQ(StringPiece16(u"hey guys this is so cool"), in TEST() 43 util::StringBuilder().append(u" hey guys ") in TEST() 44 .append(u" this is so cool ") in TEST() 47 EXPECT_EQ(StringPiece16(u" wow, so many \t spaces. what?"), in TEST() 48 util::StringBuilder().append(u" \" wow, so many \t ") in TEST() 49 .append(u"spaces. \"what? ") in TEST() 52 EXPECT_EQ(StringPiece16(u"where is the pie?"), in TEST() 53 util::StringBuilder().append(u" where \t ") in TEST() 54 .append(u" \nis the "" pie?") in TEST() [all …]
|
D | JavaClassGenerator.cpp | 53 u"abstract", u"assert", u"boolean", u"break", u"byte", 54 u"case", u"catch", u"char", u"class", u"const", u"continue", 55 u"default", u"do", u"double", u"else", u"enum", u"extends", 56 u"final", u"finally", u"float", u"for", u"goto", u"if", 57 u"implements", u"import", u"instanceof", u"int", u"interface", 58 u"long", u"native", u"new", u"package", u"private", u"protected", 59 u"public", u"return", u"short", u"static", u"strictfp", u"super", 60 u"switch", u"synchronized", u"this", u"throw", u"throws", 61 u"transient", u"try", u"void", u"volatile", u"while", u"true", 62 u"false", u"null" [all …]
|
D | ResourceParser_test.cpp | 31 ResourceNameRef expected = { {}, ResourceType::kColor, u"foo" }; in TEST() 35 EXPECT_TRUE(ResourceParser::tryParseReference(u"@color/foo", &actual, &create, &privateRef)); in TEST() 42 ResourceNameRef expected = { u"android", ResourceType::kColor, u"foo" }; in TEST() 46 EXPECT_TRUE(ResourceParser::tryParseReference(u"@android:color/foo", &actual, &create, in TEST() 54 ResourceNameRef expected = { u"android", ResourceType::kColor, u"foo" }; in TEST() 58 EXPECT_TRUE(ResourceParser::tryParseReference(u"\t @android:color/foo\n \n\t", &actual, in TEST() 66 ResourceNameRef expected = { u"android", ResourceType::kId, u"foo" }; in TEST() 70 EXPECT_TRUE(ResourceParser::tryParseReference(u"@+android:id/foo", &actual, &create, in TEST() 78 ResourceNameRef expected = { u"android", ResourceType::kId, u"foo" }; in TEST() 82 EXPECT_TRUE(ResourceParser::tryParseReference(u"@*android:id/foo", &actual, &create, in TEST() [all …]
|
D | StringPool_test.cpp | 30 StringPool::Ref ref = pool.makeRef(u"wut"); in TEST() 31 EXPECT_EQ(*ref, u"wut"); in TEST() 37 StringPool::Ref ref = pool.makeRef(u"wut"); in TEST() 38 StringPool::Ref ref2 = pool.makeRef(u"hey"); in TEST() 40 EXPECT_EQ(*ref, u"wut"); in TEST() 41 EXPECT_EQ(*ref2, u"hey"); in TEST() 47 StringPool::Ref ref = pool.makeRef(u"wut"); in TEST() 48 StringPool::Ref ref2 = pool.makeRef(u"wut"); in TEST() 50 EXPECT_EQ(*ref, u"wut"); in TEST() 51 EXPECT_EQ(*ref2, u"wut"); in TEST() [all …]
|
D | Linker_test.cpp | 32 mTable->setPackage(u"android"); in SetUp() 40 addResource(ResourceName{ {}, ResourceType::kAttr, u"integer" }, in SetUp() 43 addResource(ResourceName{ {}, ResourceType::kAttr, u"string" }, in SetUp() 46 addResource(ResourceName{ {}, ResourceType::kId, u"apple" }, util::make_unique<Id>()); in SetUp() 48 addResource(ResourceName{ {}, ResourceType::kId, u"banana" }, util::make_unique<Id>()); in SetUp() 53 ResourceNameRef{ u"android", ResourceType::kId, u"apple" }, 1 }); in SetUp() 55 ResourceNameRef{ u"android", ResourceType::kId, u"banana" }, 2 }); in SetUp() 56 addResource(ResourceName{ {}, ResourceType::kAttr, u"flags" }, std::move(flagAttr)); in SetUp() 72 ASSERT_TRUE(addResource(ResourceName{ u"android", ResourceType::kString, u"foo" }, in TEST_F() 73 util::make_unique<String>(mTable->getValueStringPool().makeRef(u"?123")))); in TEST_F() [all …]
|
D | Resource_test.cpp | 24 const ResourceType* type = parseResourceType(u"anim"); in TEST() 28 type = parseResourceType(u"animator"); in TEST() 32 type = parseResourceType(u"array"); in TEST() 36 type = parseResourceType(u"attr"); in TEST() 40 type = parseResourceType(u"^attr-private"); in TEST() 44 type = parseResourceType(u"bool"); in TEST() 48 type = parseResourceType(u"color"); in TEST() 52 type = parseResourceType(u"dimen"); in TEST() 56 type = parseResourceType(u"drawable"); in TEST() 60 type = parseResourceType(u"fraction"); in TEST() [all …]
|
D | Util.cpp | 31 constexpr const char16_t* kSchemaAuto = u"http://schemas.android.com/apk/res-auto"; 32 constexpr const char16_t* kSchemaPrefix = u"http://schemas.android.com/apk/res/"; 84 if ((c >= u'a' && c <= u'z') || in findNonAlphaNumericAndNotInSet() 85 (c >= u'A' && c <= u'Z') || in findNonAlphaNumericAndNotInSet() 86 (c >= u'0' && c <= u'9')) { in findNonAlphaNumericAndNotInSet() 107 for (const StringPiece16& piece : tokenize(str, u'.')) { in isJavaClassName() 114 if (piece.data()[0] == u'$' || piece.data()[piece.size() - 1] == u'$') { in isJavaClassName() 118 if (findNonAlphaNumericAndNotInSet(piece, u"$_") != piece.end()) { in isJavaClassName() 140 if (className.data()[0] != u'.') { in getFullyQualifiedClassName() 141 result += u'.'; in getFullyQualifiedClassName() [all …]
|
D | ResourceTable_test.cpp | 65 table.setPackage(u"android"); in TEST() 68 ResourceNameRef{ u"android", ResourceType::kId, u"hey,there" }, in TEST() 70 util::make_unique<TestValue>(u"rawValue"))); in TEST() 73 ResourceNameRef{ u"android", ResourceType::kId, u"hey:there" }, in TEST() 75 util::make_unique<TestValue>(u"rawValue"))); in TEST() 79 const std::u16string kAndroidPackage = u"android"; in TEST() 84 const ResourceName name = { kAndroidPackage, ResourceType::kAttr, u"id" }; in TEST() 87 util::make_unique<TestValue>(u"rawValue"))); in TEST() 104 const std::u16string kAndroidPackage = u"android"; in TEST() 113 ResourceName{ kAndroidPackage, ResourceType::kAttr, u"layout_width" }, in TEST() [all …]
|
D | XliffXmlPullParser_test.cpp | 38 EXPECT_EQ(parser.getNamespaceUri(), u"urn:oasis:names:tc:xliff:document:1.2"); in TEST() 39 EXPECT_EQ(parser.getNamespacePrefix(), u"xliff"); in TEST() 42 EXPECT_EQ(parser.getElementNamespace(), u""); in TEST() 43 EXPECT_EQ(parser.getElementName(), u"resources"); in TEST() 47 EXPECT_EQ(parser.getElementNamespace(), u""); in TEST() 48 EXPECT_EQ(parser.getElementName(), u"string"); in TEST() 51 EXPECT_EQ(parser.getText(), u"Hey "); in TEST() 54 EXPECT_EQ(parser.getText(), u"there"); in TEST() 57 EXPECT_EQ(parser.getText(), u" world"); in TEST() 60 EXPECT_EQ(parser.getElementNamespace(), u""); in TEST() [all …]
|
D | ResourceParser.cpp | 35 if (outType->size() == 0 && *current == u'/') { in extractResourceName() 38 } else if (outPackage->size() == 0 && *current == u':') { in extractResourceName() 54 if (trimmedStr.data()[0] == u'@') { in tryParseReference() 57 if (trimmedStr.data()[1] == u'+') { in tryParseReference() 60 } else if (trimmedStr.data()[1] == u'*') { in tryParseReference() 94 if (*trimmedStr.data() == u'?') { in tryParseAttributeReference() 100 if (!type.empty() && type != u"attr") { in tryParseAttributeReference() 132 if (name.data()[0] == u'@' || name.data()[0] == u'?') { in parseStyleParentReference() 135 if (name.data()[0] == u'*') { in parseStyleParentReference() 197 if (trimmedStr == u"@null") { in tryParseNullOrEmpty() [all …]
|
D | ManifestMerger.cpp | 15 constexpr const char16_t* kSchemaAndroid = u"http://schemas.android.com/apk/res/android"; 31 if (el->namespaceUri.empty() && el->name == u"manifest") { in findManifest() 39 xml::Attribute* attrKey = src->findAttribute(kSchemaAndroid, u"name"); in findChildWithSameName() 139 xml::Attribute* reqA = elA->findAttribute(kSchemaAndroid, u"required"); in mergePreferRequired() 140 xml::Attribute* reqB = elB->findAttribute(kSchemaAndroid, u"required"); in mergePreferRequired() 141 bool requiredA = !reqA || (reqA->value != u"false" && reqA->value != u"FALSE"); in mergePreferRequired() 142 bool requiredB = !reqB || (reqB->value != u"false" && reqB->value != u"FALSE"); in mergePreferRequired() 145 *reqA = xml::Attribute{ kSchemaAndroid, u"required", u"true" }; in mergePreferRequired() 147 elA->attributes.push_back(xml::Attribute{ kSchemaAndroid, u"required", u"true" }); in mergePreferRequired() 168 minAttrA = elA->findAttribute(kSchemaAndroid, u"minSdkVersion"); in mergeUsesSdk() [all …]
|
D | JavaClassGenerator_test.cpp | 34 mTable->setPackage(u"android"); in SetUp() 47 ASSERT_TRUE(addResource(ResourceName{ {}, ResourceType::kId, u"class" }, in TEST_F() 57 ASSERT_TRUE(addResource(ResourceName{ {}, ResourceType::kId, u"hey-man" }, in TEST_F() 60 ASSERT_TRUE(addResource(ResourceName{ {}, ResourceType::kAttr, u"cool.attr" }, in TEST_F() 64 Reference ref(ResourceName{ u"android", ResourceType::kAttr, u"cool.attr"}); in TEST_F() 68 ASSERT_TRUE(mTable->addResource(ResourceName{ {}, ResourceType::kStyleable, u"hey.dude" }, in TEST_F() 90 ASSERT_TRUE(addResource(ResourceName{ {}, ResourceType::kId, u"foo" }, in TEST_F() 93 table.setPackage(u"com.lib"); in TEST_F() 94 ASSERT_TRUE(table.addResource(ResourceName{ {}, ResourceType::kId, u"test" }, {}, in TEST_F() 112 EXPECT_TRUE(generator.generate(u"com.lib", out)); in TEST_F() [all …]
|
D | ProguardRules.cpp | 27 constexpr const char16_t* kSchemaAndroid = u"http://schemas.android.com/apk/res/android"; 48 std::u16string package = maybePackage.value() + u"." + node->name; in visit() 84 checkClass = node->name == u"view" || node->name == u"fragment"; in visit() 86 checkName = node->name == u"fragment"; in visit() 90 if (checkClass && attr.namespaceUri.empty() && attr.name == u"class" && in visit() 93 } else if (checkName && attr.namespaceUri == kSchemaAndroid && attr.name == u"name" && in visit() 96 } else if (attr.namespaceUri == kSchemaAndroid && attr.name == u"onClick") { in visit() 112 checkFragment = node->name == u"PreferenceScreen" || node->name == u"header"; in visit() 116 xml::Attribute* attr = node->findAttribute(kSchemaAndroid, u"fragment"); in visit() 132 (node->name == u"transition" || node->name == u"pathMotion"); in visit() [all …]
|
D | ScopedXmlPullParser_test.cpp | 33 EXPECT_EQ(std::u16string(u"resources"), sourceParser.getElementName()); in TEST() 36 EXPECT_EQ(std::u16string(u"string"), sourceParser.getElementName()); in TEST() 41 EXPECT_EQ(std::u16string(u"string"), sourceParser.getElementName()); in TEST() 47 EXPECT_EQ(std::u16string(u"resources"), sourceParser.getElementName()); in TEST() 59 EXPECT_EQ(std::u16string(u"resources"), sourceParser.getElementName()); in TEST() 62 EXPECT_EQ(std::u16string(u"string"), sourceParser.getElementName()); in TEST() 66 EXPECT_EQ(std::u16string(u"string"), sourceParser.getElementName()); in TEST() 70 EXPECT_EQ(std::u16string(u"resources"), sourceParser.getElementName()); in TEST() 82 EXPECT_EQ(std::u16string(u"resources"), sourceParser.getElementName()); in TEST() 85 EXPECT_EQ(std::u16string(u"string"), sourceParser.getElementName()); in TEST() [all …]
|
D | NameMangler_test.cpp | 25 std::u16string package = u"android.appcompat"; in TEST() 26 std::u16string name = u"Platform.AppCompat"; in TEST() 29 EXPECT_EQ(name, u"android.appcompat$Platform.AppCompat"); in TEST() 33 EXPECT_EQ(name, u"Platform.AppCompat"); in TEST() 34 EXPECT_EQ(newPackage, u"android.appcompat"); in TEST() 39 std::u16string name = u"foo_bar"; in TEST() 42 EXPECT_EQ(name, u"foo_bar"); in TEST()
|
D | XliffXmlPullParser.cpp | 35 u"urn:oasis:names:tc:xliff:document:1.2") { in next() 40 if (name != u"bpt" in next() 41 && name != u"ept" in next() 42 && name != u"it" in next() 43 && name != u"ph" in next() 44 && name != u"g" in next() 45 && name != u"bx" in next() 46 && name != u"ex" in next() 47 && name != u"x") { in next()
|
/frameworks/av/media/mtp/ |
D | MtpProperty.cpp | 72 mDefaultValue.u.i8 = defaultValue; in MtpProperty() 75 mDefaultValue.u.u8 = defaultValue; in MtpProperty() 78 mDefaultValue.u.i16 = defaultValue; in MtpProperty() 81 mDefaultValue.u.u16 = defaultValue; in MtpProperty() 84 mDefaultValue.u.i32 = defaultValue; in MtpProperty() 87 mDefaultValue.u.u32 = defaultValue; in MtpProperty() 90 mDefaultValue.u.i64 = defaultValue; in MtpProperty() 93 mDefaultValue.u.u64 = defaultValue; in MtpProperty() 243 mMinimumValue.u.i8 = min; in setFormRange() 244 mMaximumValue.u.i8 = max; in setFormRange() [all …]
|
/frameworks/av/media/libstagefright/webm/ |
D | EbmlUtil.cpp | 32 uint32_t u = (i & -i) * 0x0450FBAF; in numberOfTrailingZeros32() local 33 return NTZ_TABLE[(u) >> 26]; in numberOfTrailingZeros32() 46 uint64_t _powerOf2(uint64_t u) { in _powerOf2() argument 47 uint64_t powerOf2 = highestOneBit(u); in _powerOf2() 52 int numberOfTrailingZeros(uint64_t u) { in numberOfTrailingZeros() argument 53 int32_t low = u; in numberOfTrailingZeros() 55 : 32 + numberOfTrailingZeros32((int32_t) (u >> 32)); in numberOfTrailingZeros() 73 uint64_t encodeUnsigned(uint64_t u) { in encodeUnsigned() argument 74 uint64_t powerOf2 = _powerOf2(u); in encodeUnsigned() 75 if (u + 1 == powerOf2 << 1) in encodeUnsigned() [all …]
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsicColorMatrix.cpp | 123 } u; member 221 key.u.inType = RS_TYPE_FLOAT_32; in computeKey() 222 rsAssert(key.u.inType == RS_TYPE_FLOAT_32); in computeKey() 226 key.u.outType = RS_TYPE_FLOAT_32; in computeKey() 227 rsAssert(key.u.outType == RS_TYPE_FLOAT_32); in computeKey() 235 key.u.coeffMask |= 1 << i; in computeKey() 238 if (fabs(fpa[0]) != 0.f) key.u.addMask |= 0x1; in computeKey() 239 if (fabs(fpa[1]) != 0.f) key.u.addMask |= 0x2; in computeKey() 240 if (fabs(fpa[2]) != 0.f) key.u.addMask |= 0x4; in computeKey() 241 if (fabs(fpa[3]) != 0.f) key.u.addMask |= 0x8; in computeKey() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | ResTable_test.cpp | 235 testU16StringToInt(u"", 0U, false, false); in TEST() 236 testU16StringToInt(u" ", 0U, false, false); in TEST() 237 testU16StringToInt(u"\t\n", 0U, false, false); in TEST() 239 testU16StringToInt(u"abcd", 0U, false, false); in TEST() 240 testU16StringToInt(u"10abcd", 0U, false, false); in TEST() 241 testU16StringToInt(u"42 42", 0U, false, false); in TEST() 242 testU16StringToInt(u"- 42", 0U, false, false); in TEST() 243 testU16StringToInt(u"-", 0U, false, false); in TEST() 245 testU16StringToInt(u"0x", 0U, false, true); in TEST() 246 testU16StringToInt(u"0xnope", 0U, false, true); in TEST() [all …]
|
/frameworks/av/media/libstagefright/foundation/ |
D | AMessage.cpp | 101 delete item->u.stringValue; in freeItemValue() 109 if (item->u.refValue != NULL) { in freeItemValue() 110 item->u.refValue->decStrong(this); in freeItemValue() 225 item->u.FIELDNAME = value; \ 231 *value = item->u.FIELDNAME; \ 250 item->u.stringValue = new AString(s, len < 0 ? strlen(s) : len); in BASIC_TYPE() 264 item->u.refValue = obj.get(); in setObjectInternal() 280 item->u.refValue = obj.get(); in setMessage() 289 item->u.rectValue.mLeft = left; in setRect() 290 item->u.rectValue.mTop = top; in setRect() [all …]
|
/frameworks/base/libs/hwui/ |
D | Matrix.h | 127 void loadMultiply(const Matrix4& u, const Matrix4& v); 140 Matrix4 u; in multiply() local 141 u.loadMultiply(*this, v); in multiply() 142 load(u); in multiply() 158 Matrix4 u; variable 159 u.loadTranslate(x, y, z); 160 multiply(u); 173 Matrix4 u; in scale() local 174 u.loadScale(sx, sy, sz); in scale() 175 multiply(u); in scale() [all …]
|
D | Vertex.h | 65 float u, v; member 67 static inline void set(TextureVertex* vertex, float x, float y, float u, float v) { in set() 68 *vertex = { x, y, u, v }; in set() 71 static inline void setUV(TextureVertex* vertex, float u, float v) { in setUV() 72 vertex[0].u = u; in setUV() 84 float u, v; member 88 float u, float v, int color) { in set() 94 *vertex = { x, y, u, v, r, g, b, a }; in set()
|