/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/safetylabel/ |
D | AppsSafetyLabelHistoryPersistenceTest.kt | 39 import com.android.permissioncontroller.tests.mocking.safetylabel.TestSafetyLabels.PACKAGE_NAME_2 116 AppSafetyLabelHistory(AppInfo(PACKAGE_NAME_2), listOf(SAFETY_LABEL_PKG_2_V2)) in read_afterWrite_noSharing_returnsIdenticalAppsSafetyLabelHistory() 132 AppInfo(PACKAGE_NAME_2), in read_afterWrite_returnsIdenticalAppsSafetyLabelHistory() 153 AppSafetyLabelHistory(AppInfo(PACKAGE_NAME_2), listOf(SAFETY_LABEL_PKG_2_V2)) in read_afterWrite_defaultVersion_returnsInitialVersion() 166 AppSafetyLabelHistory(AppInfo(PACKAGE_NAME_2), listOf(SAFETY_LABEL_PKG_2_V2)) in read_afterWrite_specifiedVersion_returnsSpecifiedVersion() 217 AppInfo(PACKAGE_NAME_2), in recordSafetyLabel_noAppHistory_addsAppHistory() 232 AppInfo(PACKAGE_NAME_2), in recordSafetyLabel_existingAppHistory_addsToHistory() 250 AppInfo(PACKAGE_NAME_2), in recordSafetyLabel_existingAppHistory_addsToHistory() 275 AppInfo(PACKAGE_NAME_2), in recordSafetyLabel_whenMaximumSafetyLabelsAlreadyStoredForApp_dropsOldSafetyLabels() 290 AppInfo(PACKAGE_NAME_2), in recordSafetyLabel_noChangeToLastLabel_doesNothing() [all …]
|
D | AppsSafetyLabelHistoryTest.kt | 34 import com.android.permissioncontroller.tests.mocking.safetylabel.TestSafetyLabels.PACKAGE_NAME_2 163 PACKAGE_NAME_2, in extractLocationSharingSafetyLabel_locationSharingAds_returnsSafetyLabelForPersistence() 171 AppInfo(PACKAGE_NAME_2), in extractLocationSharingSafetyLabel_locationSharingAds_returnsSafetyLabelForPersistence() 186 PACKAGE_NAME_2, in extractLocationSharingSafetyLabel_financeCategory_returnsEmptySafetyLabel() 192 .isEqualTo(SafetyLabel(AppInfo(PACKAGE_NAME_2), DATE_2022_10_10, DataLabel(mapOf()))) in extractLocationSharingSafetyLabel_financeCategory_returnsEmptySafetyLabel() 204 PACKAGE_NAME_2, in extractLocationSharingSafetyLabel_locationFinance_returnsLocationSafetyLabel() 212 AppInfo(PACKAGE_NAME_2), in extractLocationSharingSafetyLabel_locationFinance_returnsLocationSafetyLabel() 222 private const val PACKAGE_NAME_2 = "package_name_2" constant
|
D | TestSafetyLabels.kt | 29 const val PACKAGE_NAME_2 = "package_name_2" constant 67 AppInfo(PACKAGE_NAME_2), 79 SafetyLabel(AppInfo(PACKAGE_NAME_2), DATE_2022_12_10, DataLabel(mapOf())) 84 AppInfo(PACKAGE_NAME_2),
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/actions/ |
D | RestrictAppActionTest.java | 50 private static final String PACKAGE_NAME_2 = "com.android.app2"; field in RestrictAppActionTest 68 .setPackageName(PACKAGE_NAME_2) in setUp() 92 verify(mBatteryUtils).setForceAppStandby(UID_2, PACKAGE_NAME_2, AppOpsManager.MODE_IGNORED); in testHandlePositiveAction() 105 PACKAGE_NAME_2, in testHandlePositiveAction() 112 PACKAGE_NAME_2, in testHandlePositiveAction()
|
D | OpenRestrictAppFragmentActionTest.java | 51 private static final String PACKAGE_NAME_2 = "com.android.app2"; field in OpenRestrictAppFragmentActionTest 75 .setPackageName(PACKAGE_NAME_2) in setUp()
|
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/hibernation/ |
D | HibernationControllerTest.kt | 62 const val PACKAGE_NAME_2 = "package_2" constant 108 val userPackages = listOf(makePackageInfo(PACKAGE_NAME_1), makePackageInfo(PACKAGE_NAME_2)) in testHibernateApps_hibernatesAppsForUser() 123 val userPackages = listOf(makePackageInfo(PACKAGE_NAME_1), makePackageInfo(PACKAGE_NAME_2)) in testHibernateApps_globallyUnusedAppIsGloballyHibernated() 138 val userPackages = listOf(makePackageInfo(PACKAGE_NAME_1), makePackageInfo(PACKAGE_NAME_2)) in testHibernateApps_globallyUsedAppIsNotGloballyHibernated()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/statsconverters/ |
D | WtfOccurredConverterTest.java | 44 private static final String PACKAGE_NAME_2 = "com.example.package2"; field in WtfOccurredConverterTest 57 .setProcessName(PACKAGE_NAME_2) 86 .containsExactly(PACKAGE_NAME_1, PACKAGE_NAME_2).inOrder(); in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
|
D | AnrOccurredConverterTest.java | 45 private static final String PACKAGE_NAME_2 = "com.example.package2"; field in AnrOccurredConverterTest 58 .setPackageName(PACKAGE_NAME_2) 88 .containsExactly(PACKAGE_NAME_1, PACKAGE_NAME_2).inOrder(); in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
|
D | AppCrashOccurredConverterTest.java | 44 private static final String PACKAGE_NAME_2 = "com.example.package2"; field in AppCrashOccurredConverterTest 58 .setPackageName(PACKAGE_NAME_2) 90 .asList().containsExactly(PACKAGE_NAME_1, PACKAGE_NAME_2).inOrder(); in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/remoteaccess/ |
D | CarRemoteAccessManagerTest.java | 102 private static final String PACKAGE_NAME_2 = "android.car.package2"; field in CarRemoteAccessManagerTest 153 newResolveInfo(PACKAGE_NAME_2, SERVICE_NAME_2, 12345), in MyMockedCarTestContext() 159 when(mPackageManager.checkPermission(Car.PERMISSION_USE_REMOTE_ACCESS, PACKAGE_NAME_2)) in MyMockedCarTestContext() 166 PACKAGE_NAME_2)).thenReturn(PackageManager.PERMISSION_GRANTED); in MyMockedCarTestContext() 172 new String[]{PACKAGE_NAME_2}); in MyMockedCarTestContext() 182 || Objects.equals(packageName, PACKAGE_NAME_2) in knownPackage() 394 new ComponentName(PACKAGE_NAME_2, SERVICE_NAME_2)} in testInitialBindRemoteTaskClientService()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/accessibility/ |
D | PreferredShortcutsTest.java | 58 private static final String PACKAGE_NAME_2 = "com.test2.example"; field in PreferredShortcutsTest 59 private static final String CLASS_NAME_2 = PACKAGE_NAME_2 + ".test2"; 60 private static final ComponentName COMPONENT_NAME_2 = new ComponentName(PACKAGE_NAME_2,
|
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/ |
D | StorageAsyncLoaderTest.java | 64 private static final String PACKAGE_NAME_2 = "com.blah.test2"; field in StorageAsyncLoaderTest 103 addPackage(PACKAGE_NAME_2, 0, 100, 1000, ApplicationInfo.CATEGORY_UNDEFINED); in testLoadingApps() 204 addPackage(PACKAGE_NAME_2, 0, 1, 10, ApplicationInfo.CATEGORY_VIDEO); in testAppsAreFiltered()
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/picker/model/ |
D | WidgetsListContentEntryTest.java | 57 private static final String PACKAGE_NAME_2 = "com.android.test2"; field in WidgetsListContentEntryTest 60 private final PackageItemInfo mPackageItemInfo2 = new PackageItemInfo(PACKAGE_NAME_2,
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/storage/ |
D | StorageAsyncLoaderTest.java | 60 private static final String PACKAGE_NAME_2 = "com.blah.test2"; field in StorageAsyncLoaderTest 93 ApplicationInfo appInfo2 = createAppInfo(PACKAGE_NAME_2, 0, 100, 1000, in testLoadingApps()
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/ |
D | UwbSessionManagerTest.java | 183 private static final String PACKAGE_NAME_2 = "com.android.uwb.2"; field in UwbSessionManagerTest 187 new AttributionSource.Builder(UID_2).setPackageName(PACKAGE_NAME_2).build(); 1097 doReturn(true).when(mUwbInjector).isSystemApp(UID_2, PACKAGE_NAME_2); in initSessionMaxSessions_lowestPrioritySessionReplaced() 2190 when(mUwbInjector.isSystemApp(UID_2, PACKAGE_NAME_2)).thenReturn(false); in initUwbSessionForNonSystemAppInFgInChain() 2191 when(mUwbInjector.isForegroundAppOrService(UID_2, PACKAGE_NAME_2)) in initUwbSessionForNonSystemAppInFgInChain() 2198 .setPackageName(PACKAGE_NAME_2) in initUwbSessionForNonSystemAppInFgInChain() 2210 when(mUwbInjector.isSystemApp(UID_2, PACKAGE_NAME_2)).thenReturn(false); in initUwbSessionForNonSystemAppNotInFgInChain() 2211 when(mUwbInjector.isForegroundAppOrService(UID_2, PACKAGE_NAME_2)) in initUwbSessionForNonSystemAppNotInFgInChain() 2218 .setPackageName(PACKAGE_NAME_2) in initUwbSessionForNonSystemAppNotInFgInChain() 2422 when(mUwbInjector.isForegroundAppOrService(UID_2, PACKAGE_NAME_2)) in testOpenRangingWithNonSystemAppInFgInChain_MoveToBgTriggersSessionPriorityChange() [all …]
|