Home
last modified time | relevance | path

Searched refs:xmlResId (Results 1 – 25 of 74) sorted by relevance

123

/packages/apps/Settings/src/com/android/settings/search/
DBaseSearchIndexProvider.java68 sir.xmlResId = mXmlRes; in getXmlResourcesToIndex()
149 .getPreferenceControllersFromXml(context, sir.xmlResId)); in getPreferenceControllers()
191 getNonIndexableKeysFromXml(context, res.xmlResId, suppressAllPage)); in getNonIndexableKeysFromXml()
197 public List<String> getNonIndexableKeysFromXml(Context context, @XmlRes int xmlResId, in getNonIndexableKeysFromXml() argument
199 return getKeysFromXml(context, xmlResId, suppressAllPage); in getNonIndexableKeysFromXml()
202 private List<String> getKeysFromXml(Context context, @XmlRes int xmlResId, in getKeysFromXml() argument
207 xmlResId, FLAG_NEED_KEY | FLAG_INCLUDE_PREF_SCREEN | FLAG_NEED_SEARCHABLE); in getKeysFromXml()
214 Log.w(TAG, "Error parsing non-indexable from xml " + xmlResId); in getKeysFromXml()
/packages/apps/Settings/src/com/android/settings/slices/
DSliceDataConverter.java142 int xmlResId = resource.xmlResId; in getSliceDataFromProvider() local
143 if (xmlResId == 0) { in getSliceDataFromProvider()
148 List<SliceData> xmlSliceData = getSliceDataFromXML(xmlResId, fragmentName); in getSliceDataFromProvider()
155 private List<SliceData> getSliceDataFromXML(int xmlResId, String fragmentName) { in getSliceDataFromXML() argument
162 parser = mContext.getResources().getXml(xmlResId); in getSliceDataFromXML()
184 xmlResId, in getSliceDataFromXML()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DPreferenceXmlParser.java84 public static List<Bundle> extractMetadata(Context context, @XmlRes int xmlResId, int flags) in extractMetadata() argument
87 if (xmlResId <= 0) { in extractMetadata()
88 LOG.d(xmlResId + " is invalid."); in extractMetadata()
91 final XmlResourceParser parser = context.getResources().getXml(xmlResId); in extractMetadata()
DPreferenceControllerListHelper.java60 @XmlRes int xmlResId, FragmentController fragmentController, in getPreferenceControllersFromXml() argument
65 preferenceMetadata = PreferenceXmlParser.extractMetadata(context, xmlResId, in getPreferenceControllersFromXml()
/packages/apps/Settings/tests/unit/src/com/android/settings/security/
DSecuritySettingsTest.java105 keys.addAll(getKeysFromXml(res.xmlResId)); in getAllXmlKeys()
110 private List<String> getKeysFromXml(@XmlRes int xmlResId) throws Exception { in getKeysFromXml() argument
113 .extractMetadata(mContext, xmlResId, FLAG_NEED_KEY | FLAG_INCLUDE_PREF_SCREEN); in getKeysFromXml()
/packages/apps/Settings/tests/unit/src/com/android/settings/slices/
DSliceControllerInXmlCodeInspector.java83 for (int xmlResId : xmlResources) { in initDeclaredControllers()
85 xmlResId, PreferenceXmlParserUtils.MetadataFlag.FLAG_NEED_PREF_CONTROLLER); in initDeclaredControllers()
169 xmlResSet.add(resource.xmlResId); in getIndexableXml()
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSliceControllerInXmlCodeInspector.java83 for (int xmlResId : xmlResources) { in initDeclaredControllers()
85 xmlResId, PreferenceXmlParserUtils.MetadataFlag.FLAG_NEED_PREF_CONTROLLER); in initDeclaredControllers()
169 xmlResSet.add(resource.xmlResId); in getIndexableXml()
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
DBaseSearchIndexProviderTest.java107 sir.xmlResId = R.xml.location_settings; in getAllPreferenceControllers_shouldCreateControllerFromCodeAndXml()
165 sir.xmlResId = R.xml.data_usage; in getNonIndexableKeys_pageSearchIsDisabled_shouldSuppressEverything()
189 sir.xmlResId = R.xml.display_settings; in getNonIndexableKeys_hasSearchableAttributeInXml_shouldSuppressUnsearchable()
/packages/apps/Settings/src/com/android/settings/core/
DPreferenceXmlParserUtils.java177 public static List<Bundle> extractMetadata(Context context, @XmlRes int xmlResId, int flags) in extractMetadata() argument
180 if (xmlResId <= 0) { in extractMetadata()
181 Log.d(TAG, xmlResId + " is invalid."); in extractMetadata()
184 final XmlResourceParser parser = context.getResources().getXml(xmlResId); in extractMetadata()
DPreferenceControllerListHelper.java53 @XmlRes int xmlResId) { in getPreferenceControllersFromXml() argument
57 preferenceMetadata = PreferenceXmlParserUtils.extractMetadata(context, xmlResId, in getPreferenceControllersFromXml()
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/
DXmlControllerAttributeTest.java131 xmlResSet.add(resource.xmlResId); in getIndexableXml()
137 private List<String> getXmlControllers(int xmlResId) throws Exception { in getXmlControllers() argument
141 parser = mContext.getResources().getXml(xmlResId); in getXmlControllers()
/packages/services/Telephony/src/com/android/phone/
DCarrierXmlParser.java424 int xmlResId = 0; in CarrierXmlParser() local
427 xmlResId = context.getResources().getIdentifier(xmlResIdName, "xml", in CarrierXmlParser()
430 if (xmlResId == 0) { in CarrierXmlParser()
431 xmlResId = R.xml.carrier_ss_string; in CarrierXmlParser()
435 XmlResourceParser parser = context.getResources().getXml(xmlResId); in CarrierXmlParser()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DBasePrivacySettingsPreferenceTest.java50 assertThat(searchIndexableResources.get(0).xmlResId) in verifyEnterpriseSearchIndexableResources()
96 assertThat(searchIndexableResources.get(0).xmlResId) in verifyFinancedSearchIndexableResources()
/packages/apps/Contacts/tests/src/com/android/contacts/model/account/
DExternalAccountTypeTest.java154 private void checkEditSchema_mustHaveChecks(int xmlResId, boolean expectInitialized) { in checkEditSchema_mustHaveChecks() argument
157 getInstrumentation().getContext().getResources().getXml(xmlResId) in checkEditSchema_mustHaveChecks()
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
DPickupGestureSettingsTest.java48 assertThat(indexRes.get(0).xmlResId).isEqualTo(mSettings.getPreferenceScreenResId()); in testSearchIndexProvider_shouldIndexResource()
DPowerMenuSettingsTest.java48 assertThat(indexRes.get(0).xmlResId).isEqualTo(mSettings.getPreferenceScreenResId()); in testSearchIndexProvider_shouldIndexResource()
DDoubleTapPowerSettingsTest.java48 assertThat(indexRes.get(0).xmlResId).isEqualTo(mSettings.getPreferenceScreenResId()); in testSearchIndexProvider_shouldIndexResource()
DPreventRingingGestureSettingsTest.java48 assertThat(indexRes.get(0).xmlResId).isEqualTo(mSettings.getPreferenceScreenResId()); in testSearchIndexProvider_shouldIndexResource()
DDoubleTapScreenSettingsTest.java48 assertThat(indexRes.get(0).xmlResId).isEqualTo(mSettings.getPreferenceScreenResId()); in testSearchIndexProvider_shouldIndexResource()
DDoubleTwistGestureSettingsTest.java48 assertThat(indexRes.get(0).xmlResId).isEqualTo(mSettings.getPreferenceScreenResId()); in testSearchIndexProvider_shouldIndexResource()
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
DMediaControlsSettingsTest.java48 assertThat(indexRes.get(0).xmlResId).isEqualTo(mSettings.getPreferenceScreenResId()); in testSearchIndexProvider_shouldIndexResource()
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DLocationServicesTest.java50 assertThat(sir.get(0).xmlResId).isEqualTo(R.xml.location_services); in searchProvider_shouldIndexDefaultXml()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DNightDisplaySettingsTest.java44 indexedXml.add(resource.xmlResId); in testNightDisplayIndexing_containsResource()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DVirtualKeyboardFragment.java58 sir.xmlResId = R.xml.virtual_keyboard_settings;
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DNetworkDashboardFragmentTest.java66 assertThat(indexRes.get(0).xmlResId).isEqualTo(mFragment.getPreferenceScreenResId()); in getXmlResourcesToIndex_shouldIncludeFragmentXml()

123