Home
last modified time | relevance | path

Searched refs:sir (Results 1 – 25 of 56) sorted by relevance

123

/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/
DIndexDataConverter.java95 final SearchIndexableResource sir = (SearchIndexableResource) data; in convertPreIndexDataToIndexData() local
98 final List<IndexData> resourceData = convertResource(sir, authority, in convertPreIndexDataToIndexData()
194 private List<IndexData> convertResource(SearchIndexableResource sir, String authority, in convertResource() argument
196 final Context context = sir.context; in convertResource()
201 parser = context.getResources().getXml(sir.xmlResId); in convertResource()
252 .setClassName(sir.className) in convertResource()
253 .setPackageName(sir.packageName) in convertResource()
255 .setIntentAction(sir.intentAction) in convertResource()
256 .setIntentTargetPackage(sir.intentTargetPackage) in convertResource()
257 .setIntentTargetClass(sir.intentTargetClass) in convertResource()
[all …]
DPreIndexDataCollector.java148 SearchIndexableResource sir = new SearchIndexableResource(packageContext); in getIndexablesForXmlResourceUri() local
149 sir.packageName = packageName; in getIndexablesForXmlResourceUri()
150 sir.xmlResId = cursor.getInt(COLUMN_INDEX_XML_RES_RESID); in getIndexablesForXmlResourceUri()
151 sir.className = cursor.getString(COLUMN_INDEX_XML_RES_CLASS_NAME); in getIndexablesForXmlResourceUri()
152 sir.iconResId = cursor.getInt(COLUMN_INDEX_XML_RES_ICON_RESID); in getIndexablesForXmlResourceUri()
153 sir.intentAction = cursor.getString(COLUMN_INDEX_XML_RES_INTENT_ACTION); in getIndexablesForXmlResourceUri()
154 sir.intentTargetPackage = cursor.getString( in getIndexablesForXmlResourceUri()
156 sir.intentTargetClass = cursor.getString( in getIndexablesForXmlResourceUri()
158 resources.add(sir); in getIndexablesForXmlResourceUri()
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
DBaseSearchIndexProviderTest.java106 final SearchIndexableResource sir = new SearchIndexableResource(context); in getAllPreferenceControllers_shouldCreateControllerFromCodeAndXml()
107 sir.xmlResId = R.xml.location_settings; in getAllPreferenceControllers_shouldCreateControllerFromCodeAndXml()
108 return Collections.singletonList(sir); in getAllPreferenceControllers_shouldCreateControllerFromCodeAndXml()
164 final SearchIndexableResource sir = new SearchIndexableResource(context); in getNonIndexableKeys_pageSearchIsDisabled_shouldSuppressEverything()
165 sir.xmlResId = R.xml.data_usage; in getNonIndexableKeys_pageSearchIsDisabled_shouldSuppressEverything()
166 return Collections.singletonList(sir); in getNonIndexableKeys_pageSearchIsDisabled_shouldSuppressEverything()
188 final SearchIndexableResource sir = new SearchIndexableResource(context); in getNonIndexableKeys_hasSearchableAttributeInXml_shouldSuppressUnsearchable()
189 sir.xmlResId = R.xml.display_settings; in getNonIndexableKeys_hasSearchableAttributeInXml_shouldSuppressUnsearchable()
190 return Collections.singletonList(sir); in getNonIndexableKeys_hasSearchableAttributeInXml_shouldSuppressUnsearchable()
DFakeSettingsFragment.java104 final SearchIndexableResource sir = new SearchIndexableResource(context);
105 sir.xmlResId = com.android.settings.R.xml.display_settings;
106 result.add(sir);
/packages/apps/Car/Settings/src/com/android/car/settings/search/
DCarBaseSearchIndexProvider.java68 SearchIndexableResource sir = new SearchIndexableResource(context); in getXmlResourcesToIndex() local
69 sir.xmlResId = mXmlRes; in getXmlResourcesToIndex()
70 sir.intentAction = mIntentAction; in getXmlResourcesToIndex()
71 sir.intentTargetPackage = context.getPackageName(); in getXmlResourcesToIndex()
72 sir.intentTargetClass = mIntentClass; in getXmlResourcesToIndex()
73 return Collections.singletonList(sir); in getXmlResourcesToIndex()
/packages/apps/Settings/src/com/android/settings/search/
DBaseSearchIndexProvider.java67 final SearchIndexableResource sir = new SearchIndexableResource(context); in getXmlResourcesToIndex() local
68 sir.xmlResId = mXmlRes; in getXmlResourcesToIndex()
69 return Arrays.asList(sir); in getXmlResourcesToIndex()
147 for (SearchIndexableResource sir : res) { in getPreferenceControllers()
149 .getPreferenceControllersFromXml(context, sir.xmlResId)); in getPreferenceControllers()
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DLocationServicesTest.java46 final List<SearchIndexableResource> sir = LocationServices.SEARCH_INDEX_DATA_PROVIDER in searchProvider_shouldIndexDefaultXml() local
49 assertThat(sir).hasSize(1); in searchProvider_shouldIndexDefaultXml()
50 assertThat(sir.get(0).xmlResId).isEqualTo(R.xml.location_services); in searchProvider_shouldIndexDefaultXml()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DVirtualKeyboardFragment.java57 final SearchIndexableResource sir = new SearchIndexableResource(context);
58 sir.xmlResId = R.xml.virtual_keyboard_settings;
59 return Arrays.asList(sir);
DUserDictionaryList.java85 final SearchIndexableResource sir = new SearchIndexableResource(context);
86 sir.xmlResId = R.xml.user_dictionary_list_fragment;
87 result.add(sir);
/packages/apps/Settings/src/com/android/settings/enterprise/
DPrivacySettingsFinancedPreference.java53 final SearchIndexableResource sir = new SearchIndexableResource(mContext); in getXmlResourcesToIndex() local
54 sir.xmlResId = getPreferenceScreenResId(); in getXmlResourcesToIndex()
55 return Collections.singletonList(sir); in getXmlResourcesToIndex()
DPrivacySettingsEnterprisePreference.java53 final SearchIndexableResource sir = new SearchIndexableResource(mContext); in getXmlResourcesToIndex() local
54 sir.xmlResId = getPreferenceScreenResId(); in getXmlResourcesToIndex()
55 return Collections.singletonList(sir); in getXmlResourcesToIndex()
/packages/apps/Settings/src/com/android/settings/development/featureflags/
DFeatureFlagsDashboard.java70 final SearchIndexableResource sir = new SearchIndexableResource(context);
71 sir.xmlResId = R.xml.feature_flags_settings;
72 result.add(sir);
/packages/apps/Settings/src/com/android/settings/gestures/
DDoubleTwistGestureSettings.java71 final SearchIndexableResource sir = new SearchIndexableResource(context);
72 sir.xmlResId = R.xml.double_twist_gesture_settings;
73 return Arrays.asList(sir);
DAssistGestureSettings.java74 final SearchIndexableResource sir = new SearchIndexableResource(context);
75 sir.xmlResId = R.xml.assist_gesture_settings;
76 return Arrays.asList(sir);
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenModeMessagesSettings.java76 final SearchIndexableResource sir = new SearchIndexableResource(context);
77 sir.xmlResId = R.xml.zen_mode_messages_settings;
78 result.add(sir);
DZenModeCallsSettings.java78 final SearchIndexableResource sir = new SearchIndexableResource(context);
79 sir.xmlResId = R.xml.zen_mode_calls_settings;
80 result.add(sir);
/packages/apps/Settings/src/com/android/settings/applications/
DAppDashboardFragment.java89 final SearchIndexableResource sir = new SearchIndexableResource(context);
90 sir.xmlResId = R.xml.apps;
91 return Arrays.asList(sir);
/packages/apps/Settings/src/com/android/settings/system/
DSystemDashboardFragment.java107 final SearchIndexableResource sir = new SearchIndexableResource(context);
108 sir.xmlResId = R.xml.system_dashboard_fragment;
109 return Arrays.asList(sir);
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DSmartBatterySettings.java86 final SearchIndexableResource sir = new SearchIndexableResource(context);
87 sir.xmlResId = R.xml.smart_battery_detail;
88 return Arrays.asList(sir);
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/
DPrivacySettingsEnterprisePreference.java56 final SearchIndexableResource sir = new SearchIndexableResource(mContext); in getXmlResourcesToIndex() local
57 sir.xmlResId = getPreferenceScreenResId(); in getXmlResourcesToIndex()
58 return Collections.singletonList(sir); in getXmlResourcesToIndex()
/packages/apps/Settings/src/com/android/settings/network/
DMobileNetworkListFragment.java91 final SearchIndexableResource sir = new SearchIndexableResource(context);
92 sir.xmlResId = Utils.isProviderModelEnabled(context)
95 result.add(sir);
/packages/apps/Settings/tests/unit/src/com/android/settings/search/
DFakeSettingsFragment.java103 final SearchIndexableResource sir = new SearchIndexableResource(context);
104 sir.xmlResId = com.android.settings.R.xml.display_settings;
105 result.add(sir);
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/
DZenModeSettingsTest.java104 final List<SearchIndexableResource> sir = ZenModeSettings.SEARCH_INDEX_DATA_PROVIDER in searchProvider_shouldIndexDefaultXml() local
107 assertThat(sir).hasSize(1); in searchProvider_shouldIndexDefaultXml()
108 assertThat(sir.get(0).xmlResId).isEqualTo(R.xml.zen_mode_settings); in searchProvider_shouldIndexDefaultXml()
/packages/apps/Settings/src/com/android/settings/connecteddevice/
DAdvancedConnectedDeviceDashboardFragment.java97 final SearchIndexableResource sir = new SearchIndexableResource(context);
98 sir.xmlResId = R.xml.connected_devices_advanced;
99 return Arrays.asList(sir);
/packages/apps/Settings/src/com/android/settings/accounts/
DManagedProfileSettings.java124 final SearchIndexableResource sir = new SearchIndexableResource(context);
125 sir.xmlResId = R.xml.managed_profile_settings;
126 result.add(sir);

123