Home
last modified time | relevance | path

Searched refs:expectedName (Results 1 – 14 of 14) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DI18NameTest.java134 I18Name expectedName = new I18Name(TEST_LANGUAGE, TEST_LOCALE, TEST_TEXT); in parseBufferWithDefaultTestData() local
135 assertEquals(expectedName, actualName); in parseBufferWithDefaultTestData()
151 I18Name expectedName = new I18Name(language, Locale.forLanguageTag(language), text); in parseBufferWithFrenchData() local
152 assertEquals(expectedName, actualName); in parseBufferWithFrenchData()
165 I18Name expectedName = new I18Name(TEST_LANGUAGE, TEST_LOCALE, ""); in parseBufferWithEmptyText() local
166 assertEquals(expectedName, actualName); in parseBufferWithEmptyText()
/packages/services/Car/tests/carservice_unit_test/src/android/car/test/
DApiHelperTest.java199 private static Method assertMethod(String api, Class<?> expectedClass, String expectedName, in assertMethod() argument
201 Method method = assertMember(api, Method.class, expectedClass, expectedName); in assertMethod()
208 Class<?> expectedFieldClass, String expectedName) { in assertField() argument
209 Field field = assertMember(api, Field.class, expectedDeclaringClass, expectedName); in assertField()
215 Class<?> expectedDeclaringClass, String expectedName) { in assertMember() argument
222 assertWithMessage("name of %s", member).that(member.getName()).isEqualTo(expectedName); in assertMember()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothRenameDialogFragmentTest.java116 String expectedName = mFragment.getDeviceName() + editStr; in editorDoneAction_setsDeviceName() local
121 assertThat(mFragment.getDeviceName()).isEqualTo(expectedName); in editorDoneAction_setsDeviceName()
127 String expectedName = mFragment.getDeviceName(); in editorDoneAction_emptyName_doesNotSetDeviceName() local
133 assertThat(mFragment.getDeviceName()).isEqualTo(expectedName); in editorDoneAction_emptyName_doesNotSetDeviceName()
140 String expectedName = mFragment.getDeviceName() + editStr; in positiveButtonClicked_setsDeviceName() local
145 assertThat(mFragment.getDeviceName()).isEqualTo(expectedName); in positiveButtonClicked_setsDeviceName()
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/
DThreadUtilTest.cpp55 void setExpectedName(const std::string& expectedName) { in setExpectedName() argument
57 mExpectedName = expectedName; in setExpectedName()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/
DPowerComponentUtilUnitTest.java110 String expectedName = mPowerComponentFields[i].getName(); in testPowerComponentToString() local
111 assertWithMessage("%s should be converted to %s", component, expectedName) in testPowerComponentToString()
113 .isEqualTo(expectedName); in testPowerComponentToString()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryDiffEntryTest.java197 final String expectedName = "Ambient display"; in testLoadLabelAndIcon_forSystemBattery_returnExpectedResult() local
212 assertThat(entry.getAppLabel()).isEqualTo(expectedName); in testLoadLabelAndIcon_forSystemBattery_returnExpectedResult()
218 assertThat(nameAndIcon.mName).isEqualTo(expectedName); in testLoadLabelAndIcon_forSystemBattery_returnExpectedResult()
227 final String expectedName = "Removed user"; in testLoadLabelAndIcon_forUserBattery_returnExpectedResult() local
237 assertThat(entry.getAppLabel()).isEqualTo(expectedName); in testLoadLabelAndIcon_forUserBattery_returnExpectedResult()
244 assertThat(nameAndIcon.mName).isEqualTo(expectedName); in testLoadLabelAndIcon_forUserBattery_returnExpectedResult()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/host/src/android/healthconnect/cts/database/
DHealthConnectDatabaseUnitTest.java69 for (String expectedName : expectedTableNames) { in test_tableName_matches()
70 assertThat(tableNameList.contains(expectedName)).isTrue(); in test_tableName_matches()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java174 XmlPullParser in, String expectedName, int outerDepth) in gotoNextSectionWithNameOrEnd() argument
178 if (headerName[0].equals(expectedName)) { in gotoNextSectionWithNameOrEnd()
182 "Next section name does not match expected name: " + expectedName); in gotoNextSectionWithNameOrEnd()
201 XmlPullParser in, String expectedName, int outerDepth) in gotoNextSectionWithName() argument
203 if (!gotoNextSectionWithNameOrEnd(in, expectedName, outerDepth)) { in gotoNextSectionWithName()
204 throw new XmlPullParserException("Section not found. Expected: " + expectedName); in gotoNextSectionWithName()
256 public static Object readNextValueWithName(XmlPullParser in, String expectedName) in readNextValueWithName() argument
261 if (valueName[0].equals(expectedName)) { in readNextValueWithName()
265 "Value not found. Expected: " + expectedName + ", but got: " + valueName[0]); in readNextValueWithName()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DAtPhonebookTest.java329 String expectedName = new String(GsmAlphabet.stringToGsm8BitPacked(name.substring(0, 28))); in processCpbrCommand_withReceivcedCallsAndCharsetGsm() local
338 + expectedName in processCpbrCommand_withReceivcedCallsAndCharsetGsm()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/
DPickerDataLayerTest.java688 final String expectedName = "bar"; in testFetchCloudAccountInfo() local
690 mCloudPrimaryMediaGenerator.setAccountInfo(expectedName, expectedIntent); in testFetchCloudAccountInfo()
695 assertThat(info.accountName).isEqualTo(expectedName); in testFetchCloudAccountInfo()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsRecordRepositoryTest.kt203 val expectedName = arrayOf("MyTestService", "_testservice", "_tcp", "local") in makeFlags() constant
204 assertEquals(MdnsAnyRecord(expectedName, false /* unicast */), packet.questions[0]) in makeFlags()
207 assertEquals(MdnsServiceRecord(expectedName, in makeFlags()
1769 val expectedName = arrayOf("MyTestService", "_testservice", "_tcp", "local") in testIncludeInetAddressRecordsInProbing() constant
1771 MdnsAnyRecord(expectedName, false /* unicast */), in testIncludeInetAddressRecordsInProbing()
1778 expectedName, in testIncludeInetAddressRecordsInProbing()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DSearchIndexManagerTest.java532 long contactId, String expectedContent, String expectedName, String expectedTokens) { in assertSearchIndex() argument
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/
DBluetoothMapContentTest.java1615 StringBuilder expectedName = new StringBuilder(); in msgListing_withEmailCursorOnly() local
1616 expectedName.append(Rfc822Tokenizer.tokenize(TEST_FROM_ADDRESS)[0].getName()); in msgListing_withEmailCursorOnly()
1617 assertThat(emailElement.getSenderName()).isEqualTo(expectedName.toString()); in msgListing_withEmailCursorOnly()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java4102 private String verifyCustomizeDefaultDeviceName(String expectedName, boolean isRandomPostfix) in verifyCustomizeDefaultDeviceName() argument
4113 assertEquals(expectedName, in verifyCustomizeDefaultDeviceName()
4114 wifiP2pDevice.deviceName.substring(0, expectedName.length())); in verifyCustomizeDefaultDeviceName()
4116 assertEquals(expectedName, wifiP2pDevice.deviceName); in verifyCustomizeDefaultDeviceName()