Home
last modified time | relevance | path

Searched refs:ClassifierInputConfig (Results 1 – 7 of 7) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/classifier/
DClassifierInputManagerTest.java41 import com.android.adservices.service.topics.classifier.ClassifierInputConfig.ClassifierInputField;
108 ClassifierInputConfig classifierInputConfig = in testGetClassifierInput_packageName()
109 new ClassifierInputConfig( in testGetClassifierInput_packageName()
121 ClassifierInputConfig classifierInputConfig = in testGetClassifierInput_splitPackageName()
122 new ClassifierInputConfig( in testGetClassifierInput_splitPackageName()
136 ClassifierInputConfig classifierInputConfig = in testGetClassifierInput_appName()
137 new ClassifierInputConfig("%s", ImmutableList.of(ClassifierInputField.APP_NAME)); in testGetClassifierInput_appName()
150 ClassifierInputConfig classifierInputConfig = in testGetClassifierInput_appDescription()
151 new ClassifierInputConfig( in testGetClassifierInput_appDescription()
166 ClassifierInputConfig classifierInputConfig = in testGetClassifierInput_multipleFields()
[all …]
DOnDeviceClassifierTest.java171 any(ClassifierInputConfig.class), eq(appPackage1))) in testClassify_emptyClassifierInput_returnsDefaultClassifications()
179 .getClassifierInput(any(ClassifierInputConfig.class), eq(appPackage1)); in testClassify_emptyClassifierInput_returnsDefaultClassifications()
217 any(ClassifierInputConfig.class), eq(appPackage1))) in testClassify_successfulClassifications()
220 any(ClassifierInputConfig.class), eq(appPackage2))) in testClassify_successfulClassifications()
231 .getClassifierInput(any(ClassifierInputConfig.class), eq(appPackage1)); in testClassify_successfulClassifications()
233 .getClassifierInput(any(ClassifierInputConfig.class), eq(appPackage2)); in testClassify_successfulClassifications()
302 any(ClassifierInputConfig.class), eq(appPackage))) in testClassify_appWithBlockedTopic()
343 any(ClassifierInputConfig.class), eq(appPackage))) in testClassify_appWithAllTopicsBlocked()
380 any(ClassifierInputConfig.class), eq(appPackage1))) in testClassify_successfulClassifications_overrideNumberOfTopLabels()
392 .getClassifierInput(any(ClassifierInputConfig.class), eq(appPackage1)); in testClassify_successfulClassifications_overrideNumberOfTopLabels()
[all …]
DModelManagerTest.java695 ClassifierInputConfig classifierInputConfig = in testRetrieveClassifierInputConfig_bundled_successfulRead()
701 ClassifierInputConfig.ClassifierInputField.APP_NAME, in testRetrieveClassifierInputConfig_bundled_successfulRead()
702 ClassifierInputConfig.ClassifierInputField.SPLIT_PACKAGE_NAME); in testRetrieveClassifierInputConfig_bundled_successfulRead()
722 ClassifierInputConfig classifierInputConfig = in testRetrieveClassifierInputConfig_downloaded_successfulRead()
728 ClassifierInputConfig.ClassifierInputField.APP_NAME, in testRetrieveClassifierInputConfig_downloaded_successfulRead()
729 ClassifierInputConfig.ClassifierInputField.SPLIT_PACKAGE_NAME); in testRetrieveClassifierInputConfig_downloaded_successfulRead()
745 ClassifierInputConfig classifierInputConfig = in testRetrieveClassifierInputConfig_bundled_emptyConfigReturnedOnException()
748 assertThat(classifierInputConfig).isEqualTo(ClassifierInputConfig.getEmptyConfig()); in testRetrieveClassifierInputConfig_bundled_emptyConfigReturnedOnException()
769 ClassifierInputConfig classifierInputConfig = in testRetrieveClassifierInputConfig_downloaded_emptyConfigReturnedOnException()
772 assertThat(classifierInputConfig).isEqualTo(ClassifierInputConfig.getEmptyConfig()); in testRetrieveClassifierInputConfig_downloaded_emptyConfigReturnedOnException()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/classifier/
DClassifierInputConfig.java27 public class ClassifierInputConfig { class
32 ClassifierInputConfig( in ClassifierInputConfig() method in ClassifierInputConfig
53 if (!(object instanceof ClassifierInputConfig)) { in equals()
56 ClassifierInputConfig classifierInputConfig = (ClassifierInputConfig) object; in equals()
83 public static ClassifierInputConfig getEmptyConfig() { in getEmptyConfig()
84 return new ClassifierInputConfig("", ImmutableList.of()); in getEmptyConfig()
DModelManager.java53 import com.android.adservices.service.topics.classifier.ClassifierInputConfig.ClassifierInputField;
630 public ClassifierInputConfig retrieveClassifierInputConfig() { in retrieveClassifierInputConfig()
643 ? ClassifierInputConfig.getEmptyConfig() in retrieveClassifierInputConfig()
648 private ClassifierInputConfig getClassifierInputConfig(@NonNull InputStream inputStream) { in getClassifierInputConfig()
657 return ClassifierInputConfig.getEmptyConfig(); in getClassifierInputConfig()
669 return ClassifierInputConfig.getEmptyConfig(); in getClassifierInputConfig()
678 return ClassifierInputConfig.getEmptyConfig(); in getClassifierInputConfig()
681 ClassifierInputConfig classifierInputConfig = in getClassifierInputConfig()
682 new ClassifierInputConfig(inputFormat, inputFields.build()); in getClassifierInputConfig()
685 return ClassifierInputConfig.getEmptyConfig(); in getClassifierInputConfig()
[all …]
DClassifierInputManager.java34 import com.android.adservices.service.topics.classifier.ClassifierInputConfig.ClassifierInputField;
79 @NonNull ClassifierInputConfig classifierInputConfig, @NonNull String packageName) { in getClassifierInput()
DOnDeviceClassifier.java80 private ClassifierInputConfig mClassifierInputConfig;