Home
last modified time | relevance | path

Searched refs:attrs (Results 1 – 25 of 928) sorted by relevance

12345678910>>...38

/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/
DXmlParserUtils.java38 public static String getDataKey(Context context, AttributeSet attrs) { in getDataKey() argument
39 return getData(context, attrs, in getDataKey()
44 public static String getDataTitle(Context context, AttributeSet attrs) { in getDataTitle() argument
45 return getData(context, attrs, in getDataTitle()
50 public static String getDataSummary(Context context, AttributeSet attrs) { in getDataSummary() argument
51 return getData(context, attrs, in getDataSummary()
56 public static String getDataSummaryOn(Context context, AttributeSet attrs) { in getDataSummaryOn() argument
57 return getData(context, attrs, in getDataSummaryOn()
62 public static String getDataSummaryOff(Context context, AttributeSet attrs) { in getDataSummaryOff() argument
63 return getData(context, attrs, in getDataSummaryOff()
[all …]
DIndexDataConverter.java217 final AttributeSet attrs = Xml.asAttributeSet(parser); in convertResource() local
219 final String screenTitle = XmlParserUtils.getDataTitle(context, attrs); in convertResource()
220 final String headerKey = XmlParserUtils.getDataKey(context, attrs); in convertResource()
242 headerTitle = XmlParserUtils.getDataTitle(context, attrs); in convertResource()
243 headerSummary = XmlParserUtils.getDataSummary(context, attrs); in convertResource()
244 headerKeywords = XmlParserUtils.getDataKeywords(context, attrs); in convertResource()
279 title = XmlParserUtils.getDataTitle(context, attrs); in convertResource()
280 key = XmlParserUtils.getDataKey(context, attrs); in convertResource()
282 keywords = XmlParserUtils.getDataKeywords(context, attrs); in convertResource()
283 iconResId = XmlParserUtils.getDataIcon(context, attrs); in convertResource()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
DMessage.java68 Message(HashMap<String, String> attrs) throws IllegalArgumentException { in Message() argument
73 new BigInteger(attrs.get("handle"), 16); in Message()
75 mHandle = attrs.get("handle"); in Message()
84 mSubject = attrs.get("subject"); in Message()
85 String dateTime = attrs.get("datetime"); in Message()
94 mSenderName = attrs.get("sender_name"); in Message()
96 mSenderAddressing = attrs.get("sender_addressing"); in Message()
98 mReplytoAddressing = attrs.get("replyto_addressing"); in Message()
100 mRecipientName = attrs.get("recipient_name"); in Message()
102 mRecipientAddressing = attrs.get("recipient_addressing"); in Message()
[all …]
DEventReport.java46 private EventReport(HashMap<String, String> attrs) throws IllegalArgumentException { in EventReport() argument
47 mType = parseType(attrs.get("type")); in EventReport()
50 String handle = attrs.get("handle"); in EventReport()
53 new BigInteger(attrs.get("handle"), 16); in EventReport()
55 mHandle = attrs.get("handle"); in EventReport()
63 mFolder = attrs.get("folder"); in EventReport()
65 mOldFolder = attrs.get("old_folder"); in EventReport()
68 String s = attrs.get("msg_type"); in EventReport()
95 HashMap<String, String> attrs = new HashMap<String, String>(); in fromStream() local
98 attrs.put(xpp.getAttributeName(i), xpp.getAttributeValue(i)); in fromStream()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/core/
DPreferenceXmlParserUtils.java112 public static String getDataKey(Context context, AttributeSet attrs) { in getDataKey() argument
113 return getStringData(context, attrs, in getDataKey()
122 public static String getDataTitle(Context context, AttributeSet attrs) { in getDataTitle() argument
123 return getStringData(context, attrs, in getDataTitle()
132 public static String getDataSummary(Context context, AttributeSet attrs) { in getDataSummary() argument
133 return getStringData(context, attrs, in getDataSummary()
138 public static String getDataSummaryOn(Context context, AttributeSet attrs) { in getDataSummaryOn() argument
139 return getStringData(context, attrs, in getDataSummaryOn()
144 public static String getDataSummaryOff(Context context, AttributeSet attrs) { in getDataSummaryOff() argument
145 return getStringData(context, attrs, in getDataSummaryOff()
[all …]
/packages/apps/Settings/src/com/android/settings/core/
DPreferenceXmlParserUtils.java112 public static String getDataKey(Context context, AttributeSet attrs) { in getDataKey() argument
113 return getStringData(context, attrs, in getDataKey()
122 public static String getDataTitle(Context context, AttributeSet attrs) { in getDataTitle() argument
123 return getStringData(context, attrs, in getDataTitle()
132 public static String getDataSummary(Context context, AttributeSet attrs) { in getDataSummary() argument
133 return getStringData(context, attrs, in getDataSummary()
138 public static String getDataSummaryOn(Context context, AttributeSet attrs) { in getDataSummaryOn() argument
139 return getStringData(context, attrs, in getDataSummaryOn()
144 public static String getDataSummaryOff(Context context, AttributeSet attrs) { in getDataSummaryOff() argument
145 return getStringData(context, attrs, in getDataSummaryOff()
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/account/
DBaseAccountType.java658 protected final void parseEditSchema(Context context, XmlPullParser parser, AttributeSet attrs) in parseEditSchema() argument
673 for (DataKind kind : KindParser.INSTANCE.parseDataKindTag(context, parser, attrs)) { in parseEditSchema()
683 private static boolean getAttr(AttributeSet attrs, String attribute, boolean defaultValue) { in getAttr() argument
684 return attrs.getAttributeBooleanValue(null, attribute, defaultValue); in getAttr()
687 private static int getAttr(AttributeSet attrs, String attribute, int defaultValue) { in getAttr() argument
688 return attrs.getAttributeIntValue(null, attribute, defaultValue); in getAttr()
691 private static String getAttr(AttributeSet attrs, String attribute) { in getAttr() argument
692 return attrs.getAttributeValue(null, attribute); in getAttr()
730 AttributeSet attrs) in parseDataKindTag() argument
732 final String kind = getAttr(attrs, Attr.KIND); in parseDataKindTag()
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/model/account/
DBaseAccountType.java147 private static boolean getAttr(AttributeSet attrs, String attribute, boolean defaultValue) { in getAttr() argument
148 return attrs.getAttributeBooleanValue(null, attribute, defaultValue); in getAttr()
151 private static int getAttr(AttributeSet attrs, String attribute, int defaultValue) { in getAttr() argument
152 return attrs.getAttributeIntValue(null, attribute, defaultValue); in getAttr()
155 private static String getAttr(AttributeSet attrs, String attribute) { in getAttr() argument
156 return attrs.getAttributeValue(null, attribute); in getAttr()
529 protected final void parseEditSchema(Context context, XmlPullParser parser, AttributeSet attrs) in parseEditSchema() argument
544 for (DataKind kind : KindParser.INSTANCE.parseDataKindTag(context, parser, attrs)) { in parseEditSchema()
842 Context context, XmlPullParser parser, AttributeSet attrs) in parseDataKindTag() argument
844 final String kind = getAttr(attrs, Attr.KIND); in parseDataKindTag()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/
DPreferenceXmlParserUtilsTest.java71 final AttributeSet attrs = Xml.asAttributeSet(parser); in testDataTitleValid_ReturnsPreferenceTitle() local
72 String title = PreferenceXmlParserUtils.getDataTitle(mContext, attrs); in testDataTitleValid_ReturnsPreferenceTitle()
80 final AttributeSet attrs = Xml.asAttributeSet(parser); in testDataKeywordsValid_ReturnsPreferenceKeywords() local
81 String keywords = PreferenceXmlParserUtils.getDataKeywords(mContext, attrs); in testDataKeywordsValid_ReturnsPreferenceKeywords()
90 final AttributeSet attrs = Xml.asAttributeSet(parser); in testDataKeyValid_ReturnsPreferenceKey() local
91 String key = PreferenceXmlParserUtils.getDataKey(mContext, attrs); in testDataKeyValid_ReturnsPreferenceKey()
100 final AttributeSet attrs = Xml.asAttributeSet(parser); in testDataSummaryValid_ReturnsPreferenceSummary() local
101 String summary = PreferenceXmlParserUtils.getDataSummary(mContext, attrs); in testDataSummaryValid_ReturnsPreferenceSummary()
110 final AttributeSet attrs = Xml.asAttributeSet(parser); in testDataSummaryOnOffValid_ReturnsPreferenceSummaryOnOff() local
112 assertThat(PreferenceXmlParserUtils.getDataSummaryOn(mContext, attrs)) in testDataSummaryOnOffValid_ReturnsPreferenceSummaryOnOff()
[all …]
/packages/services/Car/service/src/com/android/car/
DCarUxRestrictionsConfigurationXmlParser.java123 AttributeSet attrs = Xml.asAttributeSet(parser); in traverseUntilEndOfDocument() local
133 if (!mapDrivingStateToRestrictions(parser, attrs)) { in traverseUntilEndOfDocument()
139 if (!parseRestrictionParameters(parser, attrs)) { in traverseUntilEndOfDocument()
160 private boolean mapDrivingStateToRestrictions(XmlResourceParser parser, AttributeSet attrs) in mapDrivingStateToRestrictions() argument
162 if (parser == null || attrs == null) { in mapDrivingStateToRestrictions()
173 TypedArray a = mContext.getResources().obtainAttributes(attrs, in mapDrivingStateToRestrictions()
192 TypedArray a = mContext.getResources().obtainAttributes(attrs, in mapDrivingStateToRestrictions()
210 if (!parseAllRestrictions(parser, attrs, drivingState, speedRange)) { in mapDrivingStateToRestrictions()
223 private boolean parseAllRestrictions(XmlResourceParser parser, AttributeSet attrs, in parseAllRestrictions() argument
226 if (parser == null || attrs == null) { in parseAllRestrictions()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DTwoActionPreference.java37 public TwoActionPreference(Context context, AttributeSet attrs, in TwoActionPreference() argument
39 super(context, attrs, defStyleAttr, defStyleRes); in TwoActionPreference()
40 init(attrs); in TwoActionPreference()
43 public TwoActionPreference(Context context, AttributeSet attrs, int defStyleAttr) { in TwoActionPreference() argument
44 super(context, attrs, defStyleAttr); in TwoActionPreference()
45 init(attrs); in TwoActionPreference()
48 public TwoActionPreference(Context context, AttributeSet attrs) { in TwoActionPreference() argument
49 super(context, attrs); in TwoActionPreference()
50 init(attrs); in TwoActionPreference()
58 private void init(AttributeSet attrs) { in init() argument
[all …]
DProgressBarPreference.java47 Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in ProgressBarPreference() argument
48 super(context, attrs, defStyleAttr, defStyleRes); in ProgressBarPreference()
49 init(attrs); in ProgressBarPreference()
52 public ProgressBarPreference(Context context, AttributeSet attrs, int defStyleAttr) { in ProgressBarPreference() argument
53 super(context, attrs, defStyleAttr); in ProgressBarPreference()
54 init(attrs); in ProgressBarPreference()
57 public ProgressBarPreference(Context context, AttributeSet attrs) { in ProgressBarPreference() argument
58 super(context, attrs); in ProgressBarPreference()
59 init(attrs); in ProgressBarPreference()
67 private void init(AttributeSet attrs) { in init() argument
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DDisabledCheckBoxPreference.java36 public DisabledCheckBoxPreference(Context context, AttributeSet attrs, int defStyleAttr, in DisabledCheckBoxPreference() argument
38 super(context, attrs, defStyleAttr, defStyleRes); in DisabledCheckBoxPreference()
39 setupDisabledCheckBoxPreference(context, attrs, defStyleAttr, defStyleRes); in DisabledCheckBoxPreference()
42 public DisabledCheckBoxPreference(Context context, AttributeSet attrs, int defStyleAttr) { in DisabledCheckBoxPreference() argument
43 super(context, attrs, defStyleAttr); in DisabledCheckBoxPreference()
44 setupDisabledCheckBoxPreference(context, attrs, defStyleAttr, 0); in DisabledCheckBoxPreference()
47 public DisabledCheckBoxPreference(Context context, AttributeSet attrs) { in DisabledCheckBoxPreference() argument
48 super(context, attrs); in DisabledCheckBoxPreference()
49 setupDisabledCheckBoxPreference(context, attrs, 0, 0); in DisabledCheckBoxPreference()
57 private void setupDisabledCheckBoxPreference(Context context, AttributeSet attrs, in setupDisabledCheckBoxPreference() argument
[all …]
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/dialpad/
DKeypadButton.java44 public KeypadButton(Context context, AttributeSet attrs) { in KeypadButton() argument
45 super(context, attrs); in KeypadButton()
46 init(context, attrs); in KeypadButton()
49 public KeypadButton(Context context, AttributeSet attrs, int defStyleAttrs) { in KeypadButton() argument
50 super(context, attrs, defStyleAttrs); in KeypadButton()
51 init(context, attrs); in KeypadButton()
54 public KeypadButton(Context context, AttributeSet attrs, int defStyleAttrs, int defStyleRes) { in KeypadButton() argument
55 super(context, attrs, defStyleAttrs, defStyleRes); in KeypadButton()
56 init(context, attrs); in KeypadButton()
59 private void init(Context context, AttributeSet attrs) { in init() argument
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DDisabledCheckBoxPreference.java37 public DisabledCheckBoxPreference(Context context, AttributeSet attrs, int defStyleAttr, in DisabledCheckBoxPreference() argument
39 super(context, attrs, defStyleAttr, defStyleRes); in DisabledCheckBoxPreference()
40 setupDisabledCheckBoxPreference(context, attrs, defStyleAttr, defStyleRes); in DisabledCheckBoxPreference()
43 public DisabledCheckBoxPreference(Context context, AttributeSet attrs, int defStyleAttr) { in DisabledCheckBoxPreference() argument
44 super(context, attrs, defStyleAttr); in DisabledCheckBoxPreference()
45 setupDisabledCheckBoxPreference(context, attrs, defStyleAttr, 0); in DisabledCheckBoxPreference()
48 public DisabledCheckBoxPreference(Context context, AttributeSet attrs) { in DisabledCheckBoxPreference() argument
49 super(context, attrs); in DisabledCheckBoxPreference()
50 setupDisabledCheckBoxPreference(context, attrs, 0, 0); in DisabledCheckBoxPreference()
58 private void setupDisabledCheckBoxPreference(Context context, AttributeSet attrs, in setupDisabledCheckBoxPreference() argument
[all …]
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DUxrButton.java69 public UxrButton(Context context, AttributeSet attrs) { in UxrButton() argument
70 super(context, attrs); in UxrButton()
71 init(context, attrs); in UxrButton()
74 public UxrButton(Context context, AttributeSet attrs, int defStyleAttr) { in UxrButton() argument
75 super(context, attrs, defStyleAttr); in UxrButton()
76 init(context, attrs); in UxrButton()
79 public UxrButton(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in UxrButton() argument
80 super(context, attrs, defStyleAttr, defStyleRes); in UxrButton()
81 init(context, attrs); in UxrButton()
84 private void init(Context context, AttributeSet attrs) { in init() argument
[all …]
DCropAlignedImageView.java44 public CropAlignedImageView(Context context, AttributeSet attrs) { in CropAlignedImageView() argument
45 this(context, attrs, 0); in CropAlignedImageView()
48 public CropAlignedImageView(Context context, AttributeSet attrs, int defStyleAttr) { in CropAlignedImageView() argument
49 this(context, attrs, defStyleAttr, 0); in CropAlignedImageView()
52 public CropAlignedImageView(Context context, AttributeSet attrs, int defStyleAttr, in CropAlignedImageView() argument
54 super(context, attrs, defStyleAttr, defStyleRes); in CropAlignedImageView()
55 init(context, attrs, defStyleAttr, defStyleRes); in CropAlignedImageView()
58 private void init(Context context, AttributeSet attrs, int defStyleAttr, in init() argument
61 attrs, R.styleable.CrossfadeImageView, defStyleAttr, defStyleRes); in init()
DClickThroughToolbar.java38 public ClickThroughToolbar(Context context, AttributeSet attrs) { in ClickThroughToolbar() argument
39 super(context, attrs); in ClickThroughToolbar()
40 initAttributes(context, attrs, 0 /* defStyleAttrs */); in ClickThroughToolbar()
43 public ClickThroughToolbar(Context context, AttributeSet attrs, int defStyleAttrs) { in ClickThroughToolbar() argument
44 super(context, attrs, defStyleAttrs); in ClickThroughToolbar()
45 initAttributes(context, attrs, defStyleAttrs); in ClickThroughToolbar()
48 private void initAttributes(Context context, AttributeSet attrs, int defStyleAttrs) { in initAttributes() argument
50 attrs, R.styleable.ClickThroughToolbar, defStyleAttrs, 0 /* defStyleRes */); in initAttributes()
/packages/providers/MediaProvider/src/com/android/providers/media/scan/
DModernMediaScanner.java350 public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) in preVisitDirectory() argument
361 return visitFile(dir, attrs); in preVisitDirectory()
365 public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) in visitFile() argument
392 final boolean sameTime = (lastModifiedTime(realFile, attrs) == dateModified); in visitFile()
393 final boolean sameSize = (attrs.size() == size); in visitFile()
394 if (attrs.isDirectory() || (sameTime && sameSize)) { in visitFile()
406 op = scanItem(existingId, file.toFile(), attrs, mVolumeName); in visitFile()
478 BasicFileAttributes attrs, String volumeName) { in scanItem() argument
487 if (attrs.isDirectory()) { in scanItem()
493 if (attrs.isDirectory()) { in scanItem()
[all …]
/packages/apps/Car/Notification/src/com/android/car/notification/template/
DCarNotificationBodyView.java55 public CarNotificationBodyView(Context context, AttributeSet attrs) { in CarNotificationBodyView() argument
56 super(context, attrs); in CarNotificationBodyView()
57 init(attrs); in CarNotificationBodyView()
60 public CarNotificationBodyView(Context context, AttributeSet attrs, int defStyleAttr) { in CarNotificationBodyView() argument
61 super(context, attrs, defStyleAttr); in CarNotificationBodyView()
62 init(attrs); in CarNotificationBodyView()
66 Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in CarNotificationBodyView() argument
67 super(context, attrs, defStyleAttr, defStyleRes); in CarNotificationBodyView()
68 init(attrs); in CarNotificationBodyView()
79 private void init(AttributeSet attrs) { in init() argument
[all …]
DCarNotificationActionsView.java59 public CarNotificationActionsView(Context context, AttributeSet attrs) { in CarNotificationActionsView() argument
60 super(context, attrs); in CarNotificationActionsView()
62 init(attrs); in CarNotificationActionsView()
65 public CarNotificationActionsView(Context context, AttributeSet attrs, int defStyleAttr) { in CarNotificationActionsView() argument
66 super(context, attrs, defStyleAttr); in CarNotificationActionsView()
68 init(attrs); in CarNotificationActionsView()
71 public CarNotificationActionsView(Context context, AttributeSet attrs, int defStyleAttr, in CarNotificationActionsView() argument
73 super(context, attrs, defStyleAttr, defStyleRes); in CarNotificationActionsView()
75 init(attrs); in CarNotificationActionsView()
82 private void init(AttributeSet attrs) { in init() argument
[all …]
DCarNotificationHeaderView.java62 public CarNotificationHeaderView(Context context, AttributeSet attrs) { in CarNotificationHeaderView() argument
63 super(context, attrs); in CarNotificationHeaderView()
64 init(attrs); in CarNotificationHeaderView()
67 public CarNotificationHeaderView(Context context, AttributeSet attrs, int defStyleAttr) { in CarNotificationHeaderView() argument
68 super(context, attrs, defStyleAttr); in CarNotificationHeaderView()
69 init(attrs); in CarNotificationHeaderView()
72 public CarNotificationHeaderView(Context context, AttributeSet attrs, int defStyleAttr, in CarNotificationHeaderView() argument
74 super(context, attrs, defStyleAttr, defStyleRes); in CarNotificationHeaderView()
75 init(attrs); in CarNotificationHeaderView()
86 private void init(AttributeSet attrs) { in init() argument
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DPinPadView.java75 public PinPadView(Context context, AttributeSet attrs) { in PinPadView() argument
76 super(context, attrs); in PinPadView()
77 init(attrs, 0, 0); in PinPadView()
80 public PinPadView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) { in PinPadView() argument
81 super(context, attrs, defStyleAttr); in PinPadView()
82 init(attrs, defStyleAttr, 0); in PinPadView()
85 public PinPadView(Context context, @Nullable AttributeSet attrs, int defStyleAttr, in PinPadView() argument
87 super(context, attrs, defStyleAttr, defStyleRes); in PinPadView()
88 init(attrs, defStyleAttr, defStyleRes); in PinPadView()
133 private void init(AttributeSet attrs, int defStyleAttr, int defStyleRes) { in init() argument
[all …]
/packages/apps/Dialer/java/com/android/dialer/common/preference/
DSwitchPreferenceWithClickableSummary.java51 Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in SwitchPreferenceWithClickableSummary() argument
52 super(context, attrs, defStyleAttr, defStyleRes); in SwitchPreferenceWithClickableSummary()
54 context.obtainStyledAttributes(attrs, R.styleable.SwitchPreferenceWithClickableSummary); in SwitchPreferenceWithClickableSummary()
61 Context context, AttributeSet attrs, int defStyleAttr) { in SwitchPreferenceWithClickableSummary() argument
62 super(context, attrs, defStyleAttr, defStyleAttr); in SwitchPreferenceWithClickableSummary()
64 context.obtainStyledAttributes(attrs, R.styleable.SwitchPreferenceWithClickableSummary); in SwitchPreferenceWithClickableSummary()
70 public SwitchPreferenceWithClickableSummary(Context context, AttributeSet attrs) { in SwitchPreferenceWithClickableSummary() argument
71 super(context, attrs); in SwitchPreferenceWithClickableSummary()
73 context.obtainStyledAttributes(attrs, R.styleable.SwitchPreferenceWithClickableSummary); in SwitchPreferenceWithClickableSummary()
/packages/apps/Dialer/java/com/android/incallui/autoresizetext/
DAutoResizeTextView.java59 public AutoResizeTextView(Context context, AttributeSet attrs) { in AutoResizeTextView() argument
60 super(context, attrs, 0); in AutoResizeTextView()
61 initialize(context, attrs, 0, 0); in AutoResizeTextView()
64 public AutoResizeTextView(Context context, AttributeSet attrs, int defStyleAttr) { in AutoResizeTextView() argument
65 super(context, attrs, defStyleAttr); in AutoResizeTextView()
66 initialize(context, attrs, defStyleAttr, 0); in AutoResizeTextView()
70 Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in AutoResizeTextView() argument
71 super(context, attrs, defStyleAttr, defStyleRes); in AutoResizeTextView()
72 initialize(context, attrs, defStyleAttr, defStyleRes); in AutoResizeTextView()
76 Context context, @Nullable AttributeSet attrs, int defStyleAttr, int defStyleRes) { in initialize() argument
[all …]

12345678910>>...38