Home
last modified time | relevance | path

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

123

/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/
DIndexDataConverter.java99 final SearchIndexableResource sir = (SearchIndexableResource) data; in convertPreIndexDataToIndexData() local
102 final List<IndexData> resourceData = convertResource(sir, authority, in convertPreIndexDataToIndexData()
219 private List<IndexData> convertResource(SearchIndexableResource sir, String authority, in convertResource() argument
221 final Context context = sir.context; in convertResource()
226 parser = context.getResources().getXml(sir.xmlResId); in convertResource()
278 .setClassName(sir.className) in convertResource()
279 .setPackageName(sir.packageName) in convertResource()
281 .setIntentAction(sir.intentAction) in convertResource()
282 .setIntentTargetPackage(sir.intentTargetPackage) in convertResource()
283 .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()
199 final SearchIndexableResource sir = new SearchIndexableResource(context); in getNonIndexableKeys_hasSearchableAttributeInXml_shouldSuppressUnsearchable()
200 sir.xmlResId = R.xml.display_settings; in getNonIndexableKeys_hasSearchableAttributeInXml_shouldSuppressUnsearchable()
201 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/enterprise/
DPrivacySettingsFinancedPreference.java51 final SearchIndexableResource sir = new SearchIndexableResource(mContext); in getXmlResourcesToIndex() local
52 sir.xmlResId = getPreferenceScreenResId(); in getXmlResourcesToIndex()
53 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/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/development/snooplogger/
DSnoopLoggerFiltersDashboard.java71 final SearchIndexableResource sir = new SearchIndexableResource(context);
72 sir.xmlResId = R.xml.snoop_logger_filters_settings;
73 return List.of(sir);
/packages/apps/Settings/src/com/android/settings/development/featureflags/
DFeatureFlagsDashboard.java66 final SearchIndexableResource sir = new SearchIndexableResource(context);
67 sir.xmlResId = R.xml.feature_flags_settings;
68 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);
/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/inputmethod/
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/search/
DBaseSearchIndexProvider.java68 final SearchIndexableResource sir = new SearchIndexableResource(context); in getXmlResourcesToIndex() local
69 sir.xmlResId = mXmlRes; in getXmlResourcesToIndex()
70 return Arrays.asList(sir); in getXmlResourcesToIndex()
167 for (SearchIndexableResource sir : res) { in getPreferenceControllers()
169 .getPreferenceControllersFromXml(context, sir.xmlResId)); in getPreferenceControllers()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DSmartBatterySettings.java85 final SearchIndexableResource sir = new SearchIndexableResource(context);
86 sir.xmlResId = R.xml.smart_battery_detail;
87 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/connecteddevice/
DAdvancedConnectedDeviceDashboardFragment.java107 final SearchIndexableResource sir = new SearchIndexableResource(context);
108 sir.xmlResId = R.xml.connected_devices_advanced;
109 return Arrays.asList(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/applications/
DAppDashboardFragment.java106 final SearchIndexableResource sir = new SearchIndexableResource(context);
107 sir.xmlResId = R.xml.apps;
108 return Arrays.asList(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/src/com/android/settings/accounts/
DManagedProfileSettings.java134 final SearchIndexableResource sir = new SearchIndexableResource(context);
135 sir.xmlResId = R.xml.managed_profile_settings;
136 result.add(sir);
DAccountDashboardFragment.java154 final SearchIndexableResource sir = new SearchIndexableResource(context);
155 sir.xmlResId = getPreferenceLayoutResId(context);
156 return List.of(sir);
/packages/apps/Settings/src/com/android/settings/
DIccLockSettings.java339 final SubscriptionInfo sir = getVisibleSubscriptionInfoForSimSlotIndex(mSlotId); in updatePreferences() local
340 final int subId = (sir != null) ? sir.getSubscriptionId() in updatePreferences()
352 mPinDialog.setEnabled(sir != null); in updatePreferences()
355 mPinToggle.setEnabled(sir != null); in updatePreferences()
357 if (sir != null) { in updatePreferences()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DPowerUsageAdvanced.java470 final SearchIndexableResource sir = new SearchIndexableResource(context);
471 sir.xmlResId = R.xml.power_usage_advanced;
472 return Arrays.asList(sir);

123