Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DHSFriendlyNameElementTest.java99 byte[] testData = getTestData(new String[] {TEST_OPERATOR_NAME1}); in parseBufferWithTruncatedByte()
101 ByteBuffer buffer = ByteBuffer.allocate(testData.length - 1); in parseBufferWithTruncatedByte()
102 buffer.put(testData, 0, testData.length - 1); in parseBufferWithTruncatedByte()
115 byte[] testData = getTestData(new String[] {TEST_OPERATOR_NAME1, TEST_OPERATOR_NAME2}); in parseBufferWithDefaultTestData()
116 ByteBuffer buffer = ByteBuffer.allocate(testData.length); in parseBufferWithDefaultTestData()
117 buffer.put(testData); in parseBufferWithDefaultTestData()
141 byte[] testData = getTestData(new String[] {text}); in parseBufferWithMaxLengthOperatoreName()
142 ByteBuffer buffer = ByteBuffer.allocate(testData.length); in parseBufferWithMaxLengthOperatoreName()
143 buffer.put(testData); in parseBufferWithMaxLengthOperatoreName()
165 byte[] testData = getTestData(new String[] {text}); in parseBufferWithOperatorNameLengthExceedMax()
[all …]
DCellularNetworkTest.java62 byte[] testData = CellularNetworkTestUtil.formatPLMNListIEI(1, plmnsData); in parseBufferWithInvalidIEIType()
63 assertNull(CellularNetwork.parse(ByteBuffer.wrap(testData))); in parseBufferWithInvalidIEIType()
75 byte[] testData = CellularNetworkTestUtil.formatPLMNListIEI(plmnsData); in parseBufferWithIncompleteData()
76 CellularNetwork.parse(ByteBuffer.wrap(testData, 0, testData.length - 1)); in parseBufferWithIncompleteData()
89 byte[] testData = CellularNetworkTestUtil.formatPLMNListIEI( in parseBufferWithMismatchIEISizeAndPLMNCount()
91 CellularNetwork.parse(ByteBuffer.wrap(testData)); in parseBufferWithMismatchIEISizeAndPLMNCount()
103 byte[] testData = CellularNetworkTestUtil.formatPLMNListIEI(plmnsData); in parseBufferWithTestData()
111 assertEquals(expected, CellularNetwork.parse(ByteBuffer.wrap(testData))); in parseBufferWithTestData()
DThreeGPPNetworkElementTest.java102 byte[] testData = getTestData(1, testIeiList); in parseBufferWithUnsupportedVersionNumber()
103 ThreeGPPNetworkElement.parse(ByteBuffer.wrap(testData)); in parseBufferWithUnsupportedVersionNumber()
117 byte[] testData = getTestData(ThreeGPPNetworkElement.GUD_VERSION_1, testIeiList); in parseBufferWithIncompleteData()
118 ThreeGPPNetworkElement.parse(ByteBuffer.wrap(testData, 0, testData.length - 1)); in parseBufferWithIncompleteData()
132 byte[] testData = getTestData(ThreeGPPNetworkElement.GUD_VERSION_1, testIeiList); in parseBufferWithTestData()
140 assertEquals(expected, ThreeGPPNetworkElement.parse(ByteBuffer.wrap(testData))); in parseBufferWithTestData()
DDomainNameElementTest.java103 byte[] testData = getTestData(new String[] {TEST_DOMAIN_NAME1, TEST_DOMAIN_NAME2}); in parseBufferWithValidDomainNames()
104 ByteBuffer buffer = ByteBuffer.wrap(testData); in parseBufferWithValidDomainNames()
/packages/modules/Connectivity/tests/unit/java/android/net/
DKeepalivePacketDataUtilTest.java156 TcpKeepalivePacketData testData = null; in testToTcpKeepaliveStableParcelable() local
158 testData = KeepalivePacketDataUtil.fromStableParcelable(testInfo); in testToTcpKeepaliveStableParcelable()
159 resultData = KeepalivePacketDataUtil.toStableParcelable(testData); in testToTcpKeepaliveStableParcelable()
200 final KeepalivePacketData testData = in testParseTcpKeepalivePacketData() local
203 KeepalivePacketDataUtil.parseTcpKeepalivePacketData(testData); in testParseTcpKeepalivePacketData()
208 assertTrue(testData.getPacket().length > 0); in testParseTcpKeepalivePacketData()
209 assertArrayEquals(testData.getPacket(), roundTripData.getPacket()); in testParseTcpKeepalivePacketData()
/packages/modules/Connectivity/Tethering/tests/privileged/src/com/android/networkstack/tethering/
DBpfMapTest.java366 final ArrayMap<TetherDownstream6Key, Tether6Value> testData = in testInsertOverflow() local
371 testData.put( in testInsertOverflow()
379 mTestMap.insertEntry(testData.keyAt(i), testData.valueAt(i)); in testInsertOverflow()
384 mTestMap.insertEntry(testData.keyAt(TEST_MAP_SIZE), testData.valueAt(TEST_MAP_SIZE)); in testInsertOverflow()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DServiceProviderVerifierTest.java191 String testData = "testData"; in testVerifyFingerPrintOfCertificateWithSameFingerPrintValueReturnTrue() local
193 when(mX509Certificate.getEncoded()).thenReturn(testData.getBytes()); in testVerifyFingerPrintOfCertificateWithSameFingerPrintValueReturnTrue()
206 String testData = "differentData"; in testVerifyFingerPrintOfCertificateWithDifferentFingerPrintValueReturnFalse() local
208 when(mX509Certificate.getEncoded()).thenReturn(testData.getBytes()); in testVerifyFingerPrintOfCertificateWithDifferentFingerPrintValueReturnFalse()
/packages/apps/TV/tests/common/src/com/android/tv/testing/robo/
DRobotTestAppHelper.java28 public static void loadTestData(TestSingletonApp app, TestData testData) { in loadTestData() argument
30 app.loadTestData(testData, TimeUnit.DAYS.toMillis(1)); in loadTestData()
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DTestSingletonApp.java97 public void loadTestData(TestData testData, long durationMs) { in loadTestData() argument
100 .add(testData.getTvInputInfo(), TvInputManager.INPUT_STATE_CONNECTED); in loadTestData()
101 testData.init(this, fakeClock, durationMs); in loadTestData()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/tts/
DTtsPlaybackPreferenceControllerTest.java222 String testData = ""; in getSampleText_processActivityResult_emptyText_setsDefaultText() local
225 data.putExtra(TextToSpeech.Engine.EXTRA_SAMPLE_TEXT, testData); in getSampleText_processActivityResult_emptyText_setsDefaultText()
236 String testData = "Test sample text"; in getSampleText_processActivityResult_dataIsNotNull_setsCorrectText() local
239 data.putExtra(TextToSpeech.Engine.EXTRA_SAMPLE_TEXT, testData); in getSampleText_processActivityResult_dataIsNotNull_setsCorrectText()
244 assertThat(mController.getSampleText()).isEqualTo(testData); in getSampleText_processActivityResult_dataIsNotNull_setsCorrectText()
/packages/services/Car/cpp/computepipe/tests/runner/client_interface/
DClientInterfaceTest.cc386 const std::string testData = "Test String."; in TEST_F() local
391 EXPECT_CALL(*packet, getSize()).Times(AtLeast(1)).WillRepeatedly(Return(testData.size())); in TEST_F()
392 EXPECT_CALL(*packet, getData()).Times(AtLeast(1)).WillRepeatedly(Return(testData.c_str())); in TEST_F()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/storage/
DDatabaseManagerTest.java278 Metadata testData = new Metadata(TEST_BT_ADDR); in testRemoveUnusedMetadata_WithMultiBondedDevices() local
279 testData.setCustomizedMeta(0, TEST_BYTE_ARRAY); in testRemoveUnusedMetadata_WithMultiBondedDevices()
280 mDatabaseManager.mMetadataCache.put(TEST_BT_ADDR, testData); in testRemoveUnusedMetadata_WithMultiBondedDevices()
281 mDatabase.insert(testData); in testRemoveUnusedMetadata_WithMultiBondedDevices()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java4401 byte[] testData = testConfig.toString().getBytes(); in testRestoreSoftApBackupData()
4402 when(mSoftApBackupRestore.retrieveSoftApConfigurationFromBackupData(testData)) in testRestoreSoftApBackupData()
4404 mWifiServiceImpl.restoreSoftApBackupData(testData); in testRestoreSoftApBackupData()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java3823 final CaptivePortalData testData = new CaptivePortalData.Builder() in testCaptivePortalApi() local
3828 mWiFiNetworkAgent.notifyCapportApiDataChanged(testData); in testCaptivePortalApi()
3831 lp -> testData.equals(lp.getCaptivePortalData())); in testCaptivePortalApi()
3838 lp -> testData.equals(lp.getCaptivePortalData()) && lp.getMtu() == 1234); in testCaptivePortalApi()