Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/
DAppOpsControllerTest.java55 private static final String TEST_PACKAGE_NAME = "test"; field in AppOpsControllerTest
99 AppOpsManager.OP_RECORD_AUDIO, TEST_UID, TEST_PACKAGE_NAME, true); in addCallback_includedCode()
100 mController.onOpNoted(AppOpsManager.OP_FINE_LOCATION, TEST_UID, TEST_PACKAGE_NAME, in addCallback_includedCode()
104 TEST_UID, TEST_PACKAGE_NAME, true); in addCallback_includedCode()
111 AppOpsManager.OP_RECORD_AUDIO, TEST_UID, TEST_PACKAGE_NAME, true); in addCallback_notIncludedCode()
122 AppOpsManager.OP_RECORD_AUDIO, TEST_UID, TEST_PACKAGE_NAME, true); in removeCallback_sameCode()
133 AppOpsManager.OP_RECORD_AUDIO, TEST_UID, TEST_PACKAGE_NAME, true); in addCallback_notSameCode()
136 TEST_UID, TEST_PACKAGE_NAME, true); in addCallback_notSameCode()
142 TEST_UID, TEST_PACKAGE_NAME, true); in getActiveItems_sameDetails()
144 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 …]
DPartnerConfigHelperTest.java38 private static final String TEST_PACKAGE_NAME = "test.packageName"; field in PartnerConfigHelperTest
115 ExternalResources.injectExternalResources(TEST_PACKAGE_NAME); in prepareFakeData()
131 TEST_PACKAGE_NAME, in prepareFakeData()
136 TEST_PACKAGE_NAME)), in prepareFakeData()
138 TEST_PACKAGE_NAME, in prepareFakeData()
143 TEST_PACKAGE_NAME)), in prepareFakeData()
145 TEST_PACKAGE_NAME, in prepareFakeData()
150 TEST_PACKAGE_NAME)), in prepareFakeData()
152 TEST_PACKAGE_NAME, in prepareFakeData()
157 TEST_PACKAGE_NAME)) in prepareFakeData()
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()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java84 private static final String TEST_PACKAGE_NAME = "com.google.somePackage"; field in WifiPermissionsUtilTest
195 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, mUid); in testCanReadPeersMacAddressCurrentUserAndAllPermissions()
218 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, mUid); in testCanReadPeersMacAddressCurrentProfileAndAllPermissions()
235 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, mUid); in testCannotAccessScanResult_AppNotAllowed()
262 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, mUid); in testenforceCanAccessScanResults_UserOrProfileNotCurrent()
283 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, mUid); in testCannotAccessScanResults_NoInteractAcrossUsersFullPermission()
300 mPkgNameOfTopActivity = TEST_PACKAGE_NAME; in testLegacyForegroundAppWithOtherPermissionsDenied()
308 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, mUid); in testLegacyForegroundAppWithOtherPermissionsDenied()
335 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, mUid); in testLegacyAppHasLocationAndAllPermissions()
356 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, mUid); in testCannotAccessScanResults_NoCoarseLocationPermission()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DChannelEditorDialogControllerTest.kt76 eq(TEST_PACKAGE_NAME), eq(TEST_UID), anyBoolean())) in setup()
79 `when`(mockNoMan.areNotificationsEnabledForPackage(eq(TEST_PACKAGE_NAME), eq(TEST_UID))) in setup()
86 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testPrepareDialogForApp_noExtraChannels()
96 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testPrepareDialogForApp_onlyDefaultChannel()
107 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testPrepareDialogForApp_noProvidedChannels_noException()
118 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testPrepareDialogForApp_retrievesUpTo4Channels()
128 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testApply_demoteChannel()
147 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testApply_demoteApp()
154 eq(TEST_PACKAGE_NAME), eq(TEST_UID), eq(false)) in testApply_demoteApp()
160 `when`(mockNoMan.areNotificationsEnabledForPackage(eq(TEST_PACKAGE_NAME), eq(TEST_UID))) in testApply_promoteApp()
[all …]
DNotificationInfoTest.java95 private static final String TEST_PACKAGE_NAME = "test_package"; field in NotificationInfoTest
139 packageInfo.packageName = TEST_PACKAGE_NAME; in setUp()
140 when(mMockPackageManager.getPackageInfo(eq(TEST_PACKAGE_NAME), anyInt())) in setUp()
144 when(mMockPackageManager.getApplicationInfo(eq(TEST_PACKAGE_NAME), anyInt())).thenReturn( in setUp()
155 eq(TEST_PACKAGE_NAME), eq(TEST_UID), anyBoolean())).thenReturn(1); in setUp()
165 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp()
203 TEST_PACKAGE_NAME, in testBindNotification_SetsTextApplicationName()
228 TEST_PACKAGE_NAME, in testBindNotification_SetsPackageIcon()
249 TEST_PACKAGE_NAME, in testBindNotification_noDelegate()
268 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, "other", 0, null, TEST_UID, 0, in testBindNotification_delegate()
[all …]
DAppOpsInfoTest.java65 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()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/color/
DAppSaturationControllerTest.java46 private static final String TEST_PACKAGE_NAME = "com.android.test"; field in AppSaturationControllerTest
73 mAppSaturationController.setSaturationLevel(TEST_PACKAGE_NAME, mUserId, 30); in addColorTransformController_appliesExistingSaturation()
74 mAppSaturationController.addColorTransformController(TEST_PACKAGE_NAME, mUserId, ref); in addColorTransformController_appliesExistingSaturation()
83 mAppSaturationController.addColorTransformController(TEST_PACKAGE_NAME, mUserId, ref); in setSaturationLevel_resetToDefault()
86 mAppSaturationController.setSaturationLevel(TEST_PACKAGE_NAME, mUserId, 30); in setSaturationLevel_resetToDefault()
90 mAppSaturationController.setSaturationLevel(TEST_PACKAGE_NAME, mUserId, 100); in setSaturationLevel_resetToDefault()
100 mAppSaturationController.addColorTransformController(TEST_PACKAGE_NAME, mUserId, ref); in setSaturationLevel_updateLevel()
103 mAppSaturationController.setSaturationLevel(TEST_PACKAGE_NAME, mUserId, 30); in setSaturationLevel_updateLevel()
106 mAppSaturationController.setSaturationLevel(TEST_PACKAGE_NAME, mUserId, 70); in setSaturationLevel_updateLevel()
110 mAppSaturationController.setSaturationLevel(TEST_PACKAGE_NAME, mUserId, 100); in setSaturationLevel_updateLevel()
/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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java167 private static final String TEST_PACKAGE_NAME = "TestPackage"; field in WifiServiceImplTest
399 when(mContext.getOpPackageName()).thenReturn(TEST_PACKAGE_NAME); in setUp()
449 mWifiServiceImpl.getWifiServiceMessenger(TEST_PACKAGE_NAME), handler); in verifyAsyncChannelHalfConnected()
463 assertFalse(mWifiServiceImpl.removeNetwork(-1, TEST_PACKAGE_NAME)); in testRemoveNetworkUnknown()
540 assertTrue(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, true)); in testSetWifiEnabledMetricsPrivilegedApp()
541 assertTrue(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, false)); in testSetWifiEnabledMetricsPrivilegedApp()
552 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledMetricsNormalAppBelowQSDK()
559 assertTrue(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, true)); in testSetWifiEnabledMetricsNormalAppBelowQSDK()
560 assertTrue(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, false)); in testSetWifiEnabledMetricsNormalAppBelowQSDK()
571 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledMetricsNormalAppTargetingQSDKNoIncrement()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiNetworkSuggestionTest.java36 private static final String TEST_PACKAGE_NAME = "com.test.packagename"; field in WifiNetworkSuggestionTest
323 new WifiNetworkSuggestion(configuration, false, true, TEST_UID, TEST_PACKAGE_NAME); in testWifiNetworkSuggestionParcel()
358 TEST_PACKAGE_NAME); in testWifiNetworkSuggestionEqualsSame()
366 TEST_PACKAGE_NAME); in testWifiNetworkSuggestionEqualsSame()
382 TEST_PACKAGE_NAME); in testWifiNetworkSuggestionEqualsFailsWhenSsidIsDifferent()
389 TEST_PACKAGE_NAME); in testWifiNetworkSuggestionEqualsFailsWhenSsidIsDifferent()
406 TEST_PACKAGE_NAME); in testWifiNetworkSuggestionEqualsFailsWhenBssidIsDifferent()
413 TEST_PACKAGE_NAME); in testWifiNetworkSuggestionEqualsFailsWhenBssidIsDifferent()
429 TEST_PACKAGE_NAME); in testWifiNetworkSuggestionEqualsFailsWhenKeyMgmtIsDifferent()
436 TEST_PACKAGE_NAME); in testWifiNetworkSuggestionEqualsFailsWhenKeyMgmtIsDifferent()
[all …]
DWifiNetworkSpecifierTest.java45 private static final String TEST_PACKAGE_NAME = "com.test"; field in WifiNetworkSpecifierTest
368 TEST_UID, TEST_PACKAGE_NAME); in testWifiNetworkSpecifierParcel()
400 TEST_UID, TEST_PACKAGE_NAME); in testWifiNetworkSpecifierSatisfiesNullAndAllMatch()
423 TEST_UID, TEST_PACKAGE_NAME); in testWifiNetworkSpecifierSatisfiesSame()
430 TEST_UID, TEST_PACKAGE_NAME); in testWifiNetworkSpecifierSatisfiesSame()
452 TEST_UID, TEST_PACKAGE_NAME); in testWifiNetworkSpecifierDoesNotSatisfyWhenKeyMgmtDifferent()
461 TEST_UID, TEST_PACKAGE_NAME); in testWifiNetworkSpecifierDoesNotSatisfyWhenKeyMgmtDifferent()
483 TEST_UID, TEST_PACKAGE_NAME); in testWifiNetworkSpecifierDoesNotSatisfyWhenSsidDifferent()
490 TEST_UID, TEST_PACKAGE_NAME); in testWifiNetworkSpecifierDoesNotSatisfyWhenSsidDifferent()
512 TEST_UID, TEST_PACKAGE_NAME); in testWifiNetworkSpecifierDoesNotSatisfyWhenBssidDifferent()
[all …]
DWifiInfoTest.java38 private static final String TEST_PACKAGE_NAME = "com.test.example"; field in WifiInfoTest
56 writeWifiInfo.setNetworkSuggestionOrSpecifierPackageName(TEST_PACKAGE_NAME); in testWifiInfoParcelWriteRead()
72 assertEquals(TEST_PACKAGE_NAME, readWifiInfo.getNetworkSuggestionOrSpecifierPackageName()); in testWifiInfoParcelWriteRead()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityStartInterceptorTest.java80 private static final String TEST_PACKAGE_NAME = "com.test.package"; field in ActivityStartInterceptorTest
145 when(mPackageManager.getHarmfulAppWarning(TEST_PACKAGE_NAME, TEST_USER_ID)) in setUp()
150 mAInfo.packageName = mAInfo.applicationInfo.packageName = TEST_PACKAGE_NAME; in setUp()
158 when(mPackageManagerInternal.getSuspendingPackage(TEST_PACKAGE_NAME, TEST_USER_ID)) in testSuspendedByAdminPackage()
176 when(mPackageManagerInternal.getSuspendingPackage(TEST_PACKAGE_NAME, TEST_USER_ID)) in testSuspendedPackage()
178 when(mPackageManagerInternal.getSuspendedDialogInfo(TEST_PACKAGE_NAME, TEST_USER_ID)) in testSuspendedPackage()
188 assertEquals(TEST_PACKAGE_NAME, in testSuspendedPackage()
221 when(mPackageManager.getHarmfulAppWarning(TEST_PACKAGE_NAME, TEST_USER_ID)) in testHarmfulAppWarning()
DLockTaskControllerTest.java97 private static final String TEST_PACKAGE_NAME = "com.test.package"; field in LockTaskControllerTest
499 String[] whitelist1 = {TEST_PACKAGE_NAME, TEST_PACKAGE_NAME_2}; in testUpdateLockTaskPackages()
500 String[] whitelist2 = {TEST_PACKAGE_NAME}; in testUpdateLockTaskPackages()
525 assertTrue("Package should remain whitelisted: " + TEST_PACKAGE_NAME, in testUpdateLockTaskPackages()
526 mLockTaskController.isPackageWhitelisted(TEST_USER_ID, TEST_PACKAGE_NAME)); in testUpdateLockTaskPackages()
534 TaskRecord tr1 = getTaskRecordForUpdate(TEST_PACKAGE_NAME, true); in testUpdateLockTaskPackages_taskRemoved()
536 String[] whitelist = {TEST_PACKAGE_NAME, TEST_PACKAGE_NAME_2}; in testUpdateLockTaskPackages_taskRemoved()
548 whitelist = new String[] {TEST_PACKAGE_NAME}; in testUpdateLockTaskPackages_taskRemoved()
697 return getTaskRecord(TEST_PACKAGE_NAME, lockTaskAuth); in getTaskRecord()
744 verify(mDevicePolicyManager).notifyLockTaskModeChanged(eq(true), eq(TEST_PACKAGE_NAME), in verifyLockTaskStarted()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DNotificationGroupTestHelper.java39 private static final String TEST_PACKAGE_NAME = "test_pkg"; field in NotificationGroupTestHelper
72 TEST_PACKAGE_NAME /* pkg */, in createEntry()
73 TEST_PACKAGE_NAME, in createEntry()
/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.java53 private static final String TEST_PACKAGE_NAME = "test"; field in NotificationListenerTest
81 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp()
DSmartReplyControllerTest.java56 private static final String TEST_PACKAGE_NAME = "test"; field in SmartReplyControllerTest
98 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, in setUp()
DAlertingNotificationManagerTest.java60 private static final String TEST_PACKAGE_NAME = "test"; field in AlertingNotificationManagerTest
116 TEST_PACKAGE_NAME /* pkg */, in createNewNotification()
117 TEST_PACKAGE_NAME, in createNewNotification()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DPendingIntentControllerTest.java52 private static final String TEST_PACKAGE_NAME = "test-package-1"; field in PendingIntentControllerTest
81 when(mIPackageManager.getPackageUid(eq(TEST_PACKAGE_NAME), anyInt(), anyInt())).thenReturn( in setUp()
90 TEST_PACKAGE_NAME, TEST_CALLING_UID, 0, null, null, 0, TEST_INTENTS, null, flags, in createPendingIntentRecord()
/frameworks/base/lowpan/tests/src/android/net/lowpan/
DLowpanInterfaceTest.java42 private static final String TEST_PACKAGE_NAME = "TestPackage"; field in LowpanInterfaceTest
61 when(mContext.getOpPackageName()).thenReturn(TEST_PACKAGE_NAME); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/logging/
DNotificationLoggerTest.java69 private static final String TEST_PACKAGE_NAME = "test"; field in NotificationLoggerTest
96 StatusBarNotification sbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DNotificationListControllerTest.java227 TEST_PACKAGE_NAME, in buildEntry()
228 TEST_PACKAGE_NAME, in buildEntry()
240 private static final String TEST_PACKAGE_NAME = "test"; field in NotificationListControllerTest

12