Home
last modified time | relevance | path

Searched refs:nameList (Results 1 – 13 of 13) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DVenueNameElementTest.java125 List<I18Name> nameList = new ArrayList<>(); in parseBufferWithValidVenueNames() local
126 nameList.add(new I18Name(TEST_LANGUAGE, TEST_LOCALE, TEST_VENUE_NAME1)); in parseBufferWithValidVenueNames()
127 nameList.add(new I18Name(TEST_LANGUAGE, TEST_LOCALE, TEST_VENUE_NAME2)); in parseBufferWithValidVenueNames()
128 VenueNameElement expectedElement = new VenueNameElement(nameList); in parseBufferWithValidVenueNames()
150 List<I18Name> nameList = new ArrayList<>(); in parseBufferWithMaxLengthVenueName() local
151 nameList.add(new I18Name(TEST_LANGUAGE, TEST_LOCALE, text)); in parseBufferWithMaxLengthVenueName()
152 VenueNameElement expectedElement = new VenueNameElement(nameList); in parseBufferWithMaxLengthVenueName()
DHSFriendlyNameElementTest.java121 List<I18Name> nameList = new ArrayList<>(); in parseBufferWithDefaultTestData() local
122 nameList.add(new I18Name(TEST_LANGUAGE, TEST_LOCALE, TEST_OPERATOR_NAME1)); in parseBufferWithDefaultTestData()
123 nameList.add(new I18Name(TEST_LANGUAGE, TEST_LOCALE, TEST_OPERATOR_NAME2)); in parseBufferWithDefaultTestData()
124 HSFriendlyNameElement expectedElement = new HSFriendlyNameElement(nameList); in parseBufferWithDefaultTestData()
147 List<I18Name> nameList = new ArrayList<>(); in parseBufferWithMaxLengthOperatoreName() local
148 nameList.add(new I18Name(TEST_LANGUAGE, TEST_LOCALE, text)); in parseBufferWithMaxLengthOperatoreName()
149 HSFriendlyNameElement expectedElement = new HSFriendlyNameElement(nameList); in parseBufferWithMaxLengthOperatoreName()
DANQPParserTest.java277 List<I18Name> nameList = new ArrayList<>(); in parseVenueNameElement() local
278 nameList.add(new I18Name(language[0], Locale.forLanguageTag(language[0]), text[0])); in parseVenueNameElement()
279 VenueNameElement expected = new VenueNameElement(nameList); in parseVenueNameElement()
405 List<I18Name> nameList = new ArrayList<>(); in parseVendorSpecificElementWithHSFriendlyName() local
406 nameList.add(new I18Name(language[0], Locale.forLanguageTag(language[0]), text[0])); in parseVendorSpecificElementWithHSFriendlyName()
407 HSFriendlyNameElement expected = new HSFriendlyNameElement(nameList); in parseVendorSpecificElementWithHSFriendlyName()
430 List<I18Name> nameList = new ArrayList<>(); in parseHSFrendlyNameElement() local
431 nameList.add(new I18Name(language[0], Locale.forLanguageTag(language[0]), text[0])); in parseHSFrendlyNameElement()
432 HSFriendlyNameElement expected = new HSFriendlyNameElement(nameList); in parseHSFrendlyNameElement()
DOsuProviderInfoTestUtil.java132 private static byte[] getI18NameListData(List<I18Name> nameList) throws IOException { in getI18NameListData() argument
134 for (I18Name name : nameList) { in getI18NameListData()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DANQPDataTest.java119 List<I18Name> nameList = new ArrayList<>(); in createWithElementsAndUpdate() local
120 nameList.add(new I18Name(TEST_LANGUAGE, TEST_LOCALE, TEST_VENUE_NAME1)); in createWithElementsAndUpdate()
121 VenueNameElement venueNameElement = new VenueNameElement(nameList); in createWithElementsAndUpdate()
139 nameList = new ArrayList<>(); in createWithElementsAndUpdate()
140 nameList.add(new I18Name(TEST_LANGUAGE, TEST_LOCALE, TEST_VENUE_NAME2)); in createWithElementsAndUpdate()
141 venueNameElement = new VenueNameElement(nameList); in createWithElementsAndUpdate()
159 List<I18Name> nameList = new ArrayList<>(); in testDataLifetime() local
160 nameList.add(new I18Name(TEST_LANGUAGE, TEST_LOCALE, TEST_VENUE_NAME1)); in testDataLifetime()
161 VenueNameElement venueNameElement = new VenueNameElement(nameList); in testDataLifetime()
DAnqpCacheTest.java152 List<I18Name> nameList = new ArrayList<>(); in addThenUpdateAndGetEntry() local
153 nameList.add(new I18Name(TEST_LANGUAGE, TEST_LOCALE, TEST_VENUE_NAME1)); in addThenUpdateAndGetEntry()
154 nameList.add(new I18Name(TEST_LANGUAGE, TEST_LOCALE, TEST_VENUE_NAME2)); in addThenUpdateAndGetEntry()
155 VenueNameElement venueNameElement = new VenueNameElement(nameList); in addThenUpdateAndGetEntry()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/
DBluetoothPbapSimVcardManagerTest.java196 List<String> nameList = Arrays.asList("D", "C", "A", "B"); in testMoveToPosition_byAlphabeticalOrder_success() local
199 final int size = nameList.size(); in testMoveToPosition_byAlphabeticalOrder_success()
225 return nameList.get(currentPosition.get()); in testMoveToPosition_byAlphabeticalOrder_success()
261 List<String> nameList = Arrays.asList("D", "C", "A", "B"); in testGetSIMPhonebookNameList_orderByIndexed() local
264 final int size = nameList.size(); in testGetSIMPhonebookNameList_orderByIndexed()
290 return nameList.get(currentPosition.get()); in testGetSIMPhonebookNameList_orderByIndexed()
298 expectedResult.addAll(nameList); in testGetSIMPhonebookNameList_orderByIndexed()
313 List<String> nameList = Arrays.asList("D", "C", "A", "B"); in testGetSIMPhonebookNameList_orderByAlphabet() local
316 final int size = nameList.size(); in testGetSIMPhonebookNameList_orderByAlphabet()
342 return nameList.get(currentPosition.get()); in testGetSIMPhonebookNameList_orderByAlphabet()
[all …]
DBluetoothPbapVcardManagerTest.java231 List<String> nameList = Arrays.asList("A", "B", "", ""); in testLoadCallHistoryList() local
245 final int size = nameList.size(); in testLoadCallHistoryList()
271 return nameList.get(currentPosition.get()); in testLoadCallHistoryList()
302 List<String> nameList = Arrays.asList("A", "B", "C", ""); in testGetPhonebookNameList() local
314 final int size = nameList.size(); in testGetPhonebookNameList()
347 return nameList.get(currentPosition.get()); in testGetPhonebookNameList()
361 List<String> nameList = Arrays.asList("A", "B", "C", ""); in testGetContactNamesByNumber_whenNumberIsNull() local
372 final int size = nameList.size(); in testGetContactNamesByNumber_whenNumberIsNull()
405 return nameList.get(currentPosition.get()); in testGetContactNamesByNumber_whenNumberIsNull()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbap/
DBluetoothPbapSimVcardManager.java255 ArrayList<String> nameList = new ArrayList<String>(); in setPositionByAlpha() local
261 nameList.add(name); in setPositionByAlpha()
265 nameList, in setPositionByAlpha()
274 if (mCursor.getString(NAME_COLUMN_INDEX).equals(nameList.get(position))) { in setPositionByAlpha()
300 ArrayList<String> nameList = new ArrayList<String>(); in getSIMPhonebookNameList() local
301 nameList.add(BluetoothPbapService.getLocalPhoneName()); in getSIMPhonebookNameList()
340 nameList.addAll(allnames); in getSIMPhonebookNameList()
341 return nameList; in getSIMPhonebookNameList()
345 ArrayList<String> nameList = new ArrayList<String>(); in getSIMContactNamesByNumber() local
375 nameList.add(name); in getSIMContactNamesByNumber()
[all …]
DBluetoothPbapObexServer.java633 String[] nameList = contentTypeName.split("/"); in isNameMatchTarget() local
634 for (String subName : nameList) { in isNameMatchTarget()
896 ArrayList<String> nameList = mVcardManager.loadCallHistoryList(appParamValue.needTag); in sendVcardListingXml() local
898 nameList.size() >= appParamValue.maxListCount in sendVcardListingXml()
900 : nameList.size(); in sendVcardListingXml()
903 if (endPoint > nameList.size()) { in sendVcardListingXml()
904 endPoint = nameList.size(); in sendVcardListingXml()
914 writeVCardEntry(j + 1, nameList.get(j), result); in sendVcardListingXml()
933 ArrayList<String> nameList = null; in createList() local
936 nameList = in createList()
[all …]
DBluetoothPbapVcardManager.java284 ArrayList<String> nameList = new ArrayList<String>(); in getPhonebookNameList() local
294 nameList.add(ownerName); in getPhonebookNameList()
317 nameList, mContext.getString(android.R.string.unknownName), contactCursor); in getPhonebookNameList()
339 return nameList; in getPhonebookNameList()
349 ArrayList<String> nameList = new ArrayList<String>(); in getSelectedPhonebookNameList() local
382 nameList.add(ownerName); in getSelectedPhonebookNameList()
406 return nameList; in getSelectedPhonebookNameList()
431 return nameList; in getSelectedPhonebookNameList()
454 nameList.add(contactNameIdList.get(i)); in getSelectedPhonebookNameList()
463 Collections.sort(nameList); in getSelectedPhonebookNameList()
[all …]
/packages/apps/Contacts/src/com/android/contacts/sdn/
DSdnRepository.kt81 val nameList: List<String> = in <lambda>() constant
91 if (nameList.isEmpty() || nameList.size != numberList.size) return emptyList() in <lambda>()
94 nameList.zip(numberList).forEach { (sdnServiceName, sdnNumber) -> in <lambda>()
/packages/modules/DnsResolver/tests/
Dresolv_unit_test.cpp1339 std::vector<std::string> nameList; in TEST_F() local
1351 nameList.push_back(domain + std::string(kMaxmiumLabelSize / 2 + 1, '0' + j) + in TEST_F()
1356 dns.addMapping(kHelloExampleCom, ns_type::ns_t_cname, nameList[0]); in TEST_F()
1357 for (size_t i = 0; i < nameList.size() - 1; i++) { in TEST_F()
1358 dns.addMapping(nameList[i], ns_type::ns_t_cname, nameList[i + 1]); in TEST_F()
1360 dns.addMapping(nameList[nameList.size() - 1], ns_type::ns_t_a, kHelloExampleComAddrV4); in TEST_F()