/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
H A D | MediaRouterThemeHelper.java | 74 int mediaRouteThemeResId = getThemeResource(context, R.attr.mediaRouteTheme); 82 public static int getThemeResource(Context context, int attr) { argument 84 return context.getTheme().resolveAttribute(attr, value, true) ? value.resourceId : 0; 89 return context.getTheme().resolveAttribute(android.R.attr.disabledAlpha, value, true) 95 android.support.v7.appcompat.R.attr.colorPrimary); 105 android.support.v7.appcompat.R.attr.colorPrimary); 106 int backgroundColor = getThemeColor(context, 0, android.R.attr.colorBackground); 110 return getThemeColor(context, 0, android.support.v7.appcompat.R.attr.colorAccent); 118 android.support.v7.appcompat.R.attr.colorPrimary); 120 android.support.v7.appcompat.R.attr 166 getThemeColor(Context context, int style, int attr) argument [all...] |
/frameworks/av/media/libstagefright/ |
H A D | AMRWriter.cpp | 121 pthread_attr_t attr; local 122 pthread_attr_init(&attr); 123 pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE); 128 pthread_create(&mThread, &attr, ThreadWrapper, this); 129 pthread_attr_destroy(&attr);
|
H A D | AACWriter.cpp | 126 pthread_attr_t attr; local 127 pthread_attr_init(&attr); 128 pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE); 133 pthread_create(&mThread, &attr, ThreadWrapper, this); 134 pthread_attr_destroy(&attr);
|
/frameworks/base/core/java/android/util/ |
H A D | StateSet.java | 67 R.attr.state_window_focused, VIEW_STATE_WINDOW_FOCUSED, 68 R.attr.state_selected, VIEW_STATE_SELECTED, 69 R.attr.state_focused, VIEW_STATE_FOCUSED, 70 R.attr.state_enabled, VIEW_STATE_ENABLED, 71 R.attr.state_pressed, VIEW_STATE_PRESSED, 72 R.attr.state_activated, VIEW_STATE_ACTIVATED, 73 R.attr.state_accelerated, VIEW_STATE_ACCELERATED, 74 R.attr.state_hovered, VIEW_STATE_HOVERED, 75 R.attr.state_drag_can_accept, VIEW_STATE_DRAG_CAN_ACCEPT, 76 R.attr 238 containsAttribute(int[][] stateSpecs, int attr) argument [all...] |
/frameworks/base/media/java/android/media/ |
H A D | AudioFocusRequest.java | 230 AudioAttributes attr, int focusGain, int flags) { 234 mAttr = attr; 229 AudioFocusRequest(OnAudioFocusChangeListener listener, Handler handler, AudioAttributes attr, int focusGain, int flags) argument
|
/frameworks/base/tools/aapt2/ |
H A D | ResourceParser_test.cpp | 41 input << R"(<attr name="foo"/>)" << std::endl; 229 "<attr name=\"foo\" format=\"string\"/>\n" 230 "<attr name=\"bar\"/>"; 233 Attribute* attr = test::GetValue<Attribute>(&table_, "attr/foo"); local 234 ASSERT_NE(nullptr, attr); 235 EXPECT_EQ(uint32_t(android::ResTable_map::TYPE_STRING), attr->type_mask); 237 attr = test::GetValue<Attribute>(&table_, "attr/bar"); 238 ASSERT_NE(nullptr, attr); 269 Attribute* attr = test::GetValue<Attribute>(&table_, "attr/foo"); local 290 Attribute* attr = test::GetValue<Attribute>(&table_, "attr/foo"); local 305 Attribute* attr = test::GetValue<Attribute>(&table_, "attr/foo"); local 509 Attribute* attr = test::GetValue<Attribute>(&table_, "attr/bar"); local 688 Attribute* attr = test::GetValue<Attribute>(&table_, "attr/foo"); local [all...] |
H A D | ResourceValues.cpp | 129 *out << "(attr-reference) ?"; 516 *out << "(attr) "; 537 const Attribute* attr, 540 if (attr->type_mask & android::ResTable_map::TYPE_BOOLEAN) { 544 if (attr->type_mask & android::ResTable_map::TYPE_COLOR) { 548 if (attr->type_mask & android::ResTable_map::TYPE_DIMENSION) { 552 if (attr->type_mask & android::ResTable_map::TYPE_ENUM) { 556 if (attr->type_mask & android::ResTable_map::TYPE_FLAGS) { 560 if (attr->type_mask & android::ResTable_map::TYPE_FLOAT) { 564 if (attr 536 BuildAttributeMismatchMessage(DiagMessage* msg, const Attribute* attr, const Item* value) argument [all...] |
/frameworks/base/tools/aapt2/compile/ |
H A D | InlineXmlFormatParser.cpp | 35 * XML Visitor that will find all <aapt:attr> elements for extraction. 51 if (el->namespace_uri != xml::kSchemaAapt || el->name != "attr") { 58 xml::Attribute* attr = el->FindAttribute({}, "name"); variable 59 if (!attr) { 66 Maybe<Reference> ref = ResourceUtils::ParseXmlAttributeName(attr->value); 69 DiagMessage(src) << "invalid XML attribute '" << attr->value << "'"); 149 // Extracted elements must be the only child of <aapt:attr>.
|
/frameworks/base/tools/aapt2/java/ |
H A D | ProguardRules.cpp | 93 for (const auto& attr : node->attributes) { 94 if (check_class && attr.namespace_uri.empty() && attr.name == "class" && 95 util::IsJavaClassName(attr.value)) { 96 AddClass(node->line_number, attr.value); 97 } else if (check_name && attr.namespace_uri == xml::kSchemaAndroid && 98 attr.name == "name" && util::IsJavaClassName(attr.value)) { 99 AddClass(node->line_number, attr.value); 100 } else if (attr 126 xml::Attribute* attr = variable 150 xml::Attribute* attr = node->FindAttribute({}, "class"); variable 172 xml::Attribute* attr = node->FindAttribute({}, "package"); variable 178 xml::Attribute* attr = variable 211 xml::Attribute* attr = node->FindAttribute(xml::kSchemaAndroid, "name"); variable [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
H A D | CustomBar.java | 257 private static int getColor(RenderResources renderResources, String attr) { argument 258 // From ?attr/foo to @color/bar. This is most likely an ItemResourceValue. 259 ResourceValue resource = renderResources.findItemInTheme(attr, true); 272 "Theme attribute @android:" + attr +
|
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/ |
H A D | ClassHasNativeVisitor.java | 61 public void visitAttribute(Attribute attr) { argument
|
/frameworks/support/compat/java/android/support/v4/content/res/ |
H A D | TypedArrayUtils.java | 277 * @return The resource ID value in the {@code context} specified by {@code attr}. If it does 280 public static int getAttr(Context context, int attr, int fallbackAttr) { argument 282 context.getTheme().resolveAttribute(attr, value, true); 284 return attr;
|
/frameworks/wilhelm/src/itf/ |
H A D | IPlay.cpp | 32 unsigned attr = ATTR_NONE; local 57 attr = ATTR_PLAY_STATE; 62 attr |= ATTR_BQ_ENQUEUE; 100 attr = ATTR_PLAY_STATE; 105 interface_unlock_exclusive_attributes(thiz, attr);
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | AudioPolicyMix.cpp | 320 status_t AudioPolicyMixCollection::getInputMixForAttr(audio_attributes_t attr, AudioMix **policyMix) argument 322 if (strncmp(attr.tags, "addr=", strlen("addr=")) != 0) { 325 String8 address(attr.tags + strlen("addr="));
|
/frameworks/base/cmds/incidentd/src/ |
H A D | Section.cpp | 112 pthread_attr_t attr; local 130 err = pthread_attr_init(&attr); 135 err = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); 137 pthread_attr_destroy(&attr); 140 err = pthread_create(&thread, &attr, worker_thread_func, (void*)data.get()); 142 pthread_attr_destroy(&attr); 145 pthread_attr_destroy(&attr);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
H A D | Utils.java | 163 return getColorAttr(context, android.R.attr.colorAccent); 168 return getColorAttr(context, android.R.attr.colorError); 181 return applyAlphaAttr(context, android.R.attr.disabledAlpha, inputColor); 185 public static int applyAlphaAttr(Context context, int attr, int inputColor) { argument 186 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); 200 public static int getColorAttr(Context context, int attr) { argument 201 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); 207 public static int getThemeAttr(Context context, int attr) { argument 208 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); 214 public static Drawable getDrawable(Context context, int attr) { argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
H A D | KeyguardSecurityViewFlipper.java | 53 public KeyguardSecurityViewFlipper(Context context, AttributeSet attr) { argument 54 super(context, attr);
|
/frameworks/base/tools/aapt2/cmd/ |
H A D | Util.cpp | 194 static Maybe<std::string> ExtractCompiledString(xml::Attribute* attr, std::string* out_error) { argument 195 if (attr->compiled_value != nullptr) { 196 String* compiled_str = ValueCast<String>(attr->compiled_value.get()); 210 if (!attr->value.empty()) { 211 return attr->value; 217 static Maybe<uint32_t> ExtractCompiledInt(xml::Attribute* attr, std::string* out_error) { argument 218 if (attr->compiled_value != nullptr) { 219 BinaryPrimitive* compiled_prim = ValueCast<BinaryPrimitive>(attr->compiled_value.get()); 231 Maybe<uint32_t> integer = ResourceUtils::ParseInt(attr->value); 236 error_msg << "'" << attr 241 ExtractSdkVersion(xml::Attribute* attr, std::string* out_error) argument [all...] |
/frameworks/base/tools/aapt2/link/ |
H A D | ReferenceLinker.cpp | 151 const Attribute* attr) { 154 ResourceUtils::TryParseItemForAttribute(*raw_string->value, attr); 157 if (!transformed && (attr->type_mask & android::ResTable_map::TYPE_STRING)) { 150 ParseValueWithAttribute(std::unique_ptr<Item> value, const Attribute* attr) argument
|
/frameworks/base/tools/aapt2/unflatten/ |
H A D | BinaryResourceParser.cpp | 509 std::unique_ptr<Attribute> attr = util::make_unique<Attribute>(is_weak); local 519 attr->type_mask = util::DeviceToHost32(type_mask_iter->value.data); 526 attr->min_int = static_cast<int32_t>(map_entry.value.data); 529 attr->max_int = static_cast<int32_t>(map_entry.value.data); 535 if (attr->type_mask & 540 attr->symbols.push_back(std::move(symbol)); 545 return attr;
|
/frameworks/base/tools/aapt2/xml/ |
H A D | XmlDom.h | 85 explicit AaptAttribute(const ::aapt::Attribute& attr, const Maybe<ResourceId>& resid = {}) argument 86 : attribute(attr), id(resid) {
|
/frameworks/base/tools/bit/ |
H A D | aapt.cpp | 89 const Attribute& attr = attributes[i]; local 90 if (attr.ns == ns && attr.name == name) { 91 return attr.value; 218 Attribute attr; local 222 attr.name = str; 224 attr.ns = scope->namespaces[string(str, 0, colon)]; 225 attr.name.assign(str, colon+1, string::npos); 227 attr.value = match[3]; 228 current->attributes.push_back(attr); [all...] |
/frameworks/compile/mclinker/include/mcld/MC/ |
H A D | Attribute.h | 168 const Attribute* attr() const { return m_pBase; } function in class:mcld::AttributeProxy
|
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/ |
H A D | XmlEditor.java | 102 for (AttributeContext attr : attributes(root)) { 103 rootAttributes.append(' ').append(attr.getText()); 332 private static String defaultReplacement(XMLParser.AttributeContext attr) { argument 333 String textWithQuotes = attr.attrValue.getText();
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/ |
H A D | TestUtils.java | 277 public static int getThemeAttrColor(Context context, int attr) { argument 278 final int[] attrs = { attr };
|