Home
last modified time | relevance | path

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

12345

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
DQuickViewIntentBuilderTest.java55 String[] features = intent.getStringArrayExtra(Intent.EXTRA_QUICK_VIEW_FEATURES); in testSetsNoFeatures_InArchiveDocument() local
56 assertEquals(0, features.length); in testSetsNoFeatures_InArchiveDocument()
66 Set<String> features = new HashSet<>( in testSetsFullFeatures_RegularDocument() local
69 assertEquals("Unexpected features set: " + features, 6, features.size()); in testSetsFullFeatures_RegularDocument()
70 assertTrue(features.contains(QuickViewConstants.FEATURE_VIEW)); in testSetsFullFeatures_RegularDocument()
71 assertTrue(features.contains(QuickViewConstants.FEATURE_EDIT)); in testSetsFullFeatures_RegularDocument()
72 assertTrue(features.contains(QuickViewConstants.FEATURE_DELETE)); in testSetsFullFeatures_RegularDocument()
73 assertTrue(features.contains(QuickViewConstants.FEATURE_SEND)); in testSetsFullFeatures_RegularDocument()
74 assertTrue(features.contains(QuickViewConstants.FEATURE_DOWNLOAD)); in testSetsFullFeatures_RegularDocument()
75 assertTrue(features.contains(QuickViewConstants.FEATURE_PRINT)); in testSetsFullFeatures_RegularDocument()
[all …]
DMenuManagerTest.java109 private TestFeatures features; field in MenuManagerTest
175 features = new TestFeatures(); in setUp()
190 features, in setUp()
248 features.archiveCreation = false; in testActionMenu_CreateArchives_ReflectsFeatureState()
304 features, in testActionsMenu_cantViewInOwner_noSelection()
364 features.archiveCreation = true; in testActionMenu_CanExtract_hidesCopyToAndCompressAndShare()
394 features.inspector = true; in testActionMenu_Inspector_EnabledForSingleSelection()
404 features.inspector = true; in testActionMenu_Inspector_DisabledForMultiSelection()
453 features.inspector = true; in testOptionMenu_Inspector_VisibleAndEnabled()
462 features.inspector = true; in testOptionMenu_Inspector_VisibleButDisabled()
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestEnv.java73 public final Features features; field in TestEnv
78 private TestEnv(Context context, Features features, String authority) { in TestEnv() argument
79 this.features = features; in TestEnv()
82 model = new TestModel(authority, features); in TestEnv()
83 archiveModel = new TestModel(ArchivesProvider.AUTHORITY, features); in TestEnv()
87 features, in TestEnv()
97 injector.focusManager = new FocusManager(features, selectionMgr, null, null, 0); in TestEnv()
116 public static TestEnv create(Features features) { in create() argument
117 return create(features, TestProvidersAccess.HOME.authority); in create()
124 public static TestEnv create(Features features, String authority) { in create() argument
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DCallLogManager.java84 int features, PhoneAccountHandle accountHandle, long creationDate, in AddCallArgs() argument
95 this.features = features; in AddCallArgs()
116 public final int features; field in CallLogManager.AddCallArgs
401 int features, in logCall() argument
444 viaNumber, presentation, callType, features, accountHandle, start, duration, in logCall()
480 int features = 0; in getCallFeatures() local
482 features |= Calls.FEATURES_VIDEO; in getCallFeatures()
485 features |= Calls.FEATURES_PULLED_EXTERNALLY; in getCallFeatures()
488 features |= Calls.FEATURES_HD_CALL; in getCallFeatures()
491 features |= Calls.FEATURES_WIFI; in getCallFeatures()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DFileOperation.java98 abstract Job createJob(Context service, Job.Listener listener, String id, Features features); in createJob() argument
138 CopyJob createJob(Context service, Job.Listener listener, String id, Features features) { in createJob() argument
140 service, listener, id, getDestination(), getSrc(), getMessenger(), features); in createJob()
179 CopyJob createJob(Context service, Job.Listener listener, String id, Features features) { in createJob() argument
181 getMessenger(), features); in createJob()
221 CopyJob createJob(Context service, Job.Listener listener, String id, Features features) { in createJob() argument
223 service, listener, id, getDestination(), getSrc(), getMessenger(), features); in createJob()
256 Job createJob(Context service, Job.Listener listener, String id, Features features) { in createJob() argument
261 getMessenger(), features); in createJob()
264 mSrcParent, features); in createJob()
/packages/apps/TV/common/src/com/android/tv/common/feature/
DFeatureUtils.java31 public static Feature or(final Feature... features) { in or() argument
35 for (Feature f : features) { in or()
45 return "or(" + Arrays.asList(features) + ")"; in or()
55 public static Feature and(final Feature... features) {
59 for (Feature f : features) {
69 return "and(" + Arrays.asList(features) + ")";
/packages/modules/ExtServices/src/android/ext/services/resolver/
DLRResolverRankerService.java74 ArrayMap<String, Float> features = getFeatures(target); in onPredictSharingProbabilities() local
75 target.setSelectProbability(predict(features)); in onPredictSharingProbabilities()
129 ArrayMap<String, Float> features = new ArrayMap<>(4); in getFeatures() local
130 features.put(RECENCY_SCORE, target.getRecencyScore()); in getFeatures()
131 features.put(TIME_SPENT_SCORE, target.getTimeSpentScore()); in getFeatures()
132 features.put(LAUNCH_SCORE, target.getLaunchScore()); in getFeatures()
133 features.put(CHOOSER_SCORE, target.getChooserScore()); in getFeatures()
134 return features; in getFeatures()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DInjector.java51 public final Features features; field in Injector
84 Features features, in Injector() argument
91 this(features, config, prefs, messages, dialogs, fileTypeLookup, in Injector()
92 shortcutsUpdater, new Model(features)); in Injector()
97 Features features, in Injector() argument
106 this.features = features; in Injector()
DAbstractActionHandler.java199 mInjector.features, in refreshDocument()
422 if (!mInjector.features.isDebugSupportEnabled()) { in setDebugMode()
427 mInjector.features.forceFeature(R.bool.feature_command_interceptor, enabled); in setDebugMode()
428 mInjector.features.forceFeature(R.bool.feature_inspector, enabled); in setDebugMode()
443 assert (mInjector.features.isDebugSupportEnabled()); in showDebugMessage()
632 mInjector.features, in onCreateLoader()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/ranking/
DSuggestionRanker.java78 Map<String, Map<String, Double>> features = mSuggestionFeaturizer.featurize(suggestions); in rankRelevantSuggestions() local
80 mRelevanceMetrics.put(suggestion, getRelevanceMetric(features.get(suggestion.getId()))); in rankRelevantSuggestions()
98 double getRelevanceMetric(Map<String, Double> features) { in getRelevanceMetric() argument
100 if (features == null) { in getRelevanceMetric()
104 sum += WEIGHTS.get(feature) * features.get(feature); in getRelevanceMetric()
DSuggestionFeaturizer.java64 Map<String, Map<String, Double>> features = new HashMap<>(); in featurize() local
72 features.put(id, featureMap); in featurize()
98 return features; in featurize()
/packages/apps/Bluetooth/src/com/android/bluetooth/sdp/
DSdpManager.java83 int l2capPsm, int version, int msgTypes, int features); in sdpCreateMapMasRecordNative() argument
86 int l2capPsm, int version, int features); in sdpCreateMapMnsRecordNative() argument
92 int l2capPsm, int version, int repositories, int features); in sdpCreatePbapPseRecordNative() argument
507 int version, int msgTypes, int features) { in createMapMasRecord() argument
512 msgTypes, features); in createMapMasRecord()
536 int features) { in createMapMnsRecord() argument
540 return sdpCreateMapMnsRecordNative(serviceName, rfcommChannel, l2capPsm, version, features); in createMapMnsRecord()
587 int repositories, int features) { in createPbapPseRecord() argument
592 repositories, features); in createPbapPseRecord()
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DCallbackActionHelper.java50 Context context, String number, int features, String phoneAccountComponentName) { in getCallbackAction() argument
51 return getCallbackAction(number, features, isDuoCall(context, phoneAccountComponentName)); in getCallbackAction()
63 String number, int features, boolean isDuoCall) { in getCallbackAction() argument
71 boolean isVideoCall = (features & Calls.FEATURES_VIDEO) == Calls.FEATURES_VIDEO; in getCallbackAction()
/packages/apps/DocumentsUI/src/com/android/documentsui/queries/
DCommandInterceptor.java45 public CommandInterceptor(Features features) { in CommandInterceptor() argument
46 mFeatures = features; in CommandInterceptor()
201 Features features, in createDebugModeFlipper() argument
205 if (!features.isDebugSupportEnabled()) { in createDebugModeFlipper()
215 assert(features.isDebugSupportEnabled()); in createDebugModeFlipper()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/services/
DFileOperationServiceTest.java85 TestFeatures features = new TestFeatures(); in setUp() local
86 features.notificationChannel = InstrumentationRegistry.getTargetContext() in setUp()
110 assertNull(mService.features); in setUp()
111 mService.features = features; in setUp()
425 public Job createJob(Context service, Job.Listener listener, String id, Features features) { in createJob() argument
427 service, listener, id, mOpType, mDestination, mSrcs, mJobRunnable, features); in createJob()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowRestrictedLockUtilsInternal.java85 int features, final @UserIdInt int userId) { in checkIfKeyguardFeaturesDisabled() argument
86 return (sKeyguardDisabledFeatures & features) == 0 ? null : new EnforcedAdmin(); in checkIfKeyguardFeaturesDisabled()
136 public static void setKeyguardDisabledFeatures(int features) { in setKeyguardDisabledFeatures() argument
137 sKeyguardDisabledFeatures = features; in setKeyguardDisabledFeatures()
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
DFilesActivity.java89 Features features = Features.create(this); in onCreate() local
93 features, in onCreate()
97 DialogController.create(features, this, messages), in onCreate()
107 mInjector.features, in onCreate()
114 mInjector.features, in onCreate()
160 mInjector.features, in onCreate()
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/
DDialogController.java70 … public RuntimeDialogController(Features features, Activity activity, MessageBuilder messages) { in RuntimeDialogController() argument
71 mFeatures = features; in RuntimeDialogController()
208 static DialogController create(Features features, Activity activity, MessageBuilder messages) { in create() argument
209 return new RuntimeDialogController(features, activity, messages); in create()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DInspectorUiTest.java43 if (!features.isInspectorEnabled()) { in launchActivity()
55 if (!features.isInspectorEnabled()) { in testDisplayFileName()
62 if (!features.isInspectorEnabled()) { in testFolderDetails()
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_sdp.cpp236 jint msg_types, jint features) { in sdpCreateMapMasRecordNative() argument
257 record.mas.supported_features = features; in sdpCreateMapMasRecordNative()
275 jint features) { in sdpCreateMapMnsRecordNative() argument
295 record.mns.supported_features = features; in sdpCreateMapMnsRecordNative()
344 jint features) { in sdpCreatePbapPseRecordNative() argument
364 record.pse.supported_features = features; in sdpCreatePbapPseRecordNative()
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DPickActivity.java88 Features features = Features.create(this); in onCreate() local
92 features, in onCreate()
96 DialogController.create(features, this, null), in onCreate()
105 mInjector.features, in onCreate()
143 mInjector.features, in onCreate()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DModelTest.java74 private TestFeatures features; field in ModelTest
78 features = new TestFeatures(); in setUp()
99 model = new Model(features); in setUp()
DAbstractActionHandlerTest.java115 if (!mEnv.features.isLaunchToDocumentEnabled()) { in testOpensContainerDocuments_OpenFolderInSearch_JumpsToNewLocation()
159 if (!mEnv.features.isLaunchToDocumentEnabled()) { in testOpensContainerDocuments_ClickArchiveInSearch_opensArchiveInArchiveProvider()
197 if (!mEnv.features.isLaunchToDocumentEnabled()) { in testLaunchToDocuments()
223 if (!mEnv.features.isLaunchToDocumentEnabled()) { in testLaunchToDocuments_convertsTreeUriToDocumentUri()
/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/systemcalllog/
DSystemCallLogDataSource.java312 int features = cursor.getInt(featuresColumn); in handleInsertsAndUpdates() local
316 if (isDuoAudioCall(phoneAccountComponentName, features)) { in handleInsertsAndUpdates()
347 contentValues.put(AnnotatedCallLog.FEATURES, features); in handleInsertsAndUpdates()
379 private boolean isDuoAudioCall(@Nullable String phoneAccountComponentName, int features) { in isDuoAudioCall() argument
381 && ((features & Calls.FEATURES_VIDEO) != Calls.FEATURES_VIDEO); in isDuoAudioCall()
/packages/providers/CallLogProvider/src/com/android/calllogbackup/
DCallLogBackupAgent.java76 int features; field in CallLogBackupAgent.Call
269 call.numberPresentation, call.type, call.features, handle, call.date, in writeCallToProvider()
344 call.features = dataInput.readInt(); in readCallFromData()
415 call.features = cursor.getInt(cursor.getColumnIndex(CallLog.Calls.FEATURES)); in readCallFromCursor()
440 data.writeInt(call.features); in addCallToBackup()

12345