/external/chromium_org/chrome/browser/safe_browsing/ |
D | browser_feature_extractor_unittest.cc | 166 std::map<std::string, double>* features) { in GetFeatureMap() argument 170 EXPECT_EQ(0U, features->count(feature.name())); in GetFeatureMap() 171 (*features)[feature.name()] = feature.value(); in GetFeatureMap() 291 std::map<std::string, double> features; in TEST_F() local 292 GetFeatureMap(request, &features); in TEST_F() 294 EXPECT_EQ(12U, features.size()); in TEST_F() 295 EXPECT_DOUBLE_EQ(2.0, features[features::kUrlHistoryVisitCount]); in TEST_F() 297 features[features::kUrlHistoryVisitCountMoreThan24hAgo]); in TEST_F() 298 EXPECT_DOUBLE_EQ(1.0, features[features::kUrlHistoryTypedCount]); in TEST_F() 299 EXPECT_DOUBLE_EQ(1.0, features[features::kUrlHistoryLinkCount]); in TEST_F() [all …]
|
/external/chromium_org/chrome/renderer/safe_browsing/ |
D | phishing_url_feature_extractor_unittest.cc | 33 expected_features.AddBooleanFeature(features::kUrlHostIsIpAddress); in TEST_F() 34 expected_features.AddBooleanFeature(features::kUrlPathToken + in TEST_F() 36 expected_features.AddBooleanFeature(features::kUrlPathToken + in TEST_F() 38 expected_features.AddBooleanFeature(features::kUrlPathToken + in TEST_F() 41 FeatureMap features; in TEST_F() local 42 ASSERT_TRUE(extractor_.ExtractFeatures(GURL(url), &features)); in TEST_F() 43 ExpectFeatureMapsAreEqual(features, expected_features); in TEST_F() 47 expected_features.AddBooleanFeature(features::kUrlTldToken + in TEST_F() 49 expected_features.AddBooleanFeature(features::kUrlDomainToken + in TEST_F() 51 expected_features.AddBooleanFeature(features::kUrlOtherHostToken + in TEST_F() [all …]
|
D | phishing_dom_feature_extractor_browsertest.cc | 94 bool ExtractFeatures(FeatureMap* features) { in ExtractFeatures() argument 99 features)); in ExtractFeatures() 103 void ExtractFeaturesInternal(FeatureMap* features) { in ExtractFeaturesInternal() argument 107 features, in ExtractFeaturesInternal() 194 expected_features.AddBooleanFeature(features::kPageHasForms); in IN_PROC_BROWSER_TEST_F() 195 expected_features.AddRealFeature(features::kPageActionOtherDomainFreq, 0.25); in IN_PROC_BROWSER_TEST_F() 196 expected_features.AddBooleanFeature(features::kPageHasTextInputs); in IN_PROC_BROWSER_TEST_F() 197 expected_features.AddBooleanFeature(features::kPageHasCheckInputs); in IN_PROC_BROWSER_TEST_F() 199 FeatureMap features; in IN_PROC_BROWSER_TEST_F() local 208 ASSERT_TRUE(ExtractFeatures(&features)); in IN_PROC_BROWSER_TEST_F() [all …]
|
D | features_unittest.cc | 15 FeatureMap features; in TEST() local 17 EXPECT_TRUE(features.AddBooleanFeature( in TEST() 20 EXPECT_EQ(FeatureMap::kMaxFeatureMapSize, features.features().size()); in TEST() 24 EXPECT_FALSE(features.AddBooleanFeature( in TEST() 27 EXPECT_EQ(FeatureMap::kMaxFeatureMapSize, features.features().size()); in TEST() 31 FeatureMap features; in TEST() local 32 EXPECT_FALSE(features.AddRealFeature("toosmall", -0.1)); in TEST() 33 EXPECT_TRUE(features.AddRealFeature("zero", 0.0)); in TEST() 34 EXPECT_TRUE(features.AddRealFeature("pointfive", 0.5)); in TEST() 35 EXPECT_TRUE(features.AddRealFeature("one", 1.0)); in TEST() [all …]
|
D | phishing_term_feature_extractor_unittest.cc | 91 FeatureMap* features, in ExtractFeatures() argument 96 features, in ExtractFeatures() 105 FeatureMap* features, in PartialExtractFeatures() argument 109 features, in PartialExtractFeatures() 147 FeatureMap features; in TEST_F() local 149 ASSERT_TRUE(ExtractFeatures(&page_text, &features, &shingle_hashes)); in TEST_F() 150 ExpectFeatureMapsAreEqual(features, expected_features); in TEST_F() 155 expected_features.AddBooleanFeature(features::kPageTerm + in TEST_F() 157 expected_features.AddBooleanFeature(features::kPageTerm + in TEST_F() 161 features.Clear(); in TEST_F() [all …]
|
D | phishing_classifier_browsertest.cc | 48 : url_tld_token_net_(features::kUrlTldToken + std::string("net")), in PhishingClassifierTest() 49 page_link_domain_phishing_(features::kPageLinkDomain + in PhishingClassifierTest() 51 page_term_login_(features::kPageTerm + std::string("login")) { in PhishingClassifierTest() 71 model.add_hashes(crypto::SHA256HashString(features::kUrlTldToken + in SetUpOnMainThread() 73 model.add_hashes(crypto::SHA256HashString(features::kPageLinkDomain + in SetUpOnMainThread() 75 model.add_hashes(crypto::SHA256HashString(features::kPageTerm + in SetUpOnMainThread() 117 FeatureMap* features) { in RunPhishingClassifier() argument 123 page_text, phishy_score, features, &verdict)); in RunPhishingClassifier() 129 FeatureMap* features, in DoRunPhishingClassifier() argument 132 features->Clear(); in DoRunPhishingClassifier() [all …]
|
D | phishing_url_feature_extractor.cc | 27 FeatureMap* features) { in ExtractFeatures() argument 30 if (!features->AddBooleanFeature(features::kUrlHostIsIpAddress)) in ExtractFeatures() 55 if (!features->AddBooleanFeature(features::kUrlTldToken + in ExtractFeatures() 71 if (!features->AddBooleanFeature(features::kUrlDomainToken + in ExtractFeatures() 79 if (!features->AddBooleanFeature(features::kUrlOtherHostToken + *it)) in ExtractFeatures() 84 if (!features->AddBooleanFeature(features::kUrlNumOtherHostTokensGTOne)) in ExtractFeatures() 87 if (!features->AddBooleanFeature( in ExtractFeatures() 88 features::kUrlNumOtherHostTokensGTThree)) in ExtractFeatures() 98 if (!features->AddBooleanFeature(features::kUrlPathToken + *it)) in ExtractFeatures()
|
/external/pixman/pixman/ |
D | pixman-arm.c | 50 arm_cpu_features_t features = 0; in detect_cpu_features() local 55 features |= ARM_V6; in detect_cpu_features() 64 features |= ARM_NEON; in detect_cpu_features() 70 return features; in detect_cpu_features() 80 arm_cpu_features_t features = 0; in detect_cpu_features() local 82 features |= ARM_V6; in detect_cpu_features() 91 features |= ARM_NEON; in detect_cpu_features() 94 return features; in detect_cpu_features() 104 arm_cpu_features_t features = 0; in detect_cpu_features() local 114 features |= ARM_V7; in detect_cpu_features() [all …]
|
D | pixman-x86.c | 52 cpu_features_t features = 0; in detect_cpu_features() local 58 features |= X86_CMOV; in detect_cpu_features() 60 features |= X86_MMX; in detect_cpu_features() 62 features |= X86_MMX_EXTENSIONS; in detect_cpu_features() 64 features |= X86_SSE; in detect_cpu_features() 66 features |= X86_SSE2; in detect_cpu_features() 69 return features; in detect_cpu_features() 155 cpu_features_t features = 0; in detect_cpu_features() local 158 return features; in detect_cpu_features() 163 features |= X86_CMOV; in detect_cpu_features() [all …]
|
/external/chromium_org/gpu/config/ |
D | gpu_control_list_unittest.cc | 75 std::set<int> features = control_list->MakeDecision( in TEST_F() local 77 EXPECT_EMPTY_SET(features); in TEST_F() 95 std::set<int> features = control_list->MakeDecision( in TEST_F() local 97 EXPECT_EMPTY_SET(features); in TEST_F() 132 std::set<int> features = control_list->MakeDecision( in TEST_F() local 134 EXPECT_SINGLE_FEATURE(features, TEST_FEATURE_0); in TEST_F() 140 features = control_list->MakeDecision( in TEST_F() 142 EXPECT_SINGLE_FEATURE(features, TEST_FEATURE_0); in TEST_F() 171 std::set<int> features = control_list->MakeDecision( in TEST_F() local 173 EXPECT_SINGLE_FEATURE(features, TEST_FEATURE_0); in TEST_F() [all …]
|
D | gpu_util_unittest.cc | 53 std::set<int> features; in TEST() local 54 StringToFeatureSet("", &features); in TEST() 55 EXPECT_EQ(0u, features.size()); in TEST() 59 std::set<int> features; in TEST() local 60 StringToFeatureSet("4", &features); in TEST() 61 EXPECT_EQ(1u, features.size()); in TEST() 65 std::set<int> features; in TEST() local 66 StringToFeatureSet("1,9", &features); in TEST() 67 EXPECT_EQ(2u, features.size()); in TEST()
|
/external/chromium_org/chrome/common/extensions/docs/server2/ |
D | manifest_features.py | 15 def ConvertDottedKeysToNested(features): argument 26 def add_child(features, parent, child_name, value): argument 28 if not 'children' in features[parent]: 29 features[parent]['children'] = {} 30 features[parent]['children'][child_name] = value 32 def insert_children(features): argument 33 for name in features.keys(): 35 value = features.pop(name) 37 add_child(features, parent, child_name, value) 39 for value in features.values(): [all …]
|
D | manifest_data_source.py | 14 def _ListifyAndSortDocs(features, app_name): argument 43 def convert_and_sort(features): argument 44 for key, value in features.items(): 57 features[key]['children'] = convert_and_sort(value['children']) 58 return sorted(features.values(), key=sort_key) 63 if 'name' in features: 64 name = features['name'] 67 features = convert_and_sort(features) 69 return features 71 def _AddLevelAnnotations(features): argument [all …]
|
D | features_bundle.py | 57 features = {} 66 if name not in features: 67 features[name] = [] 70 features[name].append(value) 72 return features 221 features = { 236 if feature_name not in features['unresolved']: 244 {self._features_type: features}) 246 del features['unresolved'][feature_name] 249 features['resolved'][feature_name] = feature [all …]
|
/external/chromium_org/third_party/WebKit/Source/core/page/ |
D | WindowFeatures.cpp | 39 WindowFeatures::WindowFeatures(const String& features) in WindowFeatures() argument 61 if (features.isEmpty()) { in WindowFeatures() 80 String buffer = features.lower(); in WindowFeatures() 177 DialogFeaturesMap features; in WindowFeatures() local 178 parseDialogFeatures(dialogFeaturesString, features); in WindowFeatures() 190 …width = floatFeature(features, "dialogwidth", 100, screenAvailableRect.width(), 620); // default h… in WindowFeatures() 191 …height = floatFeature(features, "dialogheight", 100, screenAvailableRect.height(), 450); // defaul… in WindowFeatures() 193 …x = floatFeature(features, "dialogleft", screenAvailableRect.x(), screenAvailableRect.maxX() - wid… in WindowFeatures() 195 …y = floatFeature(features, "dialogtop", screenAvailableRect.y(), screenAvailableRect.maxY() - heig… in WindowFeatures() 198 if (boolFeature(features, "center", true)) { in WindowFeatures() [all …]
|
D | CreateWindow.cpp | 48 …me& lookupFrame, const FrameLoadRequest& request, const WindowFeatures& features, NavigationPolicy… in createWindow() argument 50 ASSERT(!features.dialog || request.frameName().isEmpty()); in createWindow() 79 …Page* page = oldPage->chrome().client().createWindow(&openerFrame, request, features, policy, shou… in createWindow() 90 host->chrome().setWindowFeatures(features); in createWindow() 99 if (features.xSet) in createWindow() 100 windowRect.setX(features.x); in createWindow() 101 if (features.ySet) in createWindow() 102 windowRect.setY(features.y); in createWindow() 103 if (features.widthSet) in createWindow() 104 windowRect.setWidth(features.width + (windowRect.width() - viewportSize.width())); in createWindow() [all …]
|
/external/chromium_org/extensions/browser/api/system_cpu/ |
D | cpu_info_provider.cc | 33 info_.features = GetFeatures(); in QueryInfo() 48 std::vector<std::string> features; in GetFeatures() local 51 features.push_back("mmx"); in GetFeatures() 53 features.push_back("sse"); in GetFeatures() 55 features.push_back("sse2"); in GetFeatures() 57 features.push_back("sse3"); in GetFeatures() 59 features.push_back("ssse3"); in GetFeatures() 61 features.push_back("sse4_1"); in GetFeatures() 63 features.push_back("sse4_2"); in GetFeatures() 65 features.push_back("avx"); in GetFeatures() [all …]
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
D | FeatureSpecificTestSuiteBuilder.java | 22 import com.google.common.collect.testing.features.ConflictingRequirementsException; 23 import com.google.common.collect.testing.features.Feature; 24 import com.google.common.collect.testing.features.FeatureUtil; 25 import com.google.common.collect.testing.features.TesterRequirements; 104 private Set<Feature<?>> features; field in FeatureSpecificTestSuiteBuilder 110 public B withFeatures(Feature<?>... features) { in withFeatures() argument 111 return withFeatures(Arrays.asList(features)); in withFeatures() 114 public B withFeatures(Iterable<? extends Feature<?>> features) { in withFeatures() argument 115 this.features = Helpers.copyToSet(features); in withFeatures() 120 return Collections.unmodifiableSet(features); in getFeatures() [all …]
|
/external/chromium_org/tools/usb_gadget/ |
D | hid_gadget_test.py | 52 hid_gadget.HidGadget(report_desc, features={}, interval_ms=50000, 55 hid_gadget.HidGadget(report_desc, features={}, interval_ms=5000, 59 g = hid_gadget.HidGadget(report_desc=report_desc, features={}, 66 g = hid_gadget.HidGadget(report_desc=report_desc, features={}, 72 g = hid_gadget.HidGadget(report_desc=report_desc, features={}, 77 g = hid_gadget.HidGadget(report_desc=report_desc, features={}, 85 g = hid_gadget.HidGadget(report_desc=report_desc, features={}, 93 g = hid_gadget.HidGadget(report_desc=report_desc, features={}, 138 g = hid_gadget.HidGadget(report_desc, features={1: feature}, 148 g = hid_gadget.HidGadget(report_desc, features={1: feature}, [all …]
|
/external/srec/srec/ca/ |
D | cnfd_scr.c | 131 static int CA_ConfScorerGetFeatures(CA_Recog* recog, CA_NBestList *nbestlist, float* features, int … 137 float features[12]; in CA_ComputeConfidenceValues() local 150 …rc = CA_ConfScorerGetFeatures(recog, nbestlist, features, &num_features, current_choice, num_choic… in CA_ComputeConfidenceValues() 169 … features[i]) + hConfidenceScorer->one_nbest.offset[i])); in CA_ComputeConfidenceValues() 179 … features[i]) + hConfidenceScorer->many_nbest.offset[i])); in CA_ComputeConfidenceValues() 195 PLogMessage(" %s %f", conf_feature_names[i], features[i]); in CA_ComputeConfidenceValues() 201 int CA_ConfScorerGetFeatures(CA_Recog* recog, CA_NBestList *nbestlist, float* features, int *num_fe… in CA_ConfScorerGetFeatures() argument 217 ASSERT(features); in CA_ConfScorerGetFeatures() 233 features[CONF_FEATURE_ABSOLUTE_SCORE] = ((float)(speech_cost0)); in CA_ConfScorerGetFeatures() 234 features[CONF_FEATURE_SCORE_PER_FRAME] = ((float)(speech_cost0)) / (float)num_speech_frames; in CA_ConfScorerGetFeatures() [all …]
|
/external/chromium_org/third_party/WebKit/Source/core/css/ |
D | RuleFeature.cpp | 183 …eSet::extractInvalidationSetFeature(const CSSSelector& selector, InvalidationSetFeatures& features) in extractInvalidationSetFeature() argument 186 features.tagName = selector.tagQName().localName(); in extractInvalidationSetFeature() 188 features.id = selector.value(); in extractInvalidationSetFeature() 190 features.classes.append(selector.value()); in extractInvalidationSetFeature() 192 features.attributes.append(selector.attribute().localName()); in extractInvalidationSetFeature() 194 features.customPseudoElement = true; in extractInvalidationSetFeature() 246 InvalidationSetFeatures features; in updateInvalidationSets() local 247 if (const CSSSelector* current = extractInvalidationSetFeatures(selector, features, false)) in updateInvalidationSets() 248 addFeaturesToInvalidationSets(*current, features); in updateInvalidationSets() 252 …validationSetFeatures(const CSSSelector& selector, InvalidationSetFeatures& features, bool negated) in extractInvalidationSetFeatures() argument [all …]
|
/external/chromium_org/extensions/common/ |
D | BUILD.gn | 5 import("//build/config/features.gni") 65 "features/api_feature.cc", 66 "features/api_feature.h", 67 "features/base_feature_provider.cc", 68 "features/base_feature_provider.h", 69 "features/complex_feature.cc", 70 "features/complex_feature.h", 71 "features/feature.cc", 72 "features/feature.h", 73 "features/feature_provider.cc", [all …]
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
D | QueuePollTester.java | 19 import static com.google.common.collect.testing.features.CollectionFeature.KNOWN_ORDER; 20 import static com.google.common.collect.testing.features.CollectionFeature.SUPPORTS_REMOVE; 21 import static com.google.common.collect.testing.features.CollectionSize.ONE; 22 import static com.google.common.collect.testing.features.CollectionSize.SEVERAL; 23 import static com.google.common.collect.testing.features.CollectionSize.ZERO; 25 import com.google.common.collect.testing.features.CollectionFeature; 26 import com.google.common.collect.testing.features.CollectionSize;
|
D | QueueRemoveTester.java | 19 import static com.google.common.collect.testing.features.CollectionFeature.KNOWN_ORDER; 20 import static com.google.common.collect.testing.features.CollectionFeature.SUPPORTS_REMOVE; 21 import static com.google.common.collect.testing.features.CollectionSize.ONE; 22 import static com.google.common.collect.testing.features.CollectionSize.SEVERAL; 23 import static com.google.common.collect.testing.features.CollectionSize.ZERO; 25 import com.google.common.collect.testing.features.CollectionFeature; 26 import com.google.common.collect.testing.features.CollectionSize;
|
D | CollectionToStringTester.java | 19 import static com.google.common.collect.testing.features.CollectionFeature.KNOWN_ORDER; 20 import static com.google.common.collect.testing.features.CollectionFeature.NON_STANDARD_TOSTRING; 21 import static com.google.common.collect.testing.features.CollectionSize.ONE; 22 import static com.google.common.collect.testing.features.CollectionSize.SEVERAL; 23 import static com.google.common.collect.testing.features.CollectionSize.ZERO; 27 import com.google.common.collect.testing.features.CollectionFeature; 28 import com.google.common.collect.testing.features.CollectionSize;
|