Home
last modified time | relevance | path

Searched refs:names (Results 1 – 25 of 136) sorted by relevance

123456

/packages/modules/Connectivity/tests/common/java/android/net/
DConnectivitySettingsManagerTest.kt99 private fun resetSettings(names: Array<String>, type: String, values: Array<String?>) { in <lambda>()
100 for (i in names.indices) { in <lambda>()
106 Settings.Secure.putString(resolver, names[i], values[i]) in <lambda>()
108 Settings.Global.putString(resolver, names[i], values[i]) in <lambda>()
115 names: Array<String>, in <lambda>()
123 val originals: Array<String?> = Array(names.size) { i -> in <lambda>()
125 Settings.Secure.getString(resolver, names[i]) in <lambda>()
127 Settings.Global.getString(resolver, names[i]) in <lambda>()
132 for (i in names.indices) { in <lambda>()
134 Settings.Secure.putString(resolver, names[i], testIntValues[i].toString()) in <lambda>()
[all …]
/packages/apps/Car/SystemUI/src/com/android/systemui/
DCarSystemUIFactory.java45 Set<String> names = new HashSet<>(); in getSystemUIServiceComponents() local
48 names.add(s); in getSystemUIServiceComponents()
52 names.remove(s); in getSystemUIServiceComponents()
56 names.add(s); in getSystemUIServiceComponents()
59 String[] finalNames = new String[names.size()]; in getSystemUIServiceComponents()
60 names.toArray(finalNames); in getSystemUIServiceComponents()
/packages/apps/Dialer/java/com/android/voicemail/impl/
DOmtpVvmCarrierConfigHelper.java209 Set<String> names = getCarrierVvmPackageNames(overrideConfig); in getCarrierVvmPackageNamesWithoutValidation() local
210 if (names != null) { in getCarrierVvmPackageNamesWithoutValidation()
211 return names; in getCarrierVvmPackageNamesWithoutValidation()
213 names = getCarrierVvmPackageNames(carrierConfig); in getCarrierVvmPackageNamesWithoutValidation()
214 if (names != null) { in getCarrierVvmPackageNamesWithoutValidation()
215 return names; in getCarrierVvmPackageNamesWithoutValidation()
230 Set<String> names = new ArraySet<>(); in getCarrierVvmPackageNames() local
232 names.add(bundle.getString(KEY_CARRIER_VVM_PACKAGE_NAME_STRING)); in getCarrierVvmPackageNames()
237 Collections.addAll(names, vvmPackages); in getCarrierVvmPackageNames()
240 if (names.isEmpty()) { in getCarrierVvmPackageNames()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DHSFriendlyNameElement.java37 public HSFriendlyNameElement(List<I18Name> names) { in HSFriendlyNameElement() argument
39 mNames = names; in HSFriendlyNameElement()
52 List<I18Name> names = new ArrayList<I18Name>(); in parse() local
62 names.add(name); in parse()
64 return new HSFriendlyNameElement(names); in parse()
DVenueNameElement.java56 public VenueNameElement(List<I18Name> names) { in VenueNameElement() argument
58 mNames = names; in VenueNameElement()
76 List<I18Name> names = new ArrayList<I18Name>(); in parse() local
84 names.add(name); in parse()
86 return new VenueNameElement(names); in parse()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
DResultActivity.java114 String[] names = new String[columnNames.length]; in addRowsForQuery() local
115 System.arraycopy(columnNames, 0, names, 0, columnNames.length); in addRowsForQuery()
116 Arrays.sort(names); in addRowsForQuery()
117 for (int i = 0; i < names.length; i++) { in addRowsForQuery()
118 int index = cursor.getColumnIndex(names[i]); in addRowsForQuery()
120 addRow(names[i], value); in addRowsForQuery()
122 if (names[i].equals(Contacts.PHOTO_ID) && !TextUtils.isEmpty(value)) { in addRowsForQuery()
/packages/apps/Car/libs/car-messenger-common/src/com/android/car/messenger/common/
DUtils.java388 public static String constructGroupConversationTitle(List<String> names, String delimiter, in constructGroupConversationTitle() argument
390 return constructGroupConversationTitle(names, delimiter, conversationTitleLength, in constructGroupConversationTitle()
401 public static String constructGroupConversationTitle(List<String> names, String delimiter, in constructGroupConversationTitle() argument
403 List<String> sortedNames = getSortedSubsetNames(names, conversationTitleLength, in constructGroupConversationTitle()
418 private static List<String> getSortedSubsetNames(List<String> names, in getSortedSubsetNames() argument
421 Collections.sort(names, Utils.ALPHA_THEN_NUMERIC_COMPARATOR); in getSortedSubsetNames()
424 while (namesCounter < conversationTitleLength && indexCounter < names.size()) { in getSortedSubsetNames()
425 namesCounter = namesCounter + names.get(indexCounter).length() + delimiterLength; in getSortedSubsetNames()
428 return names.subList(0, indexCounter); in getSortedSubsetNames()
DConversationKey.java44 List<String> names = Utils.getInclusiveRecipientsUrisList(intent); in createConversationKey() local
45 Collections.sort(names); in createConversationKey()
46 subKey = names.toString(); in createConversationKey()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DContactsManager.java186 final HashSet<String> names = new HashSet<>(); in getValidNames() local
187 for (int i = 0; i < contacts.size() && names.size() < MAX_CONTACT_NAMES; ++i) { in getValidNames()
188 names.add(contacts.get(i).mName); in getValidNames()
190 return new ArrayList<>(names); in getValidNames()
234 public void updateLocalState(final ArrayList<String> names) { in updateLocalState() argument
236 mHashCodeAtLastRebuild.set(names.hashCode()); in updateLocalState()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/dirlist/
DDirectoryAddonsAdapterTest.java85 String[] names = {"Trader Joe's", "Alphabeta", "Lucky", "Vons", "Gelson's"}; in testItemCount_allDirs() local
86 for (String name : names) { in testItemCount_allDirs()
95 String[] names = {"123.txt", "234.jpg", "abc.pdf"}; in testItemCount_allFiles() local
96 for (String name : names) { in testItemCount_allFiles()
104 String[] names = {"123.txt", "234.jpg", "abc.pdf"}; in testAddsInfoMessage_WithDirectoryChildren() local
105 for (String name : names) { in testAddsInfoMessage_WithDirectoryChildren()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sorting/
DSortingCursorWrapperTest.java137 List<String> names = new ArrayList<>(); in testSort_names_ascending() local
148 names.add(getCursorString(cursor, Document.COLUMN_DISPLAY_NAME)); in testSort_names_ascending()
152 for (int i = 0; i < names.size()-1; ++i) { in testSort_names_ascending()
153 assertTrue(Shared.compareToIgnoreCaseNullable(names.get(i), names.get(i+1)) <= 0); in testSort_names_ascending()
161 List<String> names = new ArrayList<>(); in testSort_names_descending() local
172 names.add(getCursorString(cursor, Document.COLUMN_DISPLAY_NAME)); in testSort_names_descending()
176 for (int i = 0; i < names.size()-1; ++i) { in testSort_names_descending()
177 assertTrue(Shared.compareToIgnoreCaseNullable(names.get(i), names.get(i+1)) >= 0); in testSort_names_descending()
/packages/apps/Contacts/src/com/android/contacts/interactions/
DContactMultiDeletionInteraction.java203 final HashSet<String> names = Sets.newHashSet(); in onLoadFinished() local
220 names.add(name); in onLoadFinished()
259 final String[] namesArray = names.toArray(new String[names.size()]); in onLoadFinished()
313 protected void doDeleteContact(long[] contactIds, final String[] names) { in doDeleteContact() argument
315 contactIds, names)); in doDeleteContact()
/packages/apps/Dialer/java/com/android/dialer/searchfragment/common/
DQueryFilteringUtil.java80 String[] names = name.toLowerCase().split("\\s"); in nameMatchesT9Query() local
81 for (int i = 0; i < names.length && queryIndex < query.length(); i++) { in nameMatchesT9Query()
82 if (TextUtils.isEmpty(names[i])) { in nameMatchesT9Query()
86 if (getDigit(names[i].charAt(0), context) == query.charAt(queryIndex)) { in nameMatchesT9Query()
/packages/apps/Car/Settings/src/com/android/car/settings/units/
DUnitsBasePreferenceController.java143 String[] names = new String[mSupportedUnits.length]; in getEntriesOfSupportedUnits() local
144 for (int i = 0; i < names.length; i++) { in getEntriesOfSupportedUnits()
146 names[i] = generateEntryStringFromUnit(unit); in getEntriesOfSupportedUnits()
148 return names; in getEntriesOfSupportedUnits()
/packages/services/Car/cpp/computepipe/router/1.0/
DPipeQuery.cpp36 auto names = mRegistry->getPipeList(); in getGraphList() local
37 std::copy(names.begin(), names.end(), std::back_inserter(*outNames)); in getGraphList()
/packages/modules/GeoTZ/data_pipeline/src/main/java/com/android/timezone/location/data_pipeline/steps/
DCanonicalizeTzS2Polygons.java91 @Parameter(names = "--input",
97 @Parameter(names = "--tz-ids",
103 @Parameter(names = "--replacement-threshold",
109 @Parameter(names = "--output",
DTzS2PolygonsToTzS2CellUnions.java81 @Parameter(names = "--input",
87 @Parameter(names = "--num-threads",
92 @Parameter(names = "--output",
98 @Parameter(names = "--max-s2-level",
DTzS2CellUnionsToTzS2Ranges.java79 @Parameter(names = "--input",
85 @Parameter(names = "--num-threads",
90 @Parameter(names = "--output",
96 @Parameter(names = "--s2-level",
DGeoJsonTzToTzS2Polygons.java93 @Parameter(names = "--geo-json",
99 @Parameter(names = "--num-threads",
104 @Parameter(names = "--output",
110 @Parameter(names = "--tz-ids",
/packages/modules/NeuralNetworks/runtime/packageinfo/
DPackageInfo.cpp44 std::vector<std::string> names; in ANeuralNetworks_fetch_PackageInfo() local
45 ::android::binder::Status status = packageMgr->getNamesForUids(uids, &names); in ANeuralNetworks_fetch_PackageInfo()
51 const std::string& packageName = names[0]; in ANeuralNetworks_fetch_PackageInfo()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/
DTestJobListener.java68 public void assertFilesFailed(List<String> names) { in assertFilesFailed() argument
73 assertEquals(finished.failedDocs.size(), names.size()); in assertFilesFailed()
74 for (String name : names) { in assertFilesFailed()
/packages/modules/Gki/
Dota_from_raw_image.py71 names = []
77 names.append(name)
84 zip.writestr("META/ab_partitions.txt", "\n".join(names) + "\n")
/packages/modules/GeoTZ/s2storage/tools/src/java/com/android/timezone/location/tools/
DCreateTzS2File.java41 @Parameter(names = "--input-file",
47 @Parameter(names = "--s2-level",
52 @Parameter(names = "--output-file",
/packages/apps/CarrierConfig/tests/src/com/android/carrierconfig/
DCarrierConfigTest.java273 Set<String> names = new HashSet<>(); in getCarrierConfigXmlNames() local
275 names.addAll(getCarrierConfigXmlNames(CarrierConfigManager.class)); in getCarrierConfigXmlNames()
279 names.addAll(getCarrierConfigXmlNames(nested)); in getCarrierConfigXmlNames()
282 return names; in getCarrierConfigXmlNames()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DEventLogTags.logtags21 # @param enabled_sources A pipe-separated list of source names, ordered by source ranking.
29 # @param A pipe-separated list of suggestion log names.
30 # TODO: define format of suggestion log names

123456