/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/ |
D | AppSearchLoggerTest.java | 404 final String testPackageName = "testPackage"; in testLoggingStats_initializeWithDocuments_success() local 422 testPackageName, in testLoggingStats_initializeWithDocuments_success() 433 testPackageName, testDatabase, doc1, /* sendChangeNotifications= */ false, mLogger); in testLoggingStats_initializeWithDocuments_success() 435 testPackageName, testDatabase, doc2, /* sendChangeNotifications= */ false, mLogger); in testLoggingStats_initializeWithDocuments_success() 469 final String testPackageName = "testPackage"; in testLoggingStats_initialize_failure() local 488 testPackageName, in testLoggingStats_initialize_failure() 500 testPackageName, testDatabase, doc1, /* sendChangeNotifications= */ false, mLogger); in testLoggingStats_initialize_failure() 507 .setSchema(String.format("%s$%s/Type1", testPackageName, testDatabase)) in testLoggingStats_initialize_failure() 535 final String testPackageName = "testPackage"; in testLoggingStats_putDocument_success() local 554 testPackageName, in testLoggingStats_putDocument_success() [all …]
|
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/domain/usecase/ |
D | GetPermissionUsageUseCaseTest.kt | 68 private val testPackageName = "test.package" constant 90 testPackageName to getPackageInfoModel(testPackageName), in setup() 115 PackageAppOpUsageModel(testPackageName, appOpsUsage, currentUser.identifier), in <lambda>() 139 PackageAppOpUsageModel(testPackageName, appOpsUsage, currentUser.identifier), in <lambda>() 172 PackageAppOpUsageModel(testPackageName, appOpsUsage, currentUser.identifier), in <lambda>() 201 PackageAppOpUsageModel(testPackageName, appOpsUsage, currentUser.identifier), in <lambda>() 227 PackageAppOpUsageModel(testPackageName, appOpsUsage, currentUser.identifier), in <lambda>() 231 packageInfos[testPackageName] = in <lambda>() 233 testPackageName, in <lambda>() 255 PackageAppOpUsageModel(testPackageName, appOpsUsage, currentUser.identifier), in <lambda>() [all …]
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/stats/ |
D | PlatformLoggerTest.java | 145 final String testPackageName = "packageName"; in testGetPackageUidAsUser() local 149 when(mockPackageManager.getPackageUid(testPackageName, /*flags=*/0)).thenReturn(testUid); in testGetPackageUidAsUser() 152 PlatformLogger.ExtraStats extraStats = logger.createExtraStatsLocked(testPackageName, in testGetPackageUidAsUser() 155 .getPackageUid(eq(testPackageName), /*flags=*/ anyInt()); in testGetPackageUidAsUser() 159 extraStats = logger.createExtraStatsLocked(testPackageName, in testGetPackageUidAsUser() 164 .getPackageUid(eq(testPackageName), /*flags=*/ anyInt()); in testGetPackageUidAsUser() 168 assertThat(logger.removeCachedUidForPackage(testPackageName)).isEqualTo(testUid); in testGetPackageUidAsUser() 169 extraStats = logger.createExtraStatsLocked(testPackageName, in testGetPackageUidAsUser() 174 .getPackageUid(eq(testPackageName), /*flags=*/ anyInt()); in testGetPackageUidAsUser()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sidebar/ |
D | RootsFragmentTest.java | 132 final String testPackageName = "com.test1"; in testItemComparator_WithCorrectOrder() local 134 final RootsFragment.ItemComparator comp = new RootsFragment.ItemComparator(testPackageName); in testItemComparator_WithCorrectOrder() 141 testPackageName, /* maybeShowBadge= */ false)); in testItemComparator_WithCorrectOrder() 151 final String testPackageName = "com.test1"; in testItemComparator_differentItemTypes_WithCorrectOrder() local 152 final RootsFragment.ItemComparator comp = new RootsFragment.ItemComparator(testPackageName); in testItemComparator_differentItemTypes_WithCorrectOrder() 155 testPackageName, /* maybeShowBadge= */ false)); in testItemComparator_differentItemTypes_WithCorrectOrder() 158 info.activityInfo.packageName = testPackageName; in testItemComparator_differentItemTypes_WithCorrectOrder()
|
/packages/modules/AppSearch/testing/mockingservicestests/src/com/android/server/appsearch/stats/ |
D | MockingPlatformLoggerTest.java | 149 final String testPackageName = "packageName"; in testShouldLogForTypeLocked_trueWhenSampleIntervalIsOne() local 162 assertThat(logger.createExtraStatsLocked(testPackageName, in testShouldLogForTypeLocked_trueWhenSampleIntervalIsOne() 168 final String testPackageName = "packageName"; in testShouldLogForTypeLocked_falseWhenSampleIntervalIsNegative() local 182 assertThat(logger.createExtraStatsLocked(testPackageName, in testShouldLogForTypeLocked_falseWhenSampleIntervalIsNegative() 192 final String testPackageName = "packageName"; in testShouldLogForTypeLocked_falseWhenWithinCoolOffInterval() local 211 assertThat(logger.createExtraStatsLocked(testPackageName, in testShouldLogForTypeLocked_falseWhenWithinCoolOffInterval() 221 final String testPackageName = "packageName"; in testShouldLogForTypeLocked_trueWhenOutsideOfCoolOffInterval() local 240 assertThat(logger.createExtraStatsLocked(testPackageName, in testShouldLogForTypeLocked_trueWhenOutsideOfCoolOffInterval()
|
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/ui/model/ |
D | PermissionUsageViewModelTest.kt | 66 private val testPackageName = "test.package" constant 91 testPackageName to getPackageInfoModel(testPackageName), in setup() 141 PackageAppOpUsageModel(testPackageName, appOpsUsage, currentUser.identifier), in <lambda>() 174 PackageAppOpUsageModel(testPackageName, appOpsUsage, currentUser.identifier), in <lambda>()
|
D | ReviewPermissionsViewModelTest.kt | 54 private val testPackageName = "test.package" constant 82 whenever(packageManager.getPackageInfo(testPackageName, 0)).thenReturn(packageInfo) in setup() 86 whenever(application.packageName).thenReturn(testPackageName) in setup() 293 packageName = testPackageName in getPackageInfo()
|
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/appops/data/repository/ |
D | AppOpRepositoryTest.kt | 60 private val testPackageName = "test.package" constant 98 assertThat(packageOps[0].packageName).isEqualTo(testPackageName) in <lambda>() 110 return createMockPackageOps(testPackageName, opEntries, currentUser.getUid(testAppId)) in createPackageOpsMockData()
|
/packages/modules/RemoteKeyProvisioning/app/tests/hosttest/src/com/android/rkpdapp/hosttest/ |
D | RkpdWidevineTests.java | 59 String testPackageName = "com.android.rkpdapp.e2etest"; in runTest() local 60 assertThat(runDeviceTests(testPackageName, testClassName, testMethodName)) in runTest()
|
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/utils/ |
D | MockUtil.kt | 46 testPackageName: String, in createPackageInfo() 54 packageName = testPackageName in createPackageInfo()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | CloneContactsProvider2Test.java | 467 String testPackageName = mCloneContactsActor.packageName; in testIsAppAllowedToUseParentUsersContacts_AppInAllowlistCacheEmpty() local 471 .doesPackageHaveALauncherActivity(eq(testPackageName), any()); in testIsAppAllowedToUseParentUsersContacts_AppInAllowlistCacheEmpty() 477 mCloneContactsProvider.isAppAllowedToUseParentUsersContacts(testPackageName); in testIsAppAllowedToUseParentUsersContacts_AppInAllowlistCacheEmpty() 489 String testPackageName = mCloneContactsActor.packageName; in testIsAppAllowedToUseParentUsersContacts_AppNotInAllowlistCacheEmtpy() local 495 assertFalse(mCloneContactsProvider.isAppAllowedToUseParentUsersContacts(testPackageName)); in testIsAppAllowedToUseParentUsersContacts_AppNotInAllowlistCacheEmtpy()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
D | MoreKeySpecStringReferenceTests.java | 49 final String testPackageName = testRes.getResourcePackageName(R.string.empty_string); in setUp() local 50 mTextsSet.setLocale(TEST_LOCALE, testRes, testPackageName); in setUp()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/ |
D | ProvisioningManagerTest.java | 72 private final static String testPackageName = "com.android.managedprovisioning"; field in ProvisioningManagerTest 95 when(mContext.getPackageName()).thenReturn(testPackageName); in setUp()
|
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/consent/ |
D | AppConsentManagerTest.java | 122 String testPackageName = in testDatastoreKeyToPackageNameSuccess() local 125 assertEquals(AppConsentManagerFixture.APP10_PACKAGE_NAME, testPackageName); in testDatastoreKeyToPackageNameSuccess()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/ |
D | AppsRowManagerTest.java | 161 final String testPackageName = "com.test1"; in testUpdateList_byHybridItem() local 163 info.activityInfo.packageName = testPackageName; in testUpdateList_byHybridItem()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/consent/ |
D | AppConsentDaoTest.java | 152 String testPackageName = in testDatastoreKeyToPackageNameSuccess() local 154 assertEquals(AppConsentDaoFixture.APP10_PACKAGE_NAME, testPackageName); in testDatastoreKeyToPackageNameSuccess()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | ConnectivityServiceTest.java | 14508 final String testPackageName = "per.app.defaults.package"; 14510 networkPrefToSetup, testPackageNameUid, testPackageName); 14517 final String testPackageName = "per.app.defaults.package"; 14519 networkPrefToSetup, testPackageNameUid, testPackageName); 14524 final int testPackageUid, @NonNull final String testPackageName) throws Exception { 14531 networkPrefToSetup, uidRanges, testPackageName); 14537 @NonNull final String testPackageName) throws Exception { 14539 testPackageName, PRIMARY_USER_HANDLE, true /* hasAutomotiveFeature */); 14545 @NonNull final String testPackageName, 14548 testPackageName, user, true /* hasAutomotiveFeature */); [all …]
|