/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | NotificationInfoTest.java | 92 private static final String TEST_PACKAGE_NAME = "test_package"; field in NotificationInfoTest 127 packageInfo.packageName = TEST_PACKAGE_NAME; in setUp() 128 when(mMockPackageManager.getPackageInfo(eq(TEST_PACKAGE_NAME), anyInt())) in setUp() 143 eq(TEST_PACKAGE_NAME), eq(TEST_UID), anyBoolean())).thenReturn(1); in setUp() 151 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp() 170 TEST_PACKAGE_NAME, mNotificationChannel, 1, mSbn, null, null, null, false); in testBindNotification_SetsTextApplicationName() 182 TEST_PACKAGE_NAME, mNotificationChannel, 1, mSbn, null, null, null, false); in testBindNotification_SetsPackageIcon() 190 TEST_PACKAGE_NAME, mNotificationChannel, 1, mSbn, null, null, null, false); in testBindNotification_GroupNameHiddenIfNoGroup() 203 eq("test_group_id"), eq(TEST_PACKAGE_NAME), eq(TEST_UID))) in testBindNotification_SetsGroupNameIfNonNull() 206 TEST_PACKAGE_NAME, mNotificationChannel, 1, mSbn, null, null, null, false); in testBindNotification_SetsGroupNameIfNonNull() [all …]
|
D | AppOpsListenerTest.java | 43 private static final String TEST_PACKAGE_NAME = "test"; field in AppOpsListenerTest 83 AppOpsManager.OP_RECORD_AUDIO, TEST_UID, TEST_PACKAGE_NAME, true); in testInformEntryMgrOnAppOpsChange() 86 AppOpsManager.OP_RECORD_AUDIO, TEST_UID, TEST_PACKAGE_NAME, true); in testInformEntryMgrOnAppOpsChange() 93 AppOpsManager.OP_RECORD_AUDIO, TEST_UID, TEST_PACKAGE_NAME, true); in testInformFscOnAppOpsChange() 96 AppOpsManager.OP_RECORD_AUDIO, TEST_UID, TEST_PACKAGE_NAME, true); in testInformFscOnAppOpsChange()
|
D | AppOpsInfoTest.java | 65 private static final String TEST_PACKAGE_NAME = "test_package"; field in AppOpsInfoTest 82 packageInfo.packageName = TEST_PACKAGE_NAME; in setUp() 83 when(mMockPackageManager.getPackageInfo(eq(TEST_PACKAGE_NAME), anyInt())) in setUp() 90 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp() 119 assertEquals(TEST_PACKAGE_NAME, pkg); in testBindNotification_SetsOnClickListenerForSettings() 138 assertEquals(TEST_PACKAGE_NAME, pkg); in testOk()
|
D | NotificationListenerTest.java | 50 private static final String TEST_PACKAGE_NAME = "test"; field in NotificationListenerTest 75 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp()
|
D | NotificationRemoteInputManagerTest.java | 34 private static final String TEST_PACKAGE_NAME = "test"; field in NotificationRemoteInputManagerTest 63 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, in setUp()
|
D | NotificationLoggerTest.java | 57 private static final String TEST_PACKAGE_NAME = "test"; field in NotificationLoggerTest 83 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, in setUp()
|
D | NotificationEntryManagerTest.java | 78 private static final String TEST_PACKAGE_NAME = "test"; field in NotificationEntryManagerTest 178 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, in setUp()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | WifiPermissionsUtilTest.java | 79 private static final String TEST_PACKAGE_NAME = "com.google.somePackage"; field in WifiPermissionsUtilTest 179 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, mUid); in testCanReadPeersMacAddressCurrentUserAndAllPermissions() 202 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, mUid); in testCanReadPeersMacAddressCurrentProfileAndAllPermissions() 219 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, mUid); in testCannotAccessScanResult_AppNotAllowed() 246 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, mUid); in testenforceCanAccessScanResults_UserOrProfileNotCurrent() 267 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, mUid); in testCannotAccessScanResults_NoInteractAcrossUsersFullPermission() 284 mPkgNameOfTopActivity = TEST_PACKAGE_NAME; in testLegacyForegroundAppWithOtherPermissionsDenied() 292 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, mUid); in testLegacyForegroundAppWithOtherPermissionsDenied() 319 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, mUid); in testLegacyAppHasLocationAndAllPermissions() 340 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, mUid); in testCannotAccessScanResults_NoCoarseLocationPermission() [all …]
|
D | XmlUtilTest.java | 56 private static final String TEST_PACKAGE_NAME = "XmlUtilPackage"; field in XmlUtilTest 208 configuration.creatorName = configuration.lastUpdateName = TEST_PACKAGE_NAME; in testEapWifiConfigurationSerializeDeserializeForConfigStore()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | ActivityStartInterceptorTest.java | 73 private static final String TEST_PACKAGE_NAME = "com.test.package"; field in ActivityStartInterceptorTest 130 when(mPackageManager.getHarmfulAppWarning(TEST_PACKAGE_NAME, TEST_USER_ID)) in setUp() 135 mAInfo.packageName = mAInfo.applicationInfo.packageName = TEST_PACKAGE_NAME; in setUp() 143 when(mPackageManagerInternal.getSuspendingPackage(TEST_PACKAGE_NAME, TEST_USER_ID)) in testSuspendedByAdminPackage() 158 when(mPackageManagerInternal.getSuspendingPackage(TEST_PACKAGE_NAME, TEST_USER_ID)) in testSuspendedPackage() 160 when(mPackageManagerInternal.getSuspendedDialogMessage(TEST_PACKAGE_NAME, TEST_USER_ID)) in testSuspendedPackage() 170 assertEquals(TEST_PACKAGE_NAME, in testSuspendedPackage()
|
D | LockTaskControllerTest.java | 84 private static final String TEST_PACKAGE_NAME = "com.test.package"; field in LockTaskControllerTest 407 String[] whitelist1 = {TEST_PACKAGE_NAME, TEST_PACKAGE_NAME_2}; in testUpdateLockTaskPackages() 408 String[] whitelist2 = {TEST_PACKAGE_NAME}; in testUpdateLockTaskPackages() 433 assertTrue("Package should remain whitelisted: " + TEST_PACKAGE_NAME, in testUpdateLockTaskPackages() 434 mLockTaskController.isPackageWhitelisted(TEST_USER_ID, TEST_PACKAGE_NAME)); in testUpdateLockTaskPackages() 442 TaskRecord tr1 = getTaskRecordForUpdate(TEST_PACKAGE_NAME, true); in testUpdateLockTaskPackages_taskRemoved() 444 String[] whitelist = {TEST_PACKAGE_NAME, TEST_PACKAGE_NAME_2}; in testUpdateLockTaskPackages_taskRemoved() 456 whitelist = new String[] {TEST_PACKAGE_NAME}; in testUpdateLockTaskPackages_taskRemoved() 604 return getTaskRecord(TEST_PACKAGE_NAME, lockTaskAuth); in getTaskRecord() 651 verify(mDevicePolicyManager).notifyLockTaskModeChanged(true, TEST_PACKAGE_NAME, in verifyLockTaskStarted()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiServiceImplTest.java | 133 private static final String TEST_PACKAGE_NAME = "TestPackage"; field in WifiServiceImplTest 315 when(mContext.getOpPackageName()).thenReturn(TEST_PACKAGE_NAME); in setUp() 333 mWifiServiceImpl.getWifiServiceMessenger(TEST_PACKAGE_NAME), handler); in verifyAsyncChannelHalfConnected() 347 assertFalse(mWifiServiceImpl.removeNetwork(-1, TEST_PACKAGE_NAME)); in testRemoveNetworkUnknown() 392 assertTrue(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, true)); in testSetWifiEnabledSuccess() 402 assertTrue(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, true)); in testSetWifiEnabledNoToggle() 417 mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, true); in testSetWifiEnableWithoutPermission() 432 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnableAppOpsRejected() 435 mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, true); in testSetWifiEnableAppOpsRejected() 451 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnableAppOpsIgnored() [all …]
|
D | ScoredNetworkEvaluatorTest.java | 60 private static final String TEST_PACKAGE_NAME = "name.package.test"; field in ScoredNetworkEvaluatorTest 105 .thenReturn(TEST_PACKAGE_NAME); in setUp() 245 eq(TEST_PACKAGE_NAME), eq(TEST_UID)); in testUpdate_externalScorerNotPermittedToSeeScanResults() 268 eq(TEST_PACKAGE_NAME), eq(TEST_UID)); in testUpdate_externalScorerNotPermittedToSeeScanResultsWithException()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/ |
D | AppBackupUtilsTest.java | 49 private static final String TEST_PACKAGE_NAME = "test_package"; field in AppBackupUtilsTest 71 applicationInfo.packageName = TEST_PACKAGE_NAME; in appIsEligibleForBackup_backupNotAllowed_returnsFalse() 86 applicationInfo.packageName = TEST_PACKAGE_NAME; in appIsEligibleForBackup_systemAppWithoutCustomBackupAgent_returnsFalse() 115 applicationInfo.packageName = TEST_PACKAGE_NAME; in appIsEligibleForBackup_systemAppWithCustomBackupAgentAndEnabled_returnsTrue() 133 applicationInfo.packageName = TEST_PACKAGE_NAME; in appIsEligibleForBackup_nonSystemAppWithoutCustomBackupAgentAndEnabled_returnsTrue() 151 applicationInfo.packageName = TEST_PACKAGE_NAME; in appIsEligibleForBackup_nonSystemAppWithCustomBackupAgentAndEnabled_returnsTrue() 169 applicationInfo.packageName = TEST_PACKAGE_NAME; in appIsEligibleForBackup_systemAppWithCustomBackupAgentAndDisabled_returnsFalse() 187 applicationInfo.packageName = TEST_PACKAGE_NAME; in appIsEligibleForBackup_nonSystemAppWithoutCustomBackupAgentAndDisabled_returnsFalse() 205 applicationInfo.packageName = TEST_PACKAGE_NAME; in appIsEligibleForBackup_nonSystemAppWithCustomBackupAgentAndDisbled_returnsFalse() 222 applicationInfo.packageName = TEST_PACKAGE_NAME; in appIsDisabled_stateEnabled_returnsFalse() [all …]
|
D | TarBackupReaderTest.java | 82 private static final String TEST_PACKAGE_NAME = "com.android.backup.testing"; field in TarBackupReaderTest 153 assertThat(fileMetadata.packageName).isEqualTo(TEST_PACKAGE_NAME); in readTarHeaders_backupNotEncrypted_correctlyReadsPaxHeader() 167 assertThat(fileMetadata.packageName).isEqualTo(TEST_PACKAGE_NAME); in readTarHeaders_backupNotEncrypted_correctlyReadsPaxHeader()
|
/frameworks/base/lowpan/tests/src/android/net/lowpan/ |
D | LowpanInterfaceTest.java | 39 private static final String TEST_PACKAGE_NAME = "TestPackage"; field in LowpanInterfaceTest 58 when(mContext.getOpPackageName()).thenReturn(TEST_PACKAGE_NAME); in setUp()
|
D | LowpanManagerTest.java | 41 private static final String TEST_PACKAGE_NAME = "TestPackage"; field in LowpanManagerTest 62 when(mContext.getOpPackageName()).thenReturn(TEST_PACKAGE_NAME); in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | HeadsUpManagerPhoneTest.java | 60 private static final String TEST_PACKAGE_NAME = "test"; field in HeadsUpManagerPhoneTest 85 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, in setUp()
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiManagerTest.java | 71 private static final String TEST_PACKAGE_NAME = "TestPackage"; field in WifiManagerTest 92 when(mContext.getOpPackageName()).thenReturn(TEST_PACKAGE_NAME); in setUp() 1044 when(mWifiService.setWifiApConfiguration(eq(apConfig), eq(TEST_PACKAGE_NAME))) in testSetWifiApConfigurationSuccessReturnsTrue() 1056 when(mWifiService.setWifiApConfiguration(eq(apConfig), eq(TEST_PACKAGE_NAME))) in testSetWifiApConfigurationFailureReturnsFalse() 1079 when(mWifiService.startScan(TEST_PACKAGE_NAME)).thenReturn(true); in testStartScan() 1082 when(mWifiService.startScan(TEST_PACKAGE_NAME)).thenReturn(false); in testStartScan()
|