Home
last modified time | relevance | path

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

1234567

/packages/modules/Connectivity/tests/common/java/android/net/
DConnectivitySettingsManagerTest.kt102 private fun resetSettings(names: Array<String>, type: String, values: Array<String?>) { in <lambda>()
103 for (i in names.indices) { in <lambda>()
109 Settings.Secure.putString(resolver, names[i], values[i]) in <lambda>()
111 Settings.Global.putString(resolver, names[i], values[i]) in <lambda>()
118 names: Array<String>, in <lambda>()
126 val originals: Array<String?> = Array(names.size) { i -> in <lambda>()
128 Settings.Secure.getString(resolver, names[i]) in <lambda>()
130 Settings.Global.getString(resolver, names[i]) in <lambda>()
135 for (i in names.indices) { in <lambda>()
137 Settings.Secure.putString(resolver, names[i], testIntValues[i].toString()) in <lambda>()
[all …]
/packages/modules/NeuralNetworks/runtime/
DTelemetry.cpp49 std::vector<std::string> names; in makeDeviceId() local
50 names.reserve(devices.size()); in makeDeviceId()
53 if (!names.empty()) { in makeDeviceId()
56 names.push_back(devices[i]->getName() + "=" + devices[i]->getVersionString()); in makeDeviceId()
57 totalSize += names.back().size(); in makeDeviceId()
59 sort(names.begin(), names.end()); in makeDeviceId()
64 for (auto& name : names) { in makeDeviceId()
/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/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/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/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/modules/IntentResolver/java/src/com/android/intentresolver/
DEnterTransitionAnimationDelegate.kt48 names: MutableList<String>, sharedElements: MutableMap<String, View> in onMapSharedElements()
51 names, sharedElements in onMapSharedElements()
92 names: MutableList<String>, in onMapSharedElements()
95 names.removeAll { !transitionElements.contains(it) } in onMapSharedElements()
/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/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/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/Virtualization/compos/src/
Dcompsvc.rs66 fn initializeSystemProperties(&self, names: &[String], values: &[String]) -> BinderResult<()> { in initializeSystemProperties()
76 if names.len() != values.len() { in initializeSystemProperties()
81 names.len(), in initializeSystemProperties()
86 for (name, value) in zip(names, values) { in initializeSystemProperties()
/packages/services/Car/car-lib/src/com/android/car/internal/property/
DCarPropertyHelper.java94 String names = "["; in propertyIdsToString() local
100 names += ", "; in propertyIdsToString()
102 names += toString(propertyId); in propertyIdsToString()
104 return names + "]"; in propertyIdsToString()
/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/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/apps/ThemePicker/src/com/android/customization/picker/clock/ui/viewmodel/
DClockColorViewModel.kt43 val names = resources.obtainTypedArray(R.array.clock_color_names) in <lambda>() constant
52 names.getString(index), in <lambda>()
62 names.recycle() in <lambda>()
/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/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",
/packages/apps/ThemePicker/src/com/android/customization/model/color/
DColorCustomizationManager.java265 JSONArray names = jsonPackages.names(); in parseColorSettings() local
266 if (names != null) { in parseColorSettings()
267 for (int i = 0; i < names.length(); i++) { in parseColorSettings()
268 String category = names.getString(i); in parseColorSettings()
/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/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/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/util/
DInterfaceSet.java31 public InterfaceSet(String... names) { in InterfaceSet() argument
33 for (String name : names) { in InterfaceSet()

1234567