Home
last modified time | relevance | path

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

12345678

/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/Bluetooth/system/gd/discovery/device/
Deir_data_unittest.cc86 std::vector<std::array<uint8_t, kEirSize>> names; in TEST() local
87 ASSERT_TRUE(eir_data.GetCompleteNames(names)); in TEST()
88 ASSERT_EQ(1U, names.size()); in TEST()
89 std::string name(names[0].begin(), names[0].end()); in TEST()
185 std::vector<std::array<uint8_t, kEirSize>> names; in TEST() local
186 ASSERT_TRUE(eir_data.GetCompleteNames(names)); in TEST()
187 std::string name(names[0].begin(), names[0].end()); in TEST()
238 std::vector<std::array<uint8_t, 240>> names; in TEST() local
239 ASSERT_TRUE(eir_data.GetCompleteNames(names)); in TEST()
240 ASSERT_STREQ("Audi_MMI_9962", std::string(names[0].begin(), names[0].end()).data()); in TEST()
Deir_data.cc36 bool EirData::GetCompleteNames(std::vector<std::array<uint8_t, 240>>& names) const { in GetCompleteNames()
41 names.push_back(array); in GetCompleteNames()
44 return !names.empty(); in GetCompleteNames()
47 bool EirData::GetShortenedNames(std::vector<std::array<uint8_t, 240>>& names) const { in GetShortenedNames()
52 names.push_back(array); in GetShortenedNames()
55 return !names.empty(); in GetShortenedNames()
/packages/modules/NetworkStack/src/android/net/apf/
DApfV6GeneratorBase.java388 public final Type addJumpIfPktAtR0DoesNotContainDnsA(@NonNull byte[] names, in addJumpIfPktAtR0DoesNotContainDnsA() argument
390 validateNames(names); in addJumpIfPktAtR0DoesNotContainDnsA()
392 .setBytesImm(names)); in addJumpIfPktAtR0DoesNotContainDnsA()
399 public final Type addJumpIfPktAtR0DoesNotContainDnsASafe(@NonNull byte[] names, in addJumpIfPktAtR0DoesNotContainDnsASafe() argument
401 validateNames(names); in addJumpIfPktAtR0DoesNotContainDnsASafe()
403 .setBytesImm(names)); in addJumpIfPktAtR0DoesNotContainDnsASafe()
413 public final Type addJumpIfPktAtR0ContainDnsA(@NonNull byte[] names, in addJumpIfPktAtR0ContainDnsA() argument
415 validateNames(names); in addJumpIfPktAtR0ContainDnsA()
417 tgt).setBytesImm(names)); in addJumpIfPktAtR0ContainDnsA()
424 public final Type addJumpIfPktAtR0ContainDnsASafe(@NonNull byte[] names, in addJumpIfPktAtR0ContainDnsASafe() argument
[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/modules/NeuralNetworks/runtime/
DTelemetry.cpp50 std::vector<std::string> names; in makeDeviceId() local
51 names.reserve(devices.size()); in makeDeviceId()
54 if (!names.empty()) { in makeDeviceId()
57 names.push_back(devices[i]->getName() + "=" + devices[i]->getVersionString()); in makeDeviceId()
58 totalSize += names.back().size(); in makeDeviceId()
60 sort(names.begin(), names.end()); in makeDeviceId()
65 for (auto& name : names) { in makeDeviceId()
/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/services/Telephony/utils/satellite/tools/src/main/java/com/android/telephony/tools/sats2/
DCreateSatS2File.java44 @Parameter(names = "--input-file",
49 @Parameter(names = "--s2-level",
54 @Parameter(names = "--is-allowed-list",
59 @Parameter(names = "--output-file",
DSatS2LocationLookup.java62 @Parameter(names = "--input-file",
67 @Parameter(names = "--lat-degrees",
72 @Parameter(names = "--lng-degrees",
/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.java91 String[] names = {"Trader Joe's", "Alphabeta", "Lucky", "Vons", "Gelson's"}; in testItemCount_allDirs() local
92 for (String name : names) { in testItemCount_allDirs()
101 String[] names = {"123.txt", "234.jpg", "abc.pdf"}; in testItemCount_allFiles() local
102 for (String name : names) { in testItemCount_allFiles()
110 String[] names = {"123.txt", "234.jpg", "abc.pdf"}; in testAddsInfoMessage_WithDirectoryChildren() local
111 for (String name : names) { in testAddsInfoMessage_WithDirectoryChildren()
DDirectoryAddonsAdapterPrivateSpaceTest.java117 String[] names = {"Trader Joe's", "Alphabeta", "Lucky", "Vons", "Gelson's"}; in testItemCount_allDirs() local
118 for (String name : names) { in testItemCount_allDirs()
127 String[] names = {"123.txt", "234.jpg", "abc.pdf"}; in testItemCount_allFiles() local
128 for (String name : names) { in testItemCount_allFiles()
136 String[] names = {"123.txt", "234.jpg", "abc.pdf"}; in testAddsInfoMessage_WithDirectoryChildren() local
137 for (String name : names) { in testAddsInfoMessage_WithDirectoryChildren()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/
DEnterTransitionAnimationDelegate.kt48 names: MutableList<String>, in onMapSharedElements()
51 this@EnterTransitionAnimationDelegate.onMapSharedElements(names, sharedElements) in onMapSharedElements()
93 names: MutableList<String>, in onMapSharedElements()
96 names.removeAll { !transitionElements.contains(it) } in onMapSharedElements()
/packages/modules/ExtServices/java/tests/src/android/ext/services/common/
DAdServicesFilesCleanupBootCompleteReceiverTest.java288 private void createFiles(List<String> names) throws Exception { in createFiles() argument
290 for (String name : names) { in createFiles()
295 private void createDatabases(List<String> names) { in createDatabases() argument
296 for (String name : names) { in createDatabases()
303 private void deleteFiles(List<String> names) { in deleteFiles() argument
304 for (String name : names) { in deleteFiles()
312 private void deleteDatabases(List<String> names) { in deleteDatabases() argument
313 for (String name : names) { in deleteDatabases()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sorting/
DSortingCursorWrapperTest.java136 List<String> names = new ArrayList<>(); in testSort_names_ascending() local
147 names.add(getCursorString(cursor, Document.COLUMN_DISPLAY_NAME)); in testSort_names_ascending()
151 for (int i = 0; i < names.size()-1; ++i) { in testSort_names_ascending()
152 assertTrue(Shared.compareToIgnoreCaseNullable(names.get(i), names.get(i+1)) <= 0); in testSort_names_ascending()
160 List<String> names = new ArrayList<>(); in testSort_names_descending() local
171 names.add(getCursorString(cursor, Document.COLUMN_DISPLAY_NAME)); in testSort_names_descending()
175 for (int i = 0; i < names.size()-1; ++i) { in testSort_names_descending()
176 assertTrue(Shared.compareToIgnoreCaseNullable(names.get(i), names.get(i+1)) >= 0); in testSort_names_descending()
/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/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/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/Virtualization/compos/src/
Dcompsvc.rs68 fn initializeSystemProperties(&self, names: &[String], values: &[String]) -> BinderResult<()> { in initializeSystemProperties()
76 if names.len() != values.len() { in initializeSystemProperties()
79 names.len(), in initializeSystemProperties()
84 for (name, value) in zip(names, values) { in initializeSystemProperties()
/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/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/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/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()

12345678