/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/ |
D | XmlParserUtils.java | 38 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 …]
|
D | IndexDataConverter.java | 217 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/ |
D | Message.java | 68 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 …]
|
D | EventReport.java | 46 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/apps/Settings/src/com/android/settings/core/ |
D | PreferenceXmlParserUtils.java | 112 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/core/ |
D | PreferenceXmlParserUtils.java | 112 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/ |
D | BaseAccountType.java | 658 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/ |
D | BaseAccountType.java | 147 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/ |
D | PreferenceXmlParserUtilsTest.java | 71 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/ |
D | CarUxRestrictionsConfigurationXmlParser.java | 123 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/ |
D | TwoActionPreference.java | 37 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 …]
|
D | ProgressBarPreference.java | 47 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/ |
D | DisabledCheckBoxPreference.java | 36 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/ |
D | KeypadButton.java | 44 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/ |
D | DisabledCheckBoxPreference.java | 37 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/ |
D | UxrButton.java | 72 public UxrButton(Context context, AttributeSet attrs) { in UxrButton() argument 73 super(context, attrs); in UxrButton() 74 init(context, attrs); in UxrButton() 77 public UxrButton(Context context, AttributeSet attrs, int defStyleAttr) { in UxrButton() argument 78 super(context, attrs, defStyleAttr); in UxrButton() 79 init(context, attrs); in UxrButton() 82 public UxrButton(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in UxrButton() argument 83 super(context, attrs, defStyleAttr, defStyleRes); in UxrButton() 84 init(context, attrs); in UxrButton() 87 private void init(Context context, AttributeSet attrs) { in init() argument [all …]
|
D | CropAlignedImageView.java | 44 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()
|
D | ClickThroughToolbar.java | 41 public ClickThroughToolbar(Context context, AttributeSet attrs) { in ClickThroughToolbar() argument 42 super(context, attrs); in ClickThroughToolbar() 43 initAttributes(context, attrs, 0 /* defStyleAttrs */); in ClickThroughToolbar() 46 public ClickThroughToolbar(Context context, AttributeSet attrs, int defStyleAttrs) { in ClickThroughToolbar() argument 47 super(context, attrs, defStyleAttrs); in ClickThroughToolbar() 48 initAttributes(context, attrs, defStyleAttrs); in ClickThroughToolbar() 51 private void initAttributes(Context context, AttributeSet attrs, int defStyleAttrs) { in initAttributes() argument 53 attrs, R.styleable.ClickThroughToolbar, defStyleAttrs, 0 /* defStyleRes */); in initAttributes()
|
/packages/providers/MediaProvider/src/com/android/providers/media/scan/ |
D | ModernMediaScanner.java | 348 public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) in preVisitDirectory() argument 359 return visitFile(dir, attrs); in preVisitDirectory() 363 public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) in visitFile() argument 390 final boolean sameTime = (lastModifiedTime(realFile, attrs) == dateModified); in visitFile() 391 final boolean sameSize = (attrs.size() == size); in visitFile() 392 if (attrs.isDirectory() || (sameTime && sameSize)) { in visitFile() 404 op = scanItem(existingId, file.toFile(), attrs, mVolumeName); in visitFile() 476 BasicFileAttributes attrs, String volumeName) { in scanItem() argument 485 if (attrs.isDirectory()) { in scanItem() 491 if (attrs.isDirectory()) { in scanItem() [all …]
|
/packages/apps/Car/Notification/src/com/android/car/notification/template/ |
D | CarNotificationBodyView.java | 55 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 …]
|
D | CarNotificationActionsView.java | 63 public CarNotificationActionsView(Context context, AttributeSet attrs) { in CarNotificationActionsView() argument 64 super(context, attrs); in CarNotificationActionsView() 66 init(attrs); in CarNotificationActionsView() 69 public CarNotificationActionsView(Context context, AttributeSet attrs, int defStyleAttr) { in CarNotificationActionsView() argument 70 super(context, attrs, defStyleAttr); in CarNotificationActionsView() 72 init(attrs); in CarNotificationActionsView() 75 public CarNotificationActionsView(Context context, AttributeSet attrs, int defStyleAttr, in CarNotificationActionsView() argument 77 super(context, attrs, defStyleAttr, defStyleRes); in CarNotificationActionsView() 79 init(attrs); in CarNotificationActionsView() 86 private void init(AttributeSet attrs) { in init() argument [all …]
|
D | CarNotificationHeaderView.java | 64 public CarNotificationHeaderView(Context context, AttributeSet attrs) { in CarNotificationHeaderView() argument 65 super(context, attrs); in CarNotificationHeaderView() 66 init(attrs); in CarNotificationHeaderView() 69 public CarNotificationHeaderView(Context context, AttributeSet attrs, int defStyleAttr) { in CarNotificationHeaderView() argument 70 super(context, attrs, defStyleAttr); in CarNotificationHeaderView() 71 init(attrs); in CarNotificationHeaderView() 74 public CarNotificationHeaderView(Context context, AttributeSet attrs, int defStyleAttr, in CarNotificationHeaderView() argument 76 super(context, attrs, defStyleAttr, defStyleRes); in CarNotificationHeaderView() 77 init(attrs); in CarNotificationHeaderView() 88 private void init(AttributeSet attrs) { in init() argument [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/security/ |
D | PinPadView.java | 75 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/Car/libs/car-ui-lib/src/com/android/car/ui/preference/ |
D | CarUiPreference.java | 36 public CarUiPreference(Context context, AttributeSet attrs, in CarUiPreference() argument 38 super(context, attrs, defStyleAttr, defStyleRes); in CarUiPreference() 39 init(context, attrs, defStyleAttr, defStyleRes); in CarUiPreference() 42 public CarUiPreference(Context context, AttributeSet attrs, int defStyleAttr) { in CarUiPreference() argument 43 this(context, attrs, defStyleAttr, R.style.Preference_CarUi_Preference); in CarUiPreference() 46 public CarUiPreference(Context context, AttributeSet attrs) { in CarUiPreference() argument 47 this(context, attrs, R.attr.carUiPreferenceStyle); in CarUiPreference() 54 public void init(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in init() argument 58 attrs, in init()
|
/packages/apps/Dialer/java/com/android/dialer/common/preference/ |
D | SwitchPreferenceWithClickableSummary.java | 51 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()
|