Searched refs:features (Results 1 - 25 of 73) sorted by relevance

123

/packages/apps/TV/common/src/com/android/tv/common/feature/
H A DFeatureUtils.java24 * Static utilities for features.
29 * Returns a feature that is enabled if any of {@code features} is enabled.
31 * @param features the features to or
33 public static Feature OR(final Feature... features) { argument
37 for (Feature f : features) {
47 return "or(" + Arrays.asList(features) + ")";
54 * Returns a feature that is enabled if all of {@code features} is enabled.
56 * @param features the features t
58 AND(final Feature... features) argument
[all...]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
H A DQuickViewIntentBuilderTest.java48 String[] features = intent.getStringArrayExtra(Intent.EXTRA_QUICK_VIEW_FEATURES);
49 assertEquals(0, features.length);
59 Set<String> features = new HashSet<>(
62 assertEquals("Unexpected features set: " + features, 5, features.size());
63 assertTrue(features.contains(QuickViewConstants.FEATURE_VIEW));
64 assertTrue(features.contains(QuickViewConstants.FEATURE_EDIT));
65 assertTrue(features.contains(QuickViewConstants.FEATURE_SEND));
66 assertTrue(features
[all...]
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/suggestions/
H A DSuggestionFeaturizerTest.java52 Map<String, Double> features = mSuggestionFeaturizer.featurize(Arrays.asList("pkg"))
54 assertThat(features.get(SuggestionFeaturizer.FEATURE_IS_SHOWN)).isEqualTo(1.0);
55 assertThat(features.get(SuggestionFeaturizer.FEATURE_IS_DISMISSED)).isEqualTo(1.0);
56 assertThat(features.get(SuggestionFeaturizer.FEATURE_IS_CLICKED)).isEqualTo(0.0);
58 assertThat(features.get(SuggestionFeaturizer.FEATURE_TIME_FROM_LAST_SHOWN)).isLessThan(1.0);
59 assertThat(features.get(SuggestionFeaturizer.FEATURE_TIME_FROM_LAST_DISMISSED))
61 assertThat(features.get(SuggestionFeaturizer.FEATURE_TIME_FROM_LAST_CLICKED))
63 assertThat(features.get(SuggestionFeaturizer.FEATURE_SHOWN_COUNT))
65 assertThat(features.get(SuggestionFeaturizer.FEATURE_DISMISSED_COUNT))
67 assertThat(features
[all...]
/packages/apps/Settings/src/com/android/settings/dashboard/suggestions/
H A DSuggestionRanker.java32 // The following coefficients form a linear model, which mixes the features to obtain a
64 Map<String, Map<String, Double>> features = mSuggestionFeaturizer.featurize(suggestionIds);
67 getRelevanceMetric(features.get(suggestionIds.get(i))));
73 double getRelevanceMetric(Map<String, Double> features) { argument
75 if (features == null) {
79 sum += WEIGHTS.get(feature) * features.get(feature);
H A DSuggestionFeaturizer.java23 * Creates a set of interaction features (i.e., metrics) to represent each setting suggestion. These
24 * features currently include normalized time from previous events (shown, dismissed and clicked)
25 * for any particular suggestion and also counts of these events. These features are used as signals
30 // Key of the features used for ranking.
58 * Extracts the features for each package name.
60 * @param pkgNames: List of package names for which features are queried.
61 * @return A Map containing the features, keyed by the package names. Each map value contains
62 * another map with key-value pairs of the features.
65 Map<String, Map<String, Double>> features = new HashMap<>();
69 features
[all...]
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
H A DInspectorUiTest.java40 if (!features.isInspectorEnabled()) {
53 if (!features.isInspectorEnabled()) {
60 if (!features.isInspectorEnabled()) {
H A DFilesActivityUiTest.java68 if (features.isRemoteActionsEnabled()) {
115 if(!features.isInspectorEnabled()) {
/packages/apps/DocumentsUI/src/com/android/documentsui/
H A DInjector.java50 public final Features features; field in class:Injector
80 Features features,
87 this(features, config, prefs, messages, dialogs, fileTypeLookup,
88 shortcutsUpdater, new Model(features));
93 Features features,
102 this.features = features;
79 Injector( Features features, ActivityConfig config, ScopedPreferences prefs, MessageBuilder messages, DialogController dialogs, Lookup<String, String> fileTypeLookup, Consumer<Collection<RootInfo>> shortcutsUpdater) argument
92 Injector( Features features, ActivityConfig config, ScopedPreferences prefs, MessageBuilder messages, DialogController dialogs, Lookup<String, String> fileTypeLookup, Consumer<Collection<RootInfo>> shortcutsUpdater, Model model) argument
H A DSharedInputHandler.java44 Features features) {
49 mFeatures = features;
39 SharedInputHandler( FocusHandler focusHandler, SelectionManager selectionMgr, Procedure searchCanceler, Procedure dirPopper, Features features) argument
H A DRefreshTask.java53 public RefreshTask(Features features, State state, DocumentInfo doc, long timeout, argument
56 mFeatures = features;
/packages/apps/Dialer/java/com/android/dialer/oem/
H A DMotorolaUtils.java88 public static boolean shouldShowHdIconInCallLog(Context context, int features) { argument
91 && (features & FEATURES_HD_CALL) == FEATURES_HD_CALL
95 public static boolean shouldShowWifiIconInCallLog(Context context, int features) { argument
98 && (features & FEATURES_WIFI) == FEATURES_WIFI
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
H A DFileOperation.java97 abstract Job createJob(Context service, Job.Listener listener, String id, Features features); argument
136 CopyJob createJob(Context service, Job.Listener listener, String id, Features features) { argument
138 service, listener, id, getDestination(), getSrc(), getMessenger(), features);
176 CopyJob createJob(Context service, Job.Listener listener, String id, Features features) { argument
178 getMessenger(), features);
217 CopyJob createJob(Context service, Job.Listener listener, String id, Features features) { argument
219 service, listener, id, getDestination(), getSrc(), getMessenger(), features);
252 Job createJob(Context service, Job.Listener listener, String id, Features features) { argument
257 getMessenger(), features);
260 mSrcParent, features);
[all...]
H A DResolvedResourcesJob.java50 DocumentStack destination, UrisSupplier srcs, Features features) {
51 super(service, listener, id, opType, destination, srcs, features);
49 ResolvedResourcesJob(Context service, Listener listener, String id, @OpType int opType, DocumentStack destination, UrisSupplier srcs, Features features) argument
/packages/services/Telecomm/src/com/android/server/telecom/
H A DCallLogManager.java67 * @param features The features of the call (e.g. FEATURES_VIDEO). @see
76 int features, PhoneAccountHandle accountHandle, long creationDate,
86 this.features = features;
103 public final int features; field in class:CallLogManager.AddCallArgs
248 * @param features The features of the call.
262 int features,
294 viaNumber, presentation, callType, features, accountHandl
74 AddCallArgs(Context context, CallerInfo callerInfo, String number, String postDialDigits, String viaNumber, int presentation, int callType, int features, PhoneAccountHandle accountHandle, long creationDate, long durationInMillis, Long dataUsage, UserHandle initiatingUser, @Nullable LogCallCompletedListener logCallCompletedListener) argument
255 logCall( CallerInfo callerInfo, String number, String postDialDigits, String viaNumber, int presentation, int callType, int features, PhoneAccountHandle accountHandle, long start, long duration, Long dataUsage, boolean isEmergency, UserHandle initiatingUser, @Nullable LogCallCompletedListener logCallCompletedListener) argument
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
H A DDebugHelper.java64 assert (mInjector.features.isDebugSupportEnabled());
74 assert (mInjector.features.isDebugSupportEnabled());
H A DDocumentFilters.java45 public static Predicate<Cursor> sharable(Features features) { argument
46 return features.isVirtualFilesSharingEnabled()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
H A DTestEnv.java70 public final Features features; field in class:TestEnv
78 features = new Features.RuntimeFeatures(
81 model = new TestModel(authority, features);
82 archiveModel = new TestModel(ArchivesProvider.AUTHORITY, features);
86 features,
96 injector.focusManager = new FocusManager(features, selectionMgr, null, null, 0);
/packages/apps/Bluetooth/src/com/android/bluetooth/sdp/
H A DSdpManager.java80 int rfcommChannel, int l2capPsm, int version, int msgTypes, int features);
83 int rfcommChannel, int l2capPsm, int version, int features);
86 int l2capPsm, int version, int repositories, int features);
497 * @param features The feature bit mask (As specified in the Bluetooth
506 int msgTypes, int features) {
511 l2capPsm, version, msgTypes, features);
527 * @param features The feature bit mask (As specified in the Bluetooth
535 int l2capPsm, int version, int features) {
540 l2capPsm, version, features);
558 * @param features Th
79 sdpCreateMapMasRecordNative(String serviceName, int masId, int rfcommChannel, int l2capPsm, int version, int msgTypes, int features) argument
82 sdpCreateMapMnsRecordNative(String serviceName, int rfcommChannel, int l2capPsm, int version, int features) argument
85 sdpCreatePbapPseRecordNative(String serviceName, int rfcommChannel, int l2capPsm, int version, int repositories, int features) argument
504 createMapMasRecord(String serviceName, int masId, int rfcommChannel, int l2capPsm, int version, int msgTypes, int features) argument
534 createMapMnsRecord(String serviceName, int rfcommChannel, int l2capPsm, int version, int features) argument
565 createPbapPseRecord(String serviceName, int rfcommChannel, int l2capPsm, int version, int repositories, int features) argument
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/queries/
H A DCommandInterceptor.java45 public CommandInterceptor(Features features) { argument
46 mFeatures = features;
225 Features features,
229 if (!features.isDebugSupportEnabled()) {
239 assert(features.isDebugSupportEnabled());
224 createDebugModeFlipper( Features features, Runnable debugFlipper, CommandInterceptor interceptor) argument
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/
H A DTestJob.java43 UrisSupplier srcs, Runnable startRunnable, Features features) {
44 super(service, listener, id, opType, stack, srcs, features);
42 TestJob(Context service, Listener listener, String id, @OpType int opType, DocumentStack stack, UrisSupplier srcs, Runnable startRunnable, Features features) argument
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/
H A DDialogController.java68 public RuntimeDialogController(Features features, Activity activity, MessageBuilder messages) { argument
69 mFeatures = features;
207 static DialogController create(Features features, Activity activity, MessageBuilder messages) { argument
208 return new RuntimeDialogController(features, activity, messages);
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/services/
H A DFileOperationServiceTest.java83 TestFeatures features = new TestFeatures();
84 features.notificationChannel = InstrumentationRegistry.getTargetContext()
108 assertNull(mService.features);
109 mService.features = features;
395 public Job createJob(Context service, Job.Listener listener, String id, Features features) { argument
397 service, listener, id, mOpType, mDestination, mSrcs, mJobRunnable, features);
/packages/services/Car/car-support-lib/src/android/support/car/hardware/
H A DCarSensorsProxy.java194 Set<Integer> features = new HashSet<>();
198 features.add(CarSensorManager.SENSOR_TYPE_COMPASS);
201 features.add(CarSensorManager.SENSOR_TYPE_ACCELEROMETER);
204 features.add(CarSensorManager.SENSOR_TYPE_GYROSCOPE);
207 features.add(CarSensorManager.SENSOR_TYPE_LOCATION);
208 features.add(CarSensorManager.SENSOR_TYPE_GPS_SATELLITE);
210 return toIntArray(features);
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
H A DFilesActivity.java93 Features features = Features.create(this);
97 features,
101 DialogController.create(features, this, messages),
111 mInjector.features,
118 mInjector.features,
161 mInjector.features);
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
H A DListeningGestureDetector.java61 Features features,
73 mFeatures = features;
60 ListeningGestureDetector( Features features, Context context, RecyclerView recView, EventHandler<InputEvent> mouseDragListener, BooleanConsumer refreshLayoutEnabler, GestureSelector gestureSelector, UserInputHandler<? extends InputEvent> handler, @Nullable BandController bandController, Consumer<Float> scaleHandler) argument

Completed in 397 milliseconds

123