Home
last modified time | relevance | path

Searched refs:TEST_PACKAGE (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiNetworkAgentSpecifierTest.java41 private static final String TEST_PACKAGE = "com.test"; field in WifiNetworkAgentSpecifierTest
109 TEST_UID, TEST_PACKAGE); in testWifiNetworkAgentSpecifierDoesNotEqualsWhenKeyMgmtDifferent()
116 TEST_UID, TEST_PACKAGE); in testWifiNetworkAgentSpecifierDoesNotEqualsWhenKeyMgmtDifferent()
133 TEST_UID, TEST_PACKAGE); in testWifiNetworkAgentSpecifierDoesNotSatisifyWhenSsidDifferent()
140 TEST_UID, TEST_PACKAGE); in testWifiNetworkAgentSpecifierDoesNotSatisifyWhenSsidDifferent()
157 TEST_UID, TEST_PACKAGE); in testWifiNetworkAgentSpecifierDoesNotSatisifyWhenBssidDifferent()
164 TEST_UID, TEST_PACKAGE); in testWifiNetworkAgentSpecifierDoesNotSatisifyWhenBssidDifferent()
219 TEST_UID, TEST_PACKAGE); in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidPattern()
248 TEST_UID, TEST_PACKAGE); in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithBssidPattern()
277 TEST_UID, TEST_PACKAGE); in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidAndBssidPattern()
[all …]
/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DBackupManagerServiceTest.java76 private static final String TEST_PACKAGE = "package"; field in BackupManagerServiceTest
78 private static final String[] ADB_TEST_PACKAGES = {TEST_PACKAGE};
281 backupManagerService.dataChanged(mUserOneId, TEST_PACKAGE); in testDataChanged_onRegisteredUser_callsMethodForUser()
283 verify(mUserOneService).dataChanged(TEST_PACKAGE); in testDataChanged_onRegisteredUser_callsMethodForUser()
293 backupManagerService.dataChanged(mUserTwoId, TEST_PACKAGE); in testDataChanged_onUnknownUser_doesNotPropagateCall()
295 verify(mUserOneService, never()).dataChanged(TEST_PACKAGE); in testDataChanged_onUnknownUser_doesNotPropagateCall()
306 backupManagerService.agentConnected(mUserOneId, TEST_PACKAGE, agentBinder); in testAgentConnected_onRegisteredUser_callsMethodForUser()
308 verify(mUserOneService).agentConnected(TEST_PACKAGE, agentBinder); in testAgentConnected_onRegisteredUser_callsMethodForUser()
319 backupManagerService.agentConnected(mUserTwoId, TEST_PACKAGE, agentBinder); in testAgentConnected_onUnknownUser_doesNotPropagateCall()
321 verify(mUserOneService, never()).agentConnected(TEST_PACKAGE, agentBinder); in testAgentConnected_onUnknownUser_doesNotPropagateCall()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DAssistDataRequesterTest.java87 private static final String TEST_PACKAGE = ""; field in AssistDataRequesterTest
160 ALLOW_FETCH_DATA, ALLOW_FETCH_SCREENSHOTS, TEST_UID, TEST_PACKAGE); in testRequestData()
170 ALLOW_FETCH_DATA, ALLOW_FETCH_SCREENSHOTS, TEST_UID, TEST_PACKAGE); in testEmptyActivities_expectNoCallbacks()
180 ALLOW_FETCH_DATA, ALLOW_FETCH_SCREENSHOTS, TEST_UID, TEST_PACKAGE); in testCurrentAppDisallow_expectNullCallbacks()
191 ALLOW_FETCH_DATA, ALLOW_FETCH_SCREENSHOTS, TEST_UID, TEST_PACKAGE); in testProcessPendingData()
226 ALLOW_FETCH_DATA, ALLOW_FETCH_SCREENSHOTS, TEST_UID, TEST_PACKAGE); in testNoFetchData_expectNoDataCallbacks()
236 ALLOW_FETCH_DATA, ALLOW_FETCH_SCREENSHOTS, TEST_UID, TEST_PACKAGE); in testDisallowAssistStructure_expectNullDataCallbacks()
249 ALLOW_FETCH_DATA, ALLOW_FETCH_SCREENSHOTS, TEST_UID, TEST_PACKAGE); in testDisallowAssistContextExtras_expectNullDataCallbacks()
261 ALLOW_FETCH_DATA, ALLOW_FETCH_SCREENSHOTS, TEST_UID, TEST_PACKAGE); in testNoFetchScreenshots_expectNoScreenshotCallbacks()
272 ALLOW_FETCH_DATA, ALLOW_FETCH_SCREENSHOTS, TEST_UID, TEST_PACKAGE); in testDisallowAssistScreenshot_expectNullScreenshotCallback()
[all …]
/frameworks/base/services/robotests/backup/src/com/android/server/backup/fullbackup/
DAppMetadataBackupWriterTest.java62 private static final String TEST_PACKAGE = "com.test.package"; field in AppMetadataBackupWriterTest
114 createPackageInfo(TEST_PACKAGE, TEST_PACKAGE_INSTALLER, TEST_PACKAGE_VERSION_CODE); in testBackupManifest_withoutApkOrSignatures_writesCorrectData()
123 assertThat(manifest[1]).isEqualTo(TEST_PACKAGE); in testBackupManifest_withoutApkOrSignatures_writesCorrectData()
149 createPackageInfo(TEST_PACKAGE, TEST_PACKAGE_INSTALLER, TEST_PACKAGE_VERSION_CODE); in testBackupManifest_withApk_writesApk()
178 createPackageInfo(TEST_PACKAGE, TEST_PACKAGE_INSTALLER, TEST_PACKAGE_VERSION_CODE); in testBackupManifest_withSignatures_writesCorrectSignatures()
215 PackageInfo packageInfo = createPackageInfo(TEST_PACKAGE, null, TEST_PACKAGE_VERSION_CODE); in testBackupManifest_withoutInstallerPackage_writesEmptyInstaller()
231 createPackageInfo(TEST_PACKAGE, TEST_PACKAGE_INSTALLER, TEST_PACKAGE_VERSION_CODE); in testBackupManifest_whenRunPreviouslyWithSameData_producesSameBytesOnSecondRun()
260 createPackageInfo(TEST_PACKAGE, TEST_PACKAGE_INSTALLER, TEST_PACKAGE_VERSION_CODE); in testBackupWidget_writesCorrectData()
286 createPackageInfo(TEST_PACKAGE, TEST_PACKAGE_INSTALLER, TEST_PACKAGE_VERSION_CODE); in testBackupWidget_withNullWidgetData_throwsNullPointerException()
302 createPackageInfo(TEST_PACKAGE, TEST_PACKAGE_INSTALLER, TEST_PACKAGE_VERSION_CODE); in testBackupWidget_withEmptyWidgetData_throwsIllegalArgumentException()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointManagerTest.java133 private static final String TEST_PACKAGE = "com.android.test"; field in PasspointManagerTest
352 eq(mSimAccessor), anyLong(), eq(TEST_CREATOR_UID), eq(TEST_PACKAGE))).thenReturn( in addTestProvider()
355 assertTrue(mManager.addOrUpdateProvider(config, TEST_CREATOR_UID, TEST_PACKAGE)); in addTestProvider()
369 eq(mSimAccessor), anyLong(), eq(TEST_CREATOR_UID), eq(TEST_PACKAGE))).thenReturn( in addTestCarrierProvider()
372 assertTrue(mManager.addOrUpdateProvider(config, TEST_CREATOR_UID, TEST_PACKAGE)); in addTestCarrierProvider()
588 assertFalse(mManager.addOrUpdateProvider(null, TEST_CREATOR_UID, TEST_PACKAGE)); in addProviderWithNullConfig()
601 TEST_PACKAGE)); in addProviderWithEmptyConfig()
618 assertFalse(mManager.addOrUpdateProvider(config, TEST_CREATOR_UID, TEST_PACKAGE)); in addProviderWithInvalidCredential()
633 when(provider.getPackageName()).thenReturn(TEST_PACKAGE); in addRemoveProviderWithValidUserCredential()
635 eq(mSimAccessor), anyLong(), eq(TEST_CREATOR_UID), eq(TEST_PACKAGE))).thenReturn( in addRemoveProviderWithValidUserCredential()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DNetworkSuggestionEvaluatorTest.java57 private static final String TEST_PACKAGE = "com.test"; field in NetworkSuggestionEvaluatorTest
130 String[] packageNames = {TEST_PACKAGE}; in testSelectNetworkSuggestionForOneMatch()
175 String[] packageNames = {TEST_PACKAGE, TEST_PACKAGE}; in testSelectNetworkSuggestionForMultipleMatch()
222 String[] packageNames = {TEST_PACKAGE, TEST_PACKAGE}; in testSelectNetworkSuggestionForMultipleMatchHighPriorityWins()
272 String[] packageNames = {TEST_PACKAGE, TEST_PACKAGE, TEST_PACKAGE_OTHER}; in testSelectNetworkSuggestionForMultipleMatchWithMultipleSuggestions()
330 String[] packageNames = {TEST_PACKAGE, TEST_PACKAGE, TEST_PACKAGE_OTHER, in testSelectNetworkSuggestionForMultipleMatchWithMultipleSuggestionsHighPriorityWins()
379 String[] packageNames = {TEST_PACKAGE}; in testSelectNetworkSuggestionForOneMatchButFailToAddToWifiConfigManager()
430 String[] packageNames = {TEST_PACKAGE}; in testSelectNetworkSuggestionForOneMatchForExistingNetwork()
482 String[] packageNames = {TEST_PACKAGE}; in testSelectNetworkSuggestionForOneMatchButUserForgotTheNetwork()
532 String[] packageNames = {TEST_PACKAGE}; in testSelectNetworkSuggestionForOneMatchForExistingNetworkButTempDisabled()
[all …]
DWifiConfigurationUtilTest.java51 static final String TEST_PACKAGE = "com.test"; field in WifiConfigurationUtilTest
598 TEST_UID, TEST_PACKAGE); in testValidateNetworkSpecifierPositiveCases_SsidPattern()
612 TEST_UID, TEST_PACKAGE); in testValidateNetworkSpecifierPositiveCases_BssidPattern()
626 TEST_UID, TEST_PACKAGE); in testValidateNetworkSpecifierPositiveCases_BothSsidPatternAndBssidPattern()
640 TEST_UID, TEST_PACKAGE); in testValidateNetworkSpecifierNegativeCases_NoSsidBssid()
654 TEST_UID, TEST_PACKAGE); in testValidateNetworkSpecifierNegativeCases_MatchNoneSsidPattern()
668 TEST_UID, TEST_PACKAGE); in testValidateNetworkSpecifierNegativeCases_MatchNoneBssidPattern()
682 TEST_UID, TEST_PACKAGE); in testValidateNetworkSpecifierNegativeCases_InvalidBssidPattern()
696 TEST_UID, TEST_PACKAGE); in testValidateNetworkSpecifierNegativeCases_NoSsidPatternForHiddenNetwork()
DWifiServiceImplTest.java1172 static final String TEST_PACKAGE = "package"; field in WifiServiceImplTest
1194 WifiInfo connectionInfo = mWifiServiceImpl.getConnectionInfo(TEST_PACKAGE); in testConnectedIdsAreHiddenFromAppWithoutPermission()
1212 WifiInfo connectionInfo = mWifiServiceImpl.getConnectionInfo(TEST_PACKAGE); in testConnectedIdsAreHiddenOnSecurityException()
1227 WifiInfo connectionInfo = mWifiServiceImpl.getConnectionInfo(TEST_PACKAGE); in testConnectedIdsAreVisibleFromPermittedApp()
1248 mWifiServiceImpl.getConfiguredNetworks(TEST_PACKAGE); in testConfiguredNetworkListAreEmptyFromAppWithoutPermission()
1266 mWifiServiceImpl.getConfiguredNetworks(TEST_PACKAGE); in testConfiguredNetworkListAreEmptyOnSecurityException()
1287 mWifiServiceImpl.getConfiguredNetworks(TEST_PACKAGE); in testConfiguredNetworkListAreVisibleFromPermittedApp()
1309 mWifiServiceImpl.getPrivilegedConfiguredNetworks(TEST_PACKAGE); in testPrivilegedConfiguredNetworkListAreEmptyFromAppWithoutPermission()
1327 mWifiServiceImpl.getPrivilegedConfiguredNetworks(TEST_PACKAGE); in testPrivilegedConfiguredNetworkListAreEmptyOnSecurityException()
1345 mWifiServiceImpl.getPrivilegedConfiguredNetworks(TEST_PACKAGE); in testPrivilegedConfiguredNetworkListAreVisibleFromPermittedApp()