Home
last modified time | relevance | path

Searched refs:features (Results 1 – 25 of 87) sorted by relevance

1234

/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/suggestions/
DSuggestionFeaturizerTest.java52 Map<String, Double> features = mSuggestionFeaturizer.featurize(Arrays.asList("pkg")) in testFeaturize_singlePackage() local
54 assertThat(features.get(SuggestionFeaturizer.FEATURE_IS_SHOWN)).isEqualTo(1.0); in testFeaturize_singlePackage()
55 assertThat(features.get(SuggestionFeaturizer.FEATURE_IS_DISMISSED)).isEqualTo(1.0); in testFeaturize_singlePackage()
56 assertThat(features.get(SuggestionFeaturizer.FEATURE_IS_CLICKED)).isEqualTo(0.0); in testFeaturize_singlePackage()
58 assertThat(features.get(SuggestionFeaturizer.FEATURE_TIME_FROM_LAST_SHOWN)).isLessThan(1.0); in testFeaturize_singlePackage()
59 assertThat(features.get(SuggestionFeaturizer.FEATURE_TIME_FROM_LAST_DISMISSED)) in testFeaturize_singlePackage()
61 assertThat(features.get(SuggestionFeaturizer.FEATURE_TIME_FROM_LAST_CLICKED)) in testFeaturize_singlePackage()
63 assertThat(features.get(SuggestionFeaturizer.FEATURE_SHOWN_COUNT)) in testFeaturize_singlePackage()
65 assertThat(features.get(SuggestionFeaturizer.FEATURE_DISMISSED_COUNT)) in testFeaturize_singlePackage()
67 assertThat(features.get(SuggestionFeaturizer.FEATURE_CLICKED_COUNT)).isEqualTo(0.0); in testFeaturize_singlePackage()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
DQuickViewIntentBuilderTest.java48 String[] features = intent.getStringArrayExtra(Intent.EXTRA_QUICK_VIEW_FEATURES); in testSetsNoFeatures_InArchiveDocument() local
49 assertEquals(0, features.length); in testSetsNoFeatures_InArchiveDocument()
59 Set<String> features = new HashSet<>( in testSetsFullFeatures_RegularDocument() local
62 assertEquals("Unexpected features set: " + features, 5, features.size()); in testSetsFullFeatures_RegularDocument()
63 assertTrue(features.contains(QuickViewConstants.FEATURE_VIEW)); in testSetsFullFeatures_RegularDocument()
64 assertTrue(features.contains(QuickViewConstants.FEATURE_EDIT)); in testSetsFullFeatures_RegularDocument()
65 assertTrue(features.contains(QuickViewConstants.FEATURE_SEND)); in testSetsFullFeatures_RegularDocument()
66 assertTrue(features.contains(QuickViewConstants.FEATURE_DOWNLOAD)); in testSetsFullFeatures_RegularDocument()
67 assertTrue(features.contains(QuickViewConstants.FEATURE_PRINT)); in testSetsFullFeatures_RegularDocument()
DMenuManagerTest.java103 private TestFeatures features; field in MenuManagerTest
160 features = new TestFeatures(); in setUp()
175 features, in setUp()
230 features.archiveCreation = false; in testActionMenu_CreateArchives_ReflectsFeatureState()
325 features.archiveCreation = true; in testActionMenu_CanExtract_hidesCopyToAndCompressAndShare()
/packages/inputmethods/OpenWnn/
DChangeLog.txt9 Update features:
27 Update features:
42 Update features:
47 Update features:
54 Update features:
60 Update features:
72 The first release implemented following features:
75 Update features:
87 The first release implemented following features:
94 The first release implemented following features:
/packages/services/Telecomm/src/com/android/server/telecom/
DCallLogManager.java75 int features, PhoneAccountHandle accountHandle, long creationDate, in AddCallArgs() argument
85 this.features = features; in AddCallArgs()
102 public final int features; field in CallLogManager.AddCallArgs
259 int features, in logCall() argument
291 viaNumber, presentation, callType, features, accountHandle, start, duration, in logCall()
307 int features = 0; in getCallFeatures() local
309 features |= Calls.FEATURES_VIDEO; in getCallFeatures()
312 features |= Calls.FEATURES_PULLED_EXTERNALLY; in getCallFeatures()
314 return features; in getCallFeatures()
408 c.presentation, c.callType, c.features, c.accountHandle, c.timestamp, in addCall()
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DFileOperation.java97 abstract Job createJob(Context service, Job.Listener listener, String id, Features features); in createJob() argument
136 CopyJob createJob(Context service, Job.Listener listener, String id, Features features) { in createJob() argument
138 service, listener, id, getDestination(), getSrc(), getMessenger(), features); in createJob()
176 CopyJob createJob(Context service, Job.Listener listener, String id, Features features) { in createJob() argument
178 getMessenger(), features); in createJob()
217 CopyJob createJob(Context service, Job.Listener listener, String id, Features features) { in createJob() argument
219 service, listener, id, getDestination(), getSrc(), getMessenger(), features); in createJob()
252 Job createJob(Context service, Job.Listener listener, String id, Features features) { in createJob() argument
257 getMessenger(), features); in createJob()
260 mSrcParent, features); in createJob()
DFileOperationService.java124 @VisibleForTesting Features features; field in FileOperationService
161 features = new Features.RuntimeFeatures(getResources(), UserManager.get(this)); in onCreate()
169 if (features.isNotificationChannelEnabled()) { in setUpNotificationChannel()
234 Job job = operation.createJob(this, this, jobId, features); in handleOperation()
/packages/apps/TV/common/src/com/android/tv/common/feature/
DFeatureUtils.java33 public static Feature OR(final Feature... features) { in OR() argument
37 for (Feature f : features) { in OR()
47 return "or(" + Arrays.asList(features) + ")"; in OR()
58 public static Feature AND(final Feature... features) {
62 for (Feature f : features) {
72 return "and(" + Arrays.asList(features) + ")";
/packages/apps/DocumentsUI/src/com/android/documentsui/
DInjector.java50 public final Features features; field in Injector
80 Features features, in Injector() argument
87 this(features, config, prefs, messages, dialogs, fileTypeLookup, in Injector()
88 shortcutsUpdater, new Model(features)); in Injector()
93 Features features, in Injector() argument
102 this.features = features; in Injector()
DAbstractActionHandler.java196 mInjector.features, in refreshDocument()
401 if (!mInjector.features.isDebugSupportEnabled()) { in setDebugMode()
406 mInjector.features.forceFeature(R.bool.feature_command_interceptor, enabled); in setDebugMode()
407 mInjector.features.forceFeature(R.bool.feature_inspector, enabled); in setDebugMode()
422 assert (mInjector.features.isDebugSupportEnabled()); in showDebugMessage()
551 mInjector.features, in onCreateLoader()
574 mInjector.features, in onCreateLoader()
/packages/apps/Bluetooth/src/com/android/bluetooth/sdp/
DSdpManager.java80 int rfcommChannel, int l2capPsm, int version, int msgTypes, int features); in sdpCreateMapMasRecordNative() argument
83 int rfcommChannel, int l2capPsm, int version, int features); in sdpCreateMapMnsRecordNative() argument
86 int l2capPsm, int version, int repositories, int features); in sdpCreatePbapPseRecordNative() argument
506 int msgTypes, int features) { in createMapMasRecord() argument
511 l2capPsm, version, msgTypes, features); in createMapMasRecord()
535 int l2capPsm, int version, int features) { in createMapMnsRecord() argument
540 l2capPsm, version, features); in createMapMnsRecord()
566 int version, int repositories, int features) { in createPbapPseRecord() argument
571 l2capPsm, version, repositories, features); in createPbapPseRecord()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestEnv.java70 public final Features features; field in TestEnv
78 features = new Features.RuntimeFeatures( in TestEnv()
81 model = new TestModel(authority, features); in TestEnv()
82 archiveModel = new TestModel(ArchivesProvider.AUTHORITY, features); in TestEnv()
86 features, in TestEnv()
96 injector.focusManager = new FocusManager(features, selectionMgr, null, null, 0); in TestEnv()
/packages/apps/Settings/src/com/android/settings/dashboard/suggestions/
DSuggestionRanker.java64 Map<String, Map<String, Double>> features = mSuggestionFeaturizer.featurize(suggestionIds); in rankSuggestions() local
67 getRelevanceMetric(features.get(suggestionIds.get(i)))); in rankSuggestions()
73 double getRelevanceMetric(Map<String, Double> features) { in getRelevanceMetric() argument
75 if (features == null) { in getRelevanceMetric()
79 sum += WEIGHTS.get(feature) * features.get(feature); in getRelevanceMetric()
DSuggestionFeaturizer.java65 Map<String, Map<String, Double>> features = new HashMap<>(); in featurize() local
69 features.put(pkgName, featureMap); in featurize()
92 return features; in featurize()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/services/
DFileOperationServiceTest.java83 TestFeatures features = new TestFeatures(); in setUp() local
84 features.notificationChannel = InstrumentationRegistry.getTargetContext() in setUp()
108 assertNull(mService.features); in setUp()
109 mService.features = features; in setUp()
395 public Job createJob(Context service, Job.Listener listener, String id, Features features) { in createJob() argument
397 service, listener, id, mOpType, mDestination, mSrcs, mJobRunnable, features); in createJob()
/packages/services/Car/car-support-lib/src/android/support/car/hardware/
DCarSensorsProxy.java194 Set<Integer> features = new HashSet<>(); in initSupportedSensors() local
198 features.add(CarSensorManager.SENSOR_TYPE_COMPASS); in initSupportedSensors()
201 features.add(CarSensorManager.SENSOR_TYPE_ACCELEROMETER); in initSupportedSensors()
204 features.add(CarSensorManager.SENSOR_TYPE_GYROSCOPE); in initSupportedSensors()
207 features.add(CarSensorManager.SENSOR_TYPE_LOCATION); in initSupportedSensors()
208 features.add(CarSensorManager.SENSOR_TYPE_GPS_SATELLITE); in initSupportedSensors()
210 return toIntArray(features); in initSupportedSensors()
/packages/apps/DocumentsUI/src/com/android/documentsui/queries/
DCommandInterceptor.java45 public CommandInterceptor(Features features) { in CommandInterceptor() argument
46 mFeatures = features; in CommandInterceptor()
225 Features features, in createDebugModeFlipper() argument
229 if (!features.isDebugSupportEnabled()) { in createDebugModeFlipper()
239 assert(features.isDebugSupportEnabled()); in createDebugModeFlipper()
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
DFilesActivity.java93 Features features = Features.create(this); in onCreate() local
97 features, in onCreate()
101 DialogController.create(features, this, messages), in onCreate()
111 mInjector.features, in onCreate()
118 mInjector.features, in onCreate()
161 mInjector.features); in onCreate()
/packages/apps/Dialer/java/com/android/dialer/oem/
DMotorolaUtils.java88 public static boolean shouldShowHdIconInCallLog(Context context, int features) { in shouldShowHdIconInCallLog() argument
91 && (features & FEATURES_HD_CALL) == FEATURES_HD_CALL in shouldShowHdIconInCallLog()
95 public static boolean shouldShowWifiIconInCallLog(Context context, int features) { in shouldShowWifiIconInCallLog() argument
98 && (features & FEATURES_WIFI) == FEATURES_WIFI in shouldShowWifiIconInCallLog()
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/
DDialogController.java68 … public RuntimeDialogController(Features features, Activity activity, MessageBuilder messages) { in RuntimeDialogController() argument
69 mFeatures = features; in RuntimeDialogController()
207 static DialogController create(Features features, Activity activity, MessageBuilder messages) { in create() argument
208 return new RuntimeDialogController(features, activity, messages); in create()
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DPickActivity.java83 Features features = Features.create(this); in onCreate() local
87 features, in onCreate()
91 DialogController.create(features, this, null), in onCreate()
103 mInjector.features, in onCreate()
138 mInjector.features); in onCreate()
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_sdp.cpp253 jint msg_types, jint features) { in sdpCreateMapMasRecordNative() argument
274 record.mas.supported_features = features; in sdpCreateMapMasRecordNative()
292 jint features) { in sdpCreateMapMnsRecordNative() argument
312 record.mns.supported_features = features; in sdpCreateMapMnsRecordNative()
330 jint features) { in sdpCreatePbapPseRecordNative() argument
350 record.pse.supported_features = features; in sdpCreatePbapPseRecordNative()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DInspectorUiTest.java40 if (!features.isInspectorEnabled()) { in launchActivity()
53 if (!features.isInspectorEnabled()) { in testDisplayFileName()
60 if (!features.isInspectorEnabled()) { in testDisplayFileType()
/packages/providers/CallLogProvider/src/com/android/calllogbackup/
DCallLogBackupAgent.java78 int features; field in CallLogBackupAgent.Call
264 call.numberPresentation, call.type, call.features, handle, call.date, in writeCallToProvider()
336 call.features = dataInput.readInt(); in readCallFromData()
392 call.features = cursor.getInt(cursor.getColumnIndex(CallLog.Calls.FEATURES)); in readCallFromCursor()
412 data.writeInt(call.features); in addCallToBackup()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DModelTest.java73 private TestFeatures features; field in ModelTest
77 features = new TestFeatures(); in setUp()
98 model = new Model(features); in setUp()

1234