Lines Matching refs:text
758 def inner(text): argument
760 text += '\n\n<b>Units</b>: %s\n' % (dedent(entry.units))
762 text += '\n\n<b>Possible values:</b>\n<ul>\n'
765 text += ' <li>{@link #%s %s}</li>\n' % ( jenum_value(entry, value ), value.name )
766 text += '</ul>\n'
769 text += '\n\n<b>Available values for this device:</b><br>\n'
771 text += '\n\n<b>Range of valid values:</b><br>\n'
772 text += '%s\n' % (dedent(entry.range))
774 text += '\n\n<b>Optional</b> - The value for this key may be {@code null} on some devices.\n'
776 text += \
781 text += \
786 text += "\nThis key is available on all devices."
788 …text += "\n\n<b>Permission {@link android.Manifest.permission#CAMERA} is needed to access this pro…
790 return text
828 def javadoc_formatter(text): argument
832 javatext = md(text, JAVADOC_IMAGE_SRC_METADATA)
861 text = '\n'
863 text = text + '\n@see %s#%s' % (kind_mapping[node.kind],
866 return text if text != '\n' else ''
916 def ndkdoc_formatter(text): argument
919 ndktext = md(text, NDKDOC_IMAGE_SRC_METADATA, False)
957 text = '\n'
959 text = text + '\n@see %s' % (csym(ndk(node.name)))
961 return text if text != '\n' else ''
1015 def hidldoc_formatter(text): argument
1018 hidltext = md(text, NDKDOC_IMAGE_SRC_METADATA, False)
1051 text = '\n'
1053 text = text + '\n@see %s' % (csym(node.name))
1055 return text if text != '\n' else ''
1074 def dedent(text): argument
1091 text = textwrap.dedent(text)
1092 text_lines = text.split('\n')
1095 text = text_lines[0] + "\n" + text_not_first
1097 return text
1099 def md(text, img_src_prefix="", table_ext=True): argument
1140 text = dedent(text)
1145 text = markdown.markdown(text, extensions=md_extensions)
1148 text = re.sub(r'src="([^"]*)"', 'src="' + img_src_prefix + r'\1"', text)
1149 return text
1151 def filter_tags(text, metadata, filter_function, summary_function = None): argument
1239 text = re.sub(tag_match, filter_sub, text)
1242 return text + summary_function(sorted(tag_set, key=lambda x: x.name))
1244 return text
1246 def ndk_replace_tag_wildcards(text, metadata): argument
1264 text = re.sub(tag_match, filter_sub, text)
1265 text = re.sub(tag_match_2, filter_sub_2, text)
1266 return text
1268 def filter_links(text, filter_function, summary_function = None): argument
1306 text = re.sub(tag_match, filter_sub, text)
1309 return text + summary_function(sorted(target_set))
1311 return text
1443 def wbr(text): argument
1463 def wbr_filter(text): argument
1464 new_txt = text
1468 for words in text.split(" "):
1482 soup = bs4.BeautifulSoup(text, features='html.parser')
1485 for navigable_string in soup.findAll(text=True):