/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/theme/ |
D | AndroidColorScheme.kt | 41 val onSecondaryFixedVariant = getColor(context, R.attr.materialColorOnSecondaryFixedVariant) 42 val onTertiaryFixedVariant = getColor(context, R.attr.materialColorOnTertiaryFixedVariant) 43 val surfaceContainerLowest = getColor(context, R.attr.materialColorSurfaceContainerLowest) 44 val onPrimaryFixedVariant = getColor(context, R.attr.materialColorOnPrimaryFixedVariant) 45 val onSecondaryContainer = getColor(context, R.attr.materialColorOnSecondaryContainer) 46 val onTertiaryContainer = getColor(context, R.attr.materialColorOnTertiaryContainer) 47 val surfaceContainerLow = getColor(context, R.attr.materialColorSurfaceContainerLow) 48 val onPrimaryContainer = getColor(context, R.attr.materialColorOnPrimaryContainer) 49 val secondaryFixedDim = getColor(context, R.attr.materialColorSecondaryFixedDim) 50 val onErrorContainer = getColor(context, R.attr.materialColorOnErrorContainer) [all …]
|
/frameworks/base/tools/aapt2/compile/ |
D | InlineXmlFormatParser_test.cpp | 49 <aapt:attr name="android:text"> 53 </aapt:attr> 70 EXPECT_THAT(el->FindChild(xml::kSchemaAapt, "attr"), IsNull()); 100 <aapt:attr name="android:text"> 104 </aapt:attr> 106 <aapt:attr name="android:drawable"> 108 </aapt:attr> 131 EXPECT_THAT(el->FindChild(xml::kSchemaAapt, "attr"), IsNull()); 149 <aapt:attr name="inline_xml"> 151 <aapt:attr name="nested_inline_xml"> [all …]
|
/frameworks/av/media/libmediametrics/ |
D | MediaMetrics.cpp | 65 void mediametrics_setInt32(mediametrics_handle_t handle, attr_t attr, in mediametrics_setInt32() argument 68 if (item != NULL) item->setInt32(attr, value); in mediametrics_setInt32() 71 void mediametrics_setInt64(mediametrics_handle_t handle, attr_t attr, in mediametrics_setInt64() argument 74 if (item != NULL) item->setInt64(attr, value); in mediametrics_setInt64() 77 void mediametrics_setDouble(mediametrics_handle_t handle, attr_t attr, in mediametrics_setDouble() argument 80 if (item != NULL) item->setDouble(attr, value); in mediametrics_setDouble() 83 void mediametrics_setRate(mediametrics_handle_t handle, attr_t attr, in mediametrics_setRate() argument 86 if (item != NULL) item->setRate(attr, count, duration); in mediametrics_setRate() 89 void mediametrics_setString(mediametrics_handle_t handle, attr_t attr, in mediametrics_setString() argument 91 mediametrics_setCString(handle, attr, string.c_str()); in mediametrics_setString() [all …]
|
/frameworks/av/services/audiopolicy/permission/ |
D | ValidatedAttributionSourceState.cpp | 30 ValidatedAttributionSourceState::createFromBinderContext(AttributionSourceState attr, in createFromBinderContext() argument 32 attr.pid = ::android::IPCThreadState::self()->getCallingPid(); in createFromBinderContext() 33 attr.uid = ::android::IPCThreadState::self()->getCallingUid(); in createFromBinderContext() 34 return createFromTrustedUidNoPackage(std::move(attr), provider); in createFromBinderContext() 39 AttributionSourceState attr, const IPermissionProvider& provider) { in createFromTrustedUidNoPackage() argument 40 if (attr.packageName.has_value() && attr.packageName->size() != 0) { in createFromTrustedUidNoPackage() 41 if (VALUE_OR_RETURN(provider.validateUidPackagePair(attr.uid, attr.packageName.value()))) { in createFromTrustedUidNoPackage() 42 return ValidatedAttributionSourceState{std::move(attr)}; in createFromTrustedUidNoPackage() 45 attr.toString() in createFromTrustedUidNoPackage() 53 const auto packageNames = VALUE_OR_RETURN(provider.getPackagesForUid(attr.uid)); in createFromTrustedUidNoPackage() [all …]
|
/frameworks/av/services/audiopolicy/permission/tests/ |
D | ValidatedAttributionSourceStateTest.cpp | 64 AttributionSourceState attr; in TEST_F() local 65 attr.uid = mUid; in TEST_F() 66 attr.packageName = package; in TEST_F() 67 EXPECT_THAT(ValidatedAttributionSourceState::createFromTrustedUidNoPackage(attr, mMockProvider), in TEST_F() 68 IsOkAnd(Eq(attr))); in TEST_F() 74 AttributionSourceState attr; in TEST_F() local 75 attr.uid = mUid; in TEST_F() 76 attr.packageName = package; in TEST_F() 77 EXPECT_THAT(ValidatedAttributionSourceState::createFromTrustedUidNoPackage(attr, mMockProvider), in TEST_F() 83 AttributionSourceState attr; in TEST_F() local [all …]
|
/frameworks/av/media/libmediametrics/include/media/ |
D | MediaMetrics.h | 44 void mediametrics_setInt32(mediametrics_handle_t handle, attr_t attr, 46 void mediametrics_setInt64(mediametrics_handle_t handle, attr_t attr, 48 void mediametrics_setDouble(mediametrics_handle_t handle, attr_t attr, 50 void mediametrics_setRate(mediametrics_handle_t handle, attr_t attr, 52 void mediametrics_setCString(mediametrics_handle_t handle, attr_t attr, 57 void mediametrics_addInt32(mediametrics_handle_t handle, attr_t attr, 59 void mediametrics_addInt64(mediametrics_handle_t handle, attr_t attr, 61 void mediametrics_addDouble(mediametrics_handle_t handle, attr_t attr, 63 void mediametrics_addRate(mediametrics_handle_t handle, attr_t attr, 69 bool mediametrics_getInt32(mediametrics_handle_t handle, attr_t attr, [all …]
|
/frameworks/base/tools/aapt2/link/ |
D | ManifestFixer.cpp | 67 xml::Attribute* attr = data_el->FindAttribute(xml::kSchemaAndroid, attr_name); in VerifyDeeplinkPathAttribute() local 68 if (attr != nullptr && !attr->value.empty()) { in VerifyDeeplinkPathAttribute() 69 StringPiece attr_value = attr->value; in VerifyDeeplinkPathAttribute() 122 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name"); in RequiredNameIsNotEmpty() local 123 if (attr == nullptr) { in RequiredNameIsNotEmpty() 129 if (attr->value.empty()) { in RequiredNameIsNotEmpty() 138 static bool NameIsJavaClassName(xml::Element* el, xml::Attribute* attr, in NameIsJavaClassName() argument 144 util::GetFullyQualifiedClassName("a", attr->value); in NameIsJavaClassName() 148 : attr->value; in NameIsJavaClassName() 159 if (xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name")) { in OptionalNameIsJavaClassName() local [all …]
|
D | XmlReferenceLinker.cpp | 63 for (xml::Attribute& attr : el->attributes) { in Visit() 70 xml::ExtractPackageFromNamespace(attr.namespace_uri)) { in Visit() 73 ResourceNameRef(maybe_package.value().package, ResourceType::kAttr, attr.name)); in Visit() 77 attr.compiled_attribute = in Visit() 80 if (!attr.compiled_attribute) { in Visit() 90 attribute = &attr.compiled_attribute.value().attribute; in Visit() 93 attr.compiled_value = ResourceUtils::TryParseItemForAttribute(context_->GetDiagnostics(), in Visit() 94 attr.value, attribute); in Visit() 95 if (attr.compiled_value) { in Visit() 97 attr.compiled_value->SetSource(source); in Visit() [all …]
|
D | XmlCompatVersioner.cpp | 90 const ResourceId attr_resid = result.attr.compiled_attribute.value().id.value(); in ProcessRule() 94 ProcessRule(src_el, result.attr, attr_version, in ProcessRule() 113 for (const auto& attr : el.attributes) { in ProcessDoc() local 114 if (!attr.compiled_attribute) { in ProcessDoc() 116 out_el->attributes.push_back(CopyAttr(attr, &cloned_doc->string_pool)); in ProcessDoc() 120 const ResourceId attr_resid = attr.compiled_attribute.value().id.value(); in ProcessDoc() 124 ProcessRule(el, attr, attr_version, rule != rules_->end() ? rule->second.get() : nullptr, in ProcessDoc() 172 for (const ReplacementAttr& attr : attrs_) { in Degrade() local 174 DegradeResult{xml::Attribute{xml::kSchemaAndroid, attr.name, src_attr.value, in Degrade() 175 xml::AaptAttribute{attr.attr, attr.id}, in Degrade() [all …]
|
D | XmlReferenceLinker_test.cpp | 89 android:attr="\?hello" 121 xml_attr = view_el->FindAttribute(xml::kSchemaAndroid, "attr"); 202 <View xmlns:app="http://schemas.android.com/apk/res/android" app:attr="@app:id/id"> 203 <View xmlns:app="http://schemas.android.com/apk/res/com.app.test" app:attr="@app:id/id"/> 214 xml::Attribute* xml_attr = view_el->FindAttribute(xml::kSchemaAndroid, "attr"); 228 xml_attr = view_el->FindAttribute(xml::BuildPackageNamespace("com.app.test"), "attr"); 240 android:attr="@id/id"/>)"); 250 …::Attribute* xml_attr = view_el->FindAttribute(xml::BuildPackageNamespace("com.app.test"), "attr");
|
/frameworks/base/tools/aapt2/java/ |
D | ProguardRules.cpp | 68 for (const auto& attr : node->attributes) { in Visit() local 69 if (attr.compiled_value) { in Visit() 70 auto ref = ValueCast<Reference>(attr.compiled_value.get()); in Visit() 124 for (const auto& attr : node->attributes) { in Visit() local 125 if (attr.namespace_uri.empty() && attr.name == "class") { in Visit() 126 if (util::IsJavaClassName(attr.value)) { in Visit() 128 AddClass(node->line_number, attr.value, in Visit() 131 AddClass(node->line_number, attr.value, ""); in Visit() 134 } else if (attr.namespace_uri == xml::kSchemaAndroid && attr.name == "name") { in Visit() 135 if (util::IsJavaClassName(attr.value)) { in Visit() [all …]
|
/frameworks/base/core/java/android/util/ |
D | StateSet.java | 66 R.attr.state_window_focused, VIEW_STATE_WINDOW_FOCUSED, 67 R.attr.state_selected, VIEW_STATE_SELECTED, 68 R.attr.state_focused, VIEW_STATE_FOCUSED, 69 R.attr.state_enabled, VIEW_STATE_ENABLED, 70 R.attr.state_pressed, VIEW_STATE_PRESSED, 71 R.attr.state_activated, VIEW_STATE_ACTIVATED, 72 R.attr.state_accelerated, VIEW_STATE_ACCELERATED, 73 R.attr.state_hovered, VIEW_STATE_HOVERED, 74 R.attr.state_drag_can_accept, VIEW_STATE_DRAG_CAN_ACCEPT, 75 R.attr.state_drag_hovered, VIEW_STATE_DRAG_HOVERED [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | DualToneHandler.kt | 54 Utils.getThemeAttr(context, R.attr.darkIconTheme)) in setColorsFromContext() 56 Utils.getThemeAttr(context, R.attr.lightIconTheme)) in setColorsFromContext() 60 Utils.getColorAttrDefaultColor(dualToneDarkTheme, R.attr.iconBackgroundColor), in setColorsFromContext() 61 Utils.getColorAttrDefaultColor(dualToneDarkTheme, R.attr.fillColor)) in setColorsFromContext() 65 Utils.getColorAttrDefaultColor(dualToneLightTheme, R.attr.iconBackgroundColor), in setColorsFromContext() 66 Utils.getColorAttrDefaultColor(dualToneLightTheme, R.attr.fillColor)) in setColorsFromContext() 69 Utils.getColorAttrDefaultColor(dualToneDarkTheme, R.attr.singleToneColor), in setColorsFromContext() 70 Utils.getColorAttrDefaultColor(dualToneDarkTheme, R.attr.iconBackgroundColor), in setColorsFromContext() 71 Utils.getColorAttrDefaultColor(dualToneDarkTheme, R.attr.fillColor)) in setColorsFromContext() 73 Utils.getColorAttrDefaultColor(dualToneLightTheme, R.attr.singleToneColor), in setColorsFromContext() [all …]
|
/frameworks/av/media/libaudiousecasevalidation/tests/ |
D | UsecaseValidator-test.cpp | 112 auto attr = testVerifyAudioAttributes(gameStreamId, AUDIO_USAGE_GAME); in TEST_F() local 113 EXPECT_EQ(attr.value().usage, AUDIO_USAGE_GAME); in TEST_F() 116 attr = testVerifyAudioAttributes(mediaStreamId, AUDIO_USAGE_MEDIA); in TEST_F() 117 EXPECT_EQ(attr.value().usage, AUDIO_USAGE_MEDIA); in TEST_F() 182 auto attr = testStartClient(gameStreamId, gamePortId, attributes); in TEST_F() local 183 EXPECT_EQ(attr.value().usage, AUDIO_USAGE_GAME); in TEST_F() 186 attr = testStartClient(gameStreamId, voiceCommPortId, attributes); in TEST_F() 187 EXPECT_EQ(attr.value().usage, AUDIO_USAGE_VOICE_COMMUNICATION); in TEST_F() 191 attr = testStartClient(mediaStreamId, mediaPortId, attributes); in TEST_F() 192 EXPECT_EQ(attr.value().usage, AUDIO_USAGE_MEDIA); in TEST_F() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bouncer/shared/constants/ |
D | KeyguardBouncerConstants.kt | 36 const val TITLE = com.android.internal.R.attr.materialColorOnSurface 37 const val PIN_SHAPES = com.android.internal.R.attr.materialColorOnSurfaceVariant 38 const val NUM_PAD_BACKGROUND = com.android.internal.R.attr.materialColorSurfaceContainerHigh 39 const val NUM_PAD_BACKGROUND_PRESSED = com.android.internal.R.attr.materialColorPrimaryFixed 40 const val NUM_PAD_PRESSED = com.android.internal.R.attr.materialColorOnPrimaryFixed 41 const val NUM_PAD_KEY = com.android.internal.R.attr.materialColorOnSurface 42 const val NUM_PAD_BUTTON = com.android.internal.R.attr.materialColorOnSecondaryFixed 43 const val EMERGENCY_BUTTON = com.android.internal.R.attr.materialColorTertiaryFixed
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | UserAvatarView.java | 46 int attr = a.getIndex(i); in UserAvatarView() local 47 if (attr == R.styleable.UserAvatarView_avatarPadding) { in UserAvatarView() 48 setAvatarPadding(a.getDimension(attr, 0)); in UserAvatarView() 49 } else if (attr == R.styleable.UserAvatarView_frameWidth) { in UserAvatarView() 50 setFrameWidth(a.getDimension(attr, 0)); in UserAvatarView() 51 } else if (attr == R.styleable.UserAvatarView_framePadding) { in UserAvatarView() 52 setFramePadding(a.getDimension(attr, 0)); in UserAvatarView() 53 } else if (attr == R.styleable.UserAvatarView_frameColor) { in UserAvatarView() 54 setFrameColor(a.getColorStateList(attr)); in UserAvatarView() 55 } else if (attr == R.styleable.UserAvatarView_badgeDiameter) { in UserAvatarView() [all …]
|
/frameworks/libs/binary_translation/tests/ndk_program_tests/ |
D | thread_test.cc | 117 pthread_attr_t attr; in TEST() local 120 pthread_attr_init(&attr); in TEST() 121 ASSERT_EQ(pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED), 0); in TEST() 122 ASSERT_EQ(pthread_attr_getdetachstate(&attr, &state), 0); in TEST() 124 ASSERT_EQ(pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE), 0); in TEST() 125 ASSERT_EQ(pthread_attr_getdetachstate(&attr, &state), 0); in TEST() 127 ASSERT_EQ(pthread_attr_setstacksize(&attr, 16 * 1024U), 0); in TEST() 128 ASSERT_EQ(pthread_attr_getstacksize(&attr, &stack_size), 0); in TEST() 130 ASSERT_EQ(pthread_attr_destroy(&attr), 0); in TEST() 135 pthread_attr_t attr; in TEST() local [all …]
|
/frameworks/libs/native_bridge_support/android_api/libc/proxy/ |
D | pthread_translation.cc | 52 pthread_attr_t attr; in DoCustomTrampoline_pthread_create() local 56 memcpy(&attr, guest_attr, sizeof(attr)); in DoCustomTrampoline_pthread_create() 58 pthread_attr_init(&attr); in DoCustomTrampoline_pthread_create() 63 void* guest_stack = attr.stack_base; in DoCustomTrampoline_pthread_create() 64 size_t guest_stack_size = attr.stack_size; in DoCustomTrampoline_pthread_create() 65 size_t guest_guard_size = attr.guard_size; in DoCustomTrampoline_pthread_create() 71 attr.stack_base = nullptr; in DoCustomTrampoline_pthread_create() 72 attr.stack_size = std::max(guest_stack_size, GetStackSizeForTranslation()); in DoCustomTrampoline_pthread_create() 75 ret = CreateNewGuestThread(thread, &attr, guest_stack, guest_stack_size, in DoCustomTrampoline_pthread_create() 79 pthread_attr_destroy(&attr); in DoCustomTrampoline_pthread_create()
|
/frameworks/av/services/audiopolicy/engine/common/src/ |
D | ProductStrategy.cpp | 47 for (const auto &attr : mAttributesVector) { in listVolumeGroupAttributes() local 48 androidAa.push_back({attr.getGroupId(), attr.getStreamType(), attr.getAttributes()}); in listVolumeGroupAttributes() 65 int ProductStrategy::matchesScore(const audio_attributes_t attr) const in matchesScore() 69 int score = AudioProductStrategy::attributesMatchesScore(attrGroup.getAttributes(), attr); in matchesScore() 88 return std::find_if(begin(mAttributesVector), end(mAttributesVector), [](const auto &attr) { in isDefault() argument 89 return attr.getAttributes() == defaultAttr; }) != end(mAttributesVector); in isDefault() 124 [](const auto &attr) { in getDefaultVolumeGroup() argument 125 return attr.getAttributes() == defaultAttr; in getDefaultVolumeGroup() 137 for (const auto &attr : mAttributesVector) { in dump() local 138 dst->appendFormat("%*sGroup: %d stream: %s\n", spaces + 3, "", attr.getGroupId(), in dump() [all …]
|
/frameworks/base/tests/BiDiTests/ |
D | new-attributes.txt | 1 <public type="attr" name="layoutDirection" /> 3 <public type="attr" name="layout_marginStart"/> 4 <public type="attr" name="layout_marginEnd"/> 6 <public type="attr" name="paddingStart"/> 7 <public type="attr" name="paddingEnd"/> 9 <public type="attr" name="textDirection"/>
|
/frameworks/av/services/audiopolicy/permission/include/media/ |
D | ValidatedAttributionSourceState.h | 36 AttributionSourceState attr, const IPermissionProvider& provider); 42 static ValidatedAttributionSourceState createFromTrustedSource(AttributionSourceState attr) { in createFromTrustedSource() argument 43 return ValidatedAttributionSourceState(attr); in createFromTrustedSource() 53 createFromTrustedUidNoPackage(AttributionSourceState attr, const IPermissionProvider& provider); 68 ValidatedAttributionSourceState(AttributionSourceState attr) : state_(attr) {} in ValidatedAttributionSourceState() argument
|
/frameworks/base/tools/processors/view_inspector/test/resources/android/processor/view/inspector/InspectionCompanionGeneratorTest/ |
D | SimpleProperties.java.txt | 83 mBooleanId = propertyMapper.mapBoolean("boolean", R.attr.boolean); 84 mByteId = propertyMapper.mapByte("byte", R.attr.byte); 85 mCharId = propertyMapper.mapChar("char", R.attr.char); 86 mColorId = propertyMapper.mapColor("color", R.attr.color); 87 mDoubleId = propertyMapper.mapDouble("double", R.attr.double); 88 mFloatId = propertyMapper.mapFloat("float", R.attr.float); 89 mGravityId = propertyMapper.mapGravity("gravity", R.attr.gravity); 90 mIntId = propertyMapper.mapInt("int", R.attr.int); 91 mLongId = propertyMapper.mapLong("long", R.attr.long); 92 mObjectId = propertyMapper.mapObject("object", R.attr.object); [all …]
|
/frameworks/av/media/libmedia/include/media/omx/1.0/ |
D | Conversion.h | 605 t->attr.width = l.getWidth(); in wrapAs() 606 t->attr.height = l.getHeight(); in wrapAs() 607 t->attr.stride = l.getStride(); in wrapAs() 608 t->attr.format = static_cast<PixelFormat>(l.getPixelFormat()); in wrapAs() 617 t->attr.layerCount = ((uint64_t(usageHigh) << 32) | layerLow); in wrapAs() 618 t->attr.usage = usageLow; in wrapAs() 619 t->attr.id = l.getId(); in wrapAs() 620 t->attr.generationNumber = l.getGenerationNumber(); in wrapAs() 655 ints[1] = static_cast<int32_t>(t.attr.width); in convertTo() 656 ints[2] = static_cast<int32_t>(t.attr.height); in convertTo() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | Theme_test.cpp | 70 EXPECT_FALSE(theme->GetAttribute(app::R::attr::attr_one).has_value()); in TEST_F() 80 auto value = theme->GetAttribute(app::R::attr::attr_one); in TEST_F() 86 value = theme->GetAttribute(app::R::attr::attr_two); in TEST_F() 100 auto value = theme->GetAttribute(app::R::attr::attr_one); in TEST_F() 106 value = theme->GetAttribute(app::R::attr::attr_two); in TEST_F() 115 value = theme->GetAttribute(app::R::attr::attr_three); in TEST_F() 140 auto value = theme->GetAttribute(app::R::attr::attr_one); in TEST_F() 147 value = theme->GetAttribute(app::R::attr::attr_six); in TEST_F() 154 value = theme->GetAttribute(app::R::attr::attr_five); in TEST_F() 170 auto value = theme->GetAttribute(app::R::attr::attr_one); in TEST_F() [all …]
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | ScoredNetworkTest.java | 79 Bundle attr = new Bundle(ATTRIBUTES); in scoredNetworksWithDifferentSizedAttributeBundle_notEqual() local 80 attr.putBoolean(ScoredNetwork.ATTRIBUTES_KEY_HAS_CAPTIVE_PORTAL, true); in scoredNetworksWithDifferentSizedAttributeBundle_notEqual() 82 new ScoredNetwork(KEY, CURVE, false /* meteredHint */, attr); in scoredNetworksWithDifferentSizedAttributeBundle_notEqual() 90 Bundle attr = new Bundle(); in scoredNetworksWithDifferentAttributeValues_notEqual() local 91 attr.putInt(ScoredNetwork.ATTRIBUTES_KEY_RANKING_SCORE_OFFSET, Integer.MIN_VALUE); in scoredNetworksWithDifferentAttributeValues_notEqual() 93 new ScoredNetwork(KEY, CURVE, false /* meteredHint */, attr); in scoredNetworksWithDifferentAttributeValues_notEqual() 137 Bundle attr = new Bundle(); in calculateRankingScoreShouldNotResultInIntegerOverflow() local 138 attr.putInt(ScoredNetwork.ATTRIBUTES_KEY_RANKING_SCORE_OFFSET, Integer.MAX_VALUE); in calculateRankingScoreShouldNotResultInIntegerOverflow() 140 = new ScoredNetwork(KEY, CURVE, false /* meteredHint */, attr); in calculateRankingScoreShouldNotResultInIntegerOverflow() 146 Bundle attr = new Bundle(); in calculateRankingScoreShouldNotResultInIntegerUnderflow() local [all …]
|