Home
last modified time | relevance | path

Searched refs:testData (Results 1 – 21 of 21) 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/nearby/tests/unit/src/com/android/server/nearby/provider/
DChreDiscoveryProviderTest.java216 final byte [] testData = new byte[] {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; in testOnNearbyDeviceDiscoveredWithDataElements_TIME()
263 .setValue(ByteString.copyFrom(testData)) in testOnNearbyDeviceDiscoveredWithDataElements_TIME()
264 .setValueLength(testData.length) in testOnNearbyDeviceDiscoveredWithDataElements_TIME()
268 .setValue(ByteString.copyFrom(testData)) in testOnNearbyDeviceDiscoveredWithDataElements_TIME()
269 .setValueLength(testData.length) in testOnNearbyDeviceDiscoveredWithDataElements_TIME()
322 final byte [] testData = new byte[] {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; in testOnNearbyDeviceDiscoveredWithTestDataElements()
336 new DataElement(DATA_TYPE_TEST_DE_BEGIN_KEY, testData)); in testOnNearbyDeviceDiscoveredWithTestDataElements()
338 new DataElement(DATA_TYPE_TEST_DE_END_KEY, testData)); in testOnNearbyDeviceDiscoveredWithTestDataElements()
372 .setValue(ByteString.copyFrom(testData)) in testOnNearbyDeviceDiscoveredWithTestDataElements()
373 .setValueLength(testData.length) in testOnNearbyDeviceDiscoveredWithTestDataElements()
[all …]
/packages/modules/Connectivity/tests/unit/java/android/net/
DKeepalivePacketDataUtilTest.java157 TcpKeepalivePacketData testData = null; in testToTcpKeepaliveStableParcelable() local
159 testData = TcpKeepaliveController.fromStableParcelable(testInfo); in testToTcpKeepaliveStableParcelable()
160 resultData = KeepalivePacketDataUtil.toStableParcelable(testData); in testToTcpKeepaliveStableParcelable()
195 final KeepalivePacketData testData = in testParseTcpKeepalivePacketData() local
198 KeepalivePacketDataUtil.parseTcpKeepalivePacketData(testData); in testParseTcpKeepalivePacketData()
203 assertTrue(testData.getPacket().length > 0); in testParseTcpKeepalivePacketData()
204 assertArrayEquals(testData.getPacket(), roundTripData.getPacket()); in testParseTcpKeepalivePacketData()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/migration/
DMeasurementDbMigratorV26Test.java54 Map<String, List<ContentValues>> testData = createFakeDataV25(); in performMigration_v25ToV26WithData_ClearsReportRetries() local
55 MigrationTestHelper.populateDb(db, testData); in performMigration_v25ToV26WithData_ClearsReportRetries()
75 Map<String, List<ContentValues>> testData = createFakeDataV25(); in performMigration_v25ToV26WithData_AddsAndPopulatesColumns() local
76 MigrationTestHelper.populateDb(db, testData); in performMigration_v25ToV26WithData_AddsAndPopulatesColumns()
DMeasurementDbMigratorV31Test.java53 Map<String, List<ContentValues>> testData = createFakeDataV30(); in performMigration_v30ToV31WithData_maintainsDataIntegrity() local
54 MigrationTestHelper.populateDb(db, testData); in performMigration_v30ToV31WithData_maintainsDataIntegrity()
60 MigrationTestHelper.verifyDataInDb(db, testData); in performMigration_v30ToV31WithData_maintainsDataIntegrity()
DMeasurementDbMigratorV24Test.java54 Map<String, List<ContentValues>> testData = createFakeDataV23(); in performMigration_v23ToV24WithData_maintainsDataIntegrity() local
55 MigrationTestHelper.populateDb(db, testData); in performMigration_v23ToV24WithData_maintainsDataIntegrity()
61 MigrationTestHelper.verifyDataInDb(db, testData); in performMigration_v23ToV24WithData_maintainsDataIntegrity()
DMeasurementDbMigratorV13Test.java54 Map<String, List<ContentValues>> testData = createFakeDataV12(); in performMigration_v12Tov13WithData_maintainDataIntegrity() local
55 MigrationTestHelper.populateDb(db, testData); in performMigration_v12Tov13WithData_maintainDataIntegrity()
61 MigrationTestHelper.verifyDataInDb(db, testData); in performMigration_v12Tov13WithData_maintainDataIntegrity()
/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/modules/Connectivity/Tethering/tests/privileged/src/com/android/networkstack/tethering/
DBpfMapTest.java413 final ArrayMap<TetherDownstream6Key, Tether6Value> testData = in testInsertOverflow() local
418 testData.put( in testInsertOverflow()
426 mTestMap.insertEntry(testData.keyAt(i), testData.valueAt(i)); in testInsertOverflow()
431 mTestMap.insertEntry(testData.keyAt(TEST_MAP_SIZE), testData.valueAt(TEST_MAP_SIZE)); in testInsertOverflow()
/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/modules/Permission/tests/cts/permission/src/android/permission/cts/
DNoSystemFunctionPermissionTest.java174 byte[] testData = new byte[10]; in testSendSms()
176 smsManager.sendDataMessage("1233", "1233", (short) 0, testData, null, null); in testSendSms()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/tts/
DTtsPlaybackPreferenceControllerTest.java224 String testData = ""; in getSampleText_processActivityResult_emptyText_setsDefaultText() local
227 data.putExtra(TextToSpeech.Engine.EXTRA_SAMPLE_TEXT, testData); in getSampleText_processActivityResult_emptyText_setsDefaultText()
238 String testData = "Test sample text"; in getSampleText_processActivityResult_dataIsNotNull_setsCorrectText() local
241 data.putExtra(TextToSpeech.Engine.EXTRA_SAMPLE_TEXT, testData); in getSampleText_processActivityResult_dataIsNotNull_setsCorrectText()
246 assertThat(mPreferenceController.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/modules/AdServices/sdksandbox/tests/cts/endtoendtests/providers/CtsProvider/src/com/android/ctssdkprovider/
DCtsSdkProviderApiImpl.java279 RoomDatabaseTester.User testData = new RoomDatabaseTester.User(1, "SandboxUser"); in checkRoomDatabaseAccess() local
280 userDao.insertAll(testData); in checkRoomDatabaseAccess()
281 if (!userDao.getAll().contains(testData)) { in checkRoomDatabaseAccess()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/storage/
DDatabaseManagerTest.java359 Metadata testData = new Metadata(TEST_BT_ADDR); in testRemoveUnusedMetadata_WithMultiBondedDevices() local
360 testData.setCustomizedMeta(0, TEST_BYTE_ARRAY); in testRemoveUnusedMetadata_WithMultiBondedDevices()
361 mDatabaseManager.mMetadataCache.put(TEST_BT_ADDR, testData); in testRemoveUnusedMetadata_WithMultiBondedDevices()
362 mDatabase.insert(testData); in testRemoveUnusedMetadata_WithMultiBondedDevices()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java5199 byte[] testData = testConfig.toString().getBytes(); in testRestoreSoftApBackupData()
5200 when(mSoftApBackupRestore.retrieveSoftApConfigurationFromBackupData(testData)) in testRestoreSoftApBackupData()
5202 mWifiServiceImpl.restoreSoftApBackupData(testData); in testRestoreSoftApBackupData()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java4985 final CaptivePortalData testData = new CaptivePortalData.Builder()
4990 mWiFiAgent.notifyCapportApiDataChanged(testData);
4993 cb -> testData.equals(cb.getLp().getCaptivePortalData()));
5000 cb -> testData.equals(cb.getLp().getCaptivePortalData())