/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/ |
D | IndexDataConverter.java | 99 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 …]
|
D | PreIndexDataCollector.java | 148 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/ |
D | BaseSearchIndexProviderTest.java | 106 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()
|
D | FakeSettingsFragment.java | 104 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/ |
D | CarBaseSearchIndexProvider.java | 68 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/ |
D | PrivacySettingsFinancedPreference.java | 51 final SearchIndexableResource sir = new SearchIndexableResource(mContext); in getXmlResourcesToIndex() local 52 sir.xmlResId = getPreferenceScreenResId(); in getXmlResourcesToIndex() 53 return Collections.singletonList(sir); in getXmlResourcesToIndex()
|
D | PrivacySettingsEnterprisePreference.java | 53 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/ |
D | LocationServicesTest.java | 46 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/ |
D | SnoopLoggerFiltersDashboard.java | 71 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/ |
D | FeatureFlagsDashboard.java | 66 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/ |
D | DoubleTwistGestureSettings.java | 71 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/ |
D | ZenModeMessagesSettings.java | 76 final SearchIndexableResource sir = new SearchIndexableResource(context); 77 sir.xmlResId = R.xml.zen_mode_messages_settings; 78 result.add(sir);
|
D | ZenModeCallsSettings.java | 78 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/ |
D | UserDictionaryList.java | 85 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/ |
D | BaseSearchIndexProvider.java | 68 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/ |
D | SmartBatterySettings.java | 85 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/ |
D | PrivacySettingsEnterprisePreference.java | 56 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/ |
D | AdvancedConnectedDeviceDashboardFragment.java | 107 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/ |
D | ZenModeSettingsTest.java | 104 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/ |
D | AppDashboardFragment.java | 106 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/ |
D | FakeSettingsFragment.java | 103 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/ |
D | ManagedProfileSettings.java | 134 final SearchIndexableResource sir = new SearchIndexableResource(context); 135 sir.xmlResId = R.xml.managed_profile_settings; 136 result.add(sir);
|
D | AccountDashboardFragment.java | 154 final SearchIndexableResource sir = new SearchIndexableResource(context); 155 sir.xmlResId = getPreferenceLayoutResId(context); 156 return List.of(sir);
|
/packages/apps/Settings/src/com/android/settings/ |
D | IccLockSettings.java | 339 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/ |
D | PowerUsageAdvanced.java | 470 final SearchIndexableResource sir = new SearchIndexableResource(context); 471 sir.xmlResId = R.xml.power_usage_advanced; 472 return Arrays.asList(sir);
|