/packages/apps/Email/emailcommon/src/org/apache/commons/io/filefilter/ |
PrefixFileFilter.java | 49 /** The filename prefixes to search for */
50 private final String[] prefixes;
field in class:PrefixFileFilter 78 this.prefixes = new String[] {prefix};
83 * Constructs a new Prefix file filter for any of an array of prefixes.
88 * @param prefixes the prefixes to allow, must not be null
91 public PrefixFileFilter(String[] prefixes) {
92 this(prefixes, IOCase.SENSITIVE);
96 * Constructs a new Prefix file filter for any of an array of prefixes
102 * @param prefixes the prefixes to allow, must not be null [all...] |
/external/chromium/chrome/browser/safe_browsing/ |
prefix_set_unittest.cc | 29 // Generate a set of random prefixes to share between tests. For 41 // Check that all elements of |prefixes| are in |prefix_set|, and 45 const std::vector<SBPrefix> &prefixes) { 46 // The set can generate the prefixes it believes it has, so that's 48 std::set<SBPrefix> check(prefixes.begin(), prefixes.end()); 54 for (size_t i = 0; i < prefixes.size(); ++i) { 55 EXPECT_TRUE(prefix_set->Exists(prefixes[i])); 57 const SBPrefix left_sibling = prefixes[i] - 1; 61 const SBPrefix right_sibling = prefixes[i] + 1 185 std::vector<SBPrefix> prefixes; local 212 std::vector<SBPrefix> prefixes; local 243 std::vector<SBPrefix> prefixes; local 438 std::vector<SBPrefix> prefixes; local [all...] |
filter_false_positive_perftest.cc | 103 // Constructs a bloom filter of the appropriate size from the provided prefixes. 105 const std::vector<SBPrefix>& prefixes, 108 const int key_count = std::max(static_cast<int>(prefixes.size()), 113 // Add the prefixes to it. 114 for (size_t i = 0; i < prefixes.size(); ++i) 115 (*bloom_filter)->Insert(prefixes[i]); 117 std::cout << "Bloom filter with prefixes: " << prefixes.size() 123 // Reads the set of add prefixes contained in a SafeBrowsing database into a 126 bool ReadDatabase(const FilePath& path, std::vector<SBPrefix>* prefixes) { 251 std::vector<SBPrefix> prefixes; local [all...] |
prefix_set.h | 5 // A read-only set implementation for |SBPrefix| items. Prefixes are 19 // prefixes of a certain size. As of this writing, my safe-browsing 21 // 653132 add prefixes 32 // overhead starts to become a problem a bit under 200k prefixes. The 34 // 75k prefixes. Fortunately, the actual memory footprint also falls. 66 // |true| if |prefix| was in |prefixes| passed to the constructor. 73 // Regenerate the vector of prefixes passed to the constructor into 74 // |prefixes|. Prefixes will be added in sorted order. 75 void GetPrefixes(std::vector<SBPrefix>* prefixes) const [all...] |
safe_browsing_database.cc | 67 // |include_whitelist_hashes| is true we will generate additional path-prefixes 111 // Get the prefixes matching the download |urls|. 113 std::vector<SBPrefix>* prefixes) { 119 prefixes->push_back(full_hashes[i].prefix); 262 // |prefixes|. For now, |prefixes| is useful while debugging 264 std::vector<SBPrefix> prefixes; local 266 prefixes.push_back(add_prefixes[i].prefix); 269 std::sort(prefixes.begin(), prefixes.end()) 1049 std::vector<SBAddPrefix> prefixes; local [all...] |
safe_browsing_database_unittest.cc | 81 // Same as InsertAddChunkHostPrefixUrl, but with two urls for prefixes. 146 // Same as InsertSubChunkHostPrefixUrl, but with two urls for prefixes. 623 // Test removing all the prefixes from an add chunk. 839 std::vector<SBPrefix> prefixes; local 840 database_->CacheHashResults(prefixes, results); 851 std::vector<SBPrefix> prefixes; local 855 &listname, &prefixes, &full_hashes, Time::Now()); 860 prefixes.clear(); 866 &listname, &prefixes, &full_hashes, Time::Now()); 871 prefixes.clear() 1397 std::vector<SBPrefix> prefixes; local [all...] |
safe_browsing_database.h | 85 // prefixes. This function is safe to call from threads other than 94 // true, |prefix_hits| should contain the prefixes for the URLs that were in 138 // cache the prefixes until the next update so that we don't have to issue 141 const std::vector<SBPrefix>& prefixes, 223 virtual void CacheHashResults(const std::vector<SBPrefix>& prefixes, 272 // Helper function to compare addprefixes in download_store_ with |prefixes|. 276 // matching prefixes. 278 const std::vector<SBPrefix>& prefixes, 292 // For browsing related (phishing and malware URLs) chunks and prefixes. 296 // For download related (download URL and binary hash) chunks and prefixes [all...] |
protocol_parser.h | 75 // Parse the response from a chunk URL request and returns the hosts/prefixes 95 void FormatGetHash(const std::vector<SBPrefix>& prefixes,
|
/libcore/luni/src/test/java/tests/api/org/xml/sax/helpers/ |
NamespaceSupportTest.java | 56 Enumeration<String> prefixes = ns.getDeclaredPrefixes(); local 58 while (prefixes.hasMoreElements()) { 59 prefix = prefixes.nextElement(); 126 // Part 1: Check that xml and xmlns are not accepted as prefixes. 134 // prefixes. 161 ArrayList<String> prefixes; local 163 prefixes = Collections.list(ns.getPrefixes(marketUri)); 164 assertTrue("Test 1: Incorrect set of prefixes returned.", 165 expected.containsAll(prefixes) && prefixes.containsAll(expected)) 182 ArrayList<String> prefixes; local 193 ArrayList<String> prefixes; local 315 ArrayList<String> prefixes = Collections.list(ns.getPrefixes()); local [all...] |
/external/apache-xml/src/main/java/org/apache/xml/serializer/dom3/ |
NamespaceSupport.java | 156 // ignore "xml" and "xmlns" prefixes
252 String[] prefixes = new String[fNamespaceSize];
local 253 fPrefixes = prefixes;
270 return new Prefixes(fPrefixes, count);
273 protected final class Prefixes implements Enumeration {
274 private String[] prefixes;
field in class:NamespaceSupport.Prefixes 279 * Constructor for Prefixes.
281 public Prefixes(String [] prefixes, int size) {
282 this.prefixes = prefixes; [all...] |
/libcore/xml/src/main/java/org/kxml2/kdom/ |
Element.java | 39 protected Vector prefixes; field in class:Element 161 return (prefixes == null ? 0 : prefixes.size ()); 166 return ((String []) prefixes.elementAt (i)) [0]; 170 return ((String []) prefixes.elementAt (i)) [1]; 271 if (prefixes == null) prefixes = new Vector (); 272 prefixes.addElement (new String [] {prefix, namespace}); 312 if (prefixes != null) { 313 for (int i = 0; i < prefixes.size(); i++) [all...] |
/external/apache-xml/src/main/java/org/apache/xml/serializer/ |
NamespaceMappings.java | 56 * processed. At any given moment of processing the currently visible prefixes 67 * This member is continually incremented when new prefixes need to be 91 * All prefixes pushed at the current depth can be 168 Enumeration prefixes = m_namespaces.keys(); local 169 while (prefixes.hasMoreElements()) 171 String prefix = (String) prefixes.nextElement(); 185 Enumeration prefixes = m_namespaces.keys(); local 186 while (prefixes.hasMoreElements()) 188 String prefix = (String) prefixes.nextElement(); 204 // Prefixes "xml" and "xmlns" cannot be redefine 486 Enumeration prefixes = m_namespaces.keys(); local [all...] |
/frameworks/base/core/java/android/text/util/ |
Linkify.java | 394 private static final String makeUrl(String url, String[] prefixes, 402 for (int i = 0; i < prefixes.length; i++) { 403 if (url.regionMatches(true, 0, prefixes[i], 0, 404 prefixes[i].length())) { 408 if (!url.regionMatches(false, 0, prefixes[i], 0, 409 prefixes[i].length())) { 410 url = prefixes[i] + url.substring(prefixes[i].length()); 418 url = prefixes[0] + url;
|
/external/qemu/ |
i386-dis.c | 241 /* Flags for the prefixes for the current instruction. See below. */ 242 static int prefixes; variable 263 /* Flags for prefixes which we somehow handled when printing the 267 /* Flags stored in PREFIXES. */ 467 #define v_mode 2 /* operand size depends on prefixes */ 476 #define dq_mode 11 /* operand size depends on REX prefixes. */ 481 #define z_mode 16 /* non-quad operand size depends on prefixes */ [all...] |
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
ParserAdapter.java | 158 private static final String NAMESPACE_PREFIXES = FEATURES + "namespace-prefixes"; 166 * namespace-prefixes.</p> 182 if (!namespaces && !prefixes) { 183 prefixes = true; 187 prefixes = value; 188 if (!prefixes && !namespaces) { 204 * namespace-prefixes.</p> 220 return prefixes; 555 if (prefixes) { 624 Enumeration prefixes = nsSupport.getDeclaredPrefixes() 622 Enumeration prefixes = nsSupport.getDeclaredPrefixes(); local 825 private boolean prefixes = false; field in class:ParserAdapter [all...] |
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/ |
FileFilter.java | 213 * Returns the list of all path prefixes of the given path. 219 * @return the list of all path prefixes of the given path. 223 List<String> prefixes = new ArrayList<String>(8); local 226 prefixes.add(file.getPath()); 230 return prefixes;
|
/external/webkit/Tools/Scripts/webkitpy/common/checkout/ |
diff_parser_unittest.py | 133 prefixes = [ 141 for prefix in prefixes:
|
/external/chromium/chrome/browser/autocomplete/ |
history_url_provider.cc | 33 using history::Prefixes; 203 for (Prefixes::const_iterator i(prefixes_.begin()); i != prefixes_.end(); 208 // need to promote lower-quality matches that are prefixes of 441 history::Prefixes HistoryURLProvider::GetPrefixes() { 442 // We'll complete text following these prefixes. 444 Prefixes prefixes; local 445 prefixes.push_back(Prefix(ASCIIToUTF16("https://www."), 2)); 446 prefixes.push_back(Prefix(ASCIIToUTF16("http://www."), 2)); 447 prefixes.push_back(Prefix(ASCIIToUTF16("ftp://ftp."), 2)) [all...] |
/external/chromium/sdch/open-vcdiff/ |
install-sh | 402 prefixes= 410 prefixes= 422 prefixes="$prefixes '$qprefix'" 428 if test -n "$prefixes"; then 431 eval "\$doit_exec \$mkdirprog $prefixes") ||
|
/external/libpng/ |
install-sh | 402 prefixes= 410 prefixes= 422 prefixes="$prefixes '$qprefix'" 428 if test -n "$prefixes"; then 431 eval "\$doit_exec \$mkdirprog $prefixes") ||
|
/external/pcre/ |
install-sh | 402 prefixes= 410 prefixes= 422 prefixes="$prefixes '$qprefix'" 428 if test -n "$prefixes"; then 431 eval "\$doit_exec \$mkdirprog $prefixes") ||
|
/external/protobuf/gtest/build-aux/ |
install-sh | 402 prefixes= 410 prefixes= 422 prefixes="$prefixes '$qprefix'" 428 if test -n "$prefixes"; then 431 eval "\$doit_exec \$mkdirprog $prefixes") ||
|
/external/protobuf/ |
install-sh | 402 prefixes= 410 prefixes= 422 prefixes="$prefixes '$qprefix'" 428 if test -n "$prefixes"; then 431 eval "\$doit_exec \$mkdirprog $prefixes") ||
|
/external/valgrind/main/ |
install-sh | 402 prefixes= 410 prefixes= 422 prefixes="$prefixes '$qprefix'" 428 if test -n "$prefixes"; then 431 eval "\$doit_exec \$mkdirprog $prefixes") ||
|
/ndk/sources/host-tools/sed-4.2.1/build-aux/ |
install-sh | 402 prefixes= 410 prefixes= 422 prefixes="$prefixes '$qprefix'" 428 if test -n "$prefixes"; then 431 eval "\$doit_exec \$mkdirprog $prefixes") ||
|