Home
last modified time | relevance | path

Searched refs:NAME (Results 1 – 25 of 145) sorted by relevance

123456

/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DUrlQuerySanitizerTest.java63 private static final String NAME = "name"; field in UrlQuerySanitizerTest
102 assertTrue(uqs.hasParameter(NAME)); in testUrlQuerySanitizer()
107 assertEquals(EXPECTED_UNDERLINE_NAME, uqs.getValue(NAME)); in testUrlQuerySanitizer()
115 assertTrue(urlSet.contains(NAME)); in testUrlQuerySanitizer()
123 assertEquals(NAME, pvp.mParameter); in testUrlQuerySanitizer()
145 uqs.registerParameter(NAME, null); in testUrlQuerySanitizer()
146 assertNull(uqs.getValueSanitizer(NAME)); in testUrlQuerySanitizer()
147 assertNotNull(uqs.getEffectiveValueSanitizer(NAME)); in testUrlQuerySanitizer()
151 uqs.registerParameter(NAME, null); in testUrlQuerySanitizer()
152 assertNull(uqs.getEffectiveValueSanitizer(NAME)); in testUrlQuerySanitizer()
[all …]
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyProviderTest.java391 contentValues.put(Carriers.NAME, insertName); in testBulkInsertCarriers()
401 contentValues2.put(Carriers.NAME, insertName2); in testBulkInsertCarriers()
416 Carriers.NAME, in testBulkInsertCarriers()
526 contentValues.put(Carriers.NAME, insertName); in testUpdateConflictingCarriers()
533 contentValues2.put(Carriers.NAME, insertName2); in testUpdateConflictingCarriers()
540 contentValues.put(Carriers.NAME, insertName2); in testUpdateConflictingCarriers()
547 Carriers.NAME, in testUpdateConflictingCarriers()
583 contentValues.put(Carriers.NAME, insertName); in doSimpleTestForUri()
593 Carriers.NAME, in doSimpleTestForUri()
636 contentValues.put(Carriers.NAME, insertName); in testOwnedBy()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothNamePreferenceControllerTest.java58 private static final String NAME = "name"; field in BluetoothNamePreferenceControllerTest
90 BluetoothAdapter.getDefaultAdapter().setName(NAME); in refreshUi_setsNameAsSummary()
94 assertThat(mPreference.getSummary()).isEqualTo(NAME); in refreshUi_setsNameAsSummary()
116 BluetoothAdapter.getDefaultAdapter().setName(NAME); in started_localNameChangedBroadcast_updatesSummary()
118 assertThat(mPreference.getSummary()).isEqualTo(NAME); in started_localNameChangedBroadcast_updatesSummary()
129 BluetoothAdapter.getDefaultAdapter().setName(NAME); in stopped_noUpdateOnLocalNameChangedBroadcast()
131 assertThat(mPreference.getSummary()).isEqualTo(NAME); in stopped_noUpdateOnLocalNameChangedBroadcast()
138 assertThat(mPreference.getSummary()).isEqualTo(NAME); in stopped_noUpdateOnLocalNameChangedBroadcast()
DLocalRenameDialogFragmentTest.java50 private static final String NAME = "name"; field in LocalRenameDialogFragmentTest
69 BluetoothAdapter.getDefaultAdapter().setName(NAME); in getDeviceName_adapterEnabled_returnsLocalAdapterName()
71 assertThat(mFragment.getDeviceName()).isEqualTo(NAME); in getDeviceName_adapterEnabled_returnsLocalAdapterName()
76 BluetoothAdapter.getDefaultAdapter().setName(NAME); in getDeviceName_adapterDisabled_returnsNull()
84 BluetoothAdapter.getDefaultAdapter().setName(NAME); in localNameChangedBroadcast_updatesDeviceName()
87 assertThat(editText.getText().toString()).isEqualTo(NAME); in localNameChangedBroadcast_updatesDeviceName()
100 BluetoothAdapter.getDefaultAdapter().setName(NAME); in setDeviceName_updatesLocalAdapterName()
DRemoteRenameDialogFragmentTest.java56 private static final String NAME = "name"; field in RemoteRenameDialogFragmentTest
94 when(mCachedDevice.getName()).thenReturn(NAME); in getDeviceName_returnsCachedDeviceName()
97 assertThat(mFragment.getDeviceName()).isEqualTo(NAME); in getDeviceName_returnsCachedDeviceName()
102 when(mCachedDevice.getName()).thenReturn(NAME); in setDeviceName_updatesCachedDeviceName()
/packages/services/Telephony/tests/src/com/android/phone/
DSimPhonebookProviderTest.java324 SimRecords.NAME, in query_simRecords_singleSim_returnsDataForCorrectEf()
365 SimRecords.NAME, in query_adnRecords_returnsAdnData()
405 SimRecords.NAME, in query_fdnRecords_returnsFdnData()
442 SimRecords.NAME, in query_sdnRecords_returnsSdnData()
478 values.put(SimRecords.NAME, "Name"); in insert_nonExistentSim_throwsCorrectException()
490 values.put(SimRecords.NAME, "Name"); in update_nonExistentSim_throwsCorrectException()
536 SimRecords.RECORD_NUMBER, SimRecords.NAME, SimRecords.PHONE_NUMBER in query_itemUri_returnsCorrectRow()
647 values.put(SimRecords.NAME, "First Last"); in insert_adnRecord_addsAdnRecordAndReturnsUriForNewRecord()
673 values.put(SimRecords.NAME, "New1"); in insert_adnRecordWithExistingRecords_returnsUriWithCorrectIndex()
677 values.put(SimRecords.NAME, "New2"); in insert_adnRecordWithExistingRecords_returnsUriWithCorrectIndex()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDataRowHandlerForNickname.java41 String nickname = values.getAsString(Nickname.NAME); in insert()
63 if (values.containsKey(Nickname.NAME)) { in update()
64 String nickname = values.getAsString(Nickname.NAME); in update()
89 return values.containsKey(Nickname.NAME); in containsSearchableColumns()
94 builder.appendNameFromColumn(Nickname.NAME); in appendSearchableData()
95 builder.appendContentFromColumn(Nickname.NAME); in appendSearchableData()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DLegacyContactsProviderTest.java115 values.put(People.NAME, "John Doe"); in testPeopleDelete()
119 Cursor c = mResolver.query(personId, null, People.NAME + "='John Doe'" , null, null); in testPeopleDelete()
132 values.put(People.NAME, "Deer Doe"); in testPeopleFilter()
136 values.put(People.NAME, "Dear Dough"); in testPeopleFilter()
140 values.put(People.NAME, "D.R. Dauwe"); in testPeopleFilter()
151 values.put(People.NAME, "John Doe"); in testDefaultDisplayName()
621 values.put(Extensions.NAME, "Foo"); in testExtensionsInsert()
641 values.put(Extensions.NAME, "Foo"); in testExtensionsUpdate()
647 values.put(Extensions.NAME, "Biz"); in testExtensionsUpdate()
656 values.put(Groups.NAME, "Galois"); in testGroupsInsert()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/legal/
DModuleLicensePreferenceTest.java37 public static final String NAME = "Test Package"; field in ModuleLicensePreferenceTest
47 mModuleInfo.setName(NAME); in setup()
55 assertThat(pref.getTitle()).isEqualTo(NAME); in ctor_properKeyAndTitle()
69 assertThat(intent.getCharSequenceExtra(Intent.EXTRA_TITLE)).isEqualTo(NAME); in onClick_sendsCorrectIntent()
/packages/apps/EmergencyInfo/tests/robolectric/src/com/android/emergency/preferences/
DContactPreferenceTest.java43 private static final String NAME = "Jake"; field in ContactPreferenceTest
56 mPhoneUri = ContactTestUtils.createContact(contentResolver, NAME, PHONE_NUMBER); in setUp()
59 when(mContact.getName()).thenReturn(NAME); in setUp()
71 assertThat(mPreference.getContact().getName()).isEqualTo(NAME); in testContactPreference()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
DBitmapPoolTest.java37 private static final String NAME = "BitmapPoolTest"; field in BitmapPoolTest
64 final BitmapPool pool = new BitmapPool(POOL_SIZE, NAME); in testCreateAndPutBackInPoolTest()
75 final BitmapPool pool = new BitmapPool(POOL_SIZE, NAME); in testCreateBeyondFullAndCheckReuseTest()
93 final BitmapPool pool = new BitmapPool(POOL_SIZE, NAME); in testDecodeFromResourceBitmap()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
DCommonNicknameCache.java52 NicknameLookupColumns.NAME
55 public final static int NAME = 0; field in CommonNicknameCache.NicknameLookupPreloadQuery
79 String normalizedName = cursor.getString(NicknameLookupPreloadQuery.NAME); in preloadNicknameBloomFilter()
139 NicknameLookupColumns.NAME + "=?", new String[] { normalizedName }, in loadNicknameClusters()
/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/
DBluetoothMapContract.java756 String NAME = "name"; field
897 String NAME = "name"; field
1149 FolderColumns.NAME,
1168 ConversationColumns.NAME,
1184 ConvoContactColumns.NAME,
1202 ConvoContactColumns.NAME,
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
DCardContentProviderTest.java128 final String strWhere = CardDatabaseHelper.CardColumns.NAME + "=?"; in cardData_update()
191 values.put(CardDatabaseHelper.CardColumns.NAME, "auto_rotate"); in generateOneRow()
208 values.put(CardDatabaseHelper.CardColumns.NAME, "toggle_airplane"); in generateTwoRows()
226 values.put(CardDatabaseHelper.CardColumns.NAME, "toggle_airplane"); in generateTwoRowsWithDismissTimestamp()
249 final String selection = CardDatabaseHelper.CardColumns.NAME + "=?"; in queryDismissedTimestamp()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DCardContentProvider.java100 final String[] columns = new String[]{CardDatabaseHelper.CardColumns.NAME, in bulkInsert()
110 CardDatabaseHelper.CardColumns.NAME)); in bulkInsert()
125 value.get(CardDatabaseHelper.CardColumns.NAME).toString(); in bulkInsert()
138 Log.e(TAG, "The row " + value.getAsString(CardDatabaseHelper.CardColumns.NAME) in bulkInsert()
/packages/modules/Connectivity/tests/common/java/android/net/
DLinkPropertiesTest.java84 private static final String NAME = "qmi0"; field in LinkPropertiesTest
140 lp.setInterfaceName(NAME); in makeTestObject()
235 source.setInterfaceName(NAME); in testEqualsSameOrder()
252 target.setInterfaceName(NAME); in testEqualsSameOrder()
278 target.setInterfaceName(NAME); in testEqualsSameOrder()
291 target.setInterfaceName(NAME); in testEqualsSameOrder()
304 target.setInterfaceName(NAME); in testEqualsSameOrder()
317 target.setInterfaceName(NAME); in testEqualsSameOrder()
329 target.setInterfaceName(NAME); in testEqualsSameOrder()
344 source.setInterfaceName(NAME); in testEqualsDifferentOrder()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/model/dataitem/
DDataItemTests.java213 mValues1.put(Nickname.NAME, nickname1); in testDataItemCollapsing_nickname()
214 mValues2.put(Nickname.NAME, nickname1); in testDataItemCollapsing_nickname()
215 mValues3.put(Nickname.NAME, nickname2); in testDataItemCollapsing_nickname()
324 mValues1.put(Relation.NAME, name1); in testDataItemCollapsing_relation()
325 mValues2.put(Relation.NAME, name1); in testDataItemCollapsing_relation()
326 mValues3.put(Relation.NAME, name1); in testDataItemCollapsing_relation()
327 mValues4.put(Relation.NAME, name2); in testDataItemCollapsing_relation()
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/preferences/
DEmergencyContactsPreferenceTest.java55 private static final String NAME = "Jane"; field in EmergencyContactsPreferenceTest
79 mTargetContext.getContentResolver(), NAME, PHONE_NUMBER); in setUp()
92 mTargetContext.getContentResolver(), NAME, PHONE_NUMBER)).isTrue(); in tearDown() local
/packages/services/Telephony/src/com/android/phone/
DSimPhonebookProvider.java94 SimRecords.NAME,
101 SimRecords.NAME, SimRecords.PHONE_NUMBER
391 case SimRecords.NAME: in querySimRecords()
424 .add(SimRecords.NAME, record.getAlphaTag()) in querySimRecordsItem()
475 String newName = Strings.nullToEmpty(values.getAsString(SimRecords.NAME)); in insertSimRecord()
581 String newName = Strings.nullToEmpty(values.getAsString(SimRecords.NAME)); in updateSimRecordsItem()
712 String name = values.getAsString(SimRecords.NAME); in validateValues()
722 throw new IllegalArgumentException(SimRecords.NAME + " is too long."); in validateValues()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DConversationListItemData.java295 + DatabaseHelper.CONVERSATIONS_TABLE + '.' + ConversationColumns.NAME
296 + " as " + ConversationListViewColumns.NAME + ", "
378 static final String NAME = ConversationColumns.NAME; field in ConversationListItemData.ConversationListViewColumns
415 ConversationListViewColumns.NAME,
/packages/apps/EmergencyInfo/tests/robolectric/src/com/android/emergency/util/
DPreferenceUtilsTest.java49 private static final String NAME = "Jane"; field in PreferenceUtilsTest
103 RuntimeEnvironment.application.getContentResolver(), NAME, PHONE_NUMBER); in testHasAtLeastOneEmergencyContact_set()
126 RuntimeEnvironment.application.getContentResolver(), NAME, PHONE_NUMBER); in testUpdateSettingsSuggestionState_contactSet()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/personalization/
DUserHistoryDictionaryTests.java123 UserHistoryDictionary.NAME, fakeLocale, in doTestRandomWords()
175 UserHistoryDictionary.NAME, fakeLocale, null /* dictFile */, in doTestStressTestForSwitchingLanguagesAndAddingWords()
220 UserHistoryDictionary.NAME, fakeLocale, null /* dictFile */, testAccount); in doTestAddManyWords()
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/sip/
DSipUtils.java178 request.setHeader(sHeaderFactory.createHeader(PPreferredIdentityHeader.NAME, preferredUri)); in buildInvite()
180 sHeaderFactory.createHeader(PPreferredServiceHeader.NAME, in buildInvite()
187 sHeaderFactory.createHeader(SecurityVerifyHeader.NAME, securityVerify)); in buildInvite()
315 sHeaderFactory.createHeader(PPreferredIdentityHeader.NAME, preferredUri)); in buildInviteResponse()
/packages/modules/DnsResolver/tests/
Dresolv_unit_test.cpp35 #define NAME(variable) #variable macro
911 {NAME(kBadCharAfterPeriodHost), kBadCharAfterPeriodHost}, in TEST_F()
912 {NAME(kBadCharBeforePeriodHost), kBadCharBeforePeriodHost}, in TEST_F()
913 {NAME(kBadCharAtTheEndHost), kBadCharAtTheEndHost}, in TEST_F()
914 {NAME(kBadCharInTheMiddleOfLabelHost), kBadCharInTheMiddleOfLabelHost}, in TEST_F()
1433 {NAME(kBadCharAfterPeriodHost), kBadCharAfterPeriodHost}, in TEST_F()
1434 {NAME(kBadCharBeforePeriodHost), kBadCharBeforePeriodHost}, in TEST_F()
1435 {NAME(kBadCharAtTheEndHost), kBadCharAtTheEndHost}, in TEST_F()
1436 {NAME(kBadCharInTheMiddleOfLabelHost), kBadCharInTheMiddleOfLabelHost}, in TEST_F()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
DRequestSetMessageStatus.java35 mHeaderSet.setHeader(HeaderSet.NAME, handle); in RequestSetMessageStatus()
58 return (String) mHeaderSet.getHeader(HeaderSet.NAME); in getHandle()

123456