Home
last modified time | relevance | path

Searched refs:TEST_PACKAGE_NAME (Results 1 – 25 of 50) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/
DAppOpsControllerTest.java56 private static final String TEST_PACKAGE_NAME = "test"; field in AppOpsControllerTest
101 AppOpsManager.OP_RECORD_AUDIO, TEST_UID, TEST_PACKAGE_NAME, true); in addCallback_includedCode()
102 mController.onOpNoted(AppOpsManager.OP_FINE_LOCATION, TEST_UID, TEST_PACKAGE_NAME, in addCallback_includedCode()
106 TEST_UID, TEST_PACKAGE_NAME, true); in addCallback_includedCode()
113 AppOpsManager.OP_RECORD_AUDIO, TEST_UID, TEST_PACKAGE_NAME, true); in addCallback_notIncludedCode()
124 AppOpsManager.OP_RECORD_AUDIO, TEST_UID, TEST_PACKAGE_NAME, true); in removeCallback_sameCode()
135 AppOpsManager.OP_RECORD_AUDIO, TEST_UID, TEST_PACKAGE_NAME, true); in addCallback_notSameCode()
138 TEST_UID, TEST_PACKAGE_NAME, true); in addCallback_notSameCode()
144 TEST_UID, TEST_PACKAGE_NAME, true); in getActiveItems_sameDetails()
146 TEST_UID, TEST_PACKAGE_NAME, true); in getActiveItems_sameDetails()
[all …]
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/partner/
DFakeOverrideContentProvider.java46 private static final String TEST_PACKAGE_NAME = "test.packageName"; field in FakeOverrideContentProvider
66 ExternalResources.injectExternalResources(TEST_PACKAGE_NAME); in installDefaultProvider()
73 TEST_PACKAGE_NAME, in installDefaultProvider()
78 TEST_PACKAGE_NAME) in installDefaultProvider()
86 TEST_PACKAGE_NAME, in installDefaultProvider()
91 TEST_PACKAGE_NAME) in installDefaultProvider()
99 TEST_PACKAGE_NAME, in installDefaultProvider()
104 TEST_PACKAGE_NAME) in installDefaultProvider()
112 TEST_PACKAGE_NAME, in installDefaultProvider()
117 TEST_PACKAGE_NAME) in installDefaultProvider()
[all …]
DResourceEntryTest.java30 private static final String TEST_PACKAGE_NAME = "test.packagename"; field in ResourceEntryTest
37 TEST_PACKAGE_NAME, in toBundle_getBundleWithCorrectData()
42 assertThat(result.getString(ResourceEntry.KEY_PACKAGE_NAME)).isEqualTo(TEST_PACKAGE_NAME); in toBundle_getBundleWithCorrectData()
51 source.putString(ResourceEntry.KEY_PACKAGE_NAME, TEST_PACKAGE_NAME); in fromBundle_bundleWithRequiredData_getResourceEntryWithCorrectData()
57 assertThat(result.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in fromBundle_bundleWithRequiredData_getResourceEntryWithCorrectData()
71 source.putString("wrongKeyName", TEST_PACKAGE_NAME); in fromBundleWithoutRequiredData_returnNull()
DPartnerConfigHelperTest.java39 private static final String TEST_PACKAGE_NAME = "test.packageName"; field in PartnerConfigHelperTest
180 ExternalResources.injectExternalResources(TEST_PACKAGE_NAME); in prepareFakeData()
196 TEST_PACKAGE_NAME, in prepareFakeData()
201 TEST_PACKAGE_NAME)), in prepareFakeData()
203 TEST_PACKAGE_NAME, in prepareFakeData()
208 TEST_PACKAGE_NAME)), in prepareFakeData()
210 TEST_PACKAGE_NAME, in prepareFakeData()
215 TEST_PACKAGE_NAME)), in prepareFakeData()
217 TEST_PACKAGE_NAME, in prepareFakeData()
222 TEST_PACKAGE_NAME)) in prepareFakeData()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java90 private static final String TEST_PACKAGE_NAME = "com.google.somePackage"; field in WifiPermissionsUtilTest
186 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, null); in testCanReadPeersMacAddressCurrentUserAndAllPermissions()
208 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, null); in testCanReadPeersMacAddressCurrentProfileAndAllPermissions()
225 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, in testCannotAccessScanResult_AppNotAllowed()
253 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, null); in testenforceCanAccessScanResults_UserOrProfileNotCurrent()
274 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, in testCannotAccessScanResults_NoInteractAcrossUsersFullPermission()
299 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, in testLegacyForegroundAppWithOtherPermissionsDenied()
326 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, null); in testLegacyAppHasLocationAndAllPermissions()
347 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, in testCannotAccessScanResults_NoCoarseLocationPermission()
376 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, in testCannotAccessScanResults_LocationModeDisabled()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DChannelEditorDialogControllerTest.kt83 eq(TEST_PACKAGE_NAME), eq(TEST_UID), anyBoolean())) in setup()
86 `when`(mockNoMan.areNotificationsEnabledForPackage(eq(TEST_PACKAGE_NAME), eq(TEST_UID))) in setup()
93 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testPrepareDialogForApp_noExtraChannels()
103 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testPrepareDialogForApp_onlyDefaultChannel()
114 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testPrepareDialogForApp_noProvidedChannels_noException()
125 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testPrepareDialogForApp_retrievesUpTo4Channels()
135 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testApply_demoteChannel()
154 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testApply_demoteApp()
161 eq(TEST_PACKAGE_NAME), eq(TEST_UID), eq(false)) in testApply_demoteApp()
167 `when`(mockNoMan.areNotificationsEnabledForPackage(eq(TEST_PACKAGE_NAME), eq(TEST_UID))) in testApply_promoteApp()
[all …]
DNotificationInfoTest.java91 private static final String TEST_PACKAGE_NAME = "test_package"; field in NotificationInfoTest
138 packageInfo.packageName = TEST_PACKAGE_NAME; in setUp()
139 when(mMockPackageManager.getPackageInfo(eq(TEST_PACKAGE_NAME), anyInt())) in setUp()
143 when(mMockPackageManager.getApplicationInfo(eq(TEST_PACKAGE_NAME), anyInt())).thenReturn( in setUp()
154 eq(TEST_PACKAGE_NAME), eq(TEST_UID), anyBoolean())).thenReturn(1); in setUp()
164 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp()
186 TEST_PACKAGE_NAME, in testBindNotification_SetsTextApplicationName()
211 TEST_PACKAGE_NAME, in testBindNotification_SetsPackageIcon()
232 TEST_PACKAGE_NAME, in testBindNotification_noDelegate()
248 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, "other", 0, null, TEST_UID, 0, in testBindNotification_delegate()
[all …]
DPartialConversationInfoTest.java80 private static final String TEST_PACKAGE_NAME = "test_package"; field in PartialConversationInfoTest
128 packageInfo.packageName = TEST_PACKAGE_NAME; in setUp()
129 when(mMockPackageManager.getPackageInfo(eq(TEST_PACKAGE_NAME), anyInt())) in setUp()
133 when(mMockPackageManager.getApplicationInfo(eq(TEST_PACKAGE_NAME), anyInt())).thenReturn( in setUp()
144 eq(TEST_PACKAGE_NAME), eq(TEST_UID), anyBoolean())).thenReturn(1); in setUp()
159 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp()
171 TEST_PACKAGE_NAME, in testBindNotification_SetsName()
190 TEST_PACKAGE_NAME, in testBindNotification_setsIcon()
207 TEST_PACKAGE_NAME, in testBindNotification_noDelegate()
220 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, "other", 0, null, TEST_UID, 0, in testBindNotification_delegate()
[all …]
DNotificationConversationInfoTest.java109 private static final String TEST_PACKAGE_NAME = "test_package"; field in NotificationConversationInfoTest
183 packageInfo.packageName = TEST_PACKAGE_NAME; in setUp()
184 when(mMockPackageManager.getPackageInfo(eq(TEST_PACKAGE_NAME), anyInt())) in setUp()
188 when(mMockPackageManager.getApplicationInfo(eq(TEST_PACKAGE_NAME), anyInt())).thenReturn( in setUp()
213 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp()
248 TEST_PACKAGE_NAME, in testBindNotification_SetsShortcutIcon()
272 TEST_PACKAGE_NAME, in testBindNotification_SetsTextApplicationName()
323 TEST_PACKAGE_NAME, in testBindNotification_SetsTextGroupName()
348 TEST_PACKAGE_NAME, in testBindNotification_GroupNameHiddenIfNoGroup()
372 TEST_PACKAGE_NAME, in testBindNotification_noDelegate()
[all …]
DAppOpsInfoTest.java66 private static final String TEST_PACKAGE_NAME = "test_package"; field in AppOpsInfoTest
84 packageInfo.packageName = TEST_PACKAGE_NAME; in setUp()
85 when(mMockPackageManager.getPackageInfo(eq(TEST_PACKAGE_NAME), anyInt())) in setUp()
92 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp()
121 assertEquals(TEST_PACKAGE_NAME, pkg); in testBindNotification_SetsOnClickListenerForSettings()
148 assertEquals(TEST_PACKAGE_NAME, pkg); in testOk()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/
DEncryptedFullBackupTaskTest.java57 private static final String TEST_PACKAGE_NAME = "com.example.package"; field in EncryptedFullBackupTaskTest
108 when(mChunkListingStore.loadProto(TEST_PACKAGE_NAME)).thenReturn(Optional.empty()); in setUp()
129 TEST_PACKAGE_NAME, in setUp()
137 when(mChunkListingStore.loadProto(TEST_PACKAGE_NAME)) in call_existingChunkListingButTertiaryKeyRotated_performsNonIncrementalBackup()
151 when(mChunkListingStore.loadProto(TEST_PACKAGE_NAME)).thenReturn(Optional.empty()); in call_noExistingChunkListing_performsNonIncrementalBackup()
162 when(mChunkListingStore.loadProto(TEST_PACKAGE_NAME)) in call_existingChunkListing_performsIncrementalBackup()
175 when(mChunkListingStore.loadProto(TEST_PACKAGE_NAME)) in call_existingChunkListingWithNoFingerprintMixerSalt_doesntSetSaltBeforeIncBackup()
187 when(mChunkListingStore.loadProto(TEST_PACKAGE_NAME)).thenReturn(Optional.empty()); in call_noExistingChunkListing_storesNewChunkListing()
189 verify(mChunkListingStore).saveProto(TEST_PACKAGE_NAME, mNewChunkListing); in call_noExistingChunkListing_storesNewChunkListing()
194 when(mChunkListingStore.loadProto(TEST_PACKAGE_NAME)) in call_existingChunkListing_storesNewChunkListing()
[all …]
DEncryptedBackupTaskTest.java106 private static final String TEST_PACKAGE_NAME = "com.example.package"; field in EncryptedBackupTaskTest
136 mCryptoBackupServer, secureRandom, TEST_PACKAGE_NAME, mBackupEncrypter); in setUp()
147 when(mCryptoBackupServer.uploadNonIncrementalBackup(eq(TEST_PACKAGE_NAME), any(), any())) in performNonIncrementalBackup_performsBackup()
159 .uploadNonIncrementalBackup(eq(TEST_PACKAGE_NAME), any(), eq(mWrappedTertiaryKey)); in performNonIncrementalBackup_performsBackup()
171 eq(TEST_PACKAGE_NAME), eq(TEST_OLD_DOCUMENT_ID), any(), any())) in performIncrementalBackup_performsBackup()
183 eq(TEST_PACKAGE_NAME), in performIncrementalBackup_performsBackup()
206 eq(TEST_PACKAGE_NAME), eq(TEST_OLD_DOCUMENT_ID), any(), any())) in performIncrementalBackup_returnsNewChunkListingWithDocId()
233 when(mCryptoBackupServer.uploadNonIncrementalBackup(eq(TEST_PACKAGE_NAME), any(), any())) in performNonIncrementalBackup_returnsNewChunkListingWithDocId()
256 when(mCryptoBackupServer.uploadNonIncrementalBackup(eq(TEST_PACKAGE_NAME), any(), any())) in performNonIncrementalBackup_buildsCorrectChunkMetadata()
DClearCryptoStateTaskTest.java44 private static final String TEST_PACKAGE_NAME = "com.android.example"; field in ClearCryptoStateTaskTest
59 String packageName = TEST_PACKAGE_NAME; in run_clearsChunkListingProtoState()
74 String packageName = TEST_PACKAGE_NAME; in run_clearsKeyValueProtoState()
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/
DAppBackupUtilsTest.java50 private static final String TEST_PACKAGE_NAME = "test_package"; field in AppBackupUtilsTest
74 applicationInfo.packageName = TEST_PACKAGE_NAME; in appIsEligibleForBackup_backupNotAllowed_returnsFalse()
89 applicationInfo.packageName = TEST_PACKAGE_NAME; in appIsEligibleForBackup_systemAppWithoutCustomBackupAgent_returnsFalse()
118 applicationInfo.packageName = TEST_PACKAGE_NAME; in appIsEligibleForBackup_systemAppWithCustomBackupAgentAndEnabled_returnsTrue()
119 when(mMockPackageManagerInternal.getApplicationEnabledState(TEST_PACKAGE_NAME, mUserId)) in appIsEligibleForBackup_systemAppWithCustomBackupAgentAndEnabled_returnsTrue()
135 applicationInfo.packageName = TEST_PACKAGE_NAME; in appIsEligibleForBackup_nonSystemAppWithoutCustomBackupAgentAndEnabled_returnsTrue()
136 when(mMockPackageManagerInternal.getApplicationEnabledState(TEST_PACKAGE_NAME, mUserId)) in appIsEligibleForBackup_nonSystemAppWithoutCustomBackupAgentAndEnabled_returnsTrue()
152 applicationInfo.packageName = TEST_PACKAGE_NAME; in appIsEligibleForBackup_nonSystemAppWithCustomBackupAgentAndEnabled_returnsTrue()
153 when(mMockPackageManagerInternal.getApplicationEnabledState(TEST_PACKAGE_NAME, mUserId)) in appIsEligibleForBackup_nonSystemAppWithCustomBackupAgentAndEnabled_returnsTrue()
169 applicationInfo.packageName = TEST_PACKAGE_NAME; in appIsEligibleForBackup_systemAppWithCustomBackupAgentAndDisabled_returnsFalse()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DInfoMediaManagerTest.java61 private static final String TEST_PACKAGE_NAME = "com.test.packagename"; field in InfoMediaManagerTest
82 new InfoMediaManager(mContext, TEST_PACKAGE_NAME, null, mLocalBluetoothManager); in setUp()
99 when(info.getClientPackageName()).thenReturn(TEST_PACKAGE_NAME); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice()
120 when(info.getClientPackageName()).thenReturn(TEST_PACKAGE_NAME); in onRouteAdded_buildAllRoutes_shouldAddMediaDevice()
150 when(info.getClientPackageName()).thenReturn(TEST_PACKAGE_NAME); in onPreferredFeaturesChanged_samePackageName_shouldAddMediaDevice()
159 mInfoMediaManager.mMediaRouterCallback.onPreferredFeaturesChanged(TEST_PACKAGE_NAME, null); in onPreferredFeaturesChanged_samePackageName_shouldAddMediaDevice()
186 when(info.getClientPackageName()).thenReturn(TEST_PACKAGE_NAME); in onRoutesChanged_getAvailableRoutes_shouldAddMediaDevice()
207 when(info.getClientPackageName()).thenReturn(TEST_PACKAGE_NAME); in onRoutesChanged_buildAllRoutes_shouldAddMediaDevice()
229 info, TEST_PACKAGE_NAME); in connectDeviceWithoutPackageName_noSession_returnFalse()
250 when(info.getClientPackageName()).thenReturn(TEST_PACKAGE_NAME); in onRoutesRemoved_getAvailableRoutes_shouldAddMediaDevice()
[all …]
DMediaDeviceTest.java66 private static final String TEST_PACKAGE_NAME = "com.test.playmusic"; field in MediaDeviceTest
161 mBluetoothRouteInfo1, TEST_PACKAGE_NAME); in setUp()
164 mBluetoothRouteInfo2, TEST_PACKAGE_NAME); in setUp()
167 mBluetoothRouteInfo3, TEST_PACKAGE_NAME); in setUp()
169 TEST_PACKAGE_NAME); in setUp()
171 TEST_PACKAGE_NAME); in setUp()
173 TEST_PACKAGE_NAME); in setUp()
176 TEST_PACKAGE_NAME); in setUp()
299 mMediaRouter2Manager, phoneRouteInfo, TEST_PACKAGE_NAME); in compareTo_bluetooth_wiredHeadset_wiredHeadsetFirst()
315 mMediaRouter2Manager, phoneRouteInfo, TEST_PACKAGE_NAME); in compareTo_info_wiredHeadset_wiredHeadsetFirst()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java195 private static final String TEST_PACKAGE_NAME = "TestPackage"; field in WifiServiceImplTest
399 when(mContext.getOpPackageName()).thenReturn(TEST_PACKAGE_NAME); in setUp()
493 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME, in testRemoveNetworkFailureAppBelowQSdk()
500 boolean succeeded = mWifiServiceImpl.removeNetwork(0, TEST_PACKAGE_NAME); in testRemoveNetworkFailureAppBelowQSdk()
570 assertTrue(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, true)); in testSetWifiEnabledMetricsPrivilegedApp()
571 assertTrue(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, false)); in testSetWifiEnabledMetricsPrivilegedApp()
584 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledMetricsNormalAppBelowQSdk()
591 assertTrue(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, true)); in testSetWifiEnabledMetricsNormalAppBelowQSdk()
592 assertTrue(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, false)); in testSetWifiEnabledMetricsNormalAppBelowQSdk()
603 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledMetricsNormalAppTargetingQSdkNoIncrement()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityStartInterceptorTest.java83 private static final String TEST_PACKAGE_NAME = "com.test.package"; field in ActivityStartInterceptorTest
150 when(mPackageManager.getHarmfulAppWarning(TEST_PACKAGE_NAME, TEST_USER_ID)) in setUp()
157 TEST_USER_ID, TEST_PACKAGE_NAME, LOCK_TASK_LAUNCH_MODE_DEFAULT)) in setUp()
162 mAInfo.packageName = mAInfo.applicationInfo.packageName = TEST_PACKAGE_NAME; in setUp()
176 when(mPackageManagerInternal.getSuspendingPackage(TEST_PACKAGE_NAME, TEST_USER_ID)) in testSuspendedByAdminPackage()
198 assertEquals(TEST_PACKAGE_NAME, in testSuspendedPackage()
209 when(mPackageManagerInternal.getSuspendingPackage(TEST_PACKAGE_NAME, TEST_USER_ID)) in suspendPackage()
211 when(mPackageManagerInternal.getSuspendedDialogInfo(TEST_PACKAGE_NAME, suspendingPackage, in suspendPackage()
219 TEST_USER_ID, TEST_PACKAGE_NAME, LOCK_TASK_LAUNCH_MODE_DEFAULT)) in testInterceptLockTaskModeViolationPackage()
224 assertTrue(BlockedAppActivity.createIntent(TEST_USER_ID, TEST_PACKAGE_NAME) in testInterceptLockTaskModeViolationPackage()
[all …]
DLockTaskControllerTest.java101 private static final String TEST_PACKAGE_NAME = "com.test.package"; field in LockTaskControllerTest
503 String[] whitelist1 = {TEST_PACKAGE_NAME, TEST_PACKAGE_NAME_2}; in testUpdateLockTaskPackages()
504 String[] whitelist2 = {TEST_PACKAGE_NAME}; in testUpdateLockTaskPackages()
529 assertTrue("Package should remain whitelisted: " + TEST_PACKAGE_NAME, in testUpdateLockTaskPackages()
530 mLockTaskController.isPackageWhitelisted(TEST_USER_ID, TEST_PACKAGE_NAME)); in testUpdateLockTaskPackages()
538 Task tr1 = getTaskForUpdate(TEST_PACKAGE_NAME, true); in testUpdateLockTaskPackages_taskRemoved()
540 String[] whitelist = {TEST_PACKAGE_NAME, TEST_PACKAGE_NAME_2}; in testUpdateLockTaskPackages_taskRemoved()
552 whitelist = new String[] {TEST_PACKAGE_NAME}; in testUpdateLockTaskPackages_taskRemoved()
704 TEST_USER_ID, TEST_PACKAGE_NAME, LOCK_TASK_LAUNCH_MODE_DEFAULT)); in testIsActivityAllowed()
712 TEST_USER_ID, TEST_PACKAGE_NAME, LOCK_TASK_LAUNCH_MODE_DEFAULT)); in testIsActivityAllowed()
[all …]
/frameworks/base/packages/BackupEncryption/test/unittest/src/com/android/server/backup/encryption/transport/
DIntermediateEncryptingTransportTest.java55 private static final String TEST_PACKAGE_NAME = "test_package"; field in IntermediateEncryptingTransportTest
77 mTestPackage.packageName = TEST_PACKAGE_NAME; in setUp()
115 .encryptKeyValueData(eq(TEST_PACKAGE_NAME), eq(mParcelFileDescriptor), any()); in testPerformBackup_shouldEncryptTrue_encryptsDataAndPassesToDelegate()
138 mIntermediateEncryptingTransport.setNextRestorePackage(TEST_PACKAGE_NAME); in testGetRestoreData_shouldEncryptTrue_decryptsDataAndPassesToDelegate()
143 .decryptKeyValueData(eq(TEST_PACKAGE_NAME), any(), eq(mParcelFileDescriptor)); in testGetRestoreData_shouldEncryptTrue_decryptsDataAndPassesToDelegate()
153 mIntermediateEncryptingTransport.setNextRestorePackage(TEST_PACKAGE_NAME); in testGetRestoreData_shouldEncryptFalse_doesntDecryptDataAndPassesToDelegate()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DNotificationGroupTestHelper.java38 private static final String TEST_PACKAGE_NAME = "test_pkg"; field in NotificationGroupTestHelper
79 .setPkg(TEST_PACKAGE_NAME) in createEntry()
80 .setOpPkg(TEST_PACKAGE_NAME) in createEntry()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/logging/
DNotificationLoggerTest.java75 private static final String TEST_PACKAGE_NAME = "test"; field in NotificationLoggerTest
102 .setPkg(TEST_PACKAGE_NAME) in setUp()
103 .setOpPkg(TEST_PACKAGE_NAME) in setUp()
197 assertEquals(TEST_PACKAGE_NAME, n.packageName); in testLogPanelShownOnWake()
214 assertEquals(TEST_PACKAGE_NAME, n.packageName); in testLogPanelShownOnShadePull()
226 .setPkg(TEST_PACKAGE_NAME) in testLogPanelShownHandlesNullInstanceIds()
227 .setOpPkg(TEST_PACKAGE_NAME) in testLogPanelShownHandlesNullInstanceIds()
/frameworks/base/tests/net/common/java/android/net/
DCaptivePortalTest.java42 private static final String TEST_PACKAGE_NAME = "com.google.android.test"; field in CaptivePortalTest
105 TEST_PACKAGE_NAME)); in testLogEvent()
107 assertEquals(result.mPackageName, TEST_PACKAGE_NAME); in testLogEvent()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationListenerTest.java51 private static final String TEST_PACKAGE_NAME = "test"; field in NotificationListenerTest
69 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DNotificationListControllerTest.java112 .setPkg(TEST_PACKAGE_NAME) in buildEntry()
113 .setOpPkg(TEST_PACKAGE_NAME) in buildEntry()
121 private static final String TEST_PACKAGE_NAME = "test"; field in NotificationListControllerTest

12